/* ============================================================
   Maison Shop — Main Stylesheet
   Aesthetic: GitHub Light + Clean Editorial
   Fonts: Signika (display & UI) 
   Colors: Light gray/white background, green accents
   ============================================================ */

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
    /* GitHub Light color palette */
    --bg-primary:     #ffffff;
    --bg-secondary:   #f6f8fa;
    --bg-tertiary:    #f0f2f5;
    --surface:        #ffffff;
    --ink:            #1f2328;
    --ink-soft:       #24292f;
    --ink-muted:      #656d76;
    --border:         #d0d7de;
    --border-dark:    #c0c9d2;
    
    /* Green accents (GitHub-style green) */
    --green:          #2da44e;
    --green-light:    #40c463;
    --green-pale:     #dafbe1;
    --green-dark:     #2c974b;
    
    /* Accent colors */
    --accent:         #0969da;
    --success:        #1a7f37;
    --error:          #cf222e;
    --warning:        #9a6700;
    
    /* Shadows */
    --shadow-sm:      0 1px 0 rgba(0,0,0,0.04);
    --shadow-md:      0 3px 6px rgba(0,0,0,0.05);
    --shadow-lg:      0 8px 24px rgba(0,0,0,0.08);
    --shadow-border:  inset 0 1px 0 rgba(0,0,0,0.02);
    
    /* Layout */
    --header-h:       60px;
    --radius:         6px;
    --radius-lg:      8px;
    --tr:             all .2s ease;
    --tr-slow:        all .3s ease;
    
    /* Fonts - Signika family */
    --font-display:   'Signika', 'Segoe UI', -apple-system, system-ui, sans-serif;
    --font-ui:        'Signika', 'Segoe UI', -apple-system, system-ui, sans-serif;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { 
    scroll-behavior: smooth; 
    -webkit-text-size-adjust: 100%; 
    overflow-x: hidden;
    width: 100%;
}
body {
    font-family: var(--font-ui);
    background: var(--bg-secondary);
    color: var(--ink);
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, select, textarea { font-family: inherit; }
ul { list-style: none; }

/* ── Typography ────────────────────────────────────────────── */
.display-title {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

/* ── Header ────────────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 500;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    transition: box-shadow .3s ease;
    overflow: visible;
}
.site-header.scrolled { box-shadow: var(--shadow-md); }

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    overflow: visible;
}
@media (min-width: 768px) { .header-inner { padding: 0 24px; gap: 20px; } }

/* Center header on desktop */
@media (min-width: 992px) {
    .header-inner {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        gap: 24px;
    }
    
    .logo {
        justify-self: center;
        margin: 0;
    }
    
    .header-search {
        justify-self: start;
        max-width: 320px;
        margin: 0;
    }
    
    .header-actions {
        justify-self: end;
        margin: 0;
    }
}

.logo {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    text-decoration: none;
}
.logo-icon {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(140deg, #f7d774 0%, #f0b429 100%);
    color: #1f2933;
    box-shadow: 0 6px 14px rgba(240, 180, 41, 0.24);
    border: 1px solid rgba(31, 41, 51, 0.1);
    flex-shrink: 0;
}
.logo-icon i {
    font-size: 0.95rem;
    transform: translateY(0.5px);
}
.logo-mark {
    color: var(--green);
    font-size: 1rem;
}
@keyframes spin-slow { to { transform: rotate(360deg); } }
.logo-text {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--ink);
}
@media (min-width: 480px) { .logo-text { font-size: 1.4rem; } }

/* ── Desktop search bar ─── */
.header-search {
    flex: 1;
    max-width: 580px;
    position: relative;
    display: none;
    overflow: visible;
}
@media (min-width: 768px) { 
    .header-search { 
        display: block;
        position: relative;
    }
}

.search-wrap { 
    position: relative;
    overflow: visible;
    padding: 8px;
}
.search-icon {
    position: absolute; left: 12px; top: 50%;
    transform: translateY(-50%);
    color: var(--ink-muted); font-size: .9rem; pointer-events: none;
}
.search-input {
    width: 100%;
    padding: 8px 36px 8px 36px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: .875rem;
    color: var(--ink);
    transition: var(--tr);
    outline: none;
}
.search-input:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(45,164,78,.1);
}
.search-clear {
    position: absolute; right: 12px; top: 50%;
    transform: translateY(-50%);
    color: var(--ink-muted); font-size: .85rem; padding: 4px;
}
.search-clear:hover { color: var(--ink); }

/* Search dropdown - Fixed z-index */
.search-dropdown {
    position: absolute; 
    top: calc(100% + 8px); 
    left: 0; 
    right: 0;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: none;
    overflow: hidden;
    z-index: 9999;
    max-height: 70vh;
    overflow-y: auto;
}
.search-dropdown.open { display: block; }
.suggest-item {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 16px;
    cursor: pointer;
    transition: background .15s;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
}
.suggest-item:last-child { border-bottom: none; }
.suggest-item:hover { background: var(--bg-secondary); }
.suggest-thumb {
    width: 44px; height: 44px; object-fit: cover;
    border-radius: var(--radius); flex-shrink: 0;
    background: var(--bg-tertiary);
}
.suggest-name { 
    font-size: .85rem; 
    font-weight: 700;
    color: var(--ink);
}
.suggest-price { 
    font-size: .8rem; 
    color: var(--green); 
    font-weight: 600;
    margin-top: 1px; 
}
.suggest-cat { font-size: .72rem; color: var(--ink-muted); margin-top: 1px; }
.suggest-footer {
    padding: 10px 16px;
    font-size: .8rem;
    color: var(--green);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
}
.suggest-footer:hover { background: var(--bg-secondary); }

/* ── Header actions ─── */
.header-actions {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}
@media (min-width: 768px) { .header-actions { gap: 4px; } }

.header-action {
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 1px;
    padding: 6px 10px;
    color: var(--ink-soft);
    border-radius: var(--radius-lg);
    font-size: .7rem;
    font-weight: 500;
    letter-spacing: .04em;
    transition: var(--tr);
    position: relative;
    background: none;
    text-decoration: none;
}
@media (min-width: 768px) { .header-action { padding: 8px 14px; } }
.header-action i { font-size: 1.15rem; }
.header-action:hover { background: var(--bg-secondary); color: var(--green); }
.action-label { display: none; }
@media (min-width: 900px) { .action-label { display: block; } }

.cart-badge {
    position: absolute; top: 2px; right: 4px;
    min-width: 18px; height: 18px;
    background: var(--green);
    color: white;
    border-radius: 20px;
    font-size: .65rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    padding: 0 4px; line-height: 1;
    animation: badge-pop .3s cubic-bezier(.34,1.56,.64,1);
}
@keyframes badge-pop { from { transform: scale(0); } to { transform: scale(1); } }

/* ── Mobile menu button ─── */
.mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    font-size: 1.3rem;
    color: var(--ink);
    border-radius: var(--radius);
    flex-shrink: 0;
    transition: var(--tr);
}
.mobile-menu-btn:hover { background: var(--bg-secondary); }
@media (min-width: 768px) { .mobile-menu-btn { display: none; } }

