/* ==========================================================================
   Amigos Bradford — site styles
   Palette: maroon from the Amigos logo, cream paper, mustard price tags.
   Type:    Alfa Slab One (headings, menu-board numerals), Manrope (everything else),
            IBM Plex Mono only for the kitchen-ticket basket and receipts.
   ========================================================================== */

:root {
  --maroon: #6e1230;
  --maroon-deep: #4a0b1f;
  --maroon-soft: #8c2545;
  --maroon-tint: #f3e3e8;
  --cream: #f7ebdd;
  --cream-deep: #ecd9c3;
  --paper: #fffaf3;
  --mustard: #f5b82e;
  --mustard-deep: #cf9410;
  --ink: #1e1416;
  --ink-soft: #6b5a5f;
  --line: #e4cfb9;
  --ok: #2f7d4f;
  --warn: #b4321f;

  --display: 'Alfa Slab One', 'Rockwell', 'Georgia', serif;
  --body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', 'SFMono-Regular', Menlo, Consolas, monospace;

  --radius: 10px;
  --radius-lg: 18px;
  --max: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--cream);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1 0 auto; }

img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--mustard); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hidden { display: none !important; }

.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* Type scale ------------------------------------------------------------- */
.display { font-family: var(--display); line-height: 1; letter-spacing: -0.01em; }
h2.display { font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3rem); }
h3.display { font-size: clamp(1.25rem, 1rem + 0.9vw, 1.6rem); }
.lede { font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem); max-width: 48ch; color: var(--ink-soft); }
.muted { color: var(--ink-soft); }
.price { font-family: var(--display); letter-spacing: 0.01em; white-space: nowrap; }

/* Buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 20px;
  border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; text-decoration: none; line-height: 1.1;
  transition: transform .12s ease, background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--mustard); color: var(--ink); }
.btn-primary:hover { background: #ffc94a; }
.btn-dark { background: var(--maroon); color: var(--cream); }
.btn-dark:hover { background: var(--maroon-soft); }
.btn-outline { background: transparent; color: var(--cream); border-color: rgba(247, 235, 221, .55); }
.btn-outline:hover { border-color: var(--cream); background: rgba(247, 235, 221, .08); }
.btn-ghost { background: transparent; color: var(--maroon); border-color: var(--maroon); }
.btn-ghost:hover { background: var(--maroon-tint); }
.btn-lg { min-height: 54px; padding: 12px 26px; font-size: 1.05rem; }
.btn-sm { min-height: 36px; padding: 6px 14px; font-size: .9rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; }
.btn-block { width: 100%; }

/* Header ---------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  min-height: var(--header-h);
  display: flex; align-items: center; gap: 18px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 44px; width: auto; }
.brand-word { display: none; font-family: var(--display); font-size: 1.45rem; color: var(--maroon); line-height: 1; }
.brand.no-logo .brand-word { display: block; }
.brand-word small { display: block; font-family: var(--body); font-weight: 700; font-size: .7rem; letter-spacing: .08em; color: var(--ink-soft); margin-top: 2px; }
.site-nav { display: none; gap: 4px; margin-left: 12px; }
.site-nav a { padding: 8px 12px; border-radius: 999px; text-decoration: none; font-weight: 600; color: var(--ink); }
.site-nav a:hover, .site-nav a[aria-current="page"] { background: var(--maroon-tint); color: var(--maroon); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.header-phone { display: none; font-weight: 700; text-decoration: none; color: var(--maroon); }
.basket-btn {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  min-height: 42px; padding: 6px 14px 6px 10px; border-radius: 999px;
  background: var(--maroon); color: var(--cream); border: 0; font-weight: 700;
}
.basket-btn:hover { background: var(--maroon-soft); }
.basket-btn svg { width: 20px; height: 20px; }
.basket-btn .count {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  background: var(--mustard); color: var(--ink); font-size: .8rem; font-weight: 800;
  display: inline-grid; place-items: center;
}
.basket-btn .count.bump { animation: bump .3s ease; }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
@media (min-width: 760px) {
  .site-nav { display: flex; }
  .header-phone { display: inline-block; }
}

/* Status pill (open / closed) ------------------------------------------- */
.status-pill {
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px; font-size: .9rem; font-weight: 700;
  background: rgba(247, 235, 221, .12); color: var(--cream);
}
.status-pill::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--mustard); }
.status-pill.closed::before { background: #d9d9d9; }
.status-pill.on-paper { background: var(--maroon-tint); color: var(--maroon); }
.status-pill.on-paper::before { background: var(--ok); }
.status-pill.on-paper.closed::before { background: var(--ink-soft); }

/* Hero: the menu board --------------------------------------------------- */
.hero {
  background: var(--maroon); color: var(--cream);
  padding: clamp(40px, 7vw, 88px) 0 clamp(36px, 6vw, 72px);
  position: relative; overflow: hidden;
}
.hero .wrap { display: grid; gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.1fr .9fr; } }
.hero-top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-bottom: clamp(20px, 3vw, 32px); }
.hero-top a { color: var(--cream); text-decoration: none; font-weight: 700; }
.hero-top a:hover { text-decoration: underline; }
.hero h1 {
  font-family: var(--display);
  font-size: clamp(3.4rem, 2rem + 8.5vw, 8.2rem);
  line-height: .92; letter-spacing: -0.015em;
  color: var(--cream);
}
.hero h1 span { display: block; }
.hero h1 span:nth-child(2) { padding-left: .18em; }
.hero h1 span:nth-child(3) { padding-left: .36em; }
.hero .lede { color: rgba(247, 235, 221, .86); margin-top: clamp(16px, 2.5vw, 26px); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(22px, 3vw, 32px); }
.hero-facts { display: flex; flex-wrap: wrap; gap: 14px 34px; margin-top: clamp(26px, 4vw, 44px); }
.hero-facts div { display: flex; flex-direction: column; gap: 2px; }
.hero-facts b { font-family: var(--display); font-weight: 400; font-size: 1.6rem; line-height: 1; color: var(--mustard); }
.hero-facts span { font-size: .9rem; color: rgba(247, 235, 221, .8); }

