/* ============================================================
   BAZAARO — editorial marketplace redesign
   Tokens are themeable via [data-dir] (direction) and inline
   overrides set by the Tweaks panel (--accent, --display, etc.)
   ============================================================ */

/* ---------- DEFAULT / EDITORIAL ---------- */
:root{
  --bg:#FAF8F3;
  --surface:#FFFFFF;
  --surface-2:#F4F1EA;
  --ink:#17150F;
  --ink-soft:#43403A;
  --muted:#867F73;
  --line:#E9E3D7;
  --line-soft:#F0EBE1;

  --accent:#0F8A63;
  --accent-ink:#0C6E4F;
  --accent-soft:#E8F3ED;

  --display:'Newsreader',Georgia,serif;
  --body:'Hanken Grotesk',system-ui,sans-serif;
  --display-w:500;
  --display-tracking:-0.015em;

  /* density-driven */
  --gap:18px;
  --card-min:228px;
  --section-gap:64px;
  --pad:22px;

  --r:10px;
  --r-lg:18px;
  --r-pill:999px;
  --shadow-sm:0 1px 2px rgba(23,21,15,.04),0 2px 8px rgba(23,21,15,.05);
  --shadow:0 18px 50px -28px rgba(23,21,15,.32);
  --card-border:1px solid transparent;
  --card-bg:var(--surface);
  --card-shadow:none;
  --maxw:1240px;
}

/* ---------- CRISP (cool, hairline) ---------- */
[data-dir="crisp"]{
  --bg:#FFFFFF;
  --surface:#FFFFFF;
  --surface-2:#F6F7F9;
  --ink:#14171B;
  --ink-soft:#3C4148;
  --muted:#777E86;
  --line:#E9ECF0;
  --line-soft:#F1F3F6;
  --accent:#12B886;
  --accent-ink:#0E9468;
  --accent-soft:#E7F7F0;
  --display:'Hanken Grotesk',system-ui,sans-serif;
  --display-w:800;
  --display-tracking:-0.03em;
  --card-border:1px solid var(--line);
  --card-shadow:none;
  --r:12px;
  --r-lg:16px;
}

/* ---------- INK (high-contrast premium) ---------- */
[data-dir="ink"]{
  --bg:#F3F2EF;
  --surface:#FFFFFF;
  --surface-2:#EAE9E4;
  --ink:#0D0D0C;
  --ink-soft:#34342F;
  --muted:#75736B;
  --line:#E2E0DA;
  --line-soft:#EDEBE5;
  --accent:#137A57;
  --accent-ink:#0E0D0C;
  --accent-soft:#E7EFEA;
  --display:'Hanken Grotesk',system-ui,sans-serif;
  --display-w:800;
  --display-tracking:-0.035em;
  --card-border:1px solid transparent;
  --card-bg:var(--surface);
  --card-shadow:var(--shadow-sm);
  --r:6px;
  --r-lg:10px;
}

/* ---------- DENSITY (tweak) ---------- */
[data-density="airy"]{--gap:26px;--card-min:248px;--section-gap:88px;--pad:26px;}
[data-density="dense"]{--gap:12px;--card-min:186px;--section-gap:48px;--pad:16px;}

/* ---------- CARDS (tweak) ---------- */
[data-cards="bordered"]{--card-border:1px solid var(--line);--card-shadow:none;--card-bg:var(--surface);}
[data-cards="raised"]{--card-border:1px solid transparent;--card-shadow:var(--shadow-sm);--card-bg:var(--surface);}
[data-cards="minimal"]{--card-border:1px solid transparent;--card-shadow:none;--card-bg:transparent;}