/* ── Off-canvas mobile nav ─── */
.mobile-nav-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,.4);
    z-index: 800;
    backdrop-filter: blur(2px);
}
.mobile-nav-overlay.open { display: block; }

.mobile-nav-drawer {
    position: fixed; top: 0; left: 0; bottom: 0;
    width: min(300px, 85vw);
    background: var(--bg-primary);
    z-index: 900;
    display: flex; flex-direction: column;
    transform: translateX(-100%);
    transition: transform .32s cubic-bezier(.4,0,.2,1);
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
}
.mobile-nav-drawer.open { transform: translateX(0); }

.mobile-nav-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-secondary);
    flex-shrink: 0;
}
.mobile-nav-close {
    width: 36px; height: 36px; border-radius: 50%;
    display: grid; place-items: center;
    font-size: 1rem; color: var(--ink-muted);
    transition: var(--tr);
}
.mobile-nav-close:hover { background: var(--bg-tertiary); color: var(--ink); }

.mobile-nav-links { flex: 1; padding: 8px 0; }
.mobile-nav-link {
    display: flex; align-items: center; gap: 12px;
    padding: 13px 20px;
    color: var(--ink-soft);
    font-size: .9rem; font-weight: 500;
    text-decoration: none;
    transition: var(--tr);
    border-left: 3px solid transparent;
}
.mobile-nav-link i { font-size: 1rem; color: var(--ink-muted); width: 20px; }
.mobile-nav-link:hover { 
    background: var(--bg-secondary); 
    color: var(--green); 
    border-left-color: var(--green); 
}
.mobile-nav-link:hover i { color: var(--green); }

.mobile-nav-section {
    font-size: .65rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .06em; color: var(--ink-muted);
    padding: 14px 20px 4px;
}

.mobile-nav-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border);
    background: var(--bg-secondary);
    flex-shrink: 0;
}

/* ── Flash bar ──────────────────────────────────────────────── */
.flash-bar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 24px;
    font-size: .875rem;
    font-weight: 500;
}
.flash-error { background: #ffebe9; color: var(--error); border-bottom: 1px solid #ffc1c0; }
.flash-bar button { color: inherit; opacity: .6; padding: 4px; }
.flash-bar button:hover { opacity: 1; }

/* ── Toast ──────────────────────────────────────────────────── */
.toast {
    position: fixed; bottom: 28px; right: 28px; z-index: 9999;
    background: var(--ink);
    color: white;
    padding: 14px 20px;
    border-radius: var(--radius-lg);
    display: flex; align-items: center; gap: 10px;
    font-size: .875rem; font-weight: 500;
    box-shadow: var(--shadow-lg);
    transform: translateY(120%);
    opacity: 0;
    transition: transform .35s cubic-bezier(.34,1.56,.64,1), opacity .25s ease;
    max-width: 360px;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast-icon { color: var(--green); font-size: 1rem; }
.toast.error .toast-icon { color: var(--error); }

/* ── Cart Drawer ────────────────────────────────────────────── */
.cart-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,.4);
    z-index: 600; opacity: 0; pointer-events: none;
    transition: opacity .3s ease;
    backdrop-filter: blur(2px);
}
.cart-overlay.open { opacity: 1; pointer-events: all; }

.cart-drawer {
    position: fixed; top: 0; right: 0; bottom: 0;
    width: min(440px, 95vw);
    background: var(--bg-primary);
    z-index: 700;
    display: flex; flex-direction: column;
    transform: translateX(100%);
    transition: transform .35s cubic-bezier(.4,0,.2,1);
    box-shadow: var(--shadow-lg);
}
.cart-drawer.open { transform: translateX(0); }

.cart-drawer-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
}
.cart-drawer-title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    display: flex; align-items: center; gap: 10px;
}
.cart-count-chip {
    font-family: var(--font-ui);
    font-size: .72rem; font-weight: 700;
    background: var(--green-pale); color: var(--green);
    padding: 2px 8px; border-radius: 20px;
}
.cart-close {
    width: 36px; height: 36px; border-radius: 50%;
    display: grid; place-items: center;
    color: var(--ink-muted); font-size: 1rem;
    transition: var(--tr);
}
.cart-close:hover { background: var(--bg-secondary); color: var(--ink); }

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

.cart-empty-state {
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; gap: 12px;
    min-height: 300px; text-align: center;
    color: var(--ink-muted);
}
.cart-empty-state i { font-size: 3rem; opacity: .3; }
.cart-empty-state p { font-size: .9rem; }

.cart-items-list { padding: 12px 0; }
.cart-item {
    display: flex; gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    animation: slide-in .25s ease;
}
@keyframes slide-in { from { opacity:0; transform:translateX(12px); } }
.cart-item-img {
    width: 72px; height: 72px; object-fit: cover;
    border-radius: var(--radius); flex-shrink: 0;
    background: var(--bg-tertiary);
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name {
    font-size: .875rem; 
    font-weight: 700;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    margin-bottom: 4px;
}
.cart-item-price { 
    font-size: .82rem; 
    color: var(--green); 
    font-weight: 600; 
}
.cart-item-controls {
    display: flex; align-items: center; gap: 8px; margin-top: 10px;
}
.qty-btn {
    width: 28px; height: 28px; border-radius: 50%;
    border: 1px solid var(--border);
    display: grid; place-items: center; font-size: .75rem;
    transition: var(--tr); color: var(--ink);
}
.qty-btn:hover { border-color: var(--green); color: var(--green); }
.qty-value { font-size: .875rem; font-weight: 600; min-width: 24px; text-align: center; }
.cart-item-remove {
    color: var(--ink-muted); font-size: .8rem; margin-left: auto;
    padding: 4px; transition: var(--tr);
}
.cart-item-remove:hover { color: var(--error); }

.cart-drawer-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--border);
    background: var(--bg-secondary);
}
.cart-totals { margin-bottom: 16px; }
.cart-total-row {
    display: flex; justify-content: space-between;
    font-size: .875rem; padding: 4px 0;
    color: var(--ink-soft);
}
.cart-total-row.shipping { color: var(--ink-muted); font-size: .82rem; }
.cart-total-row.grand {
    font-weight: 700; font-size: 1rem; color: var(--ink);
    padding-top: 10px; margin-top: 6px;
    border-top: 1px solid var(--border-dark);
}
.cart-checkout-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%;
    padding: 14px;
    background: var(--green);
    color: white;
    border-radius: var(--radius);
    font-size: .9rem; font-weight: 600;
    letter-spacing: .04em;
    transition: var(--tr);
    margin-bottom: 10px;
}
.cart-checkout-btn:hover { background: var(--green-dark); }
.cart-view-link {
    display: block; text-align: center;
    font-size: .8rem; color: var(--ink-muted);
    text-decoration: underline;
}
.cart-view-link:hover { color: var(--green); }

