/* ==========================================================================
   XPERT — design system
   Marketplace redesign (AliExpress-inspired layout), strict brand palette:
   green (deals/CTAs/prices), black/near-black (header, nav, footer), white
   (surfaces). Grayscale only for secondary badges — no red/orange/teal.
   ========================================================================== */
:root{
  --ink:#141414; --ink-soft:#3a3a3a; --ink-2:#000000;
  --brand:#0f9d58; --brand-dark:#0b7a44; --brand-light:#e7f7ee;
  --gray:#4a4a4a; --gray-light:#f0f0f0;
  --bg:#f5f5f6; --surface:#ffffff; --border:#ececef; --border-soft:#f2f2f4;
  --text:#141414; --text-muted:#6b6f76; --text-faint:#97999f;
  --radius-lg:14px; --radius:10px; --radius-sm:6px;
  --shadow-sm:0 1px 2px rgba(15,23,42,.05), 0 1px 1px rgba(15,23,42,.04);
  --shadow-md:0 6px 20px rgba(15,23,42,.08);
  --shadow-lg:0 20px 48px rgba(15,23,42,.16);
  --maxw:1680px;
  --font:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
body{margin:0;font-family:var(--font);color:var(--text);background:var(--bg);line-height:1.5;-webkit-font-smoothing:antialiased;overflow-x:hidden}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
button{font-family:inherit;cursor:pointer}
h1,h2,h3,h4{margin:0;font-weight:800;letter-spacing:-.02em}
p{margin:0}
.wrap{max-width:var(--maxw);margin:0 auto;padding:0 20px}
:focus-visible{outline:2px solid var(--brand);outline-offset:2px;border-radius:4px}

/* ---------- utility bar ---------- */
.utility-bar{background:#fafafa;color:#54575e;font-size:12.5px;border-bottom:1px solid var(--border)}
.utility-inner{display:flex;align-items:center;justify-content:space-between;height:34px;gap:16px}
.utility-left,.utility-right{display:flex;align-items:center;gap:18px}
.utility-bar a{color:#54575e;opacity:.9;white-space:nowrap}
.utility-bar a:hover{opacity:1;color:var(--brand-dark)}
.utility-region{opacity:.75;display:flex;align-items:center;gap:6px}
@media(max-width:900px){.utility-left a:nth-child(n+3){display:none}}
@media(max-width:640px){.utility-bar{display:none}}

/* ---------- header ---------- */
.site-header{background:var(--surface);border-bottom:1px solid var(--border);position:sticky;top:0;z-index:60;box-shadow:0 1px 0 rgba(15,23,42,.02)}
.header-main{display:flex;align-items:center;gap:24px;height:76px}
.logo{flex-shrink:0;display:flex;align-items:center}
.logo-img{height:38px;width:auto;display:block}
.logo-foot-img{height:30px;width:auto;display:block;margin-bottom:4px}
.header-search{flex:1;max-width:640px;position:relative}
.autocomplete{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);display:none;max-height:360px;overflow:auto;z-index:75}
.autocomplete.open{display:block}
.ac-item{display:flex;align-items:center;gap:10px;padding:9px 14px;font-size:13px;font-weight:600;color:var(--text)}
.ac-item:hover{background:var(--bg)}
.ac-item img{width:34px;height:34px;object-fit:cover;border-radius:6px;background:#f0f1f4;flex-shrink:0}
.ac-empty{padding:14px;font-size:13px;color:var(--text-muted)}
.header-search-bar{display:flex;align-items:center;background:var(--bg);border:1.5px solid var(--border);border-radius:999px;padding:4px 4px 4px 18px;transition:border-color .15s,box-shadow .15s}
.header-search-bar:focus-within{border-color:var(--brand);box-shadow:0 0 0 3px var(--brand-light)}
.header-search-bar .search-icon{color:var(--text-faint);font-size:16px;margin-right:8px}
.header-search-bar input{flex:1;border:0;background:transparent;padding:10px 4px;font-size:14.5px;color:var(--text);outline:0;min-width:0}
.header-search-bar button{background:var(--brand);color:#fff;border:0;border-radius:999px;padding:10px 22px;font-size:14px;font-weight:700;white-space:nowrap}
.header-search-bar button:hover{background:var(--brand-dark)}
.header-actions{display:flex;align-items:center;gap:6px;flex-shrink:0;margin-left:auto}
.icon-link{display:flex;flex-direction:column;align-items:center;gap:2px;color:var(--text);padding:8px 12px;border-radius:var(--radius-sm);font-size:11px;font-weight:600;position:relative}
.icon-link:hover{background:var(--bg)}
.icon-link .icon{font-size:19px;line-height:1}
.icon-link .count-dot{position:absolute;top:2px;right:4px;background:var(--brand);color:#fff;border-radius:999px;font-size:9px;min-width:15px;height:15px;display:flex;align-items:center;justify-content:center;padding:0 3px;font-weight:800}
.hamburger{display:none;flex-direction:column;gap:4px;background:none;border:0;padding:8px}
.hamburger span{width:22px;height:2px;background:var(--ink);border-radius:2px}

/* ---------- secondary nav / mega menu ---------- */
.nav-strip{background:var(--ink);color:#fff}
.nav-strip-inner{display:flex;align-items:stretch;gap:2px;height:46px;overflow-x:auto;scrollbar-width:none}
.nav-strip-inner::-webkit-scrollbar{display:none}
.nav-strip a,.mega-trigger{color:#dfe4ee;font-size:14px;font-weight:600;display:flex;align-items:center;padding:0 16px;height:100%;white-space:nowrap}
.nav-strip a:hover{color:var(--brand-light);background:rgba(255,255,255,.08)}
.mega-trigger{background:var(--brand);color:#fff;border:0;font-family:inherit;gap:8px;border-radius:0}
.mega-trigger:hover{background:var(--brand-dark)}
.mega-trigger .bars{display:flex;flex-direction:column;gap:3px}
.mega-trigger .bars span{width:15px;height:2px;background:#fff;border-radius:2px}
.mega-trigger .caret{margin-left:2px;font-size:10px;transition:transform .15s;opacity:.85}
.nav-has-mega{position:relative}
.mega-trigger[aria-expanded="true"]{background:var(--brand-dark)}
.mega-trigger[aria-expanded="true"] .caret{transform:rotate(180deg)}

/* AliExpress-style vertical category flyout: a compact scrollable list
   anchored under the trigger, opened on hover (desktop) or click/tap
   (touch + keyboard), staying in XPERT's green/black/white palette. */
.mega-panel{position:fixed;background:var(--surface);border:1px solid var(--border);border-top:3px solid var(--brand);box-shadow:var(--shadow-lg);border-radius:var(--radius);padding:8px;z-index:90;width:296px;max-height:min(70vh,560px);overflow-y:auto;display:flex;flex-direction:column;gap:1px;opacity:0;visibility:hidden;pointer-events:none;transform:translateY(-4px);transition:opacity .14s ease,transform .14s ease,visibility .14s}
.mega-panel.open{opacity:1;visibility:visible;pointer-events:auto;transform:translateY(0)}
/* Open/close is driven from app.js (mouseenter/mouseleave with a short
   hover-intent delay, plus click and Escape) so the panel opens on hover
   for mouse users, on tap for touch, and stays keyboard-accessible. */
.mega-item{display:flex;align-items:center;gap:11px;padding:9px 10px;border-radius:var(--radius-sm);border:1px solid transparent;transition:background .1s,color .1s}
.mega-item:hover{background:var(--brand-light);color:var(--brand-dark)}
.mega-item .mi-icon{font-size:18px;width:24px;text-align:center;flex-shrink:0}
.mega-item .mi-text{flex:1;min-width:0}
.mega-item h4{font-size:13.5px;font-weight:700;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mega-item p{font-size:11px;color:var(--text-faint);line-height:1.3;margin-top:1px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mega-item:hover p{color:var(--brand-dark);opacity:.75}
.mega-item .mi-count{font-size:10.5px;color:var(--text-faint);font-weight:700;flex-shrink:0}
.mega-item:hover .mi-count{color:var(--brand-dark)}
.mega-item .mi-arrow{font-size:12px;color:var(--text-faint);flex-shrink:0;opacity:0;transform:translateX(-3px);transition:opacity .1s,transform .1s}
.mega-item:hover .mi-arrow{opacity:1;transform:translateX(0)}

/* ---------- mobile menu ---------- */
.mobile-menu{display:none;flex-direction:column;background:var(--surface);border-top:1px solid var(--border);padding:8px 20px 16px}
.mobile-menu.open{display:flex}
.mobile-menu a{padding:12px 0;border-bottom:1px solid var(--border-soft);font-weight:600;font-size:15px}
.mobile-menu .mm-section{font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:var(--text-faint);padding-top:14px;font-weight:700}
.mobile-menu .mobile-search{margin:10px 0 4px}

/* ---------- mobile: sticky horizontal category strip (Alibaba-style) ---------- */
.mobile-cat-strip{display:none}
@media(max-width:900px){
  .mobile-cat-strip{display:flex;gap:8px;overflow-x:auto;padding:10px 16px;background:var(--surface);border-bottom:1px solid var(--border);-webkit-overflow-scrolling:touch;scrollbar-width:none}
  .mobile-cat-strip::-webkit-scrollbar{display:none}
  .mobile-cat-strip a,.mobile-cat-strip button{flex-shrink:0;display:flex;align-items:center;gap:5px;padding:7px 14px;border-radius:999px;background:var(--bg);border:1px solid var(--border);font-size:12.5px;font-weight:700;color:var(--ink);white-space:nowrap}
  .mobile-cat-strip button.all-cats{background:var(--ink);color:#fff;border-color:var(--ink)}
}

/* ---------- mobile: full-screen category sheet (Alibaba-style) ---------- */
.cat-sheet{position:fixed;inset:0;background:var(--surface);z-index:200;display:none;flex-direction:column}
.cat-sheet.open{display:flex}
.cat-sheet-head{display:flex;align-items:center;gap:12px;padding:14px 16px;border-bottom:1px solid var(--border);flex-shrink:0}
.cat-sheet-head h2{font-size:17px;flex:1}
.cat-sheet-close{background:none;border:0;font-size:24px;line-height:1;padding:4px 8px;color:var(--ink)}
.cat-sheet-search{padding:12px 16px;border-bottom:1px solid var(--border-soft);flex-shrink:0}
.cat-sheet-search input{width:100%;padding:10px 14px;border:1px solid var(--border);border-radius:999px;font-size:14px;background:var(--bg)}
.cat-sheet-list{flex:1;overflow-y:auto;-webkit-overflow-scrolling:touch}
.cat-sheet-row{display:flex;align-items:center;gap:12px;padding:14px 16px;border-bottom:1px solid var(--border-soft);width:100%;text-align:left;background:none}
.cat-sheet-row .cs-icon{font-size:20px;flex-shrink:0;width:26px;text-align:center}
.cat-sheet-row .cs-text{flex:1;min-width:0}
.cat-sheet-row .cs-name{font-size:14.5px;font-weight:700;color:var(--ink);display:block}
.cat-sheet-row .cs-count{font-size:11.5px;color:var(--text-muted)}
.cat-sheet-row .cs-arrow{color:var(--text-faint);font-size:16px;flex-shrink:0}
.cat-sheet-row.no-match{display:none}

/* ---------- hero + carousel ----------
   Solid brand-dark background with soft green glows + a faint grid, rather
   than a stretched/cropped product photo — keeps it clean and on-brand no
   matter which product image a slide happens to use. The image still shows
   up, just contained in a framed card on the right instead of full-bleed. */
.hero-carousel{position:relative;background:var(--ink);overflow:hidden}
.hero-carousel::before{content:"";position:absolute;inset:0;background:
  radial-gradient(620px 620px at 92% -8%,rgba(15,157,88,.32),transparent 62%),
  radial-gradient(480px 480px at -6% 108%,rgba(15,157,88,.16),transparent 60%);
  pointer-events:none;z-index:0}
.hero-carousel::after{content:"";position:absolute;inset:0;background-image:
  linear-gradient(rgba(255,255,255,.04) 1px,transparent 1px),
  linear-gradient(90deg,rgba(255,255,255,.04) 1px,transparent 1px);
  background-size:44px 44px;
  -webkit-mask-image:linear-gradient(180deg,rgba(0,0,0,.9),transparent 78%);
  mask-image:linear-gradient(180deg,rgba(0,0,0,.9),transparent 78%);
  pointer-events:none;z-index:0}
.hero-slides{position:relative;min-height:0}
.hero-slide{display:none;padding:64px 0 48px;position:relative}
.hero-slide.active{display:block}
.hero-inner{position:relative;z-index:1;color:#fff;display:grid;grid-template-columns:1fr;gap:36px;align-items:center}
.hero-copy{max-width:600px}
.eyebrow{font-size:12.5px;font-weight:800;letter-spacing:.1em;color:#7be3ab;margin:0 0 12px;text-transform:uppercase}
.hero-inner h1{font-size:clamp(30px,4.2vw,46px);line-height:1.1;margin:0 0 14px;color:#fff}
.hero-copy>p.sub{font-size:16px;color:#b7c0d1;max-width:500px;margin:0 0 24px}

/* search bar was previously unstyled — falls back to raw browser inputs */
.search-bar{display:flex;align-items:center;background:#fff;border-radius:999px;padding:5px 5px 5px 18px;max-width:480px;box-shadow:0 12px 30px rgba(0,0,0,.28)}
.search-bar .search-icon{color:var(--text-faint);font-size:16px;margin-right:8px}
.search-bar input{flex:1;border:0;background:transparent;padding:11px 4px;font-size:14.5px;color:var(--text);outline:0;min-width:0}
.search-bar button{background:var(--brand);color:#fff;border:0;border-radius:999px;padding:11px 22px;font-size:14px;font-weight:700;white-space:nowrap}
.search-bar button:hover{background:var(--brand-dark)}

.hero-cta-row{display:flex;gap:12px;margin:22px 0 8px;flex-wrap:wrap}
.hero-cta{background:var(--brand);color:#fff;padding:13px 26px;border-radius:8px;font-weight:800;font-size:14.5px;border:0}
.hero-cta:hover{background:var(--brand-dark)}
.hero-cta.ghost{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.35)}
.hero-cta.ghost:hover{background:rgba(255,255,255,.16)}
.stat-strip{display:flex;gap:0;margin:22px 0;flex-wrap:wrap}
.stat-strip div{display:flex;flex-direction:column;padding:0 22px;border-left:1px solid rgba(255,255,255,.15)}
.stat-strip div:first-child{padding-left:0;border-left:0}
.stat-strip strong{font-size:22px;color:#fff;font-weight:900}
.stat-strip span{font-size:11.5px;color:#9aa4b7}
.hero-carousel .chips{margin-top:6px}
.chips{display:flex;gap:8px;flex-wrap:wrap}
.chips a,.chip-deal{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.22);color:#fff;padding:8px 16px;border-radius:999px;font-size:13px;font-weight:600}
.chips a:hover{background:rgba(255,255,255,.18)}
.chip-deal{background:var(--brand);border-color:var(--brand)}
.chip-deal:hover{background:var(--brand-dark)}

/* the framed product visual replacing the old full-bleed photo */
.hero-visual{position:relative;display:none;justify-content:center;align-items:center;min-height:340px}
.hero-visual-glow{position:absolute;width:340px;height:340px;border-radius:50%;background:radial-gradient(circle,rgba(15,157,88,.35),transparent 70%);filter:blur(10px)}
.hero-visual-card{position:relative;width:320px;height:320px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.14);border-radius:24px;overflow:hidden;box-shadow:0 30px 60px rgba(0,0,0,.35);backdrop-filter:blur(2px)}
.hero-visual-card img{width:100%;height:100%;object-fit:contain;padding:26px}

/* Arrows sit as a compact pair bottom-right, next to the visual card, instead
   of spanning the full hero width where the left one got lost behind text. */
.hero-arrows{position:absolute;bottom:22px;right:24px;left:auto;top:auto;display:flex;gap:8px;z-index:3}
.hero-arrow{width:38px;height:38px;border-radius:999px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.28);color:#fff;font-size:17px;display:flex;align-items:center;justify-content:center}
.hero-arrow:hover{background:rgba(255,255,255,.22)}
.hero-dots{position:absolute;bottom:28px;left:24px;right:auto;display:flex;justify-content:flex-start;gap:8px;z-index:2}
@media(max-width:919px){.hero-dots{left:0;right:0;justify-content:center;bottom:16px}.hero-arrows{right:16px;bottom:16px}}
.hero-dots button{width:8px;height:8px;border-radius:999px;background:rgba(255,255,255,.35);border:0;padding:0}
.hero-dots button.active{background:var(--brand);width:22px}
@media(min-width:920px){
  .hero-inner{grid-template-columns:1.15fr 1fr}
  .hero-visual{display:flex}
}

/* ---------- trust strip ---------- */
.trust-strip{background:var(--surface);border-bottom:1px solid var(--border)}
.trust-strip-inner{display:flex;justify-content:space-between;align-items:center;padding:16px 0;flex-wrap:wrap;gap:14px}
.trust-strip-item{display:flex;align-items:center;gap:10px;font-size:13px;font-weight:600;color:var(--text)}
.trust-strip-item .ti-icon{font-size:18px}

/* ---------- sections ---------- */
.section{padding:52px 0}
.alt-bg{background:var(--surface);border-top:1px solid var(--border-soft);border-bottom:1px solid var(--border-soft)}
.section-head{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:22px;gap:12px;flex-wrap:wrap}
.section-head h2{font-size:clamp(20px,2.6vw,28px)}
.section-head .eyebrow{margin-bottom:6px}
.see-all{font-weight:700;font-size:13.5px;color:var(--brand-dark);white-space:nowrap}
.see-all:hover{text-decoration:underline}
.count{font-size:13px;color:var(--text-muted);font-weight:600}

/* ---------- category showcase ---------- */
/* Category tiles were random product photos as a dark-overlaid background —
   busy, inconsistent sizing, low contrast text. Replaced with clean cards
   matching the rest of the site: icon badge, name, tagline, count pill. */
/* ---------- category slideshow (replaces the old card grid) ---------- */
.msg-carousel{position:relative;background:var(--ink);border-radius:var(--radius-lg);padding:0;min-height:320px;overflow:hidden;text-align:center}
.msg-slides{position:relative;min-height:320px}
.msg-slide{display:none;flex-direction:column;align-items:center;justify-content:flex-end;position:absolute;inset:0;padding:36px 24px 40px;animation:msgFade .5s ease}
.msg-slide.active{display:flex}
@keyframes msgFade{from{opacity:0}to{opacity:1}}
.msg-slide .msg-photo{position:absolute;inset:0;z-index:0}
.msg-slide .msg-photo img{width:100%;height:100%;object-fit:cover;object-position:center}
.msg-slide::before{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(6,7,9,.92) 10%,rgba(6,7,9,.55) 55%,rgba(6,7,9,.25) 100%);z-index:1}
.msg-slide .msg-icon{position:relative;z-index:2;font-size:28px;width:60px;height:60px;border-radius:16px;background:rgba(255,255,255,.95);box-shadow:var(--shadow-md);display:flex;align-items:center;justify-content:center;margin-bottom:16px}
.msg-slide h3{position:relative;z-index:2;font-size:22px;color:#fff;margin-bottom:8px}
.msg-slide p{position:relative;z-index:2;font-size:14px;color:#e4e7ee;line-height:1.55;margin-bottom:14px;max-width:420px}
.msg-slide .msg-count{position:relative;z-index:2;font-size:11.5px;font-weight:800;color:var(--brand-dark);background:#fff;padding:5px 13px;border-radius:999px;display:inline-block}
.msg-dots{display:flex;justify-content:center;gap:8px;padding:16px 0;background:var(--surface);border:1px solid var(--border);border-top:0;border-radius:0 0 var(--radius-lg) var(--radius-lg)}
.msg-dots button{width:8px;height:8px;border-radius:999px;background:var(--border);border:0;padding:0;transition:width .2s,background .2s}
.msg-dots button.active{background:var(--brand);width:22px}
@media(max-width:480px){.msg-carousel{min-height:280px}.msg-slides{min-height:280px}.msg-slide h3{font-size:19px}}

/* ---------- product grid & cards ---------- */
.grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}
@media(min-width:560px){.grid{grid-template-columns:repeat(3,1fr)}}
@media(min-width:860px){.grid{grid-template-columns:repeat(4,1fr)}}
@media(min-width:1180px){.grid{grid-template-columns:repeat(5,1fr);gap:18px}}
.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;position:relative;display:flex;flex-direction:column;transition:box-shadow .18s,transform .18s,border-color .18s}
.card:hover{box-shadow:var(--shadow-md);transform:translateY(-3px);border-color:#dadfe8}
.card-link{display:block;color:inherit}
/* Thumb stays clean — no badges or text over the product photo, so it's
   easy to actually look at. Only the video flag sits in a corner. */
.thumb{position:relative;aspect-ratio:1/1;background:#f7f7f8;overflow:hidden}
.thumb img{width:100%;height:100%;object-fit:contain;padding:10px;transition:transform .35s}
.card:hover .thumb img{transform:scale(1.06)}
.video-badge{position:absolute;bottom:8px;right:8px;background:rgba(20,20,20,.72);color:#fff;font-size:9.5px;font-weight:700;padding:3px 7px;border-radius:999px;display:flex;align-items:center;gap:3px;z-index:1}
.card-body{padding:11px 12px 6px}
.merchant-badge{font-size:9px;font-weight:800;color:var(--text-faint);letter-spacing:.03em;text-transform:uppercase}
.card-body .category{display:block;font-size:10px;color:var(--brand-dark);font-weight:700;margin:1px 0 4px}
.card-body h3{font-size:12.5px;font-weight:600;line-height:1.32;margin-bottom:7px;color:var(--text);letter-spacing:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.55em}
.price-row{display:flex;align-items:baseline;gap:7px;flex-wrap:wrap;margin-bottom:3px}
.price-row strong{font-size:18px;font-weight:900;color:var(--brand-dark)}
.price-row del{font-size:11.5px;color:var(--text-faint)}
.discount-pill{background:var(--brand);color:#fff;font-size:10px;font-weight:800;padding:2px 7px;border-radius:4px}
.savings{font-size:10.5px;color:var(--brand-dark);font-weight:700;margin-bottom:5px}
/* Badge pills sit under the price instead of over the image. */
.tag-row{display:flex;flex-wrap:wrap;gap:4px;margin-bottom:6px}
.badge{font-size:9px;font-weight:800;padding:3px 7px;border-radius:4px;color:#fff;letter-spacing:.03em;text-transform:uppercase}
.badge-hot{background:var(--ink)}
.badge-deal{background:linear-gradient(135deg,var(--brand),var(--brand-dark))}
.badge-best-value{background:linear-gradient(135deg,#4a4a4a,#1a1a1a);color:#fff}
.badge-trending{background:var(--ink-soft)}
.meta{display:flex;align-items:center;gap:8px;font-size:10.5px;color:var(--text-muted);margin-bottom:2px;flex-wrap:wrap}
.rating{display:flex;align-items:center;gap:4px}
.stars{position:relative;display:inline-block;font-size:11px;line-height:1;letter-spacing:1px;color:var(--border)}
.stars::before{content:"★★★★★"}
.stars-fg{position:absolute;inset:0;overflow:hidden;width:var(--pct);white-space:nowrap;color:var(--brand)}
.stars-fg::before{content:"★★★★★"}
.rating-num{font-size:10.5px;color:var(--text-muted)}
.meta .sold{color:var(--text-faint)}
.card-actions{display:flex;align-items:center;gap:5px;padding:8px 12px 12px;margin-top:auto}
.fav-btn,.compare-btn{width:29px;height:29px;border-radius:999px;border:1px solid var(--border);background:var(--surface);display:flex;align-items:center;justify-content:center;font-size:13px;color:var(--text-muted);flex-shrink:0}
.fav-btn:hover,.compare-btn:hover{border-color:var(--ink);color:var(--ink)}
.fav-btn.is-active{background:var(--brand-light);border-color:var(--brand);color:var(--brand-dark)}
.compare-btn.is-active{background:var(--gray-light);border-color:var(--ink);color:var(--ink)}
.buy{flex:1;text-align:center;background:linear-gradient(135deg,var(--brand),var(--brand-dark));color:#fff;font-weight:800;font-size:11.5px;padding:9px 6px;border-radius:7px;letter-spacing:.01em}
.buy:hover{background:var(--brand-dark)}

/* ---------- toolbar / filters ---------- */
.toolbar{display:flex;justify-content:flex-end;gap:10px;margin-bottom:14px;align-items:center}
.toolbar select{padding:9px 14px;border-radius:999px;border:1px solid var(--border);background:#fff;font-size:13px;font-weight:600}
.filter-toggle{display:none;padding:9px 16px;border-radius:999px;border:1px solid var(--border);background:#fff;font-weight:700;font-size:13px}
.filters-drawer{margin-bottom:18px}
.filters-drawer h4{font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:var(--text-faint);margin-bottom:8px}
.filter-chip{background:var(--surface);border:1px solid var(--border);padding:7px 14px;border-radius:999px;font-size:12.5px;font-weight:600}
.filter-chip:hover,.filter-chip.active{background:var(--brand);color:#fff;border-color:var(--brand)}
.no-results{text-align:center;padding:40px 20px;color:var(--text-muted);font-size:14px}
.no-results a{color:var(--brand-dark);font-weight:700}

/* ---------- merchant cards ---------- */
.merchant-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:16px}
.merchant-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:22px;display:flex;flex-direction:column;gap:10px}
.merchant-card.active{border-color:var(--brand);box-shadow:0 0 0 1px var(--brand) inset}
.merchant-card .mc-top{display:flex;align-items:center;gap:10px}
.merchant-card .mc-logo{width:42px;height:42px;border-radius:10px;background:var(--ink);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:900;font-size:16px}
.merchant-card h3{font-size:16px}
.merchant-card .mc-status{font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.04em;color:var(--brand-dark)}
.merchant-card p{font-size:13px;color:var(--text-muted);line-height:1.5}
.merchant-card .mc-btn{margin-top:auto;text-align:center;background:var(--bg);border:1px solid var(--border);border-radius:999px;padding:10px;font-weight:700;font-size:13px}
.merchant-card.active .mc-btn{background:var(--ink);color:#fff;border-color:var(--ink)}
.merchant-card.upcoming{opacity:.65}

/* ---------- guides ---------- */
.guides-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px}
.guide-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:20px;transition:box-shadow .15s,transform .15s}
.guide-card:hover{box-shadow:var(--shadow-md);transform:translateY(-2px)}
.guide-card h3{font-size:15.5px;margin-bottom:8px}
.guide-card p{font-size:13px;color:var(--text-muted);line-height:1.5}

/* ---------- why / trust cards ---------- */
.why-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:16px}
.why-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:22px}
.why-card .wc-icon{font-size:24px;margin-bottom:10px;display:block}
.why-card h3{font-size:15px;margin-bottom:8px}
.why-card p{font-size:13px;color:var(--text-muted);line-height:1.55}

/* ---------- product detail page ---------- */
.breadcrumbs{font-size:12.5px;color:var(--text-muted);padding:16px 0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.breadcrumbs a{color:var(--text-muted)}
.breadcrumbs a:hover{color:var(--brand-dark)}
.product-layout{display:grid;grid-template-columns:1fr 1fr;gap:40px;padding-bottom:32px}
.product-image{position:relative;background:#f7f7f8;border-radius:var(--radius-lg);overflow:hidden;aspect-ratio:1/1;margin-top:8px}
.product-image img{width:100%;height:100%;object-fit:contain;padding:16px}
.product-video{width:100%;border-radius:var(--radius-lg);overflow:hidden;margin-top:12px;background:#000}
.product-video video{width:100%;display:block;max-height:420px}
.video-link{position:absolute;bottom:12px;right:12px;background:rgba(0,0,0,.7);color:#fff;padding:8px 14px;border-radius:999px;font-size:12.5px;font-weight:700}
.product-info{padding-top:4px}
.product-info .merchant-badge{font-size:11px}
.product-info .category{font-size:12px;color:var(--brand-dark);font-weight:700;display:block;margin:4px 0 10px}
.product-info h1{font-size:clamp(20px,2.6vw,28px);line-height:1.3;margin-bottom:16px}
.big-price{font-size:32px;font-weight:900;color:var(--ink)}
.was-price{font-size:14px;color:var(--text-muted);margin:6px 0 18px;display:flex;align-items:center;gap:10px}
.was-price .sale{background:var(--brand-light);color:var(--brand-dark);font-weight:800;padding:3px 9px;border-radius:6px;font-size:12px}
.facts{display:grid;grid-template-columns:1fr 1fr;gap:12px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:16px;margin-bottom:20px}
.facts div{display:flex;flex-direction:column;gap:2px}
.facts strong{font-size:11px;text-transform:uppercase;letter-spacing:.04em;color:var(--text-faint)}
.facts span{font-size:14.5px;font-weight:700;color:var(--text)}
.cta-row{display:flex;gap:10px;align-items:center;margin-bottom:8px}
.cta{flex:1;text-align:center;background:var(--brand);color:#fff;font-weight:800;font-size:15.5px;padding:16px 24px;border-radius:8px}
.cta:hover{background:var(--brand-dark)}
.fav-btn.large{width:auto;height:auto;padding:16px 20px;border-radius:999px;font-size:14px;font-weight:700}
.leaving-note{font-size:12.5px;color:var(--text-muted);margin-bottom:14px}
.notice{font-size:12px;color:var(--text-faint);line-height:1.6;border-top:1px solid var(--border-soft);padding-top:14px}
.notice a{color:var(--brand-dark);font-weight:700}

/* ---------- prose / static pages ---------- */
.prose-page{max-width:760px;padding-bottom:60px}
.prose-page h1{font-size:clamp(24px,3vw,34px);margin-bottom:20px}
.prose-page p{margin-bottom:16px;color:var(--text-muted);line-height:1.7;font-size:15px}
.not-found{text-align:center;padding:100px 20px}
.not-found .cta{display:inline-block;margin-top:16px}

/* ---------- footer ---------- */
.site-footer{background:var(--ink);color:#c7ceda;margin-top:20px}
.footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:32px;padding:52px 0 32px}
.footer-grid .logo-foot{color:#fff;font-size:22px;font-weight:900;letter-spacing:-.02em}
.footer-grid .logo-foot span{color:var(--brand)}
.footer-grid>div>p{font-size:13px;color:#9aa4b7;line-height:1.6;margin-top:10px}
.footer-grid h4{font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:#fff;margin-bottom:14px}
.footer-grid a{display:block;font-size:13.5px;color:#b7bfcd;padding:5px 0}
.footer-grid a:hover{color:#fff}
.footer-bottom{border-top:1px solid rgba(255,255,255,.1);padding:18px 0;font-size:12px;color:#8891a0;display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px}
.footer-disclosure{font-size:11.5px;color:#7b8496;max-width:600px;line-height:1.6}

/* ---------- mobile bottom nav ---------- */
.mobile-tabbar{display:none;position:fixed;bottom:0;left:0;right:0;background:var(--surface);border-top:1px solid var(--border);z-index:80;box-shadow:0 -4px 16px rgba(15,23,42,.06)}
.mobile-tabbar-inner{display:flex}
.mobile-tabbar a{flex:1;display:flex;flex-direction:column;align-items:center;gap:2px;padding:8px 0 10px;font-size:10.5px;font-weight:700;color:var(--text-muted)}
.mobile-tabbar a .mt-icon{font-size:19px}
.mobile-tabbar a.active{color:var(--brand-dark)}

/* ---------- responsive ---------- */
@media(max-width:1024px){
  .footer-grid{grid-template-columns:1fr 1fr}
  .product-layout{grid-template-columns:1fr}
}
@media(max-width:900px){
  .nav-strip{display:none}
  .header-search{display:none}
  .hamburger{display:flex}
}
@media(max-width:768px){
  .grid{grid-template-columns:repeat(2,1fr);gap:8px}
  .cat-showcase{grid-template-columns:repeat(2,1fr)}
  .card-body{padding:8px 8px 6px}
  .card-body .merchant-badge,.card-body .category{display:inline-block;font-size:9px;background:var(--bg);color:var(--text-muted);padding:1px 6px;border-radius:4px;margin:0 0 5px}
  .card-body h3{font-size:11.5px;min-height:2.4em;margin-bottom:5px;line-height:1.3}
  .price-row{align-items:baseline;gap:5px}
  .price-row strong{font-size:17px;font-weight:900;color:var(--brand-dark)}
  .price-row del{font-size:10.5px}
  .discount-pill{font-size:9.5px;padding:1px 5px}
  .savings{font-size:9.5px}
  .meta{font-size:9.5px;gap:6px}
  .buy{font-size:11px;padding:8px 6px}
  .section{padding:28px 0}
  .toolbar{justify-content:space-between}
  .filter-toggle{display:inline-block}
  .filters-drawer{display:none}
  .filters-drawer.open{display:block}
  body{padding-bottom:58px}
  .mobile-tabbar{display:block}
  .header-main{height:64px}
  .logo-img{height:30px}
}
@media(max-width:480px){
  .grid{grid-template-columns:repeat(2,1fr);gap:10px}
  .wrap{padding:0 14px}
  .hero-inner h1{font-size:26px}
  .stat-strip{gap:20px}
  .footer-grid{grid-template-columns:1fr 1fr;gap:24px}
}