.board {
  border: 2px solid rgba(247, 235, 221, .35); border-radius: var(--radius-lg);
  padding: clamp(18px, 2.5vw, 28px);
  background: rgba(74, 11, 31, .35);
}
.board h2 { font-family: var(--display); font-size: 1.3rem; color: var(--cream); margin-bottom: 4px; }
.board > p { color: rgba(247, 235, 221, .75); font-size: .92rem; margin-bottom: 14px; }
.board-row {
  display: grid; grid-template-columns: 1fr auto auto; align-items: baseline; gap: 10px;
  padding: 11px 0; border-top: 1px dotted rgba(247, 235, 221, .3);
}
.board-row:first-of-type { border-top: 0; }
.board-row .name { font-weight: 700; }
.board-row .name small { display: block; font-weight: 500; font-size: .82rem; color: rgba(247, 235, 221, .7); }
.board-row .price { color: var(--mustard); font-size: 1.1rem; }
.board-row .add {
  align-self: center;
  width: 36px; height: 36px; border-radius: 50%; border: 2px solid rgba(247, 235, 221, .45);
  background: transparent; color: var(--cream); font-size: 1.3rem; line-height: 1; display: grid; place-items: center;
}
.board-row .add:hover { background: var(--mustard); border-color: var(--mustard); color: var(--ink); }
.board-foot { margin-top: 14px; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.board-foot a { color: var(--cream); font-weight: 700; }

/* Hero entrance: one orchestrated moment. */
.hero h1 span { opacity: 0; transform: translateY(.35em); animation: rise .55s cubic-bezier(.2, .7, .2, 1) forwards; }
.hero h1 span:nth-child(1) { animation-delay: .05s; }
.hero h1 span:nth-child(2) { animation-delay: .17s; }
.hero h1 span:nth-child(3) { animation-delay: .29s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* Sections -------------------------------------------------------------- */
.section { padding: clamp(44px, 7vw, 84px) 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: clamp(20px, 3vw, 32px); }
.section-head p { max-width: 52ch; color: var(--ink-soft); }
.section.on-maroon { background: var(--maroon); color: var(--cream); }
.section.on-maroon .section-head p, .section.on-maroon .muted { color: rgba(247, 235, 221, .78); }
.section.on-paper { background: var(--paper); }

/* Filmstrip of real dishes */
.strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px;
  -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: var(--maroon) transparent;
}
.strip > * { scroll-snap-align: start; }
.dish {
  background: var(--paper); border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line); display: flex; flex-direction: column;
}
.dish-img { aspect-ratio: 4 / 3; background: var(--maroon-tint); overflow: hidden; }
.dish-img img { width: 100%; height: 100%; object-fit: cover; }
.dish-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.dish-body h3 { font-size: 1.05rem; font-weight: 800; }
.dish-body p { font-size: .9rem; color: var(--ink-soft); flex: 1; }
.dish-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
.dish-foot .price { font-size: 1.15rem; color: var(--maroon); }

