/* ============================================================
   GenericPrinter v2.0 — Stylesheet
   Design system: Glassmorphism, gradients, dark mode,
   micro-animations, responsive, no frameworks
   ============================================================ */

/* === DESIGN TOKENS === */
:root {
    /* Light theme */
    --bg: #f7f9fc;
    --bg-alt: #eef2f7;
    --bg-card: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.72);
    --text: #0f172a;
    --text-2: #475569;
    --text-3: #94a3b8;
    --border: #e2e8f0;
    --border-2: #cbd5e1;
    --primary: #1193d4;
    --primary-d: #0a6fa0;
    --primary-l: #e8f4fd;
    --secondary: #002877;
    --accent: #7c3aed;
    --accent-l: #ede9fe;
    --success: #10b981;
    --success-l: #d1fae5;
    --warning: #f59e0b;
    --danger: #ef4444;
    --grad-1: linear-gradient(135deg, #1193d4, #7c3aed);
    --grad-2: linear-gradient(135deg, #0a6fa0, #002877);
    --grad-3: linear-gradient(135deg, #6366f1, #ec4899);
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.06);
    --shadow-xl: 0 24px 64px rgba(0,0,0,0.16);
    --radius-xs: 4px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;
    --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --font-mono: 'SF Mono', 'Cascadia Code', Consolas, monospace;
    --container: 1240px;
    --header-h: 68px;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-theme="dark"] {
    --bg: #0b1120;
    --bg-alt: #131c31;
    --bg-card: #1e293b;
    --bg-glass: rgba(30, 41, 59, 0.72);
    --text: #f1f5f9;
    --text-2: #cbd5e1;
    --text-3: #64748b;
    --border: #334155;
    --border-2: #475569;
    --primary-l: #0c1e2c;
    --accent-l: #2a1a45;
    --primary: #22a3e8;
    --primary-d: #1193d4;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.3);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.4);
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background 0.3s, color 0.3s;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-d); }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; color: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; }
hr { border: none; border-top: 1px solid var(--border); }
.hidden { display: none !important; }

/* === UTILS === */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 1.25rem; }
.container.narrow { max-width: 820px; }
.section { padding: 4rem 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; margin-bottom: 2.5rem; }
.section-tag {
    display: inline-block; font-size: .75rem; font-weight: 700;
    letter-spacing: 1.5px; color: var(--primary);
    background: var(--primary-l); padding: .35rem .9rem;
    border-radius: var(--radius-full); margin-bottom: .75rem;
    text-transform: uppercase;
}
.section-title { font-size: clamp(1.5rem, 4vw, 2.25rem); font-weight: 800; color: var(--text); }
.grad-text {
    background: var(--grad-1); -webkit-background-clip: text;
    background-clip: text; -webkit-text-fill-color: transparent;
}

