:root {
  /* brand — overridden at runtime from Admin › Settings › Brand (see brand_css()) */
  --brand: #CA0378;
  --brand-d: #A60363;
  --brand-dd: #790248;
  --brand-tint: #FAE3F0;
  --brand-tint-2: #F2C0DD;
  --on-brand: #FFFFFF;
  --on-brand-2: #FFE3F0;

  --milk: #FBF4F8;
  --card: #FFFFFF;
  --ink: #2B1525;
  --ink-2: #6E5266;
  --line: #F0DCE7;
  --cream: #FFF3D6;
  --sky: var(--brand);
  --sauce: var(--brand);
  --sauce-d: var(--brand-d);
  --caramel: var(--brand);
  --caramel-bg: var(--brand-tint);
  --mint: #2F9C7E;
  --danger: #C62F45;
  --r-lg: 22px;
  --r-md: 14px;
  --shadow: 0 1px 0 rgba(43,21,37,.06), 0 8px 24px -12px rgba(43,21,37,.28);
  --font: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 120px; }
body { margin: 0; background: var(--milk); color: var(--ink); font: 400 16px/1.5 var(--font); }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--brand-d); }
:focus-visible { outline: 3px solid var(--brand-dd); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 12px; z-index: 99; }
.skip:focus { left: 8px; }
[hidden] { display: none !important; }

