/* ===== FONT IMPORT ===== */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
    /* Brand colors — same in both themes */
    --primary:        #16a34a;
    --primary-light:  #22c55e;
    --primary-dark:   #14532d;
    --primary-glow:   rgba(22, 163, 74, 0.25);

    --accent:         #f97316;
    --accent-light:   #fb923c;
    --accent-glow:    rgba(249, 115, 22, 0.20);

    /* === LIGHT MODE (default) === */
    --bg:             #f8fafc;
    --bg-surface:     #ffffff;
    --bg-elevated:    #f1f5f9;

    --glass-bg:       rgba(255, 255, 255, 0.88);
    --glass-border:   rgba(0, 0, 0, 0.06);
    --glass-blur:     blur(16px);

    --text:           #0f172a;
    --text-muted:     #475569;
    --text-subtle:    #94a3b8;

    --border:         rgba(0, 0, 0, 0.08);
    --border-hover:   rgba(0, 0, 0, 0.15);

    --shadow-sm:      0 1px 6px rgba(0,0,0,0.06);
    --shadow-md:      0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg:      0 12px 40px rgba(0,0,0,0.10);

    /* Radii */
    --radius-sm:      8px;
    --radius:         14px;
    --radius-lg:      20px;
    --radius-xl:      28px;
    --radius-full:    9999px;

    /* Transitions */
    --transition:     0.22s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);

    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --header-h: 68px;
    --search-h: 60px;
    --cat-h: 50px;
    --sticky-offset: calc(var(--header-h) + var(--search-h));
}

/* ===== DARK MODE ===== */
[data-theme="dark"] {
    --bg:             #0f172a;
    --bg-surface:     #1e293b;
    --bg-elevated:    #263245;

    --glass-bg:       rgba(30, 41, 59, 0.85);
    --glass-border:   rgba(255, 255, 255, 0.08);

    --text:           #f1f5f9;
    --text-muted:     #94a3b8;
    --text-subtle:    #64748b;

    --border:         rgba(255, 255, 255, 0.07);
    --border-hover:   rgba(255, 255, 255, 0.14);

    --shadow-sm:      0 1px 6px rgba(0,0,0,0.3);
    --shadow-md:      0 4px 20px rgba(0,0,0,0.4);
    --shadow-lg:      0 12px 40px rgba(0,0,0,0.5);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-hover); border-radius: 4px; }

/* ===== BODY ===== */
body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    padding-bottom: 32px;
    transition: background 0.3s, color 0.3s;
}

/* Dark mode body glow */
[data-theme="dark"] body {
    background-image:
        radial-gradient(ellipse 80% 60% at 50% -20%, rgba(22, 163, 74, 0.12) 0%, transparent 70%),
        radial-gradient(ellipse 60% 40% at 80% 80%, rgba(249, 115, 22, 0.06) 0%, transparent 60%);
    background-attachment: fixed;
}

/* ===== HEADER ===== */
.header {
    height: var(--header-h);
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-logo {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 0 14px var(--primary-glow);
    flex-shrink: 0;
}

.header-text {}

.store-name {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.4px;
    background: linear-gradient(90deg, var(--primary-dark), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

/* Dark mode: lighter gradient for dark bg */
[data-theme="dark"] .store-name {
    background: linear-gradient(90deg, #fff 0%, #a3e7be 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.store-tagline {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 1px;
    font-weight: 500;
    letter-spacing: 0.2px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.theme-toggle {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    font-family: inherit;
}
.theme-toggle:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.cart-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-border);
    color: var(--text);
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    cursor: pointer;
    position: relative;
    transition: all var(--transition);
}

.cart-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--border-hover);
    transform: translateY(-1px);
}

.cart-btn:active {
    transform: scale(0.93);
}

.cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: white;
    font-size: 0.6rem;
    font-weight: 800;
    min-width: 20px;
    height: 20px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    border: 2px solid var(--bg);
    transition: transform var(--transition-bounce);
    box-shadow: 0 2px 8px var(--accent-glow);
}