/* === BUTTONS === */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .75rem 1.75rem; font-weight: 700; font-size: .9rem;
    border-radius: var(--radius-sm); transition: all .25s var(--ease);
    white-space: nowrap; cursor: pointer; border: 2px solid transparent;
}
.btn-primary { background: var(--grad-1); color: #fff; border: none; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(17,147,212,.35); color: #fff; }
.btn-ghost { background: transparent; border-color: var(--border-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-white { background: #fff; color: var(--primary); }
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); color: var(--primary); }
.btn-full { width: 100%; }
.btn-sm { padding: .5rem 1.25rem; font-size: .8rem; }

/* === LOGO === */
.logo { display: inline-flex; align-items: center; gap: .5rem; }
.logo-icon { color: var(--primary); display: flex; }
.logo-icon svg { width: 32px; height: 32px; }
.logo-text { font-weight: 800; font-size: 1.15rem; color: var(--text); letter-spacing: -.5px; }
.logo-accent { color: var(--primary); }

/* ============================================================
   HEADER
   ============================================================ */
.header {
    position: sticky; top: 0; z-index: 100;
    background: var(--bg-glass);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transition: all .3s;
}
.header.scrolled { box-shadow: var(--shadow-sm); }
.header-inner {
    max-width: var(--container); margin: 0 auto;
    padding: 0 1.25rem; height: var(--header-h);
    display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.header-left { display: flex; align-items: center; gap: .75rem; }
.header-nav { display: none; align-items: center; gap: .25rem; }
.nav-link {
    padding: .5rem .9rem; font-size: .875rem; font-weight: 600;
    color: var(--text-2); border-radius: var(--radius-sm);
    transition: all .2s; position: relative;
}
.nav-link:hover { color: var(--primary); background: var(--primary-l); }
.nav-link.active { color: var(--primary); }
.nav-link.active::after {
    content: ''; position: absolute; bottom: -2px; left: 50%;
    transform: translateX(-50%); width: 20px; height: 2px;
    background: var(--primary); border-radius: 2px;
}
.header-right { display: flex; align-items: center; gap: .375rem; }
.header-btn {
    width: 40px; height: 40px; display: flex; align-items: center;
    justify-content: center; border-radius: var(--radius-sm);
    color: var(--text-2); transition: all .2s; position: relative;
}
.header-btn svg { width: 20px; height: 20px; }
.header-btn:hover { background: var(--primary-l); color: var(--primary); }
.icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: none; }
[data-theme="dark"] .icon-moon { display: block; }
.cart-badge {
    position: absolute; top: 4px; right: 4px; min-width: 18px; height: 18px;
    background: var(--accent); color: #fff; font-size: .625rem; font-weight: 700;
    border-radius: var(--radius-full); display: flex; align-items: center;
    justify-content: center; padding: 0 5px; line-height: 1;
    transition: transform .3s var(--ease-bounce);
}
.cart-badge.bump { animation: bump .4s var(--ease-bounce); }
@keyframes bump { 0%{transform:scale(1)} 40%{transform:scale(1.4)} 100%{transform:scale(1)} }

.menu-toggle { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; color: var(--text); }
.menu-toggle svg { width: 22px; height: 22px; }
.menu-toggle:hover { color: var(--primary); }

/* Expandable Search */
.header-search {
    max-height: 0; overflow: hidden; transition: max-height .35s var(--ease);
    border-bottom: 1px solid transparent;
}
.header-search.open { max-height: 80px; border-color: var(--border); }
.search-wrap { position: relative; padding: .75rem 0; display: flex; align-items: center; }
.search-icon-l { position: absolute; left: 0; width: 20px; height: 20px; color: var(--text-3); pointer-events: none; }
.search-wrap input {
    width: 100%; padding: .75rem 2.5rem .75rem 2rem; border: 2px solid var(--border);
    border-radius: var(--radius-sm); background: var(--bg-card); color: var(--text);
    outline: none; transition: border-color .2s;
}
.search-wrap input:focus { border-color: var(--primary); }
.search-clear {
    position: absolute; right: .5rem; width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-3); border-radius: var(--radius-full); transition: all .2s;
}
.search-clear:hover { color: var(--danger); background: rgba(239,68,68,.08); }
.search-results {
    position: absolute; top: calc(100% + 4px); left: 0; right: 0;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
    max-height: 360px; overflow-y: auto; z-index: 200; display: none;
}
.search-results.show { display: block; }
.search-results .sr-item {
    display: flex; align-items: center; gap: .75rem; padding: .75rem 1rem;
    border-bottom: 1px solid var(--border); transition: background .15s;
}
.search-results .sr-item:hover { background: var(--primary-l); }
.search-results .sr-item:last-child { border-bottom: none; }
.search-results .sr-icon {
    width: 40px; height: 40px; flex-shrink: 0; border-radius: var(--radius-xs);
    background: var(--primary-l); display: flex; align-items: center; justify-content: center;
}
.search-results .sr-icon svg { width: 24px; height: 24px; color: var(--primary); }
.search-results .sr-info b { font-size: .85rem; font-weight: 600; }
.search-results .sr-info p { font-size: .75rem; color: var(--text-3); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative; padding: 4rem 0 3rem; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}
.hero-bg { position: absolute; inset: 0; overflow: hidden; }
.hero-shape {
    position: absolute; border-radius: 50%; filter: blur(80px);
}
.shape-1 { width: 500px; height: 500px; background: rgba(17,147,212,.25); top: -200px; right: -100px; animation: float 8s ease-in-out infinite; }
.shape-2 { width: 400px; height: 400px; background: rgba(124,58,237,.2); bottom: -150px; left: -100px; animation: float 10s ease-in-out infinite reverse; }
.shape-3 { width: 300px; height: 300px; background: rgba(17,147,212,.15); top: 40%; left: 50%; animation: float 12s ease-in-out infinite; }
@keyframes float { 0%,100%{ transform: translate(0,0); } 50%{ transform: translate(30px,-30px); } }
.hero-grid-overlay {
    position: absolute; inset: 0; opacity: .04;
    background-image: linear-gradient(var(--text) 1px, transparent 1px), linear-gradient(90deg, var(--text) 1px, transparent 1px);
    background-size: 40px 40px;
}
.hero-content { position: relative; z-index: 1; text-align: center; }
.hero-badge {
    display: inline-block; padding: .4rem 1.2rem; background: var(--bg-card);
    border: 1px solid var(--border); border-radius: var(--radius-full);
    font-size: .8rem; font-weight: 600; color: var(--text-2);
    box-shadow: var(--shadow-sm); margin-bottom: 1.5rem;
}
.hero-title { font-size: clamp(2rem, 6vw, 4rem); font-weight: 900; line-height: 1.1; margin-bottom: 1rem; }
.hero-subtitle { font-size: clamp(1rem, 2.5vw, 1.25rem); color: var(--text-2); max-width: 620px; margin: 0 auto 2rem; }
.hero-search {
    display: flex; align-items: center; gap: .5rem; max-width: 560px; margin: 0 auto;
    background: var(--bg-card); border: 2px solid var(--border); border-radius: var(--radius-md);
    padding: .375rem .375rem .375rem 1rem; box-shadow: var(--shadow-md);
    transition: border-color .2s;
}
.hero-search:focus-within { border-color: var(--primary); }
.hero-search svg { width: 20px; height: 20px; color: var(--text-3); flex-shrink: 0; }
.hero-search input {
    flex: 1; border: none; outline: none; background: transparent;
    color: var(--text); font-size: .95rem;
}
.hero-search input::placeholder { color: var(--text-3); }
.hero-stats {
    display: flex; gap: 2rem; justify-content: center; margin-top: 2.5rem;
    flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat b { font-size: 1.5rem; font-weight: 800; display: block; color: var(--text); }
.hero-stat span { font-size: .75rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 1px; }

.hero-scroll {
    position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
    width: 40px; height: 40px; display: flex; align-items: center;
    justify-content: center; color: var(--text-3);
    animation: bounce 2s ease-in-out infinite;
}
.hero-scroll svg { width: 24px; height: 24px; }
@keyframes bounce { 0%,100%{ transform: translateX(-50%) translateY(0);} 50%{ transform: translateX(-50%) translateY(6px);} }

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust-bar { background: var(--bg-card); border-bottom: 1px solid var(--border); }
.trust-items { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem 2.5rem; padding: 1.25rem 0; }
.trust-item { display: flex; align-items: center; gap: .5rem; font-size: .85rem; font-weight: 600; color: var(--text-2); }
.trust-item svg { width: 22px; height: 22px; color: var(--primary); flex-shrink: 0; }

/* ============================================================
   BRANDS STRIP
   ============================================================ */
.brands-strip {
    display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center;
}
.brand-pill {
    padding: .75rem 1.5rem; background: var(--bg-card); border: 2px solid var(--border);
    border-radius: var(--radius-md); font-weight: 700; font-size: .85rem;
    color: var(--text-2); transition: all .25s var(--ease); cursor: pointer;
    letter-spacing: .5px;
}
.brand-pill:hover {
    border-color: var(--primary); color: var(--primary);
    transform: translateY(-3px); box-shadow: var(--shadow-md);
}

/* ============================================================
   CATEGORIES GRID
   ============================================================ */
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.cat-card {
    display: flex; flex-direction: column; align-items: center; gap: .75rem;
    padding: 1.5rem 1rem; background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-md); transition: all .25s var(--ease);
    text-align: center; cursor: pointer;
}
.cat-card:hover {
    border-color: var(--primary); transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.cat-icon {
    width: 56px; height: 56px; border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    background: var(--grad-1); color: #fff;
}
.cat-icon svg { width: 28px; height: 28px; }
.cat-name { font-size: .8rem; font-weight: 700; color: var(--text-2); word-break: break-word; }
.cat-count { font-size: .7rem; color: var(--text-3); }

/* ============================================================
   FILTER BAR
   ============================================================ */
.filter-bar {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: .75rem; margin-bottom: 2rem; padding: 1rem; background: var(--bg-card);
    border: 1px solid var(--border); border-radius: var(--radius-md);
}
.filter-group { display: flex; flex-wrap: wrap; gap: .75rem; }
.filter-select {
    padding: .5rem 1rem; border: 1px solid var(--border-2); border-radius: var(--radius-sm);
    background: var(--bg-card); color: var(--text); font-size: .85rem;
    cursor: pointer; outline: none; transition: border-color .2s;
}
.filter-select:focus { border-color: var(--primary); }
.filter-info { font-size: .85rem; color: var(--text-3); font-weight: 600; }
.no-results { text-align: center; padding: 3rem 0; color: var(--text-3); }
.no-results svg { width: 48px; height: 48px; margin: 0 auto .75rem; }

/* ============================================================
   PRODUCT GRID
   ============================================================ */
.product-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }

.product-card-skel, .product-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-md); overflow: hidden;
    transition: all .3s var(--ease); position: relative; display: flex;
    flex-direction: column;
}
.product-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); transform: translateY(-4px); }
.product-card .pc-img {
    height: 160px; background: var(--bg-alt); display: flex;
    align-items: center; justify-content: center; position: relative; overflow: hidden;
}
.product-card .pc-img svg { width: 60px; height: 60px; color: var(--primary); }
.product-card .pc-badge {
    position: absolute; top: .5rem; left: .5rem;
    background: var(--grad-1); color: #fff; font-size: .65rem; font-weight: 700;
    padding: .2rem .6rem; border-radius: var(--radius-xs); z-index: 2;
}
.product-card .pc-badge.bestseller { background: var(--accent); }
.product-card .pc-badge.offer { background: var(--success); }
.product-card .pc-quick {
    position: absolute; top: .5rem; right: .5rem; width: 32px; height: 32px;
    background: var(--bg-card); border-radius: var(--radius-full);
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-sm); color: var(--text-2);
    opacity: 0; transform: translateX(10px); transition: all .25s; z-index: 2;
}
.product-card .pc-quick svg { width: 16px; height: 16px; }
.product-card:hover .pc-quick { opacity: 1; transform: translateX(0); }
.product-card .pc-quick:hover { color: var(--primary); }
.product-card .pc-body { padding: 1rem; flex: 1; display: flex; flex-direction: column; }
.product-card .pc-brand { font-size: .7rem; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: .5px; margin-bottom: .25rem; }
.product-card .pc-name { font-size: .85rem; font-weight: 600; color: var(--text); margin-bottom: .5rem; line-height: 1.4; flex: 1; }
.product-card .pc-cat { font-size: .7rem; color: var(--text-3); margin-bottom: .5rem; }
.product-card .pc-foot { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: auto; }
.product-card .pc-price { font-size: 1.1rem; font-weight: 800; color: var(--text); }
.product-card .pc-old { font-size: .75rem; color: var(--text-3); text-decoration: line-through; margin-left: .3rem; }
.product-card .pc-add {
    width: 36px; height: 36px; border-radius: var(--radius-sm);
    background: var(--grad-1); color: #fff; display: flex; align-items: center;
    justify-content: center; transition: all .2s; flex-shrink: 0;
}
.product-card .pc-add svg { width: 18px; height: 18px; }
.product-card .pc-add:hover { transform: scale(1.1); box-shadow: 0 4px 12px rgba(17,147,212,.4); }

