/* =============================================================
   BENAAM KITCHEN — CUSTOMER DESIGN SYSTEM ("Marigold", 29 Sep 2026)

   The one token block and the shared layer for every customer page.
   The system itself — every value and why — is written down in
   docs/design/redesign/03-design-spec/DESIGN.md; the research behind it
   in docs/design/redesign/RESEARCH.md.

   Load order on every page: fonts.css → this file → the page's own
   stylesheet, which wins. Staff screens (admin/, kitchen/) do NOT load
   this file: they load css/staff.css, a frozen copy of the stylesheet
   as it stood before this redesign, so nothing here can move them.

   Light is the default. Dark follows the phone (prefers-color-scheme)
   unless the customer picked one (html[data-theme], set by
   js/site-header.js from localStorage `bk_theme`).
   ============================================================= */

:root {
  color-scheme: light;

  /* Colour — light */
  --bg: #F7F6F3;
  --surface: #FFFFFF;
  --surface-2: #F1EFEA;
  --surface-3: #E8E5DF;
  --line: #E7E4DE;
  --line-2: #D3CFC6;
  --text: #17160F;
  --text-2: #57544C;
  --text-3: #736F66;
  --accent: #F5A302;
  --accent-hover: #E89700;
  --accent-soft: #FFF3D6;
  --accent-ink: #9A5B00;
  --on-accent: #17160F;
  --veg: #1C8B3A;
  --veg-soft: #E6F4EA;
  /* Green for small text: --veg is ~4:1 on the page, short of AA at 11-14px
     (round-2 QA: 'Fastest', refund labels). #17733A is ~5.6:1 on --bg. */
  --veg-ink: #17733A;
  --danger: #C9302C;
  --danger-soft: #FDECEA;
  --scrim: rgba(10, 10, 8, .48);
  --glass: rgba(255, 255, 255, .88);
  --photo-scrim: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.55));

  --e-1: 0 1px 2px rgba(23, 22, 15, .06), 0 1px 1px rgba(23, 22, 15, .04);
  --e-2: 0 6px 20px rgba(23, 22, 15, .10);
  --e-3: 0 -10px 40px rgba(23, 22, 15, .16);

  /* Type */
  --font-ui: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Bricolage Grotesque", "DM Sans", system-ui, sans-serif;
  --font-deva: "Noto Sans Devanagari", "Nirmala UI", "Mangal", sans-serif;
  --fs-11: .6875rem; --fs-12: .75rem; --fs-13: .8125rem; --fs-14: .875rem;
  --fs-16: 1rem; --fs-18: 1.125rem; --fs-20: 1.25rem; --fs-24: 1.5rem;
  --fs-32: 2rem; --fs-display: clamp(2.25rem, 7vw, 4rem);

  /* Space, shape, motion, layout */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 20px;
  --sp-6: 24px; --sp-8: 32px; --sp-10: 40px; --sp-12: 48px; --sp-16: 64px;
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 24px; --r-pill: 999px;
  --ease: cubic-bezier(.4, 0, .2, 1);
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --t-fast: 150ms; --t-med: 250ms; --t-slow: 400ms;
  --shell: 1200px;
  /* Second pass (29 Sep): the menu at 1280+ holds a category rail, the
     dishes and the order panel in one row; 1200 left the dishes 520px.
     docs/design/redesign-web/03-design-spec/DESIGN.md */
  --shell-wide: 1360px;
  --rail-w: 208px;
  --panel-w: 320px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 56px;
  --tabbar-h: 64px;
  --bar-h: 72px;
  --safe-b: env(safe-area-inset-bottom, 0px);

  /* ---------------------------------------------------------------
     Old names. Page scripts, inline styles and the momo game still
     say `var(--bone-2)`, `var(--text-muted)`, `var(--border-color)`
     and so on; each is pointed at its meaning in this system rather
     than hunted across forty files. New rules use the names above.
     --------------------------------------------------------------- */
  --ink: var(--bg); --ink-2: var(--surface); --ink-3: var(--surface-2);
  --bone: var(--text); --bone-2: var(--text-2); --bone-3: var(--text-3);
  --flame: var(--accent); --flame-lift: var(--accent-hover); --flame-dim: var(--accent-soft);
  --on-flame: var(--on-accent); --leaf: var(--veg); --danger-txt: var(--danger);
  --ink-a94: var(--glass); --ink-a86: var(--glass); --ink-a78: var(--glass); --ink-a55: var(--scrim);
  --text-main: var(--text); --text-primary: var(--text); --text-secondary: var(--text-2);
  --text-muted: var(--text-3); --text-light: var(--text-3); --muted: var(--text-3);
  --color-text-main: var(--text); --color-text-muted: var(--text-2); --color-text-light: var(--text-3);
  --border: var(--line); --border-color: var(--line); --border-subtle: var(--line);
  --color-border: var(--line); --color-border-subtle: var(--line);
  --color-bg: var(--bg); --color-card-bg: var(--surface);
  --primary: var(--accent); --color-primary: var(--accent); --color-primary-dark: var(--accent-hover);
  --color-primary-light: var(--accent-soft); --color-accent: var(--accent); --color-accent-light: var(--accent-soft);
  --brand-primary: var(--accent-ink); --brand-primary-hover: var(--accent-hover); --brand-accent: var(--accent-ink);
  --brand-amber: var(--accent-ink); --gold: var(--accent);
  --brand-green: var(--veg); --success: var(--veg); --color-success: var(--veg); --color-success-light: var(--veg-soft);
  --success-bg: var(--veg-soft); --color-veg: var(--veg); --color-non-veg: var(--danger);
  --brand-red: var(--danger); --brand-danger: var(--danger); --color-danger: var(--danger);
  --color-danger-dark: var(--danger); --color-danger-light: var(--danger-soft); --danger-bg: var(--danger-soft);
  --brand-red-light: var(--danger-soft);
  --warning: var(--accent-ink); --warning-bg: var(--accent-soft);
  --brand-blue: var(--text-2); --brand-info: var(--text-2); --color-info: var(--text-2);
  --info-bg: var(--surface-2); --color-info-light: var(--surface-2);
  --brand-secondary: var(--text-2); --brand-dark: var(--text); --brand-light: var(--surface); --brand-border: var(--line);
  --slate-200: var(--line-2); --slate-500: var(--text-3); --slate-700: var(--text-2);
  --font-sans: var(--font-ui);
  --radius: var(--r-md); --radius-sm: var(--r-sm); --radius-md: var(--r-md); --radius-lg: var(--r-lg);
  --radius-full: var(--r-pill); --r: var(--r-md);
  --shadow-sm: var(--e-1); --shadow-md: var(--e-2); --shadow-lg: var(--e-2); --shadow-xl: var(--e-3);
  --transition-fast: var(--t-fast) var(--ease); --transition-normal: var(--t-med) var(--ease);
  --fast: var(--t-fast) var(--ease); --med: var(--t-med) var(--ease);
  --t-2xs: var(--fs-11); --t-xs: var(--fs-12); --t-sm: var(--fs-14); --t-base: var(--fs-16);
  --t-md: var(--fs-18); --t-lg: var(--fs-20); --t-xl: var(--fs-24); --t-2xl: var(--fs-32); --t-3xl: var(--fs-display);
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;
  --r-pill-old: 999px;
}

