/* ── The storefront ───────────────────────────────────────────────────────
 *
 * The design language is the one already running at karaz.jarves.net
 * (C:\karaz\frontend — tailwind.config.js + src/index.css + ProductCard.jsx),
 * taken from that source rather than eyeballed off the rendered page:
 *
 *     ink #141414 · cream #FAF7F2 · white cards, rounded-2xl, border black/5
 *     Playfair Display for display type, Cairo for Arabic, Inter for Latin
 *     card lifts 4px on hover with a soft shadow; the photo zooms 1.05
 *
 * Two deliberate departures. Karaz's accent is its own cherry red (#ED1C24);
 * Cuple's mark is the dark medallion, so the accent here is near-black and red
 * is kept for one job — marking a discount. And there is NO hero banner: the
 * shop opens straight onto the categories and the goods.
 *
 * One sheet, both directions. Every inset uses LOGICAL properties
 * (padding-inline, inset-inline-start) so Arabic mirrors from dir="rtl" alone.
 * ──────────────────────────────────────────────────────────────────────── */

/* Colours are cuple.ae's own, read off the live site rather than invented:
 * black bar, white, #212529 ink, #F6F6F6 section ground, and the camel
 * #D5A46B that runs through their leather range — the only chromatic brand
 * colour they use. Karaz's cherry red stays with Karaz.
 * Montserrat is cuple.ae's typeface; Playfair Display carries the headings,
 * which is the part of the Karaz treatment worth keeping. */
:root{
  --ink:#141210;             /* warm near-black — the Cuple medallion */
  --ink-2:#3f3a33;
  --muted:#8a8178;
  --line:#ece6dc;            /* warm hairline */
  --ground:#F6F3EE;          /* warm cream ground */
  --panel:#EDE7DD;           /* photo / thumbnail bed */
  --white:#fff;
  --shade:#efe9df;
  --accent:#D5A46B;          /* cuple camel */
  --accent-deep:#B8863F;     /* its hover — white on it is 3.4:1, so LARGE text only */
  --bar:#141210;             /* their announcement bar */
  --sale:#C0392B;            /* discount red */
  --ok:#5f7a58;              /* sage — success / free */
  --gut:20px;
  --max:1240px;
  --r:16px;
}
@media (min-width:900px){ :root{ --gut:32px; } }

