/* ==========================================================================
   Samudhra Fresh Catch: shared design system ("the shell")
   Source of truth: the approved HTML prototype (quick-commerce bento, sea blue).
   Fonts: Sora (display) + Plus Jakarta Sans (body). Light + deep-sea-navy dark.

   Page-specific styles go in static/css/pages/<page>.css, loaded from the
   page template's {% block extra_head %}. Keep shared components here.

   COMPONENT INDEX (class names to reuse on ported pages)
   ---------------------------------------------------------------------------
   Layout     .wrap (centred max-width + gutters)  .sec (section top spacing)
              .sec-head > div > h2 + p, .head-tools, .see-all, .arrow
              .rail (horizontal scroll row; give it an id and add
                 <button class="arrow" data-rail="ID" data-dir="-1|1">)
              .pgrid (product grid: 5/4/3/2 cols; NOT .grid, that is Tailwind's)
   Type       .tnum (tabular numbers)  .sr (visually hidden)  .eyebrow
   Buttons    .btn + .btn-brand | .btn-white | .btn-line | .btn-ink, .btn-sm
              .ibtn (square icon button)  .arrow (rail arrow)  .see-all
   Badges     .chip (.chip.hot)  .chips (row)  .sticker (sun pill with sheen)
              .ribbon (red % OFF flag)  .marker.veg|.nonveg|.egg (food marker)
              .best (BESTSELLER tag)  .eta (45 MINS chip)  .count (red badge)
              .live-timer  .bulk-tag
   Product    .card.product-card > .media (img, .ribbon, .marker, .best, .ctl)
              + .cbody (.eta, .cname, .cmeta, .cprice b/s/.perkg)
              .add (ADD button)  .stepper (− qty +)  .qty (big stepper)
   Forms      .dd (custom dropdown over a real <select>, see samudhra.js)
              .toggle (switch label)  .field (input/select/textarea)
              .note (textarea + .cnt)  .quick (chip buttons)  .opts/.opt (radio cards)
   Nav        .tabs > a|button (.on / aria-selected)  .crumbs  .steps > span > i
   Overlays   .toast (.toast-stack)  .drawer + .scrim  .modal + .modal-card
              .pop (anchored popover)
   Cart       .line (cart line card)  .mixic  .bill  .cp (coupon form)
   Motion     .rv (reveal on scroll; .rv-left, .rv-zoom; --d stagger)
              [data-tilt] (pointer tilt + .spot spotlight)  .bump  .sw (word split)
              .mq > .mq-track (offer marquee, [data-marquee] duplicates content)
   Scope      main[data-theme-scope="light"]: pages not yet ported stay light
              in dark mode. Ported pages override {% block main_theme %}.
   ========================================================================== */