/* ============================================================ */
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  font-family:var(--body);
  background:var(--bg);
  color:var(--ink);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  line-height:1.5;
  padding-bottom:72px;
}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%}
button{font-family:inherit}
::selection{background:var(--accent);color:#fff}
.wrap{max-width:var(--maxw);margin:0 auto;padding:0 28px}

.display{font-family:var(--display);font-weight:var(--display-w);letter-spacing:var(--display-tracking);line-height:1.04}
.eyebrow{font-size:.72rem;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:var(--accent-ink)}

/* ============================================================
   HEADER
   ============================================================ */
.topbar{background:var(--bg);position:relative;z-index:40}
.topbar-inner{max-width:var(--maxw);margin:0 auto;display:flex;align-items:center;gap:28px;padding:20px 28px 16px}
.logo{display:flex;align-items:center;gap:11px;flex:0 0 auto}
.logo .mark{width:34px;height:34px;border-radius:9px;background:var(--accent);display:flex;align-items:center;justify-content:center;flex:0 0 auto}
.logo .mark svg{width:20px;height:20px;stroke:#fff}
.logo .mark-img{width:40px;height:40px;object-fit:contain;flex:0 0 auto;display:block}
.logo .wm{font-family:var(--display);font-weight:var(--display-w);font-size:1.5rem;letter-spacing:-.02em;color:var(--ink)}
[data-dir="crisp"] .logo .wm,[data-dir="ink"] .logo .wm{font-weight:800}

.searchbar{flex:1;display:flex;align-items:center;gap:10px;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-pill);padding:0 6px 0 18px;max-width:560px;height:48px;transition:border-color .18s,box-shadow .18s}
.searchbar:focus-within{border-color:var(--accent);box-shadow:0 0 0 4px var(--accent-soft)}
.searchbar svg{width:18px;height:18px;stroke:var(--muted);flex:0 0 auto}
.searchbar input{flex:1;border:none;outline:none;background:none;font-family:var(--body);font-size:.95rem;color:var(--ink)}
.searchbar input::placeholder{color:var(--muted)}
.searchbar .go{border:none;background:var(--ink);color:#fff;height:36px;padding:0 18px;border-radius:var(--r-pill);font-weight:600;font-size:.85rem;cursor:pointer;transition:opacity .18s}
.searchbar .go:hover{opacity:.85}

.top-actions{display:flex;align-items:center;gap:6px;flex:0 0 auto}
.act{display:flex;align-items:center;gap:8px;cursor:pointer;font-size:.9rem;font-weight:600;position:relative;background:none;border:none;color:var(--ink);padding:9px 12px;border-radius:var(--r);transition:background .15s}
.act:hover{background:var(--surface-2)}
.act svg{width:20px;height:20px;stroke:var(--ink);fill:none}
.act .badge{position:absolute;top:0;right:2px;min-width:17px;height:17px;background:var(--accent);color:#fff;border-radius:999px;font-size:.64rem;font-weight:800;display:none;align-items:center;justify-content:center;padding:0 4px}

/* ============================================================
   NAV
   ============================================================ */
.navbar{background:color-mix(in srgb,var(--bg) 86%,transparent);backdrop-filter:saturate(150%) blur(10px);border-top:1px solid var(--line);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:38}
.navbar-inner{max-width:var(--maxw);margin:0 auto;display:flex;align-items:center;gap:4px;padding:0 28px;height:52px}
.cat-btn{display:flex;align-items:center;gap:11px;background:none;border:none;cursor:pointer;font-weight:700;font-size:.92rem;color:var(--ink);padding:8px 16px 8px 0;height:100%}
.cat-btn .lines{display:flex;flex-direction:column;gap:3.5px}
.cat-btn .lines span{width:16px;height:1.8px;background:var(--accent);border-radius:2px;transition:.2s}
.cat-btn:hover .lines span:nth-child(2){width:11px}
.nav-link{padding:8px 14px;font-weight:600;font-size:.88rem;color:var(--ink-soft);cursor:pointer;border-radius:var(--r);position:relative;transition:color .15s}
.nav-link:hover{color:var(--ink)}
.nav-link.hot{color:var(--accent-ink)}
.nav-right{margin-left:auto;display:flex;align-items:center;gap:4px}
.nr{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:.84rem;font-weight:600;cursor:pointer;padding:8px 12px;border-radius:var(--r);transition:.15s}
.nr:hover{color:var(--ink);background:var(--surface-2)}
.nr svg{width:16px;height:16px;stroke:currentColor;fill:none}
.nr.sell{color:var(--accent-ink)}

/* MEGA MENU */
.mega-overlay{position:fixed;inset:0;background:rgba(23,21,15,.18);z-index:36;opacity:0;visibility:hidden;transition:.22s}
.mega-overlay.open{opacity:1;visibility:visible}
.mega{position:absolute;left:0;right:0;top:100%;background:var(--surface);box-shadow:var(--shadow);z-index:37;display:none;border-bottom:1px solid var(--line)}
.mega.open{display:block;animation:megaIn .22s ease}
@keyframes megaIn{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}
.mega-inner{max-width:var(--maxw);margin:0 auto;display:grid;grid-template-columns:264px 248px 1fr;min-height:360px}
.mega-col{padding:16px 0;overflow-y:auto;max-height:440px}
.mega-col.l{border-right:1px solid var(--line-soft)}
.mega-col.m{border-right:1px solid var(--line-soft);background:var(--surface-2)}
.m-cat{display:flex;align-items:center;gap:13px;padding:11px 24px;cursor:pointer;font-weight:600;font-size:.92rem;color:var(--ink-soft);transition:.12s}
.m-cat .ic{width:34px;height:34px;border-radius:9px;background:var(--surface-2);display:flex;align-items:center;justify-content:center;flex:0 0 auto;transition:.12s}
.m-cat .ic svg{width:18px;height:18px;stroke:var(--ink-soft);fill:none}
.m-cat .arr{margin-left:auto;color:var(--muted);opacity:0;transition:.12s}
.m-cat:hover,.m-cat.active{color:var(--accent-ink)}
.m-cat:hover .ic,.m-cat.active .ic{background:var(--accent-soft)}
.m-cat:hover .ic svg,.m-cat.active .ic svg{stroke:var(--accent-ink)}
.m-cat.active .arr{opacity:1}
.m-sub{padding:11px 24px;cursor:pointer;font-weight:600;font-size:.9rem;color:var(--ink-soft);display:flex;align-items:center;transition:.12s}
.m-sub .arr{margin-left:auto;color:var(--muted);opacity:0}
.m-sub:hover,.m-sub.active{color:var(--accent-ink)}
.m-sub.active .arr{opacity:1}
.mega-col.r{padding:24px 28px}
.r-title{font-size:.72rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);margin-bottom:14px}
.leaf-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px 18px}
.m-leaf{display:flex;align-items:center;gap:11px;padding:9px 0;cursor:pointer;font-size:.9rem;color:var(--ink-soft);transition:.12s}
.m-leaf .dot{width:5px;height:5px;border-radius:50%;background:var(--line);flex:0 0 auto;transition:.12s}
.m-leaf:hover{color:var(--accent-ink)}
.m-leaf:hover .dot{background:var(--accent)}

/* ============================================================
   HERO
   ============================================================ */
.hero{display:grid;grid-template-columns:1.02fr .98fr;gap:48px;align-items:center;padding:56px 0 12px}
.hero-copy{max-width:30ch}
.hero h1{font-family:var(--display);font-weight:var(--display-w);letter-spacing:var(--display-tracking);font-size:clamp(2.4rem,4.6vw,3.9rem);line-height:1.02;margin:16px 0 0}
[data-dir="editorial"] .hero h1 em{font-style:italic;color:var(--accent-ink)}
[data-dir="crisp"] .hero h1,[data-dir="ink"] .hero h1{font-weight:800}
.hero p{margin-top:20px;font-size:1.08rem;color:var(--ink-soft);max-width:40ch;line-height:1.55}
.hero-cta{display:flex;gap:12px;margin-top:30px;flex-wrap:wrap}
.btn{display:inline-flex;align-items:center;gap:9px;font-weight:600;font-size:.95rem;padding:13px 24px;border-radius:var(--r-pill);cursor:pointer;border:1px solid transparent;transition:.18s;white-space:nowrap}
.btn-primary{background:var(--ink);color:var(--bg)}
.btn-primary:hover{transform:translateY(-1px)}
.btn-ghost{background:transparent;border-color:var(--line);color:var(--ink)}
.btn-ghost:hover{border-color:var(--ink);background:var(--surface)}
.btn svg{width:17px;height:17px;stroke:currentColor;fill:none}
.hero-campaign{display:flex;gap:9px;margin-top:34px;align-items:center}
.hero-campaign i{width:30px;height:3px;border-radius:999px;background:var(--line);cursor:pointer;transition:.2s}
.hero-campaign i.on{background:var(--accent);width:46px}

.hero-visual{position:relative;display:grid;grid-template-columns:1.32fr 1fr;grid-template-rows:1fr 1fr;gap:14px;aspect-ratio:1/1;max-height:500px}
.hero-visual .pane.accent{position:absolute;inset:auto -16px -18px auto;width:44%;height:54%;background:var(--accent-soft);z-index:0;border-radius:var(--r-lg)}
.hero-visual image-slot{position:relative;z-index:1;width:100%;height:100%;min-height:0;min-width:0}
.hero-visual .slot-main{grid-row:1 / span 2}
.float-card{position:absolute;left:-18px;bottom:34px;z-index:3;background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:13px 15px;box-shadow:var(--shadow);display:flex;align-items:center;gap:12px;max-width:240px}
.float-card .fc-ic{width:38px;height:38px;border-radius:10px;background:var(--accent-soft);display:flex;align-items:center;justify-content:center;flex:0 0 auto}
.float-card .fc-ic svg{width:19px;height:19px;stroke:var(--accent-ink);fill:none}
.float-card .fc-t{font-size:.82rem;font-weight:700;line-height:1.25}
.float-card .fc-s{font-size:.74rem;color:var(--muted);margin-top:1px}

/* ============================================================
   TRUST STRIP
   ============================================================ */
.trust{display:flex;flex-wrap:wrap;gap:0;margin-top:40px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.trust .ti{flex:1;min-width:200px;display:flex;align-items:center;gap:14px;padding:20px 24px;border-right:1px solid var(--line-soft)}
.trust .ti:last-child{border-right:none}
.trust .ti svg{width:22px;height:22px;stroke:var(--accent-ink);fill:none;flex:0 0 auto}
.trust .ti b{font-size:.9rem;font-weight:700;display:block}
.trust .ti span{font-size:.78rem;color:var(--muted)}

/* ============================================================
   SECTION HEAD
   ============================================================ */
.sec{margin-top:var(--section-gap)}
.sec-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:24px}
.sec-head h2{font-family:var(--display);font-weight:var(--display-w);letter-spacing:var(--display-tracking);font-size:clamp(1.6rem,3vw,2.2rem);line-height:1.05}
[data-dir="crisp"] .sec-head h2,[data-dir="ink"] .sec-head h2{font-weight:800}
.sec-head .sub{color:var(--muted);font-size:.92rem;margin-top:6px}
.see{display:inline-flex;align-items:center;gap:6px;color:var(--accent-ink);font-weight:600;font-size:.88rem;cursor:pointer;white-space:nowrap;transition:gap .18s}
.see:hover{gap:10px}
.see svg{width:15px;height:15px;stroke:currentColor;fill:none}

/* ============================================================
   CATEGORY TILES
   ============================================================ */
.cat-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px}
.cat-tile{display:flex;flex-direction:column;gap:16px;padding:20px;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);cursor:pointer;transition:.2s;min-height:128px;justify-content:space-between}
.cat-tile:hover{border-color:var(--accent);transform:translateY(-3px);box-shadow:var(--shadow)}
.cat-tile .ic{width:42px;height:42px;border-radius:11px;background:var(--surface-2);display:flex;align-items:center;justify-content:center;transition:.2s}
.cat-tile .ic svg{width:22px;height:22px;stroke:var(--ink);fill:none}
.cat-tile:hover .ic{background:var(--accent-soft)}
.cat-tile:hover .ic svg{stroke:var(--accent-ink)}
.cat-tile .ct-name{font-weight:700;font-size:.95rem;line-height:1.2}
.cat-tile .ct-count{font-size:.76rem;color:var(--muted);margin-top:3px}