/* Skeleton */
.product-card-skel .skel-line { height: 12px; border-radius: var(--radius-xs); background: var(--border); }
.product-card-skel .skel-img { height: 160px; background: var(--bg-alt); }
.product-card-skel .skel-img,
.product-card-skel .skel-line { animation: shimmer 1.4s infinite; }
@keyframes shimmer { 0%{opacity:1;} 50%{opacity:.4;} 100%{opacity:1;} }

/* ============================================================
   STATS BANNER
   ============================================================ */
.stats-banner {
    background: var(--grad-2); position: relative; overflow: hidden; padding: 3.5rem 0;
}
.stats-banner::before {
    content: ''; position: absolute; inset: 0; opacity: .1;
    background-image: radial-gradient(circle at 20% 50%, #fff 1px, transparent 1px), radial-gradient(circle at 80% 20%, #fff 1px, transparent 1px);
    background-size: 50px 50px;
}
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; text-align: center; position: relative; }
.stat-num { font-size: clamp(2rem, 5vw, 3rem); font-weight: 900; color: #fff; }
.stat-label { font-size: .85rem; color: rgba(255,255,255,.8); margin-top: .25rem; }

/* ============================================================
   ABOUT
   ============================================================ */
.about-flex { display: flex; flex-direction: column; gap: 2.5rem; align-items: center; }
.about-visual { position: relative; max-width: 360px; width: 100%; }
.about-card-glow {
    position: absolute; inset: 0; background: var(--grad-1);
    border-radius: var(--radius-lg); filter: blur(40px); opacity: .3;
    transform: translate(20px, 20px);
}
.about-card {
    position: relative; border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.about-card-badge {
    position: absolute; top: 1rem; right: 1rem;
    background: var(--bg-card); padding: .35rem .8rem; border-radius: var(--radius-full);
    font-size: .75rem; font-weight: 700; color: var(--primary);
}
.about-body { flex: 1; }
.about-title { font-size: clamp(1.5rem, 3.5vw, 2.25rem); font-weight: 800; margin: .5rem 0 1rem; }
.about-text { color: var(--text-2); margin-bottom: 1rem; }
.about-features { display: grid; grid-template-columns: 1fr; gap: .75rem; margin: 1.5rem 0; }
.about-feat { display: flex; align-items: center; gap: .75rem; font-size: .9rem; font-weight: 600; color: var(--text); }
.check-ico {
    width: 28px; height: 28px; border-radius: var(--radius-full);
    background: var(--success-l); color: var(--success);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.check-ico svg { width: 16px; height: 16px; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testi-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
.testi-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-md); padding: 1.5rem;
    transition: all .25s; display: flex; flex-direction: column; gap: .75rem;
}
.testi-card:hover { box-shadow: var(--shadow-md); }
.testi-rating { display: flex; gap: 2px; color: var(--warning); }
.testi-rating svg { width: 16px; height: 16px; fill: currentColor; }
.testi-text { font-size: .9rem; color: var(--text-2); line-height: 1.6; flex: 1; }
.testi-author { display: flex; align-items: center; gap: .75rem; }
.testi-avatar {
    width: 40px; height: 40px; border-radius: var(--radius-full);
    background: var(--grad-1); color: #fff; display: flex; align-items: center;
    justify-content: center; font-weight: 700; font-size: .85rem;
}
.testi-author b { font-size: .85rem; }
.testi-author span { font-size: .75rem; color: var(--text-3); display: block; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-list { display: flex; flex-direction: column; gap: .75rem; }
.faq-item {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-md); overflow: hidden; transition: border-color .2s;
}
.faq-item.open { border-color: var(--primary); }
.faq-q {
    width: 100%; padding: 1rem 1.25rem; display: flex; align-items: center;
    justify-content: space-between; gap: 1rem; font-weight: 600; font-size: .9rem;
    text-align: left; color: var(--text); transition: color .2s;
}
.faq-q:hover { color: var(--primary); }
.faq-q svg { width: 20px; height: 20px; color: var(--primary); flex-shrink: 0; transition: transform .3s; }
.faq-item.open .faq-q svg { transform: rotate(180deg); }
.faq-a {
    max-height: 0; overflow: hidden; transition: max-height .35s var(--ease);
}
.faq-item.open .faq-a { max-height: 200px; }
.faq-a p { padding: 0 1.25rem 1rem; font-size: .875rem; color: var(--text-2); }

/* ============================================================
   NEWSLETTER
   ============================================================ */
.newsletter { padding: 2rem 0 4rem; }
.news-card {
    background: var(--grad-1); border-radius: var(--radius-xl);
    padding: clamp(2rem, 5vw, 3.5rem); display: flex; flex-direction: column;
    align-items: center; gap: 2rem; text-align: center; position: relative;
    overflow: hidden;
}
.news-card::before {
    content: ''; position: absolute; top: -50%; right: -10%; width: 300px; height: 300px;
    background: rgba(255,255,255,.1); border-radius: 50%; filter: blur(60px);
}
.news-content { position: relative; }
.news-content h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); font-weight: 800; color: #fff; margin-bottom: .5rem; }
.news-content p { color: rgba(255,255,255,.9); font-size: .95rem; }
.news-form { display: flex; gap: .5rem; position: relative; width: 100%; max-width: 480px; flex-wrap: wrap; }
.news-form input {
    flex: 1; min-width: 200px; padding: .75rem 1.25rem; border: none;
    border-radius: var(--radius-sm); background: rgba(255,255,255,.95);
    color: var(--text); outline: none; font-size: .9rem;
}
.news-form input::placeholder { color: var(--text-3); }
.news-form button { white-space: nowrap; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--bg-card); border-top: 1px solid var(--border); padding: 3rem 0 1.5rem; }
.footer-top { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer-brand-col { grid-column: span 2; }
.footer-desc { font-size: .85rem; color: var(--text-3); margin: .75rem 0 1rem; max-width: 300px; }
.footer-social { display: flex; gap: .5rem; }
.social-btn {
    width: 36px; height: 36px; border-radius: var(--radius-sm);
    background: var(--bg-alt); display: flex; align-items: center; justify-content: center;
    color: var(--text-2); transition: all .2s;
}
.social-btn svg { width: 18px; height: 18px; }
.social-btn:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }
.footer-col h3 { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; margin-bottom: .75rem; color: var(--text); }
.footer-col ul li { padding: .25rem 0; }
.footer-col ul li a { font-size: .85rem; color: var(--text-3); transition: color .2s; }
.footer-col ul li a:hover { color: var(--primary); }
.fc-item { display: flex; align-items: flex-start; gap: .5rem; font-size: .85rem; color: var(--text-3); padding: .35rem 0; }
.fc-item svg { width: 18px; height: 18px; color: var(--primary); flex-shrink: 0; margin-top: 2px; }
.fc-item a { color: var(--text-3); }
.payment-row { display: flex; gap: .4rem; margin-top: .75rem; flex-wrap: wrap; }
.pay-badge {
    padding: .25rem .6rem; border: 1px solid var(--border); border-radius: var(--radius-xs);
    font-size: .65rem; font-weight: 700; color: var(--text-3);
    background: var(--bg-alt);
}
.footer-bottom {
    border-top: 1px solid var(--border); padding-top: 1.5rem;
    display: flex; flex-direction: column; gap: .5rem; align-items: center;
    font-size: .8rem; color: var(--text-3); text-align: center;
}