/* ── Product Card ───────────────────────────────────────────── */
.product-card {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--tr-slow);
    position: relative;
    display: flex; flex-direction: column;
}
.product-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-dark);
}

.product-card-img {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--bg-tertiary);
}
.product-card-img img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .6s cubic-bezier(.4,0,.2,1);
}
.product-card:hover .product-card-img img { transform: scale(1.05); }

.product-card-actions {
    position: absolute; bottom: -48px; left: 0; right: 0;
    display: flex; gap: 6px; padding: 8px;
    transition: bottom .28s ease;
}
.product-card:hover .product-card-actions { bottom: 8px; }

.card-action-btn {
    flex: 1; padding: 9px 6px;
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(6px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: .75rem; font-weight: 600;
    color: var(--ink);
    display: flex; align-items: center; justify-content: center; gap: 5px;
    transition: var(--tr);
}
.card-action-btn:hover { background: var(--green); color: white; border-color: var(--green); }
.card-action-btn.wishlist-btn { flex: 0 0 38px; padding: 9px; }
.card-action-btn.wishlisted { color: var(--error); background: #ffebe9; border-color: #ffc1c0; }

.out-of-stock-badge {
    position: absolute; top: 10px; left: 10px;
    background: rgba(0,0,0,.75);
    color: white; font-size: .68rem; font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase;
    padding: 3px 8px; border-radius: 3px;
}
.featured-badge {
    position: absolute; top: 10px; right: 10px;
    background: var(--green);
    color: white; font-size: .65rem; font-weight: 700;
    letter-spacing: .06em; text-transform: uppercase;
    padding: 3px 8px; border-radius: 3px;
}

.product-card-body { padding: 14px 16px 18px; flex: 1; display: flex; flex-direction: column; }
.product-category {
    font-size: .68rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: .06em; color: var(--ink-muted); margin-bottom: 5px;
}
.product-name {
    font-family: var(--font-display);
    font-size: 1rem; 
    font-weight: 700;
    color: var(--ink); 
    line-height: 1.35;
    margin-bottom: 8px; 
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-rating {
    display: flex; align-items: center; gap: 5px;
    margin-bottom: 8px;
}
.stars { color: var(--green); font-size: .8rem; letter-spacing: 1px; }
.review-count { font-size: .72rem; color: var(--ink-muted); }
.product-price {
    font-size: 1.1rem; 
    font-weight: 700;
    color: var(--green);
    font-variant-numeric: tabular-nums;
}
.product-price-currency { font-size: .8rem; font-weight: 400; color: var(--ink-muted); vertical-align: super; }

/* ── Product Grid ───────────────────────────────────────────── */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}
@media (max-width: 900px)  { .product-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (max-width: 640px)  { .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
@media (max-width: 480px)  { .product-grid { grid-template-columns: 1fr; gap: 16px; } }

/* ── Buttons ────────────────────────────────────────────────── */
.btn-primary {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 24px;
    background: var(--green);
    color: white;
    border-radius: var(--radius);
    font-size: .875rem; font-weight: 600;
    letter-spacing: .02em;
    transition: var(--tr);
    border: 2px solid var(--green);
}
.btn-primary:hover { background: transparent; color: var(--green); }

.btn-outline {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 24px;
    background: transparent;
    color: var(--ink);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: .875rem; font-weight: 600;
    letter-spacing: .02em;
    transition: var(--tr);
}
.btn-outline:hover { background: var(--green); color: white; border-color: var(--green); }

.btn-gold {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 24px;
    background: var(--green);
    color: white;
    border-radius: var(--radius);
    font-size: .875rem; font-weight: 600;
    letter-spacing: .02em;
    transition: var(--tr);
    border: 2px solid var(--green);
}
.btn-gold:hover { background: transparent; color: var(--green); }

.btn-primary-sm {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 16px;
    background: var(--green); 
    color: white;
    border-radius: var(--radius);
    font-size: .8rem; font-weight: 600;
    transition: var(--tr);
}
.btn-primary-sm:hover { background: var(--green-dark); }

/* ── Section utilities ──────────────────────────────────────── */
.section { padding: 64px 0; }
.section-sm { padding: 40px 0; }
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}
@media (max-width: 640px) { .container { padding: 0 16px; } }

.section-header {
    display: flex; align-items: flex-end; justify-content: space-between;
    margin-bottom: 32px; flex-wrap: wrap; gap: 12px;
}
.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2rem);
    font-weight: 600;
    letter-spacing: -0.01em;
}
.section-subtitle {
    font-size: .875rem; color: var(--ink-muted); margin-top: 6px;
}
.section-link {
    font-size: .8rem; font-weight: 600;
    letter-spacing: .04em; text-transform: uppercase;
    color: var(--green); 
    text-decoration: none;
    display: flex; align-items: center; gap: 5px;
    transition: gap .2s ease;
}
.section-link:hover { gap: 9px; }

/* ── Carousel ───────────────────────────────────────────────── */
.carousel-wrap {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
}
.carousel-track {
    display: flex;
    transition: transform .5s cubic-bezier(.4,0,.2,1);
}
.carousel-slide {
    flex: 0 0 100%;
    position: relative;
    min-height: 480px;
    display: flex; align-items: center;
    overflow: hidden;
    background: var(--bg-tertiary);
}
@media (max-width: 640px) { .carousel-slide { min-height: 360px; } }
.carousel-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(19, 24, 23, .82) 0%, rgba(19, 24, 23, .58) 34%, rgba(19, 24, 23, .18) 68%, rgba(19, 24, 23, .08) 100%),
        linear-gradient(180deg, rgba(0, 0, 0, .18) 0%, rgba(0, 0, 0, .3) 100%);
}
.carousel-slide-img {
    position: absolute; inset: 0;
    width: 100%; height: 100%; object-fit: cover;
    opacity: .78;
    transform: scale(1.02);
    filter: saturate(.92) contrast(.92) brightness(.82);
}
.carousel-content {
    position: relative; z-index: 2;
    padding: 48px 64px;
    max-width: 560px;
    margin-left: 28px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(14, 18, 18, .56), rgba(14, 18, 18, .28));
    backdrop-filter: blur(6px);
    box-shadow: 0 24px 80px rgba(0, 0, 0, .18);
}
@media (max-width: 640px) {
    .carousel-content {
        padding: 30px 24px;
        margin: 18px;
        max-width: calc(100% - 36px);
        border-radius: 22px;
    }
}
.carousel-eyebrow {
    font-size: .72rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .11em; color: #d8f5df; margin-bottom: 12px;
    text-shadow: 0 1px 2px rgba(0,0,0,.35);
}
.carousel-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 600; 
    line-height: 1.2;
    color: #fff; 
    margin-bottom: 16px;
    text-shadow: 0 6px 24px rgba(0,0,0,.4);
}
.carousel-desc {
    font-size: .95rem;
    color: rgba(255,255,255,.82);
    margin-bottom: 28px;
    line-height: 1.5;
    text-shadow: 0 2px 10px rgba(0,0,0,.28);
}