/* Dark — shades of black. Same geometry, deeper shadows. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0A0A09; --surface: #151514; --surface-2: #1E1E1C; --surface-3: #2A2A27;
    --line: #262624; --line-2: #3B3A37;
    --text: #F4F3EF; --text-2: #B4B1AA; --text-3: #8F8C85;
    --accent: #FFB020; --accent-hover: #FFC04D; --accent-soft: rgba(255, 176, 32, .14);
    --accent-ink: #FFC24D; --on-accent: #17160F;
    --veg: #3CC065; --veg-soft: rgba(60, 192, 101, .14); --veg-ink: #3CC065;
    --danger: #FF6B5E; --danger-soft: rgba(255, 107, 94, .14);
    --scrim: rgba(0, 0, 0, .64); --glass: rgba(21, 21, 20, .86);
    --e-1: 0 1px 2px rgba(0, 0, 0, .5);
    --e-2: 0 8px 24px rgba(0, 0, 0, .55);
    --e-3: 0 -12px 44px rgba(0, 0, 0, .7);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0A0A09; --surface: #151514; --surface-2: #1E1E1C; --surface-3: #2A2A27;
  --line: #262624; --line-2: #3B3A37;
  --text: #F4F3EF; --text-2: #B4B1AA; --text-3: #8F8C85;
  --accent: #FFB020; --accent-hover: #FFC04D; --accent-soft: rgba(255, 176, 32, .14);
  --accent-ink: #FFC24D; --on-accent: #17160F;
  --veg: #3CC065; --veg-soft: rgba(60, 192, 101, .14); --veg-ink: #3CC065;
  --danger: #FF6B5E; --danger-soft: rgba(255, 107, 94, .14);
  --scrim: rgba(0, 0, 0, .64); --glass: rgba(21, 21, 20, .86);
  --e-1: 0 1px 2px rgba(0, 0, 0, .5);
  --e-2: 0 8px 24px rgba(0, 0, 0, .55);
  --e-3: 0 -12px 44px rgba(0, 0, 0, .7);
}

@media (min-width: 1024px) { :root { --header-h: 64px; } }

/* ---------------- base ---------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 400 var(--fs-16)/1.5 var(--font-ui);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { margin: 0; line-height: 1.25; letter-spacing: -.01em; font-weight: 700; color: var(--text); }
h1 { font-size: var(--fs-24); }
h2 { font-size: var(--fs-20); }
h3 { font-size: var(--fs-18); font-weight: 600; }
p { margin: 0; }
a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--accent-soft); color: var(--text); }
strong, b { font-weight: 700; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--sp-6) 0; }

.hidden { display: none !important; }
/* `hidden` means hidden, whatever display a class gives the element. The
   :not() lets the few scripts that reveal by style.display keep working. */