/* Deals */
.deals { display: grid; gap: 16px; }
@media (min-width: 700px) { .deals { grid-template-columns: repeat(3, 1fr); } }
.deal {
  position: relative; border: 2px solid var(--maroon); border-radius: var(--radius-lg);
  padding: 22px 22px 20px; background: var(--paper); display: flex; flex-direction: column; gap: 10px;
}
.deal .tag {
  position: absolute; top: -14px; right: 18px;
  background: var(--mustard); color: var(--ink); font-family: var(--display); font-size: 1.15rem;
  padding: 4px 12px; border-radius: 8px; transform: rotate(-2deg);
}
.deal h3 { font-size: 1.2rem; font-weight: 800; padding-right: 72px; }
.deal p { color: var(--ink-soft); flex: 1; }

/* Shakes list on maroon */
#shakes .section-head { display: grid; gap: 20px 40px; align-items: end; }
@media (min-width: 760px) { #shakes .section-head { grid-template-columns: 1fr auto; } }
.shake-list { columns: 1; column-gap: 48px; }
@media (min-width: 700px) { .shake-list { columns: 2; } }
.shake-list li { break-inside: avoid; display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: baseline; padding: 10px 0; border-bottom: 1px dotted rgba(247, 235, 221, .3); }
.shake-list b { font-weight: 800; }
.shake-list span { display: block; font-size: .88rem; color: rgba(247, 235, 221, .72); }
.shake-list .price { color: var(--mustard); }
.quote { font-family: var(--display); font-size: clamp(1.35rem, 1rem + 1.4vw, 2rem); line-height: 1.2; max-width: 22ch; }
.quote + p { margin-top: 10px; }

/* Find us */
.find { display: grid; gap: 28px; }
@media (min-width: 860px) { .find { grid-template-columns: 1fr 1fr; align-items: start; } }
.find-card { display: grid; gap: 20px; }
.find-card h3 { font-weight: 800; font-size: 1.05rem; margin-bottom: 6px; }
.find-card address { font-style: normal; line-height: 1.5; }
.hours { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; }
.hours dt { font-weight: 700; }
.hours dd { margin: 0; }
.fee-list li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px dotted var(--line); max-width: 360px; }
.map { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--cream-deep); min-height: 320px; }
.map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }

/* Footer */
.site-footer { background: var(--maroon-deep); color: rgba(247, 235, 221, .8); padding: 36px 0 28px; font-size: .92rem; }
.site-footer .wrap { display: grid; gap: 18px; }
@media (min-width: 760px) { .site-footer .wrap { grid-template-columns: 1.3fr 1fr 1fr; } }
.site-footer h3 { font-weight: 800; color: var(--cream); font-size: 1rem; margin-bottom: 6px; }
.site-footer a { color: var(--cream); }
.site-footer .fine { grid-column: 1 / -1; border-top: 1px solid rgba(247, 235, 221, .15); padding-top: 16px; font-size: .82rem; display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* Order page ------------------------------------------------------------- */
.order-bar {
  position: sticky; top: var(--header-h); z-index: 30;
  background: var(--cream); border-bottom: 1px solid var(--line);
}
.order-bar .wrap { display: flex; align-items: center; gap: 10px; padding: 10px 0; }
.cat-nav { display: flex; gap: 6px; overflow-x: auto; flex: 1; scrollbar-width: none; padding: 2px; }
.cat-nav::-webkit-scrollbar { display: none; }
.cat-nav a { flex: 0 0 auto; padding: 8px 14px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: .92rem; background: var(--paper); border: 1px solid var(--line); color: var(--ink); }
.cat-nav a:hover { border-color: var(--maroon); }
.cat-nav a.active { background: var(--maroon); border-color: var(--maroon); color: var(--cream); }
.search { position: relative; flex: 0 0 auto; }
.search input {
  width: 160px; max-width: 40vw; min-height: 40px; padding: 8px 12px 8px 36px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--paper);
}
.search input:focus { border-color: var(--maroon); outline: none; box-shadow: 0 0 0 3px rgba(110, 18, 48, .15); }
.search svg { position: absolute; left: 12px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--ink-soft); pointer-events: none; }
@media (min-width: 600px) { .search input { width: 220px; } }