.carousel-dots {
    position: absolute; bottom: 20px; left: 50%;
    transform: translateX(-50%);
    display: flex; gap: 7px; z-index: 3;
}
.carousel-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--border-dark); border: none;
    transition: var(--tr); cursor: pointer;
}
.carousel-dot.active { background: var(--green); width: 22px; border-radius: 4px; }

.carousel-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 40px; height: 40px; border-radius: var(--radius);
    background: var(--bg-primary);
    border: 1px solid var(--border);
    color: var(--ink);
    display: grid; place-items: center; z-index: 3;
    transition: var(--tr); font-size: 1rem;
}
.carousel-nav:hover { background: var(--green); color: white; border-color: var(--green); }
.carousel-prev { left: 16px; }
.carousel-next { right: 16px; }

/* ── Category Pills ─────────────────────────────────────────── */
.category-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.category-pill {
    padding: 6px 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 30px;
    font-size: .8rem; font-weight: 500;
    color: var(--ink-soft); 
    cursor: pointer;
    transition: var(--tr);
    text-decoration: none;
}
.category-pill:hover, .category-pill.active {
    background: var(--green); 
    color: white;
    border-color: var(--green);
}
.category-pill .pill-count {
    font-size: .68rem; 
    color: var(--ink-muted); 
    margin-left: 4px;
}
.category-pill.active .pill-count { color: rgba(255,255,255,.7); }

/* ── Filter sidebar — Desktop ────────────────────────────────── */
.shop-layout { display: flex; gap: 32px; align-items: flex-start; }
.filter-sidebar {
    width: 260px; flex-shrink: 0;
    position: sticky; top: calc(var(--header-h) + 16px);
}
.shop-main { flex: 1; min-width: 0; }

@media (max-width: 900px) {
    .filter-sidebar { display: none; }
}

.filter-panel {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.filter-section {
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
}
.filter-section:last-child { border-bottom: none; }
.filter-title {
    font-size: .75rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .06em; color: var(--ink-muted);
    margin-bottom: 14px;
}
.filter-option {
    display: flex; align-items: center; gap: 10px;
    padding: 6px 0; cursor: pointer; font-size: .875rem;
    color: var(--ink-soft); transition: color .15s;
}
.filter-option:hover { color: var(--green); }
.filter-option input[type=radio], .filter-option input[type=checkbox] {
    accent-color: var(--green); width: 16px; height: 16px; cursor: pointer;
}
.filter-option-count { font-size: .72rem; color: var(--ink-muted); margin-left: auto; }

/* Price range */
.price-range { padding: 4px 0; }
.price-range-inputs {
    display: flex; gap: 8px; align-items: center; margin-top: 12px;
}
.price-range-input {
    flex: 1; padding: 8px 10px;
    border: 1px solid var(--border); 
    border-radius: var(--radius);
    font-size: .85rem; 
    color: var(--ink); 
    background: var(--bg-secondary);
    outline: none;
}
.price-range-input:focus { border-color: var(--green); }
.price-range-sep { color: var(--ink-muted); font-size: .8rem; }
.price-apply-btn {
    width: 100%; margin-top: 10px;
    padding: 9px; 
    background: var(--green); 
    color: white;
    border-radius: var(--radius); 
    font-size: .82rem; 
    font-weight: 600;
    transition: var(--tr);
}
.price-apply-btn:hover { background: var(--green-dark); }

/* ── Off-canvas Filter Drawer (mobile) ────────────────────────── */
.filter-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,.4);
    z-index: 700;
    backdrop-filter: blur(2px);
}
.filter-overlay.open { display: block; }

.filter-drawer {
    position: fixed; top: 0; right: 0; bottom: 0;
    width: min(320px, 92vw);
    background: var(--bg-primary);
    z-index: 800;
    display: flex; flex-direction: column;
    transform: translateX(100%);
    transition: transform .32s cubic-bezier(.4,0,.2,1);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.filter-drawer.open { transform: translateX(0); }

.filter-drawer-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-secondary);
    flex-shrink: 0;
}
.filter-drawer-title {
    font-family: var(--font-display);
    font-size: 1.15rem; 
    font-weight: 600;
}
.filter-drawer-close {
    width: 36px; height: 36px; border-radius: 50%;
    display: grid; place-items: center;
    font-size: 1rem; color: var(--ink-muted);
    transition: var(--tr);
}
.filter-drawer-close:hover { background: var(--bg-tertiary); color: var(--ink); }

.filter-drawer-body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.filter-drawer-body .filter-panel {
    border: none;
    border-radius: 0;
}

.filter-drawer-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border);
    background: var(--bg-secondary);
    display: flex; gap: 10px;
    flex-shrink: 0;
}
.filter-apply-btn {
    flex: 1; padding: 12px;
    background: var(--green); 
    color: white;
    border-radius: var(--radius); 
    font-size: .875rem; 
    font-weight: 700;
    transition: var(--tr);
}
.filter-apply-btn:hover { background: var(--green-dark); }
.filter-reset-btn {
    padding: 12px 18px;
    background: transparent; 
    color: var(--ink-muted);
    border: 1px solid var(--border);
    border-radius: var(--radius); 
    font-size: .875rem;
    transition: var(--tr);
}
.filter-reset-btn:hover { border-color: var(--green); color: var(--green); }