/* ===== SEARCH ===== */
.search-container {
    height: var(--search-h);
    padding: 10px 16px;
    position: sticky;
    top: var(--header-h);
    z-index: 99;
    background: linear-gradient(to bottom, var(--bg) 0%, transparent 100%);
}

.search-box {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    padding: 0 18px;
    height: 40px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all var(--transition);
}

.search-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
    background: var(--bg-elevated);
}

.search-icon {
    color: var(--text-subtle);
    font-size: 0.85rem;
    flex-shrink: 0;
    transition: color var(--transition);
}

.search-box:focus-within .search-icon {
    color: var(--primary-light);
}

.search-box input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    color: var(--text);
    font-size: 0.88rem;
    font-family: inherit;
    font-weight: 500;
}

.search-box input::placeholder {
    color: var(--text-subtle);
    font-weight: 400;
}

/* ===== CATEGORIES ===== */
.categories-wrapper {
    padding: 4px 16px 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.categories-wrapper::-webkit-scrollbar { display: none; }

.categories {
    display: flex;
    gap: 8px;
    padding-bottom: 2px;
}

.category-btn {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    padding: 7px 16px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    white-space: nowrap;
    font-family: inherit;
    transition: all var(--transition);
    letter-spacing: 0.1px;
}

.category-btn:hover {
    border-color: var(--border-hover);
    color: var(--text);
    background: var(--bg-elevated);
}

.category-btn:active {
    transform: scale(0.94);
}

.category-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 4px 14px var(--primary-glow);
}

/* ===== MAIN CONTENT ===== */
.main-content {
    padding: 4px 14px 0;
}

/* ===== PRODUCTS GRID ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

/* ===== PRODUCT CARD ===== */
.product-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: all var(--transition);
    animation: cardIn 0.35s ease both;
    position: relative;
}

.product-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.product-card:active {
    transform: scale(0.97);
}

.product-card.in-cart {
    border-color: rgba(22, 163, 74, 0.45);
    box-shadow: 0 0 0 1px rgba(22, 163, 74, 0.2), inset 0 0 20px rgba(22, 163, 74, 0.04);
}

@keyframes cardIn {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ===== PRODUCT IMAGE ===== */
.product-image {
    width: 100%;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, #1a2e20, #0f2218);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: var(--primary-light);
    position: relative;
    overflow: hidden;
}

.product-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(15, 23, 42, 0.5) 100%);
    pointer-events: none;
}

.product-image .product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-img {
    transform: scale(1.07);
}

.product-img-fallback {
    font-size: 2.2rem;
}