/* ---------- top bar ---------- */
.top { background: var(--brand); color: var(--on-brand); }
.top-in { max-width: 1120px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; font-weight: 800; font-size: 1.15rem; letter-spacing: -.01em; }
.brand svg { width: 26px; height: 26px; color: var(--cream); }
.brand .logo { display: block; height: 52px; width: auto; max-width: 200px; object-fit: contain; }
@media (min-width: 700px) { .brand .logo { height: 64px; max-width: 240px; } }
.top.light { background: #fff; color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.top.light .top-in { padding-top: 8px; padding-bottom: 8px; }
.top.light .status { color: var(--ink-2); }
.conf-brand .logo { height: 56px; }
.brand .logo-chip { background: #fff; border-radius: 12px; padding: 4px 10px; display: inline-flex; box-shadow: 0 2px 8px -4px rgba(0,0,0,.3); }
.status { margin: 0; font-size: .85rem; opacity: .9; text-align: right; }
.status .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #6FE0B8; margin-right: 6px; vertical-align: 1px; }
.status.closed .dot { background: #F38BA8; }
.status.busy .dot { background: #F6C46A; }

/* ---------- hero ---------- */
.hero { background: var(--brand); color: var(--on-brand); position: relative; overflow: hidden; padding: 8px 16px 0; }
.top.light + main .hero { padding-top: 4px; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 28px; background: var(--milk); border-radius: 28px 28px 0 0; }
.moon { position: absolute; right: -64px; top: -26px; width: 170px; opacity: .95; pointer-events: none; }
.hero-copy { max-width: 1120px; margin: 0 auto; position: relative; z-index: 1; padding: 18px 0 8px; }
.hero h1 { font-size: clamp(2.1rem, 8vw, 3.6rem); line-height: .98; letter-spacing: -.035em; font-weight: 800; margin: 0 0 12px; max-width: 12ch; font-variation-settings: "opsz" 96; }
.hero p { margin: 0 0 16px; max-width: min(34ch, calc(100% - 96px)); color: var(--on-brand-2); }
@media (min-width: 700px) { .hero p { max-width: 34ch; } }
.code-chip { background: var(--cream); color: var(--ink); border: 0; border-radius: 999px; padding: 8px 16px; font-size: .95rem; }
.code-chip strong { font-weight: 800; letter-spacing: .02em; }
.code-chip.applied { background: #DDF6EC; }

.mode { position: relative; z-index: 1; max-width: 1120px; margin: 18px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: rgba(0,0,0,.16); padding: 6px; border-radius: 18px; }
.mode button { border: 0; background: transparent; color: var(--on-brand-2); padding: 10px 8px; border-radius: 13px; font-weight: 600; display: flex; flex-direction: column; align-items: center; line-height: 1.2; }
.mode button small { font-weight: 400; font-size: .78rem; opacity: .85; margin-top: 2px; }
.mode button[aria-checked="true"] { background: var(--milk); color: var(--ink); }
.mode button:disabled { opacity: .45; cursor: not-allowed; }
.hero .mode { margin-bottom: 40px; }

.notice { max-width: 1120px; margin: 0 auto 8px; padding: 12px 16px; background: #FFE3EA; color: #7A1A33; border-radius: var(--r-md); margin-inline: 16px; }
@media (min-width: 1152px) { .notice { margin-inline: auto; } }

/* ---------- section heads ---------- */
.sec-head { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.sec-head h2, .cat h2 { font-size: 1.5rem; letter-spacing: -.02em; line-height: 1.1; margin: 0 0 4px; font-weight: 800; }
.sec-head p, .cat > p { margin: 0 0 14px; color: var(--ink-2); font-size: .95rem; }

/* ---------- online-only tickets ---------- */
.bundles { padding: 8px 0 18px; }
.ticket-row { display: grid; grid-auto-flow: column; grid-auto-columns: min(82%, 330px); gap: 12px; overflow-x: auto; padding: 4px 16px 10px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.ticket-row::-webkit-scrollbar { display: none; }
@media (min-width: 1152px) { .ticket-row { max-width: 1120px; margin: 0 auto; padding-inline: 0; grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; } }
.ticket { scroll-snap-align: start; text-align: left; border: 0; background: var(--caramel-bg); color: var(--ink); border-radius: var(--r-lg); padding: 18px 18px 16px; position: relative; display: flex; flex-direction: column; gap: 6px; min-height: 172px;
  -webkit-mask: radial-gradient(circle 11px at 0 62%, transparent 98%, #000) , radial-gradient(circle 11px at 100% 62%, transparent 98%, #000);
  -webkit-mask-composite: source-in; mask-composite: intersect; }
.ticket::before { content: ""; position: absolute; left: 18px; right: 18px; top: 62%; border-top: 2px dashed var(--brand-tint-2); }
.ticket .t-badge { align-self: flex-start; background: var(--brand); color: var(--on-brand); font-size: .78rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; }
.ticket h3 { margin: 0; font-size: 1.3rem; line-height: 1.1; letter-spacing: -.02em; font-weight: 800; }
.ticket p { margin: 0; font-size: .9rem; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ticket .t-foot { margin-top: auto; padding-top: 18px; display: flex; justify-content: space-between; align-items: center; font-weight: 800; font-size: 1.15rem; }
.ticket .t-add { background: var(--ink); color: #fff; border-radius: 999px; padding: 6px 14px; font-size: .9rem; font-weight: 600; }
.ticket[aria-disabled="true"] { opacity: .55; }

/* ---------- category chips ---------- */
.chips { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--milk) 94%, transparent); backdrop-filter: blur(8px); display: flex; gap: 8px; overflow-x: auto; padding: 10px 16px; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.chips::-webkit-scrollbar { display: none; }
.chips a { flex: none; text-decoration: none; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: .92rem; font-weight: 600; }
.chips a[aria-current="true"] { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
@media (min-width: 1152px) { .chips { padding-inline: calc((100vw - 1120px) / 2); } }

/* ---------- menu ---------- */
.layout { max-width: 1120px; margin: 0 auto; padding: 18px 16px 120px; display: grid; gap: 28px; }
@media (min-width: 960px) { .layout { grid-template-columns: 1fr 360px; padding-bottom: 48px; } }
.cat { margin-bottom: 30px; }
.items { display: grid; gap: 10px; }
@media (min-width: 640px) { .items { grid-template-columns: 1fr 1fr; } }
.item { display: grid; grid-template-columns: 1fr 92px; gap: 12px; align-items: start; text-align: left; width: 100%; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px; }
.item:hover { border-color: var(--brand-tint-2); }
.item h3 { margin: 0 0 2px; font-size: 1.04rem; font-weight: 600; line-height: 1.25; }
.item p { margin: 0 0 8px; color: var(--ink-2); font-size: .88rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item .price { font-weight: 800; }
.item .badge { display: inline-block; font-size: .74rem; font-weight: 600; color: var(--brand-d); background: var(--brand-tint); border-radius: 999px; padding: 1px 8px; margin-left: 6px; vertical-align: 2px; }
.item .badge.web { color: var(--on-brand); background: var(--brand); }
.item.sold { opacity: .5; }
.item.sold .price::after { content: " · Sold out"; font-weight: 600; color: var(--danger); }
.thumb { width: 92px; height: 92px; border-radius: 12px; overflow: hidden; background: linear-gradient(140deg, var(--brand-tint), var(--milk)); display: grid; place-items: center; position: relative; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb svg { width: 40px; height: 40px; color: var(--brand-tint-2); }
.item.noimg { grid-template-columns: 1fr 36px; align-items: end; }
.plus.solo { width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: var(--on-brand); display: grid; place-items: center; font-weight: 800; font-size: 1.2rem; line-height: 1; }
.thumb .plus { position: absolute; right: 6px; bottom: 6px; width: 28px; height: 28px; border-radius: 50%; background: var(--card); color: var(--ink); display: grid; place-items: center; font-weight: 800; box-shadow: var(--shadow); line-height: 1; }

/* ---------- basket (sidebar + sheet) ---------- */
.side { display: none; }
@media (min-width: 960px) { .side { display: block; } .side-in { position: sticky; top: 72px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; max-height: calc(100vh - 96px); overflow: auto; } }
.basket h2 { font-size: 1.3rem; margin: 0 0 10px; font-weight: 800; letter-spacing: -.02em; }
.empty { color: var(--ink-2); font-size: .95rem; margin: 6px 0 4px; }
.line { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.line .ln-name { font-weight: 600; }
.line .ln-opts { grid-column: 1 / -1; color: var(--ink-2); font-size: .85rem; margin-top: -2px; }
.line .ln-ctrl { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; }
.stepper button { width: 34px; height: 34px; border: 0; background: none; font-size: 1.15rem; font-weight: 600; border-radius: 50%; }
.stepper button:disabled { opacity: .3; cursor: not-allowed; }
.stepper output, .stepper span { min-width: 22px; text-align: center; font-weight: 600; }
.linkish { border: 0; background: none; color: var(--ink-2); text-decoration: underline; font-size: .85rem; padding: 6px; }
.upsell { margin: 14px 0 4px; }
.upsell h3 { font-size: .95rem; margin: 0 0 8px; font-weight: 600; }
.upsell-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.upsell-row button { flex: none; border: 1px solid var(--line); background: var(--milk); border-radius: 12px; padding: 8px 12px; text-align: left; font-size: .88rem; }
.upsell-row b { display: block; }
.promo { display: flex; gap: 8px; margin: 14px 0 4px; }
.promo input { flex: 1; min-width: 0; text-transform: uppercase; }
.totals { margin: 12px 0; display: grid; gap: 4px; font-size: .95rem; }
.totals div { display: flex; justify-content: space-between; }
.totals .grand { font-weight: 800; font-size: 1.15rem; margin-top: 4px; }
.totals .neg { color: var(--mint); }
.hint { font-size: .85rem; color: var(--ink-2); margin: 6px 0; }
.err { color: var(--danger); font-size: .88rem; margin: 6px 0; }
.ok { color: var(--mint); font-size: .88rem; margin: 6px 0; }

/* ---------- buttons & fields ---------- */
.btn { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 10px; border: 0; border-radius: 16px; padding: 15px 18px; background: var(--sauce); color: #fff; font-weight: 800; font-size: 1.05rem; }
.btn:hover { background: var(--sauce-d); }
.btn:disabled { background: #E9D7E1; color: #8B6F80; cursor: not-allowed; }
.btn.center { justify-content: center; }
.btn-quiet { border: 1px solid var(--line); background: var(--card); border-radius: 12px; padding: 10px 14px; font-weight: 600; }
.field { display: grid; gap: 4px; margin-bottom: 12px; align-content: start; }
.field label { font-weight: 600; font-size: .92rem; }
.field input, .field select, .field textarea, .promo input { width: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px; background: #fff; font-size: 16px; }
.field input:focus, .field select:focus, .field textarea:focus, .promo input:focus { border-color: var(--ink); outline: none; }
.field.bad input, .field.bad select { border-color: var(--danger); }
.field .err { margin: 0; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; margin: 6px 0 14px; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--ink); }

/* ---------- bottom basket bar (mobile) ---------- */
.basket-bar { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 30; border: 0; border-radius: 18px; background: var(--ink); color: #fff; padding: 15px 18px; display: flex; justify-content: space-between; align-items: center; font-weight: 800; font-size: 1.02rem; box-shadow: 0 12px 30px -10px rgba(43,21,37,.6); }
.basket-bar .count { background: var(--brand); border-radius: 999px; padding: 1px 9px; margin-right: 8px; font-size: .9rem; }
@media (min-width: 960px) { .basket-bar { display: none !important; } }

/* ---------- sheet / modal ---------- */
.sheet-wrap { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.scrim { position: absolute; inset: 0; background: rgba(43,21,37,.55); }
.sheet { position: relative; background: var(--card); width: 100%; max-width: 560px; max-height: 92vh; overflow: auto; border-radius: 24px 24px 0 0; padding: 0 18px calc(18px + env(safe-area-inset-bottom)); animation: up .22s ease-out; }
@media (min-width: 700px) { .sheet-wrap { align-items: center; } .sheet { border-radius: 24px; max-height: 88vh; } }
@keyframes up { from { transform: translateY(24px); opacity: .4; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .sheet { animation: none; } html { scroll-behavior: auto; } }
.sheet-head { position: sticky; top: 0; background: var(--card); padding: 16px 0 10px; display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; z-index: 2; }
.sheet-head h2 { margin: 0; font-size: 1.45rem; line-height: 1.1; letter-spacing: -.02em; font-weight: 800; }
.x { border: 0; background: var(--milk); width: 38px; height: 38px; border-radius: 50%; font-size: 1.3rem; line-height: 1; flex: none; }
.sheet-img { margin: 0 -18px 12px; height: 200px; background: linear-gradient(140deg, var(--brand-tint), var(--milk)); }
.sheet-img img { width: 100%; height: 100%; object-fit: cover; }
.desc { color: var(--ink-2); margin: 0 0 6px; }
.allergens { font-size: .86rem; color: var(--ink); background: var(--milk); border-radius: 12px; padding: 10px 12px; margin: 8px 0 14px; }
.allergens p { margin: 0 0 4px; }
.allergens p:last-child { margin-bottom: 0; }
.allergens.unknown { background: #FFF4E0; }
.allergens .al-hint { color: var(--ink-2); font-size: .8rem; }
.allergens .al-kitchen { color: #8A2443; font-weight: 600; }
.kitchen-warn { max-width: 1120px; margin: 0 16px 14px; display: flex; gap: 10px; align-items: flex-start; background: #FFE9DA; color: #6A2A06; border-radius: var(--r-md); padding: 12px 14px; font-size: .92rem; }
.kitchen-warn svg { width: 22px; height: 22px; flex: none; margin-top: 1px; color: #C2410C; }
.kitchen-warn p { margin: 0; }
.kitchen-warn a { color: inherit; font-weight: 700; }
@media (min-width: 1152px) { .kitchen-warn { margin-inline: auto; } }
.item .badge.nut { color: #7A2E0E; background: #FFE9DA; }
.co-allergy { font-size: .86rem; background: #FFE9DA; color: #6A2A06; border-radius: 12px; padding: 10px 12px; margin: 4px 0 12px; }
.co-allergy a { color: inherit; font-weight: 700; }
.group { border: 0; margin: 0 0 16px; padding: 0; }
.group legend { font-weight: 800; font-size: 1.02rem; padding: 0; margin-bottom: 2px; display: flex; gap: 8px; align-items: baseline; }
.group legend .req { font-size: .76rem; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: var(--milk); color: var(--ink-2); }
.group legend .req.need { background: var(--brand-tint); color: var(--brand-d); }
.choice { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 2px; border-bottom: 1px solid var(--line); min-height: 52px; }
.choice label { display: flex; align-items: center; gap: 12px; flex: 1; cursor: pointer; }
.choice input { width: 22px; height: 22px; accent-color: var(--brand); margin: 0; }
.choice .cp { color: var(--ink-2); font-size: .92rem; white-space: nowrap; }
.choice.off { opacity: .45; }
.sheet-foot { position: sticky; bottom: 0; background: var(--card); padding: 12px 0 4px; display: flex; gap: 10px; align-items: center; border-top: 1px solid var(--line); margin-top: 8px; }
.sheet-foot .btn { flex: 1; }
.pay-box { min-height: 120px; margin: 10px 0 14px; }
.summary-mini { background: var(--milk); border-radius: 12px; padding: 10px 12px; font-size: .92rem; margin-bottom: 14px; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; top: 16px; transform: translateX(-50%) translateY(-20px); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; font-weight: 600; opacity: 0; pointer-events: none; transition: .2s; z-index: 60; }
.toast.show { opacity: 1; transform: translateX(-50%); }

.foot { max-width: 1120px; margin: 0 auto; padding: 0 16px 120px; color: var(--ink-2); font-size: .85rem; }
.foot .allergen { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 14px; color: var(--ink); }
@media (min-width: 960px) { .foot { padding-bottom: 40px; } }
@media (min-width: 700px) { .moon { width: 300px; right: 4%; top: -30px; } .hero-copy { padding-top: 34px; } }