/* ---------- 1. tokens ---------- */
:root {
  --bg: #F4F5F2;
  --surface: #FFFFFF;
  --surface-2: #ECEFEA;
  --ink: #0B110E;
  --ink-2: #4B5650;
  --muted: #8B958F;
  --line: #E3E7E2;
  --brand: #1660D4;
  --brand-deep: #0B3E91;
  --brand-bright: #2F86FF;
  --brand-pale: #8EC3FF;
  --on-brand: #FFFFFF;
  --hot: #FF4B2B;          /* deals, ribbons, badges */
  --on-hot: #FFFFFF;
  --sun: #FFD43B;          /* offer stickers */
  --sun-ink: #2A1F00;
  --sea: #0B4F73;
  --mint: #DCEBFF;
  --mint-ink: #0B3E91;
  --veg: #16A34A; --nonveg: #C81E1E; --egg: #D97706;
  --white: #FFFFFF;
  --navy-1: #072A66; --navy-2: #061F4D; --navy-3: #04173A;  /* footer */
  --scrim: rgba(5,10,8,.5);
  --shadow: 0 1px 2px rgba(11,17,14,.04), 0 6px 20px -8px rgba(11,17,14,.12);
  --shadow-lg: 0 30px 60px -20px rgba(11,17,14,.28);
  --shadow-brand: 0 10px 24px -10px rgba(22,96,212,.7);
  --glass: rgba(244,245,242,.8);
  --f-display: "Sora", "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  --f-body: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 24px; --r-s: 16px;
  --wrap: 2200px;
  --hdr-h: 92px;
  --ease: cubic-bezier(.22,1,.36,1);
  --spring: cubic-bezier(.34,1.56,.64,1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #06142E; --surface: #0C2147; --surface-2: #12305E; --ink: #EAF2FF; --ink-2: #A9BCD9; --muted: #7189AE;
    --line: #1C3A6B; --brand: #5AA2FF; --brand-deep: #3C8CFF; --on-brand: #04122B; --mint: #10264A; --mint-ink: #9CC7FF;
    --veg: #34C26B; --nonveg: #F05252; --egg: #F2A23A;
    --scrim: rgba(1,6,18,.62);
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 6px 20px -8px rgba(0,0,0,.6); --shadow-lg: 0 30px 60px -20px rgba(0,0,0,.75);
    --shadow-brand: 0 10px 24px -10px rgba(0,0,0,.7);
    --glass: rgba(6,20,46,.8); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #06142E; --surface: #0C2147; --surface-2: #12305E; --ink: #EAF2FF; --ink-2: #A9BCD9; --muted: #7189AE;
  --line: #1C3A6B; --brand: #5AA2FF; --brand-deep: #3C8CFF; --on-brand: #04122B; --mint: #10264A; --mint-ink: #9CC7FF;
  --veg: #34C26B; --nonveg: #F05252; --egg: #F2A23A;
  --scrim: rgba(1,6,18,.62);
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 6px 20px -8px rgba(0,0,0,.6); --shadow-lg: 0 30px 60px -20px rgba(0,0,0,.75);
  --shadow-brand: 0 10px 24px -10px rgba(0,0,0,.7);
  --glass: rgba(6,20,46,.8); color-scheme: dark;
}

/* Pages still on the old Tailwind markup use hard-coded light colours, so their
   <main> keeps the light tokens even when the shell is dark. */
[data-theme-scope="light"] {
  --bg: #F4F5F2; --surface: #FFFFFF; --surface-2: #ECEFEA; --ink: #0B110E; --ink-2: #4B5650; --muted: #8B958F;
  --line: #E3E7E2; --brand: #1660D4; --brand-deep: #0B3E91; --on-brand: #FFFFFF; --mint: #DCEBFF; --mint-ink: #0B3E91;
  --veg: #16A34A; --nonveg: #C81E1E; --egg: #D97706;
  --shadow: 0 1px 2px rgba(11,17,14,.04), 0 6px 20px -8px rgba(11,17,14,.12);
  --shadow-lg: 0 30px 60px -20px rgba(11,17,14,.28);
  --shadow-brand: 0 10px 24px -10px rgba(22,96,212,.7);
  --glass: rgba(244,245,242,.8);
  color-scheme: light; background: var(--bg); color: var(--ink);
}

/* ---------- 2. base (low specificity so Tailwind utilities still win) ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: .9375rem; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
:where(img) { max-width: 100%; display: block; }
:where(svg:has(> use)) { height: auto; aspect-ratio: 1; flex-shrink: 0; }
:where(button) { font: inherit; color: inherit; cursor: pointer; }
:where(a) { color: inherit; text-decoration: none; }
:where(h1, h2, h3) { font-family: var(--f-display); letter-spacing: -.035em; line-height: 1.02; margin: 0; text-wrap: balance; }
:where(p) { margin: 0; }
:focus-visible { outline: 2.5px solid var(--brand); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--mint); color: var(--mint-ink); }
[hidden] { display: none !important; }

/* ---------- 3. utilities ---------- */
.tnum { font-variant-numeric: tabular-nums; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(16px, 2.4vw, 48px); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow { color: var(--brand); font-weight: 800; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 300; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 12px; font-weight: 800; transition: top .2s; }
.skip-link:focus { top: 12px; }

/* ---------- 4. buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding-inline: 22px; border-radius: 15px; border: 0; font-weight: 800; font-size: .92rem; font-family: var(--f-body); line-height: 1; transition: transform .3s var(--spring), background .2s, box-shadow .3s, color .2s; white-space: nowrap; position: relative; overflow: hidden; cursor: pointer; text-decoration: none; }
.btn:active { transform: scale(.95); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.btn svg { width: 18px; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-white { background: var(--white); color: #0B110E; box-shadow: 0 10px 24px -10px rgba(0,0,0,.45); }
.btn-white:hover { background: var(--sun); }
.btn-brand { background: var(--brand); color: var(--on-brand); }
.btn-brand:hover { background: var(--brand-deep); }
.btn-line { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-line:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-ink { background: var(--ink); color: var(--bg); }
.btn-ink:hover { background: var(--brand); color: var(--on-brand); }
.btn-sm { height: 40px; padding-inline: 14px; border-radius: 12px; font-size: .84rem; }
.btn-block { width: 100%; }
.ibtn { width: 48px; height: 48px; border-radius: 14px; border: 0; background: transparent; color: var(--ink); display: grid; place-items: center; flex-shrink: 0; transition: background .2s; cursor: pointer; }
.ibtn:hover { background: var(--surface-2); }
.ibtn svg { width: 22px; }
.arrow { width: 42px; height: 42px; border-radius: 13px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); display: grid; place-items: center; transition: all .2s; cursor: pointer; }
.arrow:hover:not(:disabled) { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.arrow:disabled { opacity: .35; cursor: default; }
.arrow svg { width: 18px; }
.see-all { font-weight: 800; color: var(--brand); font-size: .9rem; display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; cursor: pointer; }
.see-all svg { width: 16px; transition: transform .3s var(--ease); }
.see-all:hover svg { transform: translateX(4px); }

/* ---------- 5. badges, chips, ribbons, markers ---------- */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 800; padding: 5px 11px; border-radius: 99px; background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.chip svg { width: 14px; }
.chip .marker { position: static; width: 13px; height: 13px; }
.chip .marker::after { width: 5px; height: 5px; }
.chip.hot { background: var(--hot); color: var(--on-hot); box-shadow: none; }
.chip.brand { background: var(--mint); color: var(--mint-ink); box-shadow: none; }
.sticker { display: inline-flex; align-items: center; gap: 6px; background: var(--sun); color: var(--sun-ink); font-weight: 800; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; padding: 6px 12px; border-radius: 99px; align-self: flex-start; position: relative; overflow: hidden; }
.sticker::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.75) 50%, transparent 65%); transform: translateX(-100%); animation: sheen 2.8s ease-in-out infinite 1s; }
.sticker svg { width: 13px; }
@keyframes sheen { 60%, 100% { transform: translateX(100%); } }
.ribbon { position: absolute; top: 0; left: 12px; z-index: 1; background: var(--hot); color: var(--on-hot); font-weight: 800; font-size: .7rem; line-height: 1.05; text-align: center; padding: 7px 7px 10px; clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 82%, 0 100%); pointer-events: none; font-family: var(--f-display); animation: ribbonSwing 3s ease-in-out infinite; transform-origin: top center; }
.ribbon b { display: block; font-size: .95rem; }
@keyframes ribbonSwing { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-4deg); } }
.marker { position: absolute; top: 10px; right: 10px; z-index: 1; width: 16px; height: 16px; border: 1.6px solid currentColor; border-radius: 3px; background: var(--white); display: grid; place-items: center; pointer-events: none; }
.marker::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.marker.veg { color: var(--veg); } .marker.nonveg { color: var(--nonveg); } .marker.egg { color: var(--egg); }
.best { position: absolute; left: 10px; bottom: 10px; z-index: 1; background: rgba(11,17,14,.78); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); color: var(--white); font-size: .66rem; font-weight: 800; letter-spacing: .05em; padding: 4px 8px; border-radius: 8px; display: inline-flex; align-items: center; gap: 4px; pointer-events: none; }
.best svg { width: 11px; color: #FFB020; }
.best.new svg { color: var(--brand-pale); }
.eta { display: inline-flex; align-items: center; gap: 3px; font-size: .66rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; color: var(--ink-2); background: var(--surface-2); padding: 3px 7px; border-radius: 7px; align-self: flex-start; }
.eta svg { width: 11px; color: var(--brand); animation: zap 1.6s ease-in-out infinite; }
@keyframes zap { 50% { transform: scale(1.25) rotate(-10deg); filter: drop-shadow(0 0 6px #FFD43B); } }
.count { min-width: 20px; height: 20px; border-radius: 99px; background: var(--hot); color: var(--on-hot); font-size: .7rem; font-weight: 800; display: grid; place-items: center; padding-inline: 5px; line-height: 1; }
.count.hidden { display: none; }
.bump { animation: bump .6s var(--spring); }
@keyframes bump { 30% { transform: scale(1.12); } 60% { transform: scale(.96); } }
.live-timer { display: inline-flex; gap: 6px; align-items: center; background: color-mix(in srgb, var(--hot) 12%, transparent); color: var(--hot); font-family: var(--f-body); font-size: .82rem; font-weight: 800; padding: 6px 12px; border-radius: 99px; letter-spacing: 0; }
.live-timer i { width: 8px; height: 8px; border-radius: 50%; background: var(--hot); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: .2; } }
.bulk-tag { display: inline-block; font-size: .6rem; font-weight: 800; letter-spacing: .06em; background: var(--sun); color: var(--sun-ink); padding: 2px 6px; border-radius: 5px; vertical-align: middle; margin-left: 4px; }

/* ---------- 6. sections, rails, grids ---------- */
.sec { padding-top: clamp(40px, 6vw, 72px); }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.sec-head h2 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.2rem); font-weight: 800; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sec-head p { color: var(--ink-2); margin-top: 6px; font-size: .92rem; transition: opacity .8s .3s, transform .8s .3s var(--ease); }
.head-tools { display: flex; gap: 8px; align-items: center; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 4 * 14px) / 5); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 6px 2px 18px; margin: -6px -2px 0; scroll-behavior: smooth; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.pgrid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.crumbs { display: flex; gap: 6px; align-items: center; font-size: .84rem; color: var(--muted); flex-wrap: wrap; }
.crumbs a { color: var(--ink-2); font-weight: 700; }
.crumbs a:hover { color: var(--brand); }
.empty { grid-column: 1 / -1; text-align: center; padding: 60px 16px; color: var(--muted); }

/* ---------- 7. product card ---------- */
.card { background: var(--surface); color: var(--ink); border-radius: 22px; padding: 8px; display: flex; flex-direction: column; position: relative; transition: transform .45s var(--ease), box-shadow .45s var(--ease); box-shadow: var(--shadow); min-width: 0; transform-style: preserve-3d; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.media { position: relative; aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: var(--white); }
.media > a, .media > button { position: absolute; inset: 0; border: 0; padding: 0; background: none; width: 100%; display: block; }
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .media img { transform: scale(1.08); }
.media .ph-ico { width: 100%; height: 100%; display: grid; place-items: center; color: var(--muted); background: var(--surface-2); }
.media .ph-ico svg { width: 44px; }
.card .media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.45) 48%, transparent 62%); transform: translateX(-120%); pointer-events: none; }
.card:hover .media::after { transform: translateX(120%); transition: transform .9s var(--ease); }
.media .oos { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; background: color-mix(in srgb, var(--white) 66%, transparent); pointer-events: none; }
.media .oos span { background: #0B110E; color: var(--white); font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 6px 12px; border-radius: 99px; }
.ctl { position: absolute; right: 8px; bottom: 8px; z-index: 3; }
.add { height: 38px; min-width: 76px; padding-inline: 14px; border-radius: 12px; border: 1.5px solid var(--brand); background: var(--surface); color: var(--brand); font-weight: 800; font-size: .82rem; letter-spacing: .02em; box-shadow: 0 8px 18px -8px rgba(0,0,0,.35); transition: background .2s, color .2s, transform .3s var(--spring); position: relative; overflow: hidden; cursor: pointer; animation: addGlow 2.6s ease-in-out infinite; }
.add:hover { background: var(--brand); color: var(--on-brand); transform: translateY(-2px); }
.add:active { transform: scale(.9); }
.add:disabled { opacity: .6; cursor: progress; }
@keyframes addGlow { 0%, 100% { box-shadow: 0 8px 18px -8px rgba(0,0,0,.35); } 50% { box-shadow: 0 8px 18px -8px rgba(0,0,0,.35), 0 0 0 5px color-mix(in srgb, var(--brand) 18%, transparent); } }
.cbody { padding: 10px 6px 6px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.cname { font-weight: 700; font-size: .92rem; line-height: 1.3; color: var(--ink); text-align: left; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; margin-top: 3px; }
.cname:hover { color: var(--brand); }
.cmeta { font-size: .78rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cprice { display: flex; align-items: baseline; gap: 6px; margin-top: auto; padding-top: 6px; flex-wrap: wrap; }
.cprice b { font-family: var(--f-display); font-size: 1.12rem; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.cprice s { font-size: .78rem; color: var(--muted); }
.cprice .perkg { font-size: .72rem; color: var(--muted); font-weight: 600; margin-left: auto; font-variant-numeric: tabular-nums; }

/* ---------- 8. steppers ---------- */
.stepper { height: 38px; min-width: 92px; border-radius: 12px; background: var(--brand); color: var(--on-brand); display: inline-flex; align-items: center; justify-content: space-between; overflow: hidden; box-shadow: 0 8px 18px -8px rgba(22,96,212,.8); animation: stepIn .4s var(--spring); }
@keyframes stepIn { from { transform: scale(.7); opacity: 0; } }
.stepper button { border: 0; background: transparent; color: inherit; width: 32px; height: 100%; font-size: 1.15rem; font-weight: 800; position: relative; overflow: hidden; cursor: pointer; padding: 0; }
.stepper button:hover { background: rgba(255,255,255,.15); }
.stepper button:disabled { opacity: .5; cursor: progress; }
.stepper output { font-weight: 800; min-width: 1.4ch; text-align: center; font-variant-numeric: tabular-nums; }
.stepper output.tick { animation: tick .3s var(--ease); }
@keyframes tick { from { transform: translateY(-70%); opacity: 0; } }
.qty { display: inline-flex; align-items: center; background: var(--surface); border-radius: 14px; box-shadow: inset 0 0 0 1.5px var(--line); height: 54px; }
.qty button { width: 46px; height: 100%; border: 0; background: none; color: var(--ink); font-size: 1.3rem; font-weight: 800; cursor: pointer; }
.qty output { min-width: 2ch; text-align: center; font-weight: 800; font-size: 1.05rem; font-variant-numeric: tabular-nums; }

/* ---------- 9. forms: dropdown, toggle, fields, notes, option cards ---------- */
.dd { position: relative; display: inline-block; }
.dd > select.dd-native { position: absolute; inset: 0; opacity: 0; pointer-events: none; width: 100%; }
.dd-btn { height: 44px; min-width: 210px; width: 100%; border-radius: 13px; border: 0; background: var(--surface); color: var(--ink); padding: 0 12px 0 14px; font-weight: 700; font-size: .86rem; box-shadow: var(--shadow); display: flex; align-items: center; justify-content: space-between; gap: 10px; transition: box-shadow .2s; cursor: pointer; }
.dd-btn small { color: var(--muted); font-weight: 600; margin-right: 2px; font-size: inherit; }
.dd-btn svg { width: 16px; transition: transform .35s var(--ease); }
.dd.open .dd-btn { box-shadow: 0 0 0 2px var(--brand), var(--shadow); }
.dd.open .dd-btn svg { transform: rotate(180deg); }
.dd-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; min-width: 100%; list-style: none; margin: 0; padding: 6px; background: var(--surface); color: var(--ink); border-radius: 16px; box-shadow: var(--shadow-lg), 0 0 0 1px var(--line); transform-origin: top right; opacity: 0; transform: scale(.92) translateY(-6px); pointer-events: none; transition: opacity .25s var(--ease), transform .35s var(--spring); }
.dd.open .dd-menu { opacity: 1; transform: none; pointer-events: auto; }
.dd-menu:focus { outline: none; }
.dd-menu li { padding: 10px 12px; border-radius: 11px; font-weight: 700; font-size: .86rem; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; white-space: nowrap; transition: background .15s; }
.dd-menu li:hover, .dd-menu li.act { background: var(--surface-2); }
.dd-menu li[aria-selected="true"] { color: var(--brand); }
.dd-menu li[aria-selected="true"]::after { content: "✓"; font-weight: 800; }
.dd.open .dd-menu li { animation: ddItem .35s var(--ease) both; animation-delay: calc(var(--i, 0) * 35ms); }
@keyframes ddItem { from { opacity: 0; transform: translateX(-8px); } }
.toggle { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .86rem; cursor: pointer; background: var(--surface); color: var(--ink); padding: 0 14px; height: 44px; border-radius: 13px; box-shadow: var(--shadow); }
.toggle input { appearance: none; -webkit-appearance: none; width: 36px; height: 22px; border-radius: 99px; background: var(--line); border: 0; position: relative; margin: 0; cursor: pointer; transition: background .3s; flex-shrink: 0; }
.toggle input::after { content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%; background: var(--white); top: 3px; left: 3px; transition: transform .35s var(--spring); }
.toggle input:checked { background: var(--hot); }
.toggle input:checked::after { transform: translateX(14px); }
.field { display: grid; gap: 6px; }
.field > label, .field > .flbl { font-weight: 800; font-size: .8rem; color: var(--ink); }
.field input, .field select, .field textarea { width: 100%; min-height: 46px; border-radius: 13px; border: 0; box-shadow: inset 0 0 0 1.5px var(--line); background: var(--surface); color: var(--ink); padding: 10px 14px; font: inherit; font-size: .92rem; transition: box-shadow .2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--brand), 0 0 0 5px color-mix(in srgb, var(--brand) 14%, transparent); }
.field small { color: var(--muted); font-size: .74rem; }
.note { position: relative; }
.note textarea { width: 100%; min-height: 76px; resize: vertical; border-radius: 15px; border: 0; box-shadow: inset 0 0 0 1.5px var(--line); background: var(--surface); color: var(--ink); padding: 12px 14px; font: inherit; font-size: .9rem; transition: box-shadow .2s; }
.note textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--brand), 0 0 0 5px color-mix(in srgb, var(--brand) 14%, transparent); }
.note .cnt { position: absolute; right: 12px; bottom: 10px; font-size: .7rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.quick { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.quick button { border: 0; background: var(--surface-2); color: var(--ink-2); border-radius: 99px; padding: 6px 11px; font-size: .76rem; font-weight: 700; transition: background .2s, transform .25s var(--spring); cursor: pointer; }
.quick button:hover { background: var(--mint); color: var(--mint-ink); transform: translateY(-2px); }
.lbl { display: block; font-weight: 800; font-size: .9rem; margin: 20px 0 10px; }
.opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.opt { position: relative; border: 0; background: var(--surface); color: var(--ink); border-radius: 14px; padding: 12px 12px 12px 44px; text-align: left; box-shadow: inset 0 0 0 1.5px var(--line); transition: background .25s, box-shadow .25s; min-height: 56px; cursor: pointer; }
.opt::before { content: ""; position: absolute; left: 14px; top: 50%; translate: 0 -50%; width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--muted); transition: background .25s, box-shadow .25s, transform .35s var(--spring); }
.opt.on::before, .opt[aria-checked="true"]::before { background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat; box-shadow: none; transform: scale(1.08); }
.opt b { display: block; font-size: .9rem; }
.opt small { color: var(--muted); font-size: .75rem; }
.opt:hover { box-shadow: inset 0 0 0 1.5px var(--brand); }
.opt.on, .opt[aria-checked="true"] { background: color-mix(in srgb, var(--brand) 9%, var(--surface)); box-shadow: inset 0 0 0 2px var(--brand); }
.opt.on small, .opt[aria-checked="true"] small { color: var(--brand); }

/* ---------- 10. tabs, steps ---------- */
.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 16px; background: var(--surface-2); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs > a, .tabs > button { flex-shrink: 0; border: 0; background: none; color: var(--ink-2); font-weight: 700; font-size: .86rem; height: 38px; padding: 0 16px; border-radius: 12px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; cursor: pointer; transition: background .25s, color .25s, box-shadow .25s; }
.tabs > a:hover, .tabs > button:hover { color: var(--ink); }
.tabs > .on, .tabs > [aria-selected="true"], .tabs > [aria-current="page"] { background: var(--surface); color: var(--brand); box-shadow: var(--shadow); }
.steps { display: flex; gap: 6px; flex-wrap: wrap; }
.steps span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border-radius: 99px; background: var(--surface); box-shadow: var(--shadow); font-weight: 700; font-size: .82rem; }
.steps i { width: 24px; height: 24px; border-radius: 50%; background: var(--brand); color: var(--on-brand); display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: .78rem; flex-shrink: 0; }
.steps .done i { background: var(--veg); }