/* ── Sort bar + mobile filter trigger ────────────────────────── */
.sort-bar {
    display: flex; align-items: center; justify-content: space-between;
    gap: 10px; margin-bottom: 20px; flex-wrap: wrap;
}
.result-count { font-size: .875rem; color: var(--ink-muted); }
.sort-bar-right { display: flex; align-items: center; gap: 8px; }

.filter-trigger-btn {
    display: none;
    align-items: center; gap: 6px;
    padding: 8px 14px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: .82rem; font-weight: 600;
    color: var(--ink);
    transition: var(--tr);
    cursor: pointer;
    position: relative;
}
.filter-trigger-btn:hover { border-color: var(--green); color: var(--green); }
.filter-trigger-badge {
    position: absolute; top: -6px; right: -6px;
    min-width: 18px; height: 18px;
    background: var(--green); 
    color: white;
    border-radius: 20px; 
    font-size: .62rem; 
    font-weight: 700;
    display: none; 
    align-items: center; 
    justify-content: center;
    padding: 0 4px;
}
.filter-trigger-badge.show { display: flex; }
@media (max-width: 900px) { .filter-trigger-btn { display: flex; } }

.sort-select {
    padding: 8px 30px 8px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-primary);
    font-size: .85rem; 
    color: var(--ink);
    appearance: none; 
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z' fill='%23656d76'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    cursor: pointer; 
    outline: none; 
    max-width: 160px;
}
.sort-select:focus { border-color: var(--green); }

/* ── Pagination ─────────────────────────────────────────────── */
.pagination {
    display: flex; align-items: center; justify-content: center;
    gap: 6px; margin-top: 40px; flex-wrap: wrap;
}
.page-btn {
    width: 36px; height: 36px; border-radius: var(--radius);
    border: 1px solid var(--border);
    display: grid; place-items: center;
    font-size: .875rem; font-weight: 500;
    color: var(--ink-soft); 
    background: var(--bg-primary);
    cursor: pointer; 
    transition: var(--tr); 
    text-decoration: none;
}
.page-btn:hover { border-color: var(--green); color: var(--green); }
.page-btn.active { background: var(--green); color: white; border-color: var(--green); }
.page-btn.disabled { opacity: .4; pointer-events: none; }

/* ── Loading spinner ────────────────────────────────────────── */
.spinner {
    width: 36px; height: 36px;
    border: 3px solid var(--border);
    border-top-color: var(--green);
    border-radius: 50%;
    animation: spin .7s linear infinite;
    margin: 60px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Checkout form ──────────────────────────────────────────── */
.checkout-layout { display: grid; grid-template-columns: 1fr 380px; gap: 32px; }
@media (max-width: 860px) { .checkout-layout { grid-template-columns: 1fr; } }

.form-section {
    background: var(--bg-primary); 
    border: 1px solid var(--border);
    border-radius: var(--radius-lg); 
    padding: 28px 32px; 
    margin-bottom: 20px;
}
.form-section-title {
    font-family: var(--font-display);
    font-size: 1.2rem; 
    font-weight: 600; 
    margin-bottom: 22px;
    padding-bottom: 14px; 
    border-bottom: 1px solid var(--border);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.form-group { margin-bottom: 18px; }
.form-label {
    display: block; font-size: .78rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: .04em;
    color: var(--ink-muted); margin-bottom: 7px;
}
.form-control {
    width: 100%; padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius); 
    font-size: .9rem;
    color: var(--ink); 
    background: var(--bg-secondary);
    transition: var(--tr); 
    outline: none;
}
.form-control:focus { 
    border-color: var(--green); 
    background: var(--bg-primary); 
    box-shadow: 0 0 0 3px rgba(45,164,78,.1); 
}
.form-control.error { border-color: var(--error); }

.payment-options { display: flex; flex-direction: column; gap: 10px; }
.payment-option {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--border); 
    border-radius: var(--radius);
    cursor: pointer; 
    transition: var(--tr);
}
.payment-option:has(input:checked) { 
    border-color: var(--green); 
    background: var(--green-pale); 
}
.payment-option input { accent-color: var(--green); }
.payment-option-label { font-size: .9rem; font-weight: 600; }
.payment-option-desc { font-size: .75rem; color: var(--ink-muted); margin-top: 1px; }

.order-summary-sticky {
    position: sticky; top: calc(var(--header-h) + 16px);
}
.order-summary-card {
    background: var(--bg-primary); 
    border: 1px solid var(--border);
    border-radius: var(--radius-lg); 
    padding: 24px;
}
.summary-item {
    display: flex; gap: 12px; margin-bottom: 14px; align-items: center;
}
.summary-item-img {
    width: 54px; height: 54px; object-fit: cover;
    border-radius: var(--radius); 
    background: var(--bg-tertiary); 
    flex-shrink: 0;
}
.summary-item-name { 
    font-size: .85rem; 
    font-weight: 700; 
}
.summary-item-qty  { font-size: .78rem; color: var(--ink-muted); }
.summary-item-price{ 
    font-size: .875rem; 
    font-weight: 600; 
    color: var(--green);
    margin-left: auto; 
    white-space: nowrap; 
}
.summary-divider { border: none; border-top: 1px solid var(--border); margin: 16px 0; }
.summary-row {
    display: flex; justify-content: space-between;
    font-size: .875rem; padding: 5px 0; color: var(--ink-soft);
}
.summary-row.total { font-weight: 700; font-size: 1rem; color: var(--ink); }
.summary-row.free-ship { color: var(--green); font-size: .8rem; }
.place-order-btn {
    width: 100%; padding: 14px;
    background: var(--green); 
    color: white;
    border-radius: var(--radius); 
    font-size: .95rem; 
    font-weight: 700;
    letter-spacing: .02em; 
    margin-top: 20px;
    transition: var(--tr); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 8px;
}
.place-order-btn:hover { background: var(--green-dark); }
.place-order-btn:disabled { opacity: .5; cursor: not-allowed; }

/* ── Order confirmation ─────────────────────────────────────── */
.confirm-hero {
    text-align: center; padding: 64px 24px 48px;
}
.confirm-icon {
    width: 80px; height: 80px; border-radius: 50%;
    background: var(--green-pale); 
    margin: 0 auto 20px;
    display: grid; 
    place-items: center; 
    font-size: 2rem; 
    color: var(--green);
    animation: pop .5s cubic-bezier(.34,1.56,.64,1);
}
@keyframes pop { from { transform: scale(0); opacity:0; } to { transform:scale(1); opacity:1; } }
.confirm-title {
    font-family: var(--font-display);
    font-size: 2rem; 
    font-weight: 600; 
    margin-bottom: 8px;
}
.confirm-number { font-size: .95rem; color: var(--ink-muted); }
.confirm-number strong { color: var(--green); font-size: 1.1rem; font-variant-numeric: tabular-nums; }