/* ============================================================
   DEALS RAIL
   ============================================================ */
.deals-timer{display:inline-flex;align-items:center;gap:8px;background:var(--accent-soft);color:var(--accent-ink);font-weight:700;font-size:.82rem;padding:7px 13px;border-radius:var(--r-pill);font-variant-numeric:tabular-nums}
.deals-timer .dot{width:6px;height:6px;border-radius:50%;background:var(--accent);animation:pulse 1.4s infinite}
@keyframes pulse{0%,100%{opacity:1}50%{opacity:.3}}
.rail{display:flex;gap:var(--gap);overflow-x:auto;scrollbar-width:none;padding:4px 2px 6px;scroll-snap-type:x mandatory}
.rail::-webkit-scrollbar{display:none}
.rail .pcard{flex:0 0 232px;scroll-snap-align:start}
[data-density="dense"] .rail .pcard{flex:0 0 190px}

/* ============================================================
   PRODUCT CARDS
   ============================================================ */
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(var(--card-min),1fr));gap:var(--gap)}
.pcard{background:var(--card-bg);border:var(--card-border);box-shadow:var(--card-shadow);border-radius:var(--r-lg);overflow:hidden;display:flex;flex-direction:column;transition:transform .2s ease,box-shadow .24s ease,border-color .2s;opacity:0;transform:translateY(10px);animation:rise .5s ease forwards}
@keyframes rise{to{opacity:1;transform:none}}
.pcard:hover{transform:translateY(-4px);box-shadow:var(--shadow)}
[data-cards="bordered"] .pcard:hover{border-color:var(--accent)}
.pcard-img{position:relative;aspect-ratio:1/1;display:flex;align-items:center;justify-content:center;overflow:hidden;background:var(--surface-2)}
.pcard-img .ph{position:absolute;inset:0;display:flex;align-items:center;justify-content:center}
.pcard-img .ph svg{width:42%;height:42%;stroke:var(--ink);opacity:.16;fill:none;stroke-width:1.3}
.pcard-img .mono{position:absolute;left:12px;bottom:11px;font-family:var(--display);font-weight:700;font-size:.78rem;letter-spacing:.04em;color:var(--muted);text-transform:uppercase}
.pcard-img img{position:relative;width:100%;height:100%;object-fit:cover}
.disc{position:absolute;top:11px;left:11px;background:var(--ink);color:var(--bg);font-weight:700;font-size:.72rem;padding:3px 8px;border-radius:var(--r-pill);z-index:2}
.flag{position:absolute;top:11px;right:11px;background:var(--surface);color:var(--accent-ink);font-weight:700;font-size:.68rem;letter-spacing:.04em;text-transform:uppercase;padding:4px 9px;border-radius:var(--r-pill);z-index:2;box-shadow:var(--shadow-sm)}
.wish{position:absolute;top:9px;right:9px;width:32px;height:32px;border-radius:50%;background:color-mix(in srgb,var(--surface) 80%,transparent);backdrop-filter:blur(4px);border:1px solid var(--line);display:none;align-items:center;justify-content:center;cursor:pointer;z-index:3;opacity:0;transition:.18s}
.pcard:hover .wish{display:flex;opacity:1}
.wish svg{width:16px;height:16px;stroke:var(--ink);fill:none}
.wish.on svg{fill:var(--accent);stroke:var(--accent)}
.pcard-body{padding:14px 14px 15px;display:flex;flex-direction:column;flex:1}
.rate{display:flex;align-items:center;gap:6px;font-size:.76rem;color:var(--muted);margin-bottom:8px}
.rate .stars{display:inline-flex;align-items:center;gap:3px;color:var(--ink);font-weight:700}
.rate .stars svg{width:13px;height:13px;fill:var(--accent);stroke:none}
.rate .sep{width:3px;height:3px;border-radius:50%;background:var(--line)}
.pcard-body h3{font-size:.92rem;font-weight:600;line-height:1.34;color:var(--ink);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.5em;margin-bottom:10px}
.price-row{display:flex;align-items:baseline;gap:9px;flex-wrap:wrap;margin-top:auto}
.price{font-family:var(--display);font-weight:var(--display-w);font-size:1.22rem;color:var(--ink);font-variant-numeric:tabular-nums;letter-spacing:-.01em}
[data-dir="crisp"] .price,[data-dir="ink"] .price{font-weight:800}
.old{color:var(--muted);text-decoration:line-through;font-size:.84rem}
.save{font-size:.76rem;color:var(--accent-ink);font-weight:700}
.ctrl-row{margin-top:13px}
.add{width:100%;border:1px solid var(--ink);background:transparent;color:var(--ink);font-weight:600;font-size:.86rem;padding:11px;border-radius:var(--r-pill);cursor:pointer;transition:.16s;display:flex;align-items:center;justify-content:center;gap:8px}
.add svg{width:16px;height:16px;stroke:currentColor;fill:none}
.add:hover{background:var(--ink);color:var(--bg)}
.stepper{display:flex;align-items:center;justify-content:space-between;background:var(--ink);border-radius:var(--r-pill);padding:3px}
.stepper button{width:36px;height:34px;border:none;background:transparent;color:var(--bg);font-size:1.3rem;cursor:pointer;border-radius:var(--r-pill);line-height:1;display:flex;align-items:center;justify-content:center}
.stepper button:hover{background:rgba(255,255,255,.16)}
.stepper .qty{color:var(--bg);font-weight:700;font-variant-numeric:tabular-nums}