.order-intro { padding: clamp(22px, 4vw, 40px) 0 10px; display: grid; gap: 12px; }
.order-intro h1 { font-family: var(--display); font-size: clamp(2rem, 1.5rem + 2.6vw, 3.4rem); color: var(--maroon); line-height: 1; }
.order-intro .meta { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; color: var(--ink-soft); }
.notice {
  border-radius: var(--radius); padding: 12px 16px; background: var(--maroon-tint); color: var(--maroon);
  font-weight: 600; display: flex; gap: 10px; align-items: flex-start;
}
.notice.warn { background: #fbe9e4; color: var(--warn); }
.notice.ok { background: #e7f3ea; color: var(--ok); }

.menu-cat { padding: clamp(22px, 3vw, 34px) 0 6px; scroll-margin-top: calc(var(--header-h) + 70px); }
.menu-cat h2 { font-family: var(--display); font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.2rem); color: var(--maroon); }
.menu-cat .blurb { color: var(--ink-soft); margin-top: 4px; max-width: 60ch; }
.menu-list { margin-top: 14px; border-top: 1px solid var(--line); }
.menu-item {
  display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; align-items: center;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.menu-item.has-img { grid-template-columns: 76px 1fr auto; }
.menu-item .thumb { width: 76px; height: 60px; border-radius: 8px; object-fit: cover; background: var(--maroon-tint); }
.menu-item .info h3 { font-size: 1.02rem; font-weight: 800; display: inline; }
.menu-item .info p { font-size: .92rem; color: var(--ink-soft); margin-top: 2px; }
.menu-item .tags { display: inline-flex; gap: 6px; margin-left: 8px; vertical-align: middle; }
.tag-pill { font-size: .72rem; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: var(--mustard); color: var(--ink); }
.tag-pill.new { background: var(--maroon); color: var(--cream); }
.tag-pill.veg { background: #dcefdc; color: #1f5e2e; }
.tag-pill.spicy { background: #fbe4dd; color: #9b2a12; }
.menu-item .buy { display: flex; align-items: center; gap: 12px; justify-content: flex-end; }
.menu-item .price { color: var(--maroon); font-size: 1.1rem; }
.menu-item .price small { display: block; font-family: var(--body); font-weight: 600; font-size: .72rem; color: var(--ink-soft); text-align: right; }
.menu-item .add {
  width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--maroon); background: var(--paper);
  color: var(--maroon); font-size: 1.4rem; line-height: 1; display: grid; place-items: center;
}
.menu-item .add:hover { background: var(--maroon); color: var(--cream); }
.menu-item.hidden { display: none; }
.menu-cat.hidden { display: none; }
.no-results { padding: 40px 0; color: var(--ink-soft); text-align: center; }

/* Mobile basket bar */
.basket-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 35;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: var(--paper); border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform .25s ease;
}
.basket-bar.show { transform: none; }
.basket-bar .btn { justify-content: space-between; }
@media (min-width: 900px) { .basket-bar { display: none; } }
body.has-basket-bar main { padding-bottom: 86px; }

/* Add-to-basket dialog --------------------------------------------------- */
dialog { border: 0; padding: 0; background: transparent; max-width: none; }
dialog::backdrop { background: rgba(30, 20, 22, .55); backdrop-filter: blur(2px); }
.sheet {
  width: min(520px, 100vw); background: var(--paper); color: var(--ink);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0; padding: 22px 22px 26px;
  margin: auto 0 0; max-height: 92vh; overflow: auto;
}
@media (min-width: 640px) { .sheet { border-radius: var(--radius-lg); margin: auto; } }
dialog { position: fixed; inset: 0; width: 100vw; height: 100vh; max-height: none; display: none; }
dialog[open] { display: flex; align-items: flex-end; justify-content: center; }
@media (min-width: 640px) { dialog[open] { align-items: center; } }
.sheet-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.sheet-head h2 { font-size: 1.35rem; font-weight: 800; }
.sheet-head p { color: var(--ink-soft); margin-top: 4px; }
.close-x { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--maroon-tint); color: var(--maroon); font-size: 1.2rem; flex: 0 0 auto; }
.field { display: grid; gap: 6px; margin-top: 18px; align-content: start; }
.field > label, .field > .label { font-weight: 700; font-size: .95rem; }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field textarea, .field select {
  width: 100%; min-height: 46px; padding: 10px 12px; border-radius: var(--radius);
  border: 1px solid #cdb9a4; background: #fff;
}
.field textarea { min-height: 76px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--maroon); outline: none; box-shadow: 0 0 0 3px rgba(110, 18, 48, .15); }
.field .hint { font-size: .85rem; color: var(--ink-soft); }
.choices { display: grid; gap: 8px; }
.choice { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border: 1px solid #cdb9a4; border-radius: var(--radius); background: #fff; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--maroon); box-shadow: inset 0 0 0 1px var(--maroon); background: var(--maroon-tint); }
.choice input { accent-color: var(--maroon); width: 18px; height: 18px; margin: 0; }
.choice .l { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.choice .price { color: var(--maroon); }
.stepper { display: inline-flex; align-items: center; border: 1px solid #cdb9a4; border-radius: 999px; background: #fff; }
.stepper button { width: 42px; height: 42px; border: 0; background: transparent; font-size: 1.3rem; color: var(--maroon); border-radius: 50%; }
.stepper button:hover { background: var(--maroon-tint); }
.stepper output { min-width: 36px; text-align: center; font-weight: 800; }
.sheet-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 22px; }

/* Basket drawer (kitchen ticket) ------------------------------------------ */
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 50;
  width: min(440px, 100vw); background: var(--paper); color: var(--ink);
  transform: translateX(100%); transition: transform .28s cubic-bezier(.2, .7, .2, 1);
  display: flex; flex-direction: column; box-shadow: -12px 0 40px rgba(30, 20, 22, .25);
}
.drawer.open { transform: none; }
.drawer-backdrop { position: fixed; inset: 0; z-index: 49; background: rgba(30, 20, 22, .5); opacity: 0; pointer-events: none; transition: opacity .25s ease; }
.drawer-backdrop.show { opacity: 1; pointer-events: auto; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 12px; border-bottom: 2px dashed var(--line); }
.drawer-head h2 { font-family: var(--mono); font-weight: 700; font-size: 1.05rem; letter-spacing: .04em; }
.drawer-body { flex: 1; overflow: auto; padding: 14px 20px; font-family: var(--mono); font-size: .92rem; }
.ticket-line { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 10px 0; border-bottom: 1px dotted var(--line); }
.ticket-line .n { font-weight: 700; }
.ticket-line .note { grid-column: 1 / -1; font-size: .82rem; color: var(--ink-soft); white-space: pre-wrap; }
.ticket-line .qty { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; font-family: var(--body); }
.ticket-line .qty button { width: 30px; height: 30px; border-radius: 50%; border: 1px solid #cdb9a4; background: #fff; color: var(--maroon); font-size: 1rem; line-height: 1; }
.ticket-line .qty output { min-width: 26px; text-align: center; font-weight: 800; }
.ticket-line .qty button.rm { width: auto; height: auto; margin-left: 8px; padding: 2px 4px; border: 0; border-radius: 4px; background: transparent; color: var(--ink-soft); text-decoration: underline; font-size: .82rem; font-family: var(--body); }
.ticket-empty { padding: 40px 0; text-align: center; color: var(--ink-soft); font-family: var(--body); }
.ticket-sum { padding-top: 10px; display: grid; gap: 6px; }
.ticket-sum div { display: flex; justify-content: space-between; gap: 12px; }
.ticket-sum .total { font-weight: 700; font-size: 1.15rem; border-top: 2px dashed var(--line); padding-top: 10px; margin-top: 4px; }
.drawer-foot { padding: 14px 20px calc(16px + env(safe-area-inset-bottom)); border-top: 2px dashed var(--line); display: grid; gap: 10px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--cream); border-radius: 999px; padding: 4px; }
.seg label { text-align: center; padding: 9px 10px; border-radius: 999px; font-weight: 700; cursor: pointer; font-size: .95rem; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label:has(input:checked) { background: var(--maroon); color: var(--cream); }
.zone-select { width: 100%; min-height: 44px; padding: 8px 12px; border-radius: var(--radius); border: 1px solid #cdb9a4; background: #fff; }
.mini-note { font-size: .85rem; color: var(--ink-soft); }
.mini-note.warn { color: var(--warn); font-weight: 600; }

/* Checkout page ---------------------------------------------------------- */
.checkout { padding: clamp(24px, 4vw, 48px) 0 60px; display: grid; gap: 28px; }
@media (min-width: 900px) { .checkout { grid-template-columns: 1.15fr .85fr; align-items: start; } }
.checkout h1 { font-family: var(--display); font-size: clamp(2rem, 1.5rem + 2.6vw, 3.2rem); color: var(--maroon); line-height: 1; margin-bottom: 8px; }
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(18px, 3vw, 28px); }
.form-card + .form-card { margin-top: 18px; }
.form-card h2 { font-size: 1.15rem; font-weight: 800; }
.grid-2 { display: grid; gap: 0 16px; }
@media (min-width: 560px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.pay-options { display: grid; gap: 10px; margin-top: 14px; }
.pay-option { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; padding: 14px 16px; border: 1px solid #cdb9a4; border-radius: var(--radius); background: #fff; cursor: pointer; }
.pay-option:has(input:checked) { border-color: var(--maroon); box-shadow: inset 0 0 0 1px var(--maroon); background: var(--maroon-tint); }
.pay-option input { accent-color: var(--maroon); width: 18px; height: 18px; margin-top: 3px; }
.pay-option b { display: block; }
.pay-option span { font-size: .9rem; color: var(--ink-soft); }
.ticket { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; font-family: var(--mono); font-size: .92rem; }
.ticket h2 { font-family: var(--mono); font-weight: 700; font-size: 1rem; letter-spacing: .04em; padding-bottom: 10px; border-bottom: 2px dashed var(--line); }
.ticket .ticket-line .qty { display: none; }
@media (min-width: 900px) { .sticky { position: sticky; top: calc(var(--header-h) + 16px); } }
.checkout-head { grid-column: 1 / -1; }
.checkout-head .lede { margin-top: 4px; }
@media (max-width: 899px) { .checkout-head { order: -2; } .checkout aside { order: -1; } }
.errors { margin-top: 14px; display: grid; gap: 6px; }
.errors li { background: #fbe9e4; color: var(--warn); padding: 10px 12px; border-radius: var(--radius); font-weight: 600; }

/* Success / demo pay / admin --------------------------------------------- */
.narrow { width: min(640px, 100% - 2 * var(--gutter)); margin-inline: auto; padding: clamp(28px, 5vw, 60px) 0 70px; }
.stamp { display: inline-block; font-family: var(--display); font-size: 1.1rem; color: var(--ok); border: 3px solid var(--ok); padding: 4px 12px; border-radius: 8px; transform: rotate(-3deg); }
.stamp.pending { color: var(--mustard-deep); border-color: var(--mustard-deep); }
.stamp.bad { color: var(--warn); border-color: var(--warn); }
.ticket-big { background: var(--paper); border-radius: var(--radius-lg); border: 1px solid var(--line); padding: 26px; margin-top: 20px; font-family: var(--mono); }
.ticket-big h1 { font-family: var(--display); font-size: clamp(1.8rem, 1.4rem + 2vw, 2.8rem); color: var(--maroon); line-height: 1; }
.ticket-big .ref { font-size: 1.25rem; font-weight: 700; margin-top: 6px; }
.next-steps { margin-top: 24px; display: grid; gap: 10px; }
.next-steps li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; }
.next-steps li::before { content: "✓"; width: 24px; height: 24px; border-radius: 50%; background: var(--maroon); color: var(--cream); display: grid; place-items: center; font-size: .8rem; font-weight: 800; }
.demo-banner { background: var(--mustard); color: var(--ink); padding: 10px 16px; border-radius: var(--radius); font-weight: 700; margin-bottom: 18px; }
.card-form .field input { font-family: var(--mono); letter-spacing: .05em; }

.admin-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 24px 0 14px; }
.admin-top h1 { font-family: var(--display); font-size: 2rem; color: var(--maroon); line-height: 1; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.filters button { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); font-weight: 700; }
.filters button.active { background: var(--maroon); color: var(--cream); border-color: var(--maroon); }
.orders { display: grid; gap: 14px; padding-bottom: 60px; }
@media (min-width: 760px) { .orders { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); } }
.order-card { background: var(--paper); border: 1px solid var(--line); border-left: 6px solid var(--maroon); border-radius: var(--radius); padding: 16px; font-family: var(--mono); font-size: .9rem; display: grid; gap: 8px; }
.order-card.s-paid, .order-card.s-placed { border-left-color: var(--mustard); }
.order-card.s-completed { border-left-color: var(--ok); opacity: .75; }
.order-card.s-cancelled, .order-card.s-awaiting_payment { border-left-color: #c9c9c9; opacity: .7; }
.order-card header { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.order-card header b { font-size: 1.1rem; }
.status-badge { font-family: var(--body); font-size: .75rem; font-weight: 800; padding: 3px 9px; border-radius: 999px; background: var(--maroon-tint); color: var(--maroon); text-transform: capitalize; }
.order-card .cust { font-family: var(--body); }
.order-card .lines { border-top: 1px dotted var(--line); border-bottom: 1px dotted var(--line); padding: 6px 0; }
.order-card .lines div { display: flex; justify-content: space-between; gap: 10px; }
.order-card .lines small { display: block; color: var(--ink-soft); }
.order-card .actions { display: flex; flex-wrap: wrap; gap: 6px; font-family: var(--body); }
.order-card .actions button { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--maroon); background: var(--paper); color: var(--maroon); font-weight: 700; font-size: .85rem; }
.order-card .actions button:hover { background: var(--maroon); color: var(--cream); }

/* Admin sound toggle */
.sound-toggle { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-weight: 700; font-size: .92rem; }
.sound-toggle input { width: 18px; height: 18px; accent-color: var(--maroon); margin: 0; }

/* Hero on small phones: buttons side by side, facts in a row */
@media (max-width: 520px) {
  .hero-cta { flex-wrap: nowrap; gap: 10px; }
  .hero-cta .btn-lg { flex: 1 1 0; padding-inline: 8px; font-size: .95rem; }
  .hero-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .hero-facts b { font-size: 1.35rem; }
  .hero-facts span { font-size: .8rem; line-height: 1.35; }
}

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); z-index: 60;
  background: var(--ink); color: var(--cream); padding: 12px 18px; border-radius: 999px; font-weight: 700;
  opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 899px) { body.has-basket-bar .toast { bottom: 96px; } }

/* Dropdown choices in the add sheet --------------------------------------- */
.pick-grid { display: grid; gap: 10px; }
@media (min-width: 480px) { .pick-grid:has(.pick:nth-child(3)) { grid-template-columns: 1fr 1fr; } }
.pick { display: grid; gap: 4px; }
.pick label { font-size: .82rem; font-weight: 700; color: var(--ink-soft); }
.pick-select {
  width: 100%; min-height: 48px; padding: 10px 40px 10px 12px; border-radius: var(--radius);
  border: 1px solid #cdb9a4; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236e1230' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 18px;
  appearance: none; -webkit-appearance: none; font: inherit; color: var(--ink);
}
.pick-select:focus { border-color: var(--maroon); outline: none; box-shadow: 0 0 0 3px rgba(110, 18, 48, .15); }
.pick-select.invalid { border-color: var(--warn); box-shadow: 0 0 0 3px rgba(180, 50, 31, .15); }

/* Postcode-based delivery charge ----------------------------------------- */
.postcode-check { display: grid; gap: 6px; }
.postcode-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.postcode-row .btn { min-height: 44px; }
.quote-box { min-height: 46px; display: flex; align-items: center; padding: 10px 12px; border-radius: var(--radius); background: var(--cream); color: var(--ink-soft); font-weight: 600; font-size: .95rem; }
.quote-box.ok { background: #e7f3ea; color: var(--ok); }
.quote-box.warn { background: #fbe9e4; color: var(--warn); }

/* Admin: sign-in, tabs, dropdown list editor ------------------------------ */
.admin-tabs { display: flex; gap: 6px; flex-wrap: wrap; padding-top: 22px; }
.admin-tabs button { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); font-weight: 800; }
.admin-tabs button[aria-selected="true"] { background: var(--maroon); color: var(--cream); border-color: var(--maroon); }
.auth-wrap { min-height: calc(100vh - var(--header-h)); display: grid; place-items: center; padding: 30px var(--gutter) 60px; }
.auth-card { width: min(440px, 100%); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 4vw, 32px); box-shadow: 0 18px 50px rgba(74, 11, 31, .12); }
.auth-card h1 { font-family: var(--display); color: var(--maroon); font-size: 1.9rem; line-height: 1.05; }
.auth-card p.lead { color: var(--ink-soft); margin-top: 8px; }
.auth-card .btn { margin-top: 18px; }
.code-input { font-family: var(--mono) !important; font-size: 1.5rem !important; letter-spacing: .3em; text-align: center; }
.qr-box { display: grid; place-items: center; margin: 16px 0 8px; padding: 12px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); }
.qr-box svg { width: 200px; height: 200px; }
.key-box { font-family: var(--mono); font-size: .92rem; background: var(--cream); border-radius: 8px; padding: 10px 12px; word-break: break-all; text-align: center; user-select: all; }
.steps { margin: 14px 0 0 1.3em; display: grid; gap: 6px; color: var(--ink); list-style: decimal; }
.steps li { padding-left: 4px; }
.codes-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; font-family: var(--mono); font-size: 1.05rem; background: var(--cream); border-radius: var(--radius); padding: 14px 16px; margin-top: 12px; }
.list-editor { display: grid; gap: 18px; padding: 10px 0 60px; }
.list-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(16px, 3vw, 24px); }
.list-card h2 { font-size: 1.15rem; font-weight: 800; }
.list-card > p { color: var(--ink-soft); font-size: .92rem; margin-top: 2px; }
.opt-head, .opt-row { display: grid; grid-template-columns: 1fr 92px 86px 40px; gap: 8px; align-items: center; }
.opt-head { font-size: .78rem; font-weight: 800; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .04em; margin-top: 14px; padding-bottom: 4px; }
.opt-row { padding: 6px 0; border-top: 1px dotted var(--line); }
.opt-row input[type="text"], .opt-row input[type="number"] { width: 100%; min-height: 40px; padding: 6px 10px; border-radius: 8px; border: 1px solid #cdb9a4; background: #fff; font: inherit; }
.opt-row.off input[type="text"] { color: var(--ink-soft); text-decoration: line-through; }
.opt-row label { display: flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 700; }
.opt-row input[type="checkbox"] { accent-color: var(--maroon); width: 18px; height: 18px; }
.opt-row .del { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--maroon-tint); color: var(--maroon); font-size: 1.1rem; }
.list-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; align-items: center; }
.save-bar { position: sticky; bottom: 0; z-index: 5; background: rgba(247, 235, 221, .96); backdrop-filter: blur(6px); border-top: 1px solid var(--line); padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); }
.save-bar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
@media (max-width: 520px) {
  .opt-head { display: none; }
  .opt-row { grid-template-columns: 1fr auto; grid-template-areas: "name del" "extra avail"; padding: 10px 0; }
  .opt-row .n { grid-area: name; } .opt-row .x { grid-area: extra; } .opt-row .a { grid-area: avail; justify-self: end; } .opt-row .del { grid-area: del; }
  .opt-row .x::before { content: "Extra £"; font-size: .8rem; font-weight: 800; color: var(--ink-soft); margin-right: 8px; white-space: nowrap; }
  .opt-row .x { display: flex; align-items: center; }
  .opt-row .x input { width: 96px; }
  .opt-row label { white-space: nowrap; }
}
.security-card { max-width: 640px; }