/* ── Product detail page ────────────────────────────────────── */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 48px 0; }
@media (max-width: 860px) { .product-detail { grid-template-columns: 1fr; gap: 32px; } }

.gallery-main {
    aspect-ratio: 1; 
    border-radius: var(--radius-lg); 
    overflow: hidden;
    background: var(--bg-tertiary); 
    border: 1px solid var(--border);
}
.gallery-main img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .6s ease;
}
.gallery-main img:hover { transform: scale(1.04); }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.gallery-thumb {
    width: 68px; height: 68px; object-fit: cover;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer; 
    transition: var(--tr);
    background: var(--bg-tertiary);
}
.gallery-thumb.active { border-color: var(--green); }
.gallery-thumb:hover { border-color: var(--border-dark); }

.detail-badge { display: inline-block; }
.detail-category {
    font-size: .72rem; 
    font-weight: 700; 
    text-transform: uppercase;
    letter-spacing: .08em; 
    color: var(--green); 
    margin-bottom: 10px;
}
.detail-title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.2rem); 
    font-weight: 700;
    line-height: 1.2; 
    margin-bottom: 14px;
}
.detail-rating { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.detail-price {
    font-size: 2rem; 
    font-weight: 700;
    color: var(--green); 
    margin-bottom: 22px;
    font-variant-numeric: tabular-nums;
}
.detail-description {
    font-size: .9rem; 
    line-height: 1.6;
    color: var(--ink-soft); 
    margin-bottom: 28px;
    padding-bottom: 28px; 
    border-bottom: 1px solid var(--border);
}
.qty-selector { display: flex; align-items: center; gap: 0; margin-bottom: 24px; }
.qty-selector .qty-btn {
    width: 40px; height: 44px; border-radius: 0;
    border: 1px solid var(--border); 
    font-size: .9rem;
}
.qty-selector .qty-btn:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.qty-selector .qty-btn:last-child  { border-radius: 0 var(--radius) var(--radius) 0; }
.qty-selector .qty-value {
    width: 56px; height: 44px;
    border-top: 1px solid var(--border); 
    border-bottom: 1px solid var(--border);
    display: grid; 
    place-items: center;
    font-size: .9rem; 
    font-weight: 600;
}
.detail-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.add-to-cart-lg {
    flex: 1; min-width: 180px; padding: 14px 24px;
    background: var(--green); 
    color: white;
    border-radius: var(--radius); 
    font-size: .9rem; 
    font-weight: 700;
    letter-spacing: .02em; 
    transition: var(--tr);
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 8px;
}
.add-to-cart-lg:hover { background: var(--green-dark); }
.wishlist-detail-btn {
    width: 54px; height: 54px; border-radius: var(--radius);
    border: 2px solid var(--border); 
    color: var(--ink-muted);
    display: grid; 
    place-items: center; 
    font-size: 1.1rem;
    transition: var(--tr);
}
.wishlist-detail-btn:hover, .wishlist-detail-btn.wishlisted { 
    color: var(--error); 
    border-color: #ffc1c0; 
    background: #ffebe9; 
}

.stock-indicator {
    font-size: .8rem; 
    font-weight: 600; 
    margin-bottom: 20px;
}
.stock-ok   { color: var(--green); }
.stock-low  { color: var(--warning); }
.stock-none { color: var(--error); }

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
    background: var(--ink);
    color: var(--bg-secondary);
    margin-top: 80px;
}
.footer-topband {
    border-bottom: 1px solid rgba(255,255,255,.08);
    background:
        radial-gradient(circle at top left, rgba(45,164,78,.18), transparent 42%),
        linear-gradient(135deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
}
.footer-topband-inner {
    width: 100%;
    margin: 0;
    padding: 18px 32px;
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    align-items: center;
    box-sizing: border-box;
}
.footer-topband-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 999px;
    background: rgba(255,255,255,.03);
    color: rgba(255,255,255,.82);
    font-size: .82rem;
}
.footer-topband-item i { color: var(--green); }
.footer-inner {
    width: 100%;
    margin: 0;
    padding: 56px 32px 40px;
    display: flex; 
    gap: 64px; 
    flex-wrap: wrap;
    box-sizing: border-box;
}
.footer-brand { flex: 1.15; min-width: 260px; }
.footer-brand .logo-mark { color: var(--green); }
.footer-brand .logo-text { color: white; }
.footer-tagline {
    font-size: .92rem;
    line-height: 1.75;
    color: rgba(255,255,255,.62);
    margin-top: 14px;
    max-width: 34rem;
}
.footer-pill-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}
.footer-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.09);
    background: rgba(255,255,255,.03);
    color: rgba(255,255,255,.76);
    font-size: .78rem;
}
.footer-pill i { color: var(--green); }
.footer-contact-cards {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}
.footer-contact-card {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.04);
    color: rgba(255,255,255,.86);
    font-size: .84rem;
    text-decoration: none;
    transition: var(--tr);
}
.footer-contact-card:hover {
    border-color: rgba(45,164,78,.45);
    color: white;
    transform: translateY(-1px);
}
.footer-contact-card i { color: var(--green); font-size: 1rem; }
.footer-links { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-col {
    min-width: 180px;
    max-width: 240px;
}
.footer-col h4 {
    font-size: .72rem; 
    font-weight: 700; 
    text-transform: uppercase;
    letter-spacing: .08em; 
    color: rgba(255,255,255,.5); 
    margin-bottom: 14px;
}
.footer-col a {
    display: block; 
    font-size: .875rem; 
    color: rgba(255,255,255,.6);
    margin-bottom: 10px; 
    transition: color .15s;
    text-decoration: none;
}
.footer-col a:hover { color: var(--green); }
.footer-note {
    font-size: .84rem;
    line-height: 1.7;
    color: rgba(255,255,255,.56);
    margin-bottom: 12px;
}
.footer-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.footer-stat:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.footer-stat-label {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: rgba(255,255,255,.42);
}
.footer-stat-value {
    font-size: .88rem;
    color: rgba(255,255,255,.82);
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    width: 100%;
    padding: 20px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    font-size: .8rem; 
    color: rgba(255,255,255,.35);
    box-sizing: border-box;
}
.footer-bottom-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.footer-bottom-links a {
    color: rgba(255,255,255,.45);
    text-decoration: none;
    transition: color .15s;
}
.footer-bottom-links a:hover { color: var(--green); }

/* ── Wishlist page ───────────────────────────────────────────── */
.wishlist-empty {
    text-align: center; padding: 80px 24px;
    color: var(--ink-muted);
}
.wishlist-empty i { font-size: 3.5rem; opacity: .25; margin-bottom: 16px; }
.wishlist-empty h2 {
    font-family: var(--font-display);
    font-size: 1.6rem; 
    font-weight: 600; 
    margin-bottom: 8px;
}

/* ── Page hero ──────────────────────────────────────────────── */
.page-hero {
    background: var(--bg-secondary);
    padding: 8px 0 6px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 8px;
}

.page-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.5rem); 
    font-weight: 600;
}
.breadcrumb {
    display: flex; align-items: center; gap: 8px;
    font-size: .8rem; 
    color: var(--ink-muted); 
    margin-bottom: 10px;
}
.breadcrumb a { color: var(--ink-muted); }
.breadcrumb a:hover { color: var(--green); }
.breadcrumb-sep { color: var(--border-dark); }

