/* ============================================================
   A Saigon Cafe — styles.css
   Aesthetic: ấm cúng, truyền thống Việt — sơn mài lacquer red,
   brass/gold, dark teak wood, jade. NOT the generic cream+terracotta+serif.
   Invariant VI: mobile-first. Base styles target 380px, enhance upward.
   ============================================================ */

:root {
  --lacquer: #8a1f1a;        /* sơn mài lacquer red — primary accent */
  --lacquer-deep: #4f0f0b;   /* deep lacquer for gradients/shadows */
  --lacquer-bright: #ad3328; /* lively lacquer for small accents */
  --gold: #c79a3c;           /* warm brass / gold */
  --gold-bright: #dcb24f;    /* brighter brass for borders & rules */
  --gold-soft: #ecd49a;      /* light gold for text on dark */
  --jade: #336949;           /* bamboo / jade — used for prices */
  --jade-bright: #4f8a64;
  --wood: #2a1a12;           /* dark teak — text & footer */
  --paper: #f6eddd;          /* warm rice-paper background */
  --paper-2: #efe2c9;        /* deeper warm tint for alternating sections */
  --ink: #2a1a12;
  --ink-soft: #5e4938;
  --line: rgba(42, 26, 18, 0.16);
  --gold-line: rgba(199, 154, 60, 0.55);   /* hairline dividers */
  --shadow: 0 8px 28px rgba(42, 26, 18, 0.14);
  --shadow-sm: 0 2px 8px rgba(42, 26, 18, 0.10);
  --radius: 14px;
  --maxw: 1080px;
  --font: "Be Vietnam Pro", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Playfair Display", "Cormorant Garamond", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

/* Class selectors with `display:` silently override the UA `[hidden]{display:none}` rule,
   which made the review modal and the dine-in fields show on load. Enforce hidden globally. */
[hidden] { display: none !important; }

/* ---- Bilingual (EN primary · VI secondary) ----------------------------------
   .t-vi  = inline Vietnamese after a short English label (smaller + softer)
   .bi-sub = block Vietnamese line under a heading / long English text          */
.t-vi { font-weight: 500; font-size: 0.8em; color: var(--ink-soft); }
.bi-sub { display: block; font-family: var(--font); font-weight: 500; font-size: 0.8rem;
  line-height: 1.35; letter-spacing: 0.01em; color: var(--ink-soft); margin-top: 5px; }
/* On dark surfaces the secondary text needs a light tone for contrast (Invariant: legibility). */
.hero .t-vi, .site-footer .t-vi { color: var(--gold-soft); font-weight: 600; }
.hero .bi-sub { color: var(--gold-soft); }
.site-footer .bi-sub { color: #cdbb9d; }
.site-nav .t-vi { color: var(--ink-soft); font-weight: 600; }
.hero h1 .bi-sub { font-size: 1.1rem; font-weight: 600; margin-top: 8px; }
.hero p .bi-sub { font-size: 0.95rem; }
/* (mobile nav sizing + hamburger live in the Header section below, after the base nav rules
   so they actually win the cascade) */

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 12% -8%, rgba(199, 154, 60, 0.16), transparent 42%),
    radial-gradient(circle at 98% 2%, rgba(138, 31, 26, 0.12), transparent 40%),
    linear-gradient(180deg, rgba(199, 154, 60, 0.05), transparent 240px);
  background-attachment: fixed;
  line-height: 1.6;
  font-size: 17px;
}

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.14; font-weight: 800; letter-spacing: 0; }
h1 { font-size: clamp(2.2rem, 7.5vw, 3.8rem); margin: 0 0 0.4em; }
h2 { font-size: clamp(1.55rem, 4.8vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1rem; }

a { color: var(--lacquer); }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---- Skip link & focus (accessibility) ---- */
.skip-link {
  position: absolute; left: 12px; top: -56px;
  background: var(--wood); color: #fff; padding: 10px 16px;
  border-radius: 8px; z-index: 100; transition: top 0.18s ease;
}
.skip-link:focus { top: 12px; }
:focus-visible {
  outline: 3px solid var(--jade);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-block; font-weight: 600; text-decoration: none;
  padding: 13px 24px; border-radius: 999px; cursor: pointer;
  border: 2px solid transparent; transition: transform 0.12s ease, background 0.2s ease;
  font-size: 1rem; line-height: 1;
}
.btn--primary { background: var(--lacquer); color: #fff; }
.btn--primary:hover { background: var(--lacquer-deep); }
.btn--ghost { background: transparent; color: var(--wood); border-color: var(--gold); }
.btn--ghost:hover { background: rgba(205, 163, 73, 0.18); }
.btn:active { transform: translateY(1px); }

/* ============================================================
   Header / nav  (no-JS friendly: links always reachable, wrap at 380px)
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 237, 221, 0.94);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 3px solid var(--gold-bright);
  box-shadow: 0 1px 0 rgba(138, 31, 26, 0.12), var(--shadow-sm);
}
.site-header__inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px;
  padding: 12px 20px; max-width: var(--maxw); margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--wood); margin-right: auto; }
.brand__mark {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--lacquer); color: var(--gold-soft);
  display: grid; place-items: center; font-weight: 800; font-size: 1.05rem;
  box-shadow: inset 0 0 0 2px var(--gold);
}
.brand__name { font-weight: 800; font-size: 1.15rem; letter-spacing: 0.01em; }
.brand__name small { display: block; font-weight: 500; font-size: 0.7rem; color: var(--ink-soft); letter-spacing: 0.14em; text-transform: uppercase; }
/* Real raster logo (assets/logo.png) ships with an opaque white background, so we present
   it as an intentional white "badge": soft-rounded, lightly padded, gentle shadow to lift it
   off the warm header. If the file is missing, the onerror handler swaps in the placeholder. */
.brand__logo {
  width: 58px; height: 58px; /* box includes padding (border-box) */
  object-fit: contain;
  display: block;
  background: #fff;
  padding: 6px;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(39, 25, 19, 0.16), 0 0 0 1px rgba(39, 25, 19, 0.05);
}
@media (max-width: 400px) { .brand__logo { width: 50px; height: 50px; padding: 5px; } }
.brand__logo--missing {
  width: auto; height: auto; padding: 6px 10px; font-size: 0.7rem; font-weight: 700;
  color: var(--lacquer); background: rgba(138,31,26,0.08); border: 1px dashed var(--lacquer);
  border-radius: 8px; line-height: 1.2; max-width: 130px;
}

.site-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 6px; margin: 0; padding: 0; }
.site-nav a {
  display: block; text-decoration: none; color: var(--wood);
  padding: 8px 12px; border-radius: 8px; font-weight: 600; font-size: 0.96rem;
}
.site-nav a:hover { background: rgba(138, 31, 26, 0.08); }
.site-nav a[aria-current="page"] { color: var(--lacquer); box-shadow: inset 0 -2px 0 var(--lacquer); }

/* ---- Mobile header: hamburger (≤719px). Desktop (≥720px) is unchanged. ----
   Hidden by default (desktop + no-JS). nav.js adds .nav-collapsible to the header only when
   the button exists, which switches mobile into hamburger mode. Without JS the nav stays
   visible but compact (the rules in the media query below). */
.nav-toggle {
  display: none; flex: 0 0 auto;
  align-items: center; justify-content: center;
  width: 46px; height: 46px;
  border: 1.5px solid var(--gold-bright); border-radius: 10px;
  background: #fffaf2; color: var(--lacquer);
  font-size: 1.35rem; line-height: 1; cursor: pointer;
}
.nav-toggle:hover { background: rgba(138, 31, 26, 0.07); }
.nav-toggle:focus-visible { outline: 3px solid var(--jade); outline-offset: 2px; }

@media (max-width: 719.98px) {
  .site-header__inner { gap: 6px 10px; padding: 10px 16px; }

  /* No-JS fallback: keep the nav reachable but small & tight (not the big 2-column block). */
  .site-nav ul { gap: 2px; }
  .site-nav a { padding: 6px 9px; font-size: 0.8rem; }
  .site-nav .t-vi { font-size: 0.72em; }

  /* JS + button present → collapse the nav behind the ☰ button. */
  .nav-collapsible .nav-toggle { display: inline-flex; }
  .nav-collapsible .site-nav { display: none; }                       /* closed by default */
  .nav-collapsible.nav-open .site-nav {
    display: block; width: 100%; order: 3; margin-top: 6px;
    border-top: 1px solid var(--gold-line); padding-top: 8px;
  }
  .nav-collapsible.nav-open .site-nav ul { flex-direction: column; flex-wrap: nowrap; gap: 2px; }
  .nav-collapsible.nav-open .site-nav a { display: block; padding: 12px 12px; font-size: 1rem; }
  .nav-collapsible.nav-open .site-nav .t-vi { font-size: 0.82em; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  color: #fdf6ea;
  background:
    radial-gradient(120% 90% at 88% -10%, rgba(220, 178, 79, 0.30), transparent 55%),
    radial-gradient(80% 70% at 0% 110%, rgba(173, 51, 40, 0.45), transparent 60%),
    linear-gradient(165deg, rgba(42,26,18,0.20), rgba(79,15,11,0.86)),
    linear-gradient(135deg, var(--lacquer), var(--lacquer-deep));
  padding: 72px 0 80px;
  border-bottom: 3px solid var(--gold-bright);
  box-shadow: inset 0 -1px 0 rgba(255,255,255,0.12);
}
/* faint brass keyline above the gold border for a layered, lacquered edge */
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 3px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 12px; color: var(--gold-soft); font-weight: 700;
  letter-spacing: 0.24em; text-transform: uppercase; font-size: 0.8rem; margin-bottom: 16px;
}
.hero__eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--gold-bright); border-radius: 2px; }
.hero h1 { color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,0.28); max-width: 18ch; }
.hero p { color: rgba(255,248,236,0.94); font-size: 1.12rem; max-width: 48ch; }
.hero p strong { color: var(--gold-soft); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero .btn--ghost { color: #fff; border-color: var(--gold-soft); }
.hero .btn--ghost:hover { background: rgba(236, 212, 154, 0.22); }
.hero .btn--primary { background: var(--gold-bright); color: var(--wood); box-shadow: 0 6px 20px rgba(0,0,0,0.25); }
.hero .btn--primary:hover { background: var(--gold-soft); }

/* ---- Rating badge ---- */
.rating {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 22px;
  background: rgba(0,0,0,0.18); padding: 8px 14px; border-radius: 999px;
  font-size: 0.95rem; color: #fff;
}
.rating__stars { color: var(--gold-soft); letter-spacing: 2px; }

/* ============================================================
   Sections / cards
   ============================================================ */
.section { padding: 60px 0; }
.section--tint {
  background: var(--paper-2);
  border-top: 1px solid var(--gold-line);
  border-bottom: 1px solid var(--gold-line);
  box-shadow: inset 0 1px 0 rgba(255, 252, 244, 0.6), inset 0 -1px 0 rgba(255, 252, 244, 0.6);
}
.section__lead { max-width: 60ch; color: var(--ink-soft); font-size: 1.06rem; }
/* decorative brass underline under top-level section headings — visual rhythm */
.section > .container > h2 { position: relative; padding-bottom: 12px; margin-bottom: 6px; }
.section > .container > h2::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 54px; height: 3px;
  background: linear-gradient(90deg, var(--lacquer), var(--gold-bright)); border-radius: 3px;
}

.grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--2 { grid-template-columns: repeat(2, 1fr); } }