[hidden]:not([style*="display"]) { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.tnum { font-variant-numeric: tabular-nums; }
.muted { color: var(--text-3); }
.w-full { width: 100%; }
.deva { font-family: var(--font-deva); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------------- layout ---------------- */
/* The footer sits at the bottom of a short page (owner, 30 Sep 2026: "footer
   is not stuck to the bottom at some places"). The body is a column and the
   page's main block takes the spare height. The in-flow blocks are named and
   given width:100%: a flex item with auto side margins is not stretched, so
   a centred <main> on a short page would otherwise shrink to its content. */
body { display: flex; flex-direction: column; }
body > :is(.hdr, main, .foot, .menu-layout, .notifications-container, .container) { width: 100%; flex-shrink: 0; }
body > :is(main, .menu-layout) { flex: 1 0 auto; }
.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--gutter); }
main:not([class]) { max-width: var(--shell); margin: 0 auto; padding: var(--sp-6) var(--gutter) var(--sp-12); }
.page-head { display: grid; gap: var(--sp-1); margin: var(--sp-6) 0 var(--sp-5); }
.page-head h1 { font-size: var(--fs-24); }
.page-head__sub { color: var(--text-2); font-size: var(--fs-14); }
.eyebrow {
  margin: 0 0 var(--sp-2);
  font-size: var(--fs-11); font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-3);
}
.lead { color: var(--text-2); font-size: var(--fs-16); line-height: 1.6; }
.display { font-family: var(--font-display); font-weight: 800; letter-spacing: -.03em; line-height: 1.02; }
.section-label, .caps {
  font-size: var(--fs-11); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3);
}
@media (min-width: 768px) {
  .page-head h1, h1 { font-size: var(--fs-32); }
  .page-head { margin: var(--sp-8) 0 var(--sp-6); }
}

/* ---------------- header ----------------
   One header, four optional slots: __banner, __back, .nav, __acts.
   js/site-header.js sets data-scrolled; the hairline appears then. */
.hdr {
  /* Solid, not frosted glass: the menu's category labels and the dish name
     read through the glass as ghost text under the logo (owner, 5 Oct). */
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-med) var(--ease);
}
.hdr[data-scrolled="true"] { border-bottom-color: var(--line); box-shadow: 0 1px 0 var(--line), 0 8px 24px -16px rgba(0,0,0,.18); }
.hdr__in { display: flex; align-items: center; gap: var(--sp-3); min-height: var(--header-h); }
.hdr__banner:empty { display: none; }
.hdr__back {
  display: inline-flex; align-items: center; gap: 2px;
  min-height: 40px; margin-left: -8px; padding: 0 8px 0 4px;
  color: var(--text); font-weight: 600; font-size: var(--fs-14); text-decoration: none;
  border-radius: var(--r-pill);
}
.hdr__back:hover { background: var(--surface-2); }
.hdr__back span { display: none; }
@media (min-width: 480px) { .hdr__back span { display: inline; } }

.brand { display: inline-flex; align-items: center; gap: var(--sp-2); margin-right: auto; color: var(--text); text-decoration: none; min-width: 0; }
.brand img { width: 32px; height: 32px; border-radius: 50%; box-shadow: 0 0 0 1px var(--line); flex: none; }
.brand__name { font: 800 var(--fs-18)/1 var(--font-display); letter-spacing: -.02em; white-space: nowrap; }
.brand__name em { font-style: normal; color: var(--text-3); font-weight: 700; }
/* The name shows on every page, back link or not (round 3: the cart, dish
   and account pages showed a lone logo badge on phones). Below 340px there
   is no room beside the back link and three buttons. */
@media (max-width: 339px) { .hdr__back + .brand .brand__name { display: none; } }

.nav { display: none; gap: var(--sp-1); }
.nav a {
  padding: 8px 14px; border-radius: var(--r-pill);
  color: var(--text-2); font-weight: 500; font-size: var(--fs-14); text-decoration: none;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); font-weight: 600; }
@media (min-width: 1024px) { .nav { display: flex; } }

.hdr__acts { display: flex; align-items: center; gap: var(--sp-1); }
.icon-btn {
  position: relative; display: inline-grid; place-items: center;
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: transparent; color: var(--text); text-decoration: none;
  transition: background var(--t-fast) var(--ease), transform 100ms var(--ease);
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn:active { transform: scale(.94); }
/* Light/dark switch: the moon offers dark, the sun offers light. */
.theme-btn__sun { display: none; }
:root[data-theme="dark"] .theme-btn__sun { display: block; }
:root[data-theme="dark"] .theme-btn__moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn__sun { display: block; }
  :root:not([data-theme="light"]) .theme-btn__moon { display: none; }
}
/* A small phone with a back link has no room for the call button as well;
   the number is in the footer and on every help screen. */
@media (max-width: 479px) { .hdr__back ~ .hdr__acts .icon-btn[href^="tel:"] { display: none; } }
/* Below 360px the wordmark ran under the light/dark switch on pages with
   three header buttons (round-2 verify: "Kitche" cut at 320). "Benaam"
   alone stays. */
@media (max-width: 359px) { .brand__name em { display: none; } }
.cart-btn__n {
  position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px;
  display: grid; place-items: center; border-radius: var(--r-pill);
  background: var(--accent); color: var(--on-accent); font-size: 11px; font-weight: 700; line-height: 1;
  box-shadow: 0 0 0 2px var(--surface);
}
.cart-btn__n.bump { animation: bk-bump 360ms var(--ease-out); }