/* ---------- 11. toast ---------- */
.toast-stack { position: fixed; left: 50%; bottom: 24px; z-index: 90; translate: -50% 0; display: flex; flex-direction: column; align-items: center; gap: 8px; width: max-content; max-width: calc(100% - 32px); pointer-events: none; }
.toast { background: var(--ink); color: var(--bg); border-radius: 18px; padding: 8px 14px 8px 8px; display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: .88rem; box-shadow: var(--shadow-lg); max-width: 100%; pointer-events: auto; animation: toastIn .5s var(--spring) both; }
.toast.out { animation: toastOut .35s var(--ease) forwards; }
.toast > i { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; background: color-mix(in srgb, var(--bg) 14%, transparent); font-style: normal; margin-left: 2px; }
.toast > i svg { width: 16px; }
.toast.success > i { background: var(--veg); color: var(--white); }
.toast.error > i { background: var(--hot); color: var(--white); }
.toast.info > i { background: var(--brand); color: var(--on-brand); }
.toast img { width: 38px; height: 38px; border-radius: 11px; object-fit: cover; flex-shrink: 0; }
.toast span { min-width: 0; }
.toast button, .toast a.tbtn { border: 0; border-radius: 12px; background: var(--brand); color: var(--on-brand); font-weight: 800; height: 38px; padding: 0 14px; white-space: nowrap; margin-right: -6px; display: inline-flex; align-items: center; cursor: pointer; }
@keyframes toastIn { from { transform: translateY(calc(100% + 60px)); opacity: 0; } }
@keyframes toastOut { to { transform: translateY(20px) scale(.96); opacity: 0; } }