.skeleton{background:linear-gradient(100deg,var(--surface-2) 30%,var(--line-soft) 50%,var(--surface-2) 70%);background-size:200% 100%;animation:sh 1.2s infinite}
@keyframes sh{to{background-position:-200% 0}}
.gridhead{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}
.count{color:var(--muted);font-size:.86rem}
.notice{color:var(--muted);font-size:.9rem;margin-top:16px}
.chip-clear{display:inline-flex;align-items:center;gap:6px;background:var(--surface-2);border:1px solid var(--line);color:var(--ink);font-weight:600;font-size:.82rem;padding:6px 12px;border-radius:var(--r-pill);cursor:pointer}
.chip-clear:hover{border-color:var(--ink)}

/* ============================================================
   PROMO BAND
   ============================================================ */
.promo{margin-top:var(--section-gap);border-radius:var(--r-lg);background:var(--ink);color:var(--bg);padding:0;overflow:hidden;display:grid;grid-template-columns:1.2fr .8fr;min-height:280px}
.promo .pc{padding:48px 52px;display:flex;flex-direction:column;justify-content:center}
.promo .eyebrow{color:color-mix(in srgb,var(--bg) 70%,var(--accent))}
.promo h2{font-family:var(--display);font-weight:var(--display-w);letter-spacing:var(--display-tracking);font-size:clamp(1.8rem,3.4vw,2.6rem);line-height:1.06;margin:14px 0 0;max-width:18ch}
[data-dir="crisp"] .promo h2,[data-dir="ink"] .promo h2{font-weight:800}
.promo p{margin-top:14px;color:color-mix(in srgb,var(--bg) 78%,transparent);max-width:36ch}
.promo .btn-promo{align-self:flex-start;margin-top:28px;background:var(--bg);color:var(--ink);padding:13px 26px;border-radius:var(--r-pill);font-weight:600;cursor:pointer;transition:.18s}
.promo .btn-promo:hover{transform:translateY(-1px)}
.promo .pv{position:relative;background:var(--surface-2)}
.promo .pv image-slot{position:absolute;inset:0;width:100%;height:100%}