/* Kitchen open/closed chip — a word, not just a dot. */
.status { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-13); font-weight: 600; color: var(--text-2); }
.status__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); flex: none; }
.status.is-open .status__dot { background: var(--veg); box-shadow: 0 0 0 4px var(--veg-soft); animation: bk-breathe 2.8s var(--ease) infinite; }
.status.is-shut .status__dot { background: var(--danger); }
.status--chip { height: 32px; padding: 0 12px; border-radius: var(--r-pill); background: var(--surface-2); }
.status--chip.is-open { color: var(--veg); background: var(--veg-soft); }
.status--chip.is-shut { color: var(--danger); background: var(--danger-soft); }

/* ---------------- bottom tab bar (phones) ----------------
   Drawn by js/site-header.js on browse pages; hidden from 1024px, where
   the header nav takes over. The page reserves its height. */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  display: grid; grid-template-columns: repeat(4, 1fr);
  height: calc(var(--tabbar-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  background: var(--surface);
  border-top: 1px solid var(--line);
}
.tabbar a {
  display: grid; justify-items: center; align-content: center; gap: 3px;
  color: var(--text-3); text-decoration: none; font-size: var(--fs-11); font-weight: 600; letter-spacing: .01em;
  -webkit-tap-highlight-color: transparent;
}
.tabbar a svg { width: 22px; height: 22px; }
.tabbar a[aria-current="page"] { color: var(--text); }
.tabbar a[aria-current="page"] svg { color: var(--accent-ink); }
body.has-tabbar { padding-bottom: calc(var(--tabbar-h) + var(--safe-b)); }
@media (min-width: 1024px) {
  .tabbar { display: none; }
  body.has-tabbar { padding-bottom: 0; }
}

/* ---------------- footer ----------------
   Drawn by js/site-footer.js on every customer page: one line of what we
   stand for, the site's links, the kitchen's address / hours / phone and
   the legal line (FSSAI licence, refund / privacy / grievance links; 2.1,
   2.2), all from /api/v1/legal/disclosures. Round 2 (30 Sep 2026): it was
   a thin legal strip. A direct child of <body>, so it sits at the bottom
   of a short page (body is a column, see layout). */
.foot { margin-top: var(--sp-16); border-top: 1px solid var(--line); background: var(--surface); color: var(--text-2); font-size: var(--fs-14); }
.foot__in { display: grid; gap: var(--sp-10); padding-block: var(--sp-12) var(--sp-6); }
.foot__say { margin: 0; max-width: 13ch; font: 800 clamp(2rem, 6vw, 3.5rem)/1 var(--font-display); letter-spacing: -.035em; color: var(--text); }
.foot__say span { color: var(--accent); }
.foot__veg { display: inline-flex; align-items: center; gap: var(--sp-2); margin-top: var(--sp-4); font-size: var(--fs-13); font-weight: 600; color: var(--text-2); }
.foot__veg::before { content: ""; flex: none; width: 14px; height: 14px; border: 1.5px solid var(--veg); border-radius: 3px; background: radial-gradient(circle, var(--veg) 0 3px, transparent 3.5px); }
.foot__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-8) var(--sp-6); }
.foot__h { margin: 0 0 var(--sp-2); font-size: var(--fs-11); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.foot__col ul { list-style: none; margin: 0; padding: 0; }
.foot__col a { display: inline-flex; align-items: center; min-height: 40px; color: var(--text); font-weight: 500; text-decoration: none; }
.foot__col a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.foot__kitchen { display: grid; gap: var(--sp-2); font-style: normal; line-height: 1.55; }
.foot__kitchen a { font-weight: 600; font-variant-numeric: tabular-nums; }
/* While the kitchen's facts are on their way: quiet bars, not "being added"
   (which would read as if there were no licence or address yet). */
.foot .foot__skel { display: block; height: 14px; margin-block: 5px; border-radius: 4px; }
.foot__skel--w1 { width: 92%; } .foot__skel--w2 { width: 64%; } .foot__skel--w3 { width: 48%; }
.foot__legal .foot__skel { display: inline-block; width: 24ch; margin: 0; vertical-align: middle; }
.foot__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sp-2) var(--sp-6); padding-top: var(--sp-5); border-top: 1px solid var(--line); color: var(--text-3); font-size: var(--fs-13); line-height: 1.6; }
.foot__legal a { color: var(--text-2); }
.foot__legal small { font-size: inherit; }
@media (min-width: 1024px) {
  .foot__in { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: var(--sp-16); row-gap: var(--sp-12); padding-top: var(--sp-16); }
  .foot__cols { grid-template-columns: minmax(0, .8fr) minmax(0, .8fr) minmax(0, 1.3fr) minmax(0, 1.2fr); }
  .foot__legal { grid-column: 1 / -1; }
}
.legal-pending { color: var(--accent-ink); font-style: italic; }

/* ---------------- buttons ----------------
   Two spellings exist in the markup (.btn--primary and .btn-primary);
   both are the same object here. */
.btn, .btn--primary, .btn--ghost, .btn--quiet,
.btn-primary, .btn-secondary, .btn-danger, .btn-submit, .btn-primary-link, .btn-reset-filters {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  min-height: 48px; padding: 0 var(--sp-5);
  border: 1px solid transparent; border-radius: var(--r-md);
  font: 600 var(--fs-16)/1.2 var(--font-ui); letter-spacing: -.005em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), transform 100ms var(--ease), box-shadow var(--t-fast) var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn { background: var(--surface); color: var(--text); border-color: var(--line-2); }