/* ---------- 12. drawer (cart) ---------- */
.scrim { position: fixed; inset: 0; z-index: 60; background: var(--scrim); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity .35s; }
.scrim.open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; z-index: 61; top: 10px; right: 10px; bottom: 10px; width: min(430px, calc(100% - 20px)); background: var(--bg); color: var(--ink); border-radius: 26px; display: flex; flex-direction: column; overflow: hidden; transform: translateX(calc(100% + 20px)); visibility: hidden; transition: transform .55s var(--ease), visibility 0s .55s; box-shadow: var(--shadow-lg); }
.drawer.open { transform: none; visibility: visible; transition: transform .55s var(--ease); }
.dr-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 18px 12px; flex-shrink: 0; }
.dr-head h2, .dr-head h3 { font-size: 1.4rem; font-weight: 800; }
.dr-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.dr-loading { flex: 1; display: grid; place-items: center; color: var(--muted); font-weight: 700; }
.dr-eta { margin: 0 18px; background: var(--surface); border-radius: 18px; padding: 14px; display: flex; gap: 12px; align-items: center; box-shadow: var(--shadow); flex-shrink: 0; }
.dr-eta i { width: 40px; height: 40px; border-radius: 12px; background: var(--mint); color: var(--mint-ink); display: grid; place-items: center; flex-shrink: 0; }
.dr-eta i svg { width: 22px; }
.dr-eta b { display: block; font-size: .95rem; color: var(--ink); }
.dr-eta span span { font-size: .78rem; color: var(--muted); }
.dr-free { margin: 10px 18px 0; font-size: .8rem; font-weight: 700; color: var(--ink-2); flex-shrink: 0; }
.dr-free .bar { height: 8px; border-radius: 8px; background: var(--surface-2); margin-top: 6px; overflow: hidden; }
.dr-free .bar i { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, var(--brand), var(--brand-pale)); transition: width .8s var(--ease); position: relative; overflow: hidden; }
.dr-free .bar i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.6), transparent); animation: shine 1.6s linear infinite; }
@keyframes shine { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.dr-list { flex: 1; min-height: 0; overflow-y: auto; padding: 8px 18px 14px; overscroll-behavior: contain; }
.dr-empty { text-align: center; padding: 40px 10px; color: var(--muted); }
.dr-empty .big { font-size: 4rem; line-height: 1; }
.dr-empty b { color: var(--ink); font-size: 1.05rem; display: block; margin-top: 10px; }
.dr-foot { padding: 14px 18px 18px; background: var(--surface); border-top: 1px solid var(--line); flex-shrink: 0; }
.dr-foot .btn { width: 100%; height: 56px; border-radius: 16px; }
.dr-foot .dr-more { display: block; text-align: center; margin-top: 10px; font-size: .82rem; font-weight: 700; color: var(--ink-2); }
.dr-foot .dr-more:hover { color: var(--brand); }
.dr-warn { font-size: .78rem; font-weight: 700; color: var(--hot); margin: -4px 0 10px; }
.line { display: grid; grid-template-columns: 60px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px; background: var(--surface); border-radius: 18px; margin-top: 8px; box-shadow: var(--shadow); }
.drawer.open .line.in { animation: lineIn .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms + 150ms); }
@keyframes lineIn { from { opacity: 0; transform: translateX(40px); } }
.line.out { animation: lineOut .35s var(--ease) forwards; }
@keyframes lineOut { to { opacity: 0; transform: translateX(60px); } }
.line > img, .line > .mixic { width: 60px; height: 60px; border-radius: 13px; object-fit: cover; background: var(--white); }
.line .mixic { background: linear-gradient(135deg, #DCEBFF, #FFEFC7); display: grid; place-items: center; font-size: 1.7rem; }
.line b { display: block; font-size: .88rem; line-height: 1.25; }
.line small { font-size: .74rem; color: var(--muted); }
.line .prep { font-size: .74rem; color: var(--ink-2); }
.line .prep p, .line .prep ul { margin: 2px 0 0; font-size: .74rem !important; line-height: 1.35 !important; color: var(--ink-2) !important; }
/* line details (cut, note, veg-mix components, bulk): storefront/includes/line_prep.html */
.lprep { display: grid; gap: 2px; margin-top: 3px; font-size: .76rem; line-height: 1.35; color: var(--ink-2); }
.lprep p, .lprep ul { margin: 0; }
.lprep-row { display: flex; align-items: center; gap: 5px; }
.lprep-row svg { width: 13px; height: 13px; color: var(--brand); flex-shrink: 0; }
.lprep-strong { font-weight: 800; color: var(--ink); }
.lprep-sub { padding-left: 18px; color: var(--muted); }
.lprep-save { padding-left: 18px; color: var(--veg); font-weight: 700; }
.lprep-mix { list-style: none; padding: 0; color: var(--muted); }
.lprep-mix li { display: inline; }
.lprep-mix li + li::before { content: ", "; }
.lprep-note { font-style: italic; color: var(--ink-2); overflow-wrap: anywhere; }
.lprep-bulk { padding: 6px 8px; border-radius: 10px; background: color-mix(in srgb, var(--brand) 8%, transparent); display: grid; gap: 2px; }
.line-rm { width: 36px; height: 36px; border-radius: 11px; border: 0; background: var(--surface-2); color: var(--ink-2); display: grid; place-items: center; transition: background .2s, color .2s; }
.line-rm:hover { background: var(--hot); color: #fff; }
.line-rm svg { width: 16px; height: 16px; }
.line .prep ul { padding: 0; list-style: none; color: var(--muted) !important; }
.line .lp { font-family: var(--f-display); font-weight: 700; margin-top: 2px; font-variant-numeric: tabular-nums; }
.line .stepper { height: 34px; min-width: 84px; box-shadow: none; animation: none; }
.line .stepper button { width: 28px; }
.cp { display: flex; gap: 8px; }
.cp input { flex: 1; min-width: 0; height: 46px; border-radius: 13px; border: 1.5px dashed var(--line); background: var(--bg); color: var(--ink); padding-inline: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; font-family: inherit; font-size: .9rem; }
.cp input::placeholder { letter-spacing: .02em; text-transform: none; color: var(--muted); font-weight: 600; }
.cp input:focus { outline: none; border-color: var(--brand); }
.cp button { height: 46px; border: 0; border-radius: 13px; padding-inline: 16px; font-weight: 800; background: var(--ink); color: var(--bg); position: relative; overflow: hidden; cursor: pointer; }
.cp-msg { font-size: .76rem; margin-top: 6px; font-weight: 700; color: var(--muted); }
.cp-msg.ok { color: var(--veg); } .cp-msg.err { color: var(--hot); }
.cp-applied { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-radius: 13px; padding: 10px 12px; background: color-mix(in srgb, var(--veg) 12%, var(--surface)); color: var(--ink); font-size: .84rem; font-weight: 700; }
.cp-applied b { letter-spacing: .1em; color: var(--veg); }
.cp-applied button { border: 0; background: none; color: var(--ink-2); font-weight: 800; font-size: .78rem; cursor: pointer; text-decoration: underline; }
.bill { display: grid; gap: 5px; margin: 14px 0; font-size: .88rem; }
.bill div { display: flex; justify-content: space-between; font-variant-numeric: tabular-nums; }
.bill .tot { font-family: var(--f-display); font-weight: 800; font-size: 1.15rem; border-top: 1px dashed var(--line); padding-top: 8px; margin-top: 4px; }
.bill .sv { color: var(--veg); font-weight: 700; }

/* ---------- 13. modal + popover (pincode, promo) ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 16px; background: var(--scrim); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.modal.flex, .modal.open { display: flex; animation: fadeIn .3s ease both; }
.modal-card { position: relative; width: 100%; max-width: 380px; background: var(--surface); color: var(--ink); border-radius: 24px; box-shadow: var(--shadow-lg), 0 0 0 1px var(--line); padding: 22px; animation: popDown .4s var(--spring) both; }
.modal-card h2, .modal-card h3 { font-family: var(--f-display); font-size: 1.25rem; font-weight: 800; letter-spacing: -.03em; }
.modal-card p { font-size: .84rem; color: var(--muted); margin-top: 4px; }
.modal-card .x { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 12px; }
.modal-card form { display: flex; gap: 8px; margin-top: 14px; }
.modal-card input[type="text"] { flex: 1; min-width: 0; height: 48px; border-radius: 13px; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); padding-inline: 14px; font-size: 1.05rem; font-weight: 700; letter-spacing: .12em; font-family: inherit; }
.modal-card input[type="text"]:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 5px color-mix(in srgb, var(--brand) 16%, transparent); }
.modal-card .btn { height: 48px; padding-inline: 18px; }
.modal-card .msg { margin-top: 8px; font-size: .82rem; font-weight: 700; color: var(--hot); }
.modal-card .modal-icon { width: 48px; height: 48px; border-radius: 15px; background: color-mix(in srgb, var(--hot) 12%, transparent); color: var(--hot); display: grid; place-items: center; margin-bottom: 12px; }
.modal-card .modal-icon svg { width: 24px; }
.pop { position: absolute; top: calc(100% + 8px); left: 0; width: 320px; max-width: calc(100vw - 32px); background: var(--surface); color: var(--ink); border-radius: 22px; box-shadow: var(--shadow-lg), 0 0 0 1px var(--line); padding: 18px; z-index: 50; transform-origin: top left; animation: popDown .35s var(--ease); }
@keyframes popDown { from { opacity: 0; transform: scale(.92) translateY(-6px); } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } }

/* promo popup: an offer ticket */
.promo-pop { position: fixed; inset: 0; z-index: 85; display: none; align-items: flex-end; justify-content: center; }
.promo-pop.flex { display: flex; }
.promo-pop .pp-scrim { position: absolute; inset: 0; background: var(--scrim); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: fadeIn .3s ease both; }
.promo-pop.is-leaving .pp-scrim { animation: fadeIn .25s ease reverse both; }
.pp-card { position: relative; width: 100%; max-width: 410px; background: var(--surface); color: var(--ink); border-radius: 28px 28px 0 0; overflow: hidden; box-shadow: var(--shadow-lg); animation: ppIn .55s var(--spring) both; }
.pp-card:focus { outline: none; }
.promo-pop.is-leaving .pp-card { animation: ppOut .25s ease-in both; }
@keyframes ppIn { from { opacity: 0; transform: translateY(40px) scale(.94); } }
@keyframes ppOut { to { opacity: 0; transform: translateY(24px) scale(.96); } }
.pp-top { position: relative; isolation: isolate; overflow: hidden; color: var(--white); padding: 24px 24px 30px; background: radial-gradient(120% 120% at 0% 0%, #3B8FFF 0%, #0B4FB8 48%, #061E52 100%); }
.pp-top::before { content: ""; position: absolute; width: 260px; height: 260px; left: -90px; top: -90px; border-radius: 50%; background: var(--brand-pale); filter: blur(50px); opacity: .5; z-index: -1; }
.pp-top::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.18) 50%, transparent 65%); transform: translateX(-120%); animation: ppShine 5s ease-in-out 1.5s infinite; pointer-events: none; }
@keyframes ppShine { 0%, 60% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
.pp-top .x { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 12px; border: 0; background: rgba(255,255,255,.16); color: var(--white); display: grid; place-items: center; cursor: pointer; z-index: 1; }
.pp-top .x:hover { background: rgba(255,255,255,.28); }
.pp-top .x svg { width: 18px; }
.pp-head { font-family: var(--f-display); font-weight: 800; font-size: clamp(2.6rem, 2rem + 3vw, 3.4rem); letter-spacing: -.05em; line-height: .95; color: var(--sun); margin-top: 14px; text-shadow: 0 4px 18px rgba(0,0,0,.18); animation: pctIn 1s var(--spring) .15s both; }
@keyframes pctIn { from { transform: scale(.3) rotate(-12deg); opacity: 0; } }
.pp-sub { font-size: 1rem; opacity: .9; margin-top: 8px; max-width: 30ch; }
.pp-conds { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.pp-conds span { font-size: .72rem; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: rgba(255,255,255,.15); }
.pp-perf { position: relative; height: 0; border-top: 2px dashed var(--line); margin-inline: 24px; }
.pp-perf::before, .pp-perf::after { content: ""; position: absolute; top: -16px; width: 32px; height: 32px; border-radius: 50%; background: var(--scrim); }
.pp-perf::before { left: -40px; } .pp-perf::after { right: -40px; }
.pp-bot { padding: 22px 24px calc(22px + env(safe-area-inset-bottom, 0px)); }
.pp-code { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-radius: 15px; border: 2px dashed color-mix(in srgb, var(--brand) 45%, transparent); background: var(--mint); color: var(--mint-ink); padding: 10px 14px; cursor: pointer; text-align: left; }
.pp-code small { display: block; font-size: .64rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
.pp-code b { display: block; font-family: var(--f-display); font-size: 1.35rem; letter-spacing: .16em; }
.pp-code > span:last-child { font-weight: 800; font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 6px; }
.pp-code svg { width: 16px; }
.pp-actions { display: flex; gap: 8px; margin-top: 14px; }
.pp-actions .btn { height: 50px; }
.pp-actions .btn-brand { flex: 1; }
.jf-copied { animation: bump .45s var(--spring); }

/* ---------- 14. header ---------- */
.hdr { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: var(--glass); backdrop-filter: saturate(1.8) blur(18px); -webkit-backdrop-filter: saturate(1.8) blur(18px); transition: box-shadow .3s; color: var(--ink); view-transition-name: site-header; }
.hdr.scrolled { box-shadow: 0 1px 0 var(--line), 0 10px 30px -20px rgba(0,0,0,.3); }
.hdr-row { display: flex; align-items: center; gap: 14px; height: var(--hdr-h); }
.logo { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.logo-img { width: 72px; height: 72px; border-radius: 50%; background: var(--white); padding: 2px; object-fit: contain; box-shadow: 0 0 0 3px var(--white), 0 0 0 5px var(--brand), 0 10px 24px -8px rgba(11,62,145,.7); transition: transform .8s var(--spring); flex-shrink: 0; }
.logo:hover .logo-img { transform: rotate(-360deg) scale(1.05); }
.logo-word { font-family: var(--f-display); font-weight: 800; font-size: 1.55rem; letter-spacing: -.05em; display: flex; flex-direction: column; line-height: 1; }
.logo-word small { font-family: var(--f-body); font-size: .58rem; letter-spacing: .28em; font-weight: 800; color: var(--brand); margin-top: 3px; text-transform: uppercase; }
.loc { --loc-accent: #12A150; display: flex; align-items: center; gap: 10px; height: 50px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink);
  padding: 0 12px 0 6px; border-radius: 16px; text-align: left; flex-shrink: 0; max-width: 270px; min-width: 0; cursor: pointer;
  transition: border-color .2s, background .2s, box-shadow .2s; }
:root[data-theme="dark"] .loc { --loc-accent: #5BE38A; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .loc { --loc-accent: #5BE38A; } }
[data-theme-scope="light"] .loc { --loc-accent: #12A150; }
.loc:hover { border-color: color-mix(in srgb, var(--loc-accent) 55%, var(--line)); background: color-mix(in srgb, var(--loc-accent) 6%, var(--surface)); }
.loc:focus-visible { outline: none; box-shadow: 0 0 0 5px color-mix(in srgb, var(--loc-accent) 20%, transparent); }
.loc-pin { width: 36px; height: 36px; border-radius: 11px; background: color-mix(in srgb, var(--loc-accent) 15%, transparent); color: var(--loc-accent); display: grid; place-items: center; flex-shrink: 0; }
.loc-pin svg { width: 18px; height: 18px; }
.loc-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.loc-txt small { display: flex; align-items: center; gap: 4px; font-size: .72rem; font-weight: 700; color: var(--loc-accent); white-space: nowrap; }
.loc-txt small svg { width: 12px; height: 12px; }
.loc-txt b { display: flex; align-items: baseline; gap: 6px; min-width: 0; margin-top: 2px; font-family: var(--f-display); font-size: .98rem; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; }
.loc-area { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.loc-code { font-family: var(--f-body); font-size: .78rem; font-weight: 600; color: var(--muted); letter-spacing: .02em; flex-shrink: 0; }
.loc-chev { width: 16px; height: 16px; color: var(--muted); flex-shrink: 0; margin-left: 2px; transition: transform .2s; }
.loc:hover .loc-chev { transform: translateY(1px); color: var(--ink-2); }
.search { flex: 1; min-width: 0; position: relative; margin: 0; }
.search input { width: 100%; height: 50px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); padding: 0 1rem 0 3rem; font: inherit; font-size: .92rem; transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none; }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search input::placeholder { color: var(--muted); }
.search input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 5px color-mix(in srgb, var(--brand) 16%, transparent); }
.search > svg { position: absolute; left: 1.05rem; top: 50%; translate: 0 -50%; width: 19px; color: var(--ink-2); pointer-events: none; }
.search .ph { position: absolute; left: 3rem; right: 1rem; top: 50%; translate: 0 -50%; font-size: .92rem; color: var(--muted); pointer-events: none; overflow: hidden; height: 1.5em; white-space: nowrap; text-overflow: ellipsis; display: none; }
.js .search .ph { display: block; }
.search .ph span { display: inline-block; animation: phIn .5s var(--ease); }
.search .ph b { color: var(--ink-2); font-weight: 600; }
@keyframes phIn { from { transform: translateY(100%); opacity: 0; } }
.theme-btn .moon { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: none; }
:root[data-theme="dark"] .theme-btn .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .theme-btn .sun { display: none; }
  :root:not([data-theme]) .theme-btn .moon { display: block; }
}
.login { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; color: var(--ink); font-weight: 700; padding: 0 12px; height: 48px; border-radius: 14px; flex-shrink: 0; transition: background .2s; }
.login:hover { background: var(--surface-2); }
.login svg { width: 20px; }
.cart-btn { height: 50px; border-radius: 16px; border: 0; background: var(--brand); color: var(--on-brand); display: flex; align-items: center; gap: 10px; padding: 0 16px 0 14px; font-weight: 800; flex-shrink: 0; box-shadow: var(--shadow-brand); transition: transform .3s var(--spring), background .2s; position: relative; overflow: hidden; }
.cart-btn:hover { background: var(--brand-deep); }
.cart-btn:active { transform: scale(.95); }
.cart-btn svg { width: 22px; }
.cart-btn .cb-txt { display: flex; flex-direction: column; line-height: 1.1; text-align: left; font-size: .82rem; }
.cart-btn .cb-txt small { font-weight: 600; opacity: .85; font-size: .72rem; }
.cart-btn .cb-txt small:empty { display: none; }

/* category rail under the header */
.crail { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-bottom: 10px; }
.crail::-webkit-scrollbar { display: none; }
.crail > a { flex-shrink: 0; display: flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 99px; font-weight: 700; font-size: .84rem; color: var(--ink-2); transition: background .25s, color .25s; white-space: nowrap; position: relative; overflow: hidden; }
.crail > a img, .crail > a > i { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; transition: transform .4s var(--spring); flex-shrink: 0; }
.crail > a > i { display: grid; place-items: center; font-style: normal; background: var(--mint); }
.crail > a:hover { background: var(--surface); color: var(--ink); }
.crail > a:hover img, .crail > a:hover > i { transform: scale(1.15) rotate(-8deg); }
.crail > a.on { background: color-mix(in srgb, var(--brand) 11%, var(--surface)); color: var(--brand); box-shadow: inset 0 -2.5px 0 var(--brand); border-radius: 12px 12px 6px 6px; }
.crail .deal { color: var(--hot); }
.crail .deal > i { background: color-mix(in srgb, var(--hot) 14%, transparent); }
.crail .deal svg { width: 16px; }
.crail .deal.on { color: var(--hot); background: color-mix(in srgb, var(--hot) 10%, var(--surface)); box-shadow: inset 0 -2.5px 0 var(--hot); }

/* ---------- 15. footer + sea scene ---------- */
.foot { margin-top: clamp(48px, 7vw, 88px); color: var(--white); position: relative; isolation: isolate; overflow: hidden; background: linear-gradient(180deg, var(--navy-1) 0%, var(--navy-2) 55%, var(--navy-3) 100%); padding-bottom: 26px; }
.foot-edge { position: relative; height: 54px; overflow: hidden; }
.foot-edge svg { position: absolute; top: 0; left: 0; width: 200%; height: 100%; aspect-ratio: auto; animation: waveX 22s linear infinite; }
.foot-edge path { fill: var(--bg); }
@keyframes waveX { to { transform: translateX(-50%); } }
/* un-ported (light) page above a dark footer: the wave keeps the page colour */
:root[data-theme="dark"] main[data-theme-scope="light"] ~ .foot .foot-edge path { fill: #F4F5F2; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) main[data-theme-scope="light"] ~ .foot .foot-edge path { fill: #F4F5F2; } }
.foot-in { padding-block: clamp(36px, 5vw, 64px) 0; position: relative; z-index: 1; }
.foot .logo-img { width: 104px; height: 104px; box-shadow: 0 0 0 4px var(--white), 0 0 0 7px var(--sun), 0 18px 40px -10px rgba(0,0,0,.6); }
.foot .logo-word { color: var(--white); }
.foot .logo-word small { color: var(--sun); }
.foot-blurb { opacity: .85; margin-top: 16px; max-width: 36ch; font-size: .92rem; }
.fgrid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 28px; }
.foot h2 { margin: 0 0 14px; font-family: var(--f-body); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--sun); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot li a { opacity: .8; font-size: .9rem; transition: opacity .2s; }
.foot li a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.app-row { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.app-row span { border: 1.5px solid rgba(255,255,255,.3); background: rgba(255,255,255,.06); backdrop-filter: blur(4px); border-radius: 12px; padding: 8px 14px; font-size: .78rem; font-weight: 700; }
.app-row span small { display: block; font-size: .62rem; opacity: .6; font-weight: 600; }
.social-row { display: flex; gap: 8px; margin-top: 16px; }
.social-row a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.08); transition: background .2s; }
.social-row a:hover { background: rgba(255,255,255,.18); }
.social-row svg { width: 18px; }
.fbot { margin-top: 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.18); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .8rem; }
.fbot > span { opacity: .6; }
.fbot nav { display: flex; gap: 14px; flex-wrap: wrap; }
.fbot nav a { opacity: .6; } .fbot nav a:hover { opacity: 1; }
.foot-theme { border: 0; background: rgba(255,255,255,.08); color: var(--white); height: 34px; padding: 0 12px; border-radius: 10px; font: inherit; font-size: .78rem; font-weight: 700; display: none; align-items: center; gap: 6px; cursor: pointer; }
.foot-theme svg { width: 16px; }
.foot-theme:hover { background: rgba(255,255,255,.18); }
/* the sea sits in its own full-bleed band between the links and the small print */
.foot-sea { display: block; position: relative; width: 100%; height: clamp(130px, 13vw, 230px); aspect-ratio: auto; margin-top: clamp(16px, 2vw, 28px); pointer-events: none;
  -webkit-mask: linear-gradient(transparent, #000 5%, #000 88%, transparent); mask: linear-gradient(transparent, #000 5%, #000 88%, transparent); }
.fs-stars circle { animation: fsTwinkle 4s ease-in-out infinite; opacity: .55; }
@keyframes fsTwinkle { 50% { opacity: .08; } }
.fs-shoot { opacity: 0; animation: fsShoot 11s linear infinite 3s; }
@keyframes fsShoot { 0% { opacity: 0; transform: translate(260px, 20px); } 2% { opacity: .9; } 7% { opacity: 0; transform: translate(560px, 90px); } 100% { opacity: 0; transform: translate(560px, 90px); } }
/* 48s loop: sunset over the sea, dusk, moonrise, night, dawn */
.fs-sun { animation: fsSun 48s ease-in-out infinite; }
.fs-dusk { animation: fsDusk 48s ease-in-out infinite; }
.fs-moon { opacity: 0; animation: fsMoon 48s ease-in-out infinite; }
.fs-night { opacity: 0; animation: fsNight 48s ease-in-out infinite; }
.fs-lamp { opacity: .15; animation: fsLamp 48s ease-in-out infinite; }
@keyframes fsSun { 0%, 6% { transform: none; opacity: 1; } 30% { transform: translateY(80px); opacity: .6; } 34%, 86% { transform: translateY(90px); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes fsDusk { 0%, 8% { opacity: 1; } 36%, 84% { opacity: 0; } 100% { opacity: 1; } }
@keyframes fsNight { 0%, 10% { opacity: 0; } 38%, 82% { opacity: .6; } 100% { opacity: 0; } }
@keyframes fsMoon { 0%, 32% { opacity: 0; transform: translateY(60px); } 50% { opacity: 1; transform: none; } 78% { opacity: 1; transform: translateY(-10px); } 90%, 100% { opacity: 0; transform: translateY(-16px); } }
@keyframes fsLamp { 0%, 20% { opacity: .15; } 38%, 82% { opacity: 1; } 96%, 100% { opacity: .15; } }
.fs-glint line { animation: fsGlint 2.6s ease-in-out infinite; }
@keyframes fsGlint { 50% { opacity: .1; } }
.fs-wave { animation: fsDrift var(--t) linear infinite; }
@keyframes fsDrift { to { transform: translateX(-1600px); } }
.fs-boat { animation: fsCross 80s ease-in-out infinite alternate; }
@keyframes fsCross { from { transform: translateX(0); } to { transform: translateX(900px); } }
.fs-bob { transform-box: fill-box; transform-origin: 50% 80%; animation: fsBob 3.4s ease-in-out infinite; }
@keyframes fsBob { 0%, 100% { transform: translateY(0) rotate(-2.5deg); } 50% { transform: translateY(5px) rotate(2.5deg); } }
.fs-cast { transform-box: fill-box; transform-origin: 0% 100%; animation: fsCast 9s ease-in-out infinite; }
@keyframes fsCast { 0%, 55% { transform: rotate(-40deg); } 62% { transform: rotate(18deg); } 90%, 100% { transform: rotate(-40deg); } }
.fs-net-throw { opacity: 0; transform-box: fill-box; transform-origin: 0% 50%; animation: fsThrow 9s ease-out infinite; }
@keyframes fsThrow { 0%, 60% { opacity: 0; transform: scale(.2); } 66% { opacity: .9; transform: scale(1); } 80% { opacity: .5; transform: scale(1.05) translateY(6px); } 88%, 100% { opacity: 0; transform: scale(1.05) translateY(10px); } }
.fs-crown { animation: fsSway 6s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: 50% 60%; }
@keyframes fsSway { from { rotate: -3deg; } to { rotate: 3deg; } }
.fs-gulls { animation: fsGullFly 30s linear infinite, fsDusk 48s ease-in-out infinite; }
@keyframes fsGullFly { from { transform: translateX(-120px); } to { transform: translateX(1720px); } }
.fs-gulls path { animation: fsFlap .7s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
@keyframes fsFlap { to { transform: scaleY(.35); } }

/* ---------- 16. bottom nav (mobile) + sticky cart bar ---------- */
.bnav { display: none; }
.cart-bar { display: none; }

/* ---------- 17. motion layer ---------- */
/* scroll progress */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 50; background: linear-gradient(90deg, var(--brand-bright), var(--sun), var(--hot)); transform-origin: left; transform: scaleX(0); pointer-events: none; }
/* intro curtain (first visit per session) */
.intro { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: radial-gradient(circle at 50% 45%, #2F86FF, #0B3E91 70%); pointer-events: none; animation: introOut .8s cubic-bezier(.7,0,.2,1) 1.15s forwards; }
.intro-in { display: flex; align-items: center; gap: 14px; }
.intro-logo { width: 96px; height: 96px; border-radius: 50%; background: var(--white); box-shadow: 0 20px 50px -10px rgba(0,0,0,.45); animation: introLogo 1.1s var(--spring) both; }
.intro .iw { font-family: var(--f-display); font-weight: 800; font-size: 2.6rem; letter-spacing: -.05em; color: var(--white); overflow: hidden; display: flex; line-height: 1.1; }
.intro .iw span { display: inline-block; animation: introChar .7s var(--ease) both; animation-delay: calc(.35s + var(--i) * 40ms); }
.intro .isub { display: block; color: var(--sun); font-weight: 800; letter-spacing: .4em; font-size: .8rem; margin-top: 4px; text-transform: uppercase; animation: fadeUp .6s var(--ease) .7s both; }
@keyframes introLogo { from { transform: scale(0) rotate(-120deg); } }
@keyframes introChar { from { transform: translateY(110%); } }
@keyframes introOut { from { clip-path: circle(120% at 50% 50%); } to { clip-path: circle(0% at 50% 50%); visibility: hidden; } }
/* entrance sequence: only on the visit that plays the intro */
.sfc-entrance .hdr-row > * { animation: dropIn .8s var(--ease) both; animation-delay: calc(var(--intro, 0s) + var(--i, 0) * 70ms); }
.sfc-entrance .crail > a { animation: chipIn .7s var(--spring) both; animation-delay: calc(var(--intro, 0s) + .25s + var(--i, 0) * 50ms); }
@keyframes dropIn { from { opacity: 0; transform: translateY(-24px); } }
@keyframes chipIn { from { opacity: 0; transform: translateY(14px) scale(.8); } }
/* reveal: visible at rest; JS arms only below-the-fold items */
.rv.rv-armed { opacity: 0; transform: translateY(70px) scale(.94); filter: blur(8px); }
.rv.rv-armed.rv-left { transform: translateX(120px) rotate(2deg); }
.rv.rv-armed.rv-zoom { transform: scale(.7) rotate(-4deg); }
.rv.rv-in { transition: opacity .9s var(--ease), transform 1.1s var(--ease), filter .9s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.sw { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .1em; margin-bottom: -.1em; }
.sw > span { display: inline-block; }
.rv-armed .sw > span { transform: translateY(110%) rotate(6deg); }
.rv-in .sw > span { transition: transform .9s var(--ease); transition-delay: calc(var(--w) * 70ms + .1s); }
.rv-armed .sec-head p, .sec-head.rv-armed p { opacity: 0; transform: translateY(14px); }
/* tilt + spotlight */
[data-tilt] { transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.spot { position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit; background: radial-gradient(400px circle at var(--sx, 50%) var(--sy, 50%), rgba(255,255,255,.18), transparent 45%); opacity: 0; transition: opacity .3s; }
[data-tilt]:hover .spot { opacity: 1; }
/* ripple, +1, fly-to-cart */
.rp { position: absolute; border-radius: 50%; background: currentColor; opacity: .25; transform: scale(0); animation: ripple .6s var(--ease) forwards; pointer-events: none; }
@keyframes ripple { to { transform: scale(1); opacity: 0; } }
.plus1 { position: fixed; z-index: 101; pointer-events: none; font-family: var(--f-display); font-weight: 800; color: var(--brand); font-size: 1.1rem; animation: plus1 .9s var(--ease) forwards; }
@keyframes plus1 { from { transform: translate(-50%, 0) scale(.6); opacity: 1; } to { transform: translate(-50%, -60px) scale(1.2); opacity: 0; } }
.flyer { position: fixed; z-index: 100; border-radius: 50%; overflow: hidden; pointer-events: none; box-shadow: 0 10px 30px rgba(0,0,0,.3); border: 3px solid var(--white); }
.flyer img { width: 100%; height: 100%; object-fit: cover; }
/* offer marquee */
.mq { overflow: hidden; border-radius: 18px; background: linear-gradient(90deg, var(--navy-1), var(--brand-deep)); color: var(--white); padding-block: 14px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.mq-track { display: flex; width: max-content; animation: marquee 34s linear infinite; }
.mq:hover .mq-track { animation-play-state: paused; }
.mq-track > span { display: inline-flex; align-items: center; gap: 12px; padding-right: 40px; font-weight: 700; font-size: .95rem; white-space: nowrap; }
.mq-track > span b { color: var(--sun); font-family: var(--f-display); }
.mq-track > span svg { width: 16px; color: var(--brand-pale); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* page cross-fade (Chromium); the header stays put */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 180ms ease-out both vtOut; }
::view-transition-new(root) { animation: 260ms var(--ease) both vtIn; }
@keyframes vtOut { to { opacity: 0; } }
@keyframes vtIn { from { opacity: 0; transform: translateY(8px); } }

/* ---------- 18. responsive ---------- */
@media (min-width: 1600px) {
  .rail { grid-auto-columns: calc((100% - 5 * 14px) / 6); }
  .pgrid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (min-width: 2000px) {
  .rail { grid-auto-columns: calc((100% - 6 * 14px) / 7); }
  .pgrid { grid-template-columns: repeat(7, minmax(0, 1fr)); }
}
@media (max-width: 1200px) {
  .rail { grid-auto-columns: calc((100% - 3 * 14px) / 4); }
  .pgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .login span { display: none; }
  .login { width: 48px; padding: 0; justify-content: center; }
}
@media (max-width: 960px) {
  .rail { grid-auto-columns: calc((100% - 2 * 14px) / 3); }
  .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fgrid { grid-template-columns: 1fr 1fr; }
  .hdr-row { flex-wrap: wrap; height: auto; padding-block: 10px; row-gap: 8px; }
  .search { order: 5; flex-basis: 100%; }
  .loc { margin-right: auto; }
  .opts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
  body { padding-bottom: calc(90px + env(safe-area-inset-bottom, 0px)); }
  .hdr-row { gap: 8px; }
  .cart-btn, .login.desk { display: none; }
  .hdr-row { flex-wrap: wrap; padding-block: 8px 6px; row-gap: 8px; }
  .hdr .logo-word { display: none; }       /* phones: round logo only, so the delivery pill fits beside it */
  .hdr .logo-img { width: 46px; height: 46px; box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--brand); }
  .loc { flex: 1; height: 46px; padding: 0 10px 0 5px; max-width: none; margin-right: 0; }
  .loc-pin { width: 34px; height: 34px; }
  .hdr { transition: transform .32s var(--ease), box-shadow .3s; will-change: transform; }
  .hdr.rail-away { transform: translateY(calc(-100% - 4px)); box-shadow: none; }   /* phones: header slides away on scroll down, back on scroll up */
  .loc-txt b { font-size: .88rem; }
  .loc-txt small { font-size: .66rem; }
  .hdr .theme-btn { display: none; }   /* phones: theme toggle lives in the footer */
  .best { top: 8px; bottom: auto; left: 8px; font-size: .58rem; padding: 3px 6px; }
  .media:has(.ribbon) .best { left: 50px; }
  .search input { height: 46px; }
  .crail { padding-bottom: 8px; }
  .rail { grid-auto-columns: 46%; gap: 10px; }
  .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .fgrid { grid-template-columns: 1fr; }
  .head-tools .arrow { display: none; }
  .dd-btn { min-width: 0; }
  .toast-stack { bottom: calc(90px + env(safe-area-inset-bottom, 0px)); }
  .drawer { top: auto; height: min(88dvh, 760px); right: 8px; left: 8px; bottom: 8px; width: auto; transform: translateY(calc(100% + 20px)); }
  .pp-card { border-radius: 28px 28px 0 0; }
  .card { border-radius: 18px; padding: 6px; }
  .media { border-radius: 13px; }
  .add { min-width: 64px; height: 34px; padding-inline: 10px; }
  .stepper { height: 34px; min-width: 84px; }
  .stepper button { width: 28px; }
  .bnav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; z-index: 36;
    left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); height: 66px; padding: 0 4px;
    background: var(--surface); border-radius: 22px; border: 1px solid var(--line);
    box-shadow: 0 10px 30px -6px rgba(6, 20, 46, .28), 0 2px 6px rgba(6, 20, 46, .08); }
  .bnav > a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; position: relative;
    font-size: .7rem; font-weight: 700; letter-spacing: -.01em; color: var(--ink-2); -webkit-tap-highlight-color: transparent; }
  .bnav > a svg { width: 23px; height: 23px; padding: 0; box-sizing: content-box; border-radius: 99px; transition: background .25s, color .25s, padding .25s; }
  .bnav > a.on { color: var(--brand); }
  .bnav > a.on svg { background: color-mix(in srgb, var(--brand) 14%, transparent); padding: 4px 16px; margin-block: -4px; }
  .bnav > a:active svg { transform: scale(.92); }
  .bnav .count { position: absolute; top: 6px; left: calc(50% + 8px); min-width: 19px; height: 19px; font-size: .64rem; box-shadow: 0 0 0 2px var(--surface); }
  .bnav .bn-ico { position: relative; display: grid; place-items: center; }
  .bnav .bnav-cart .count { top: -7px; left: auto; right: -10px; }
  .bnav .bn-total { display: none; }
  /* Cart with items: the tab becomes a filled button with the running total (replaces the old "View cart" bar). */
  .bnav > a.bnav-cart.has-items { margin: 7px 3px; border-radius: 16px; background: var(--brand); color: var(--on-brand); gap: 2px;
    box-shadow: 0 6px 16px -4px color-mix(in srgb, var(--brand) 60%, transparent); }
  .bnav > a.bnav-cart.has-items svg { background: none; padding: 0; margin: 0; width: 21px; height: 21px; }
  .bnav > a.bnav-cart.has-items .bn-lbl { display: none; }
  .bnav > a.bnav-cart.has-items .bn-total { display: block; font-family: var(--f-display); font-size: .82rem; font-weight: 800; letter-spacing: -.02em; }
  .bnav > a.bnav-cart.has-items .count { background: var(--on-brand); color: var(--brand); box-shadow: 0 0 0 2px var(--brand); }
  .cart-bar, .cart-bar:not(.hidden) { display: none; }   /* phones: the bottom-nav Cart button shows the total instead */
  .cart-bar { position: fixed; left: 12px; right: 12px; bottom: calc(86px + env(safe-area-inset-bottom, 0px)); z-index: 35; display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--ink); color: var(--bg); border-radius: 18px; padding: 8px 8px 8px 10px; box-shadow: var(--shadow-lg); animation: fadeUp .5s var(--spring) both; }
  .cart-bar.hidden { display: none; }
  .cart-bar .cbr-l { display: flex; align-items: center; gap: 10px; min-width: 0; }
  .cart-bar .cbr-l > i { width: 38px; height: 38px; border-radius: 11px; background: color-mix(in srgb, var(--bg) 14%, transparent); display: grid; place-items: center; }
  .cart-bar .cbr-l svg { width: 20px; }
  .cart-bar .cbr-l span { display: flex; flex-direction: column; line-height: 1.15; font-size: .74rem; opacity: .85; font-weight: 600; }
  .cart-bar .cbr-l b { font-family: var(--f-display); font-size: 1rem; opacity: 1; letter-spacing: -.02em; }
  .cart-bar .cbr-go { height: 40px; border-radius: 12px; background: var(--brand); color: var(--on-brand); font-weight: 800; font-size: .84rem; padding: 0 14px; display: inline-flex; align-items: center; gap: 6px; }
  .cart-bar .cbr-go svg { width: 16px; }
  .foot-sea { height: 130px; }
  .foot-theme { display: inline-flex; }
}
@media (min-width: 640px) {
  .promo-pop { align-items: center; padding: 16px; }
  .pp-card { border-radius: 28px; }
}

/* ---------- 19. reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .rv.rv-armed { opacity: 1; transform: none; filter: none; }
  .intro { display: none; }
  .foot-sea * { animation: none !important; }
  .fs-moon, .fs-night, .fs-net-throw { opacity: 0 !important; }
  @view-transition { navigation: none; }
}

/* ---------- 20. small shared blocks ---------- */
/* freshness promises (includes/trust_strip.html); .trust is the 4-up home version */
.trust-strip, .trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.trust { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.trust-strip > div, .trust > div { background: var(--surface); color: var(--ink); border-radius: 18px; padding: 14px; display: flex; gap: 12px; align-items: center; box-shadow: var(--shadow); transition: transform .4s var(--ease); min-width: 0; }
.trust > div { border-radius: 20px; padding: 20px; gap: 14px; }
.trust-strip > div:hover, .trust > div:hover { transform: translateY(-4px); }
.trust-strip i, .trust i { width: 42px; height: 42px; border-radius: 13px; background: var(--mint); color: var(--mint-ink); display: grid; place-items: center; flex-shrink: 0; }
.trust i { width: 48px; height: 48px; border-radius: 15px; }
.trust-strip i svg { width: 21px; } .trust i svg { width: 24px; }
.trust-strip b, .trust b { display: block; font-size: .88rem; line-height: 1.25; }
.trust b { font-size: .95rem; }
.trust-strip span span, .trust span span { font-size: .76rem; color: var(--muted); }
.modal-card .msg.hidden { display: none; }
@media (max-width: 960px) { .trust { grid-template-columns: 1fr 1fr; } }
@media (max-width: 767px) {
  .trust-strip { gap: 6px; }
  .trust-strip > div { flex-direction: column; text-align: center; padding: 12px 6px; gap: 6px; }
  .trust-strip span span { display: none; }
  .trust-strip b { font-size: .76rem; }
  .trust { grid-template-columns: 1fr; }
}
.pin-banner { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px; border-radius: 18px; background: var(--mint); color: var(--ink); }
.pin-banner > i { width: 40px; height: 40px; border-radius: 12px; background: var(--surface); color: var(--brand); display: grid; place-items: center; flex-shrink: 0; }
.pin-banner > i svg { width: 22px; }
.pin-banner > div { flex: 1; min-width: 0; }
.pin-banner b { display: block; font-size: .9rem; }
.pin-banner > div > span { font-size: .8rem; color: var(--ink-2); }
/* un-ported pages: the light island runs down to the footer wave */
main[data-theme-scope="light"] { padding-bottom: clamp(48px, 7vw, 88px); }
main[data-theme-scope="light"] ~ .foot { margin-top: 0; }

/* ---------- Delivery check modal (.dm) ----------
   Two-column card: illustration left, pincode form right, perks strip below.
   Green accent is local to this modal (the delivery / "go" colour). */
.modal-card.dm {
  --dm-accent: #12A150; --dm-accent-ink: #FFFFFF; --dm-err: #E5372B;
  max-width: 900px; padding: 0; overflow: hidden; border-radius: 28px;
  background: radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--dm-accent) 10%, var(--surface)) 0%, var(--surface) 55%);
}
:root[data-theme="dark"] .modal-card.dm { --dm-accent: #5BE38A; --dm-accent-ink: #062A14; --dm-err: #FF5A4E; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .modal-card.dm { --dm-accent: #5BE38A; --dm-accent-ink: #062A14; --dm-err: #FF5A4E; } }
[data-theme-scope="light"] .modal-card.dm { --dm-accent: #12A150; --dm-accent-ink: #FFFFFF; --dm-err: #E5372B; }

.dm-x { position: absolute; top: 18px; right: 18px; z-index: 3; width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--ink) 8%, transparent); color: var(--ink); border: 0; cursor: pointer; transition: background .2s; }
.dm-x:hover { background: color-mix(in srgb, var(--ink) 14%, transparent); }
.dm-x svg { width: 20px; height: 20px; }

.dm-body { display: grid; grid-template-columns: 44% minmax(0, 1fr); align-items: center; }
.dm-art { position: relative; align-self: stretch; display: flex; align-items: center; justify-content: center; padding: 28px 8px 8px 20px; min-height: 340px; }
.dm-art img { width: 100%; max-width: 400px; height: auto; filter: drop-shadow(0 18px 30px rgba(0,0,0,.18)); animation: dmFloat 5s ease-in-out infinite; }
.dm-bubble { position: absolute; top: 34px; left: 40px; display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 16px;
  background: #FFFFFF; color: #0B4D2A; font-size: .82rem; line-height: 1.15; font-weight: 700; transform: rotate(-7deg);
  box-shadow: 0 10px 24px rgba(0,0,0,.18); }
.dm-bubble::after { content: ""; position: absolute; left: 34px; bottom: -8px; border: 8px solid transparent; border-top-color: #FFFFFF; border-bottom: 0; }
.dm-bubble svg { width: 22px; height: 22px; color: #12A150; flex-shrink: 0; }
.dm-bubble b { color: #0B110E; font-weight: 800; }

.dm-main { padding: 44px 40px 28px 16px; }
.modal-card .dm-eyebrow { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 10px; color: var(--dm-accent); font-weight: 700; font-size: .9rem; }
.dm-eyebrow svg { width: 18px; height: 18px; }
.modal-card.dm h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.08; letter-spacing: -.035em; padding-right: 40px; }
.modal-card.dm h2 em { font-style: normal; color: var(--dm-accent); }
.modal-card .dm-lede { margin-top: 14px; font-size: 1rem; line-height: 1.55; color: var(--ink-2); max-width: 420px; }

.modal-card form.dm-form { display: flex; gap: 10px; margin-top: 24px; }
.dm-field { flex: 1; min-width: 0; display: flex; align-items: center; gap: 4px; height: 60px; padding: 0 8px; border-radius: 16px;
  border: 1.5px solid color-mix(in srgb, var(--ink) 22%, transparent); background: color-mix(in srgb, var(--surface) 70%, var(--bg)); transition: border-color .2s, box-shadow .2s; }
.dm-field:focus-within { border-color: var(--dm-accent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--dm-accent) 18%, transparent); }
.dm-field-icon { width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--ink) 8%, transparent); color: var(--ink-2); }
.dm-field-icon svg { width: 20px; height: 20px; }
.modal-card .dm-field input[type="text"] { flex: 1; height: 100%; border: 0; background: transparent; box-shadow: none; padding-inline: 8px; font-size: 1.05rem; font-weight: 600; letter-spacing: .02em; }
.modal-card .dm-field input[type="text"]:focus { box-shadow: none; }
.modal-card .dm-field input::placeholder { color: var(--muted); font-weight: 500; letter-spacing: 0; }
.dm-go { height: 60px; padding: 0 22px; border-radius: 16px; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 10px;
  background: var(--dm-accent); color: var(--dm-accent-ink); font-weight: 800; font-size: 1.02rem; font-family: inherit;
  box-shadow: 0 10px 24px color-mix(in srgb, var(--dm-accent) 30%, transparent); transition: filter .2s, transform .15s; }
.dm-go:hover { filter: brightness(1.06); }
.dm-go:active { transform: scale(.98); }
.dm-go:disabled { opacity: .7; cursor: progress; }
.dm-go svg { width: 18px; height: 18px; }

.dm-err { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; }
.dm-err.hidden { display: none; }
.dm-err > svg { width: 22px; height: 22px; padding: 3px; border: 2px solid currentColor; border-radius: 999px; color: var(--dm-err); flex-shrink: 0; margin-top: 0; }
.dm-err b { display: block; color: var(--dm-err); font-weight: 700; font-size: .95rem; }
.dm-err span { display: block; color: var(--ink-2); font-size: .86rem; margin-top: 3px; }

.dm-perks { list-style: none; margin: 0 28px; padding: 22px 0 24px; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); }
.dm-perks li { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 0 12px; }
.dm-perks li + li { border-left: 1px solid var(--line); }
.dm-perks svg { width: 34px; height: 34px; color: var(--dm-accent); flex-shrink: 0; }
.dm-perks span { font-size: .84rem; color: var(--ink-2); line-height: 1.35; }
.dm-perks b { display: block; color: var(--ink); font-size: .92rem; }

@keyframes dmFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .dm-art img { animation: none; } }

@media (max-width: 760px) {
  .modal-card.dm { border-radius: 24px; max-height: calc(100dvh - 24px); overflow-y: auto; }
  .dm-body { grid-template-columns: minmax(0, 1fr); }
  .dm-go { padding: 0 14px; gap: 6px; }
  .dm-field { padding: 0 6px; }
  .dm-field-icon { width: 36px; height: 36px; }
  .dm-art { min-height: 0; padding: 22px 40px 0; }
  .dm-art img { max-width: 250px; }
  .dm-bubble { top: 20px; left: 18px; font-size: .74rem; }
  .dm-main { padding: 10px 20px 18px; }
  .modal-card.dm h2 { padding-right: 0; }
  .modal-card .dm-lede { font-size: .92rem; margin-top: 10px; }
  .modal-card form.dm-form { margin-top: 18px; }
  .dm-field, .dm-go { height: 54px; }
  .dm-go { padding: 0 16px; }
  .dm-perks { margin: 0 16px; padding: 14px 0 16px; grid-template-columns: repeat(3, 1fr); }
  .dm-perks li { flex-direction: column; text-align: center; gap: 6px; padding: 0 6px; }
  .dm-perks svg { width: 26px; height: 26px; }
  .dm-perks span { font-size: .74rem; }
  .dm-perks b { font-size: .8rem; }
}

/* ---------- PWA: offline page + install prompt ---------- */
.pwa-install { position: fixed; left: 12px; right: 12px; bottom: calc(86px + env(safe-area-inset-bottom, 0px)); z-index: 60;
  display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px; border-radius: 18px;
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg), 0 0 0 1px var(--line); animation: popDown .45s var(--spring) both; }
.pwa-install[hidden] { display: none; }
.pwa-install img { width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0; }
.pwa-install-txt { flex: 1; min-width: 0; line-height: 1.3; }
.pwa-install-txt b { display: block; font-size: .95rem; }
.pwa-install-txt span { display: block; font-size: .8rem; color: var(--ink-2); }
.pwa-install .btn { height: 40px; padding-inline: 16px; flex-shrink: 0; }
.pwa-install-x { width: 32px; height: 32px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; flex-shrink: 0; }
.pwa-install-x svg { width: 16px; height: 16px; }
@media (min-width: 768px) { .pwa-install { left: auto; right: 24px; bottom: 24px; width: 380px; } }

/* ---------- Quick options sheet (product-card ADD for items with cut / weight / size) ---------- */
.modal-card.qo-card { --qo-accent: var(--brand); max-width: 460px; padding: 24px 22px 20px; border-radius: 26px; max-height: calc(100dvh - 32px); overflow-y: auto; }
.qo-x { top: 14px; right: 14px; width: 38px; height: 38px; }
.modal-card .qo-eyebrow { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 6px; font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--qo-accent); }
.qo-eyebrow svg { width: 15px; height: 15px; }
.modal-card.qo-card h2 { font-size: 1.4rem; padding-right: 44px; }
.qo-group { border: 0; margin: 18px 0 0; padding: 0; min-width: 0; }
.qo-group legend, .qo-note > span { display: block; margin-bottom: 8px; font-size: .86rem; font-weight: 800; color: var(--ink); }
.qo-note small { font-weight: 600; color: var(--muted); }
.qo-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.qo-cuts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.qo-chip { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; min-height: 42px; padding: 9px 12px; border-radius: 14px;
  border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: .9rem; font-weight: 700; cursor: pointer;
  transition: border-color .15s, background .15s, box-shadow .15s; }
.qo-chip small { font-size: .72rem; font-weight: 600; color: var(--muted); line-height: 1.3; }
.qo-chip:hover { border-color: color-mix(in srgb, var(--qo-accent) 50%, var(--line)); }
.qo-chip.on { border-color: var(--qo-accent); background: color-mix(in srgb, var(--qo-accent) 10%, var(--surface)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--qo-accent) 16%, transparent); }
.qo-chip.on small { color: var(--ink-2); }
.qo-note textarea { width: 100%; resize: vertical; min-height: 60px; padding: 10px 12px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; font-size: .9rem; }
.qo-note textarea:focus { outline: none; border-color: var(--qo-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--qo-accent) 16%, transparent); }
.qo-foot { position: sticky; bottom: -20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 20px -22px -20px; padding: 14px 22px 18px;
  background: var(--surface); border-top: 1px solid var(--line); }