/* ── Utility ────────────────────────────────────────────────── */
.text-green  { color: var(--green); }
.text-muted { color: var(--ink-muted); }
.text-center { text-align: center; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-32 { margin-bottom: 32px; }
.d-flex { display: flex; }
.gap-12 { gap: 12px; }
.align-center { align-items: center; }
.no-results {
    text-align: center; padding: 64px 0; color: var(--ink-muted);
}
.no-results i { font-size: 2.5rem; opacity: .25; margin-bottom: 12px; }

/* ── Mobile bottom navigation ───────────────────────────────── */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: 60px;
    background: var(--bg-primary);
    border-top: 1px solid var(--border);
    z-index: 600;
    padding: 0 8px;
    align-items: center;
    justify-content: space-around;
    box-shadow: 0 -2px 8px rgba(0,0,0,.05);
}
@media (max-width: 767px) { 
    .mobile-bottom-nav { display: flex; } 
    main#main { padding-bottom: 70px; }
    .site-footer { margin-bottom: 60px; }
}

.bottom-nav-btn {
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 2px;
    padding: 6px 12px;
    color: var(--ink-muted);
    font-size: .6rem; 
    font-weight: 600;
    letter-spacing: .02em; 
    text-transform: uppercase;
    text-decoration: none;
    border-radius: var(--radius);
    transition: var(--tr);
    background: none;
    position: relative;
    min-width: 52px;
}
.bottom-nav-btn i { font-size: 1.2rem; }
.bottom-nav-btn:hover,
.bottom-nav-btn.active { color: var(--green); }
.bottom-nav-btn .cart-badge {
    top: 0; right: 6px;
}

/* ── Mobile search bar ──────────────────────────────────────── */
.mobile-search-bar {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-primary);
}

/* ── Active filters bar ─────────────────────────────────────── */
.active-filters-bar {
    display: none;
    padding: 10px 16px;
    background: var(--green-pale);
    border-bottom: 1px solid rgba(45,164,78,.2);
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}
@media (max-width: 900px) { .active-filters-bar { display: flex; } }
.active-filters-bar:empty { display: none; }

.filter-chip {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 3px 10px;
    background: var(--bg-primary);
    border: 1px solid rgba(45,164,78,.4);
    border-radius: 20px;
    font-size: .75rem; 
    font-weight: 600;
    color: var(--green);
}
.filter-chip button {
    display: flex; align-items: center;
    color: inherit; font-size: .7rem; padding: 0;
}

/* ── Global horizontal scroll fixes ─────────────────────────── */
body,
main,
.container,
.section,
.page-hero,
.shop-layout,
.checkout-layout,
.product-detail,
.cart-page,
.wishlist-page {
    overflow-x: hidden;
    max-width: 100%;
}

img,
video,
iframe,
svg,
canvas {
    max-width: 100%;
    height: auto;
}

html,
body {
    width: 100%;
    max-width: 100%;
    position: relative;
}

.carousel-wrap {
    max-width: 100%;
    overflow: hidden;
}

.site-header,
.site-footer {
    max-width: 100%;
    overflow-x: hidden;
}

.container {
    width: 100%;
    box-sizing: border-box;
}

* {
    max-width: 100vw;
}

/* ============================================================
   FIX: Search Dropdown - Prevent being blocked by header
   ============================================================ */

/* Make sure header doesn't clip its children */
.site-header {
    overflow: visible !important;
}

.header-inner {
    overflow: visible !important;
}

.header-search {
    overflow: visible !important;
    position: relative;
}

.search-wrap {
    overflow: visible !important;
    position: relative;
}

/* Give the dropdown higher z-index and proper positioning */
.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 8px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    max-height: 70vh;
    overflow-y: auto;
}

/* Ensure it appears above everything */
.search-dropdown.open {
    display: block;
}

/* Fix for any parent that might have overflow hidden */
html,
body {
    overflow-x: visible;
}

/* Make sure header has proper stacking context */
.site-header {
    z-index: 500;
    position: sticky;
}


/* ============================================================
   STRICT BOXED LAYOUT - NO FULL WIDTH ELEMENTS
   ============================================================ */

/* Global boxed container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
    box-sizing: border-box;
}

/* All sections must respect boxed layout */
.section {
    padding: 64px 0;
    width: 100%;
}

.section-sm {
    padding: 40px 0;
}

/* Header - boxed and centered */
.site-header {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 500;
    width: 100%;
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Footer - boxed */
.site-footer {
    background: var(--ink);
    color: var(--bg-secondary);
    margin-top: 80px;
    width: 100%;
}

.footer-inner {
    width: 100%;
    margin: 0;
    padding: 56px 32px 40px;
    display: flex;
    gap: 64px;
    flex-wrap: wrap;
    box-sizing: border-box;
}

/* Shop layout - boxed */
.shop-layout {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    gap: 32px;
    align-items: flex-start;
    width: 100%;
    box-sizing: border-box;
}

/* Product grid - stays within box */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    width: 100%;
}

/* Carousel - boxed with border radius */
.carousel-wrap {
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    width: 100%;
}

/* Page hero - boxed */
.page-hero {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    margin-bottom: 48px;
    width: 100%;
}

.page-hero .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 8px 24px 6px;
}

/* Checkout layout - boxed */
.checkout-layout {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
    width: 100%;
    box-sizing: border-box;
}

/* Product detail - boxed */
.product-detail {
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    width: 100%;
    box-sizing: border-box;
}

/* Category pills - boxed */
.category-pills {
    max-width: 1280px;
    margin: 0 auto 28px;
    padding: 0 24px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    width: 100%;
    box-sizing: border-box;
}

/* Sort bar - boxed */
.sort-bar {
    max-width: 1280px;
    margin: 0 auto 20px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    width: 100%;
    box-sizing: border-box;
}