.btn--primary, .btn-primary, .btn-submit, .btn-primary-link { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn--ghost, .btn-secondary, .btn-reset-filters { background: var(--surface); color: var(--text); border-color: var(--line-2); }
.btn--quiet { background: transparent; color: var(--accent-ink); border-color: transparent; padding-inline: var(--sp-3); min-height: 44px; }
.btn-danger { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
@media (hover: hover) {
  .btn:hover, .btn--ghost:hover, .btn-secondary:hover, .btn-reset-filters:hover { background: var(--surface-2); }
  .btn--primary:hover, .btn-primary:hover, .btn-submit:hover, .btn-primary-link:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
  .btn--quiet:hover { background: var(--accent-soft); }
  .btn-danger:hover { background: var(--danger); color: #fff; }
}
.btn:active, .btn--primary:active, .btn--ghost:active, .btn-primary:active, .btn-secondary:active, .btn-submit:active { transform: scale(.98); }
.btn--lg, .btn-large { min-height: 52px; padding-inline: var(--sp-6); font-size: var(--fs-16); }
.btn--block { display: flex; width: 100%; }
.btn[disabled], .btn--primary[disabled], .btn-primary[disabled], .btn-submit[disabled], .btn-secondary[disabled],
.btn-disabled, [aria-disabled="true"].btn--primary { opacity: .4; pointer-events: none; }
.btn .spinner, .btn-primary .spinner { width: 18px; height: 18px; }
.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.is-loading::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 20px; height: 20px;
  border-radius: 50%; border: 2px solid var(--on-accent); border-right-color: transparent;
  animation: bk-spin 700ms linear infinite;
}
.btn-link-action, .login-link {
  border: 0; background: none; padding: 4px 2px; min-height: 32px;
  color: var(--accent-ink); font-weight: 600; font-size: var(--fs-14); cursor: pointer;
}
.btn-link-action:hover, .login-link:hover { text-decoration: underline; }
.btn-group { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-3); margin-top: var(--sp-6); }

/* Chips and segmented choices */
.chip, .tag-chip, .filter-tab-btn {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 36px; padding: 0 14px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: var(--surface);
  color: var(--text-2); font-size: var(--fs-13); font-weight: 600; white-space: nowrap; cursor: pointer;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.chip:hover, .tag-chip:hover, .filter-tab-btn:hover { border-color: var(--line-2); color: var(--text); }
.chip.active, .tag-chip.active, .filter-tab-btn.active, .chip[aria-pressed="true"] {
  background: var(--text); border-color: var(--text); color: var(--surface);
}

/* ---------------- forms ---------------- */
input[type="text"], input[type="tel"], input[type="email"], input[type="search"], input[type="number"],
input[type="date"], input[type="time"], input[type="password"], select, textarea, .form-input {
  width: 100%; min-height: 48px; padding: 12px 14px;
  border: 1px solid var(--line-2); border-radius: var(--r-md);
  background: var(--surface); color: var(--text);
  font: 400 var(--fs-16)/1.4 var(--font-ui);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
  -webkit-appearance: none; appearance: none;
}
textarea, textarea.form-input { min-height: 96px; resize: vertical; line-height: 1.5; }
select { padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23736F66' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
::placeholder { color: var(--text-3); opacity: 1; }
/* Our search boxes draw their own clear button. */
input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
input:hover, select:hover, textarea:hover { border-color: var(--text-3); }
input:focus, select:focus, textarea:focus, .form-input:focus {
  outline: none; border-color: var(--text); box-shadow: 0 0 0 3px var(--accent-soft);
}
input[disabled], input[readonly], .form-input[readonly] { background: var(--surface-2); color: var(--text-2); border-color: var(--line); }
input[aria-invalid="true"], .form-input.is-invalid, .form-input.error { border-color: var(--danger); }

input[type="checkbox"], input[type="radio"] {
  -webkit-appearance: none; appearance: none; flex: none;
  width: 22px; height: 22px; margin: 0; border: 2px solid var(--line-2); background: var(--surface);
  display: inline-grid; place-content: center; cursor: pointer; vertical-align: middle;
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
input[type="checkbox"] { border-radius: 6px; }
input[type="radio"] { border-radius: 50%; }
input[type="checkbox"]::before { content: ""; width: 11px; height: 6px; border: solid var(--on-accent); border-width: 0 0 2.5px 2.5px; transform: translateY(-1px) rotate(-45deg) scale(0); transition: transform 120ms var(--ease-out); }
input[type="radio"]::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--on-accent); transform: scale(0); transition: transform 120ms var(--ease-out); }
input[type="checkbox"]:checked, input[type="radio"]:checked { border-color: var(--accent); background: var(--accent); }
input[type="checkbox"]:checked::before { transform: translateY(-1px) rotate(-45deg) scale(1); }
input[type="radio"]:checked::before { transform: scale(1); }

fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
legend { padding: 0; margin-bottom: 6px; }
input[type="file"] { width: 100%; max-width: 100%; min-width: 0; font-size: var(--fs-14); color: var(--text-2); }
input[type="file"]::file-selector-button {
  margin-right: 12px; min-height: 40px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: var(--r-pill);
  background: var(--surface); color: var(--text); font: 600 var(--fs-14) var(--font-ui); cursor: pointer;
}
.field, .form-group, .input-group { min-width: 0; display: grid; gap: 6px; margin-bottom: var(--sp-4); }
.field__label, .field-label, .form-group > label, .input-group > label {
  font-size: var(--fs-14); font-weight: 600; color: var(--text);
}
.field__error, .form-error, .error { color: var(--danger); font-size: var(--fs-14); font-weight: 500; }
.required-star { color: var(--danger); }
.field-hint, .section-hint { color: var(--text-3); font-size: var(--fs-13); line-height: 1.5; }
.phone-row { display: grid; grid-template-columns: 64px 1fr; gap: var(--sp-2); }
.phone-cc { text-align: center; font-weight: 600; }
.otp-input { font-size: var(--fs-24) !important; letter-spacing: .5em; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------------- cards, banners, badges ---------------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.badge {
  display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px;
  border-radius: var(--r-pill); background: var(--surface-2); color: var(--text-2);
  font-size: var(--fs-11); font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.badge-new { background: var(--accent-soft); color: var(--accent-ink); }

.alert, .alert-box, .banner {
  display: flex; align-items: flex-start; gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4); border-radius: var(--r-md);
  background: var(--surface-2); color: var(--text); font-size: var(--fs-14); line-height: 1.5;
}
.alert-error { background: var(--danger-soft); color: var(--danger); }
.alert-warning { background: var(--accent-soft); color: var(--text); }
.alert-info { background: var(--surface-2); color: var(--text-2); }
.banner-icon { flex: none; color: var(--accent-ink); }

.kitchen-banner {
  display: flex; align-items: center; gap: var(--sp-3); padding: 12px var(--gutter);
  background: var(--danger-soft); color: var(--danger); font-size: var(--fs-14); font-weight: 600;
}
.kitchen-banner-icon { flex: none; }

/* ---------------- icons (js/icons.js) ---------------- */
.ico { display: inline-flex; width: 1.15em; height: 1.15em; vertical-align: -.2em; flex: none; }
.ico svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ico--lg { width: 40px; height: 40px; color: var(--text-3); }

/* ---------------- illustrations ----------------
   Line drawings are charcoal on transparent; in dark mode they are
   inverted (the marigold survives the hue turn) so the lines stay visible. */
.illo { display: block; margin-inline: auto; }
:root[data-theme="dark"] .illo { filter: invert(1) hue-rotate(180deg); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .illo { filter: invert(1) hue-rotate(180deg); } }
.empty-illo { width: 120px; height: 120px; margin-bottom: var(--sp-2); }
.policy-photo { margin: var(--sp-6) 0 var(--sp-2); border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 16 / 9; background: var(--surface-2); }
.policy-photo img { width: 100%; height: 100%; object-fit: cover; }
.blog-hero-photo { width: 100%; max-height: 340px; margin-top: var(--sp-6); border-radius: var(--r-xl); object-fit: cover; aspect-ratio: 16 / 7; }

/* ---------------- empty, loading ---------------- */
.empty-state, .empty-category {
  display: grid; justify-items: center; gap: var(--sp-2); text-align: center;
  padding: var(--sp-12) var(--sp-6); color: var(--text-2);
}
.empty-state h2, .empty-state h3, .empty-state-title, .empty-title { font-size: var(--fs-18); font-weight: 700; color: var(--text); }
.empty-state p { max-width: 36ch; font-size: var(--fs-14); }
.empty-state .btn-primary, .empty-state .btn--primary, .empty-state .btn-reset-filters { margin-top: var(--sp-3); }
.empty-icon {
  display: grid; place-items: center; width: 72px; height: 72px; margin-bottom: var(--sp-2);
  border-radius: 50%; background: var(--surface-2); color: var(--text-3);
}
.empty-icon .ico { width: 32px; height: 32px; }
.skeleton {
  border-radius: var(--r-md);
  background: linear-gradient(90deg, var(--surface-2) 0%, var(--surface-3) 50%, var(--surface-2) 100%);
  background-size: 200% 100%; animation: bk-shimmer 1.3s linear infinite;
}
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line-2); border-top-color: var(--accent); animation: bk-spin 800ms linear infinite; }

/* ---------------- sheets and dialogs ----------------
   A bottom sheet on phones, a centred dialog from 768px. Page
   stylesheets (menu.css, account.css) own their own open/close gates. */
.modal-backdrop { background: var(--scrim); }
.modal-dialog, .sheet {
  background: var(--surface); color: var(--text);
  border-radius: var(--r-xl) var(--r-xl) 0 0; box-shadow: var(--e-3);
}
@media (min-width: 768px) { .modal-dialog, .sheet { border-radius: var(--r-xl); } }
.sheet__grab { width: 36px; height: 4px; margin: 8px auto 0; border-radius: 2px; background: var(--line-2); }

/* Native <dialog> (the bulk-order enquiry): a bottom sheet on phones. */
dialog {
  width: 100%; max-width: 100% !important; margin: auto 0 0; padding: var(--sp-6) var(--sp-5) calc(var(--sp-6) + var(--safe-b));
  border: 0; border-radius: var(--r-xl) var(--r-xl) 0 0; background: var(--surface); color: var(--text); box-shadow: var(--e-3);
}
dialog[open] { animation: bk-sheet var(--t-slow) var(--ease-out); }
dialog::backdrop { background: var(--scrim); }
dialog h2 { font-size: var(--fs-20); margin-bottom: var(--sp-2); }
dialog p { color: var(--text-2); font-size: var(--fs-14); margin-bottom: var(--sp-4); }
dialog label { display: grid; gap: 6px; margin-bottom: var(--sp-3); font-size: var(--fs-14); font-weight: 600; }
dialog label br, dialog form > br { display: none; }
@media (min-width: 768px) {
  dialog { width: min(520px, calc(100vw - 48px)); margin: auto; padding: var(--sp-8); border-radius: var(--r-xl); }
  dialog[open] { animation: bk-rise var(--t-med) var(--ease-out); }
}

/* Toasts (undo, added to cart, account pages) */
.blog-cart-toast {
  position: fixed; left: 50%; bottom: calc(var(--sp-6) + var(--safe-b)); z-index: 90;
  display: flex; align-items: center; gap: var(--sp-4);
  width: max-content; max-width: calc(100vw - 32px); padding: 12px 16px;
  border-radius: var(--r-md); background: var(--text); color: var(--surface);
  font-size: var(--fs-14); font-weight: 500; box-shadow: var(--e-2);
  opacity: 0; transform: translate(-50%, 16px); pointer-events: none;
  transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease-out);
}
.blog-cart-toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.blog-cart-toast__link { color: var(--accent); font-weight: 700; }
body.has-tabbar .blog-cart-toast { bottom: calc(var(--tabbar-h) + var(--sp-4) + var(--safe-b)); }