.qo-total { display: flex; flex-direction: column; line-height: 1.1; }
.qo-total small { font-size: .74rem; color: var(--muted); font-weight: 600; }
.qo-total b { font-family: var(--f-display); font-size: 1.5rem; letter-spacing: -.03em; }
.qo-go { height: 50px; padding: 0 22px; border: 0; border-radius: 15px; background: var(--brand); color: var(--on-brand); font: inherit; font-weight: 800; font-size: .98rem;
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer; box-shadow: 0 10px 22px -8px color-mix(in srgb, var(--brand) 70%, transparent); }
.qo-go svg { width: 17px; height: 17px; }
@media (max-width: 767px) {
  .modal.qo { align-items: flex-end; padding: 0; }
  .modal-card.qo-card { max-width: none; border-radius: 26px 26px 0 0; padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px)); animation: qoUp .35s var(--spring) both; }
  .qo-foot { padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px)); }
}
@keyframes qoUp { from { transform: translateY(100%); } }

/* ---------- "Please confirm your email" reminder (account pages + checkout) ---------- */
.vmail { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; padding: 12px 14px; border-radius: 16px;
  background: color-mix(in srgb, var(--sun, #FFD43B) 18%, var(--surface)); border: 1px solid color-mix(in srgb, var(--sun, #FFD43B) 55%, var(--line)); color: var(--ink); }
.vmail-ic { width: 34px; height: 34px; flex-shrink: 0; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--sun, #FFD43B) 40%, transparent); }
.vmail-ic svg { width: 18px; height: 18px; }
.vmail p { flex: 1; min-width: 0; margin: 0; font-size: .88rem; line-height: 1.45; color: var(--ink-2); }
.vmail p b { color: var(--ink); }
.vmail form { flex-shrink: 0; }
@media (max-width: 600px) { .vmail { flex-wrap: wrap; } .vmail form { width: 100%; } .vmail form .btn { width: 100%; } }