/* ===== IN-CART BADGE ===== */
.in-cart-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--primary);
    color: white;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    z-index: 2;
    box-shadow: 0 2px 10px var(--primary-glow);
    animation: popIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popIn {
    from { transform: scale(0); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

/* ===== PRODUCT INFO ===== */
.product-info {
    padding: 10px 11px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.product-name {
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(0.82rem * 1.35 * 2); /* 2-line minimum to align across cards */
}

.product-price {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--accent-light);
    letter-spacing: -0.3px;
}

.product-unit {
    font-size: 0.68rem;
    color: var(--text-subtle);
    font-weight: 500;
}

/* ===== VARIANT SELECTOR ===== */
.variant-selector,
.variant-spacer {
    height: 32px; /* exact match, not min-height */
}

.variant-selector {
    /* container doesn't need padding, select handles it */
}

.variant-spacer {
    visibility: hidden; /* invisible but takes same space */
}

.variant-select {
    width: 100%;
    padding: 6px 10px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.72rem;
    font-family: inherit;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    outline: none;
    transition: all var(--transition);
    appearance: auto;
    -webkit-appearance: auto;
}

.variant-select:focus {
    border-color: var(--primary);
    color: var(--text);
    background: var(--bg-surface);
    box-shadow: 0 0 0 2px var(--primary-glow);
}

/* ===== ADD TO CART BUTTON ===== */
.add-to-cart-btn {
    width: 100%;
    margin-top: auto;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    border: none;
    padding: 8px 6px;
    border-radius: var(--radius-sm);
    font-size: 0.74rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: all var(--transition);
    letter-spacing: 0.1px;
    box-shadow: 0 3px 10px var(--primary-glow);
}

.add-to-cart-btn:hover {
    filter: brightness(1.1);
    box-shadow: 0 5px 18px var(--primary-glow);
    transform: translateY(-1px);
}

.add-to-cart-btn:active {
    transform: scale(0.96);
    filter: brightness(0.95);
}

.add-to-cart-btn i {
    font-size: 0.72rem;
}

.add-to-cart-btn.in-cart-btn {
    background: linear-gradient(135deg, rgba(22, 163, 74, 0.2), rgba(34, 197, 94, 0.15));
    border: 1px solid rgba(22, 163, 74, 0.35);
    color: var(--primary-light);
    box-shadow: none;
}

.add-to-cart-btn.in-cart-btn:hover {
    background: linear-gradient(135deg, rgba(22, 163, 74, 0.3), rgba(34, 197, 94, 0.22));
    box-shadow: 0 3px 12px var(--primary-glow);
}

.cart-item-unit {
    font-size: 0.7rem;
    color: var(--text-subtle);
    font-weight: 500;
}

/* ===== CART OVERLAY ===== */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: all 0.28s ease;
}

.cart-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* ===== CART SIDEBAR ===== */
.cart-sidebar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 88vh;
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-bottom: none;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    z-index: 201;
    transform: translateY(100%);
    transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.5);
}

/* drag handle */
.cart-sidebar::before {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    background: var(--border-hover);
    border-radius: var(--radius-full);
    margin: 12px auto 0;
    flex-shrink: 0;
}

.cart-sidebar.open {
    transform: translateY(0);
}

/* ===== CART HEADER ===== */
.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px 14px;
    border-bottom: 1px solid var(--border);
}

.cart-header h2 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-header h2 i {
    color: var(--primary-light);
    font-size: 0.95rem;
}

.close-cart {
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
    color: var(--text-muted);
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all var(--transition);
}

.close-cart:hover {
    background: rgba(255,255,255,0.1);
    color: var(--text);
}

.close-cart:active {
    transform: scale(0.9);
}

/* ===== CART ITEMS ===== */
.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 10px 16px;
    max-height: 50vh;
}

.cart-empty {
    text-align: center;
    padding: 48px 20px;
    color: var(--text-subtle);
}

.cart-empty i {
    font-size: 2.8rem;
    margin-bottom: 14px;
    color: var(--border-hover);
    display: block;
    opacity: 0.6;
}

.cart-empty p {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-muted);
}

/* ===== CART ITEM ===== */
.cart-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    animation: cardIn 0.25s ease;
}

.cart-item:last-child { border-bottom: none; }

.cart-item-image {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: linear-gradient(135deg, #1a2e20, #0f2218);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    overflow: hidden;
    border: 1px solid var(--border);
}

.cart-item-image img,
.cart-item-image .cart-item-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.cart-item-icon { font-size: 1.3rem; }

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text);
}

.cart-item-unit {
    font-size: 0.7rem;
    color: var(--text-subtle);
    font-weight: 500;
    margin-top: 2px;
}

.cart-item-price {
    font-size: 0.78rem;
    color: var(--accent-light);
    font-weight: 700;
    margin-top: 2px;
}

/* ===== CART ITEM ACTIONS ===== */
.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.qty-btn {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    transition: all var(--transition);
}

.qty-btn:hover { background: var(--bg-surface); color: var(--text); border-color: var(--border-hover); }
.qty-btn:active { transform: scale(0.88); }

.qty-btn.minus { color: var(--accent-light); border-color: rgba(249, 115, 22, 0.3); }
.qty-btn.minus:hover { background: rgba(249, 115, 22, 0.12); border-color: var(--accent); }

