/* =========================================================
   MOMOHOLIC — QR menu & online ordering (/menu)
   Phone-first; same brand as the main site.
   ========================================================= */
:root {
  --red: #8c1a2b;
  --red-2: #a5283c;
  --red-deep: #5e0f1d;
  --cream: #fbf1dc;
  --cream-2: #f3e3c3;
  --paper: #fffaf0;
  --gold: #f6b91f;
  --gold-deep: #c8901e;
  --ink: #26140f;
  --muted: #7d6a5c;
  --line: rgba(140, 26, 43, .14);
  --green: #2f8a3e;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hand: "Caveat Brush", "Segoe Print", cursive;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --top-h: 60px;
  --wrap: 760px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 180px; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--paper); line-height: 1.45; -webkit-font-smoothing: antialiased; padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 8px; }
h1, h2, h3, .price, .total strong, .bar__total { font-variation-settings: "SOFT" 100, "opsz" 144; }

/* ---------- top bar ---------- */
.top { position: sticky; top: 0; z-index: 30; height: var(--top-h); display: flex; align-items: center; gap: 10px; padding: 0 max(14px, calc((100% - var(--wrap)) / 2)); background: var(--red); color: var(--cream); box-shadow: 0 8px 20px -14px rgba(0, 0, 0, .6); }
.top__brand { background: var(--cream); border-radius: 12px; padding: 3px 9px; flex: none; }
.top__brand img { height: 36px; width: auto; }
.top__where { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; padding: 8px 14px; border-radius: 999px; border: 1.5px solid rgba(251, 241, 220, .4); font-weight: 700; font-size: .88rem; white-space: nowrap; max-width: 52vw; overflow: hidden; text-overflow: ellipsis; }
.top__where .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px rgba(246, 185, 31, .3); flex: none; }
.top__cart { position: relative; width: 44px; height: 44px; border-radius: 50%; background: var(--cream); color: var(--red); display: grid; place-items: center; flex: none; }
.top__cart svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.top__cart .count { position: absolute; top: -3px; right: -3px; min-width: 21px; height: 21px; padding: 0 5px; border-radius: 999px; background: var(--gold); color: var(--red-deep); font-size: .72rem; font-weight: 800; display: grid; place-items: center; transform: scale(0); transition: transform .3s var(--ease); }
.top__cart .count.has { transform: scale(1); }
.top__cart.bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.18) rotate(-6deg); } }

