/* Customer screen, laid out like the printed Butter menu: centred Caveat logo,
   every section between thin burgundy rules, names in Caveat, everything you
   read or price in Montserrat, lots of open cream space. */
body { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
main { max-width: 560px; margin: 0 auto; padding: 0 20px; }

.top { text-align: center; padding: 26px 20px 0; }
.wordmark { margin: 0; font-family: var(--script); font-weight: 700; font-size: 96px; line-height: 1; color: var(--burgundy); }
.where { margin: 20px 0 0; font-size: 11px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; }

.banner { max-width: 560px; margin: 14px auto 0; padding: 0 20px; }
.banner > * {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  border-radius: var(--radius); padding: 14px 16px; border: 0; background: var(--burgundy); color: var(--cream); font-weight: 700;
}
.banner .num { font-size: 22px; font-weight: 800; }
.banner .closed { background: transparent; color: var(--burgundy); box-shadow: inset 0 0 0 2px var(--burgundy); }

.notice {
  position: sticky; top: 8px; z-index: 30; max-width: 520px; margin: 10px auto 0; width: calc(100% - 40px);
  background: var(--wine); color: var(--cream); padding: 14px 16px; border-radius: var(--radius); font-weight: 500;
}
.notice ul { margin: 0; padding-left: 18px; }
.notice button { margin-top: 8px; background: none; border: 0; color: var(--cream); text-decoration: underline; font-weight: 700; padding: 4px 0; }

/* Menu rhythm */
.rule { border: 0; border-top: 2px solid var(--burgundy); margin: 0; }
.cols-head { display: flex; justify-content: flex-end; gap: 12px; padding: 12px 0; }
.cols-head span, .size-label { width: 64px; text-align: center; font-size: 10px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; }
.size-label { display: block; margin-bottom: 4px; }

.burger { padding: 26px 0 26px; border-top: 2px solid var(--burgundy); }
.burger-row { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: start; }
.burger-name { margin: 0; font-family: var(--script); font-weight: 700; font-size: 44px; line-height: .95; color: var(--burgundy); }
.burger-desc { margin: 14px 0 0; font-size: 14px; font-weight: 500; line-height: 1.5; max-width: 34ch; }
.sizes { display: flex; gap: 12px; }
.size { width: 64px; text-align: center; }
.size .price { display: block; font-weight: 700; font-size: 14px; margin-bottom: 10px; white-space: nowrap; }
.size .burger-svg { width: 46px; height: auto; display: block; margin: 0 auto; }
.size.out { opacity: .4; }
.burger .btn { margin-top: 20px; }
.burger.soldout .burger-name, .burger.soldout .burger-desc, .burger.soldout .sizes { opacity: .4; }
.badge { display: inline-block; margin-top: 18px; font-size: 11px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; background: var(--burgundy); color: var(--cream); padding: 6px 12px; border-radius: 999px; }

/* Single-line rows: Fries, Drinks */
.line-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 22px 0; border-top: 2px solid var(--burgundy); }
.line-row h2 { margin: 0; font-family: var(--script); font-weight: 700; font-size: 44px; line-height: .95; }
.line-row .price { font-weight: 700; font-size: 14px; }
.line-row.soldout h2 { opacity: .4; }
.line-row .controls { display: flex; align-items: center; gap: 14px; }
.varieties { padding: 0 0 14px; }
.item { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 10px 0; min-height: 64px; border-top: 1px solid var(--line); }
.item:first-child { border-top: 0; }
.item-name { font-weight: 700; }
.item-name.caps-name { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.item-sub { font-size: 13px; color: var(--muted); font-weight: 500; }
.item.soldout .item-name { opacity: .45; }
.stepper { display: flex; align-items: center; gap: 4px; }
.stepper button {
  width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--burgundy); color: var(--cream);
  font-size: 26px; font-weight: 600; line-height: 1; display: grid; place-items: center;
}
.stepper button.minus { background: var(--tint-2); color: var(--burgundy); }
.stepper button:disabled { background: var(--tint-2); color: var(--muted); }
.stepper output { min-width: 28px; text-align: center; font-weight: 800; font-size: 18px; }
.add-pill { min-height: 48px; padding: 0 22px; border-radius: 999px; border: 0; background: var(--burgundy); color: var(--cream); font-weight: 700; }

.menu-foot { border-top: 2px solid var(--burgundy); padding: 18px 0 8px; }
.icon-row { display: grid; grid-template-columns: 56px 1fr 56px; align-items: center; gap: 10px; }
.icon-row .item-svg { width: 56px; height: auto; }
.icon-row p { margin: 0; text-align: center; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; line-height: 1.6; }
.fineprint { font-size: 12px; line-height: 1.55; margin: 16px 0 0; color: var(--muted); text-align: center; }
.fineprint a { color: var(--burgundy); font-weight: 700; }

/* Cart bar */
.cartbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  padding: 10px 20px calc(10px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--cream) 70%, rgba(249, 246, 242, 0));
}
.cartbar .btn { max-width: 520px; margin: 0 auto; justify-content: space-between; min-height: 64px; font-size: 17px; }
.cartbar .count { background: var(--cream); color: var(--burgundy); border-radius: 999px; min-width: 32px; height: 32px; display: grid; place-items: center; font-weight: 800; padding: 0 8px; }