.qty-btn.plus  { color: var(--primary-light); border-color: rgba(22, 163, 74, 0.3); }
.qty-btn.plus:hover  { background: rgba(22, 163, 74, 0.12); border-color: var(--primary); }

.qty-value {
    font-size: 0.9rem;
    font-weight: 800;
    min-width: 22px;
    text-align: center;
    color: var(--text);
}

.delete-btn {
    background: none;
    border: none;
    color: var(--text-subtle);
    font-size: 0.9rem;
    cursor: pointer;
    padding: 4px 2px;
    margin-left: 2px;
    transition: color var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.delete-btn:hover { color: #ef4444; }

/* ===== CART FOOTER ===== */
.cart-footer {
    padding: 14px 18px;
    padding-bottom: calc(14px + var(--safe-bottom));
    border-top: 1px solid var(--border);
    background: var(--bg-surface);
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    padding: 12px 14px;
    background: var(--bg-elevated);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.cart-total span:first-child {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.total-price {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--accent-light);
    letter-spacing: -0.5px;
}

.checkout-btn {
    width: 100%;
    background: linear-gradient(135deg, #25D366, #128c3e);
    color: white;
    border: none;
    padding: 14px;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 800;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all var(--transition);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
    letter-spacing: 0.1px;
}

.checkout-btn:hover {
    filter: brightness(1.08);
    box-shadow: 0 8px 28px rgba(37, 211, 102, 0.45);
    transform: translateY(-1px);
}

.checkout-btn:active {
    transform: scale(0.97);
    filter: brightness(0.95);
}

.checkout-btn i { font-size: 1.15rem; }

/* ===== TOAST ===== */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(70px);
    background: var(--bg-elevated);
    border: 1px solid var(--border-hover);
    color: var(--text);
    padding: 11px 22px;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 600;
    font-family: inherit;
    box-shadow: var(--shadow-lg);
    z-index: 300;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.toast::before {
    content: '✓';
    display: flex;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 800;
    flex-shrink: 0;
    box-shadow: 0 0 10px var(--primary-glow);
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ===== NO RESULTS ===== */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 72px 20px;
    color: var(--text-subtle);
}

.no-results i {
    font-size: 2.5rem;
    margin-bottom: 14px;
    display: block;
    opacity: 0.4;
}

.no-results p {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* ===== PAGINATION ===== */
.load-more-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px 16px 40px;
}

.pagination-info {
    font-size: 0.78rem;
    color: var(--text-subtle);
    font-weight: 500;
}

.pagination-btns {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}

.page-btn {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    color: var(--text-muted);
    min-width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    font-family: inherit;
    padding: 0 10px;
}

.page-btn:hover:not(:disabled) {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.page-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.page-indicator {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 600;
    padding: 0 8px;
    white-space: nowrap;
}

.load-more-btn {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    padding: 0 16px;
    font-weight: 700;
}

.load-more-btn:hover:not(:disabled) {
    background: var(--primary-light);
}

/* ===== RESPONSIVE ===== */
@media (min-width: 480px) {
    .products-grid { grid-template-columns: repeat(3, 1fr); }
}

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

    .cart-sidebar {
        left: auto;
        right: 0;
        top: 0;
        bottom: 0;
        max-height: 100vh;
        width: 400px;
        border-radius: var(--radius-xl) 0 0 var(--radius-xl);
        border-bottom: 1px solid var(--glass-border);
        border-right: none;
        transform: translateX(110%);
    }

    .cart-sidebar::before { display: none; }

    .cart-sidebar.open {
        transform: translateX(0);
    }
}

@media (min-width: 1024px) {
    .products-grid { grid-template-columns: repeat(5, 1fr); }
    .main-content { padding: 8px 20px 0; }
    .search-container { padding: 12px 20px; }
    .categories-wrapper { padding: 4px 20px 12px; }
}