/* Pagination - boxed */
.pagination {
    max-width: 1280px;
    margin: 40px auto 0;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    width: 100%;
    box-sizing: border-box;
}

/* Wishlist page - boxed */
.wishlist-page .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
    box-sizing: border-box;
}

/* Cart page - boxed */
.cart-page .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
    box-sizing: border-box;
}

/* No full-width elements allowed */
.full-width,
.fullscreen,
.wide {
    max-width: 1280px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Ensure body doesn't have any full-width elements */
body {
    overflow-x: hidden;
    background: var(--bg-secondary);
}

/* Any element that might try to go full width */
img,
video,
iframe {
    max-width: 100%;
    display: block;
}

/* Responsive adjustments */
@media (max-width: 1320px) {
    .container,
    .header-inner,
    .footer-inner,
    .shop-layout,
    .sort-bar,
    .category-pills,
    .pagination,
    .checkout-layout,
    .product-detail,
    .wishlist-page .container,
    .cart-page .container,
    .page-hero .container {
        padding-left: 24px;
        padding-right: 24px;
    }
}

@media (max-width: 768px) {
    .container,
    .header-inner,
    .footer-inner,
    .shop-layout,
    .sort-bar,
    .category-pills,
    .pagination,
    .checkout-layout,
    .product-detail,
    .wishlist-page .container,
    .cart-page .container,
    .page-hero .container {
        padding-left: 16px;
        padding-right: 16px;
    }
    .footer-topband-inner {
        padding-left: 16px;
        padding-right: 16px;
    }
    .footer-bottom {
        text-align: left;
    }
}

/* Remove any margin/padding that might cause full-width issues */
html, body {
    margin: 0;
    padding: 0;
}

/* Ensure no element stretches beyond container */
* {
    max-width: 100%;
    box-sizing: border-box;
}


/* ============================================================
   FIX: Category Card & Product Grid Responsiveness
   ============================================================ */

/* Product Grid - Fully Responsive */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    width: 100%;
}

/* Responsive breakpoints for product grid */
@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 540px) {
    .product-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* Product Card - Responsive */
.product-card {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--tr-slow);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Product Card Image - Maintain aspect ratio */
.product-card-img {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--bg-tertiary);
}

.product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s cubic-bezier(.4,0,.2,1);
}

/* Product Card Body */
.product-card-body {
    padding: 14px 16px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Product Name - Responsive font size */
.product-name {
    font-family: var(--font-display);
    font-size: clamp(0.9rem, 4vw, 1rem);
    font-weight: 700;
    color: var(--ink);
    line-height: 1.35;
    margin-bottom: 8px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Product Price */
.product-price {
    font-size: clamp(1rem, 4vw, 1.1rem);
    font-weight: 700;
    color: var(--green);
    font-variant-numeric: tabular-nums;
}

/* Category Pills - Responsive */
.category-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 28px;
    width: 100%;
}

.category-pill {
    padding: 6px 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 30px;
    font-size: clamp(0.7rem, 3vw, 0.8rem);
    font-weight: 500;
    color: var(--ink-soft);
    cursor: pointer;
    transition: var(--tr);
    text-decoration: none;
    white-space: nowrap;
}

/* Mobile category pills - horizontal scroll for many categories */
@media (max-width: 640px) {
    .category-pills {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }
    
    .category-pills::-webkit-scrollbar {
        height: 3px;
    }
    
    .category-pills::-webkit-scrollbar-track {
        background: var(--border);
        border-radius: 10px;
    }
    
    .category-pills::-webkit-scrollbar-thumb {
        background: var(--green);
        border-radius: 10px;
    }
    
    .category-pill {
        flex-shrink: 0;
        white-space: nowrap;
    }
}

/* Shop Layout - Responsive */
.shop-layout {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    width: 100%;
}

@media (max-width: 992px) {
    .shop-layout {
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .shop-layout {
        flex-direction: column;
        gap: 24px;
    }
    
    .filter-sidebar {
        width: 100%;
        position: static;
        display: none;
    }
    
    .filter-sidebar.active {
        display: block;
    }
}

/* Sort Bar - Responsive */
.sort-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

@media (max-width: 540px) {
    .sort-bar {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .sort-bar-right {
        width: 100%;
    }
    
    .sort-select {
        flex: 1;
        max-width: 100%;
    }
}

/* Pagination - Responsive */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 48px;
    flex-wrap: wrap;
}

.page-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    display: grid;
    place-items: center;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--ink-soft);
    background: var(--bg-primary);
    cursor: pointer;
    transition: var(--tr);
    text-decoration: none;
}

@media (max-width: 540px) {
    .page-btn {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
}

/* Container Responsive */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
}

/* Filter Toggle Button for Mobile */
.filter-toggle-btn {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
    margin-bottom: 16px;
    width: 100%;
    justify-content: center;
}

@media (max-width: 768px) {
    .filter-toggle-btn {
        display: flex;
    }
}

/* Empty State / No Results */
.no-results {
    text-align: center;
    padding: 64px 24px;
    color: var(--ink-muted);
}

.no-results i {
    font-size: 3rem;
    opacity: 0.3;
    margin-bottom: 16px;
}

.no-results h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--ink);
}

/* ============================================================
   MINIMAL HORIZONTAL SCROLL FIX - No design breaking
   ============================================================ */

/* Only fix overflow on html/body - preserves all other styles */
html {
    overflow-x: hidden;
    width: 100%;
}

body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* Keep header functioning normally - just prevent overflow */
.site-header {
    width: 100%;
    left: 0;
    right: 0;
}

.header-inner {
    width: 100%;
    box-sizing: border-box;
}

/* Ensure container doesn't cause scroll */
.container {
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Fix any potential margin/padding issues */
* {
    box-sizing: border-box;
}

/* Keep product grid responsive but contained */
.product-grid {
    width: 100%;
    overflow-x: hidden;
}

/* Keep images contained */
img {
    max-width: 100%;
    height: auto;
}

/* Remove any forced horizontal scroll */
body {
    margin: 0;
    padding: 0;
}
/* ============================================================
   MOBILE HEADER FIX - Hamburger FIRST, then Brand on LEFT
   ============================================================ */

@media (max-width: 991px) {
    .header-inner {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        gap: 12px;
    }
    
    .mobile-menu-btn {
        order: 1;
        display: flex;
    }
    
    .logo {
        order: 2;
        margin-right: 0;
    }
    
    .header-actions {
        order: 3;
        margin-left: auto;
    }
    
    .header-search {
        display: none;
    }
}