/* ============================================================
   MOBILE BOTTOM NAV
   ============================================================ */
.bottom-nav {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
    display: flex; justify-content: space-around; align-items: center;
    background: var(--bg-glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border); padding: .35rem 0; padding-bottom: env(safe-area-inset-bottom, 0);
}
.bn-link {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    font-size: .65rem; font-weight: 600; color: var(--text-3);
    padding: .35rem .5rem; border-radius: var(--radius-sm);
    transition: color .2s; background: none; border: none; cursor: pointer;
    flex: 1; max-width: 80px;
}
.bn-link svg { width: 22px; height: 22px; }
.bn-link.active { color: var(--primary); }
.bn-link:hover { color: var(--primary); }
.bn-link.bn-cart { position: relative; }
.bn-link.bn-cart .cart-badge { top: 0; right: 15%; }

/* ============================================================
   CART DRAWER
   ============================================================ */
.drawer-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,.5);
    z-index: 150; opacity: 0; pointer-events: none; transition: opacity .3s;
}
.drawer-overlay.open { opacity: 1; pointer-events: all; }
.cart-drawer {
    position: fixed; top: 0; right: -100%; width: 90%; max-width: 400px;
    height: 100%; background: var(--bg-card); z-index: 160;
    display: flex; flex-direction: column;
    transition: right .35s var(--ease); box-shadow: var(--shadow-xl);
}
.cart-drawer.open { right: 0; }
.drawer-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border);
}
.drawer-head h3 { font-size: 1.1rem; font-weight: 700; }
.drawer-close { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; color: var(--text-3); border-radius: var(--radius-sm); transition: all .2s; }
.drawer-close:hover { color: var(--danger); background: rgba(239,68,68,.08); }
.drawer-close svg { width: 20px; height: 20px; }
.cart-body { flex: 1; overflow-y: auto; padding: 1rem 1.5rem; }
.cart-empty { text-align: center; padding: 3rem 0; color: var(--text-3); }
.cart-empty svg { width: 48px; height: 48px; margin: 0 auto .75rem; }
.cart-empty p { margin-bottom: 1rem; font-size: .9rem; }
.cart-item { display: flex; gap: .75rem; padding: .75rem 0; border-bottom: 1px solid var(--border); }
.cart-item .ci-img {
    width: 56px; height: 56px; border-radius: var(--radius-sm); background: var(--bg-alt);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.cart-item .ci-img svg { width: 28px; height: 28px; color: var(--primary); }
.cart-item .ci-info { flex: 1; }
.cart-item .ci-info b { font-size: .85rem; font-weight: 600; display: block; }
.cart-item .ci-info span { font-size: .75rem; color: var(--text-3); }
.cart-item .ci-price { font-size: .9rem; font-weight: 700; color: var(--primary); }
.ci-actions { display: flex; align-items: center; gap: .5rem; margin-top: .35rem; }
.ci-qty {
    display: flex; align-items: center; gap: 0; border: 1px solid var(--border-2);
    border-radius: var(--radius-xs);
}
.ci-qty button {
    width: 26px; height: 26px; display: flex; align-items: center; justify-content: center;
    font-weight: 700; color: var(--text-2); transition: color .2s;
}
.ci-qty button:hover { color: var(--primary); }
.ci-qty span { font-size: .8rem; font-weight: 600; min-width: 28px; text-align: center; }
.ci-remove { font-size: .75rem; color: var(--text-3); transition: color .2s; }
.ci-remove:hover { color: var(--danger); }
.cart-footer {
    padding: 1.25rem 1.5rem; border-top: 1px solid var(--border);
    background: var(--bg-alt);
}
.cart-subtotal {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: .75rem;
}
.cart-subtotal span { font-size: .9rem; color: var(--text-2); }
.cart-subtotal b { font-size: 1.25rem; font-weight: 800; color: var(--text); }
.cart-note { font-size: .75rem; color: var(--text-3); text-align: center; margin-top: .5rem; }

/* ============================================================
   QUICK VIEW MODAL
   ============================================================ */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 180;
    display: flex; align-items: center; justify-content: center;
    padding: 1rem; opacity: 0; pointer-events: none; transition: opacity .3s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.qv-modal {
    background: var(--bg-card); border-radius: var(--radius-lg);
    max-width: 420px; width: 100%; position: relative;
    transform: scale(.9); transition: transform .3s var(--ease-bounce);
    box-shadow: var(--shadow-xl); overflow: hidden;
}
.modal-overlay.open .qv-modal { transform: scale(1); }
.qv-close {
    position: absolute; top: .75rem; right: .75rem; width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-3); border-radius: var(--radius-full);
    background: var(--bg-alt); z-index: 3; transition: all .2s;
}
.qv-close:hover { color: var(--danger); }
.qv-close svg { width: 18px; height: 18px; }
.qv-img {
    height: 200px; background: var(--grad-1); display: flex;
    align-items: center; justify-content: center;
}
.qv-img svg { width: 80px; height: 80px; color: rgba(255,255,255,.8); }
.qv-info { padding: 1.5rem; }
.qv-info .qv-brand { font-size: .7rem; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: .5px; }
.qv-info h3 { font-size: 1.25rem; font-weight: 800; margin: .25rem 0 .5rem; }
.qv-info .qv-cat { font-size: .8rem; color: var(--text-3); margin-bottom: .75rem; }
.qv-info .qv-price { font-size: 1.5rem; font-weight: 800; color: var(--primary); margin-bottom: 1rem; }
.qv-actions { display: flex; gap: .5rem; }

