/* =========================================================
   The Phở Spot — theme taken from the printed menu:
   near-black board, metallic gold type, sage-green photo rings
   ========================================================= */
:root {
  --ink: #0f0e0c;
  --ink-2: #171512;
  --ink-3: #201d19;
  --line: rgba(245, 183, 15, .18);
  --line-soft: rgba(255, 255, 255, .08);
  --gold: #f5b70f;
  --gold-hi: #fce45a;
  --gold-lo: #c88400;
  --gold-grad: linear-gradient(135deg, #fde872 0%, #f8c321 38%, #d99200 72%, #fad53a 100%);
  --sage: #8fa77f;
  --sage-deep: #5f7655;
  --cream: #f5efe3;
  --text: #ece6da;
  --muted: #a8a094;
  --chili: #d9553a;
  --radius: 18px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, .7);
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ink); color: var(--text);
  font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { line-height: 1.15; margin: 0; }
h2 { font: 700 clamp(28px, 4.2vw, 44px)/1.12 var(--serif); color: var(--cream); letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.gold, .kicker {
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.kicker { font: 700 13px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; margin-bottom: 12px; display: inline-block; }
.sub { color: var(--muted); max-width: 60ch; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; font-weight: 600; text-decoration: none;
  border: 1px solid transparent; transition: transform .15s, box-shadow .2s, background .2s;
}
.btn-gold { background: var(--gold-grad); color: #1a1408; box-shadow: 0 10px 30px -10px rgba(245, 183, 15, .6), inset 0 1px 0 rgba(255,255,255,.5); }
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 14px 34px -10px rgba(245, 183, 15, .75), inset 0 1px 0 rgba(255,255,255,.5); }
.btn-gold:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn-ghost { border-color: var(--line); background: rgba(255,255,255,.03); }
.btn-ghost:hover { border-color: var(--gold); }
.btn-block { width: 100%; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-soft); background: var(--ink-3); display: grid; place-items: center; font-size: 15px; }
.icon-btn:hover { border-color: var(--gold); }
.link-gold { color: var(--gold); font-weight: 600; text-decoration: none; }
.link-gold:hover { color: var(--gold-hi); }

/* ---------- Overlays / sheets ---------- */
.overlay { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.6); backdrop-filter: blur(3px); animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
dialog.sheet {
  border: 1px solid var(--line); border-radius: 24px; padding: 0; background: var(--ink-2); color: var(--text);
  width: min(560px, 100% - 24px); max-height: min(88vh, 860px); box-shadow: 0 40px 80px -20px #000; overflow: hidden;
}
dialog.sheet[open] { display: flex; flex-direction: column; animation: pop .25s cubic-bezier(.2,.9,.3,1.2); }
dialog::backdrop { background: rgba(0,0,0,.65); backdrop-filter: blur(3px); }
@keyframes pop { from { opacity: 0; transform: translateY(20px) scale(.98); } }
.sheet-scroll { overflow-y: auto; flex: 1; overscroll-behavior: contain; }
.sheet-hero { position: relative; aspect-ratio: 16/9; overflow: hidden; }
.sheet-hero img { width: 100%; height: 100%; object-fit: cover; }
.sheet-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, var(--ink-2)); }
.sheet-close { position: absolute; top: 14px; right: 14px; z-index: 2; }
.sheet-pad { padding: 22px 24px; }
.sheet h2 { font-size: 26px; }
.sheet .viet { color: var(--sage); margin-top: 4px; }
.sheet .desc { color: var(--muted); margin-top: 10px; font-size: 15px; }
.opt-group { margin-top: 22px; border: 0; padding: 0; }
.opt-group legend { display: flex; width: 100%; justify-content: space-between; align-items: center; padding: 0 0 10px; font-weight: 600; color: var(--cream); }
.req { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; padding: 3px 8px; border-radius: 6px; background: rgba(245,183,15,.14); color: var(--gold-hi); }
.req.ok { background: rgba(143,167,127,.18); color: #b6cda6; }
.opt { display: flex; flex-direction: row; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line-soft); border-radius: 12px; margin-bottom: 8px; cursor: pointer; color: var(--text); font-weight: 400; font-size: 15px; transition: border-color .15s, background .15s; }
.opt:hover { border-color: var(--line); }
.opt:has(input:checked) { border-color: var(--gold); background: rgba(245,183,15,.06); }
.opt input { width: 20px; height: 20px; accent-color: var(--gold); margin: 0; flex: none; padding: 0; }
.opt span { flex: 1; }
.opt em { font-style: normal; color: var(--muted); font-size: 14px; }
.opt:has(input:disabled) { opacity: .45; cursor: not-allowed; }
.sheet-foot { display: flex; gap: 12px; align-items: center; padding: 16px 24px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line-soft); background: var(--ink-2); }
.stepper { display: flex; align-items: center; border: 1px solid var(--line-soft); border-radius: 999px; flex: none; }
.stepper button { width: 40px; height: 44px; border: 0; background: transparent; font-size: 20px; color: var(--gold); }
.stepper button:disabled { color: var(--muted); opacity: .4; }
.stepper output { min-width: 26px; text-align: center; font-weight: 600; }
.sheet-foot .btn { flex: 1; padding-inline: 16px; }