/* ---------- hero ---------- */
.hero { background: linear-gradient(180deg, var(--red) 0%, var(--red-deep) 100%); color: var(--cream); padding: 22px max(16px, calc((100% - var(--wrap)) / 2)) 26px; }
.hero__kicker { font-size: .72rem; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.hero h1 { font-family: var(--display); font-weight: 900; font-size: clamp(2rem, 8vw, 2.9rem); line-height: 1; letter-spacing: -.02em; margin: 8px 0 8px; }
.hero h1 em { font-style: italic; color: var(--gold); }
.hero__sub { color: rgba(251, 241, 220, .85); }
.hero__buffet { display: inline-block; margin-top: 14px; padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(251, 241, 220, .25); font-size: .85rem; }

/* ---------- sticky tools ---------- */
.tools { position: sticky; top: var(--top-h); z-index: 20; background: rgba(255, 250, 240, .96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); padding: 10px max(14px, calc((100% - var(--wrap)) / 2)) 0; }
.search { display: flex; align-items: center; gap: 10px; background: #fff; border: 1.5px solid #ecdcbc; border-radius: 999px; padding: 0 14px; }
.search:focus-within { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(246, 185, 31, .2); }
.search svg { width: 17px; height: 17px; fill: none; stroke: var(--muted); stroke-width: 2.2; stroke-linecap: round; flex: none; }
.search input { border: 0; outline: 0; background: none; font: inherit; font-size: 1rem; padding: 10px 0; width: 100%; color: var(--ink); }
.chips { display: flex; gap: 6px; margin-top: 8px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar, .tabs::-webkit-scrollbar { display: none; }
.chips button { flex: none; padding: 6px 13px; border-radius: 999px; border: 1.5px solid #ecdcbc; background: #fff; font-weight: 700; font-size: .82rem; }
.chips button[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: var(--cream); }
.tabs { display: flex; gap: 2px; margin-top: 6px; overflow-x: auto; scrollbar-width: none; }
.tabs a { flex: none; padding: 9px 12px 11px; font-weight: 700; font-size: .88rem; color: var(--muted); text-decoration: none; border-bottom: 3px solid transparent; transition: color .2s, border-color .2s; }
.tabs a.is-active { color: var(--red); border-bottom-color: var(--gold); }
.tabs a[hidden] { display: none; }

/* ---------- menu list ---------- */
.list { max-width: var(--wrap); margin: 0 auto; padding: 4px 14px 10px; }
.sec { padding-top: 20px; scroll-margin-top: 175px; }
.sec[hidden] { display: none; }
.sec__head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.sec__head h2 { font-family: var(--display); font-weight: 900; font-size: 1.5rem; color: var(--red); letter-spacing: -.01em; }
.sec__head span { font-family: var(--hand); font-size: 1.1rem; color: var(--gold-deep); }
.mi { display: grid; grid-template-columns: 1fr auto; gap: 6px 14px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.mi[hidden] { display: none; }
.mi__name { font-family: var(--display); font-weight: 700; font-size: 1.08rem; line-height: 1.2; }
.mi__name mark { background: var(--gold); color: inherit; border-radius: 3px; }
.mi__desc { font-size: .86rem; color: var(--muted); margin-top: 3px; }
.mi__badges { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.badge { font-size: .64rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; }
.badge--sig { background: var(--gold); color: var(--red-deep); }
.badge--veg { background: rgba(47, 138, 62, .12); color: var(--green); }
.badge--heat { background: rgba(214, 40, 40, .1); letter-spacing: 0; }
.badge--light { background: rgba(14, 107, 115, .12); color: #0e6b73; }
.mi__side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 8px; }
.price { font-family: var(--display); font-weight: 900; font-size: 1.1rem; color: var(--red); white-space: nowrap; font-variant-numeric: tabular-nums; }
.price--tbc { font-family: var(--sans); font-size: .74rem; font-weight: 700; color: var(--muted); }
.vars { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.var { padding: 7px 12px; border-radius: 999px; background: var(--cream-2); font-size: .8rem; font-weight: 700; transition: background .2s, color .2s; }
.var small { font-weight: 600; opacity: .75; margin-left: 4px; }
.var[aria-pressed="true"] { background: var(--red); color: var(--cream); }
.add { width: 40px; height: 40px; border-radius: 50%; background: var(--red); color: var(--cream); font-size: 1.4rem; font-weight: 700; line-height: 1; box-shadow: 0 8px 16px -8px rgba(140, 26, 43, .8); transition: transform .2s var(--ease), background .2s; }
.add:active { transform: scale(.9); }
.step { display: inline-flex; align-items: center; background: var(--red); color: var(--cream); border-radius: 999px; overflow: hidden; box-shadow: 0 8px 16px -8px rgba(140, 26, 43, .8); }
.step button { width: 36px; height: 40px; font-size: 1.2rem; font-weight: 700; }
.step output { min-width: 22px; text-align: center; font-weight: 800; }
.soldout { font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--cream-2); padding: 6px 10px; border-radius: 999px; white-space: nowrap; }
.mi.is-out .mi__name, .mi.is-out .price { opacity: .5; }
.secure a { color: var(--red); font-weight: 700; }
.empty { text-align: center; padding: 40px 16px; font-family: var(--hand); font-size: 1.4rem; color: var(--muted); }
.foot { max-width: var(--wrap); margin: 24px auto 0; padding: 18px 16px 10px; text-align: center; font-size: .8rem; color: var(--muted); border-top: 1px solid var(--line); display: grid; gap: 6px; }
.foot__addr { font-weight: 700; color: var(--red); }
.foot a { color: var(--red); font-weight: 700; }

/* ---------- sticky order bar ---------- */
.bar { position: fixed; z-index: 25; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); width: min(var(--wrap) - 28px, calc(100% - 28px)); transform: translateX(-50%); display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 20px; border-radius: 18px; background: var(--red); color: var(--cream); box-shadow: 0 18px 34px -12px rgba(94, 15, 29, .8); border: 2px solid var(--gold); animation: up .35s var(--ease); }
.bar[hidden] { display: none; }
.bar__label { font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; color: var(--gold); }
.bar__total { font-family: var(--display); font-size: 1.15rem; }
@keyframes up { from { transform: translate(-50%, 30px); opacity: 0; } }

/* ---------- order sheet (bottom sheet on phones, side panel on desktop) ---------- */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(30, 0, 6, .45); animation: fade .25s; }
@keyframes fade { from { opacity: 0; } }
.sheet { position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; max-height: 92dvh; display: flex; flex-direction: column; background: var(--paper); border-radius: 22px 22px 0 0; box-shadow: 0 -20px 50px -20px rgba(0, 0, 0, .5); transform: translateY(105%); visibility: hidden; transition: transform .4s var(--ease), visibility 0s .4s; }
.sheet.is-open { transform: none; visibility: visible; transition: transform .4s var(--ease); }
.sheet__grab { width: 44px; height: 5px; border-radius: 3px; background: #e5d3ae; margin: 10px auto 0; }
.sheet__head { display: flex; align-items: center; justify-content: space-between; padding: 8px 18px 10px; }
.sheet__head h2 { font-family: var(--display); font-weight: 900; font-size: 1.6rem; color: var(--red); }
.x { width: 38px; height: 38px; border-radius: 50%; background: var(--cream-2); font-weight: 700; }
.sheet__body { overflow-y: auto; padding: 0 18px 12px; overscroll-behavior: contain; }
.lines { list-style: none; padding: 0; display: grid; gap: 8px; }
.line { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: center; padding: 12px; border-radius: 14px; background: #fff; box-shadow: 0 6px 16px -12px rgba(0, 0, 0, .4); }
.line__name { font-family: var(--display); font-weight: 700; line-height: 1.2; }
.line__var { font-size: .8rem; font-weight: 600; color: var(--red); }
.line__price { font-family: var(--display); font-weight: 900; color: var(--red); text-align: right; }
.line .step { box-shadow: none; justify-self: start; }
.line .step button { width: 32px; height: 34px; }
.line__rm { justify-self: end; font-size: .78rem; color: var(--muted); text-decoration: underline; }
.sheet__empty { display: grid; justify-items: center; gap: 10px; padding: 24px 0; text-align: center; color: var(--muted); }
.sheet__empty[hidden] { display: none; }
.checkout { display: grid; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 2px dashed #ecdcbc; }
.checkout[hidden] { display: none; }
.mode { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mode button { padding: 11px; border-radius: 14px; border: 2px solid #ecdcbc; background: #fff; font-weight: 800; }
.mode button[aria-checked="true"] { border-color: var(--red); background: rgba(140, 26, 43, .06); color: var(--red); }
.field { display: grid; gap: 5px; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.field[hidden], .field-row[hidden] { display: none; }
.field input, .field textarea { font: inherit; font-size: 1rem; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ink); padding: 11px 13px; border: 2px solid #ecdcbc; border-radius: 12px; background: #fff; outline: 0; width: 100%; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(246, 185, 31, .2); }
.field .is-invalid, .field input.is-invalid { border-color: #d62828; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sheet__foot { padding: 12px 18px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fff; display: grid; gap: 8px; }
.sheet__foot[hidden] { display: none; }
.total { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; }
.total strong { font-family: var(--display); font-size: 1.7rem; font-weight: 900; color: var(--red); }
.err { color: #c0392b; font-size: .86rem; font-weight: 600; min-height: 0; }
.err:empty { display: none; }
.pay { display: grid; justify-items: center; gap: 2px; width: 100%; padding: 14px; border-radius: 16px; background: var(--red); color: var(--cream); box-shadow: 0 14px 26px -12px rgba(94, 15, 29, .9); transition: transform .15s, background .2s, opacity .2s; }
.pay:active { transform: scale(.98); }
.pay__label { font-weight: 800; font-size: 1.05rem; }
.pay__methods { font-size: .72rem; color: var(--gold); font-weight: 700; letter-spacing: .04em; }
.pay.is-loading { opacity: .7; pointer-events: none; }
.pay.is-loading .pay__label::after { content: " …"; }
.pay[hidden] { display: none; }
.counter { width: 100%; padding: 12px; border-radius: 14px; border: 2px solid rgba(140, 26, 43, .25); color: var(--red); font-weight: 800; }
.counter[hidden], .secure[hidden] { display: none; }
.tablebox { padding: 14px 16px; border-radius: 16px; background: rgba(246, 185, 31, .16); border: 2px dashed rgba(200, 144, 30, .55); }
.tablebox p:first-child { font-family: var(--display); font-weight: 800; font-size: 1.2rem; color: var(--red); }
.tablebox__sub { font-size: .88rem; color: var(--muted); margin-top: 4px; }
.tablebox[hidden], #onlineBox[hidden] { display: none; }
#onlineBox { display: grid; gap: 12px; }
.hint { font-size: .82rem; color: var(--muted); }
.hint:empty { display: none; }
.hint.is-closed { color: #b0281f; font-weight: 700; background: rgba(192, 57, 43, .08); padding: 10px 12px; border-radius: 12px; }
.sum { display: flex; justify-content: space-between; font-size: .92rem; color: var(--muted); font-weight: 600; }
.sum[hidden] { display: none; }
.switch { justify-self: center; font-size: .82rem; font-weight: 700; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; padding: 4px; }
.switch[hidden] { display: none; }
.secure { text-align: center; font-size: .74rem; color: var(--muted); }

/* ---------- pay at counter ---------- */
.staff { position: fixed; inset: 0; z-index: 60; background: var(--red); display: grid; place-items: center; padding: 18px; overflow-y: auto; animation: fade .25s; }
.staff[hidden] { display: none; }
.staff__card { width: min(520px, 100%); background: var(--paper); border-radius: 24px; padding: 24px; text-align: center; }
.staff__card img { width: 110px; margin: 0 auto 6px; }
.staff__kicker { font-size: .72rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-deep); }
.staff__card h3 { font-family: var(--display); font-weight: 900; font-size: 2rem; color: var(--red); margin: 4px 0 10px; }
.staff__card ul { list-style: none; padding: 0; text-align: left; }
.staff__card li { display: flex; gap: 12px; align-items: baseline; padding: 10px 0; border-bottom: 1px dashed #e5d3ae; font-size: 1.1rem; }
.staff__card li b { font-family: var(--display); font-weight: 900; color: var(--red); min-width: 2em; }
.staff__card li small { display: block; color: var(--muted); }
.staff__notes { text-align: left; margin-top: 10px; font-style: italic; color: var(--muted); }
.staff__notes:empty { display: none; }
.staff__total { display: flex; justify-content: space-between; align-items: baseline; margin: 16px 0; font-weight: 700; }
.staff__total strong { font-family: var(--display); font-size: 1.6rem; color: var(--red); }

.toast { position: fixed; z-index: 70; left: 50%; top: calc(var(--top-h) + 12px); transform: translate(-50%, -200px); background: var(--gold); color: var(--red-deep); padding: 11px 18px; border-radius: 999px; font-weight: 800; font-size: .9rem; white-space: nowrap; max-width: calc(100% - 28px); overflow: hidden; text-overflow: ellipsis; box-shadow: 0 14px 28px -12px rgba(0, 0, 0, .5); transition: transform .35s var(--ease); }
.toast.is-on { transform: translate(-50%, 0); }

/* ---------- success page ---------- */
.done { max-width: 560px; margin: 0 auto; padding: 28px 16px 40px; text-align: center; }
.done__tick { width: 84px; height: 84px; margin: 0 auto 10px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-size: 2.6rem; box-shadow: 0 0 0 10px rgba(47, 138, 62, .15); animation: pop .5s var(--ease); }
.done__tick.is-wait { background: var(--gold); color: var(--red-deep); box-shadow: 0 0 0 10px rgba(246, 185, 31, .2); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.done h1 { font-family: var(--display); font-weight: 900; font-size: 2.2rem; color: var(--red); line-height: 1.05; }
.done__no { display: inline-block; margin: 14px 0 4px; padding: 8px 18px; border-radius: 999px; background: var(--red); color: var(--cream); font-family: var(--display); font-weight: 900; font-size: 1.5rem; letter-spacing: .04em; }
.done__where { font-weight: 700; color: var(--muted); }
.done__card { margin: 18px 0; text-align: left; background: #fff; border-radius: 18px; padding: 16px 18px; box-shadow: 0 10px 26px -18px rgba(0, 0, 0, .5); }
.done__card li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed #ecdcbc; list-style: none; }
.done__card ul { padding: 0; }
.done__card .t { display: flex; justify-content: space-between; padding-top: 10px; font-weight: 800; }
.done__card .t b { font-family: var(--display); color: var(--red); font-size: 1.3rem; }
.done__msg { color: var(--muted); }
.done__actions { display: grid; gap: 8px; margin-top: 18px; }
.done__actions a { display: block; text-decoration: none; text-align: center; }

/* ---------- legal pages + 404 ---------- */
a.top__where { text-decoration: none; color: var(--cream); }
.legal { max-width: 720px; margin: 0 auto; padding: 28px 18px 10px; }
.legal h1 { font-family: var(--display); font-weight: 900; font-size: clamp(2rem, 7vw, 2.8rem); color: var(--red); line-height: 1.05; }
.legal__meta { color: var(--muted); font-size: .85rem; margin: 6px 0 18px; }
.legal h2 { font-family: var(--display); font-weight: 800; font-size: 1.3rem; color: var(--red); margin: 24px 0 8px; }
.legal p, .legal li { color: #4a3a33; }
.legal ul { padding-left: 20px; display: grid; gap: 6px; }
.legal a { color: var(--red); font-weight: 700; }
.lost { max-width: 520px; margin: 0 auto; padding: 48px 18px; text-align: center; }
.lost img { width: 180px; margin: 0 auto 10px; }
.lost h1 { font-family: var(--display); font-weight: 900; font-size: 2.4rem; color: var(--red); }
.lost p { color: var(--muted); margin: 8px 0 20px; }
.lost .pay, .lost .counter { display: block; text-decoration: none; text-align: center; margin-top: 8px; }

/* ---------- wider screens ---------- */
@media (min-width: 900px) {
  .sheet { left: auto; top: 0; width: 420px; max-height: none; border-radius: 0; transform: translateX(105%); }
  .sheet__grab { display: none; }
  .sheet__head { padding-top: 18px; }
  .mi { padding: 16px 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
