/* Main Stylesheet - PaikariX Design */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #FF6B9D;
    --primary-dark: #FF5089;
    --secondary: #FFB3C7;
    --background: #FFF5F7;
    --text: #2D2D2D;
    --text-light: #757575;
    --border: #FFD1DC;
    --white: #FFFFFF;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text);
    background: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: var(--white);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(255, 107, 157, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 28px;
    color: var(--primary);
}

.header-actions {
    display: flex;
    gap: 15px;
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    color: var(--text);
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text);
}

/* Search */
.search-container {
    background: var(--background);
    padding: 15px 0;
}

.search-input {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid var(--primary);
    border-radius: 25px;
    font-size: 16px;
}

/* Categories */
.categories {
    background: var(--background);
    padding: 15px 0;
    overflow-x: auto;
}

.category-scroll {
    display: flex;
    gap: 15px;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
    text-decoration: none;
    color: var(--text);
}

.category-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 8px;
}

.category-item.active .category-icon {
    background: var(--primary);
}

/* Filters */
.filters {
    padding: 15px 0;
}

.filters .container {
    display: flex;
    gap: 15px;
}

.filter-btn {
    padding: 10px 20px;
    background: var(--text);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.secondary-btn {
    background: var(--background);
    color: var(--text);
}

/* Products */
.products {
    padding: 20px 0;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.product-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.product-info {
    padding: 12px;
}

.product-category {
    display: inline-block;
    background: var(--secondary);
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 11px;
    margin-bottom: 8px;
}

.product-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.product-price {
    font-size: 18px;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 10px;
}

.add-cart-btn {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px;
    border-radius: 20px;
    cursor: pointer;
}

/* Cart Drawer */
.cart-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 450px;
    height: 100vh;
    background: white;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    transition: right 0.3s;
    z-index: 2000;
}

.cart-drawer.open {
    right: 0;
}

.cart-drawer-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.cart-drawer-header {
    padding: 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
}

.cart-tabs {
    display: flex;
    gap: 20px;
}

.cart-tab {
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
}

.cart-tab.active {
    border-bottom-color: var(--primary);
}

.cart-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-drawer-footer {
    padding: 20px;
    border-top: 1px solid var(--border);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
}

.checkout-btn {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Floating Cart */
.floating-cart-btn {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 999;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1500;
    align-items: center;
    justify-content: center;
}

.modal.open {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 16px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
}

/* Side Menu */
.side-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: white;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    transition: left 0.3s;
    z-index: 2000;
}

.side-menu.open {
    left: 0;
}

.side-menu-content {
    padding: 20px;
}

.side-menu-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.close-btn {
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
}

/* Loading */
.loading {
    text-align: center;
    padding: 40px;
}

.spinner {
    border: 4px solid var(--border);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@media (min-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