/* ---------- Cart drawer ---------- */
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 70; width: min(420px, 100%);
  background: var(--ink-2); border-left: 1px solid var(--line); display: flex; flex-direction: column;
  transform: translateX(105%); transition: transform .35s cubic-bezier(.2,.8,.2,1); box-shadow: -30px 0 60px -20px #000;
}
.drawer.open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 22px; border-bottom: 1px solid var(--line-soft); }
.drawer-head h2 { font-size: 24px; }
.pickup-toggle { display: grid; grid-template-columns: 1fr 1fr; margin: 16px 22px 0; padding: 4px; border-radius: 999px; background: var(--ink); border: 1px solid var(--line-soft); }
.pickup-toggle button { border: 0; background: transparent; padding: 9px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--muted); }
.pickup-toggle button[aria-checked="true"] { background: var(--ink-3); color: var(--gold-hi); box-shadow: inset 0 0 0 1px var(--line); }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 22px; overscroll-behavior: contain; }
.ci { display: flex; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line-soft); }
.ci-main { flex: 1; min-width: 0; }
.ci-name { font-weight: 600; color: var(--cream); }
.ci-mods { color: var(--muted); font-size: 13px; margin-top: 2px; }
.ci-row { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.ci .stepper button { width: 32px; height: 32px; font-size: 17px; }
.ci-remove { border: 0; background: none; color: var(--muted); font-size: 13px; text-decoration: underline; padding: 0; margin-left: 10px; }
.cart-empty { text-align: center; padding: 60px 10px; color: var(--muted); }
.cart-empty .bowl { font-size: 46px; margin-bottom: 8px; }
.drawer-foot { padding: 16px 22px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line-soft); }
.sum { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); padding: 3px 0; }
.sum.total { font-size: 18px; color: var(--cream); font-weight: 700; padding-top: 10px; margin-top: 6px; border-top: 1px dashed var(--line-soft); }
.drawer-foot .btn { margin-top: 14px; }
.eta { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--sage); margin-bottom: 10px; }

/* ---------- Checkout ---------- */
.checkout-sheet { width: min(640px, 100% - 24px); }
.co-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--line-soft); }
.co-steps { display: flex; gap: 6px; padding: 14px 24px 0; }
.co-steps span { flex: 1; height: 4px; border-radius: 2px; background: var(--ink-3); }
.co-steps span.on { background: var(--gold-grad); }
.co-section { margin-bottom: 22px; }
.co-section h3 { font: 600 13px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--sage); margin-bottom: 12px; }
.co-fields { display: grid; gap: 12px; }
.choice-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; }
.choice { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-soft); background: transparent; text-align: left; color: var(--text); font-size: 14px; }
.choice small { color: var(--muted); font-size: 12px; }
.choice[aria-pressed="true"] { border-color: var(--gold); background: rgba(245,183,15,.07); }
.choice[aria-pressed="true"] b { color: var(--gold-hi); }
.tip-row { grid-template-columns: repeat(4, 1fr); }
.tip-row .choice { align-items: center; text-align: center; }
.card-mock { padding: 16px; border-radius: 14px; border: 1px dashed var(--line); background: var(--ink); }
.card-mock .row2 { margin-top: 12px; }
.demo-note { font-size: 13px; color: var(--muted); display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; }
.demo-note b { color: var(--gold); }
.co-summary { padding: 14px 16px; border-radius: 14px; background: var(--ink); border: 1px solid var(--line-soft); }
.err { color: #f08a72; font-size: 13px; }

/* Confirmation */
.confirm { text-align: center; padding: 40px 28px 30px; }
.check { width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-grad); box-shadow: 0 0 0 10px rgba(245,183,15,.12); }
.check svg { width: 40px; height: 40px; stroke: #1a1408; stroke-width: 3.5; fill: none; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .5s .2s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.confirm h2 { margin-bottom: 8px; }
.order-no { display: inline-block; margin: 14px 0 20px; padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line); font-weight: 700; letter-spacing: .1em; color: var(--gold-hi); }
.track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0 26px; text-align: center; font-size: 13px; color: var(--muted); }
.track div { padding-top: 12px; border-top: 3px solid var(--ink-3); }
.track div.on { border-color: var(--gold); color: var(--cream); font-weight: 600; }

/* Toast + mobile bar */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 90; transform: translate(-50%, 30px); opacity: 0; visibility: hidden; padding: 12px 20px; border-radius: 999px; background: var(--cream); color: var(--ink); font-weight: 600; font-size: 14px; box-shadow: var(--shadow); transition: transform .3s cubic-bezier(.2,.9,.3,1.2); pointer-events: none; white-space: nowrap; max-width: calc(100% - 32px); overflow: hidden; text-overflow: ellipsis; }
.toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; transition: transform .3s cubic-bezier(.2,.9,.3,1.2), opacity .2s; }
.mobile-bar { display: none; }


