:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --primary-50: #eff6ff;
    --accent: #f59e0b;
    --accent-dark: #d97706;
    --success: #10b981;
    --success-light: #d1fae5;
    --danger: #ef4444;
    --bg: #f8fafc;
    --bg-dark: #0f172a;
    --bg-card: #ffffff;
    --text: #1e293b;
    --text-light: #64748b;
    --text-muted: #94a3b8;
    --border: #e2e8f0;
    --border-light: #f1f5f9;
    --radius: 14px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,.06), 0 2px 4px rgba(0,0,0,.04);
    --shadow-lg: 0 12px 24px rgba(0,0,0,.08), 0 4px 8px rgba(0,0,0,.04);
    --shadow-xl: 0 24px 48px rgba(0,0,0,.1), 0 8px 16px rgba(0,0,0,.04);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --transition: .2s cubic-bezier(.4,0,.2,1);
    --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2rem); }
.section { padding: clamp(3rem, 6vw, 5rem) 0; }
.section-dark { background: var(--bg-dark); color: #e2e8f0; }

/* ─── Lucide Icon Defaults ─── */
[data-lucide] { width: 1em; height: 1em; stroke-width: 2; vertical-align: -.125em; }
.usp-icon { width: 14px; height: 14px; }
.nav-icon { width: 16px; height: 16px; margin-right: 2px; }
.icon-lg { width: 28px; height: 28px; }
.icon-xl { width: 36px; height: 36px; }
.icon-2xl { width: 48px; height: 48px; stroke-width: 1.5; }
.icon-box {
    width: 56px; height: 56px; border-radius: var(--radius);
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--primary-50); color: var(--primary); margin-bottom: 1rem;
}
.icon-box [data-lucide] { width: 28px; height: 28px; stroke-width: 1.75; }
.icon-box-accent { background: #fef3c7; color: var(--accent-dark); }
.icon-box-success { background: var(--success-light); color: #059669; }

/* ─── Typography ─── */
h1, h2, h3, h4, h5 { font-weight: 700; line-height: 1.2; letter-spacing: -.025em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.6rem); }
.section-title { text-align: center; margin-bottom: 1rem; }
.section-subtitle { text-align: center; color: var(--text-light); font-size: 1.1rem; max-width: 640px; margin: 0 auto 3rem; line-height: 1.7; }
.gradient-text { background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* ─── Buttons ─── */
.btn {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .75rem 1.5rem; border-radius: var(--radius-sm);
    font-weight: 600; font-size: .95rem; border: none; cursor: pointer;
    transition: all var(--transition); text-decoration: none; line-height: 1.4;
}
.btn [data-lucide] { width: 18px; height: 18px; flex-shrink: 0; }
.btn-primary { background: var(--primary); color: #fff !important; box-shadow: 0 1px 3px rgba(37,99,235,.3); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(37,99,235,.35); }
.btn-accent { background: var(--accent); color: #fff !important; box-shadow: 0 1px 3px rgba(245,158,11,.3); }
.btn-accent:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(245,158,11,.35); }
.btn-outline { background: transparent; border: 2px solid currentColor; color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff !important; border-color: var(--primary); }
.btn-white { background: #fff; color: var(--text); box-shadow: var(--shadow); }
.btn-white:hover { background: #f8fafc; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text-light); }
.btn-ghost:hover { background: #f1f5f9; color: var(--text); }
.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; border-radius: var(--radius); }
.btn-sm { padding: .45rem .9rem; font-size: .85rem; }

/* ─── Cards ─── */
.card {
    background: var(--bg-card); border-radius: var(--radius);
    box-shadow: var(--shadow); border: 1px solid var(--border-light);
    overflow: hidden; transition: all .25s cubic-bezier(.4,0,.2,1);
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.card-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: linear-gradient(135deg, #f0f4ff 0%, #e8ecf4 100%); }
.card-body { padding: 1.5rem; }
.card-title { font-size: 1.05rem; font-weight: 650; margin-bottom: .5rem; color: var(--text); }
.card-price { font-size: 1.2rem; font-weight: 700; color: var(--primary); }
.card-price-old { text-decoration: line-through; color: var(--text-muted); font-size: .9rem; margin-left: .5rem; font-weight: 400; }
.card-badge {
    position: absolute; top: .75rem; left: .75rem;
    background: var(--accent); color: #fff; padding: .3rem .75rem;
    border-radius: 20px; font-size: .75rem; font-weight: 700; letter-spacing: .02em;
    box-shadow: 0 2px 8px rgba(245,158,11,.3);
}
.card-relative { position: relative; }

/* ─── Grid ─── */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-6 { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }

/* ─── Hero ─── */
.hero {
    background: linear-gradient(135deg, #0c1222 0%, #162040 40%, #1e3a6e 100%);
    color: #fff; padding: clamp(4rem, 10vw, 7rem) 0 clamp(3rem, 8vw, 5rem);
    position: relative; overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 600px 400px at 70% 20%, rgba(59,130,246,.2) 0%, transparent 70%),
        radial-gradient(ellipse 400px 300px at 20% 80%, rgba(139,92,246,.12) 0%, transparent 60%),
        radial-gradient(ellipse 300px 300px at 90% 80%, rgba(245,158,11,.08) 0%, transparent 50%);
}
.hero::after {
    content: ''; position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.015'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; z-index: 1; max-width: 700px; }
.hero h1 { font-size: clamp(2.2rem, 6vw, 3.5rem); margin-bottom: 1rem; letter-spacing: -.035em; }
.hero h1 .accent { color: var(--accent); }
.hero p { font-size: clamp(1rem, 2.5vw, 1.2rem); color: #b0bec5; margin-bottom: 2rem; line-height: 1.8; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 2.5rem; margin-top: 3rem; flex-wrap: wrap; }
.hero-stat { text-align: center; }
.hero-stat-value { font-size: 1.8rem; font-weight: 800; color: var(--accent); }
.hero-stat-label { font-size: .85rem; color: #78909c; margin-top: .25rem; }

/* ─── Category Cards ─── */
.cat-card {
    display: flex; flex-direction: column; align-items: center; text-align: center;
    padding: 2rem 1.5rem; background: var(--bg-card); border-radius: var(--radius);
    border: 1px solid var(--border-light); transition: all .25s cubic-bezier(.4,0,.2,1);
    cursor: pointer; text-decoration: none; color: var(--text);
}
.cat-card:hover { border-color: var(--primary); box-shadow: var(--shadow-lg); transform: translateY(-4px); color: var(--text); }
.cat-card-icon { margin-bottom: 1rem; }
.cat-card-icon [data-lucide] { width: 36px; height: 36px; stroke-width: 1.5; color: var(--primary); }
.cat-card:hover .cat-card-icon [data-lucide] { color: var(--primary-dark); }
.cat-card-title { font-weight: 700; font-size: 1.05rem; margin-bottom: .35rem; }
.cat-card-desc { color: var(--text-light); font-size: .88rem; line-height: 1.5; }
.cat-card-price { color: var(--primary); font-weight: 600; margin-top: .75rem; font-size: .95rem; }

/* ─── Header / Nav ─── */
.shop-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,.92); backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid rgba(226,232,240,.6);
}
.shop-nav { display: flex; align-items: center; gap: 1rem; padding: .65rem 0; }
.shop-logo { display: flex; align-items: center; gap: .5rem; font-weight: 800; font-size: 1.2rem; color: var(--text); white-space: nowrap; }
.shop-logo span { color: var(--primary); }
.shop-logo svg { flex-shrink: 0; }
.nav-links { display: flex; gap: .15rem; margin-left: auto; }
.nav-links a {
    display: inline-flex; align-items: center; gap: .3rem;
    padding: .45rem .75rem; border-radius: var(--radius-sm); color: var(--text);
    font-weight: 500; font-size: .88rem; transition: all var(--transition);
}
.nav-links a:hover { background: var(--primary-50); color: var(--primary); }
.nav-links a.active { background: var(--primary); color: #fff !important; }
.nav-account {
    display: inline-flex; align-items: center; gap: .35rem;
    padding: .45rem .75rem; border-radius: var(--radius-sm);
    font-weight: 500; font-size: .88rem; color: var(--text);
    transition: all var(--transition); white-space: nowrap;
}
.nav-account:hover { background: var(--primary-50); color: var(--primary); }
.nav-account.active { background: var(--primary); color: #fff !important; }
.nav-account-name { max-width: 120px; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 768px) { .nav-account-name { display: none; } }

.nav-cart {
    position: relative; display: flex; align-items: center; gap: .35rem;
    padding: .5rem; border-radius: var(--radius-sm);
    font-weight: 600; color: var(--text); transition: all var(--transition);
}
.nav-cart [data-lucide] { width: 22px; height: 22px; }
.nav-cart:hover { background: var(--primary-50); color: var(--primary); }
.cart-count {
    position: absolute; top: -.15rem; right: -.15rem;
    background: var(--danger); color: #fff; font-size: .65rem;
    min-width: 1.15rem; height: 1.15rem; border-radius: 50%; padding: 0 .25rem;
    display: flex; align-items: center; justify-content: center; font-weight: 700;
    box-shadow: 0 1px 4px rgba(239,68,68,.4);
}
.nav-mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: .5rem; color: var(--text); }
.nav-mobile-toggle [data-lucide] { width: 24px; height: 24px; }

/* ─── Footer ─── */
.shop-footer { background: var(--bg-dark); color: #94a3b8; padding: 4rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem; }
.footer-brand { font-size: 1.3rem; font-weight: 800; color: #fff; margin-bottom: .75rem; }
.footer-brand span { color: var(--primary-light); }
.footer-desc { font-size: .88rem; line-height: 1.7; margin-bottom: 1.25rem; }
.footer-social { display: flex; gap: .5rem; }
.footer-social a {
    width: 36px; height: 36px; border-radius: 8px; background: rgba(255,255,255,.06);
    display: flex; align-items: center; justify-content: center; color: #94a3b8;
    transition: all var(--transition);
}
.footer-social a:hover { background: var(--primary); color: #fff; }
.footer-social a [data-lucide] { width: 18px; height: 18px; }
.footer-title { color: #fff; font-weight: 700; margin-bottom: 1rem; font-size: .9rem; text-transform: uppercase; letter-spacing: .04em; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: .5rem; }
.footer-links a { color: #94a3b8; font-size: .88rem; transition: color var(--transition); }
.footer-links a:hover { color: #fff; }
.footer-payment-icons { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .5rem; }
.payment-badge {
    display: inline-block; padding: .2rem .55rem; background: rgba(255,255,255,.08);
    border-radius: 4px; font-size: .75rem; font-weight: 600; color: #cbd5e1;
    border: 1px solid rgba(255,255,255,.06);
}
.footer-bottom { border-top: 1px solid rgba(255,255,255,.06); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; font-size: .82rem; }
.footer-tagline { color: var(--primary-light); font-weight: 600; }

/* ─── Breadcrumb ─── */
.breadcrumb { padding: 1rem 0; font-size: .88rem; color: var(--text-muted); display: flex; align-items: center; gap: .25rem; }
.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb [data-lucide] { width: 14px; height: 14px; color: var(--text-muted); }

/* ─── Product Detail ─── */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; padding: 2rem 0 4rem; }
.product-gallery { position: sticky; top: 6rem; }
.product-main-img { width: 100%; aspect-ratio: 1; object-fit: contain; background: linear-gradient(135deg, #f0f4ff 0%, #e8ecf4 100%); border-radius: var(--radius-lg); border: 1px solid var(--border-light); }
.product-info h1 { font-size: 1.8rem; margin-bottom: .5rem; }
.product-category { color: var(--primary); font-weight: 600; font-size: .9rem; margin-bottom: 1rem; }
.product-price-box { display: flex; align-items: baseline; gap: .75rem; margin-bottom: 1.5rem; }
.product-price-current { font-size: 2rem; font-weight: 800; color: var(--primary); }
.product-price-compare { font-size: 1.1rem; text-decoration: line-through; color: var(--text-muted); }
.product-desc { color: var(--text-light); line-height: 1.8; margin-bottom: 2rem; }

/* ─── Variant Picker ─── */
.variant-group { margin-bottom: 1.5rem; }
.variant-label { font-weight: 600; font-size: .95rem; margin-bottom: .5rem; display: block; }
.variant-options { display: flex; gap: .5rem; flex-wrap: wrap; }
.variant-btn {
    padding: .55rem 1.25rem; border: 2px solid var(--border); border-radius: var(--radius-sm);
    background: #fff; cursor: pointer; font-weight: 500; font-size: .9rem;
    transition: all var(--transition);
}
.variant-btn:hover { border-color: var(--primary-light); background: var(--primary-50); }
.variant-btn.active { border-color: var(--primary); background: var(--primary-50); color: var(--primary); font-weight: 600; }

/* ─── Quantity ─── */
.qty-picker {
    display: inline-flex; align-items: center; border: 2px solid var(--border);
    border-radius: var(--radius-sm); overflow: hidden;
}
.qty-btn {
    width: 2.5rem; height: 2.5rem; border: none; background: #f8fafc;
    font-size: 1.2rem; cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: background var(--transition);
}
.qty-btn:hover { background: #e2e8f0; }
.qty-input {
    width: 3.5rem; height: 2.5rem; text-align: center; border: none;
    border-left: 1px solid var(--border); border-right: 1px solid var(--border);
    font-weight: 600; font-size: 1rem; font-family: var(--font);
}
.qty-input::-webkit-inner-spin-button { display: none; }

/* ─── USP Bar ─── */
.usp-bar {
    background: linear-gradient(90deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: #fff; padding: .55rem 0; text-align: center; font-size: .82rem; font-weight: 500;
}
.usp-items { display: flex; justify-content: center; gap: 1.75rem; flex-wrap: wrap; }
.usp-items span { display: inline-flex; align-items: center; gap: .35rem; }

/* ─── Trust / Features ─── */
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; }
.trust-item { text-align: center; padding: 2rem 1.5rem; border-radius: var(--radius); }
.trust-icon { margin-bottom: .75rem; display: flex; justify-content: center; }
.trust-title { font-weight: 700; margin-bottom: .4rem; font-size: 1.05rem; }
.trust-desc { color: var(--text-light); font-size: .88rem; line-height: 1.6; }

/* ─── Tags / Badges ─── */
.tag {
    display: inline-flex; align-items: center; gap: .25rem;
    padding: .25rem .65rem; border-radius: 20px; font-size: .78rem; font-weight: 600;
}
.tag [data-lucide] { width: 12px; height: 12px; }
.tag-success { background: #dcfce7; color: #166534; }
.tag-primary { background: #dbeafe; color: #1e40af; }
.tag-accent { background: #fef3c7; color: #92400e; }
.tag-dark { background: #1e293b; color: #e2e8f0; }

/* ─── Feature List ─── */
.feature-list { list-style: none; }
.feature-list li { display: flex; align-items: flex-start; gap: .65rem; padding: .45rem 0; font-size: .95rem; }
.feature-list li [data-lucide] { width: 20px; height: 20px; color: var(--success); flex-shrink: 0; margin-top: 2px; }

/* ─── Responsive ─── */
@media (max-width: 768px) {
    /* Prevent horizontal overflow globally */
    html, body { overflow-x: hidden; }

    /* Navigation — slide-in drawer from right */
    .nav-links {
        display: none; position: fixed; top: 0; right: 0; bottom: 0;
        width: 280px; max-width: 85vw;
        background: #fff; box-shadow: -4px 0 24px rgba(0,0,0,.15);
        flex-direction: column; align-items: stretch;
        padding: 5rem 1.5rem 2rem; gap: .25rem; z-index: 200;
        overflow-y: auto; -webkit-overflow-scrolling: touch;
    }
    .nav-links.open { display: flex; }
    .nav-links.open ~ .nav-overlay { display: block; }
    .nav-links a {
        font-size: 1rem; padding: .85rem 1rem; min-height: 44px;
        border-radius: var(--radius-sm); display: flex; align-items: center; gap: .5rem;
    }
    .nav-links a:hover { background: var(--primary-50); }
    .nav-links a.active { background: var(--primary); color: #fff !important; }
    .nav-mobile-toggle { display: block; min-width: 44px; min-height: 44px; }

    /* Mobile nav close button */
    .nav-links::before {
        content: '✕'; position: absolute; top: 1rem; right: 1rem;
        width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
        font-size: 1.2rem; cursor: pointer; border-radius: 50%; color: var(--text-light);
    }

    /* Account link mobile */
    .nav-account { order: -1; }
    .nav-account-name { display: inline !important; }

    /* Shop logo smaller on mobile */
    .shop-logo { font-size: 1.1rem; }
    .shop-logo svg { width: 26px; height: 26px; }

    /* Header compact on mobile */
    .shop-header .container { padding: 0 .75rem; }
    .shop-nav { padding: .5rem 0; gap: .5rem; }

    /* Product detail */
    .product-detail { grid-template-columns: 1fr; gap: 1.5rem; }
    .product-gallery { position: static; }
    .product-info h1 { font-size: 1.5rem; }
    .product-price-current { font-size: 1.6rem; }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; gap: .5rem; }

    /* Hero */
    .hero { padding: clamp(3rem, 8vw, 5rem) 0 clamp(2rem, 6vw, 3.5rem); }
    .hero-content { max-width: 100%; }
    .hero-stats { gap: 1.5rem; }
    .hero-stat-value { font-size: 1.5rem; }
    .hero-stat-label { font-size: .8rem; }

    /* USP bar — horizontal scroll on tablet, stack on phone */
    .usp-bar { padding: .45rem 0; overflow: hidden; }
    .usp-items {
        gap: .75rem; font-size: .75rem;
        overflow-x: auto; -webkit-overflow-scrolling: touch;
        scrollbar-width: none; flex-wrap: nowrap;
        padding: 0 1rem;
    }
    .usp-items::-webkit-scrollbar { display: none; }
    .usp-items span { white-space: nowrap; flex-shrink: 0; }

    /* Grids — force column counts on tablets */
    .grid-6 { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .grid-3 { grid-template-columns: 1fr; gap: 1.25rem; }

    /* Trust grid */
    .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .trust-item { padding: 1.5rem 1rem; }

    /* Category cards — reduce padding */
    .cat-card { padding: 1.5rem 1rem; }
    .cat-card-title { font-size: .95rem; }
    .cat-card-desc { font-size: .82rem; }
    .cat-card-icon [data-lucide] { width: 28px; height: 28px; }

    /* Cards — disable hover lift on touch */
    .card:hover { transform: none; }
    .cat-card:hover { transform: none; }

    /* Buttons — ensure min tap target */
    .btn { min-height: 44px; }
    .btn-sm { min-height: 36px; padding: .5rem 1rem; font-size: .82rem; }
    .btn-lg { padding: .85rem 1.75rem; font-size: .95rem; }

    /* Section spacing */
    .section { padding: clamp(2rem, 5vw, 3.5rem) 0; }
    .section-subtitle { font-size: 1rem; margin-bottom: 2rem; }
}

@media (max-width: 480px) {
    /* Footer stacks to 1 column */
    .footer-grid { grid-template-columns: 1fr; }

    /* Hero buttons stack */
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; justify-content: center; }

    /* Hero stats wrap into grid */
    .hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; text-align: center; }
    .hero-stat-value { font-size: 1.3rem; }

    /* USP bar stacks vertically */
    .usp-items { flex-direction: column; gap: .4rem; align-items: center; flex-wrap: wrap; overflow-x: visible; padding: 0; }

    /* Grids — 2 columns for grid-6, 1 for others */
    .grid-6 { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
    .grid-4 { grid-template-columns: 1fr; gap: 1rem; }

    /* Trust grid — single column */
    .trust-grid { grid-template-columns: 1fr; }

    /* Category cards on phone */
    .cat-card { padding: 1.25rem .75rem; }
    .cat-card-desc { font-size: .8rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .cat-card-price { font-size: .88rem; }
    .icon-box { width: 44px; height: 44px; }
    .icon-box [data-lucide] { width: 22px; height: 22px; }

    /* Card body tighter on phone */
    .card-body { padding: 1rem; }
    .card-title { font-size: .95rem; }
    .card-price { font-size: 1.05rem; }

    /* Typography */
    h1 { font-size: clamp(1.6rem, 5vw, 2.4rem); }
    .hero h1 { font-size: clamp(1.8rem, 6vw, 2.8rem); }

    /* Prevent horizontal overflow */
    .container { padding: 0 1rem; overflow-x: hidden; }

    /* Breadcrumb */
    .breadcrumb { font-size: .82rem; padding: .75rem 0; flex-wrap: wrap; }

    /* Variant buttons wrap */
    .variant-options { gap: .4rem; }
    .variant-btn { padding: .5rem 1rem; font-size: .85rem; }

    /* Product page */
    .product-price-current { font-size: 1.5rem; }
    .product-info h1 { font-size: 1.35rem; }
    .product-desc { font-size: .9rem; }
}

/* ─── Nav Search ─── */
.nav-search { position: relative; display: flex; align-items: center; }
.nav-search-toggle {
    display: flex; align-items: center; justify-content: center;
    padding: .45rem; border-radius: var(--radius-sm); background: none; border: none;
    cursor: pointer; color: var(--text); transition: all var(--transition);
}
.nav-search-toggle:hover { background: var(--primary-50); color: var(--primary); }
.nav-search-bar {
    position: absolute; right: 0; top: calc(100% + 8px);
    width: 380px; background: #fff; border-radius: var(--radius);
    box-shadow: var(--shadow-xl); border: 1px solid var(--border);
    z-index: 300; display: none;
    overflow: hidden;
}
.nav-search-bar.open { display: block; }
.nav-search-form {
    display: flex; align-items: center; gap: .5rem;
    padding: .75rem 1rem; border-bottom: 1px solid var(--border-light);
}
.nav-search-icon { width: 18px; height: 18px; color: var(--text-muted); flex-shrink: 0; }
.nav-search-form input {
    flex: 1; border: none; outline: none; font-size: .95rem;
    font-family: var(--font); background: transparent; padding: .25rem 0;
}
.nav-search-form input::placeholder { color: var(--text-muted); }
.nav-search-close {
    display: flex; align-items: center; justify-content: center;
    padding: .25rem; border-radius: 4px; background: none; border: none;
    cursor: pointer; color: var(--text-muted); transition: color var(--transition);
}
.nav-search-close:hover { color: var(--text); }
.nav-search-results { max-height: 360px; overflow-y: auto; }
.nav-search-results:empty { display: none; }
.search-dropdown-item {
    display: flex; align-items: center; gap: .75rem; padding: .75rem 1rem;
    text-decoration: none; color: var(--text); transition: background .15s;
    border-bottom: 1px solid var(--border-light);
}
.search-dropdown-item:last-child { border-bottom: none; }
.search-dropdown-item:hover { background: var(--primary-50); }
.search-dropdown-img {
    width: 40px; height: 40px; border-radius: var(--radius-sm);
    background: linear-gradient(135deg, #dbeafe, #ede9fe);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; font-size: 1.2rem; overflow: hidden;
}
.search-dropdown-img img { width: 100%; height: 100%; object-fit: cover; }
.search-dropdown-img [data-lucide] { width: 18px; height: 18px; color: var(--primary); }
.search-dropdown-info { flex: 1; min-width: 0; }
.search-dropdown-name { font-weight: 600; font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-dropdown-meta { font-size: .78rem; color: var(--text-light); }
.search-dropdown-price { font-weight: 700; color: var(--primary); font-size: .88rem; flex-shrink: 0; }
.search-dropdown-empty { padding: 1.5rem; text-align: center; color: var(--text-muted); font-size: .88rem; }
.search-dropdown-all {
    display: block; text-align: center; padding: .75rem; font-size: .88rem;
    font-weight: 600; color: var(--primary); border-top: 1px solid var(--border-light);
    text-decoration: none; transition: background .15s;
}
.search-dropdown-all:hover { background: var(--primary-50); }

@media (max-width: 768px) {
    .nav-search-bar {
        position: fixed; top: 0; left: 0; right: 0; bottom: 0;
        width: 100%; border-radius: 0; z-index: 250;
        display: none; flex-direction: column;
    }
    .nav-search-bar.open { display: flex; }
    .nav-search-form { padding: 1rem; }
    .nav-search-form input { font-size: 1.1rem; }
    .nav-search-results { flex: 1; max-height: none; }
}

/* ─── Coupon ─── */
.coupon-section { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--border-light); }
.coupon-form { display: flex; gap: .5rem; }
.coupon-form input {
    flex: 1; padding: .55rem .75rem; border: 2px solid var(--border);
    border-radius: var(--radius-sm); font-size: .9rem; font-family: var(--font);
    text-transform: uppercase; transition: border-color .2s;
}
.coupon-form input:focus { outline: none; border-color: var(--primary); }
.coupon-form input::placeholder { text-transform: none; }
.coupon-form button { flex-shrink: 0; }
.coupon-msg { margin-top: .5rem; font-size: .85rem; padding: .5rem .75rem; border-radius: var(--radius-sm); }
.coupon-msg-success { background: #d1fae5; color: #065f46; }
.coupon-msg-error { background: #fee2e2; color: #991b1b; }
.coupon-applied {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: .5rem; padding: .6rem .85rem; background: #d1fae5;
    border-radius: var(--radius-sm); font-size: .88rem; color: #065f46;
}
.coupon-applied button {
    background: none; border: none; color: #991b1b; cursor: pointer;
    font-size: .82rem; font-weight: 600; text-decoration: underline;
}
.cart-summary-row.discount { color: #059669; }
.cart-summary-row.discount span:last-child { font-weight: 600; }