/* ============================================================
   FLOATING ELEMENTS
   ============================================================ */
.wa-float {
    position: fixed; bottom: 80px; right: 1rem; z-index: 80;
    width: 52px; height: 52px; border-radius: var(--radius-full);
    background: #25d366; color: #fff; display: flex; align-items: center;
    justify-content: center; box-shadow: 0 4px 16px rgba(37,211,102,.4);
    transition: all .25s; animation: pulse 2s infinite;
}
.wa-float svg { width: 28px; height: 28px; }
.wa-float:hover { transform: scale(1.1); color: #fff; }
@keyframes pulse {
    0%,100% { box-shadow: 0 4px 16px rgba(37,211,102,.4); }
    50% { box-shadow: 0 4px 24px rgba(37,211,102,.6); }
}

.back-top {
    position: fixed; bottom: 80px; left: 1rem; z-index: 80;
    width: 44px; height: 44px; border-radius: var(--radius-full);
    background: var(--bg-card); border: 1px solid var(--border);
    color: var(--text-2); display: flex; align-items: center;
    justify-content: center; box-shadow: var(--shadow-md);
    opacity: 0; pointer-events: none; transform: translateY(10px);
    transition: all .3s;
}
.back-top.show { opacity: 1; pointer-events: all; transform: translateY(0); }
.back-top:hover { color: var(--primary); border-color: var(--primary); }
.back-top svg { width: 22px; height: 22px; }

/* ============================================================
   MOBILE MENU OVERLAY
   ============================================================ */
.mobile-menu-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 170;
    opacity: 0; pointer-events: none; transition: opacity .3s;
}
.mobile-menu-overlay.open { opacity: 1; pointer-events: all; }
.mobile-menu {
    position: absolute; left: 0; top: 0; bottom: 0; width: 80%; max-width: 320px;
    background: var(--bg-card); padding: 1.5rem; transform: translateX(-100%);
    transition: transform .35s var(--ease); display: flex; flex-direction: column;
}
.mobile-menu-overlay.open .mobile-menu { transform: translateX(0); }
.mm-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2rem; }
.mm-close { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; color: var(--text-3); transition: color .2s; }
.mm-close:hover { color: var(--danger); }
.mm-nav { display: flex; flex-direction: column; gap: .25rem; flex: 1; }
.mm-nav a { padding: .75rem 1rem; font-size: 1rem; font-weight: 600; color: var(--text-2); border-radius: var(--radius-sm); transition: all .2s; }
.mm-nav a:hover { background: var(--primary-l); color: var(--primary); }
.mm-actions { display: flex; flex-direction: column; gap: .5rem; }