/* The AOV nudge (4.10) — one suggestion, shown only when switched on. */
.aov-nudge { margin: var(--sp-4) 0; }
.aov-nudge__head { margin-bottom: var(--sp-2); font-size: var(--fs-11); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.aov-nudge__card { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.aov-nudge__main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.aov-nudge__name { font-weight: 600; font-size: var(--fs-14); }
.aov-nudge__price { font-size: var(--fs-13); color: var(--text-2); }
.aov-nudge__details { font-size: var(--fs-12); color: var(--text-3); }
.aov-nudge__badge { font-size: var(--fs-11); color: var(--text-3); }
.aov-nudge__add {
  min-height: 36px; padding: 0 14px; border-radius: var(--r-pill); border: 1px solid var(--line-2);
  background: var(--surface); color: var(--accent-ink); font-weight: 700; font-size: var(--fs-13); cursor: pointer;
}

/* The birthday wish (11.11) and dish share row */
.birthday-banner {
  display: flex; align-items: center; gap: var(--sp-3); margin: var(--sp-4) 0; padding: var(--sp-4);
  border-radius: var(--r-lg); background: var(--accent-soft); color: var(--text); font-size: var(--fs-14);
}
.dish-share { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-1); margin-top: var(--sp-3); }

/* ---------------- motion ---------------- */
@keyframes bk-spin { to { transform: rotate(360deg); } }
@keyframes bk-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@keyframes bk-bump { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
@keyframes bk-breathe { 0%, 100% { box-shadow: 0 0 0 3px var(--veg-soft); } 50% { box-shadow: 0 0 0 7px var(--veg-soft); } }
@keyframes bk-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes bk-sheet { from { transform: translateY(100%); } to { transform: none; } }
@keyframes bk-fade { from { opacity: 0; } to { opacity: 1; } }
.rise { animation: bk-rise var(--t-slow) var(--ease-out) both; }

/* =============================================================
   STANDALONE PAGES — body class scopes each one
   ============================================================= */

/* Blog, post, our story, the legal pages and rate-your-order moved to
   css/content.css, and sign in to css/signin.css (30 Sep 2026), each loaded
   only by its own pages: every other page was downloading them.
   Tracking stays here. */

/* ---- order tracking ---- */
.track-shell { max-width: 720px; padding-block: var(--sp-6) var(--sp-12); }
.track-shell > h1 { margin-bottom: var(--sp-5); }
.track-card { padding: var(--sp-5); border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--surface); }
.track-card + .track-card, .track-card + .timeline { margin-top: var(--sp-4); }
.track-lookup .lead { margin-bottom: var(--sp-5); }
.track-lookup .btn { width: 100%; margin-top: var(--sp-2); }
.track-foot { margin-top: var(--sp-4); text-align: center; color: var(--text-3); font-size: var(--fs-13); }
.p-track #track-details { background: linear-gradient(180deg, var(--accent-soft) 0, var(--surface) 200px); }
.track-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-3); margin-bottom: var(--sp-4); }
.track-id { font-size: var(--fs-13); font-weight: 600; color: var(--text-2); }
.track-head .track-total { margin: 0; padding: 0; border: 0; font-size: var(--fs-14); }
.track-status { font-size: var(--fs-24); font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.track-eta:not(:empty) {
  display: inline-flex; align-items: center; margin-top: var(--sp-3); min-height: 32px; padding: 4px 14px;
  border-radius: var(--r-pill); background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: var(--fs-14);
}
.track-eta-basis { margin-top: 6px; font-size: var(--fs-12); color: var(--text-3); }
@media (min-width: 768px) { .track-status { font-size: var(--fs-32); } }
.track-note { margin-top: var(--sp-3); color: var(--text-2); font-size: var(--fs-14); }
.track-map { height: 220px; margin: var(--sp-4) 0; border-radius: var(--r-lg); overflow: hidden; background: var(--surface-2); }
.track-maploc { color: var(--text-3); font-size: var(--fs-12); }
.track-acts { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-4); }
.track-acts .btn { flex: 1 1 140px; }
.track-cancel { color: var(--danger); }
.track-total { display: flex; justify-content: space-between; margin-top: var(--sp-4); padding-top: var(--sp-4); border-top: 1px solid var(--line); font-weight: 700; }
.track-fail { padding: var(--sp-3) var(--sp-4); border-radius: var(--r-md); background: var(--danger-soft); color: var(--danger); font-size: var(--fs-14); }