.card {
  background: #fffaf2; border: 1px solid var(--line); border-top: 3px solid var(--gold);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card h3 { margin-top: 0; color: var(--lacquer); }
.card__icon { font-size: 1.6rem; margin-bottom: 8px; }

/* ============================================================
   Menu page
   ============================================================ */
.menu-cat { margin: 0 0 40px; }
.menu-cat__head { display: flex; align-items: baseline; gap: 12px; border-bottom: 2px solid var(--gold-bright); padding-bottom: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.menu-cat__title { margin: 0; color: var(--lacquer); }
.menu-cat__sub { color: var(--ink-soft); font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; font-size: 0.8rem; }
.menu-list { list-style: none; margin: 0; padding: 0; }
.menu-item { display: flex; gap: 16px; align-items: baseline; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.menu-item__main { flex: 1; }
.menu-item__name { font-weight: 700; }
.menu-item__en { font-weight: 500; color: var(--ink-soft); font-size: 0.92em; }
.menu-item__desc { margin: 3px 0 0; color: var(--ink-soft); font-size: 0.94rem; }
.menu-item__price { font-weight: 700; color: var(--jade); white-space: nowrap; text-align: right; }
.menu-disclaimer { margin-top: 24px; padding: 14px 18px; background: rgba(205,163,73,0.15); border-left: 4px solid var(--gold); border-radius: 8px; font-size: 0.92rem; color: var(--ink-soft); }

/* ---- dish number, symbols, notes, modifiers, multi-price ---- */
.menu-intro { font-size: 1.05rem; color: var(--ink-soft); max-width: 64ch; margin-bottom: 28px; }
.menu-cat__note { color: var(--ink-soft); font-size: 0.94rem; margin: -6px 0 14px; max-width: 70ch; }
.menu-subgroup { color: var(--wood); margin: 22px 0 8px; font-size: 1.05rem; border-bottom: 1px solid var(--line); padding-bottom: 4px; }
.menu-item__no {
  flex: 0 0 auto; min-width: 2.6em; text-align: right;
  font-weight: 700; color: var(--gold); font-variant-numeric: tabular-nums;
  font-size: 0.95rem; line-height: 1.7;
}
.menu-item__no--blank { min-width: 2.6em; }
.menu-item__line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.menu-item__note { font-style: italic; }
.menu-item--mod { opacity: 0.9; }
.menu-item__addon {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--lacquer); background: rgba(138,31,26,0.10); padding: 1px 7px; border-radius: 999px;
}
.sym--star { color: var(--lacquer); font-weight: 700; }
.sym--ast { color: var(--ink-soft); }
.menu-item__price--multi { display: grid; gap: 2px; text-align: right; }
.price-opt { display: flex; gap: 10px; justify-content: flex-end; align-items: baseline; }
.price-opt__label { font-weight: 500; color: var(--ink-soft); font-size: 0.82rem; }
.price-opt__amt { font-weight: 700; color: var(--jade); font-variant-numeric: tabular-nums; }

/* ---- legend / notices ---- */
.menu-legend { margin-top: 34px; padding: 18px 20px; background: var(--paper-2); border-radius: var(--radius); border: 1px solid var(--line); }
.menu-legend__line { display: flex; gap: 10px; margin: 0 0 8px; font-size: 0.9rem; color: var(--ink-soft); }
.menu-legend__line:last-child { margin-bottom: 0; }
.menu-legend__sym { flex: 0 0 auto; min-width: 1.8em; font-weight: 800; color: var(--lacquer); }

/* ---- menu tabs ---- */
.menu-tabs { display: flex; gap: 8px; margin: 0 0 28px; border-bottom: 2px solid var(--line); flex-wrap: wrap; }
.menu-tab {
  font: inherit; font-weight: 700; cursor: pointer; border: none; background: none;
  color: var(--ink-soft); padding: 10px 18px; border-radius: 10px 10px 0 0; margin-bottom: -2px;
  border-bottom: 3px solid transparent;
}
.menu-tab[aria-selected="true"] { color: var(--lacquer); border-bottom-color: var(--lacquer); }
.menu-tab:hover { background: rgba(138,31,26,0.06); }
.menu-tab-title { color: var(--lacquer); margin: 40px 0 10px; padding-top: 12px; border-top: 2px solid var(--gold); }
.menu-tab-title:first-child { border-top: none; padding-top: 0; margin-top: 8px; }

/* ============================================================
   Contact / forms / map
   ============================================================ */
.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.info-list a { font-weight: 600; }

.map-embed { width: 100%; aspect-ratio: 16 / 10; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); }

.form { display: grid; gap: 14px; }
.form label { font-weight: 600; font-size: 0.92rem; display: block; margin-bottom: 4px; }
.form input, .form textarea, .form select {
  width: 100%; font: inherit; padding: 12px 14px; border: 1.5px solid var(--line);
  border-radius: 10px; background: #fffaf1; color: var(--ink);
}
.form input:focus, .form textarea:focus, .form select:focus { border-color: var(--jade); outline: none; }
.form__row { display: grid; gap: 14px; }
@media (min-width: 560px) { .form__row { grid-template-columns: 1fr 1fr; } }
.form__status { margin: 0; padding: 12px 14px; border-radius: 10px; font-size: 0.95rem; }
.form__status[data-state="ok"] { background: rgba(63,107,79,0.15); color: var(--jade); }
.form__status[data-state="err"] { background: rgba(138,31,26,0.12); color: var(--lacquer); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--wood); color: #e9ddcb; margin-top: 24px; border-top: 3px solid var(--gold-bright); }
.site-footer a { color: var(--gold-soft); }
.site-footer__inner { display: grid; gap: 24px; padding: 44px 20px; max-width: var(--maxw); margin: 0 auto; }
@media (min-width: 720px) { .site-footer__inner { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h4 { color: #fff; margin: 0 0 10px; font-size: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 3px 0; }
.site-footer__legal { border-top: 1px solid rgba(255,255,255,0.12); padding: 16px 20px; text-align: center; font-size: 0.85rem; color: #b7a890; }

/* ============================================================
   Motion / reduced-motion (accessibility)
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* ============================================================
   Online ordering (order.html) — mobile-first
   ============================================================ */
.order-grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
/* Grid items default to min-width:auto, which lets a nowrap child (the TOC bar) blow the
   track out to its content width and overflow the page. min-width:0 lets the track shrink
   so the TOC's overflow-x:auto actually scrolls instead of forcing the column to 7000px. */
.order-menu-col, .order-cart-col { min-width: 0; }
.order-h { color: var(--lacquer); margin: 0 0 14px; font-size: 1.25rem; }
.order-loading { color: var(--ink-soft); }

@media (min-width: 920px) {
  .order-grid { grid-template-columns: 1.6fr 1fr; align-items: start; }
  .order-cart-col { position: sticky; top: calc(var(--header-h, 80px) + 16px); }
}

/* menu item rows with buy controls */
.oitem-list { list-style: none; margin: 0; padding: 0; }
.oitem { padding: 14px 0; border-bottom: 1px dashed var(--line); }
.oitem__info { margin-bottom: 8px; }
.oitem__name { font-weight: 700; }
.oitem__desc { margin: 2px 0 0; color: var(--ink-soft); font-size: 0.9rem; }
.oitem__buy { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.oitem__price { font-weight: 700; color: var(--jade); }
.oitem__opt { font: inherit; padding: 8px 10px; border: 1.5px solid var(--line); border-radius: 8px; background: #fffaf1; flex: 1 1 160px; min-width: 0; }
.oitem__qty { font: inherit; width: 64px; padding: 8px; border: 1.5px solid var(--line); border-radius: 8px; background: #fffaf1; text-align: center; }
.oitem__add { padding: 9px 16px; font-size: 0.92rem; }
.oitem__note { width: 100%; margin-top: 8px; font: inherit; font-size: 0.9rem; padding: 8px 10px; border: 1.5px solid var(--line); border-radius: 8px; background: #fffaf1; }
.oitem__opt:focus, .oitem__qty:focus, .oitem__note:focus { border-color: var(--jade); outline: none; }

/* cart panel */
.cart-panel { background: #fffaf1; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.cart-empty { color: var(--ink-soft); font-size: 0.95rem; }
.cart-line { display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cart-line__name { font-weight: 600; font-size: 0.95rem; }
.cart-line__note { margin: 2px 0 0; font-size: 0.84rem; color: var(--ink-soft); font-style: italic; }
.cart-line__right { text-align: right; white-space: nowrap; }
.cart-line__amt { font-weight: 700; color: var(--jade); display: block; }
.cart-line__rm { background: none; border: none; color: var(--lacquer); font: inherit; font-size: 0.8rem; cursor: pointer; padding: 2px 0; text-decoration: underline; }
.cart-qty { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; }
.cart-qty__btn { width: 28px; height: 28px; border: 1.5px solid var(--line); background: #fff; border-radius: 7px; font-size: 1.1rem; line-height: 1; cursor: pointer; color: var(--wood); }
.cart-qty__n { min-width: 1.4em; text-align: center; font-weight: 700; }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 14px; padding-top: 12px; border-top: 2px solid var(--gold); font-weight: 800; font-size: 1.1rem; }
.cart-total span:last-child { color: var(--jade); }
.cart-note { font-size: 0.82rem; color: var(--ink-soft); margin: 6px 0 14px; }

/* fulfillment + contact fields */
.ofield { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin: 0 0 16px; display: grid; gap: 10px; }
.ofield legend { font-weight: 700; color: var(--wood); padding: 0 6px; }
.oradio { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 0.95rem; cursor: pointer; }
.oradio input { width: auto; }
.ofield__sub { display: grid; gap: 6px; padding: 8px 0 2px; }
.ofield__sub small { color: var(--ink-soft); font-size: 0.82rem; }

/* review modal */
.review { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 18px; background: rgba(42, 26, 18, 0.62); backdrop-filter: blur(2px); overflow-y: auto; }
/* BUGFIX: a class selector beats the UA [hidden] rule, so the modal showed on load.
   Restore [hidden] semantics explicitly. */
.review[hidden] { display: none; }
.review__card { border-top: 4px solid var(--gold-bright); }
.review__card { background: var(--paper); border-radius: var(--radius); padding: 24px; max-width: 520px; width: 100%; box-shadow: 0 20px 60px rgba(0,0,0,0.35); max-height: 92vh; overflow-y: auto; }
.review__card h2 { color: var(--lacquer); margin: 0 0 6px; }
.review__lead { color: var(--ink-soft); font-size: 0.92rem; }
.review-row { margin: 4px 0; font-weight: 600; }
.review-row--note { font-weight: 400; color: var(--ink-soft); }
.review-list { list-style: none; margin: 14px 0; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: 8px; }
.review-item { display: flex; justify-content: space-between; gap: 12px; font-size: 0.95rem; }
.review-item__amt { font-weight: 700; color: var(--jade); white-space: nowrap; }
.review-total { display: flex; justify-content: space-between; font-weight: 800; font-size: 1.15rem; margin: 6px 0 18px; }
.review-total span:last-child { color: var(--jade); }
.review__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
@media (max-width: 420px) { .review__actions { flex-direction: column-reverse; } .review__actions .btn { width: 100%; text-align: center; } }

/* ============================================================
   Menu chrome: search + table-of-contents (jump nav) + scroll-spy
   ============================================================ */
.menu-search { margin: 0 0 20px; }
.menu-search__label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; }
.menu-search__box { position: relative; max-width: 540px; }
.menu-search__input {
  width: 100%; font: inherit; padding: 12px 42px 12px 14px;
  border: 1.5px solid var(--line); border-radius: 10px; background: #fffaf2; color: var(--ink);
}
.menu-search__input:focus { border-color: var(--jade); outline: none; }
.menu-search__clear {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border: none; border-radius: 50%; cursor: pointer;
  background: rgba(138, 31, 26, 0.10); color: var(--lacquer); font-size: 1.2rem; line-height: 1;
}
.menu-search__clear:hover { background: rgba(138, 31, 26, 0.18); }
.menu-noresults { padding: 16px 18px; background: rgba(205,163,73,0.14); border-left: 4px solid var(--gold); border-radius: 8px; font-weight: 600; color: var(--ink-soft); }

/* Targets get an offset so the sticky header/TOC bar doesn't cover the heading.
   --header-h is set in JS to the real (wrap-dependent) sticky-header height. */
.menu-cat { scroll-margin-top: calc(var(--header-h, 80px) + 64px); }

/* Base (mobile + the Order page): horizontal sticky bar — sits right below the header. */
.toc {
  position: sticky; top: var(--header-h, 80px); z-index: 40;
  display: flex; gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch;
  padding: 8px 0; margin: 0 0 18px;
  background: var(--paper); border-bottom: 1px solid var(--gold-line); scrollbar-width: thin;
}
.toc:empty { display: none; }
.toc__link {
  flex: 0 0 auto; display: block; padding: 7px 12px; border-radius: 8px;
  color: var(--wood); text-decoration: none; font-weight: 600; font-size: 0.88rem;
  white-space: nowrap; border: 1px solid transparent;
}
.toc__link:hover { background: rgba(138, 31, 26, 0.07); }
.toc__link--active { background: rgba(138, 31, 26, 0.10); color: var(--lacquer); border-color: var(--gold-line); }
.toc__link .t-vi { color: var(--ink-soft); }

.menu-layout { display: grid; gap: 24px; grid-template-columns: 1fr; }
/* same min-width:0 guard so the content column can shrink instead of overflowing */
.menu-layout > * { min-width: 0; }

/* Desktop: the Menu page TOC becomes a sticky vertical sidebar (Order page keeps the bar). */
@media (min-width: 720px) {
  .menu-layout { grid-template-columns: 220px 1fr; align-items: start; }
  .toc:not(.toc--bar) {
    position: sticky; top: calc(var(--header-h, 80px) + 14px); z-index: auto;
    flex-direction: column; gap: 3px; overflow-x: visible; overflow-y: auto;
    max-height: calc(100vh - var(--header-h, 80px) - 28px); padding: 0; margin: 0;
    background: transparent; border-bottom: none; align-self: start;
  }
  .toc:not(.toc--bar) .toc__link { white-space: normal; }
  /* On desktop the Menu TOC is a sidebar (not above content), so only clear the header. */
  .menu-cat { scroll-margin-top: calc(var(--header-h, 80px) + 16px); }
}

/* ---- Order page: dish number + filtering ---- */
.oitem__nameline { display: flex; align-items: baseline; gap: 8px; }
.oitem__no {
  flex: 0 0 auto; min-width: 2.2em; text-align: right;
  font-weight: 700; color: var(--gold); font-variant-numeric: tabular-nums; font-size: 0.92rem;
}
/* Order page: TOC bar sits above the menu list, so headings clear header + bar. */
.order-menu-col .menu-cat { scroll-margin-top: calc(var(--header-h, 80px) + 64px); }
.order-menu-col .toc { top: var(--header-h, 80px); }

/* ---- Mobile (≤719px): replace the horizontal TOC bar with a native <select> dropdown.
   Desktop is unchanged (Menu sidebar / Order horizontal bar stay as-is). ---- */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.toc-select-wrap { display: none; margin: 2px 0 18px; }   /* hidden on desktop; shown on mobile below */
.toc-select {
  width: 100%; font: inherit; font-size: 0.95rem; color: var(--ink); cursor: pointer;
  padding: 11px 12px; border: 1.5px solid var(--gold-bright); border-radius: 10px; background: #fffaf2;
}
.toc-select:focus-visible { outline: 3px solid var(--jade); outline-offset: 2px; }

@media (max-width: 719.98px) {
  .toc { display: none; }                 /* hide the horizontal TOC bar */
  .toc-select-wrap { display: block; }    /* show the dropdown instead */
  /* No sticky TOC bar on mobile → headings only need to clear the sticky header. */
  .menu-cat { scroll-margin-top: calc(var(--header-h, 80px) + 16px); }
  .order-menu-col .menu-cat { scroll-margin-top: calc(var(--header-h, 80px) + 16px); }
}
