/* ESB 1341 — the Online Store's fixed styles, moved out of resources/views/shop_public/layout.blade.php.
   The shop's colours, font, radius, card border and logo height come from CSS variables written in the page. */
a{color:inherit;text-decoration:none;}
img{max-width:100%;}
button{font:inherit;cursor:pointer;}
.wrap{max-width:1180px;margin:0 auto;padding:16px;}

.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;background:var(--pri);
  color:#fff;border:1px solid var(--pri);padding:9px 16px;border-radius:8px;font-weight:600;font-size:13.5px;}
.btn:hover{background:var(--pri-d);border-color:var(--pri-d);}
.btn.ghost{background:transparent;color:var(--pri);}
.btn.grey{background:transparent;color:var(--ink-2);border-color:var(--bd);}
.btn.wa{background:#25a34a;border-color:#25a34a;}
.btn.wa:hover{background:#1e8a3e;border-color:#1e8a3e;}
.btn.sm{padding:6px 11px;font-size:12.5px;border-radius:7px;}
.btn.block{width:100%;}
.btn[disabled],.btn.off{opacity:.45;pointer-events:none;}

.pill{display:inline-block;padding:2px 9px;border-radius:20px;font-size:11px;font-weight:700;}
.pill.ok{background:var(--ok-soft);color:var(--ok);}
.pill.warn{background:var(--warn-soft);color:var(--warn);}
.pill.bad{background:var(--bad-soft);color:var(--bad);}
.pill.pri{background:var(--pri-soft);color:var(--pri-d);}
.pill.mute{background:var(--bg);color:var(--mut);border:1px solid var(--bd);}
/* ধাপ ১৪৭ — "Restocking Soon" আর সবুজ নয়।
   সবুজ (`--ok`) এই দোকানে "ভালো খবর" বোঝায় — In stock, পেমেন্ট সফল।
   কিন্তু "শেলফ খালি, প্রি-অর্ডার নিচ্ছি" ঠিক ভালো খবর নয়, আর একই
   সবুজে দুটো আলাদা কথা বলায় In stock পিলটার জোরও কমে যাচ্ছিল।
   লেখা এখন `--ink` — লাইট মোডে কালো, ডার্ক মোডে সাদা, দুটোতেই পূর্ণ
   কনট্রাস্ট। পটভূমি `--bg` (কার্ডের `--card`-এর চেয়ে এক ধাপ আলাদা)
   আর একটা পাতলা কিনারা, যাতে ওটা চিপ হিসেবেই পড়া যায়, খালি লেখা নয়।

   কিনারাটা `border` নয়, `inset box-shadow` — border হলে পিলটা বাকি
   পিলগুলোর চেয়ে ২px লম্বা হয়ে যেত, আর মিশ্র সারিতে (কিছু In stock,
   কিছু Restocking) কার্ডের উচ্চতা আবার এক চুল এদিক-ওদিক হতো। */
.pill.restock{background:var(--bg);color:var(--ink);box-shadow:inset 0 0 0 1px var(--bd);}

.card{background:var(--card);border:var(--card-bw) solid var(--bd);
  border-radius:var(--r);box-shadow:var(--sh);}
.pane{padding:18px;}

/* ================= HEADER ================= */
.top{background:var(--head);border-bottom:1px solid var(--bd);position:sticky;top:0;z-index:40;
  backdrop-filter:saturate(140%) blur(10px);-webkit-backdrop-filter:saturate(140%) blur(10px);}
.top .row{max-width:1180px;margin:0 auto;padding:10px 16px;display:flex;align-items:center;gap:14px;}

/* the drawer button only exists on phones; desktop has the bar instead */
.hburger{display:none;flex:0 0 auto;width:42px;height:42px;border:0;border-radius:10px;
  cursor:pointer;background:var(--pri);color:#fff;align-items:center;justify-content:center;}
.hburger svg{width:22px;height:22px;}
/* an empty slot the same size, so a shop without a menu button still gets
   its logo in the middle rather than 21px to the left of it */
.hghost{display:none;width:42px;height:42px;flex:0 0 42px;pointer-events:none;}
@media (max-width:820px){ .hburger,.hghost{display:flex;} }
/* …but hidden still means hidden, whatever the line above says */
.hburger[hidden],.hghost[hidden]{display:none !important;}

/* --- logo: no box, never squashed --- */
.brand{display:flex;align-items:center;flex:0 0 auto;min-width:0;}
.brand img{height:var(--logo-h);width:auto;max-width:200px;
  object-fit:contain;display:block;}
.brand .brand-txt{font-weight:800;font-size:18px;letter-spacing:-.3px;color:var(--ink);white-space:nowrap;}

/* --- search --- */
.search{flex:1 1 auto;min-width:0;position:relative;margin:0;}
.search input{width:100%;padding:10px 14px 10px 40px;border-radius:999px;border:1px solid var(--bd);
  background:var(--bg);color:var(--ink);font-size:13.5px;transition:border-color .15s,box-shadow .15s;}
.search input:focus{outline:none;border-color:var(--pri);box-shadow:0 0 0 3px var(--pri-soft);}
.search input::placeholder{color:var(--mut);}
.search .ico{position:absolute;left:14px;top:50%;transform:translateY(-50%);color:var(--mut);
  display:flex;pointer-events:none;}

/* --- the lens, at the right end of the search box --- */
.search.has-lens input{padding-right:44px;}
.lensbtn{position:absolute;right:5px;top:50%;transform:translateY(-50%);
  width:34px;height:34px;border:0;border-radius:50%;background:none;color:var(--mut);
  display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0;
  transition:background .15s,color .15s;}
.lensbtn:hover{background:var(--hover);color:var(--pri);}
.lensbtn:focus-visible{outline:2px solid var(--pri);outline-offset:1px;}
.lensbtn svg{width:19px;height:19px;}
/* the two file inputs must exist for the picker to open, but are never seen.
   display:none would stop Safari opening the camera, so they are moved away
   instead. */
.lens-file{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none;
  left:-9999px;top:0;}
.lens-menu{position:absolute;right:0;top:calc(100% + 6px);z-index:70;min-width:196px;
  background:var(--card);border:1px solid var(--bd);border-radius:12px;
  box-shadow:var(--sh);overflow:hidden;padding:4px;}
.lens-menu[hidden]{display:none !important;}
.lens-menu button{display:flex;align-items:center;gap:10px;width:100%;padding:9px 10px;
  background:none;border:0;border-radius:8px;color:var(--ink);font-size:13.5px;
  font-family:inherit;font-weight:600;cursor:pointer;text-align:left;}
.lens-menu button:hover{background:var(--hover);color:var(--pri);}
.lens-menu button svg{width:18px;height:18px;flex:0 0 auto;}

/* the "looking at your picture" curtain */
.lens-wait{position:fixed;inset:0;z-index:120;background:rgba(0,0,0,.45);
  display:flex;align-items:center;justify-content:center;padding:20px;}
.lens-wait[hidden]{display:none !important;}
.lens-card{position:relative;background:var(--card);color:var(--ink);border-radius:14px;
  box-shadow:var(--sh);padding:26px 30px;max-width:320px;width:100%;text-align:center;
  font-size:14px;font-weight:600;line-height:1.5;}
.lens-spin{width:32px;height:32px;margin:0 auto 14px;border-radius:50%;
  border:3px solid var(--bd);border-top-color:var(--pri);animation:lensspin .8s linear infinite;}
@keyframes lensspin{to{transform:rotate(360deg);}}
@media (prefers-reduced-motion:reduce){.lens-spin{animation-duration:2.4s;}}
.lens-x{position:absolute;top:6px;right:8px;background:none;border:0;color:var(--mut);
  font-size:16px;line-height:1;padding:6px;cursor:pointer;font-family:inherit;}
.lens-x:hover{color:var(--ink);}

/* --- action row --- */
.hnav{display:flex;align-items:center;gap:2px;flex:0 0 auto;}
.hlink{display:flex;align-items:center;gap:7px;padding:8px 11px;border-radius:9px;
  color:var(--ink-2);font-size:13px;font-weight:600;white-space:nowrap;position:relative;
  background:none;border:0;cursor:pointer;transition:background .15s,color .15s;}
.hlink:hover{background:var(--hover);color:var(--pri);}
.hlink svg{width:19px;height:19px;flex:0 0 auto;}
.hlink.is-cart{color:var(--pri);}
.hcount{position:absolute;top:2px;left:26px;background:var(--bad);color:var(--on-bad,#fff);min-width:17px;height:17px;
  border-radius:9px;font-size:10.5px;font-weight:700;display:flex;align-items:center;
  justify-content:center;padding:0 4px;}

/* --- theme toggle --- */
.hlink.is-theme svg.moon{display:none;}
html[data-theme="dark"] .hlink.is-theme svg.sun{display:none;}
html[data-theme="dark"] .hlink.is-theme svg.moon{display:block;}
@media (prefers-color-scheme: dark){
  html:not([data-theme="light"]) .hlink.is-theme svg.sun{display:none;}
  html:not([data-theme="light"]) .hlink.is-theme svg.moon{display:block;}
}

/* header slides away as you read, comes straight back on a pull down */
.top{transition:transform .25s ease;}
.top.is-hidden{transform:translateY(-100%);}

/* --- tablets: labels go, icons stay --- */
@media (max-width:1080px){
  /* ESB ধাপ ১০৫ (L14) — লেবেল লুকানোর নিয়মটা ব্যাজটাকেও ধরত।

     `.hlink span` মানে ভিতরের **সব** span, আর ব্যাজটাও একটা span।
     নিচের `.hcount{left:22px}` শুধু জায়গা সরায়, `display` ফেরায় না।
     ফল: ৮২১–১০৮০px পর্দায় (ট্যাব, ছোট ল্যাপটপ) ঝুড়ির সংখ্যাটা
     একেবারেই দেখা যেত না। */
  .hlink > span:not(.hcount){display:none;}
  .hlink{padding:9px;}
  .hcount{left:22px;}
}

/* ================= PHONES ================= */
@media (max-width:820px){
  .top .row{flex-wrap:wrap;padding:9px 12px 10px;gap:9px;}

  /* row 1: logo, and light/dark on the right */
  .hburger,.hghost{order:0;}
  .brand{order:1;}
  .brand img{height:38px;max-width:150px;}
  .hnav{order:2;margin-left:auto;gap:6px;}

  /* everything else has moved to the bar at the bottom of the screen */
  .hnav .hlink:not(.is-theme){display:none;}

  /* row 2: search, with the language switch beside it */
  .search{order:3;flex:1 1 auto;}
  .search input{padding:10px 14px 10px 38px;}

  /* room for the fixed bar so nothing hides behind it */
  body{padding-bottom:calc(64px + env(safe-area-inset-bottom, 0px));}
  .site-foot{margin-bottom:0;}
}

/* Below 760 the search drops to its own line, so row 1 holds three things
   and the logo can sit in the middle of them: menu on the left, logo in
   the centre, light/dark on the right.

   The two side slots are pinned to the same width, because "middle" only
   comes out as the middle if the things either side of it are equal —
   otherwise the logo drifts by half the difference. .hghost is an empty
   slot of that same width for shops with no menu button. */
@media (max-width:760px){
  .hburger,.hghost{flex:0 0 42px;}
  .brand{flex:1 1 auto;justify-content:center;min-width:0;}
  .hnav{flex:0 0 42px;margin-left:0;justify-content:flex-end;}
}

/* ---------- bottom bar (phones only) ---------- */
.mnav{display:none;}
/* the bar's drop-down sheet belongs to the bar: no bar, no sheet */
.msheet,.msheet-veil{display:none;}

@media (max-width:820px){
  .mnav{
    display:flex; position:fixed; left:0; right:0; bottom:0; z-index:60;
    background:var(--card); border-top:1px solid var(--bd);
    padding:6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
    box-shadow:0 -2px 14px rgba(0,0,0,.10);
    align-items:flex-end; justify-content:space-around;
  }
  /* the drop-down trigger is a button, not a link — it goes nowhere by
     itself — but it has to sit in the row as if it were one */
  .mnav a,.mnav .mbtn{
    flex:1 1 0; display:flex; flex-direction:column; align-items:center; gap:3px;
    padding:5px 2px; color:var(--mut); font-size:10.5px; font-weight:600;
    position:relative; min-width:0; text-align:center;
  }
  .mnav .mbtn{background:none;border:0;font-family:inherit;cursor:pointer;}
  .mnav a span,.mnav .mbtn span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;}
  .mnav a svg,.mnav .mbtn svg{width:22px;height:22px;}
  .mnav a.on,.mnav .mbtn.on{color:var(--pri);}

  /* the sheet the drop-down opens, rising from the bar */
  /* The veil dims the page but stays *under* the bar (z-index 60), not
     over it. Over it, the bar went dead while the sheet was open — a
     second tap on the button, or a tap on Cart, was swallowed by the
     veil and nothing happened. */
  .msheet-veil{display:block;position:fixed;inset:0;z-index:58;background:rgba(0,0,0,.34);}
  .msheet-veil[hidden]{display:none !important;}
  .msheet{
    display:block;position:fixed;z-index:70;left:10px;right:10px;
    /* clear of the raised Home button, which stands ~20px proud of the bar */
    bottom:calc(96px + env(safe-area-inset-bottom, 0px));
    background:var(--card);border:1px solid var(--bd);border-radius:14px;
    box-shadow:0 14px 34px rgba(0,0,0,.24);padding:6px;
  }
  .msheet[hidden]{display:none !important;}
  .msheet-head{
    padding:9px 12px 7px;font-size:11.5px;font-weight:800;letter-spacing:.6px;
    text-transform:uppercase;color:var(--mut);
  }
  .msheet a{
    display:block;padding:13px 12px;border-radius:9px;color:var(--ink);
    font-size:14.5px;font-weight:700;flex:none;text-align:left;
  }
  .msheet a:active{background:var(--hover);}
  .msheet a.on{background:var(--pri-soft);color:var(--pri-d);}

  /* the raised Home button in the middle */
  .mnav a.mhome{flex:0 0 auto;margin-top:-26px;}
  .mnav a.mhome .mhome-btn{
    width:54px;height:54px;border-radius:50%;background:var(--pri);color:#fff;
    display:flex;align-items:center;justify-content:center;
    border:4px solid var(--card);box-shadow:0 4px 14px rgba(0,0,0,.22);
  }
  .mnav a.mhome .mhome-btn svg{width:24px;height:24px;}
  .mnav a.mhome span{color:var(--pri);margin-top:1px;}

  .mcount{
    position:absolute;top:1px;right:50%;margin-right:-20px;background:var(--bad);color:var(--on-bad,#fff);
    min-width:17px;height:17px;border-radius:9px;font-size:10px;font-weight:700;
    display:flex;align-items:center;justify-content:center;padding:0 4px;
  }
}
@media (max-width:340px){
  .mnav a{font-size:9.5px;}
  .mnav a svg{width:20px;height:20px;}
}

/* ================= CATEGORY BAR + DRAWER ================= */
.mbar{background:var(--pri);position:relative;z-index:30;}
.mbar-row{max-width:1180px;margin:0 auto;padding:0 16px;display:flex;align-items:stretch;gap:6px;}

.mbar-burger{background:#12181d;border:0;color:#fff;padding:0 16px;cursor:pointer;
  display:flex;align-items:center;flex:0 0 auto;transition:background .15s;}
.mbar-burger:hover,.mbar-burger.on{background:#000;}
.mbar-burger svg{width:22px;height:22px;}

/* flex:1 so there is room to push with; min-width:0 so a long menu can
   still scroll instead of forcing the bar wider than the page */
.mbar-links{display:flex;align-items:center;gap:2px;flex:1 1 auto;min-width:0;
  overflow-x:auto;scrollbar-width:none;}
.mbar-links::-webkit-scrollbar{display:none;}
.mbar-link{color:#fff;font-weight:700;font-size:14px;padding:13px 15px;white-space:nowrap;
  border-radius:7px;opacity:.95;transition:background .15s;}
.mbar-link:hover{background:rgba(255,255,255,.16);}
/* Where you are: a rounded darker tile sitting in the bar. Darker rather
   than lighter, because on a coloured bar a deeper patch reads as
   "pressed in" the way a paler one does not. */
.mbar-link.on{background:rgba(0,0,0,.24);border-radius:8px;margin:6px 2px;padding-top:8px;padding-bottom:8px;}
.mbar-link.on:hover{background:rgba(0,0,0,.34);}
.mbar-link.is-hot{background:#12181d;color:#fff;margin:7px 4px;padding:8px 15px;border-radius:7px;}
.mbar-link.is-hot:hover{background:#000;}
/* the badge is already the darkest thing on the bar; being the page you
   are on only deepens it. No ring — a white outline on a black badge
   read as a mistake rather than as "you are here". */
.mbar-link.is-hot.on{background:#000;margin:7px 4px;}

/* The highlighted link, when it is the last one, sits against the right
   edge of the bar — the same edge as the banner below it, because both
   are inside the 1180px column with the same padding. The 4px right
   margin the badge normally carries is dropped, or it would stop 4px
   short of that edge and look like a mistake.

   This must come after the two rules above and match `.on` itself:
   `.mbar-link.is-hot.on` sets the whole `margin` shorthand, so when the
   badge was the page you were on it quietly pulled itself back out of
   the corner — which is exactly what was happening on the live shop.

   When the menu is long enough to overflow there is no free space to
   push with, and the bar scrolls sideways as it always did. */
.mbar-link.is-hot:last-child,
.mbar-link.is-hot.on:last-child{margin-left:auto;margin-right:0;}

/* ---------- a menu item with a list under it ---------- */
.mbar-item{position:relative;display:flex;align-items:stretch;}
.mbar-link.has-sub{display:inline-flex;align-items:center;gap:5px;}
.mbar-caret{width:15px;height:15px;flex:0 0 auto;transition:transform .16s ease;}
.mbar-item.open .mbar-caret{transform:rotate(180deg);}

/* Placed by the script, not by CSS: the bar scrolls sideways, and a panel
   positioned inside a scrolling box is clipped at its edge. Fixed
   coordinates escape that. */
.mbar-sub{position:fixed;z-index:60;min-width:190px;padding:6px;display:none;
  background:var(--card);border:1px solid var(--bd);border-radius:10px;
  box-shadow:0 12px 30px rgba(0,0,0,.16);}
.mbar-item.open .mbar-sub{display:block;}
.mbar-sub a{display:flex;align-items:center;gap:9px;padding:9px 11px;border-radius:7px;
  color:var(--ink);font-size:13.5px;font-weight:600;white-space:nowrap;}
.mbar-sub a:hover{background:var(--thumb);color:var(--pri-d);}
.mbar-sub a.on{background:var(--pri-soft);color:var(--pri-d);font-weight:800;}

/* desktop category panel */
.mbar-panel{display:none;position:absolute;top:100%;left:max(16px,calc(50% - 590px + 16px));
  width:300px;background:var(--card);border:1px solid var(--bd);border-top:0;
  border-radius:0 0 10px 10px;box-shadow:0 14px 34px rgba(0,0,0,.18);
  max-height:70vh;overflow-y:auto;z-index:31;}
.mbar-panel.open{display:block;}

/* the list is shared by the panel and the drawer */
.catlist{list-style:none;margin:0;padding:6px;}
.catitem{margin:0 0 4px;}
.catrow{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:8px;
  color:var(--ink);font-size:14px;font-weight:600;border:1px solid transparent;}
.catrow:hover{background:var(--pri-soft);}
.catname{flex:1;min-width:0;}
.catplus{flex:0 0 auto;width:30px;height:30px;border:0;border-radius:7px;cursor:pointer;
  background:var(--pri-soft);color:var(--pri-d);font-size:17px;font-weight:700;line-height:1;
  display:flex;align-items:center;justify-content:center;}
.catplus .m{display:none;}
.catitem.open > .catrow{background:var(--pri-soft);}
.catitem.open > .catrow .catplus{background:var(--pri);color:#fff;}
.catitem.open > .catrow .catplus .p{display:none;}
.catitem.open > .catrow .catplus .m{display:block;}

.subcat{display:none;list-style:none;margin:4px 0 6px;padding:6px 0 6px 14px;
  border-left:3px solid var(--pri);background:var(--pri-soft);border-radius:0 8px 8px 0;}
.catitem.open > .subcat{display:block;}
.subcat li a{display:flex;align-items:center;gap:9px;padding:9px 10px;font-size:13.5px;
  font-weight:600;color:var(--ink-2);}
.subcat li a:hover{color:var(--pri);}

/* Category icons. They take their colour from the row, so they are right
   in both themes and go blue with the row on hover — no second file, no
   second thought. A category with no icon simply has none: the name still
   starts where every other name starts, because the gap is a flex gap on
   a missing child, not a reserved box. */
.catico{flex:0 0 auto;color:var(--mut);}
.catrow:hover .catico,.catitem.open > .catrow .catico{color:var(--pri);}
.subcat li a:hover .catico{color:var(--pri);}
.catico.is-sub{opacity:.85;}

/* ---------- phone drawer ---------- */
.drawer{position:fixed;top:0;left:0;bottom:0;width:86%;max-width:340px;background:var(--card);
  z-index:80;transform:translateX(-102%);transition:transform .25s ease;display:flex;
  flex-direction:column;box-shadow:6px 0 26px rgba(0,0,0,.28);}
.drawer.open{transform:translateX(0);}
.drawer-veil{position:fixed;inset:0;background:rgba(0,0,0,.5);opacity:0;visibility:hidden;
  transition:opacity .25s;z-index:79;}
.drawer-veil.open{opacity:1;visibility:visible;}
.drawer-top{background:var(--pri);padding:14px 14px;display:flex;align-items:center;gap:10px;
  flex:0 0 auto;}
.drawer-logo{flex:1;min-width:0;background:#fff;border-radius:9px;padding:8px 12px;
  display:flex;align-items:center;justify-content:center;}
.drawer-logo img{height:34px;width:auto;max-width:100%;object-fit:contain;display:block;}
.drawer-x{flex:0 0 auto;width:44px;height:44px;border:0;border-radius:9px;cursor:pointer;
  background:rgba(255,255,255,.22);color:#fff;display:flex;align-items:center;justify-content:center;}
.drawer-x svg{width:22px;height:22px;}
.drawer-body{flex:1;overflow-y:auto;-webkit-overflow-scrolling:touch;padding:10px 8px 26px;}
.drawer-head{color:var(--pri);font-weight:800;font-size:12.5px;letter-spacing:1px;
  padding:12px 12px 8px;}
.quicklist{list-style:none;margin:0;padding:6px;}
.quicklist li a{display:block;padding:12px;border:1px solid var(--bd);border-radius:9px;
  margin-bottom:8px;font-weight:600;font-size:14px;color:var(--ink);}
.quicklist li a:hover{border-color:var(--pri);color:var(--pri);}
/* the same "you are here" mark, in the phone drawer */
.quicklist li a.on{border-color:var(--pri);background:var(--pri-soft);
  color:var(--pri-d);font-weight:800;}
/* a heading in the drawer: no hover to open a panel with, so its children
   are simply listed underneath it */
.quick-head{display:block;padding:12px 12px 4px;font-size:11.5px;font-weight:800;
  letter-spacing:.6px;text-transform:uppercase;color:var(--mut);}
.quicksub{list-style:none;margin:0 0 4px;padding:0 0 0 12px;}
.quicksub li a{font-size:13px;padding:10px 12px;}

/* ---------- ESB 1513 — the phone drawer, redesigned ----------
   One clean card per section instead of a box around every link; the
   shop's own colour on the top band, the current page marked with a bar,
   arrows that turn, and the account button always at the foot. Everything
   here is scoped to .drawer, so the desktop category panel (which shares
   .catlist) is unchanged. Night mode comes from the same variables. */
.drawer{width:88%;max-width:360px;background:var(--bg);border-radius:0 18px 18px 0;
  overflow:hidden;box-shadow:none;
  transition:transform .28s cubic-bezier(.2,.8,.2,1);}
.drawer.open{box-shadow:12px 0 40px rgba(0,0,0,.28);}   /* only when open: no strip on the page edge */
.drawer-veil{background:rgba(12,18,24,.55);-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);}
.drawer .drawer-top{background:linear-gradient(135deg,var(--pri) 0%,var(--pri-d) 100%);
  padding:14px 12px 14px 14px;padding-top:max(14px,env(safe-area-inset-top));gap:10px;}
.drawer .drawer-logo{background:#fff;border-radius:12px;padding:7px 14px;min-height:50px;
  justify-content:center;box-shadow:0 2px 10px rgba(0,0,0,.14);}
.drawer .drawer-logo img{height:36px;}
.drawer .drawer-logo b{min-width:0;color:#1d2a33;font-size:16px;font-weight:800;white-space:nowrap;
  overflow:hidden;text-overflow:ellipsis;}
.drawer .drawer-x{width:42px;height:42px;border-radius:50%;background:rgba(255,255,255,.2);
  transition:background .15s,transform .15s;}
.drawer .drawer-x:hover{background:rgba(255,255,255,.32);}
.drawer .drawer-x:active{transform:scale(.9);}
.drawer .drawer-x svg{width:20px;height:20px;}
.drawer .drawer-body{padding:4px 12px 18px;}

/* section headings: small, quiet, with a hairline running to the edge */
.drawer .drawer-head{display:flex;align-items:center;gap:10px;color:var(--mut);font-size:11px;
  font-weight:800;letter-spacing:1.2px;text-transform:uppercase;padding:16px 4px 8px;}
.drawer .drawer-head::after{content:"";flex:1;height:1px;background:var(--bd);}

/* categories: one card, rows with a soft icon square and a turning arrow */
.drawer .catlist{background:var(--card);border:1px solid var(--bd);border-radius:14px;padding:4px;}
.drawer .catitem{margin:0;}
.drawer .catitem + .catitem{border-top:1px solid var(--bd);}
.drawer .catrow{min-height:52px;padding:7px 6px 7px 8px;border-radius:10px;gap:12px;
  font-size:14.5px;font-weight:600;color:var(--ink);border:0;}
.drawer .catrow:hover,.drawer .catrow:active{background:var(--hover);}
.drawer .dico{flex:0 0 36px;width:36px;height:36px;border-radius:10px;background:var(--pri-soft);
  color:var(--pri);display:flex;align-items:center;justify-content:center;}
.drawer .dico .catico{color:inherit;}
.drawer .dico.is-letter{font-size:15px;font-weight:800;line-height:1;}
.drawer .catplus{width:36px;height:36px;border-radius:10px;background:transparent;color:var(--mut);}
.drawer .catplus .p,.drawer .catplus .m{display:none !important;}
.drawer .catplus::before{content:"";width:8px;height:8px;border-right:2px solid currentColor;
  border-bottom:2px solid currentColor;transform:translateY(-2px) rotate(45deg);transition:transform .2s ease;}
.drawer .catitem.open > .catrow{background:var(--pri-soft);}
.drawer .catitem.open > .catrow .catplus{background:var(--pri);color:#fff;}
.drawer .catitem.open > .catrow .catplus::before{transform:translateY(2px) rotate(225deg);}
.drawer .subcat{margin:2px 0 8px 26px;padding:2px 0 2px 14px;background:none;border-radius:0;
  border-left:2px solid var(--pri-soft);}
.drawer .catitem.open > .subcat{display:block;animation:esbDrop .18s ease;}
.drawer .subcat li a{min-height:42px;padding:8px 10px;border-radius:8px;font-size:13.5px;
  font-weight:500;color:var(--ink-2);}
.drawer .subcat li a:hover,.drawer .subcat li a:active{background:var(--hover);color:var(--pri);}
@keyframes esbDrop{from{opacity:0;transform:translateY(-4px);}to{opacity:1;transform:none;}}

/* quick links: the same card, thin dividers, an arrow on every row */
.drawer .quicklist{background:var(--card);border:1px solid var(--bd);border-radius:14px;padding:4px;}
.drawer .quicklist > li + li{border-top:1px solid var(--bd);}
.drawer .quicklist li a{position:relative;display:flex;align-items:center;gap:10px;min-height:50px;
  padding:10px 12px;margin:0;border:0;border-radius:10px;font-size:14.5px;font-weight:600;color:var(--ink);}
.drawer .quicklist li a::after{content:"";flex:0 0 auto;margin-left:auto;width:7px;height:7px;
  border-right:2px solid var(--mut);border-top:2px solid var(--mut);transform:rotate(45deg);opacity:.7;}
.drawer .quicklist li a:hover,.drawer .quicklist li a:active{background:var(--hover);color:var(--ink);}
.drawer .quicklist li a.on{background:var(--pri-soft);color:var(--pri-d);font-weight:800;}
.drawer .quicklist li a.on::before{content:"";position:absolute;left:0;top:11px;bottom:11px;
  width:4px;border-radius:0 4px 4px 0;background:var(--pri);}
.drawer .quicklist li a.on::after{border-color:var(--pri);opacity:1;}
.drawer .qico{width:20px;height:20px;flex:0 0 20px;color:var(--pri);}
.drawer .quick-head{padding:14px 12px 4px;font-size:11px;letter-spacing:.8px;color:var(--mut);}
.drawer .quicksub{margin:0 0 6px;padding:0 0 0 10px;}
.drawer .quicksub li a{min-height:44px;padding:8px 12px 8px 14px;font-size:13.5px;font-weight:500;
  color:var(--ink-2);}
.drawer .quicksub li a::before{content:"";position:absolute;left:2px;top:50%;width:5px;height:5px;
  margin-top:-2.5px;border-radius:50%;background:var(--bd);}
.drawer .quicksub li a.on::before{left:0;top:9px;bottom:9px;width:4px;height:auto;margin:0;
  border-radius:0 4px 4px 0;background:var(--pri);}

/* the account button at the foot */
.drawer .drawer-foot{flex:0 0 auto;padding:10px 12px;padding-bottom:max(12px,env(safe-area-inset-bottom));
  background:var(--card);border-top:1px solid var(--bd);}
.drawer .drawer-acc{display:flex;align-items:center;justify-content:center;gap:9px;min-height:48px;
  border-radius:12px;background:var(--pri);color:#fff;font-weight:700;font-size:15px;}
.drawer .drawer-acc:hover{background:var(--pri-d);}
.drawer .drawer-acc svg{width:20px;height:20px;}

/* night: the deep shade is too dark on the soft tint, the bright one reads */
html[data-theme="dark"] .drawer .quicklist li a.on{color:var(--pri);}
@media (prefers-color-scheme: dark){ html:not([data-theme="light"]) .drawer .quicklist li a.on{color:var(--pri);} }
@media (prefers-reduced-motion: reduce){
  .drawer,.drawer .catplus::before,.drawer .catitem.open > .subcat{transition:none;animation:none;}
}

/* the bar itself is desktop-only; on a phone the header button opens the drawer */
@media (max-width:820px){
  .mbar{display:none;}
}
@media (min-width:821px){
  .drawer,.drawer-veil{display:none;}
}

.pager{display:flex;gap:6px;justify-content:center;padding:26px 0 8px;flex-wrap:wrap;
  align-items:center;}
.pager a,.pager span{padding:7px 12px;border-radius:7px;border:1px solid var(--bd);
  background:var(--card);font-size:13px;}
.pager span.on{background:var(--pri);border-color:var(--pri);color:#fff;font-weight:700;}
.pager a:hover{border-color:var(--pri);color:var(--pri);}
.pager span.off{opacity:.4;}
.pager a,.pager span{min-width:38px;text-align:center;}

/* ---- filter chips and pagination ----
   In the layout, not one page's styles: the All Categories page draws the
   same chips and the same pager, and the last time these sat in a single
   page the other page rendered them unstyled. */
.chips{display:flex;gap:8px;overflow-x:auto;padding-bottom:14px;scrollbar-width:none;}
.chips::-webkit-scrollbar{display:none;}
.chip{flex:0 0 auto;padding:7px 14px;border-radius:20px;font-size:13px;font-weight:600;
  background:var(--card);border:1px solid var(--bd);color:var(--ink-2);}
.chip.on{background:var(--pri);border-color:var(--pri);color:#fff;}

.chip{display:inline-flex;align-items:center;gap:7px;}
.chip-logo{width:20px;height:20px;object-fit:contain;border-radius:4px;background:#fff;
  flex:0 0 auto;}
.brandbar{margin-bottom:16px;}

.viewnote{display:flex;align-items:center;justify-content:space-between;gap:10px;
  background:var(--pri-soft);border:1px solid var(--bd);border-radius:var(--r);
  padding:10px 14px;margin-bottom:14px;font-size:13.5px;}
.viewnote b{color:var(--pri-d);}
.viewnote a{color:var(--pri);font-weight:600;}

/* ================= PRODUCT CARDS =================
   Lives here, not in one page's own styles: the shop home, the All
   Categories page and anything added later all draw the same card, and
   the last time this sat in a single page the other page rendered the
   pictures at full size. */
/* Every card in a row is the same height, and each part sits at the same
   place in every card — otherwise a two-line product name pushes its price
   and button out of line with the card beside it. */
.grid{display:grid;grid-template-columns:repeat(var(--cols),1fr);gap:14px;align-items:stretch;}
.pcard{background:var(--card);border:1px solid var(--bd);border-radius:var(--r);overflow:hidden;
  display:flex;flex-direction:column;height:100%;box-shadow:var(--sh);transition:transform .12s ease;
  /* relative for the wishlist heart, even where container queries are
     unsupported (containment alone would otherwise be doing this job) */
  position:relative;
  /* the card measures itself, see the @container rule under .pbuy */
  container-type:inline-size;}
.pcard:hover{transform:translateY(-2px);}

/* the picture fills the top of the card, edge to edge */
.pthumb{position:relative;width:100%;aspect-ratio:1/1;background:var(--thumb);display:block;
  border-bottom:1px solid var(--bd);overflow:hidden;}
.pthumb img{width:100%;height:100%;object-fit:cover;object-position:center;display:block;
  transition:transform .25s ease;}
.pcard:hover .pthumb img{transform:scale(1.04);}

/* A product with no photo of its own falls back to the shop's own picture.
   Cropped to fill, that logo gets its edges cut off and shouts louder than
   the products that do have photos — so the stand-in is shown whole, small
   and faded, and reads as "no picture yet" instead of as artwork. */
.pthumb.noimg{background:var(--thumb);}
.pthumb.noimg img{object-fit:contain;padding:22%;opacity:.34;filter:grayscale(.25);}
.pcard:hover .pthumb.noimg img{transform:none;}

/* the heart in the corner of a card, drawn only on the wishlist page */
.cwish{position:absolute;top:8px;right:8px;z-index:3;width:32px;height:32px;padding:0;
  display:flex;align-items:center;justify-content:center;cursor:pointer;
  border:1px solid var(--bd);border-radius:50%;background:var(--card);color:var(--mut);
  box-shadow:0 1px 4px rgba(0,0,0,.12);transition:color .14s,border-color .14s;}
.cwish svg{width:17px;height:17px;fill:none;}
.cwish.on{color:#e0455a;border-color:#e0455a;}
.cwish.on svg{fill:#e0455a;}
.cwish:active{transform:scale(.92);}
.cwish.busy{opacity:.5;pointer-events:none;}

/* the corner labels, stacked so two of them never overlap */
.ptags{position:absolute;top:8px;left:8px;z-index:2;display:flex;flex-direction:column;
  align-items:flex-start;gap:4px;pointer-events:none;}
.pbadge{background:var(--pri);color:#fff;
  font-size:10.5px;font-weight:700;padding:3px 8px;border-radius:5px;}
/* how much off, in red so it reads as a saving rather than a label */
.poff-tag{background:var(--bad);color:var(--on-bad,#fff);}
.soldout{position:absolute;inset:0;z-index:2;background:var(--veil);display:flex;
  align-items:center;justify-content:center;font-weight:800;font-size:13px;color:var(--bad);}
/* the same veil, but promising the product's return rather than mourning
   it — green, because green is the colour this shop uses for good news */
.soldout.presoon{color:var(--ok);}

.pbody{padding:11px 12px 12px;display:flex;flex-direction:column;flex:1;gap:0;}

/* exactly two lines, always — so the price below never shifts */
.pname{font-size:13.5px;font-weight:600;line-height:1.35;color:var(--ink);
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;
  overflow:hidden;height:calc(1.35em * 2);margin-bottom:8px;}

.pprice{display:flex;align-items:baseline;gap:7px;flex-wrap:wrap;min-height:22px;margin-bottom:7px;}
.pprice b{font-size:16px;font-weight:800;color:var(--accent);}
.pprice s{color:var(--mut);font-size:12px;}
/* ধাপ ১৫৭ — দামের বদলে লেখা ("Call for price")।
   টাকার অঙ্কের রঙ নয় — ওটা দাম, এটা দাম নয়। `--ink` লাইট মোডে
   কালো, ডার্ক মোডে সাদা। ছোট হরফ, কারণ লেখাটা সংখ্যার চেয়ে
   লম্বা আর কার্ডের সারিটা এক উচ্চতায় রাখতে হয়। */
.pprice b.pcall{font-size:13.5px;font-weight:700;color:var(--ink);line-height:1.6;}
/* how much off, next to the crossed-out price */
.poff{background:var(--bad-soft);color:var(--bad);font-size:11px;font-weight:800;
  border-radius:5px;padding:2px 6px;line-height:1.3;white-space:nowrap;}

/* the stock line keeps its space even when a product has no stock tracking,
   so buttons line up across the whole row */
.pstock{min-height:20px;margin-bottom:9px;display:flex;align-items:center;}
.pstock .pill{font-size:11px;}
/* ধাপ ১৪৬ — এখানে আগে তিনটে নিয়ম ছিল: `.pstock.tall`, `.restock-pill`
   আর `.restock-note`। তিনটেরই একমাত্র কাজ ছিল কার্ডে প্রি-অর্ডারের
   লম্বা বাক্যটাকে পিলের নিচে বসানো। বাক্যটা কার্ড থেকে তুলে নেওয়ায়
   (কথাটা প্রোডাক্ট পাতার `notice restock` বাক্সে অক্ষত আছে) তিনটেই
   অব্যবহৃত হয়ে গেছে, তাই সরানো হলো — নইলে পরে কেউ `.restock-note`-এর
   সবুজ দেখে ভাববেন ওটা এখনো কোথাও দেখাচ্ছে।
   পিলটা এখন `In stock` পিলের মতোই `.pstock`-এর একই সারিতে বসে, তাই
   এক সারির সব কার্ডের উচ্চতা মেলে। */
/* the Order Now form fills the card foot the way the button pair does */
.pfoot > form .btn{width:100%;min-height:36px;white-space:nowrap;}

/* Direct children only. When these were written as descendants they also
   caught the button and the form *inside* .pbuy, and because ".pfoot .btn"
   outranks ".pbuy > *" the phone rule further down could never widen them —
   which is how the two labels ended up broken across lines on a phone. */
.catbar{background:var(--pri);color:#fff;font-size:12.5px;line-height:1.45;
  padding:7px 14px;display:flex;gap:10px;align-items:center;justify-content:center;
  flex-wrap:wrap;text-align:center;}
.catbar a{color:#fff;font-weight:700;text-decoration:underline;white-space:nowrap;}

.pfoot{margin-top:auto;display:flex;gap:6px;}
.pfoot > .btn,.pfoot > form{flex:1;}
.pfoot > form .btn{width:100%;}
.pfoot > .btn{min-height:36px;}

/* Add to cart on the left, Buy now on the right. The left half swaps to a
   stepper once the product is in the basket, so the card never grows or
   shrinks and the row stays lined up. */
.pbuy{display:flex;gap:6px;width:100%;}
.pbuy > *{flex:1;min-width:0;}
.pbuy .btn{width:100%;min-height:36px;padding-left:6px;padding-right:6px;white-space:nowrap;}

/* Whether the two labels fit side by side depends on how wide the card is,
   not on how wide the screen is — a shop set to six columns has narrow
   cards on a large monitor too. So the card measures itself: under about
   205px the buttons stack, and each label keeps its own line.
   Phones get the same result from the plain media query further down, so a
   browser too old for container queries still behaves. */
@container (max-width:205px){
  .pbuy{flex-wrap:wrap;gap:7px;}
  .pbuy > *{flex:1 1 100%;}
  .pbuy .btn{min-height:38px;}
  .pstep{min-height:38px;}
}
.hide{display:none !important;}

.btn.dark{background:#12181d;border-color:#12181d;color:#fff;}
.btn.dark:hover{background:#000;border-color:#000;}
/* In dark mode a near-black button on a near-black card all but vanished,
   which left Buy now — the stronger of the two actions — looking like the
   weaker one. Inverted, it keeps the same relationship it has in daylight:
   the quiet, high-contrast neighbour of the coloured button. */
@media (prefers-color-scheme: dark){
  html:not([data-theme="light"]) .btn.dark{background:#e9eff4;border-color:#e9eff4;color:#12181d;}
  html:not([data-theme="light"]) .btn.dark:hover{background:#fff;border-color:#fff;color:#000;}
}
html[data-theme="dark"] .btn.dark{background:#e9eff4;border-color:#e9eff4;color:#12181d;}
html[data-theme="dark"] .btn.dark:hover{background:#fff;border-color:#fff;color:#000;}

.pstep{display:flex;align-items:stretch;border:1px solid var(--pri);border-radius:7px;
  overflow:hidden;min-height:36px;background:var(--card);}
.pstep-b{flex:0 0 30px;border:0;background:var(--pri-soft);color:var(--pri-d);cursor:pointer;
  font-size:17px;font-weight:800;line-height:1;display:flex;align-items:center;justify-content:center;}
.pstep-b:hover{background:var(--pri);color:#fff;}
.pstep-i{flex:1;min-width:0;border:0;text-align:center;font-weight:800;font-size:14px;
  background:transparent;color:var(--ink);width:100%;padding:0 2px;}
.pstep-i:focus{outline:none;}
.pstep.busy{opacity:.55;pointer-events:none;}

/* a short-lived note under the card, e.g. "only 3 left" */
.pnote{font-size:11px;color:var(--warn);margin-top:5px;line-height:1.4;}

/* ---------- the card on a phone ----------
   Two cards fit across a phone, so half a card is about 150px wide. Side
   by side inside that, "Add to cart" and "Buy now" each break across two
   lines and the card turns into a wall of text. Stacked, each button gets
   the full width of the card and its label stays on one line — which is
   also a bigger, easier thing to hit with a thumb.

   The old rule tried this at 480px, but plenty of phones report a wider
   viewport than that (a 720px screen at 1.25× is 576px), so the cards on
   those phones kept the broken labels. 760px is where the grid already
   drops to two columns, so the two rules now agree. */
@media (max-width:760px){
  /* Two across, on every page that draws cards. This used to live in the
     shop home's own styles, so the All Categories page kept the desktop
     column count and squeezed four cards onto a phone. */
  .grid{grid-template-columns:repeat(2,1fr);gap:10px;}

  /* A phone has no hover, so a card can only feel alive by answering the
     touch itself. Slightly softer chrome, and a press that presses. */
  .pcard{border-radius:12px;}
  .pcard:hover{transform:none;}
  .pcard:active{transform:scale(.985);}
  .ptags{top:6px;left:6px;gap:3px;}
  .pbadge{font-size:10px;padding:2.5px 7px;}
  .btn:active,.pstep-b:active{filter:brightness(.94);}

  .pbody{padding:10px 10px 11px;}
  .pname{font-size:13px;margin-bottom:6px;}
  .pprice{gap:5px;}
  .pprice b{font-size:15.5px;}
  .pprice s{font-size:11.5px;}
  .pstock{min-height:18px;margin-bottom:7px;}

  .pbuy{flex-wrap:wrap;gap:7px;}
  .pbuy > *{flex:1 1 100%;}
  .pbuy .btn{min-height:38px;font-size:13px;padding-left:8px;padding-right:8px;}
  .pfoot > .btn{min-height:38px;}
  .pstep{min-height:38px;}
  .pstep-b{flex:0 0 40px;}
}

/* ================= POPULAR CATEGORIES ================= */
.popcat{margin:22px 0 4px;}
.popcat-top{display:flex;align-items:center;justify-content:space-between;gap:12px;
  margin-bottom:14px;flex-wrap:wrap;}
.popcat-title{margin:0;font-size:20px;font-weight:800;position:relative;padding-left:12px;}
.popcat-title:before{content:"";position:absolute;left:0;top:3px;bottom:3px;width:4px;
  border-radius:3px;background:var(--pri);}
.popcat-all{display:inline-flex;align-items:center;gap:6px;font-size:13.5px;font-weight:700;
  color:var(--pri);}
.popcat-all svg{width:16px;height:16px;}
.popcat-all:hover{text-decoration:underline;}

.popcat-wrap{position:relative;}
.popcat-rail{display:flex;gap:14px;overflow-x:auto;scroll-snap-type:x mandatory;
  scrollbar-width:none;padding:2px;}
.popcat-rail::-webkit-scrollbar{display:none;}

.popcat-card{flex:0 0 auto;width:270px;scroll-snap-align:start;display:flex;align-items:center;
  gap:14px;background:var(--card);border:1px solid var(--bd);border-radius:var(--r);
  padding:14px;box-shadow:var(--sh);transition:transform .12s ease,border-color .12s;}
.popcat-card:hover{transform:translateY(-2px);border-color:var(--pri);}
.popcat-img{width:62px;height:62px;flex:0 0 auto;border-radius:10px;background:#fff;
  border:1px solid var(--bd);
  display:flex;align-items:center;justify-content:center;overflow:hidden;color:var(--pri);}
.popcat-img img{width:100%;height:100%;object-fit:contain;padding:6px;}
.popcat-img svg{width:28px;height:28px;}
.popcat-meta{min-width:0;}
.popcat-name{display:block;font-weight:700;font-size:15px;line-height:1.3;color:var(--ink);
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.popcat-count{display:block;color:var(--mut);font-size:12.5px;margin-top:2px;}

.popcat-nav{position:absolute;top:50%;transform:translateY(-50%);width:36px;height:36px;
  border:1px solid var(--bd);border-radius:50%;background:var(--card);color:var(--ink);
  display:flex;align-items:center;justify-content:center;cursor:pointer;z-index:2;
  box-shadow:0 3px 12px rgba(0,0,0,.14);transition:opacity .15s,background .15s;}
.popcat-nav:hover{background:var(--pri);color:#fff;border-color:var(--pri);}
.popcat-nav svg{width:18px;height:18px;}
.popcat-nav.prev{left:-14px;}
.popcat-nav.next{right:-14px;}
.popcat-nav.off{opacity:0;pointer-events:none;}

@media (max-width:760px){
  .popcat-card{width:230px;padding:12px;gap:11px;}
  .popcat-img{width:52px;height:52px;}
  .popcat-name{font-size:14px;}
  .popcat-title{font-size:17px;}
  /* on a phone people swipe, so the arrows only take up space */
  .popcat-nav{display:none;}
}

.flash{padding:11px 15px;border-radius:9px;margin-bottom:14px;font-size:13.5px;border:1px solid;}
.flash.ok{background:var(--ok-soft);border-color:var(--ok);color:var(--ok);}
.flash.err{background:var(--bad-soft);border-color:var(--bad);color:var(--bad);}

.notice{padding:13px 15px;border-radius:9px;font-size:13px;border:1px solid var(--bd);
  background:var(--card);margin-bottom:16px;}
.notice.info{background:var(--pri-soft);border-color:var(--pri);color:var(--ink);}
.notice b{display:block;margin-bottom:2px;}

.field{margin-bottom:13px;}
.field label{display:block;font-size:12.5px;font-weight:700;margin-bottom:5px;color:var(--ink-2);}
.field .req{color:var(--bad);}
.field input,.field textarea,.field select{width:100%;padding:9px 12px;border:1px solid var(--bd);
  border-radius:8px;background:var(--bg);color:var(--ink);font-size:13.5px;font-family:inherit;}
.field .hint{color:var(--mut);font-size:11.5px;margin-top:4px;}
/* ESB ধাপ ২২৯ — উপরের `.field input{width:100%}` টিকবাক্স আর রেডিওকেও
   পুরো চওড়া করে দিত, তাই বাক্সটা লেখা থেকে দূরে মাঝখানে ভাসত
   (অ্যাকাউন্ট, চেকআউট — যেখানেই .field-এর ভিতরে টিকবাক্স)। */
.field input[type=checkbox],.field input[type=radio]{width:auto;padding:0;border:0;
  background:none;flex:0 0 auto;accent-color:var(--pri);}
.two{display:grid;grid-template-columns:1fr 1fr;gap:12px;}

.foot{text-align:center;color:var(--mut);font-size:12px;padding:26px 16px;}
.foot a{color:var(--pri);font-weight:600;}

@media (max-width:760px){
  .top .row{flex-wrap:wrap;padding:10px 12px;gap:10px;}
  .search{order:3;flex-basis:100%;}
  .two{grid-template-columns:1fr;}
  .wrap{padding:12px;}
}

/* ---------- site footer ---------- */
.site-foot{background:var(--card);border-top:1px solid var(--bd);margin-top:40px;
  --f-ink:var(--ink); --f-ink2:var(--ink-2); --f-mut:var(--mut); --f-bd:var(--bd);
  --f-chip:var(--bg);}
/* the reference design has a dark footer whatever the page theme is */
.site-foot.is-dark{background:#1e1e1e;border-top-color:#1e1e1e;
  --f-ink:#ffffff; --f-ink2:#d6d6d6; --f-mut:#a5a5a5; --f-bd:rgba(255,255,255,.14);
  --f-chip:rgba(255,255,255,.07);}

.foot-grid{max-width:1180px;margin:0 auto;padding:44px 16px 34px;display:grid;
  grid-template-columns:1.25fr 1fr 1fr 1.3fr;gap:30px;}
.foot-col{min-width:0;color:var(--f-ink2);}

/* column 1 — centred, like the reference */
.foot-about{text-align:center;}
.foot-logo{display:inline-block;background:#fff;border-radius:999px;padding:9px 16px;margin-bottom:14px;}
.foot-logo img{height:38px;width:auto;max-width:190px;object-fit:contain;display:block;}
.foot-name{font-weight:800;font-size:19px;color:var(--f-ink);margin-bottom:12px;}
.foot-addr{font-size:14px;font-weight:700;color:var(--f-ink);line-height:1.7;max-width:260px;
  margin:0 auto 12px;}
.foot-phone{display:block;font-size:17px;font-weight:800;color:var(--f-ink);margin-bottom:8px;}
.foot-phone:hover{color:var(--pri);}
.foot-mail{display:block;font-size:13.5px;color:var(--f-ink2);}
.foot-mail:hover{color:var(--pri);}

/* link columns */
.foot-head{font-weight:800;font-size:14px;letter-spacing:.4px;text-transform:uppercase;
  color:var(--f-ink);margin-bottom:14px;}
.foot-links{list-style:none;margin:0;padding:0;}
.foot-links li{padding:0 0 12px;}
.foot-links a{color:var(--f-ink2);font-size:14px;transition:color .15s,padding-left .15s;}
.foot-links a:hover{color:var(--pri);padding-left:3px;}

/* social + apps */
.foot-connect{text-align:center;}
.foot-social{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;}
.foot-social a{width:34px;height:34px;border-radius:9px;display:flex;align-items:center;
  justify-content:center;color:var(--f-ink);background:transparent;transition:background .15s,color .15s,transform .15s;}
.foot-social a:hover{background:var(--pri);color:#fff;transform:translateY(-2px);}
.foot-social svg{width:21px;height:21px;}

.foot-apps{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;}
.foot-app{display:flex;align-items:center;gap:9px;padding:8px 14px;border-radius:8px;
  background:#000;color:#fff;border:1px solid rgba(255,255,255,.22);transition:transform .15s;}
.foot-app:hover{transform:translateY(-2px);}
.foot-app svg{width:22px;height:22px;flex:0 0 auto;}
.foot-app span{display:flex;flex-direction:column;line-height:1.15;text-align:left;}
.foot-app small{font-size:9.5px;text-transform:uppercase;letter-spacing:.4px;opacity:.8;}
.foot-app b{font-size:14px;font-weight:700;}

/* the coloured strip at the very bottom */
.foot-bar{background:var(--pri);color:#fff;text-align:center;
  padding:14px 16px;font-size:14px;line-height:1.6;}
.foot-bar a{color:#fff;font-weight:600;text-decoration:none;}
.foot-bar a:hover{text-decoration:underline;}
.foot-sep{opacity:.6;margin:0 4px;}

@media (max-width:980px){
  .foot-grid{grid-template-columns:1fr 1fr;gap:28px;padding:34px 16px 26px;}
  .foot-about,.foot-connect{grid-column:span 2;}
}

/* Phones keep the two link lists side by side rather than stacking them.
   Stacked, the footer became a very long scroll; side by side it reads at
   a glance, which is how shopping sites lay it out. */
@media (max-width:560px){
  .foot-grid{grid-template-columns:1fr 1fr;gap:20px 12px;padding:30px 14px 22px;text-align:center;}
  .foot-about,.foot-connect{grid-column:span 2;}

  .foot-logo{padding:8px 14px;margin-bottom:12px;}
  .foot-logo img{height:34px;max-width:170px;}
  .foot-addr{font-size:15px;line-height:1.6;max-width:none;margin-bottom:10px;}
  .foot-phone{font-size:18px;margin-bottom:6px;}
  .foot-mail{font-size:14px;}

  /* both lists get the same centred treatment */
  .foot-col{text-align:center;}
  .foot-head{font-size:15px;margin-bottom:12px;}
  .foot-links li{padding:0 0 14px;}
  .foot-links a{font-size:14.5px;}
  .foot-links a:hover{padding-left:0;}

  .foot-connect{margin-top:6px;}
  .foot-social{gap:4px;flex-wrap:nowrap;justify-content:center;}
  .foot-social a{width:32px;height:32px;border-radius:8px;}
  .foot-social svg{width:20px;height:20px;}

  .foot-apps{margin-top:4px;}
  .foot-app{padding:7px 12px;}

  .foot-bar{font-size:12.5px;padding:13px 14px;}
}

/* nine icons will not fit across a very narrow phone, so let them wrap */
@media (max-width:380px){
  .foot-social{flex-wrap:wrap;gap:6px;}
  .foot-links a{font-size:13.5px;}
  .foot-head{font-size:14px;}
}

/* ---------- search suggestions ---------- */
.search{position:relative;}
.sug{position:absolute;left:0;right:0;top:calc(100% + 6px);z-index:60;
  background:var(--card);border:1px solid var(--bd);border-radius:12px;
  box-shadow:var(--sh);overflow:hidden;max-height:min(70vh,420px);overflow-y:auto;}
.sug[hidden]{display:none;}
.sug a{display:flex;gap:10px;align-items:center;padding:9px 12px;
  text-decoration:none;color:var(--ink);border-bottom:1px solid var(--bd);}
.sug a:last-child{border-bottom:0;}
.sug a:hover,.sug a.on{background:var(--hover);}
.sug a:focus-visible{outline:2px solid var(--pri);outline-offset:-2px;}
.sug .th{width:38px;height:38px;flex:0 0 auto;border-radius:7px;
  background:var(--thumb);overflow:hidden;display:flex;align-items:center;justify-content:center;}
.sug .th img{width:100%;height:100%;object-fit:contain;}
.sug .nm{font-size:13.5px;line-height:1.35;overflow:hidden;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;}
.sug .mt{font-size:11.5px;color:var(--mut);margin-top:1px;}
.sug .all{justify-content:center;font-size:13px;color:var(--pri);font-weight:600;}

/* ---------- ESB step 249 — deals on product cards, product page and basket ---------- */
:root{--dl:#dc2626;--dl-soft:rgba(220,38,38,.07);--dl-bd:rgba(220,38,38,.28);}
@media (prefers-color-scheme: dark){ html:not([data-theme="light"]){--dl:#f87171;--dl-soft:rgba(248,113,113,.10);--dl-bd:rgba(248,113,113,.35);} }
html[data-theme="dark"]{--dl:#f87171;--dl-soft:rgba(248,113,113,.10);--dl-bd:rgba(248,113,113,.35);}
.pdeal{margin:-2px 0 8px;padding:6px 8px;border-radius:8px;background:var(--dl-soft);border:1px solid var(--dl-bd);font-size:11.5px;line-height:1.3;}
.pdeal-r{display:flex;align-items:center;justify-content:space-between;gap:6px;min-width:0;}
.pdeal-k{display:inline-flex;align-items:center;gap:3px;font-weight:800;color:var(--dl);text-transform:uppercase;letter-spacing:.3px;
  font-size:10.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;}
.pdeal-k svg{flex:0 0 auto;}
.pdeal-t{display:inline-flex;align-items:center;gap:3px;flex:0 0 auto;color:var(--ink);font-weight:700;}
.pdeal-t b{font-variant-numeric:tabular-nums;font-weight:800;}
.pdeal-bar{height:5px;border-radius:999px;background:rgba(127,127,127,.2);overflow:hidden;margin:6px 0 3px;}
.pdeal-bar i{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#f97316,var(--dl));}
.pdeal-bar.big{height:8px;margin:6px 0 2px;}
.pdeal-s{display:flex;justify-content:space-between;gap:6px;color:var(--ink-2);font-weight:600;}
.pdeal-s b{color:var(--dl);}
.pdeal-s span{color:#16a34a;font-weight:800;margin-left:auto;white-space:nowrap;}
.pdeal.ended{opacity:.55;}
.pdeal.ended .pdeal-t b{color:var(--mut);}
@container (max-width:210px){ .pdeal{padding:5px 6px;} .pdeal-r{flex-wrap:wrap;gap:2px 6px;} .pdeal-k{white-space:normal;overflow:visible;} }

.pdeal-box{margin:4px 0 14px;padding:12px 14px;border-radius:12px;border:1.5px solid var(--dl-bd);background:var(--dl-soft);}
.pdeal-box-h{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px;}
.pdeal-box .pdeal-k{font-size:12px;}
.pdeal-box-l{font-size:12px;font-weight:700;color:var(--ink-2);}
.pdeal-cd{display:flex;gap:6px;}
.pdeal-cd span{flex:1;max-width:74px;text-align:center;background:var(--dl);color:#fff;border-radius:9px;padding:6px 4px;line-height:1.1;}
.pdeal-cd b{display:block;font-size:20px;font-weight:900;font-variant-numeric:tabular-nums;}
.pdeal-cd small{display:block;font-size:9.5px;font-weight:700;text-transform:uppercase;letter-spacing:.5px;opacity:.9;}
.pdeal-box-st{display:flex;justify-content:space-between;gap:8px;margin-top:10px;font-size:12.5px;font-weight:700;color:var(--ink-2);}
.pdeal-box-n{margin:8px 0 0;padding:0 0 0 16px;font-size:12.5px;color:var(--ink-2);line-height:1.5;}
.pdeal-box.ended{opacity:.6;}
.cdeal{display:flex;align-items:center;flex-wrap:wrap;gap:3px 4px;margin-top:3px;font-size:12px;color:var(--dl);font-weight:600;}
.cdeal b{font-variant-numeric:tabular-nums;}
.cdeal em{font-style:normal;color:var(--bad);font-weight:700;}
/* ---------- ESB step 251 — quantity prices (product page and basket) ---------- */
.ptier{margin:4px 0 14px;padding:12px 14px;border-radius:12px;border:1px solid var(--line);background:var(--card);}
.ptier-h{font-weight:800;font-size:13px;color:var(--ink);margin-bottom:6px;}
.ptier table{width:100%;border-collapse:collapse;font-size:13px;}
.ptier td{padding:6px 4px;border-top:1px solid var(--line);color:var(--ink-2);vertical-align:middle;}
.ptier tr:first-child td{border-top:0;}
.ptier td:first-child{font-weight:700;color:var(--ink);white-space:nowrap;width:30%;}
.ptier td b{color:var(--ink);font-weight:800;}
.ptier td:last-child{text-align:right;white-space:nowrap;}
.ptier td span{display:inline-block;padding:1px 6px;border-radius:999px;background:rgba(22,163,74,.12);color:#15803d;font-weight:800;font-size:11.5px;}
.ptier td em{display:inline-block;margin-left:4px;padding:1px 6px;border-radius:999px;background:rgba(37,99,235,.12);color:#1d4ed8;font-style:normal;font-weight:700;font-size:11px;}
.ptier-n{margin-top:8px;font-size:12px;color:var(--ink-2);line-height:1.45;}
.ptier-n a{font-weight:700;}
.ctier{margin-top:3px;font-size:12px;font-weight:700;color:#15803d;}
.ctier.more{color:var(--ink-2);font-weight:600;}
@media (prefers-color-scheme: dark){ html:not([data-theme="light"]) .ptier td span, html:not([data-theme="light"]) .ctier{color:#4ade80;}
  html:not([data-theme="light"]) .ptier td em{color:#93c5fd;} html:not([data-theme="light"]) .ctier.more{color:var(--ink-2);} }
html[data-theme="dark"] .ptier td span, html[data-theme="dark"] .ctier{color:#4ade80;}
html[data-theme="dark"] .ptier td em{color:#93c5fd;}
html[data-theme="dark"] .ctier.more{color:var(--ink-2);}

/* ---------- ESB step 259 — new arrival / back in stock ---------- */
:root{--nw:#0e7490;--nw-soft:rgba(14,116,144,.08);--nw-bd:rgba(14,116,144,.28);
  --bk:#7c3aed;--bk-soft:rgba(124,58,237,.08);--bk-bd:rgba(124,58,237,.28);}
@media (prefers-color-scheme: dark){ html:not([data-theme="light"]){--nw:#67e8f9;--nw-soft:rgba(103,232,249,.10);--nw-bd:rgba(103,232,249,.32);
  --bk:#c4b5fd;--bk-soft:rgba(196,181,253,.10);--bk-bd:rgba(196,181,253,.32);} }
html[data-theme="dark"]{--nw:#67e8f9;--nw-soft:rgba(103,232,249,.10);--nw-bd:rgba(103,232,249,.32);
  --bk:#c4b5fd;--bk-soft:rgba(196,181,253,.10);--bk-bd:rgba(196,181,253,.32);}
.pnew{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin:-2px 0 8px;padding:5px 8px;border-radius:8px;
  background:var(--nw-soft);border:1px solid var(--nw-bd);font-size:11.5px;line-height:1.3;}
.pnew.back{background:var(--bk-soft);border-color:var(--bk-bd);}
.pnew-b{flex:0 0 auto;font-weight:800;font-size:10px;letter-spacing:.6px;color:var(--nw);}
.pnew.back .pnew-b{color:var(--bk);}
.pnew-t{min-width:0;color:var(--ink-2);font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
@container (max-width:210px){ .pnew{padding:4px 6px;} .pnew-t{white-space:normal;} }

.pnew-box{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:4px 0 14px;padding:10px 14px;border-radius:12px;
  background:var(--nw-soft);border:1px solid var(--nw-bd);font-size:13px;}
.pnew-box.back{background:var(--bk-soft);border-color:var(--bk-bd);}
.pnew-box .pnew-b{font-size:11px;font-weight:900;letter-spacing:.8px;color:var(--nw);}
.pnew-box.back .pnew-b{color:var(--bk);}
.pnew-box .pnew-t{color:var(--ink);font-weight:700;white-space:normal;}
.pnew-box a{margin-left:auto;font-weight:700;font-size:12.5px;}

/* ---------- ESB step 260 — coming soon, pre-order, drops ---------- */
:root{--sn:#b45309;--sn-soft:rgba(180,83,9,.08);--sn-bd:rgba(180,83,9,.28);}
@media (prefers-color-scheme: dark){ html:not([data-theme="light"]){--sn:#fbbf24;--sn-soft:rgba(251,191,36,.10);--sn-bd:rgba(251,191,36,.32);} }
html[data-theme="dark"]{--sn:#fbbf24;--sn-soft:rgba(251,191,36,.10);--sn-bd:rgba(251,191,36,.32);}
.pnew.soon{background:var(--sn-soft);border-color:var(--sn-bd);}
.pnew.soon .pnew-b{color:var(--sn);}
.pnew-box.soon{background:var(--sn-soft);border-color:var(--sn-bd);}
.pnew-box.soon .pnew-b{color:var(--sn);}
.pnew-pre{font-size:12px;font-weight:700;color:var(--ok,#16a34a);}
.pnew-nf{margin-left:auto;}

.esb-soon-g{--cols:4;}
@media (max-width:1000px){ .esb-soon-g{--cols:3;} }
@media (max-width:640px){ .esb-soon-g{--cols:2;} }
.scard{display:flex;flex-direction:column;min-width:0;background:var(--card);border:1px solid var(--sn-bd);
  border-radius:var(--r);overflow:hidden;box-shadow:var(--sh);}
.scard-im{position:relative;background:var(--sn-soft);text-align:center;padding:10px;min-height:120px;
  display:flex;align-items:center;justify-content:center;}
.scard-im img{max-width:100%;max-height:150px;object-fit:contain;filter:saturate(.9);}
.scard-tag{position:absolute;left:8px;top:8px;background:var(--sn);color:#fff;font-weight:900;font-size:10px;
  letter-spacing:.8px;padding:3px 8px;border-radius:999px;}
html[data-theme="dark"] .scard-tag{color:#1f2937;}
.scard-b{padding:10px 12px 12px;display:flex;flex-direction:column;gap:5px;min-width:0;}
.scard-nm{font-weight:700;font-size:13.5px;line-height:1.35;color:var(--ink);}
.scard-m{font-size:12px;color:var(--sn);font-weight:700;}
.scard-n{font-size:12px;color:var(--mut);}
.scard-pre{font-size:12px;font-weight:700;color:#16a34a;}
.scard-nf summary{cursor:pointer;font-size:12.5px;font-weight:700;color:var(--pri);list-style:none;}
.scard-nf summary::-webkit-details-marker{display:none;}
.scard-f{display:flex;gap:6px;margin-top:6px;}
.scard-f input[type=tel]{flex:1;min-width:0;padding:7px 9px;border:1px solid var(--bd);border-radius:8px;
  background:var(--card);color:var(--ink);font-size:13px;}
.scard-f button{border:0;border-radius:8px;background:var(--pri);color:#fff;font-weight:800;padding:7px 12px;cursor:pointer;font-size:13px;}
.scard-hp{position:absolute;left:-9999px;width:1px;height:1px;opacity:0;}
.scard-ok{margin:6px 0 0;font-size:12.5px;font-weight:700;color:#16a34a;}
.scard-ok.bad{color:var(--bad,#dc2626);}

.esb-nh-cd{position:relative;z-index:1;text-align:center;}
.esb-nh-cdl{font-size:12px;font-weight:800;letter-spacing:1.2px;text-transform:uppercase;opacity:.9;margin-bottom:8px;}
.esb-nh .esb-cd{margin:0;}
.esb-nh .esb-cd span{background:rgba(0,0,0,.28);min-width:58px;padding:9px 8px;font-size:24px;border-radius:12px;}
.esb-nh .esb-cd span small{font-size:10px;}
@media (max-width:760px){
  .esb-nh-cd{width:100%;text-align:left;}
  .esb-nh .esb-cd{display:flex;}
  .esb-nh .esb-cd span{min-width:0;flex:1;font-size:19px;padding:7px 4px;}
}

/* ---------- ESB step 271 — clearance ---------- */
.clbox{display:flex;align-items:flex-start;gap:9px;margin:14px 0 4px;padding:11px 13px;border-radius:10px;
  background:rgba(220,38,38,.08);border:1px solid rgba(220,38,38,.18);font-size:13.5px;line-height:1.5;color:var(--ink);}
.clbox i{flex:0 0 auto;margin-top:2px;color:#dc2626;}
.clbox b{font-weight:800;color:#b91c1c;}
.clbox a{color:var(--pri);text-decoration:underline;}
@media (prefers-color-scheme: dark){ html:not([data-theme="light"]){
  .clbox{background:rgba(248,113,113,.10);border-color:rgba(248,113,113,.22);}
  .clbox i,.clbox b{color:#fca5a5;}
} }
html[data-theme="dark"] .clbox{background:rgba(248,113,113,.10);border-color:rgba(248,113,113,.22);}
html[data-theme="dark"] .clbox i,
html[data-theme="dark"] .clbox b{color:#fca5a5;}
/* ---------- ESB step 270 — payment offers ---------- */
.payoff{display:flex;flex-direction:column;gap:7px;margin:0 0 12px;}
.payoff-row{display:flex;align-items:flex-start;gap:9px;padding:9px 11px;border-radius:9px;
  border:1px solid var(--bd);background:var(--soft,#f2f4f6);}
.payoff-row.on{border-color:var(--pri);background:var(--pri-soft,#fff3ec);}
.payoff-row i{flex:0 0 auto;margin-top:2px;color:var(--pri);}
.payoff-row b{font-weight:800;font-size:13.5px;}
.payoff-off{margin-left:6px;font-weight:800;font-size:13px;color:#15803d;}
.payoff-row small{display:block;margin-top:2px;font-size:12px;line-height:1.45;color:var(--mut);}
.pbox{margin:18px 0 6px;}
.pbox-h{font-size:15px;font-weight:800;margin:0 0 10px;}
.pbox-list{list-style:none;margin:0;padding:0;border:1px solid var(--bd);border-radius:14px;background:var(--card);}
.pbox-list li{display:flex;align-items:flex-start;gap:10px;padding:12px 15px;border-bottom:1px solid var(--bd);}
.pbox-list li:last-child{border-bottom:0;}
.pbox-list i{flex:0 0 auto;font-size:16px;color:var(--pri);margin-top:2px;}
.pbox-list b{font-weight:800;}
.pbox-list small{display:block;margin-top:2px;font-size:12.5px;line-height:1.45;color:var(--mut);}
@media (prefers-color-scheme: dark){ html:not([data-theme="light"]){
  .payoff-row{background:rgba(255,255,255,.05);}
  .payoff-row.on{background:rgba(255,255,255,.09);}
  .payoff-off{color:#4ade80;}
} }
html[data-theme="dark"] .payoff-row{background:rgba(255,255,255,.05);}
html[data-theme="dark"] .payoff-row.on{background:rgba(255,255,255,.09);}
html[data-theme="dark"] .payoff-off{color:#4ade80;}
/* ---------- ESB step 269 — the coupon wall ---------- */
.ccard{position:relative;display:flex;flex-direction:column;gap:9px;padding:18px 16px 16px;
  border:1px solid var(--bd);border-radius:14px;background:var(--card);}
.ccard-bd{position:absolute;top:-9px;right:14px;background:var(--pri);color:#fff;font-size:11px;font-weight:800;
  padding:3px 9px;border-radius:999px;white-space:nowrap;}
.ccard-top{display:flex;align-items:flex-start;gap:10px;}
.ccard-top i{flex:0 0 auto;font-size:18px;color:var(--pri);margin-top:2px;}
.ccard-top h3{margin:0;font-size:16.5px;font-weight:800;line-height:1.3;}
.ccard-sub{margin:0;font-size:13px;line-height:1.55;color:var(--mut);}
.ccard-terms{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:6px;}
.ccard-terms li{font-size:11.5px;font-weight:700;color:var(--mut);background:var(--bd);
  padding:3px 9px;border-radius:999px;}
.ccard-code{display:flex;align-items:stretch;gap:0;margin-top:auto;padding-top:2px;border:1px dashed var(--bd);border-radius:10px;overflow:hidden;}
.ccard-cd{flex:1;min-width:0;padding:10px 12px;font-weight:900;font-size:15px;letter-spacing:1px;
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.ccard-copy{flex:0 0 auto;border:0;border-left:1px dashed var(--bd);background:transparent;color:var(--pri);
  font-weight:800;font-size:13px;padding:0 14px;cursor:pointer;}
.ccard-copy.done{color:#15803d;}
.ccard-use{display:block;text-align:center;text-decoration:none;border-radius:10px;background:var(--pri);color:#fff;
  font-weight:800;padding:11px 16px;font-size:14px;}
.ccard-use:hover{filter:brightness(.94);}
.cwait{display:flex;align-items:flex-start;gap:9px;margin:12px 0 4px;padding:10px 12px;border-radius:9px;
  background:var(--soft,#f2f4f6);font-size:13px;line-height:1.45;color:var(--ink);}
.cwait i{flex:0 0 auto;margin-top:2px;color:var(--pri);}
.cwait b{font-weight:800;}
.cwait.on{color:#15803d;background:rgba(22,163,74,.10);}
.cwait.on i{color:inherit;}
.cwait.bad{color:#b91c1c;background:rgba(220,38,38,.10);}
.cwait.bad i{color:inherit;}
@media (prefers-color-scheme: dark){ html:not([data-theme="light"]){
  .cwait{background:rgba(255,255,255,.05);}
  .cwait.on{color:#4ade80;background:rgba(74,222,128,.12);}
  .cwait.bad{color:#fca5a5;background:rgba(248,113,113,.12);}
  .ccard-copy.done{color:#4ade80;}
} }
html[data-theme="dark"] .cwait{background:rgba(255,255,255,.05);}
html[data-theme="dark"] .cwait.on{color:#4ade80;background:rgba(74,222,128,.12);}
html[data-theme="dark"] .cwait.bad{color:#fca5a5;background:rgba(248,113,113,.12);}
html[data-theme="dark"] .ccard-copy.done{color:#4ade80;}
/* ---------- ESB step 268 — gifts ---------- */
.gfbar{margin:14px 0 4px;display:flex;flex-direction:column;gap:9px;}
.gfbar-won{display:flex;align-items:flex-start;gap:8px;font-size:13px;font-weight:700;color:#15803d;
  background:rgba(22,163,74,.10);border-radius:9px;padding:9px 11px;line-height:1.4;}
.gfbar-won i{flex:0 0 auto;margin-top:2px;}
.gfbar-take,.gfbar-next{background:var(--soft,#f2f4f6);border-radius:9px;padding:10px 11px;}
.gfbar-tx{font-size:13px;line-height:1.45;color:var(--ink);}
.gfbar-tx b{font-weight:800;}
.gfbar-tx i{margin-right:5px;}
.gfbar-sub{margin-top:6px;font-size:12px;color:var(--mut);line-height:1.4;}
.gfbar-pick{list-style:none;margin:9px 0 0;padding:0;display:flex;flex-direction:column;gap:7px;}
.gfbar-pick li{display:flex;align-items:center;gap:9px;}
.gfbar-th{flex:0 0 36px;width:36px;height:36px;border-radius:7px;overflow:hidden;background:var(--bd);display:block;}
.gfbar-th img{width:100%;height:100%;object-fit:cover;display:block;}
.gfbar-th.noimg img{opacity:.35;}
.gfbar-nm{flex:1;min-width:0;font-size:13px;line-height:1.35;color:var(--ink);text-decoration:none;}
.gfbar-nm:hover{color:var(--pri);}
.gfbar-btn{flex:0 0 auto;border:0;border-radius:8px;background:var(--pri);color:#fff;font-weight:800;
  padding:7px 14px;font-size:13px;cursor:pointer;}
.gfbar-btn:hover{filter:brightness(.94);}
.ctier.gift{color:#15803d;font-weight:700;}
.ctier.gift i{margin-right:4px;}
.gbox{margin:18px 0 6px;display:flex;flex-direction:column;gap:10px;}
.gbox-c{border:1px solid var(--bd);border-radius:14px;background:var(--card);padding:14px 16px;}
.gbox-h{display:flex;align-items:flex-start;gap:10px;}
.gbox-h i{flex:0 0 auto;font-size:18px;color:var(--pri);margin-top:2px;}
.gbox-h b{display:block;font-size:15px;font-weight:800;line-height:1.35;}
.gbox-h span{display:block;font-size:12.5px;color:var(--mut);margin-top:2px;}
.gbox-sub{margin:8px 0 0;font-size:13px;line-height:1.5;color:var(--mut);}
.gbox-items{list-style:none;margin:10px 0 0;padding:0;display:flex;flex-direction:column;gap:7px;}
.gbox-items li{display:flex;align-items:center;gap:9px;}
.gbox-th{flex:0 0 36px;width:36px;height:36px;border-radius:7px;overflow:hidden;background:var(--bd);display:block;}
.gbox-th img{width:100%;height:100%;object-fit:cover;display:block;}
.gbox-th.noimg img{opacity:.35;}
.gbox-nm{flex:1;min-width:0;font-size:13px;line-height:1.35;color:var(--ink);text-decoration:none;}
.gbox-nm:hover{color:var(--pri);}
.esb-ol-say{font-weight:800;color:var(--pri);margin:2px 0 0;}
.esb-ol-gets{list-style:none;margin:7px 0 0;padding:0;font-size:12.5px;color:var(--mut);}
.esb-ol-gets li{line-height:1.5;}
.esb-ol-gets a{color:inherit;text-decoration:none;}
.esb-ol-gets a:hover{color:var(--pri);}
@media (prefers-color-scheme: dark){ html:not([data-theme="light"]){
  .gfbar-won{color:#4ade80;background:rgba(74,222,128,.12);}
  .gfbar-take,.gfbar-next{background:rgba(255,255,255,.05);}
  .ctier.gift{color:#4ade80;}
} }
html[data-theme="dark"] .gfbar-won{color:#4ade80;background:rgba(74,222,128,.12);}
html[data-theme="dark"] .gfbar-take,
html[data-theme="dark"] .gfbar-next{background:rgba(255,255,255,.05);}
html[data-theme="dark"] .ctier.gift{color:#4ade80;}
/* ---------- ESB step 267 — spend and save ---------- */
.spbar{margin:14px 0 4px;display:flex;flex-direction:column;gap:9px;}
.spbar-won{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:700;color:#15803d;
  background:rgba(22,163,74,.10);border-radius:9px;padding:9px 11px;line-height:1.35;}
.spbar-won i{flex:0 0 auto;}
.spbar-next{background:var(--soft,#f2f4f6);border-radius:9px;padding:10px 11px;}
.spbar-tx{font-size:13px;line-height:1.4;color:var(--ink);}
.spbar-tx b{font-weight:800;}
.spbar-track{margin-top:7px;height:6px;border-radius:99px;background:var(--bd);overflow:hidden;}
.spbar-track span{display:block;height:100%;border-radius:99px;background:var(--pri);transition:width .3s;}
.spbar-sub{margin-top:6px;font-size:12px;color:var(--mut);line-height:1.4;}
@media (prefers-color-scheme: dark){ html:not([data-theme="light"]){
  .spbar-won{color:#4ade80;background:rgba(74,222,128,.12);}
  .spbar-next{background:rgba(255,255,255,.05);}
} }
html[data-theme="dark"] .spbar-won{color:#4ade80;background:rgba(74,222,128,.12);}
html[data-theme="dark"] .spbar-next{background:rgba(255,255,255,.05);}
/* ---------- ESB step 266 — packages ---------- */
.bcard{display:flex;flex-direction:column;gap:10px;padding:16px;border:1px solid var(--bd);border-radius:14px;background:var(--card);}
.bcard-h{display:flex;align-items:flex-start;gap:10px;}
.bcard-h h3{margin:0;font-size:16px;font-weight:800;line-height:1.3;}
.bcard-h p{margin:4px 0 0;font-size:13px;line-height:1.5;color:var(--mut);}
.bcard-off{margin-left:auto;flex:0 0 auto;background:var(--pri);color:#fff;font-size:12px;font-weight:800;
  padding:4px 9px;border-radius:999px;white-space:nowrap;}
.bcard-items{list-style:none;margin:0;padding:0;border-top:1px solid var(--bd);border-bottom:1px solid var(--bd);}
.bcard-items li{display:flex;align-items:center;gap:9px;padding:8px 0;border-bottom:1px solid var(--bd);}
.bcard-items li:last-child{border-bottom:0;}
.bcard-th{flex:0 0 40px;width:40px;height:40px;border-radius:8px;overflow:hidden;background:var(--soft,#f2f4f6);display:block;}
.bcard-th img{width:100%;height:100%;object-fit:cover;display:block;}
.bcard-th.noimg img{opacity:.35;}
.bcard-q{font-weight:800;font-size:13px;color:var(--mut);flex:0 0 auto;}
.bcard-nm{flex:1;min-width:0;font-size:13.5px;line-height:1.35;color:var(--ink);text-decoration:none;}
.bcard-nm:hover{color:var(--pri);}
.bcard-ip{flex:0 0 auto;font-size:13px;color:var(--mut);}
.bcard-p{display:flex;align-items:baseline;gap:9px;flex-wrap:wrap;}
.bcard-was{text-decoration:line-through;color:var(--mut);font-size:14px;}
.bcard-now{font-size:22px;font-weight:900;color:var(--pri);}
.bcard-save{font-size:13px;font-weight:800;color:#15803d;}
.bcard-f{margin:0;}
.bcard-btn{width:100%;border:0;border-radius:10px;background:var(--pri);color:#fff;font-weight:800;
  padding:12px 16px;font-size:14.5px;cursor:pointer;}
.bcard-btn:hover{filter:brightness(.94);}
.bbox{margin:18px 0 6px;}
.bbox-h{font-size:15px;font-weight:800;margin:0 0 10px;}
@media (prefers-color-scheme: dark){ html:not([data-theme="light"]) .bcard-save{color:#4ade80;} }
html[data-theme="dark"] .bcard-save{color:#4ade80;}