.timeline { list-style: none; margin: var(--sp-4) 0 0; padding: var(--sp-5); border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--surface); }
.timeline li { position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-3); padding: 0 0 var(--sp-5) 32px; color: var(--text-3); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: 6px; top: 4px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--surface); }
.timeline li::after { content: ""; position: absolute; left: 11px; top: 20px; bottom: 2px; width: 2px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline li.done, .timeline li.active, .timeline li.current { color: var(--text); }
.timeline li.done::before { background: var(--veg); border-color: var(--veg); }
.timeline li.done::after { background: var(--veg); }
.timeline li.active::before, .timeline li.current::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
.timeline li.cancelled::before { background: var(--danger); border-color: var(--danger); }
.timeline__label { font-weight: 600; font-size: var(--fs-14); }
.timeline__time { color: var(--text-3); font-size: var(--fs-12); white-space: nowrap; }

/* ---- floating cart bar (FCART): above the tab bar on phones ----
   Moved here from menu.css on 30 Sep 2026: the home page loads
   floating-cart.js but not menu.css, so its bar was unstyled. */
#floating-cart-container { position: fixed; left: 0; right: 0; bottom: 0; z-index: 44; pointer-events: none; }
#floating-cart-container.has-cart { pointer-events: auto; }
body.has-tabbar #floating-cart-container { bottom: calc(var(--tabbar-h) + var(--safe-b)); }
/* From 1024px the tab bar is hidden but body.has-tabbar stays; the bar
   then floated a tab bar's height above the bottom edge (round-2 QA). */
@media (min-width: 1024px) { body.has-tabbar #floating-cart-container { bottom: 0; } }
/* Keyboard focus is never left under the bottom bars (WCAG 2.4.11): when
   Tab moves to an element the browser scrolls it into view inside this
   padding. Bottom only -- the menu's own scroll-margin handles the top. */
html { scroll-padding-bottom: var(--sp-4); }
html:has(#floating-cart-container.has-cart) { scroll-padding-bottom: calc(var(--bar-h) + var(--safe-b) + var(--sp-4)); }
@media (max-width: 1023px) {
  html:has(body.has-tabbar) { scroll-padding-bottom: calc(var(--tabbar-h) + var(--safe-b) + var(--sp-4)); }
  html:has(body.has-tabbar #floating-cart-container.has-cart) { scroll-padding-bottom: calc(var(--tabbar-h) + var(--bar-h) + var(--safe-b) + var(--sp-4)); }
}
.floating-cart-bar { max-width: 640px; margin: 0 auto; padding: var(--sp-2) var(--gutter) var(--sp-3); }
body:not(.has-tabbar) .floating-cart-bar { padding-bottom: calc(var(--sp-3) + var(--safe-b)); }
.floating-cart-btn {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  min-height: 56px; padding: 0 var(--sp-5); border-radius: var(--r-lg);
  background: var(--text); color: var(--surface); text-decoration: none; box-shadow: var(--e-2);
  animation: cartSlideUp var(--t-slow) var(--ease-out); transition: transform var(--t-fast) var(--ease);
}
.floating-cart-btn:hover { transform: translateY(-2px); }
@keyframes cartSlideUp { from { transform: translateY(120%); } }
.floating-cart-left { display: flex; align-items: center; gap: var(--sp-2); min-width: 0; font-size: var(--fs-14); font-weight: 600; }
.floating-cart-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--r-sm); background: var(--accent); color: var(--on-accent); }
.floating-cart-icon svg, .floating-cart-icon .ico { width: 18px; height: 18px; }
.floating-cart-dot { opacity: .5; }
.floating-cart-count, .floating-cart-total { font-variant-numeric: tabular-nums; }
.floating-cart-total { font-weight: 800; }
.floating-cart-right { display: flex; align-items: center; gap: 6px; font-weight: 800; color: var(--accent); }
/* In dark the bar is light (--text), and marigold on it measured about 1.9:1.
   The words take the dark ground's colour there; the bag tile keeps the accent. */
:root[data-theme="dark"] .floating-cart-right { color: var(--bg); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .floating-cart-right { color: var(--bg); } }