/* Sheet */
.sheet { position: fixed; inset: 0; z-index: 40; background: rgba(58, 13, 24, .5); display: flex; align-items: flex-end; }
.sheet[hidden] { display: none; }
.sheet-panel {
  background: var(--cream); width: 100%; max-width: 600px; margin: 0 auto; max-height: 94vh; border-radius: 22px 22px 0 0;
  display: flex; flex-direction: column;
}
.sheet-panel.anim { animation: up .2s ease-out; }
@keyframes up { from { transform: translateY(40px); opacity: .6; } }
.sheet-scroll { overflow-y: auto; padding: 8px 20px 12px; -webkit-overflow-scrolling: touch; }
.sheet-top { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px 0 20px; }
.close-x { width: 48px; height: 48px; border: 0; background: none; font-size: 30px; color: var(--burgundy); }
.sheet-hero { display: grid; grid-template-columns: 1fr 72px; gap: 14px; align-items: center; padding-bottom: 6px; }
.sheet-hero h2 { font-family: var(--script); font-weight: 700; font-size: 48px; line-height: .95; margin: 0; }
.sheet-hero .burger-svg { width: 64px; }
.base { color: var(--muted); font-size: 14px; margin: 8px 0 0; }
.allergen { font-size: 12px; color: var(--muted); margin: 6px 0 0; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; margin: 18px 0 6px; }
.seg button {
  min-height: 56px; border-radius: var(--radius); border: 0; background: transparent; box-shadow: inset 0 0 0 2px var(--line);
  font-weight: 700; color: var(--burgundy); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.25;
}
.seg button small { font-weight: 700; font-size: 12px; letter-spacing: .3em; text-transform: uppercase; }
.seg button[aria-pressed="true"] { background: var(--burgundy); color: var(--cream); box-shadow: none; }
.group-label { font-size: 11px; letter-spacing: .3em; text-transform: uppercase; font-weight: 700; color: var(--burgundy); margin: 22px 0 6px; }
.opt {
  display: grid; grid-template-columns: 30px 1fr auto; gap: 12px; align-items: center; width: 100%; text-align: left;
  min-height: 56px; padding: 8px 4px; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--burgundy);
}
.opt .tick { width: 28px; height: 28px; border-radius: 8px; box-shadow: inset 0 0 0 2px var(--burgundy); display: grid; place-items: center; color: var(--cream); font-weight: 800; }
.opt[aria-pressed="true"] .tick { background: var(--burgundy); }
.opt .opt-name { font-weight: 600; }
.opt.removed .opt-name { text-decoration: line-through; color: var(--muted); }
.opt .opt-meta { font-weight: 700; font-size: 14px; }
.opt:disabled { opacity: .45; }
.sheet-foot { padding: 12px 20px calc(14px + env(safe-area-inset-bottom)); border-top: 2px solid var(--burgundy); background: var(--cream); }
.sheet-foot .row { display: flex; justify-content: center; margin-top: 4px; }

/* Checkout */
.page-head { display: flex; align-items: center; gap: 4px; padding: 10px 0 12px; border-bottom: 2px solid var(--burgundy); }
.page-head h2 { font-size: 13px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; margin: 0; }
.back { width: 48px; height: 48px; border: 0; background: none; font-size: 28px; color: var(--burgundy); margin-left: -12px; }
.line { padding: 16px 0; border-bottom: 1px solid var(--line); }
.line-main { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: baseline; }
.line-title { font-weight: 700; font-size: 17px; }
.line-title .sz { font-weight: 500; color: var(--muted); }
.line-price { font-weight: 700; }
.mods { list-style: none; margin: 4px 0 0; padding: 0; }
.mods li { font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.mods li span { font-weight: 500; color: var(--muted); text-transform: none; letter-spacing: 0; }
.line-actions { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.line-actions button { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 0; background: var(--tint-2); color: var(--burgundy); font-weight: 700; font-size: 14px; }
.line .stepper { margin-top: 8px; }
.total-row { display: flex; justify-content: space-between; align-items: baseline; padding: 18px 0 4px; font-weight: 800; font-size: 22px; border-top: 2px solid var(--burgundy); margin-top: -1px; }
.vat { font-size: 12px; color: var(--muted); margin: 0 0 6px; text-align: right; }
.fine { color: var(--muted); font-size: 13px; text-align: center; margin: 10px 0 0; }
.empty { text-align: center; padding: 40px 0; color: var(--muted); }
.pay-wrap { position: sticky; bottom: 0; padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); background: var(--cream); }

/* Status */
.status { text-align: center; padding: 8px 0 24px; }
.status .label { font-size: 11px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; margin-top: 8px; }
.pickup-no { font-weight: 800; font-size: clamp(88px, 30vw, 150px); line-height: 1; letter-spacing: -0.02em; margin: 6px 0 8px; font-variant-numeric: tabular-nums; }
.status h2 { font-size: 24px; margin: 8px 0; font-weight: 800; }
.status p { margin: 6px 0; }
.status.ready { background: var(--burgundy); color: var(--cream); border-radius: 22px; padding: 26px 18px 28px; margin-top: 12px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 22px 0 6px; list-style: none; padding: 0; }
.steps li { font-size: 12px; font-weight: 700; color: var(--muted); padding-top: 10px; border-top: 5px solid var(--tint-2); }
.steps li.done { color: var(--burgundy); border-color: var(--burgundy); }
.status.ready .steps li { color: var(--cream-muted); border-color: rgba(249, 246, 242, .25); }
.status.ready .steps li.done { color: var(--cream); border-color: var(--cream); }
.checking { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 40px 0 10px; }
.checking .spinner { width: 44px; height: 44px; border-width: 4px; }
.receipt { text-align: left; margin-top: 22px; border-top: 2px solid var(--burgundy); }
.receipt .line:last-of-type { border-bottom: 0; }
.status .actions { display: grid; gap: 10px; margin-top: 18px; }