/* =================== v3: order-first layout =================== */
.ring { border-radius: 50%; overflow: hidden; aspect-ratio: 1; border: 5px solid var(--sage); box-shadow: 0 0 0 9px rgba(143,167,127,.12), 0 20px 40px -20px #000; background: var(--ink-3); flex: none; }
.ring img { width: 100%; height: 100%; object-fit: cover; }
.tick svg { width: 62%; height: 62%; fill: none; stroke: currentColor; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.b-steps button span svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
.b-tile .tick { display: none; place-items: center; }
.b-tile[aria-pressed="true"] .tick { display: grid !important; }
.b-pill .tick svg { width: 14px; height: 14px; }
.in-cart { position: absolute; top: 12px; right: 14px; font-size: 11.5px; font-weight: 700; color: #1a1408; background: var(--gold-grad); padding: 4px 9px; border-radius: 999px; }
.item.has-img .in-cart { top: 8px; right: 10px; }
.promo { align-items: stretch; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-lg { padding: 16px 22px; font-size: 16px; justify-content: space-between; }
.link-gold { color: var(--gold); font-weight: 600; text-decoration: none; }
.badge { display: inline-block; font: 700 11px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; background: rgba(245,183,15,.14); color: var(--gold-hi); border: 1px solid rgba(245,183,15,.35); }
.ring-xs { width: 84px; margin: 0 auto 14px; border-width: 3px; box-shadow: 0 0 0 6px rgba(143,167,127,.1); }
.ring-sm { width: 150px; border-width: 4px; }

/* ---------- Top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(15,14,12,.9); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); border-bottom: 1px solid var(--line-soft); }
.topbar-inner { height: var(--header-h); display: flex; align-items: center; gap: 22px; }
.brand-logo { height: 54px; width: auto; }
.order-ctx { display: flex; align-items: center; gap: 16px; margin-left: 12px; padding-left: 22px; border-left: 1px solid var(--line-soft); min-width: 0; }
.seg { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 999px; background: var(--ink-3); border: 1px solid var(--line-soft); flex: none; }
.seg button { border: 0; background: transparent; padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--muted); }
.seg button[aria-checked="true"] { background: var(--gold-grad); color: #1a1408; }
.ctx-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.ctx-line { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--cream); }
.ctx-sub { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); flex: none; }
.status-dot.open { background: #6fcf7f; box-shadow: 0 0 0 4px rgba(111,207,127,.18); }
.status-dot.closed { background: var(--chili); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-link { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-soft); color: var(--gold); }
.icon-link:hover { border-color: var(--gold); }
.icon-link svg { width: 18px; height: 18px; }
.cart-btn { position: relative; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 18px; border-radius: 999px; border: 0; background: var(--gold-grad); color: #1a1408; font-weight: 700; font-size: 15px; }
.cart-btn svg { width: 20px; height: 20px; }
.cart-count { position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--chili); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--ink); }
.bump { animation: bump .45s; }
@keyframes bump { 40% { transform: scale(1.2); } }

/* ---------- Promo ---------- */
.promo { display: grid; grid-template-columns: 1.35fr 1fr; gap: 20px; padding: 26px 0 10px; }
.promo-main { position: relative; overflow: hidden; padding: 40px 44px; border-radius: 26px; border: 1px solid var(--line); background: radial-gradient(120% 90% at 0% 0%, rgba(245,183,15,.12), transparent 55%), var(--ink-2); }
.swoosh { position: absolute; inset: -40% -30% auto auto; width: 80%; height: 180%; pointer-events: none; opacity: .55;
  background: repeating-radial-gradient(ellipse at 110% 20%, transparent 0 40px, rgba(245,183,15,.09) 41px 43px, transparent 44px 62px);
  -webkit-mask: linear-gradient(90deg, transparent, #000 55%); mask: linear-gradient(90deg, transparent, #000 55%); }
.promo h1 { position: relative; font: 800 clamp(36px, 4.4vw, 58px)/1.04 var(--serif); color: var(--cream); letter-spacing: -.02em; margin-bottom: 14px; }
.promo .lede { position: relative; color: var(--muted); font-size: 17px; max-width: 44ch; margin-bottom: 24px; }
.promo-ctas { position: relative; display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.facts { position: relative; list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: var(--muted); }
.facts li { display: flex; align-items: center; gap: 8px; }
.facts svg { width: 16px; height: 16px; color: var(--sage); }
.promo-byo { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; padding: 30px 28px 26px; border-radius: 26px; border: 1px solid var(--line); background: radial-gradient(100% 70% at 50% 0%, rgba(143,167,127,.16), transparent 65%), var(--ink-2); color: var(--text); transition: transform .2s, border-color .2s; }
.promo-byo:hover { transform: translateY(-3px); border-color: var(--gold); }
.promo-byo .ring { width: min(210px, 60%); }
.promo-byo-body { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; }
.promo-byo-title { font: 700 28px/1.1 var(--serif); color: var(--cream); }
.promo-byo-sub { color: var(--muted); font-size: 15px; max-width: 32ch; }
.promo-byo-foot { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.from { color: var(--muted); font-size: 14px; }
.from b { color: var(--gold); font-size: 20px; }

/* ---------- Ordering layout ---------- */
.order-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr) 370px; gap: 28px; align-items: start; padding: 26px 0 60px; }
.cat-nav { position: sticky; top: calc(var(--header-h) + 18px); }
.cat-nav-title { font: 700 12px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--sage); margin: 6px 0 12px 12px; }
.cat-tabs { display: flex; flex-direction: column; gap: 2px; }
.cat-tab { display: grid; grid-template-columns: 1fr auto; text-align: left; padding: 10px 12px; border: 0; border-radius: 12px; background: transparent; color: var(--muted); transition: background .15s, color .15s; position: relative; }
.cat-tab:hover { background: rgba(255,255,255,.04); color: var(--cream); }
.ct-name { font-weight: 600; font-size: 15px; }
.ct-viet { grid-column: 1; font-size: 12px; color: var(--muted); opacity: .8; }
.ct-n { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-size: 12px; font-weight: 600; min-width: 26px; text-align: center; padding: 3px 7px; border-radius: 999px; background: var(--ink-3); }
.cat-tab[aria-current="true"] { background: rgba(245,183,15,.1); color: var(--gold-hi); }
.cat-tab[aria-current="true"]::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: var(--gold-grad); }
.cat-tab[aria-current="true"] .ct-n { background: var(--gold-grad); color: #1a1408; }

.search { display: flex; flex-direction: row; align-items: center; gap: 10px; height: 52px; padding: 0 16px; border-radius: 16px; border: 1px solid var(--line-soft); background: var(--ink-2); margin-bottom: 26px; transition: border-color .2s; }
.search:focus-within { border-color: var(--gold); }
.search svg { width: 20px; height: 20px; color: var(--muted); flex: none; }
.search input { flex: 1; border: 0; background: transparent; padding: 0; color: var(--cream); font-size: 16px; outline: none; }
.search-clear { border: 0; background: var(--ink-3); width: 28px; height: 28px; border-radius: 50%; color: var(--muted); font-size: 12px; }

.row-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.row-head h2, .menu-cat-head h2 { font: 700 26px/1.15 var(--serif); color: var(--cream); }
.popular { margin-bottom: 18px; }
.pop-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(190px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--ink-3) transparent; }
.pop { scroll-snap-align: start; border-radius: 18px; overflow: hidden; border: 1px solid var(--line-soft); background: var(--ink-2); cursor: pointer; transition: transform .2s, border-color .2s; display: flex; flex-direction: column; }
.pop:hover { transform: translateY(-3px); border-color: var(--line); }
.pop-img { position: relative; aspect-ratio: 4/3; background: radial-gradient(circle at 50% 40%, var(--ink-3), var(--ink)); overflow: hidden; }
.pop-img img { width: 100%; height: 100%; object-fit: cover; }
.pop-img .badge { position: absolute; left: 10px; top: 10px; background: rgba(15,14,12,.8); }
.pop-body { padding: 12px 14px 14px; display: flex; flex-direction: column; flex: 1; }
.pop-body h3 { font-size: 15px; font-weight: 600; color: var(--cream); line-height: 1.3; }
.pop-foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; }

.menu-cat { padding-top: 22px; }
.menu-cat-head { display: flex; align-items: baseline; justify-content: space-between; padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid; border-image: linear-gradient(90deg, var(--gold), transparent) 1; }
.menu-cat-head span { font: 700 15px var(--serif); color: var(--sage); text-transform: uppercase; letter-spacing: .06em; }
.items { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.item { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 14px; padding: 16px 16px 16px 18px; border-radius: 18px; border: 1px solid var(--line-soft); background: var(--ink-2); cursor: pointer; transition: border-color .2s, background .2s; min-height: 148px; }
.item:hover { border-color: var(--line); background: #1b1915; }
.item.in { border-color: rgba(245,183,15,.45); }
.item-text { display: flex; flex-direction: column; min-width: 0; }
.item-name { font-size: 16px; font-weight: 600; color: var(--cream); line-height: 1.3; }
.item-viet { color: var(--sage); font-size: 13.5px; margin: 2px 0 0; }
.item-desc { color: var(--muted); font-size: 13.5px; line-height: 1.5; margin: 6px 0 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item-meta { margin-top: auto; padding-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding-right: 56px; }
.item.has-img .item-meta { padding-right: 0; }
.price { font-weight: 700; color: var(--gold); }
.tag { font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 3px 7px; border-radius: 6px; background: rgba(255,255,255,.06); color: var(--muted); }
.tag-popular { background: rgba(245,183,15,.14); color: var(--gold-hi); }
.tag-spicy { background: rgba(217,85,58,.15); color: #f08a72; }
.tag-veg { background: rgba(143,167,127,.18); color: #b6cda6; }
.custom-hint { font-size: 12px; color: var(--muted); }
.custom-hint::before { content: "⚙ "; }
.item-img { width: 104px; height: 104px; border-radius: 14px; overflow: hidden; border: 2px solid var(--sage); align-self: start; }
.item-img img { width: 100%; height: 100%; object-fit: cover; }
.item-action { display: flex; align-items: center; gap: 8px; }
.item > .item-action { position: absolute; right: 14px; bottom: 14px; }
.item.has-img > .item-action { right: 22px; bottom: 16px; }
.add { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--gold-grad); color: #1a1408; font-size: 22px; font-weight: 600; line-height: 1; display: grid; place-items: center; box-shadow: 0 6px 16px -6px rgba(245,183,15,.6), 0 0 0 3px var(--ink-2); transition: transform .15s; }
.add:hover { transform: scale(1.08); }
.add:active { transform: scale(.92); }
.in-cart { font-size: 12px; font-weight: 600; color: var(--gold-hi); background: rgba(15,14,12,.85); padding: 4px 8px; border-radius: 999px; }
.qty-pill { display: inline-flex; align-items: center; height: 38px; border-radius: 999px; background: var(--gold-grad); color: #1a1408; box-shadow: 0 0 0 3px var(--ink-2); }
.qty-pill button { width: 34px; height: 100%; border: 0; background: transparent; color: #1a1408; font-size: 18px; font-weight: 700; }
.qty-pill output { min-width: 18px; text-align: center; font-weight: 700; }
.qty-pill.sm { height: 32px; background: var(--ink-3); color: var(--cream); box-shadow: none; border: 1px solid var(--line-soft); }
.qty-pill.sm button { color: var(--gold); width: 32px; font-size: 15px; }
.empty { text-align: center; padding: 60px 0; color: var(--cream); }
.notice { color: var(--muted); font-size: 13px; margin-top: 30px; font-style: italic; }

/* ---------- Cart panel ---------- */
.cart-panel { position: sticky; top: calc(var(--header-h) + 18px); }
.cart-card { border-radius: 22px; border: 1px solid var(--line); background: var(--ink-2); display: flex; flex-direction: column; max-height: calc(100vh - var(--header-h) - 36px); overflow: hidden; }
.cart-card.flash { animation: flash .8s; }
@keyframes flash { 30% { box-shadow: 0 0 0 4px rgba(245,183,15,.5); } }
.cart-head { display: flex; align-items: baseline; justify-content: space-between; padding: 18px 20px 12px; border-bottom: 1px solid var(--line-soft); }
.cart-head h2 { font: 700 22px var(--serif); color: var(--cream); }
.cart-head .muted { font-size: 13px; }
.cart-items { overflow-y: auto; padding: 4px 20px; overscroll-behavior: contain; }
.cart-foot { padding: 12px 20px 18px; border-top: 1px solid var(--line-soft); }
.cart-foot:empty { display: none; }
.cart-empty { text-align: center; padding: 30px 6px 26px; }
.ce-title { font: 700 18px var(--serif); color: var(--cream); margin: 0 0 4px; }
.cart-empty .muted { font-size: 14px; }
.ci { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.ci:last-child { border-bottom: 0; }
.ci-img { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; flex: none; }
.ci-ph { display: grid; place-items: center; background: var(--ink-3); color: var(--gold); font: 700 20px var(--serif); }
.ci-main { flex: 1; min-width: 0; }
.ci-top { display: flex; justify-content: space-between; gap: 10px; }
.ci-name { font-weight: 600; color: var(--cream); font-size: 15px; line-height: 1.3; }
.ci-price { font-weight: 600; color: var(--cream); font-size: 15px; }
.ci-mods { color: var(--muted); font-size: 13px; margin-top: 2px; line-height: 1.4; }
.ci-row { margin-top: 8px; }
.upsell { margin-bottom: 12px; }
.upsell p { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sage); margin: 0 0 8px; }
.ups-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ups { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 9px 12px; border-radius: 12px; border: 1px dashed var(--line); background: transparent; color: var(--text); font-size: 13px; text-align: left; }
.ups:hover { border-style: solid; background: rgba(245,183,15,.06); }
.ups b { color: var(--gold); font-size: 13px; }
.sums { padding: 6px 0 4px; }
.sum { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); padding: 2px 0; }
.sum.total { font-size: 17px; color: var(--cream); font-weight: 700; padding-top: 8px; margin-top: 6px; border-top: 1px dashed var(--line-soft); }
.cart-foot .btn, .drawer-foot .btn { margin-top: 12px; }
.eta { font-size: 12.5px; color: var(--sage); text-align: center; margin: 10px 0 0; }

/* ---------- Info ---------- */
.info { padding: 40px 0 70px; }
.sec-title { font: 700 30px var(--serif); color: var(--cream); margin-bottom: 18px; }
.info-grid { display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 16px; }
.info-card { padding: 24px; border-radius: 20px; border: 1px solid var(--line-soft); background: var(--ink-2); }
.info-card h3 { font: 600 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--sage); margin-bottom: 14px; }
.info-card p { color: var(--text); }
.hours { width: 100%; border-collapse: collapse; font-size: 14px; }
.hours th { text-align: left; font-weight: 400; color: var(--muted); padding: 4px 0; }
.hours td { text-align: right; color: var(--cream); }
.hours tr.today th, .hours tr.today td { color: var(--gold-hi); font-weight: 600; }
.map { border-radius: 14px; overflow: hidden; height: 170px; margin-bottom: 12px; background: var(--ink-3); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.4) contrast(1.05); }
.phone-big { display: block; font: 700 26px var(--serif); text-decoration: none; color: var(--gold); margin-bottom: 14px; }
.socials { display: flex; gap: 10px; }
.soc { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; text-decoration: none; }
.soc svg { width: 18px; height: 18px; fill: var(--gold); }
.soc-text { font-weight: 800; font-size: 12px; color: var(--gold); }
.site-footer { padding: 30px 0 calc(30px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line-soft); }
.footer-inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-logo { height: 48px; width: auto; }
.site-footer p { margin: 0; color: var(--muted); font-size: 13.5px; }
.site-footer a { color: var(--gold); text-decoration: none; }
.fine { margin-left: auto !important; }

/* ---------- Builder ---------- */
dialog.builder { width: min(1000px, 100% - 32px); max-height: min(92vh, 900px); }
.b-head { display: flex; justify-content: space-between; align-items: flex-start; padding: 20px 24px 0; }
.b-head .kicker { margin-bottom: 6px; font-size: 11px; }
.b-head h2 { font: 700 28px var(--serif); color: var(--cream); }
.b-steps { list-style: none; display: flex; gap: 6px; padding: 16px 24px; margin: 0; border-bottom: 1px solid var(--line-soft); overflow-x: auto; }
.b-steps li { flex: 1; min-width: max-content; }
.b-steps button { width: 100%; display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line-soft); background: transparent; color: var(--muted); font-size: 14px; font-weight: 600; }
.b-steps button span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--ink-3); font-size: 12px; }
.b-steps button.on { border-color: var(--gold); color: var(--cream); background: rgba(245,183,15,.07); }
.b-steps button.on span, .b-steps button.done span { background: var(--gold-grad); color: #1a1408; }
.b-steps button.done { color: var(--text); }
.b-steps button:disabled { opacity: .4; cursor: not-allowed; }
.b-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 280px; }
.b-main { padding: 22px 24px; overflow-y: auto; }
.b-side { padding: 22px; border-left: 1px solid var(--line-soft); background: radial-gradient(100% 60% at 50% 0%, rgba(245,183,15,.08), transparent 60%); overflow-y: auto; position: relative; }
.b-side .ring { margin: 10px auto 44px; }
.b-dots { position: absolute; left: 50%; top: 107px; width: 0; height: 0; }
.b-dots span { position: absolute; transform: rotate(var(--a)) translateX(96px) rotate(calc(-1 * var(--a))) translate(-50%, -50%); padding: 3px 9px; border-radius: 999px; background: var(--gold-grad); color: #1a1408; font-size: 11px; font-weight: 700; white-space: nowrap; animation: popin .3s cubic-bezier(.2,.9,.3,1.4); }
@keyframes popin { from { opacity: 0; scale: .5; } }
.b-side h3 { font: 700 18px var(--serif); color: var(--cream); margin-bottom: 6px; }
.b-row { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line-soft); font-size: 13px; }
.b-row span { color: var(--muted); flex: none; }
.b-row b { font-weight: 500; color: var(--cream); text-align: right; }
.b-group + .b-group { margin-top: 28px; }
.b-group-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 16px; }
.b-group-head h3 { font: 700 21px var(--serif); color: var(--cream); }
.b-group-head .muted { font-size: 13px; }
.b-group-head .req { margin-left: auto; }
.b-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 18px 12px; }
.b-tile { display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; padding: 6px 4px; border: 0; background: none; color: var(--text); }
.bowl { position: relative; width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 8px;
  background: radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--tone) 90%, #fff) 0 50%, var(--tone) 60%, color-mix(in srgb, var(--tone) 70%, #000) 64%, #2b2824 65% 70%, #47423a 71% 72%, #1a1815 74%);
  box-shadow: 0 14px 24px -12px #000; transition: transform .2s; }
.bowl::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2.5px solid transparent; transition: border-color .2s; }
.bowl-word { font: 700 15px/1.1 var(--serif); color: #1a1408; max-width: 66%; text-align: center; }
.bowl-dark .bowl-word { color: #fff; }
.b-tile:hover .bowl { transform: translateY(-3px); }
.b-tile[aria-pressed="true"] .bowl::after { border-color: var(--gold-bright, #f5b70f); }
.tick { display: none; }
.b-tile .tick { position: absolute; top: -4px; right: -4px; width: 26px; height: 26px; border-radius: 50%; background: var(--gold-grad); color: #1a1408; font-size: 13px; font-weight: 800; line-height: 26px; text-align: center; box-shadow: 0 0 0 3px var(--ink-2); }
.b-tile[aria-pressed="true"] .tick { display: block; }
.tile-name { font-weight: 600; font-size: 14px; color: var(--cream); line-height: 1.25; }
.tile-note { font-size: 12px; color: var(--muted); line-height: 1.35; }
.tile-price { font-size: 12.5px; font-weight: 600; color: var(--gold); }
.tile-price.inc { color: #a9c79a; }
.b-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.b-pill { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-soft); background: var(--ink-3); color: var(--text); font-size: 14px; font-weight: 500; }
.b-pill em { font-style: normal; color: var(--gold); font-size: 13px; font-weight: 600; }
.b-pill[aria-pressed="true"] { border-color: var(--gold); background: rgba(245,183,15,.1); color: var(--cream); }
.b-pill[aria-pressed="true"] .tick { display: inline; color: var(--gold); font-weight: 800; }
.b-foot { display: flex; align-items: center; gap: 14px; padding: 14px 24px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line-soft); background: var(--ink-2); }
.b-price { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; }
.b-price small { color: var(--muted); font-size: 12px; }
.b-price strong { font: 700 24px var(--serif); color: var(--gold-hi); }
.b-foot [data-b-next] { min-width: 220px; }

/* ---------- Responsive ---------- */
.mobile-bar { display: none; }
@media (max-width: 1179px) {
  .order-layout { grid-template-columns: 190px minmax(0, 1fr); }
  .cart-panel { display: none; }
}
@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .order-ctx .ctx-text { display: none; }
  .order-ctx { padding-left: 0; border: 0; margin-left: auto; }
  .top-actions { margin-left: 0; }
  .promo { grid-template-columns: 1fr; }
  .promo-byo { flex-direction: row; text-align: left; padding: 18px; }
  .promo-byo .ring { width: 120px; flex: none; }
  .promo-byo-body { align-items: flex-start; }
  .order-layout { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 10px; }
  .promo > * { min-width: 0; }
  .cat-nav { top: var(--header-h); z-index: 30; margin: 0 -16px 16px; padding: 10px 16px; background: rgba(15,14,12,.95); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line-soft); }
  .cat-nav-title { display: none; }
  .cat-tabs { flex-direction: row; gap: 8px; overflow-x: auto; scrollbar-width: none; }
  .cat-tabs::-webkit-scrollbar { display: none; }
  .cat-tab { display: flex; flex: none; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-soft); gap: 8px; }
  .ct-viet { display: none; }
  .ct-n { padding: 1px 6px; min-width: 0; }
  .cat-tab[aria-current="true"]::before { display: none; }
  .cat-tab[aria-current="true"] { border-color: var(--gold); }
  .info-grid { grid-template-columns: 1fr; }
  .b-body { grid-template-columns: 1fr; }
  .b-side { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .brand-logo { height: 38px; }
  .topbar-inner { gap: 10px; }
  .seg button { padding: 7px 11px; font-size: 13px; }
  .icon-link { display: none; }
  .cart-btn { padding: 0 12px; height: 40px; }
  .cart-btn-text { display: none; }
  .promo { padding-top: 14px; }
  .promo-main { padding: 26px 20px; border-radius: 20px; }
  .promo h1 { font-size: 34px; }
  .promo .lede { display: none; }
  .promo .kicker { font-size: 11px; letter-spacing: .14em; }
  .promo-ctas .btn-ghost { display: none; }
  .promo-ctas { margin-bottom: 18px; }
  .promo-ctas .btn { flex: 1 1 100%; }
  .facts { gap: 6px 14px; font-size: 13px; }
  .promo-byo { border-radius: 20px; gap: 14px; }
  .promo-byo .ring { width: 92px; border-width: 3px; }
  .promo-byo-title { font-size: 21px; }
  .promo-byo-sub { font-size: 13.5px; }
  .promo-byo-foot { padding-top: 10px; }
  .promo-byo-foot .btn { padding: 9px 14px; font-size: 13px; }
  .items { grid-template-columns: 1fr; gap: 10px; }
  .item { min-height: 0; padding: 14px; }
  .item-img { width: 92px; height: 92px; }
  .item.has-img > .item-action { right: 20px; bottom: 14px; }
  .pop-row { grid-auto-columns: 62%; }
  .row-head h2, .menu-cat-head h2 { font-size: 22px; }
  .site-footer { text-align: center; }
  .footer-inner { justify-content: center; }
  .fine { margin-left: 0 !important; }
  dialog.sheet { width: 100%; max-width: 100%; max-height: 94vh; margin: auto 0 0; border-radius: 24px 24px 0 0; border-bottom: 0; }
  dialog.builder { height: 94vh; }
  .b-head { padding: 16px 18px 0; }
  .b-head h2 { font-size: 23px; }
  .b-steps { padding: 12px 18px; gap: 6px; }
  .b-steps button { padding: 7px 10px; font-size: 13px; }
  .b-main { padding: 18px; }
  .b-tiles { grid-template-columns: repeat(3, 1fr); gap: 14px 6px; }
  .bowl { width: 80px; height: 80px; }
  .bowl-word { font-size: 13px; }
  .tile-note { display: none; }
  .b-foot { flex-wrap: wrap; padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); gap: 10px; }
  .b-foot [data-b-next] { flex: 1 1 100%; min-width: 0; order: 5; }
  .tip-row { grid-template-columns: repeat(2, 1fr); }
  .row2 { grid-template-columns: 1fr; }
  .mobile-bar { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 35; display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 18px; border: 0; background: var(--gold-grad); color: #1a1408; font-weight: 700; box-shadow: 0 14px 30px -8px rgba(0,0,0,.85); }
  .mobile-bar[hidden] { display: none; }
  .mb-count { min-width: 28px; height: 28px; border-radius: 8px; background: #1a1408; color: var(--gold-hi); display: grid; place-items: center; font-size: 14px; }
  .mb-label { flex: 1; text-align: left; }
  body.has-bar .site-footer { padding-bottom: 100px; }
  body.has-bar .toast { bottom: 92px; }
}
@media (min-width: 641px) and (max-width: 1179px) {
  .mobile-bar { display: flex; position: fixed; right: 20px; bottom: 20px; z-index: 35; align-items: center; gap: 14px; padding: 14px 22px; border-radius: 999px; border: 0; background: var(--gold-grad); color: #1a1408; font-weight: 700; box-shadow: 0 14px 30px -8px rgba(0,0,0,.85); }
  .mobile-bar[hidden] { display: none; }
  .mb-count { min-width: 26px; height: 26px; border-radius: 50%; background: #1a1408; color: var(--gold-hi); display: grid; place-items: center; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
.drawer { visibility: hidden; transition: transform .35s cubic-bezier(.2,.8,.2,1), visibility 0s .35s; }
.drawer.open { visibility: visible; transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.drawer-body { padding: 4px 22px; }

/* Stand-in photo credit (Wikimedia Commons) */
.sheet-hero{position:relative}
.photo-credit{position:absolute;z-index:1;right:8px;bottom:8px;max-width:calc(100% - 16px);padding:3px 8px;border-radius:999px;background:rgba(0,0,0,.6);color:rgba(255,255,255,.8);font-size:11px;line-height:1.3;text-decoration:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.photo-credit:hover{color:#fff}

/* =========================================================
   Mobile-first polish (phones are the main way people order)
   ========================================================= */
button, a, input, select, textarea, label { -webkit-tap-highlight-color: transparent; }
button, a, .item { touch-action: manipulation; }
html:has(dialog[open]), html:has(.drawer.open) { overflow: hidden; }

/* Form fields (checkout, special instructions) */
.sheet label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--text); }
.sheet input:not([type=checkbox]):not([type=radio]), .sheet select, .sheet textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-soft);
  background: var(--ink); color: var(--cream); font: 400 16px/1.4 var(--sans); outline: none; transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none; appearance: none;
}
.sheet textarea { resize: vertical; min-height: 72px; }
.sheet select { background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; }
.sheet input::placeholder, .sheet textarea::placeholder { color: #6f685e; }
.sheet input:focus, .sheet select:focus, .sheet textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245,183,15,.15); }
.sheet input[aria-invalid="true"] { border-color: #f08a72; }

/* Drag handle shown on phone sheets */
.grab { display: none; }

@media (max-width: 640px) {
  /* Bigger, thumb-friendly controls */
  .add { width: 44px; height: 44px; font-size: 24px; }
  .qty-pill { height: 44px; }
  .qty-pill button { width: 42px; font-size: 20px; }
  .qty-pill.sm { height: 40px; }
  .qty-pill.sm button { width: 40px; font-size: 17px; }
  .icon-btn { width: 44px; height: 44px; }
  .seg button { min-height: 40px; }
  .cart-btn { height: 44px; min-width: 44px; }
  .opt { min-height: 52px; padding: 14px; }
  .choice { min-height: 56px; justify-content: center; }
  .link-gold { display: inline-block; padding: 10px 0; }
  .socials .soc { width: 44px; height: 44px; }

  /* Shorter intro so the menu shows up sooner */
  .promo { gap: 12px; }
  .promo-main { padding: 20px 18px; }
  .promo h1 { font-size: 30px; margin-bottom: 14px; }
  .promo .kicker { margin-bottom: 8px; }
  .promo-ctas { margin-bottom: 12px; }
  .facts li:not(:first-child) { display: none; }
  .promo-byo { padding: 14px; gap: 12px; align-items: center; }
  .promo-byo .ring { width: 76px; }
  .promo-byo .badge { font-size: 10px; padding: 3px 8px; }
  .promo-byo-title { font-size: 19px; }
  .promo-byo-sub { display: none; }
  .promo-byo-foot { padding-top: 6px; border: 0; }
  .row-head .muted { display: none; }
  .pop-row { grid-auto-columns: 58%; scroll-padding-inline: 16px; }

  /* Menu cards: whole card is the tap target, photo on the right */
  .item { padding: 14px 14px 14px 16px; }
  .item-img { width: 96px; height: 96px; }

  /* Bottom sheets */
  dialog.sheet { max-height: 92dvh; padding-bottom: 0; animation: none; }
  dialog.sheet[open] { animation: sheet-up .32s cubic-bezier(.2,.9,.25,1); }
  @keyframes sheet-up { from { transform: translateY(100%); } }
  .grab { display: block; position: absolute; top: 8px; left: 50%; z-index: 3; width: 44px; height: 5px; margin-left: -22px; border-radius: 3px; background: rgba(255,255,255,.75); box-shadow: 0 1px 4px rgba(0,0,0,.6); pointer-events: none; }
  dialog.sheet, .drawer { touch-action: pan-y; }
  .sheet-foot { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); gap: 10px; }
  .sheet-foot .btn { white-space: nowrap; font-size: 15px; padding: 15px 14px; }
  .sheet-pad { padding: 20px 18px; }
  .co-head { padding: 22px 18px 14px; }
  .co-steps { padding: 12px 18px 0; }

  /* Cart becomes a bottom sheet too */
  .drawer { top: auto; left: 0; width: 100%; max-height: 90dvh; border-left: 0; border-top: 1px solid var(--line); border-radius: 24px 24px 0 0; transform: translateY(105%); box-shadow: 0 -30px 60px -20px #000; }
  .drawer.open { transform: none; }
  .drawer-head { padding: 22px 18px 14px; }
  .drawer-body { padding: 4px 18px; flex: 0 1 auto; }
  .drawer-foot { padding: 12px 18px calc(14px + env(safe-area-inset-bottom)); }
  .ups-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .ups { min-height: 52px; }

  /* Builder: compact step bar and a single-row footer */
  .b-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 10px 18px 12px; overflow: visible; }
  .b-steps li { min-width: 0; }
  .b-steps button { flex-direction: column; gap: 4px; padding: 7px 2px; font-size: 12px; border-radius: 10px; }
  .b-steps button span { width: 22px; height: 22px; }
  .b-foot { flex-wrap: nowrap; align-items: center; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); gap: 10px; }
  .b-foot:has([data-b-qtywrap]:not([hidden])) { flex-wrap: wrap; }
  .b-foot [data-b-back] { padding: 14px 16px; flex: none; }
  .b-foot .b-price { flex: none; margin-left: 0; align-items: flex-start; text-align: left; line-height: 1.15; }
  .b-foot .b-price small { display: block; font-size: 11px; }
  .b-foot .b-price strong { font-size: 20px; }
  .b-foot [data-b-next] { flex: 1 1 auto; order: 0; padding: 15px 12px; white-space: nowrap; font-size: 15px; }
  .b-foot:has([data-b-qtywrap]:not([hidden])) [data-b-next] { flex-basis: 100%; order: 5; }
  .b-foot [data-b-qtywrap] { margin-left: auto; }
  .b-tile { min-height: 44px; }
  .b-pill { min-height: 44px; }

  /* Keep content clear of the floating cart bar and the iPhone home bar */
  .mobile-bar { min-height: 56px; }
  .site-footer { padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
  body.has-bar .site-footer { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
  body.has-bar .toast { bottom: calc(92px + env(safe-area-inset-bottom)); }
  .topbar { padding-top: env(safe-area-inset-top); }
}
@media (max-width: 370px) {
  .brand-logo { height: 32px; }
  .seg button { padding: 7px 9px; font-size: 12.5px; }
  .promo h1 { font-size: 27px; }
  .b-steps button { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  dialog.sheet[open] { animation: none; }
}

/* Builder: clear a step / start over */
.b-head-actions { display: flex; align-items: center; gap: 8px; }
.b-reset { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--text); font-size: 14px; font-weight: 600; }
.b-reset svg { width: 16px; height: 16px; fill: none; stroke: var(--gold); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.b-reset:hover { border-color: var(--gold); }
.b-clear { min-height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-soft); background: var(--ink-3); color: var(--muted); font-size: 13px; font-weight: 600; }
.b-clear:hover { color: var(--cream); border-color: var(--gold); }
.b-group-head .req + .b-clear { margin-left: 4px; }
.b-group-head > .b-clear:not(.req + .b-clear) { margin-left: auto; }
@media (max-width: 640px) {
  .b-reset { min-height: 44px; padding: 0 12px; font-size: 13px; }
  .b-clear { min-height: 40px; padding: 0 14px; }
  .b-reset { white-space: nowrap; }
  .b-head h2 { font-size: 21px; }
  .b-group-head { align-items: center; }
  .b-group-head h3 { order: 0; }
  .b-group-head .req { order: 1; margin-left: auto; }
  .b-group-head .b-clear { margin-left: auto; }
  .b-group-head .req + .b-clear { margin-left: 0; }
  .b-group-head .muted { order: 3; flex: 1 1 60%; }
  .b-group-head .b-clear { order: 4; }
}
@media (max-width: 370px) {
  .b-reset { padding: 0 10px; font-size: 12.5px; }
  .b-head h2 { font-size: 19px; }
}

/* Call-to-order mode (ONLINE_ORDERING = false) */
.call-order { text-decoration: none; }
.call-note { margin: 10px 2px 0; font-size: 13px; line-height: 1.45; color: var(--muted); text-align: center; }