*,*::before,*::after{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; scroll-behavior:smooth; }
body{
  margin:0; background:var(--ground); color:var(--ink);
  /* Inter for Latin, Cairo for Arabic (Inter carries no Arabic glyphs, so RTL
   * text falls through to Cairo on its own) — the enhanced Cuple treatment. */
  font-family:'Inter','Cairo','Segoe UI',Tahoma,sans-serif;
  font-size:15px; line-height:1.6; -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
.display{ font-family:'Playfair Display','Cairo',Georgia,serif; font-weight:600; }
.serif{ font-family:'Playfair Display','Cairo',Georgia,serif; font-weight:600; }

.skip{ position:absolute; inset-inline-start:-9999px; }
.skip:focus{ inset-inline-start:var(--gut); top:8px; z-index:99; background:var(--ink);
  color:#fff; padding:10px 14px; border-radius:999px; }
:focus-visible{ outline:2px solid var(--ink); outline-offset:3px; }

/* ── announcement + header ── */
.strip{
  background:var(--ink); color:#fff; text-align:center;
  font-size:12.5px; letter-spacing:.01em; padding:10px var(--gut);
}
.strip.promo a{ color:#fff; text-decoration:none; }
.strip.promo a:hover{ text-decoration:underline; }
.strip.promo [hidden]{ display:none; }
.top{
  position:sticky; top:0; z-index:40;
  background:rgba(246,246,246,.88); backdrop-filter:saturate(180%) blur(12px);
  -webkit-backdrop-filter:saturate(180%) blur(12px);
  border-bottom:1px solid var(--line);
}
.bar{
  max-width:var(--max); margin:0 auto; padding-inline:var(--gut);
  height:72px; display:flex; align-items:center; gap:18px;
}
.brand{ font-size:22px; letter-spacing:-.01em; }
.brand-logo{ display:block; height:40px; width:auto; max-width:180px; object-fit:contain; }
/* Home hero (shown only when the shop sets an image or a title in Theme). */
.hero{ margin:0 var(--gut) 10px; }
.hero>a,.hero>img{ display:block; }
.hero img{ width:100%; height:auto; border-radius:var(--r); }
.hero-text{ text-align:center; padding:18px 8px 6px; }
.hero-text h1{ margin:0 0 6px; font-size:clamp(24px,4vw,40px); }
.hero-text p{ margin:0 auto; max-width:52ch; color:var(--muted); }
.hero-cta{ display:inline-block; margin-top:14px; background:var(--accent); color:#fff;
  padding:12px 26px; border-radius:999px; font-weight:600; }
.hero-cta:hover{ background:var(--accent-deep); }
.tools{ margin-inline-start:auto; display:flex; align-items:center; gap:8px; }
.tools a, .tools .cart{
  min-height:40px; display:inline-flex; align-items:center; padding-inline:16px;
  font-size:13px; font-weight:600; border-radius:999px; transition:all .25s ease;
}
.lang{ color:var(--ink-2); border:1px solid var(--line); }
.lang:hover{ border-color:var(--ink); color:var(--ink); }
/* The cart is a BUTTON, so it never matched `.tools a` — it rendered as a bare
 * black box with a stray badge (the "broken icon"). It now shares the pill and
 * carries a real shopping-bag glyph that always renders (inline SVG, no font). */
.cart{ background:var(--ink); color:#fff; border:0; cursor:pointer;
  font:inherit; gap:8px; position:relative; }
.cart:hover{ background:var(--accent-deep); }
.cart-ic{ flex:none; }
/* Country switcher — a no-JS <details> dropdown in the header. */
.ctry{ position:relative; }
.ctry summary{ list-style:none; cursor:pointer; min-height:40px; display:inline-flex;
  align-items:center; gap:6px; padding-inline:12px; border:1px solid var(--line);
  border-radius:999px; font-size:13px; font-weight:600; color:var(--ink-2); }
.ctry summary::-webkit-details-marker{ display:none; }
.ctry summary::marker{ content:""; }
.ctry summary:hover{ border-color:var(--ink); color:var(--ink); }
.ctry .cflag{ font-size:16px; line-height:1; }
.ctry .ccode{ font-variant-numeric:tabular-nums; }
.ctry-menu{ position:absolute; inset-block-start:calc(100% + 6px); inset-inline-end:0;
  background:var(--white); border:1px solid var(--line); border-radius:12px;
  box-shadow:0 18px 40px -18px rgba(20,18,16,.3); padding:6px; min-width:172px; z-index:50;
  display:flex; flex-direction:column; }
.ctry-menu a{ display:flex; align-items:center; gap:9px; padding:9px 12px; border-radius:8px;
  font-size:13.5px; color:var(--ink-2); white-space:nowrap; }
.ctry-menu a:hover{ background:var(--ground); color:var(--ink); }
.ctry-menu a[aria-current]{ color:var(--ink); font-weight:700; }
@media (max-width:719px){ .ctry .ccode{ display:none; } }
@media (max-width:719px){ .cart-label{ position:absolute; width:1px; height:1px;
  overflow:hidden; clip:rect(0 0 0 0); } }
.closed{ background:#fffbeb; color:#b45309; padding:12px var(--gut); text-align:center; font-size:13.5px; }

main{ max-width:var(--max); margin:0 auto; padding-inline:var(--gut); padding-block:0 72px; }

/* ── section heading ── */
.row{ margin-block:48px; }
.row h2, .phead h1{ margin:0; }
.row h2{
  font-family:'Playfair Display','Cairo',Georgia,serif;
  font-size:24px; font-weight:600; letter-spacing:-.01em; margin-block-end:20px;
}

/* ── product grid ── */
.grid{ display:grid; gap:14px; grid-template-columns:repeat(2,minmax(0,1fr)); }
@media (min-width:640px){ .grid{ grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; } }
@media (min-width:1000px){ .grid{ grid-template-columns:repeat(4,minmax(0,1fr)); } }

.card{
  display:flex; flex-direction:column; background:var(--white);
  border:1px solid var(--line); border-radius:var(--r); overflow:hidden;
  transition:transform .35s ease, box-shadow .35s ease;
}
.card:hover{ transform:translateY(-4px); box-shadow:0 18px 40px -18px rgba(33,37,41,.28); }

/* SQUARE. `contain` rather than `cover`: catalogue pictures are stored at
 * 320x320 (routers/media_store.py) and a square photo fills a square box
 * identically either way — but `contain` is the one that cannot crop the toe
 * off a shoe if a non-square picture is ever imported. Karaz decides this per
 * image in JavaScript on load; these pages ship none, so they take the safe
 * branch for everything. */
.shot{
  position:relative; display:block; aspect-ratio:1;
  background:var(--white); overflow:hidden;
}
.shot img{
  width:100%; height:100%; object-fit:contain; padding:8px;
  transition:transform .7s ease;
}
.card:hover .shot img{ transform:scale(1.05); }
.noimg{ display:block; width:100%; height:100%; background:var(--shade); }

.flag{
  position:absolute; inset-block-start:12px; inset-inline-end:12px;
  font-size:11px; font-weight:700; letter-spacing:.02em;
  padding:4px 9px; border-radius:999px; box-shadow:0 1px 2px rgba(33,37,41,.08);
  background:var(--sale); color:#fff;
}
.flag.low{ background:#b45309; }
/* a deal about the basket ("Any 2 for 99") — said on the card, since one piece alone shows no sale price */
.flag.deal{ background:#0f766e; max-width:calc(100% - 16px); white-space:normal; line-height:1.25; }
.deal-line{ margin:6px 0 0; color:#0f766e; font-weight:600; font-size:.95rem; }
/* Out of stock is stated over the photo, the way Karaz does it, rather than
 * by grey-ing the card — a faded card reads as "loading", not "gone". */
.out-veil{
  position:absolute; inset:0; background:rgba(255,255,255,.55);
  display:grid; place-items:center;
}
.out-veil span{
  font-size:12px; color:var(--ink); background:rgba(255,255,255,.85);
  border:1px solid var(--ink); border-radius:999px; padding:5px 14px;
}

.meta{ padding:14px; display:flex; flex-direction:column; gap:6px; flex:1; }
.name{
  font-size:13.5px; line-height:1.5; color:var(--ink-2); min-height:2.9em;
  overflow:hidden; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical;
}
.price{ margin:0; font-size:15px; display:flex; gap:8px; align-items:baseline; flex-wrap:wrap; }
.price strong{ font-weight:700; font-variant-numeric:tabular-nums; }
.from{ font-size:11px; color:var(--muted); letter-spacing:.04em; }
.was{ color:var(--muted); font-size:12.5px; font-variant-numeric:tabular-nums; }

/* ── the category row ──
 * Text links: the API returns no category artwork (store.py `categories`
 * projects name, parent and count only). The count comes with it, and is the
 * difference between "Bags" and "Bags, 130 of them". */
.catrow{ display:flex; flex-wrap:wrap; gap:10px; }
.cat{
  display:inline-flex; align-items:center; gap:10px; min-height:44px;
  padding-inline:18px; background:var(--white);
  border:1px solid var(--line); border-radius:999px;
  font-size:13.5px; color:var(--ink-2);
  transition:transform .25s ease, box-shadow .25s ease, color .25s ease;
}
.cat:hover{ transform:translateY(-2px); box-shadow:0 10px 24px -14px rgba(33,37,41,.3);
  color:var(--ink); border-color:var(--accent); }
.cat .n{ font-size:11px; color:var(--muted); font-variant-numeric:tabular-nums; }

.empty{ padding-block:80px; text-align:center; color:var(--muted); }

.foot{ border-top:1px solid var(--line); margin-block-start:56px; }
.foot p{ max-width:var(--max); margin:0 auto; padding:32px var(--gut); font-size:12.5px; color:var(--muted); }

/* ── category and product pages ── */
.crumbs{
  display:flex; flex-wrap:wrap; align-items:center; gap:8px;
  padding-block:24px 4px; font-size:12.5px; color:var(--muted);
}
.crumbs a{ color:var(--muted); }
.crumbs a:hover{ color:var(--ink); }
/* Drawn, not typed, so it mirrors with the writing direction. */
.crumbs > * + *::before{ content:"/"; padding-inline-end:8px; color:var(--line); }
.crumbs [aria-current]{ color:var(--ink-2); }

.phead{ padding-block:10px 28px; margin-block-end:28px; border-bottom:1px solid var(--line); }
.phead h1{
  font-family:'Playfair Display','Cairo',Georgia,serif;
  font-size:30px; font-weight:600; letter-spacing:-.02em; text-wrap:balance;
}
.count{ margin:8px 0 0; font-size:12.5px; color:var(--muted); font-variant-numeric:tabular-nums; }

.pager{
  display:flex; align-items:center; justify-content:center; gap:18px;
  margin-block-start:48px; padding-block-start:28px; border-top:1px solid var(--line);
  font-size:13.5px;
}
.pager a{
  min-height:44px; display:inline-flex; align-items:center; padding-inline:20px;
  background:var(--white); border:1px solid var(--line); border-radius:999px; color:var(--ink-2);
  transition:border-color .25s ease, color .25s ease;
}
.pager a:hover{ border-color:var(--ink); color:var(--ink); }
.pager span{ color:var(--muted); font-variant-numeric:tabular-nums; }

/* ── one product ── */
.product{ display:grid; gap:28px; padding-block:12px 8px; }
@media (min-width:860px){
  /* The gallery column is CAPPED and that is not a style choice: pictures are
   * stored once at 320x320, so an uncapped column rendered the hero at 599px —
   * a 1.87x upscale of a 320px photograph, and it looked it. 400px keeps it to
   * 1.25x. If the importer ever stores bigger originals, raise this. */
  .product{ grid-template-columns:minmax(0,400px) minmax(0,1fr); gap:56px; align-items:start; }
}
.gallery{ display:grid; gap:12px; }
.gallery img{
  width:100%; aspect-ratio:1; object-fit:contain; padding:14px;
  background:var(--panel); border:1px solid var(--line); border-radius:var(--r);
}
@media (min-width:520px){
  /* Below the hero the shots pair up, and at half width they are DOWNSCALED —
   * so the variant photographs are the crispest thing on the page. */
  .gallery{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .gallery img:first-child{ grid-column:1 / -1; }
}
.buy{ position:sticky; top:96px; }
.buy h1{
  font-family:'Playfair Display','Cairo',Georgia,serif;
  margin:0 0 12px; font-size:26px; font-weight:600; line-height:1.3;
  letter-spacing:-.015em; text-wrap:balance;
}
.buy .price{ font-size:21px; margin-block:0 18px; }
.oos{
  margin:0 0 18px; font-size:13px; color:var(--ink);
  border:1px solid var(--ink); border-radius:999px; display:inline-block; padding:7px 16px;
}
/* The class's own display beats the UA [hidden] rule, so say it explicitly —
 * otherwise an in-stock product shows an empty outline pill under the price. */
.oos[hidden]{ display:none; }
.pickup{ margin:18px 0 0; font-size:13px; color:var(--ok); }

/* ── enhanced PDP — eyebrow, assurance strip, trust row ──
 * The editorial pass from the Cuple mockup: a gold uppercase kicker over the
 * title, a pair of assurance cards under the price, and a trust row below the
 * buy controls. All copy is real and true — no invented ratings or dates. */
.eyebrow{
  margin:0 0 8px; font-size:11px; font-weight:700; letter-spacing:.14em;
  text-transform:uppercase; color:var(--accent-deep);
}
.assure{ display:flex; flex-wrap:wrap; gap:10px; margin:18px 0 4px; }
.assure .a{
  flex:1 1 150px; display:flex; gap:10px; align-items:center;
  background:var(--white); border:1px solid var(--line); border-radius:12px; padding:11px 13px;
}
.assure .ic{ font-size:17px; line-height:1; flex:none; }
.assure .tx{ font-size:12px; line-height:1.35; }
.assure .tx b{ display:block; font-weight:600; color:var(--ink); }
.assure .tx span{ color:var(--muted); }
.trust{
  display:flex; justify-content:space-around; gap:8px; margin:24px 0 0;
  padding:16px 4px; border-block:1px solid var(--line);
}
.trust div{ text-align:center; font-size:11px; color:var(--ink-2); line-height:1.5; }
.trust .ic{ display:block; font-size:18px; margin-bottom:2px; }

.opts{ margin:22px 0 0; }
.opts h2, .desc h2{
  font-family:'Playfair Display','Cairo',Georgia,serif;
  margin:0 0 14px; font-size:17px; font-weight:600; color:var(--ink);
}
.optrow{ display:flex; gap:12px; align-items:baseline; margin-block-end:14px; flex-wrap:wrap; }
.optrow dt{ font-size:12.5px; color:var(--muted); min-width:64px; }
.optrow dd{ margin:0; display:flex; flex-wrap:wrap; gap:8px; }
.opt{
  display:inline-flex; align-items:center; min-height:36px; padding-inline:14px;
  background:var(--white); border:1px solid var(--line); border-radius:999px;
  font-size:12.5px; color:var(--ink-2); transition:border-color .2s ease;
}
.opt:hover{ border-color:var(--ink); }
.desc{ margin-block:48px 0; max-width:66ch; }
.desc p{ margin:0; color:var(--ink-2); white-space:pre-line; }

@media (prefers-reduced-motion:reduce){
  *{ animation:none !important; transition:none !important; }
}

/* ── choosing a size, and the basket ──────────────────────────────────────
 * The interaction is Karaz's (components/CartDrawer.jsx): a scrim, a panel
 * that slides in from the inline-start edge, a quantity stepper, and a toast.
 * Only the colours differ. */

.opt{ cursor:pointer; font:inherit; font-size:12.5px; }
.opt.on{ border-color:var(--ink); background:var(--ink); color:#fff; }

.qty{
  display:inline-flex; align-items:center; border:1px solid var(--line);
  border-radius:999px; background:var(--white); overflow:hidden;
}
.qty button{
  width:44px; height:44px; border:0; background:none; cursor:pointer;
  font:inherit; font-size:17px; color:var(--ink); line-height:1;
}
.qty button:hover{ background:var(--ground); }
.qty span{ min-width:34px; text-align:center; font-variant-numeric:tabular-nums; }
.qty.sm button{ width:28px; height:28px; font-size:14px; }
.qty.sm span{ min-width:24px; font-size:13px; }

.buyrow{ display:flex; gap:12px; align-items:center; margin-block-start:24px; }
#pdp-add{
  flex:1; min-height:52px; border:0; border-radius:999px; cursor:pointer;
  background:var(--ink); color:#fff; font:inherit; font-size:15px; font-weight:600;
  transition:background .25s ease;
}
#pdp-add:hover:not(:disabled){ background:var(--accent-deep); }
#pdp-add:disabled{ background:var(--shade); color:var(--muted); cursor:not-allowed; }

#cart-scrim{
  position:fixed; inset:0; background:rgba(0,0,0,.4); z-index:40;
  opacity:0; pointer-events:none; transition:opacity .3s ease;
}
#cart.open ~ #cart-scrim, body.locked #cart-scrim{ opacity:1; pointer-events:auto; }
body.locked{ overflow:hidden; }

#cart{
  position:fixed; inset-block:0; inset-inline-start:0; z-index:50;
  width:100%; max-width:420px; background:var(--ground);
  display:flex; flex-direction:column;
  box-shadow:0 25px 50px -12px rgba(0,0,0,.35);
  transform:translateX(-100%); transition:transform .32s ease;
}
[dir="rtl"] #cart{ transform:translateX(100%); }
#cart.open{ transform:none; }
#cart > header{
  display:flex; align-items:center; justify-content:space-between;
  padding:20px; border-bottom:1px solid var(--line);
}
#cart > header h2{ margin:0; font-size:19px; }
#cart > header button{
  border:0; background:none; font-size:26px; line-height:1; cursor:pointer; color:var(--ink);
}
#cart-lines{ flex:1; overflow-y:auto; padding:20px; display:flex; flex-direction:column; gap:18px; }
.cart-empty{ text-align:center; color:var(--muted); margin-block-start:64px; }
.cart-line{ display:flex; gap:12px; align-items:flex-start; }
.cart-line img, .cart-line .noimg{
  width:64px; height:64px; object-fit:contain; background:var(--white);
  border:1px solid var(--line); border-radius:10px; padding:4px; flex:none;
}
.cl-mid{ flex:1; min-width:0; }
.cl-name{ font-size:13.5px; line-height:1.4; display:block; }
.cl-var{ font-size:11.5px; color:var(--muted); margin-block-start:2px; }
.cl-price{ font-size:13.5px; font-weight:700; margin-block:4px; font-variant-numeric:tabular-nums; }
.cl-del{
  border:0; background:none; cursor:pointer; font:inherit; font-size:12px;
  color:var(--muted); padding:0;
}
.cl-del:hover{ color:var(--sale); }
#cart > footer{ padding:20px; border-top:1px solid var(--line); background:var(--white); }
/* Free-delivery progress meter — the mockup's "you're AED X away" nudge. Shown
 * only when the shop has set a threshold; hidden by the script otherwise. */
#cart-ship{ margin-block-end:14px; }
#cart-ship[hidden]{ display:none; }
.ship-msg{ font-size:12px; margin-block-end:8px; color:var(--ink-2); }
.ship-msg b{ color:var(--ink); font-variant-numeric:tabular-nums; }
.ship-msg.done{ color:var(--ok); font-weight:600; }
.ship-bar{ height:8px; border-radius:999px; background:var(--panel); overflow:hidden; }
.ship-bar span{ display:block; height:100%; border-radius:999px; background:var(--accent-deep);
  transition:width .35s ease; }
#cart .sum{ display:flex; justify-content:space-between; margin-block-end:14px; font-size:14px; }
#cart .sum strong{ font-variant-numeric:tabular-nums; }
#cart-checkout{
  width:100%; min-height:52px; border:0; border-radius:999px; cursor:pointer;
  background:var(--ink); color:#fff; font:inherit; font-size:15px; font-weight:600;
  transition:background .25s ease;
}
#cart-checkout:hover:not(:disabled){ background:var(--accent-deep); }
#cart-checkout:disabled{ opacity:.4; cursor:not-allowed; }

#cart-count{
  display:inline-grid; place-items:center; min-width:19px; height:19px;
  margin-inline-start:2px; padding-inline:5px; border-radius:999px;
  background:var(--accent); color:var(--ink); font-size:11px; font-weight:700;
  font-variant-numeric:tabular-nums;
}
#cart-count[hidden]{ display:none; }

#toast{
  position:fixed; inset-block-end:24px; inset-inline-start:50%;
  transform:translate(-50%,16px); z-index:60;
  display:flex; align-items:center; gap:10px;
  background:var(--ink); color:#fff; padding:10px 16px; border-radius:999px;
  font-size:13px; opacity:0; pointer-events:none; transition:opacity .25s ease, transform .25s ease;
}
#toast img{ width:28px; height:28px; object-fit:contain; background:#fff; border-radius:50%; padding:2px; }
#toast.show{ opacity:1; transform:translate(-50%,0); }

/* ── search, quick add, footer ────────────────────────────────────────── */

.find{ flex:1; max-width:380px; margin-inline-start:8px; }
.find input{
  width:100%; min-height:42px; padding-inline:18px;
  border:1px solid var(--line); border-radius:999px; background:var(--white);
  font:inherit; font-size:13.5px; color:var(--ink);
}
.find input::placeholder{ color:var(--muted); }
.find input:focus{ outline:none; border-color:var(--accent); }
@media (max-width:719px){
  .bar{ height:auto; flex-wrap:wrap; padding-block:12px; gap:12px; }
  .find{ order:3; flex-basis:100%; max-width:none; margin-inline-start:0; }
}

/* The card's own action. It sits over the photo and slides up on hover the way
 * Karaz's does; on a touch screen there is no hover, so it is simply always
 * visible below 900px rather than unreachable. */
.quick{
  position:absolute; inset-inline:0; inset-block-end:0;
  border:0; width:100%; padding-block:12px; cursor:pointer;
  background:rgba(33,37,41,.95); color:#fff; font:inherit; font-size:13px;
  transform:translateY(100%); transition:transform .3s ease, background .25s ease;
}
.card:hover .quick{ transform:none; }
button.quick:hover{ background:var(--accent-deep); }
.quick.pick{ background:rgba(33,37,41,.82); display:block; text-align:center; }
@media (max-width:899px){ .quick{ transform:none; } }

.foot .fin{
  max-width:var(--max); margin:0 auto; padding:34px var(--gut);
  display:flex; flex-wrap:wrap; align-items:center; gap:14px 24px;
}
.foot .fin > p{ margin:0; font-size:18px; }
.flinks{
  margin-inline-start:auto; display:flex; flex-wrap:wrap; align-items:center; gap:18px;
  font-size:12.5px; color:var(--muted);
}
.flinks a{ color:var(--ink-2); }
.flinks a:hover{ color:var(--accent-deep); text-decoration:underline; }

/* Written pages and the FAQ accordion. <details> needs no JavaScript, so the
   answers are open to a crawler and to a shopper whose scripts failed. */
.prose{ max-width:68ch; line-height:1.75; }
.prose p{ margin:0 0 1em; }
.faqs{ max-width:72ch; }
.faqs details{ border-bottom:1px solid #e6e6e6; padding:14px 0; }
.faqs summary{ cursor:pointer; font-weight:600; list-style:none; display:flex; justify-content:space-between; gap:12px; }
.faqs summary::-webkit-details-marker{ display:none; }
.faqs summary::after{ content:"+"; color:var(--accent-deep); font-weight:400; }
.faqs details[open] summary::after{ content:"–"; }
.faqs details p{ margin:10px 0 0; line-height:1.75; }

/* Mailing list sign-up in the footer. */
.signup{ margin-top:18px; max-width:420px; }
.signup label{ display:block; font-size:13px; margin-bottom:7px; color:#555; }
.signup div{ display:flex; gap:8px; }
.signup input{ flex:1; min-width:0; padding:11px 13px; border:1px solid #e0e0e0; border-radius:10px; font:inherit; }
.signup button{ padding:11px 20px; border:0; border-radius:10px; background:var(--accent); color:#1a1408; font-weight:700; cursor:pointer; font:inherit; }
.signup button:hover{ background:var(--accent-deep); }
.sub-note{ margin:8px 0 0; font-size:13px; color:#15803d; }

/* Story strip — circles, scrolled sideways, above the categories. */
.stories{ display:flex; gap:16px; overflow-x:auto; padding:4px 0 14px; scrollbar-width:none; }
.stories::-webkit-scrollbar{ display:none; }
.story{ flex:0 0 auto; width:76px; text-align:center; text-decoration:none; color:inherit; }
.story .ring{ display:block; width:72px; height:72px; border-radius:50%; padding:2px;
  background:linear-gradient(135deg,var(--accent),var(--accent-deep)); }
.story .ring img, .story .ring video{ width:100%; height:100%; border-radius:50%; object-fit:cover;
  border:2px solid #fff; background:#fff; }
.sname{ display:block; margin-top:6px; font-size:11.5px; line-height:1.3;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

/* Extra header links, when the shop configures any. */
.hmenu{ display:flex; gap:20px; overflow-x:auto; padding:0 20px 10px; scrollbar-width:none;
  border-top:1px solid #efefef; padding-top:10px; }
.hmenu::-webkit-scrollbar{ display:none; }
.hmenu a{ white-space:nowrap; text-decoration:none; color:var(--ink); font-size:13.5px; font-weight:600; }
.hmenu a:hover{ color:var(--accent-deep); }

/* Popups. Centred, dismissible with Escape or a click outside. */
.pop-back{ position:fixed; inset:0; background:rgba(20,20,20,.55); display:grid; place-items:center;
  padding:20px; z-index:60; }
.pop{ position:relative; background:#fff; border-radius:var(--r); max-width:400px; width:100%;
  padding:28px; box-shadow:0 30px 60px -30px rgba(20,20,20,.5); text-align:center; }
.pop img{ width:100%; border-radius:12px; margin-bottom:14px; }
.pop h2{ margin:0 0 8px; font-size:22px; }
.pop p{ margin:0 0 16px; color:#555; line-height:1.6; }
.pop-x{ position:absolute; inset-block-start:10px; inset-inline-end:12px; border:0; background:none;
  font-size:24px; line-height:1; cursor:pointer; color:#888; padding:4px 8px; }
.pop-x:hover{ color:var(--ink); }
.pop-form{ display:flex; gap:8px; }
.pop-form input{ flex:1; min-width:0; padding:11px 13px; border:1px solid #e0e0e0; border-radius:10px; font:inherit; }
.pop-form button{ padding:11px 18px; border:0; border-radius:10px; background:var(--accent);
  color:#1a1408; font-weight:700; cursor:pointer; font:inherit; }
.pop-cta{ display:inline-block; padding:12px 26px; border-radius:10px; background:var(--accent);
  color:#1a1408; font-weight:700; text-decoration:none; }
.pop-ok{ margin:0; color:#15803d; }
@media (prefers-reduced-motion: no-preference){ .pop{ animation:pop .2s ease-out; } }
@keyframes pop{ from{ transform:translateY(8px); opacity:0 } to{ transform:none; opacity:1 } }

/* ── Checkout ─────────────────────────────────────────────────────────────── */
.checkout{ max-width:var(--max); margin:0 auto; padding:24px var(--gut) 60px; }
.co-title{ font-size:28px; margin:6px 0 18px; }
.co-crumb{ display:inline-block; margin-bottom:14px; color:var(--muted); font-size:14px; }
.co-crumb:hover{ color:var(--ink); }
.co-grid{ display:grid; grid-template-columns:1fr; gap:22px; }
@media (min-width:900px){ .co-grid{ grid-template-columns:1.3fr .9fr; align-items:start; } }
.co-form{ background:var(--white); border:1px solid var(--line); border-radius:var(--r); padding:20px; }
.co-side{ background:var(--white); border:1px solid var(--line); border-radius:var(--r); padding:20px; position:sticky; top:96px; }
.co-h{ font-size:18px; margin:0 0 14px; }
.co-lbl{ display:block; font-size:13px; font-weight:600; margin:14px 0 6px; }
.co-inp{ width:100%; height:48px; border:1.5px solid var(--line); border-radius:12px; background:var(--white);
  padding:0 14px; font-size:15px; font-family:inherit; color:var(--ink); box-sizing:border-box; }
.co-inp:focus{ outline:none; border-color:var(--ink); }
select.co-inp{ appearance:none; }
.co-seg{ display:flex; gap:8px; margin-bottom:6px; }
.co-tab{ flex:1; height:44px; border:1.5px solid var(--line); background:var(--white); border-radius:999px;
  font-family:inherit; font-size:14px; font-weight:600; cursor:pointer; color:var(--ink); }
.co-tab.on{ background:var(--ink); color:#fff; border-color:var(--ink); }
.co-pm{ display:flex; align-items:center; gap:12px; border:1.5px solid var(--line); border-radius:14px;
  padding:13px 14px; margin-top:10px; cursor:pointer; font-size:14px; background:var(--white);
  transition:border-color .2s ease, box-shadow .2s ease; }
.co-pm:has(input:checked){ border-color:var(--ink); box-shadow:0 4px 14px rgba(20,18,16,.08); }
.co-pm input{ width:18px; height:18px; accent-color:var(--ink); flex:none; }
.co-pm .ic{ font-size:20px; line-height:1; }
.co-pm .pm-tx{ display:flex; flex-direction:column; }
.co-pm .pm-tx b{ font-weight:600; }
.co-pm .pm-tx span{ font-size:11.5px; color:var(--muted); }
.co-lines{ display:flex; flex-direction:column; gap:8px; padding-bottom:12px; border-bottom:1px solid var(--line); }
.co-li{ display:flex; justify-content:space-between; gap:10px; font-size:14px; }
.co-li-v{ color:var(--muted); }
.co-totals{ display:flex; flex-direction:column; gap:8px; padding:12px 0; }
.co-row{ display:flex; justify-content:space-between; font-size:14px; color:var(--ink); }
.co-row.co-total{ padding-top:12px; margin-top:4px; border-top:1px solid var(--line); font-size:18px; font-weight:700; }
.co-free{ color:var(--ok); font-weight:700; }
.co-issue{ background:#fff7ed; color:#b45309; border-radius:10px; padding:10px 12px; font-size:13px; margin:6px 0; }
.co-btn{ display:flex; align-items:center; justify-content:center; gap:8px; width:100%; height:54px; margin-top:14px;
  border:0; border-radius:999px; background:var(--ink); color:#fff; font-family:inherit; font-size:15px; font-weight:600;
  cursor:pointer; text-decoration:none; }
.co-btn:hover{ background:var(--accent-deep); }
.co-btn[disabled]{ opacity:.5; cursor:not-allowed; }
.co-secure{ text-align:center; color:var(--muted); font-size:12px; margin:10px 0 0; }
.co-empty{ text-align:center; padding:60px 20px; display:flex; flex-direction:column; align-items:center; gap:12px; }
.co-empty .co-btn{ max-width:280px; }
/* A dark, celebratory confirmation card — the mockup's final screen, contained. */
.co-done{
  max-width:520px; margin:0 auto; background:var(--ink); color:#fff; border-radius:22px;
  padding:48px 28px 34px; text-align:center; display:flex; flex-direction:column; align-items:center; gap:6px;
  box-shadow:0 30px 60px -30px rgba(20,18,16,.5);
}
.co-done .co-check{
  width:72px; height:72px; border-radius:999px; background:var(--ok); color:#fff; font-size:34px;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 0 0 10px rgba(95,122,88,.18); margin-bottom:8px;
}
.co-done .serif{ font-size:27px; margin:6px 0 0; color:#fff; }
.co-done p{ color:#c9c2b6; margin:4px 0 0; font-size:14px; line-height:1.5; }
.co-done .ord{
  display:inline-flex; align-items:center; gap:8px; margin-top:16px;
  background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.16);
  border-radius:999px; padding:8px 16px; font-size:13px;
}
.co-done .ord b{ color:var(--accent); font-variant-numeric:tabular-nums; }
.co-done .co-btn{ background:#fff; color:var(--ink); margin-top:24px; max-width:300px; }
.co-done .co-btn:hover{ background:var(--accent); color:var(--ink); }

/* The delivery promise under the price (Fulfillment process, 2026-10-19). */
.card .eta{ display:inline-block; margin-top:6px; padding:3px 8px; border-radius:6px; background:#19c25a; color:#0a3d1e;
  font-size:11px; font-weight:800; letter-spacing:.3px; }

/* Category Pages (spec 6.3): the banner, the offer strip, the short text and the filter bar. */
.cbanner{ margin-block-end:18px; border-radius:var(--radius, 10px); overflow:hidden; }
.cbanner img{ display:block; width:100%; height:auto; max-height:420px; object-fit:cover; }
.cstrip{ margin:0 0 14px; padding:10px 14px; background:var(--ink); color:var(--bg, #fff); font-weight:600; text-align:center; letter-spacing:.02em; }
.cintro{ margin:8px 0 0; max-width:70ch; color:var(--muted); }
.cfilters{ display:flex; flex-wrap:wrap; gap:10px 16px; align-items:center; margin:-12px 0 22px; font-size:13px; }
.cfilters select, .cfilters input{ font:inherit; padding:6px 8px; border:1px solid var(--line); border-radius:6px; background:transparent; color:inherit; }
.cfilters button{ font:inherit; padding:6px 14px; border:1px solid var(--ink); background:var(--ink); color:var(--bg, #fff); border-radius:6px; cursor:pointer; }

/* Back in stock (spec 7.4) */
.notify{ display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin:10px 0 16px; font-size:13px; }
.notify[hidden]{ display:none; }
.notify label{ width:100%; font-weight:600; }
.notify input{ flex:1 1 200px; font:inherit; padding:8px 10px; border:1px solid var(--line); border-radius:6px; background:transparent; color:inherit; }
.notify button{ font:inherit; padding:8px 14px; border:1px solid var(--ink); background:var(--ink); color:var(--bg, #fff); border-radius:6px; cursor:pointer; }
.notify-ok{ width:100%; color:var(--muted); }

/* Menu Management (spec 6.4): a badge, a second level that opens on hover / focus, links hidden on phones. */
.hmenu{ overflow:visible; flex-wrap:wrap; }
.mbadge{ font-size:10px; font-weight:700; padding:1px 5px; margin-inline-start:4px; background:var(--ink); color:var(--bg, #fff); border-radius:3px; vertical-align:2px; }
.mtop{ position:relative; }
.msub{ display:none; position:absolute; top:100%; inset-inline-start:0; z-index:20; min-width:180px; padding:8px 0;
  background:var(--bg, #fff); border:1px solid var(--line); box-shadow:0 6px 18px rgba(0,0,0,.08); }
.msub a{ display:block; padding:6px 14px; }
.mtop:hover .msub, .mtop:focus-within .msub{ display:block; }
@media (max-width:700px){ .nomob{ display:none !important; } }
