/* ==========================================================================
   HsnBeSmart.com — Storefront stylesheet (Phase 3)
   Premium, minimal, trustworthy. System font stack (self-hosted, no CDN).
   CSS variables: --primary / --secondary are set inline from admin settings.
   Mobile-first, responsive 320px–4K, no horizontal scroll.
   ========================================================================== */
:root{
  --primary:#111827; --secondary:#c2410c;
  --bg:#ffffff; --bg-alt:#f6f7f9; --surface:#ffffff;
  --text:#111827; --text-muted:#5b6472; --border:#e5e7eb;
  --success:#15803d; --danger:#b91c1c; --warning:#b45309;
  --star:#f59e0b; --radius:12px; --radius-sm:8px;
  --shadow:0 2px 10px rgba(17,24,39,.08); --shadow-lg:0 12px 32px rgba(17,24,39,.16);
  --header-h:72px; --max:1200px;
  --font:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
}
[data-theme="dark"]{
  --bg:#0f172a; --bg-alt:#1e293b; --surface:#1e293b;
  --text:#f1f5f9; --text-muted:#94a3b8; --border:#334155;
  --shadow:0 2px 10px rgba(0,0,0,.4); --shadow-lg:0 12px 32px rgba(0,0,0,.5);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
[hidden]{display:none !important}
body{margin:0;font-family:var(--font);background:var(--bg);color:var(--text);line-height:1.6;overflow-x:hidden}
img{max-width:100%;height:auto;display:block}
a{color:var(--primary);text-decoration:none}
a:hover{text-decoration:underline}
h1,h2,h3,h4{line-height:1.25;margin:0 0 .5em}
p{margin:0 0 1em}
ul,ol{margin:0;padding:0;list-style:none}
button{font-family:inherit;cursor:pointer}
input,select,textarea{font-family:inherit;font-size:1rem;color:var(--text);background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-sm);padding:.6rem .75rem;width:100%}
input:focus,select:focus,textarea:focus,button:focus-visible,a:focus-visible{outline:3px solid var(--secondary);outline-offset:2px}
.container{max-width:var(--max);margin:0 auto;padding:0 1rem}
.container.narrow{max-width:760px}
.section{padding:3rem 0}
.section-alt{background:var(--bg-alt)}
.section-head{text-align:center;margin-bottom:2rem}
.section-head h2{font-size:clamp(1.5rem,3vw,2.1rem);margin-bottom:.25rem}
.section-head p{color:var(--text-muted);margin:0}
.center{text-align:center}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.skip-link{position:absolute;left:-999px;top:0;background:var(--primary);color:#fff;padding:.5rem 1rem;z-index:200;border-radius:0 0 8px 0}
.skip-link:focus{left:0;color:#fff}
.btn{display:inline-block;border:1px solid transparent;border-radius:var(--radius-sm);padding:.65rem 1.25rem;font-weight:600;font-size:.95rem;text-align:center;background:var(--primary);color:#fff;transition:transform .15s ease,box-shadow .15s ease,background .15s ease}
.btn:hover{text-decoration:none;transform:translateY(-1px);box-shadow:var(--shadow)}
.btn-primary{background:var(--primary);color:#fff}
.btn-secondary{background:transparent;border-color:var(--primary);color:var(--primary)}
.btn-ghost{background:rgba(255,255,255,.14);border-color:rgba(255,255,255,.6);color:#fff}
.btn-whatsapp{background:#22c55e;color:#fff}
.btn-lg{padding:.85rem 1.75rem;font-size:1.05rem}
.btn-block{display:block;width:100%}
.btn:disabled{opacity:.5;cursor:not-allowed;transform:none;box-shadow:none}
.btn-icon{background:var(--surface);border:1px solid var(--border);border-radius:50%;width:44px;height:44px;font-size:1.25rem;line-height:1;color:var(--text)}
.link-btn{background:none;border:0;color:var(--secondary);font-weight:600;padding:0;text-decoration:underline}
.link-more{font-weight:700;color:var(--secondary)}
.badge{position:absolute;top:.6rem;left:.6rem;background:var(--secondary);color:#fff;font-size:.75rem;font-weight:700;padding:.2rem .55rem;border-radius:999px}
.badge-new{left:auto;right:.6rem;background:var(--success)}
.badge-oos{top:auto;bottom:.6rem;left:.6rem;background:#374151}
.save-badge{background:#fef3c7;color:#92400e;font-size:.8rem;font-weight:700;padding:.25rem .6rem;border-radius:999px}

/* --- Announcement bar / header --- */
.announcement-bar{background:var(--primary);color:#fff;text-align:center;font-size:.85rem;padding:.45rem 1rem}
.site-header{position:sticky;top:0;z-index:100;background:var(--surface);border-bottom:1px solid var(--border);transition:box-shadow .2s ease}
.site-header.shrink{box-shadow:var(--shadow-lg)}
.header-inner{display:flex;align-items:center;gap:1rem;min-height:var(--header-h)}
.brand{display:flex;align-items:center;gap:.6rem;flex-shrink:0}
.brand:hover{text-decoration:none}
.brand-logo{width:44px;height:44px;border-radius:10px}
.brand-text{display:flex;flex-direction:column;line-height:1.15}
.brand-name{font-weight:800;font-size:1.15rem;letter-spacing:-.02em}
.brand-tagline{font-size:.72rem;color:var(--secondary);font-weight:700;letter-spacing:.08em;text-transform:uppercase}
.header-search{position:relative;flex:1 1 auto;min-width:0;max-width:520px;margin:0 auto;display:flex}
.header-search input{border-radius:999px;padding-right:3rem;min-width:0;width:100%}
.header-search.error-search button{position:static;width:auto;padding:0 1.15rem;flex:none}
.header-search.error-search input{padding-right:1rem}
.header-search button{position:absolute;right:2px;top:2px;bottom:2px;width:44px;border:0;border-radius:999px;background:var(--primary);color:#fff;font-size:1.05rem}
.search-suggestions{position:absolute;top:calc(100% + 6px);left:0;right:0;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow-lg);z-index:120;overflow:hidden}
.search-suggestions a{display:flex;align-items:center;gap:.7rem;padding:.6rem .8rem;color:var(--text)}
.search-suggestions a:hover,.search-suggestions a.active{background:var(--bg-alt);text-decoration:none}
.search-suggestions img{width:44px;height:44px;object-fit:cover;border-radius:6px}
.search-suggestions .sugg-price{margin-left:auto;font-weight:700;white-space:nowrap}
.header-icons{display:flex;align-items:center;gap:.35rem;margin-left:auto}
.icon-btn{position:relative;display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border:0;border-radius:50%;background:transparent;color:var(--text);font-size:1.3rem}
.icon-btn:hover{background:var(--bg-alt)}
.count-badge{position:absolute;top:2px;right:0;min-width:18px;height:18px;padding:0 4px;border-radius:999px;background:var(--secondary);color:#fff;font-size:.68rem;font-weight:700;display:inline-flex;align-items:center;justify-content:center}
.menu-toggle{display:none}
.main-nav{border-top:1px solid var(--border)}
.nav-list{display:flex;gap:.25rem;flex-wrap:wrap}
.nav-list>li{position:relative}
.nav-list>li>a{display:block;padding:.7rem .85rem;font-weight:600;color:var(--text)}
.nav-list>li>a:hover{color:var(--secondary);text-decoration:none}
.has-mega .mega-menu{position:absolute;left:0;top:100%;min-width:520px;background:var(--surface);border:1px solid var(--border);border-radius:0 0 var(--radius) var(--radius);box-shadow:var(--shadow-lg);padding:1rem;display:none;z-index:110}
.has-mega:hover .mega-menu,.has-mega:focus-within .mega-menu{display:block}
.mega-inner{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:1rem}
.mega-title{font-weight:700;display:block;margin-bottom:.35rem}
.mega-col ul li a{display:block;padding:.2rem 0;color:var(--text-muted)}
.mega-col ul li a:hover{color:var(--secondary)}

/* --- Mobile nav / drawers --- */
.mobile-nav{position:fixed;inset:0 auto 0 0;width:min(320px,85vw);background:var(--surface);z-index:210;transform:translateX(-105%);transition:transform .25s ease;overflow-y:auto;padding:1rem;box-shadow:var(--shadow-lg)}
.mobile-nav.open{transform:translateX(0)}
.mobile-nav-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem}
.mobile-nav ul li a{display:block;padding:.6rem 0;border-bottom:1px solid var(--border)}
.mobile-nav ul ul li a{padding-left:1rem;color:var(--text-muted)}
.nav-overlay,.cart-overlay{position:fixed;inset:0;background:rgba(0,0,0,.5);z-index:205}
.mini-cart{position:fixed;top:0;right:0;bottom:0;width:min(400px,92vw);background:var(--surface);z-index:210;transform:translateX(105%);transition:transform .25s ease;display:flex;flex-direction:column;box-shadow:var(--shadow-lg)}
.mini-cart.open{transform:translateX(0)}
.mini-cart-head{display:flex;justify-content:space-between;align-items:center;padding:1rem;border-bottom:1px solid var(--border)}
.mini-cart-head h2{font-size:1.1rem;margin:0}
.mini-cart-body{padding:1rem;overflow-y:auto;flex:1}
.mini-cart-list li{display:flex;gap:.7rem;padding:.6rem 0;border-bottom:1px solid var(--border)}
.mini-cart-list img{width:72px;height:72px;object-fit:cover;border-radius:8px}
.mini-cart-info{flex:1;display:flex;flex-direction:column}
.mini-cart-variant,.mini-cart-qty{color:var(--text-muted);font-size:.85rem}
.mini-cart-subtotal{display:flex;justify-content:space-between;font-size:1.05rem;margin:1rem 0 .25rem}
.mini-cart-note{color:var(--text-muted);font-size:.85rem}
.mini-cart-actions{display:grid;gap:.5rem;margin-top:1rem}
.mini-cart-empty{color:var(--text-muted)}

/* --- Toasts --- */
.toast{position:fixed;left:50%;transform:translateX(-50%);bottom:5.5rem;z-index:300;background:var(--primary);color:#fff;padding:.8rem 1.2rem;border-radius:999px;box-shadow:var(--shadow-lg);max-width:92vw;text-align:center;animation:toast-in .25s ease}
.toast-error{background:var(--danger)}
.toast-stack{position:fixed;left:50%;transform:translateX(-50%);bottom:5.5rem;z-index:300;display:grid;gap:.5rem;width:min(480px,92vw)}
@keyframes toast-in{from{opacity:0;transform:translate(-50%,8px)}to{opacity:1;transform:translate(-50%,0)}}

/* --- Hero --- */
.hero{position:relative}
.hero-slider{position:relative;overflow:hidden;background:#0f172a}
.hero-slide{position:relative;min-height:420px;display:flex;align-items:center}
.hero-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.55}
.hero-overlay{position:absolute;inset:0;background:linear-gradient(90deg,rgba(0,0,0,.72),rgba(0,0,0,.25))}
.hero-content{position:relative;color:#fff;padding:3.5rem 1rem;max-width:640px}
.hero-eyebrow{font-weight:700;letter-spacing:.12em;text-transform:uppercase;font-size:.8rem;color:#fbbf24}
.hero-content h1{font-size:clamp(2rem,5vw,3.4rem);margin:.3em 0}
.hero-sub{font-size:clamp(1rem,2.4vw,1.25rem);opacity:.92}
.hero-cta{display:flex;gap:.75rem;flex-wrap:wrap;margin-top:1.25rem}
.hero-arrow{position:absolute;top:50%;transform:translateY(-50%);z-index:5;width:44px;height:44px;border-radius:50%;border:0;background:rgba(255,255,255,.85);color:#111;font-size:1.5rem}
.hero-prev{left:1rem}.hero-next{right:1rem}
.hero-dots{position:absolute;bottom:1rem;left:50%;transform:translateX(-50%);display:flex;gap:.5rem;z-index:5}
.hero-dot{width:12px;height:12px;border-radius:50%;border:0;background:rgba(255,255,255,.5)}
.hero-dot.active{background:#fff}

/* --- Category showcase --- */
.category-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:1.25rem}
.category-card{position:relative;border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);display:block;min-height:220px;background:var(--bg-alt)}
.category-card img{width:100%;height:100%;object-fit:cover;position:absolute;inset:0;transition:transform .4s ease}
.category-card:hover img{transform:scale(1.05)}
.category-card-body{position:absolute;inset:auto 0 0 0;padding:1rem;background:linear-gradient(transparent,rgba(0,0,0,.78));color:#fff;display:flex;flex-direction:column;gap:.15rem}
.category-card-body strong{font-size:1.25rem}
.category-card-body span{font-size:.9rem;opacity:.9}
.category-card:hover{text-decoration:none}

/* --- Products --- */
.product-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1.25rem}
.product-grid.list-view{grid-template-columns:1fr}
.product-grid.list-view .product-card{display:grid;grid-template-columns:200px 1fr}
.product-grid.list-view .product-card-media img{height:100%}
.product-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;display:flex;flex-direction:column;transition:transform .2s ease,box-shadow .2s ease}
.product-card:hover{transform:translateY(-4px);box-shadow:var(--shadow-lg)}
.product-card-media{position:relative;display:block;aspect-ratio:1;background:var(--bg-alt);overflow:hidden}
.product-card-media img{width:100%;height:100%;object-fit:cover;transition:transform .35s ease}
.product-card:hover .product-card-media img{transform:scale(1.06)}
.product-card-body{padding:1rem;display:flex;flex-direction:column;gap:.35rem;flex:1}
.product-brand{font-size:.75rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--secondary);margin:0}
.product-name{font-size:1rem;margin:0}
.product-name a{color:var(--text)}
.product-rating{margin:0;font-size:.9rem;color:var(--text-muted)}
.stars{color:var(--star);letter-spacing:.1em}
.product-price{margin:0;font-size:1.05rem}
.price-now{font-weight:800}
.price-was{color:var(--text-muted);text-decoration:line-through;font-size:.9rem;margin-left:.4rem}
.product-card-actions{display:flex;gap:.5rem;margin-top:auto;padding-top:.5rem}
.product-card-actions .btn-primary{flex:1}
.product-card-actions .btn-icon{width:44px;height:44px;border-radius:var(--radius-sm)}
.product-card-actions .btn-icon.active{color:#e11d48;border-color:#e11d48}

/* --- Deals / countdown --- */
.deals-section{background:linear-gradient(180deg,#fff7ed,var(--bg));border-top:1px solid var(--border);border-bottom:1px solid var(--border)}
.countdown{font-size:1.5rem;font-weight:800;letter-spacing:.05em;color:var(--secondary)}
.countdown span{background:var(--primary);color:#fff;border-radius:8px;padding:.15rem .5rem}

/* --- Brands / why / stats / testimonials --- */
.brand-list{display:flex;flex-wrap:wrap;gap:1.5rem;justify-content:center;align-items:center}
.brand-list li{font-size:1.4rem;font-weight:800;color:var(--text-muted);letter-spacing:.04em}
.brand-list img{max-height:64px;width:auto}
.why-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1.25rem}
.why-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:1.5rem;box-shadow:var(--shadow)}
.stats-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:1rem;margin-top:2.5rem;text-align:center}
.stat strong{display:block;font-size:2rem;color:var(--secondary)}
.stat span{color:var(--text-muted)}
.testimonial-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:1.25rem}
.testimonial{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:1.5rem;margin:0;box-shadow:var(--shadow)}
.testimonial footer{color:var(--text-muted);font-size:.9rem;margin-top:.75rem}
.faq-list{max-width:760px;margin:0 auto 1.5rem}
.faq-item{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);margin-bottom:.6rem;overflow:hidden}
.faq-item summary{padding:1rem 1.25rem;font-weight:700;cursor:pointer;list-style:none}
.faq-item summary::-webkit-details-marker{display:none}
.faq-item summary::after{content:"+";float:right;color:var(--secondary)}
.faq-item[open ] summary::after{content:"−"}
.faq-item p{padding:0 1.25rem 1rem;margin:0;color:var(--text-muted)}
.cta-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:1.25rem}
.cta-card{background:var(--primary);color:#fff;border-radius:var(--radius);padding:2rem}
.cta-card h2{color:#fff}
.cta-card p{opacity:.9}
.cta-card .btn-ghost{border-color:#fff}

/* --- Trust badges / footer --- */
.trust-badges{border-top:1px solid var(--border);padding:1.5rem 0;background:var(--bg-alt)}
.trust-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1rem}
.trust-item{display:flex;flex-direction:column;align-items:center;text-align:center;gap:.15rem}
.trust-icon{font-size:1.6rem}
.trust-item span:last-child{color:var(--text-muted);font-size:.88rem}
.site-footer{background:var(--primary);color:#e5e7eb;margin-top:0}
.site-footer a{color:#e5e7eb}
.site-footer h3{color:#fff;font-size:1rem;margin-bottom:.75rem}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr 1.6fr;gap:2rem;padding:3rem 1rem 2rem}
.footer-grid .brand-name{color:#fff}
.footer-col ul li{margin-bottom:.4rem}
.footer-col address{font-style:normal}
.footer-col address p{margin:0 0 .5rem}
.social-links{display:flex;gap:1rem;flex-wrap:wrap;margin-top:1rem}
.social-links a{font-weight:700}
.newsletter-form{display:flex;margin-top:1rem}
.newsletter-form input{border-radius:var(--radius-sm) 0 0 var(--radius-sm);border:0}
.newsletter-form button{border:0;border-radius:0 var(--radius-sm) var(--radius-sm) 0;background:var(--secondary);color:#fff;font-weight:700;padding:.6rem 1rem}
.footer-bottom{border-top:1px solid rgba(255,255,255,.15);padding:1rem 0}
.footer-bottom-inner{display:flex;justify-content:space-between;gap:1rem;flex-wrap:wrap}
.footer-bottom p{margin:0;font-size:.88rem}
.whatsapp-float{position:fixed;right:1rem;bottom:5rem;z-index:90;width:54px;height:54px;border-radius:50%;background:#22c55e;color:#fff;display:flex;align-items:center;justify-content:center;font-size:1.6rem;box-shadow:var(--shadow-lg)}
.back-to-top{position:fixed;right:1rem;bottom:9.5rem;z-index:90;width:44px;height:44px;border-radius:50%;border:0;background:var(--primary);color:#fff;font-size:1.2rem;box-shadow:var(--shadow-lg)}
.mobile-bottom-nav{display:none}
.cookie-banner{position:fixed;left:0;right:0;bottom:0;z-index:250;background:var(--primary);color:#fff;padding:1rem;display:flex;gap:1rem;align-items:center;justify-content:center;flex-wrap:wrap}
.cookie-banner p{margin:0}
.cookie-banner a{color:#fbbf24}
.cookie-banner button{border:0;background:var(--secondary);color:#fff;font-weight:700;border-radius:8px;padding:.6rem 1.25rem}

/* --- Breadcrumbs / page head --- */
.breadcrumbs{font-size:.88rem;color:var(--text-muted);margin-bottom:.75rem}
.breadcrumbs ol{display:flex;flex-wrap:wrap;gap:.25rem}
.breadcrumbs a{color:var(--text-muted)}
.breadcrumbs li[aria-current]{color:var(--text);font-weight:600}
.page-head{padding:2rem 0 1rem;border-bottom:1px solid var(--border)}
.page-head h1{font-size:clamp(1.6rem,4vw,2.4rem)}
.page-intro{color:var(--text-muted);max-width:720px}
.subcat-chips{display:flex;gap:.5rem;flex-wrap:wrap;margin-top:1rem}
.subcat-chips a{border:1px solid var(--border);border-radius:999px;padding:.35rem .9rem;background:var(--surface)}
.subcat-chips a.active,.subcat-chips a:hover{background:var(--primary);color:#fff;text-decoration:none}

/* --- Listing --- */
.listing-layout{display:grid;grid-template-columns:260px 1fr;gap:2rem;padding:2rem 0 3rem}
.filter-toggle{display:none}
.filters{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:1.25rem;height:fit-content;position:sticky;top:calc(var(--header-h) + 60px)}
.filter-group{margin-bottom:1.25rem;padding-bottom:1.25rem;border-bottom:1px solid var(--border)}
.filter-group:last-child{border:0}
.filter-group h3{font-size:.95rem;margin-bottom:.6rem}
.filter-check{display:flex;align-items:center;gap:.5rem;padding:.25rem 0;cursor:pointer}
.filter-check input{width:auto}
.price-inputs{display:flex;gap:.5rem}
.price-inputs label{flex:1;font-size:.85rem}
.chip-options{display:flex;flex-wrap:wrap;gap:.4rem}
.chip-option{border:1px solid var(--border);border-radius:999px;padding:.3rem .8rem;cursor:pointer;font-size:.9rem}
.chip-option:has(input:checked){background:var(--primary);color:#fff}
.chip-option input{position:absolute;opacity:0;pointer-events:none}
.filter-actions{display:grid;gap:.5rem}
.active-filters{display:flex;flex-wrap:wrap;gap:.5rem;margin-bottom:1rem}
.filter-chip{border:1px solid var(--border);background:var(--surface);border-radius:999px;padding:.3rem .8rem;font-size:.88rem}
.filter-chip.clear{background:var(--danger);color:#fff;border-color:var(--danger)}
.toolbar{display:flex;align-items:center;gap:1rem;flex-wrap:wrap;margin-bottom:1.25rem}
.result-count{margin:0;color:var(--text-muted)}
.sort-form{margin-left:auto}
.sort-form select{width:auto}
.view-toggle{display:flex;border:1px solid var(--border);border-radius:8px;overflow:hidden}
.view-btn{padding:.5rem .8rem;background:var(--surface);color:var(--text);font-size:1.1rem}
.view-btn.active{background:var(--primary);color:#fff;text-decoration:none}
.pagination{display:flex;gap:.4rem;justify-content:center;margin:2rem 0;flex-wrap:wrap}
.pagination a,.pagination span{border:1px solid var(--border);border-radius:8px;padding:.5rem .9rem;background:var(--surface)}
.pagination .current{background:var(--primary);color:#fff;border-color:var(--primary);font-weight:700}
.empty-state{text-align:center;padding:3rem 1rem}
.empty-state h2{margin-bottom:.5rem}
.empty-state p{color:var(--text-muted)}

/* --- Product page --- */
.product-page{padding:1.5rem 0 3rem}
.product-layout{display:grid;grid-template-columns:1fr 1fr;gap:2.5rem;margin-top:1rem}
.gallery-main{position:relative;border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;background:var(--bg-alt);aspect-ratio:1}
.gallery-main img{width:100%;height:100%;object-fit:cover;cursor:zoom-in;transition:transform .3s ease}
.gallery-main:hover img{transform:scale(1.04)}
.gallery-zoom-btn{position:absolute;right:.75rem;top:.75rem;width:42px;height:42px;border-radius:50%;border:0;background:rgba(255,255,255,.9);font-size:1.1rem}
.gallery-badge{top:.75rem}
.gallery-thumbs{display:flex;gap:.6rem;margin-top:.75rem;flex-wrap:wrap}
.gallery-thumb{border:2px solid var(--border);border-radius:8px;overflow:hidden;padding:0;width:84px;height:84px;background:var(--bg-alt)}
.gallery-thumb.active{border-color:var(--secondary)}
.gallery-thumb img{width:100%;height:100%;object-fit:cover}
.product-info h1{font-size:clamp(1.5rem,3.4vw,2.1rem)}
.product-price-lg{font-size:1.6rem;margin:.5rem 0}
.stock-line{font-weight:600}
.in-stock{color:var(--success)}
.out-stock{color:var(--danger)}
.short-desc{color:var(--text-muted)}
.buy-box{border:1px solid var(--border);border-radius:var(--radius);padding:1.25rem;margin:1rem 0;background:var(--bg-alt)}
.variant-options{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:.4rem}
.variant-option{border:1px solid var(--border);border-radius:8px;padding:.5rem .9rem;cursor:pointer;background:var(--surface)}
.variant-option:has(input:checked){border-color:var(--secondary);background:#fff7ed;box-shadow:0 0 0 1px var(--secondary)}
[data-theme="dark"] .variant-option:has(input:checked){background:#3b2f1e}
.variant-option input{position:absolute;opacity:0;pointer-events:none}
.qty-row{display:flex;align-items:center;gap:1rem;margin:1rem 0}
.qty-control{display:flex;align-items:center}
.qty-btn{width:40px;height:40px;border:1px solid var(--border);background:var(--surface);font-size:1.2rem}
.qty-control input{width:64px;text-align:center;border-radius:0;border-left:0;border-right:0}
.buy-actions{display:flex;gap:.6rem}
.buy-actions .btn-primary{flex:1}
.btn-wishlist-lg{width:52px;font-size:1.5rem}
.btn-wishlist-lg.active{color:#e11d48;border-color:#e11d48}
.product-assurances{margin:1rem 0;padding:0}
.product-assurances li{padding:.3rem 0 .3rem 1.5rem;position:relative}
.product-assurances li::before{content:"✓";position:absolute;left:0;color:var(--success);font-weight:700}
.share-row{display:flex;gap:1rem;align-items:center;flex-wrap:wrap;color:var(--text-muted);font-size:.92rem}
.product-tabs{margin-top:2.5rem}
.tab-buttons{display:flex;gap:.25rem;border-bottom:2px solid var(--border);overflow-x:auto}
.tab-btn{border:0;background:none;padding:.8rem 1.1rem;font-weight:700;color:var(--text-muted);border-bottom:3px solid transparent;margin-bottom:-2px;white-space:nowrap}
.tab-btn.active{color:var(--primary);border-bottom-color:var(--secondary)}
.tab-panel{padding:1.5rem 0}
.tab-panel[hidden]{display:none}
.spec-table{width:100%;border-collapse:collapse}
.spec-table th,.spec-table td{border:1px solid var(--border);padding:.6rem .8rem;text-align:left}
.spec-table th{background:var(--bg-alt);width:32%}
.rich-text h2,.rich-text h3{margin-top:1.25rem}
.rich-text img{border-radius:var(--radius)}
.quick-answer{background:#eff6ff;border:1px solid #bfdbfe;border-radius:var(--radius);padding:1.25rem;margin-top:1.5rem}
[data-theme="dark"] .quick-answer{background:#1e3a5f;border-color:#33507a}
.quick-answer h3{margin-bottom:.35rem}
.notes-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1rem}
.note-card{border:1px solid var(--border);border-radius:var(--radius);padding:1.25rem;background:var(--surface)}
.note-card span{color:var(--text-muted);font-size:.88rem}
.review-list li,.qa-list li{border:1px solid var(--border);border-radius:var(--radius);padding:1rem;margin-bottom:.75rem;background:var(--surface)}
.review footer,.qa-a{color:var(--text-muted);font-size:.9rem}
.review-form,.qa-form{display:grid;gap:.75rem;max-width:640px;margin-top:1rem}
.review-form label,.qa-form label,.auth-form label,.contact-form label,.checkout-form label,.track-form label{display:grid;gap:.3rem;font-weight:600;font-size:.92rem}
.form-note{color:var(--text-muted);font-size:.88rem}
.form-error{color:var(--danger);font-weight:600;font-size:.9rem}
.form-success{color:var(--success);font-weight:600}
.lightbox{position:fixed;inset:0;background:rgba(0,0,0,.9);z-index:400;display:flex;align-items:center;justify-content:center;padding:1rem}
.lightbox[hidden]{display:none}
.lightbox img{max-width:min(900px,94vw);max-height:88vh;border-radius:8px}
.lightbox-close{position:absolute;top:1rem;right:1rem;width:48px;height:48px;border-radius:50%;border:0;background:#fff;font-size:1.6rem}
.modal{position:fixed;inset:0;background:rgba(0,0,0,.6);z-index:400;display:flex;align-items:center;justify-content:center;padding:1rem}
.modal[hidden]{display:none}
.modal-box{background:var(--surface);border-radius:var(--radius);max-width:640px;width:100%;max-height:88vh;overflow:auto;padding:1.75rem;position:relative}
.modal-close{position:absolute;top:.75rem;right:.75rem;width:40px;height:40px;border-radius:50%;border:1px solid var(--border);background:var(--surface);font-size:1.3rem}
.sticky-buy-bar{display:none}

/* --- Cart / checkout --- */
.cart-layout,.checkout-layout{display:grid;grid-template-columns:1fr 360px;gap:2rem;align-items:start}
.cart-table{width:100%;border-collapse:collapse}
.cart-table th,.cart-table td{border-bottom:1px solid var(--border);padding:.75rem .5rem;text-align:left;vertical-align:middle}
.cart-product{display:flex;gap:.8rem;align-items:center}
.cart-product img{width:90px;height:90px;object-fit:cover;border-radius:8px}
.cart-variant,.cart-sku{display:block;color:var(--text-muted);font-size:.85rem}
.cart-table input[type="number"]{width:72px;text-align:center}
.cart-summary{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:1.5rem;position:sticky;top:calc(var(--header-h) + 60px)}
.summary-rows>div{display:flex;justify-content:space-between;padding:.4rem 0}
.summary-rows dt{font-weight:600}
.summary-rows dd{margin:0;font-weight:600}
.summary-total{border-top:2px solid var(--border);font-size:1.15rem;padding-top:.75rem !important}
.summary-items li{display:flex;gap:.7rem;align-items:center;padding:.5rem 0;border-bottom:1px solid var(--border)}
.summary-items img{width:56px;height:56px;object-fit:cover;border-radius:6px}
.summary-items span{flex:1}
.summary-items small{color:var(--text-muted)}
.coupon-form{display:flex;gap:.5rem;margin:1rem 0}
.coupon-form input{flex:1}
.free-shipping-note{background:#f0fdf4;border:1px solid #bbf7d0;color:#166534;border-radius:8px;padding:.6rem .8rem;font-size:.9rem}
[data-theme="dark"] .free-shipping-note{background:#14532d;border-color:#166534;color:#bbf7d0}
.secure-note{color:var(--text-muted);font-size:.85rem;text-align:center}
.checkout-form fieldset{border:1px solid var(--border);border-radius:var(--radius);padding:1.5rem;margin-bottom:1.5rem;background:var(--surface)}
.checkout-form legend{font-weight:800;padding:0 .5rem}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:1rem}
.form-grid .full{grid-column:1/-1}
.shipping-option,.payment-option{display:flex;gap:.75rem;align-items:flex-start;border:1px solid var(--border);border-radius:var(--radius-sm);padding:.8rem;margin-bottom:.6rem;cursor:pointer;background:var(--surface)}
.shipping-option:has(input:checked),.payment-option:has(input:checked){border-color:var(--secondary);box-shadow:0 0 0 1px var(--secondary)}
.shipping-option input,.payment-option input{width:auto;margin-top:.25rem}
.shipping-option span,.payment-option span{flex:1}
.shipping-option small,.payment-option small{display:block;color:var(--text-muted);font-weight:400}
.account-details{color:var(--text) !important;font-weight:600 !important}
.proof-upload{margin-top:1rem}
.order-box{border:1px solid var(--border);border-radius:var(--radius);padding:1.5rem;background:var(--surface);max-width:820px;margin:0 auto}
.order-table{width:100%;border-collapse:collapse;margin:1rem 0}
.order-table th,.order-table td{border-bottom:1px solid var(--border);padding:.6rem .5rem;text-align:left}
.order-table tfoot td{font-weight:700}
.order-total td{font-size:1.15rem}
.order-meta>div{display:flex;gap:1rem;padding:.35rem 0;flex-wrap:wrap}
.order-meta dt{font-weight:700;min-width:140px}
.order-meta dd{margin:0}
.order-success{text-align:center;max-width:860px;margin:0 auto}
.order-success .order-box{text-align:left;margin-top:1.5rem}
.success-check{width:72px;height:72px;border-radius:50%;background:var(--success);color:#fff;font-size:2.2rem;display:inline-flex;align-items:center;justify-content:center;margin:0 auto 1rem}
.order-actions{display:flex;gap:.75rem;justify-content:center;flex-wrap:wrap;margin-top:1.5rem}
.payment-reminder{background:#fffbeb;border:1px solid #fde68a;border-radius:8px;padding:.8rem}

/* --- Blog / article --- */
.blog-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:1.5rem}
.blog-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow)}
.blog-card img{width:100%;aspect-ratio:16/9;object-fit:cover}
.blog-card-body{padding:1.25rem}
.blog-cat{color:var(--secondary);font-weight:700;font-size:.8rem;text-transform:uppercase;letter-spacing:.08em;margin:0 0 .3rem}
.blog-meta{color:var(--text-muted);font-size:.88rem}
.blog-tags{margin-top:1.5rem}
.tag{display:inline-block;border:1px solid var(--border);border-radius:999px;padding:.2rem .8rem;margin:.2rem;font-size:.85rem}
.article-hero{border-radius:var(--radius);margin-bottom:1.5rem;width:100%}
.article-body{font-size:1.05rem}
.author-box{border:1px solid var(--border);border-left:4px solid var(--secondary);border-radius:var(--radius-sm);padding:1rem 1.25rem;margin-top:2rem;background:var(--bg-alt)}
.cms-content{max-width:820px}

/* --- Contact / track --- */
.contact-layout{display:grid;grid-template-columns:1fr 1fr;gap:2.5rem}
.contact-form,.track-form{display:grid;gap:1rem;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:1.5rem;height:fit-content}
.map-embed{width:100%;border-radius:var(--radius);margin-top:1rem}
.track-steps{display:flex;gap:.4rem;flex-wrap:wrap;margin:1rem 0;padding:0}
.track-steps li{flex:1;min-width:90px;text-align:center;font-size:.85rem;padding:.6rem .3rem;border-radius:8px;background:var(--bg-alt);border:1px solid var(--border);color:var(--text-muted)}
.track-steps li.done{background:#dcfce7;border-color:#86efac;color:#166534;font-weight:700}
[data-theme="dark"] .track-steps li.done{background:#14532d;color:#bbf7d0}
.status-note{background:#fffbeb;border:1px solid #fde68a;border-radius:8px;padding:.8rem}

/* --- Account --- */
.account-layout{display:grid;grid-template-columns:240px 1fr;gap:2rem;align-items:start}
.account-nav{border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;background:var(--surface)}
.account-nav a{display:block;padding:.8rem 1.1rem;border-bottom:1px solid var(--border)}
.account-nav a.active{background:var(--primary);color:#fff;text-decoration:none}
.account-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:1rem;margin-bottom:1.5rem}
.stat-card{border:1px solid var(--border);border-radius:var(--radius);padding:1rem;text-align:center;background:var(--surface)}
.stat-card strong{display:block;font-size:1.5rem}
.stat-card span{color:var(--text-muted);font-size:.88rem}
.auth-box{max-width:480px;margin:0 auto;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:2rem;box-shadow:var(--shadow)}
.auth-form{display:grid;gap:1rem;margin-top:1rem}
.auth-links{text-align:center;color:var(--text-muted);margin-top:1rem}
.status-pill{display:inline-block;padding:.2rem .7rem;border-radius:999px;font-size:.8rem;font-weight:700;background:var(--bg-alt);border:1px solid var(--border)}
.status-pending{background:#fef3c7;color:#92400e}
.status-confirmed,.status-processing{background:#dbeafe;color:#1e40af}
.status-shipped{background:#e0e7ff;color:#3730a3}
.status-delivered{background:#dcfce7;color:#166534}
.status-cancelled,.status-returned,.status-refunded{background:#fee2e2;color:#991b1b}
.address-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1rem;margin-bottom:1.5rem}
.address-card{border:1px solid var(--border);border-radius:var(--radius);padding:1rem;background:var(--surface)}
.address-card p{margin:.25rem 0}

/* --- Error pages --- */
.error-page{text-align:center;max-width:640px;margin:0 auto}
.error-code{font-size:4.5rem;font-weight:800;color:var(--secondary);margin:0;line-height:1}
.error-search{max-width:480px;margin:1.5rem auto}
.error-actions{display:flex;gap:.6rem;justify-content:center;flex-wrap:wrap;margin-top:1.5rem}

/* --- Reveal animations / skeleton --- */
.reveal{opacity:0;transform:translateY(16px);transition:opacity .5s ease,transform .5s ease}
.reveal.visible{opacity:1;transform:none}
.skeleton{position:relative;overflow:hidden;background:var(--bg-alt);border-radius:8px;min-height:200px}
.skeleton::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,transparent,rgba(255,255,255,.5),transparent);animation:shimmer 1.2s infinite;transform:translateX(-100%)}
@keyframes shimmer{to{transform:translateX(100%)}}

/* --- Print (invoice / receipt) --- */
@media print{
  .site-header,.site-footer,.mobile-bottom-nav,.whatsapp-float,.back-to-top,.sticky-buy-bar,.toast,.cookie-banner{display:none !important}
  body{background:#fff;color:#000}
}

/* --- Responsive --- */
@media (max-width:1024px){
  .product-grid{grid-template-columns:repeat(3,1fr)}
  .footer-grid{grid-template-columns:1fr 1fr}
  .cart-layout,.checkout-layout{grid-template-columns:1fr}
  .cart-summary{position:static}
}
@media (max-width:820px){
  .menu-toggle{display:inline-flex}
  .main-nav{display:none}
  .header-search{order:3;flex-basis:100%;max-width:none;margin-top:.25rem}
  .header-inner{flex-wrap:wrap;padding-top:.6rem;padding-bottom:.6rem;min-height:0}
  .listing-layout{grid-template-columns:1fr}
  .filters{display:none;position:static}
  .filters.open{display:block}
  .filter-toggle{display:block;width:100%;margin-bottom:1rem}
  .product-layout,.contact-layout{grid-template-columns:1fr}
  .product-grid{grid-template-columns:repeat(2,1fr)}
  .form-grid{grid-template-columns:1fr}
  .account-layout{grid-template-columns:1fr}
  .account-nav ul{display:flex;overflow-x:auto}
  .account-nav a{white-space:nowrap;border-bottom:0;border-right:1px solid var(--border)}
  .cart-table thead{display:none}
  .cart-table tr{display:block;border:1px solid var(--border);border-radius:var(--radius);margin-bottom:1rem;padding:.5rem}
  .cart-table td{display:flex;justify-content:space-between;align-items:center;border:0}
  .cart-table td.cart-product{justify-content:flex-start}
  .sticky-buy-bar{display:flex;position:fixed;left:0;right:0;bottom:56px;z-index:95;background:var(--surface);border-top:1px solid var(--border);padding:.6rem 1rem;gap:1rem;align-items:center;box-shadow:0 -4px 16px rgba(0,0,0,.12)}
  .sticky-buy-info{display:flex;gap:.7rem;align-items:center;flex:1;min-width:0}
  .sticky-buy-info img{width:48px;height:48px;object-fit:cover;border-radius:8px}
  .sticky-buy-info strong,.sticky-buy-info span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .mobile-bottom-nav{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:96;background:var(--surface);border-top:1px solid var(--border);justify-content:space-around;padding:.35rem 0 calc(.35rem + env(safe-area-inset-bottom))}
  .mobile-bottom-nav a,.mobile-bottom-nav button{display:flex;flex-direction:column;align-items:center;gap:.1rem;background:none;border:0;color:var(--text);font-size:1.15rem;position:relative;padding:.15rem .5rem}
  .mobile-bottom-nav span{font-size:.65rem}
  body{padding-bottom:56px}
  .whatsapp-float{bottom:7.5rem}
  .back-to-top{bottom:12rem}
}
@media (max-width:520px){
  .product-grid{grid-template-columns:repeat(2,1fr);gap:.75rem}
  .product-card-body{padding:.7rem}
  .product-name{font-size:.92rem}
  .footer-grid{grid-template-columns:1fr}
  .hero-slide{min-height:340px}
  .section{padding:2rem 0}
  .btn-lg{padding:.75rem 1.25rem}
}
@media (min-width:1600px){
  :root{--max:1440px}
  body{font-size:1.05rem}
}

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

.icon{vertical-align:-3px;flex:none}
.stars-svg{display:inline-flex;gap:2px;align-items:center}
.stars-svg .star-svg{color:#f59e0b}
.stock-dot{display:inline-block;width:9px;height:9px;border-radius:50%;background:currentColor;margin-right:.35rem;vertical-align:middle}
.btn-wishlist-lg.active,.btn-wishlist.active{color:#dc2626}
.trust-icon .icon,.success-check .icon{vertical-align:middle}

/* Show/hide password (eye toggle) */
.password-field{position:relative;display:block}
.password-field>input{padding-right:2.75rem!important}
.password-toggle{position:absolute;right:.5rem;top:50%;transform:translateY(-50%);display:inline-flex;align-items:center;justify-content:center;width:2rem;height:2rem;border:0;background:transparent;color:#6b7280;cursor:pointer;border-radius:.375rem;padding:0;line-height:0}
.password-toggle:hover{color:#111827;background:rgba(128,128,128,.15)}
.password-toggle:focus-visible{outline:2px solid #c2410c;outline-offset:1px}