/* ============================================================
   TOAST
   ============================================================ */
.toast-container {
    position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%);
    z-index: 300; display: flex; flex-direction: column; gap: .5rem;
    align-items: center; pointer-events: none;
}
.toast {
    background: var(--text); color: var(--bg); padding: .75rem 1.5rem;
    border-radius: var(--radius-sm); font-size: .85rem; font-weight: 600;
    box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: .5rem;
    animation: toastIn .3s var(--ease-bounce), toastOut .3s var(--ease) 2.7s forwards;
}
@keyframes toastIn { from{ opacity:0; transform: translateY(20px); } to{ opacity:1; transform: translateY(0); } }
@keyframes toastOut { to{ opacity:0; transform: translateY(-10px); } }
.toast svg { width: 20px; height: 20px; color: var(--success); }

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.revealed { opacity: 1; transform: translateY(0); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (min-width: 400px) {
    .cat-grid { grid-template-columns: repeat(3, 1fr); }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .testi-grid { grid-template-columns: repeat(2, 1fr); }
    .about-features { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-top { grid-template-columns: repeat(3, 1fr); }
    .footer-brand-col { grid-column: span 3; }
}

@media (min-width: 640px) {
    .cat-grid { grid-template-columns: repeat(4, 1fr); }
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .testi-grid { grid-template-columns: repeat(3, 1fr); }
    .stats-grid { grid-template-columns: repeat(4, 1fr); }
    .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}

@media (min-width: 768px) {
    .menu-toggle { display: none; }
    .header-nav { display: flex; }
    .container { padding: 0 2rem; }
    .section { padding: 5rem 0; }
    .cat-grid { grid-template-columns: repeat(6, 1fr); }
    .product-grid { grid-template-columns: repeat(4, 1fr); }
    .about-flex { flex-direction: row; }
    .about-features { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: repeat(5, 1fr); }
    .footer-brand-col { grid-column: span 2; }
    .footer-bottom { flex-direction: row; justify-content: space-between; }
    .bn-search { display: none; }
}

@media (min-width: 1024px) {
    .section { padding: 6rem 0; }
    .cat-grid { grid-template-columns: repeat(8, 1fr); }
    .product-grid { grid-template-columns: repeat(4, 1fr); }
    .about-features { grid-template-columns: repeat(2, 1fr); }
    .news-card { flex-direction: row; text-align: left; }
    .news-form { margin-left: auto; }
    .footer-bottom { flex-direction: row; }
}

/* Desktop: hide bottom nav */
@media (min-width: 768px) {
    .bottom-nav { display: none; }
    .back-top { bottom: 2rem; }
    .wa-float { bottom: 2rem; }
    body { padding-bottom: 0; }
}
body { padding-bottom: 60px; }
@media (min-width: 768px) { body { padding-bottom: 0; } }

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
    .reveal { opacity: 1; transform: none; }
}