/* ============================================================
   CART DRAWER
   ============================================================ */
.overlay{position:fixed;inset:0;background:rgba(23,21,15,.4);z-index:70;opacity:0;visibility:hidden;transition:.3s}
.overlay.open{opacity:1;visibility:visible}
.drawer{position:fixed;top:0;right:0;height:100%;width:min(440px,100%);z-index:80;background:var(--surface);box-shadow:var(--shadow);transform:translateX(105%);transition:transform .4s cubic-bezier(.3,.8,.25,1);display:flex;flex-direction:column}
.drawer.open{transform:none}
.drawer-head{display:flex;align-items:center;justify-content:space-between;padding:22px 24px;border-bottom:1px solid var(--line)}
.drawer-head h2{font-family:var(--display);font-weight:var(--display-w);font-size:1.4rem;letter-spacing:-.01em}
[data-dir="crisp"] .drawer-head h2,[data-dir="ink"] .drawer-head h2{font-weight:800}
.close{width:36px;height:36px;border:1px solid var(--line);background:none;border-radius:50%;font-size:1.1rem;cursor:pointer;color:var(--ink);display:flex;align-items:center;justify-content:center}
.close:hover{background:var(--surface-2)}
.drawer-body{flex:1;overflow-y:auto;padding:18px 24px}
.empty{text-align:center;color:var(--muted);padding:64px 16px}
.empty .big{width:56px;height:56px;margin:0 auto 16px;border-radius:50%;background:var(--surface-2);display:flex;align-items:center;justify-content:center}
.empty .big svg{width:26px;height:26px;stroke:var(--muted);fill:none}
.empty b{color:var(--ink);font-size:1.02rem;display:block;margin-bottom:4px}
.empty .big.ok{background:rgba(31,168,85,.12)}
.empty .big.ok svg{stroke:#1FA855}
.empty.success .btn{margin-top:20px}
.line{display:flex;gap:14px;align-items:flex-start;padding:16px 0;border-bottom:1px solid var(--line-soft)}
.line .lt{width:60px;height:60px;border-radius:12px;overflow:hidden;flex:0 0 auto;position:relative;display:flex;align-items:center;justify-content:center;background:var(--surface-2)}
.line .lt .ph svg{width:24px;height:24px;stroke:var(--ink);opacity:.2;fill:none}
.line .lt img{position:relative;width:100%;height:100%;object-fit:cover}
.line .info{flex:1;min-width:0}
.line .info h4{font-size:.9rem;font-weight:600;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.line .info .each{color:var(--muted);font-size:.78rem;margin-top:3px}
.line .rt{display:flex;flex-direction:column;align-items:flex-end;gap:10px;flex:0 0 auto}
.line .rt .amt{font-weight:700;font-size:.92rem;font-variant-numeric:tabular-nums}
.mini{display:inline-flex;align-items:center;background:var(--surface-2);border:1px solid var(--line);border-radius:var(--r-pill);padding:2px}
.mini button{width:26px;height:26px;border:none;background:none;cursor:pointer;font-size:1rem;border-radius:50%;color:var(--ink);display:flex;align-items:center;justify-content:center}
.mini button:hover{background:var(--surface)}
.mini .q{min-width:22px;text-align:center;font-weight:700;font-size:.82rem}
.form{margin-top:24px}
.form h3{font-family:var(--display);font-weight:var(--display-w);font-size:1.08rem;margin-bottom:14px}
[data-dir="crisp"] .form h3,[data-dir="ink"] .form h3{font-weight:800}
.field{margin-bottom:13px}
.field label{display:block;font-size:.78rem;font-weight:600;color:var(--ink-soft);margin-bottom:6px}
.field input,.field textarea{width:100%;font-family:var(--body);font-size:.93rem;background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:12px 13px;resize:none;color:var(--ink)}
.field input::placeholder,.field textarea::placeholder{color:var(--muted)}
.field input:focus,.field textarea:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}
.field.invalid input,.field.invalid textarea{border-color:#D4503E;box-shadow:0 0 0 3px #f7e0db}
.field .msg{color:#C8462F;font-size:.74rem;margin-top:5px;display:none}
.field.invalid .msg{display:block}
.drawer-foot{border-top:1px solid var(--line);padding:18px 24px}
.subtotal{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:6px}
.subtotal .lbl{color:var(--muted);font-size:.92rem}
.subtotal .amt{font-family:var(--display);font-weight:var(--display-w);font-size:1.5rem;font-variant-numeric:tabular-nums}
[data-dir="crisp"] .subtotal .amt,[data-dir="ink"] .subtotal .amt{font-weight:800}
.cod{font-size:.8rem;color:var(--muted);margin-bottom:15px;display:flex;align-items:center;gap:7px}
.cod svg{width:15px;height:15px;stroke:var(--accent-ink);fill:none}
.cod b{color:var(--ink)}
.order{width:100%;border:none;cursor:pointer;border-radius:var(--r-pill);background:#1FA855;color:#fff;font-weight:700;font-size:1rem;padding:15px;display:flex;align-items:center;justify-content:center;gap:10px;transition:.2s}
.order:hover{background:#188C46}
.order:disabled{opacity:.6;cursor:default}
.order svg{width:20px;height:20px;fill:none;stroke:currentColor}

/* MOBILE BAR */
.mobilebar{position:fixed;left:0;right:0;bottom:0;z-index:65;background:var(--ink);color:var(--bg);display:none;align-items:center;justify-content:space-between;padding:13px 20px;transform:translateY(110%);transition:.3s}
.mobilebar.show{transform:none}
.mobilebar .mi{display:flex;flex-direction:column;line-height:1.15}
.mobilebar .mi span{font-size:.72rem;color:color-mix(in srgb,var(--bg) 60%,transparent)}
.mobilebar .mi strong{font-size:1.06rem;font-variant-numeric:tabular-nums}
.mobilebar button{background:#1FA855;color:#fff;border:none;border-radius:var(--r-pill);padding:12px 24px;font-weight:700;cursor:pointer}

.toast{position:fixed;bottom:24px;left:50%;transform:translate(-50%,30px);background:var(--ink);color:var(--bg);padding:12px 22px;border-radius:var(--r-pill);font-size:.88rem;font-weight:600;z-index:90;opacity:0;pointer-events:none;transition:.3s;box-shadow:var(--shadow);display:flex;align-items:center;gap:9px}
.toast svg{width:16px;height:16px;stroke:var(--accent);fill:none}
.toast.show{opacity:1;transform:translate(-50%,0)}

/* FOOTER */
footer{margin-top:var(--section-gap);border-top:1px solid var(--line);padding:48px 0 28px}
.foot-inner{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:40px}
.foot-brand{max-width:260px}
.foot-brand p{color:var(--muted);font-size:.88rem;margin-top:14px;line-height:1.55}
.fcol h4{font-size:.74rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--ink);margin-bottom:14px}
.fcol a{display:block;color:var(--muted);font-size:.88rem;padding:5px 0;transition:color .15s;cursor:pointer}
.fcol a:hover{color:var(--accent-ink)}
.foot-bot{border-top:1px solid var(--line);margin-top:36px;padding-top:22px;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px;color:var(--muted);font-size:.82rem}
.foot-bot .credit a{color:var(--ink);font-weight:600;text-decoration:none;border-bottom:1px solid var(--accent);transition:.2s}
.foot-bot .credit a:hover{color:var(--accent)}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media(max-width:980px){
  .hero{grid-template-columns:1fr;gap:32px}
  .hero-visual{max-height:none;aspect-ratio:3/2}
  .nav-right{display:none}
  .mega-inner{grid-template-columns:1fr}
  .mega-col.l,.mega-col.m{border-right:none;border-bottom:1px solid var(--line-soft);max-height:none}
  .mega{max-height:82vh;overflow-y:auto}
  .promo{grid-template-columns:1fr}
  .promo .pv{min-height:200px}
  .foot-inner{grid-template-columns:1fr 1fr}
}
@media(max-width:640px){
  .wrap{padding:0 18px}
  .topbar-inner{flex-wrap:wrap;gap:14px;padding:16px 18px 12px}
  .searchbar{order:3;flex:1 0 100%;max-width:none}
  .top-actions{margin-left:auto}
  .act span{display:none}
  .navbar-inner{padding:0 18px}
  .nav-link:not(.hot){display:none}
  .hero{padding-top:36px}
  .hero h1{font-size:clamp(2rem,9vw,2.8rem)}
  .grid{grid-template-columns:repeat(2,1fr);gap:12px}
  .pcard-body h3{font-size:.84rem}
  .trust .ti{min-width:50%;border-bottom:1px solid var(--line-soft)}
  .promo .pc{padding:34px 26px}
  .foot-inner{grid-template-columns:1fr 1fr}
  .float-card{left:8px}
}
