/* Food Orders ordering site.
   Design notes:
   - Menu first: one slim header, one short masthead, then the food.
   - Red (--accent) is only for the main action and the logo dot. Everything else is ink on warm paper.
   - 16px body text, 44px touch targets, inputs at 16px so phones do not zoom.
   - Shared by /, /track/, /info/ and /kitchen/. Keep .header, .logo, .err and .modal-action-btn working. */

:root {
  --bg: #FAF7F2;
  --surface: #FFFFFF;
  --ink: #1F1D1A;
  --muted: #6A645A;
  --line: #EAE3D6;
  --line-strong: #D9D0BF;
  --soft: #F3EEE5;
  --accent: #C8392B;
  --accent-dark: #A82E21;
  --accent-soft: #FBE9E6;
  --ok: #2D7A2D;
  --ok-soft: #EDF7ED;
  --ok-line: #B8DFB8;
  --warn: #92400E;
  --warn-soft: #FEF3C7;
  --warn-line: #FCD34D;
  --bad: #991B1B;
  --bad-soft: #FEE2E2;
  --bad-line: #FECACA;
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 22px;
  --shadow: 0 1px 2px rgba(31, 29, 26, .04), 0 4px 16px rgba(31, 29, 26, .06);
  --shadow-lg: 0 24px 64px rgba(31, 29, 26, .28);
  --header-h: 64px;
  --nav-h: 60px;
  --wrap: 1240px;
  --gutter: max(20px, calc((100% - var(--wrap)) / 2));
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-padding-top: calc(var(--header-h) + var(--nav-h) + 12px); }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
button { font-family: inherit; color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- DEMO BANNER ---------- */
.demo-banner {
  background: var(--soft);
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  text-align: center;
  padding: 7px 1rem;
  line-height: 1.4;
}
.demo-banner a { color: var(--ink); font-weight: 600; }

/* ---------- HEADER ---------- */
.header {
  background: rgba(255, 255, 255, .97);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
  height: var(--header-h);
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.logo {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -.3px;
  line-height: 1;
  white-space: nowrap;
}
.logo span { color: var(--accent); }
a.logo, a.footer-logo { text-decoration: none; }
.header-right { display: flex; align-items: center; gap: 10px; }
.header-call {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  background: var(--surface);
  transition: background .15s;
}
.header-call:hover { background: var(--soft); }
.header-call svg { width: 16px; height: 16px; }

/* ---------- OPEN / CLOSED BADGE ---------- */
.status-pill {
  font-size: 13px;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 999px;
  white-space: nowrap;
  border: 1px solid transparent;
}
.status-open { background: var(--ok-soft); color: var(--ok); border-color: var(--ok-line); }
.status-closing { background: var(--warn-soft); color: var(--warn); border-color: var(--warn-line); }
.status-closed { background: var(--soft); color: var(--muted); border-color: var(--line-strong); }

/* ---------- MASTHEAD ---------- */
.masthead {
  padding: 28px var(--gutter) 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.masthead h1 {
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -.4px;
  margin-bottom: 10px;
}
.masthead p { font-size: 15px; color: var(--muted); line-height: 1.55; }
.masthead p + p { margin-top: 2px; }
.masthead a { color: inherit; }
.hero-img {
  width: 168px;
  height: 104px;
  border-radius: var(--r);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--soft);
}
.hero-img img { width: 100%; height: 100%; object-fit: cover; }

/* collection / delivery toggle */
.mode-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 2px 0 12px; }
.mode-row .mode-toggle { margin: 0; }
.track-btn {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 52px; padding: 0 18px;
  border: 1px solid var(--line-strong); border-radius: 16px;
  background: var(--surface); color: var(--ink);
  font-size: 15px; font-weight: 600; cursor: pointer;
  transition: background .15s, border-color .15s;
}
.track-btn:hover { background: var(--soft); border-color: var(--ink); }
.track-btn svg { width: 20px; height: 20px; }
.mode-toggle {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  margin: 2px 0 12px;
  max-width: 100%;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.mode-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 8px 18px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  text-align: left;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.mode-btn svg { width: 22px; height: 22px; flex-shrink: 0; }
.mode-label { display: block; font-size: 15px; font-weight: 600; line-height: 1.2; }
.mode-sub { display: block; font-size: 13px; line-height: 1.3; }
.mode-btn:hover { color: var(--ink); }
.mode-btn.selected { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1.5px var(--ink); }
.mode-btn.selected .mode-sub { color: var(--muted); }

/* ---------- PAGE LAYOUT ---------- */
.body-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 32px;
  align-items: start;
  padding: 0 var(--gutter) 56px;
}
.menu-col { min-width: 0; }

/* ---------- CATEGORY CHIPS ---------- */
.catnav {
  position: sticky;
  top: var(--header-h);
  z-index: 90;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  background: var(--bg);
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
  mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
  padding-right: 28px;
}
.catnav::-webkit-scrollbar { display: none; }
.cat-btn {
  flex-shrink: 0;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.cat-btn:hover { border-color: var(--ink); }
.cat-btn.active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- MENU ---------- */
.menu-panel { padding-top: 4px; }
.loading-note { font-size: 15px; color: var(--muted); padding: 1rem 0; }
.section-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 28px 0 14px;
}
.menu-panel section:first-child .section-head { margin-top: 12px; }
.section-title {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -.2px;
  line-height: 1.2;
}
.section-count { font-size: 14px; color: var(--muted); }

.items-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 14px;
}

.menu-item {
  cursor: pointer;
  display: flex;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 14px;
  min-width: 0;
  transition: border-color .15s, box-shadow .15s;
}
.menu-item:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.item-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.item-name { font-size: 16px; font-weight: 600; line-height: 1.3; }
.item-open {
  background: none; border: 0; padding: 0; font: inherit; color: inherit; text-align: left; cursor: pointer;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.item-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.item-foot { margin-top: auto; padding-top: 8px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; }
.item-price { font-size: 16px; font-weight: 600; white-space: nowrap; }
.pop-badge { font-size: 12px; font-weight: 600; color: var(--accent-dark); white-space: nowrap; }
.in-basket {
  font-size: 12px;
  font-weight: 600;
  color: var(--ok);
  background: var(--ok-soft);
  border-radius: 999px;
  padding: 2px 9px;
  white-space: nowrap;
}
.in-basket[hidden] { display: none; }

.item-media { position: relative; flex: 0 0 104px; width: 104px; min-height: 104px; align-self: stretch; }
.item-media.no-photo { flex: 0 0 auto; width: auto; min-height: 0; align-self: flex-end; }
.item-img {
  width: 104px;
  height: 104px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--soft);
}
.item-img img { width: 100%; height: 100%; object-fit: cover; }
.add-btn {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font-size: 26px;
  font-weight: 400;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(31, 29, 26, .18);
  transition: background .15s, color .15s, transform .1s;
}
.item-media.no-photo .add-btn { position: static; box-shadow: none; }
.add-btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.add-btn:active { transform: scale(.92); }

/* skeleton while the menu loads */
.skeleton { height: 132px; border-radius: var(--r); background: linear-gradient(90deg, var(--soft) 25%, #EFE9DD 50%, var(--soft) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite linear; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- DESKTOP BASKET ---------- */
.cart-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: 22px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: calc(var(--header-h) + 16px);
  max-height: calc(100vh - var(--header-h) - 32px);
  overflow-y: auto;
}
.cart-title { font-family: var(--serif); font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 28px 8px 20px;
  color: var(--muted);
  text-align: center;
}
.cart-empty svg { width: 40px; height: 40px; opacity: .4; }
.cart-empty p { font-size: 15px; line-height: 1.5; }
.cart-items { display: flex; flex-direction: column; margin-top: 8px; }
.cart-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  gap: 12px;
}
.cart-row-left { flex: 1; min-width: 0; }
.cart-item-name { font-size: 15px; font-weight: 500; margin-bottom: 6px; line-height: 1.35; }
.cart-item-note { font-size: 13px; color: var(--muted); margin-top: 2px; }
.cart-item-controls { display: flex; align-items: center; gap: 10px; }
.qty-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
  flex-shrink: 0;
  transition: background .12s;
}
.qty-btn:hover { background: var(--soft); }
.qty-num { font-size: 15px; font-weight: 600; min-width: 18px; text-align: center; }
.cart-item-price { font-size: 15px; font-weight: 600; flex-shrink: 0; white-space: nowrap; }
.cart-line { display: flex; justify-content: space-between; font-size: 15px; color: var(--muted); padding: 3px 0; }
.cart-divider { height: 1px; background: var(--line); margin: 12px 0; }
.cart-total { display: flex; justify-content: space-between; font-size: 17px; font-weight: 700; padding: 4px 0; }
.checkout-btn, .modal-action-btn {
  width: 100%;
  min-height: 52px;
  padding: 14px;
  background: var(--accent);
  color: var(--on-accent, #fff);
  border: none;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--sans);
  transition: background .15s;
  text-decoration: none;
  text-align: center;
  display: block;
}
.checkout-btn { margin-top: 12px; }
.modal-action-btn { margin-top: .5rem; }
.checkout-btn:hover, .modal-action-btn:hover { background: var(--accent-dark); }
.checkout-btn:disabled, .modal-action-btn:disabled { background: var(--line-strong); color: var(--muted); cursor: not-allowed; }
.cart-note { font-size: 13px; color: var(--muted); text-align: center; margin-top: 10px; line-height: 1.5; }

/* ---------- MOBILE BASKET BAR ---------- */
.mobile-cart-bar {
  display: none;
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  min-height: 56px;
  background: var(--accent);
  color: var(--on-accent, #fff);
  padding: 12px 18px;
  z-index: 150;
  cursor: pointer;
  border: none;
  border-radius: 18px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 8px 24px rgba(168, 46, 33, .38);
}
.mobile-cart-bar.has-items { display: flex; }
.mobile-cart-count {
  background: rgba(255, 255, 255, .22);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}
.mobile-cart-label { font-size: 16px; font-weight: 600; flex: 1; text-align: left; }
.mobile-cart-total { font-size: 16px; font-weight: 700; flex-shrink: 0; }

/* ---------- FOOTER ---------- */
.footer {
  background: var(--footer-bg, var(--ink));
  color: #B9B2A6;
  padding: 28px var(--gutter);
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer a { color: inherit; }
.footer-logo { font-family: var(--serif); font-size: 18px; color: #F5F0E8; font-weight: 700; }
.footer-logo span { color: color-mix(in srgb, var(--accent) 70%, white); }
.logo-img { height: 30px; width: auto; display: block; }
.powered { width: 100%; margin-top: 6px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 12px; opacity: .8; }
.powered a { text-decoration: none; }
.powered a:hover { text-decoration: underline; }
.powered-page { margin: 2rem 1rem 1.5rem; text-align: center; border: 0; padding: 0; color: var(--muted); }
.footer-addr { margin-top: 4px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; }

/* ---------- CHECKOUT SHEET ---------- */
.modal-overlay {
  display: none;
  position: fixed;
  left: 0; right: 0;
  top: var(--vv-top, 0px);
  height: var(--vv-h, 100%);
  background: rgba(31, 29, 26, .55);
  z-index: 500;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--surface);
  border-radius: var(--r-lg);
  width: 100%;
  max-width: 540px;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.modal-header {
  padding: 18px 22px 14px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  position: sticky;
  top: 0;
  background: var(--surface);
  z-index: 10;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}
.modal-title { font-family: var(--serif); font-size: 22px; font-weight: 700; flex: 1; }
.modal-close, .modal-back-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
  flex-shrink: 0;
}
.modal-close:hover, .modal-back-icon:hover { background: var(--soft); }
.modal-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 20px; }

.label-caps, .group-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.label-caps { margin-bottom: 8px; }

/* basket screen */
.b-empty { display: none; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 2.5rem 1rem; color: var(--muted); text-align: center; font-size: 15px; line-height: 1.6; }
.b-empty .modal-action-btn { width: auto; padding-inline: 24px; }
.b-row { padding: 14px 0; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; }
.b-main { flex: 1; min-width: 0; }
.b-name { font-size: 15px; font-weight: 500; margin-bottom: 8px; line-height: 1.35; }
.b-ctrl { display: flex; align-items: center; gap: 12px; }
.b-ctrl .qty-btn { width: 40px; height: 40px; font-size: 20px; }
.b-ctrl .qty-num { font-size: 16px; min-width: 20px; }
.b-price { font-size: 15px; font-weight: 600; min-width: 52px; text-align: right; }
.basket-remove { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface); color: var(--muted); font-size: 14px; display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; }
.basket-remove:hover { background: var(--soft); color: var(--ink); }
.b-nudge { background: var(--soft); border-radius: 12px; padding: 12px 14px; font-size: 14px; color: var(--muted); margin: 14px 0; display: flex; align-items: center; gap: 10px; }
.b-nudge button { margin-left: auto; font-size: 14px; font-weight: 600; color: var(--accent-dark); background: none; border: none; cursor: pointer; white-space: nowrap; min-height: 40px; padding: 0 4px; }
.b-small { font-size: 13px; color: var(--muted); text-align: center; margin-top: 10px; line-height: 1.5; }
.b-subtotal { margin-top: 4px; font-size: 17px; font-weight: 700; display: flex; justify-content: space-between; padding: 4px 0 12px; }

/* steps */
.steps { display: flex; align-items: center; gap: 0; }
.step { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--muted); }
.step.active { color: var(--ink); }
.step.done { color: var(--ok); }
.step-num, .step-done-num {
  width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; flex-shrink: 0;
}
.step-num { border: 1.5px solid currentColor; }
.step.active .step-num { background: var(--ink); border-color: var(--ink); color: #fff; }
.step-done-num { background: var(--ok); color: #fff; }
.step-line { flex: 1; height: 1px; background: var(--line-strong); margin: 0 10px; }

/* collection / delivery */
.type-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.type-btn {
  padding: 14px 12px;
  min-height: 92px;
  border-radius: 14px;
  border: 1.5px solid var(--line-strong);
  background: var(--surface);
  cursor: pointer;
  text-align: center;
  transition: border-color .15s, background .15s;
}
.type-btn:hover { border-color: var(--ink); }
.type-btn.selected { border-color: var(--accent); background: var(--accent-soft); }
.type-btn-icon { display: block; margin: 0 auto 6px; width: 26px; height: 26px; color: var(--ink); }
.type-btn.selected .type-btn-icon { color: var(--accent-dark); }
.type-btn-label { font-size: 16px; font-weight: 600; display: block; }
.type-btn-sub { font-size: 13px; color: var(--muted); display: block; margin-top: 2px; }

/* fields */
.field-group { display: flex; flex-direction: column; gap: 14px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: var(--muted); }
.field input, .field select, .field textarea {
  padding: 12px 14px;
  min-height: 48px;
  border: 1.5px solid var(--line-strong);
  border-radius: 12px;
  font-size: 16px; /* 16px stops phones zooming in on focus */
  font-family: var(--sans);
  color: var(--ink);
  background: var(--surface);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(31, 29, 26, .1);
}
.field textarea { resize: vertical; min-height: 84px; }
.hint { font-size: 14px; color: var(--muted); margin-bottom: 10px; }

.postcode-row { display: flex; gap: 10px; align-items: flex-end; }
.postcode-row .field { flex: 1; }
.lookup-btn {
  padding: 0 18px;
  min-height: 48px;
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s;
}
.lookup-btn:hover { background: #3A3834; }
.lookup-btn:disabled { background: var(--line-strong); cursor: not-allowed; }
.manual-address { display: none; flex-direction: column; gap: 12px; margin-top: 12px; }

.out-of-range { background: var(--warn-soft); border: 1px solid var(--warn-line); border-radius: 12px; padding: 12px 14px; font-size: 14px; color: var(--warn); display: none; margin-top: 10px; }
.out-of-range.show { display: block; }
.err { background: var(--bad-soft); border: 1px solid var(--bad-line); color: var(--bad); border-radius: 12px; padding: 12px 14px; font-size: 14px; line-height: 1.5; display: none; }
.err.show { display: block; }
.pc-ok { background: var(--ok-soft); border: 1px solid var(--ok-line); color: var(--ok); border-radius: 12px; padding: 12px 14px; font-size: 14px; font-weight: 600; margin-top: 10px; display: none; }
.pc-ok.show { display: block; }
.closed-note { background: var(--warn-soft); border: 1px solid var(--warn-line); border-radius: 12px; padding: 12px 14px; font-size: 14px; color: var(--warn); margin-top: 10px; line-height: 1.5; }

.collection-info { background: var(--soft); border-radius: 14px; padding: 14px; display: none; }
.collection-info.show { display: block; }
.collection-info-title { font-size: 14px; font-weight: 600; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.collection-info-title svg { width: 16px; height: 16px; }
.map-embed { width: 100%; height: 160px; border-radius: 10px; border: none; margin-bottom: 10px; pointer-events: none; background: var(--soft); }
.collection-address { font-size: 14px; color: var(--muted); display: flex; flex-direction: column; gap: 4px; }
.collection-address strong { color: var(--ink); }
.collection-address a { color: var(--accent-dark); font-weight: 600; text-decoration: none; margin-top: 4px; display: inline-block; }

/* time slots */
.time-options { display: flex; gap: 8px; flex-wrap: wrap; min-height: 96px; align-content: flex-start; }
.time-note { font-size: 14px; color: var(--muted); }
.time-chip {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1.5px solid var(--line-strong);
  background: var(--surface);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.time-chip:hover { border-color: var(--ink); }
.time-chip.selected { border-color: var(--ink); background: var(--ink); color: #fff; font-weight: 600; }
.field .time-more, .time-more {
  min-height: 42px; padding: 0 34px 0 16px; border-radius: 999px;
  border: 1.5px dashed var(--line-strong); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 14px center;
  width: auto !important; max-width: 100%; -webkit-appearance: none; appearance: none; font: inherit; font-size: 15px; font-weight: 500; color: var(--ink); cursor: pointer;
}
.field .time-more.selected, .time-more.selected { border: 1.5px solid var(--ink); background-color: var(--ink); color: #fff; font-weight: 600;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23fff' stroke-width='2'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.time-chip[disabled] { opacity: .4; cursor: not-allowed; }

/* review & pay */
.modal-order-summary, .soft-box { background: var(--soft); border-radius: 14px; padding: 14px 16px; }
.modal-summary-title { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 10px; }
.modal-summary-row { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; padding: 3px 0; }
.modal-summary-row em { color: var(--muted); font-style: normal; }
.modal-summary-row.total { font-weight: 700; font-size: 17px; border-top: 1px solid var(--line-strong); margin-top: 8px; padding-top: 10px; }
.delivery-fee-row { color: var(--muted); }
.pay-details { font-size: 15px; display: flex; flex-direction: column; gap: 6px; line-height: 1.5; }
.trust-live { background: var(--ok-soft); border: 1px solid var(--ok-line); border-radius: 14px; padding: 14px 16px; }
.trust-demo { background: var(--warn-soft); border: 1px solid var(--warn-line); border-radius: 14px; padding: 14px 16px; display: none; color: var(--warn); }
.trust-live strong, .trust-demo strong { display: block; font-size: 15px; margin-bottom: 4px; }
.trust-live strong { color: var(--ok); }
.trust-live span, .trust-demo span { font-size: 14px; line-height: 1.5; }
.trust-live span { color: var(--muted); }

.modal-back-btn {
  width: 100%;
  min-height: 48px;
  padding: 10px;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.modal-back-btn:hover { background: var(--soft); color: var(--ink); }
.secure-note { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; color: var(--muted); }
.secure-note svg { width: 14px; height: 14px; }

/* done */
.done-wrap { text-align: center; padding: 1rem 0 .5rem; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.done-tick { width: 60px; height: 60px; border-radius: 50%; background: var(--ok); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 30px; }
.done-wrap h3 { font-family: var(--serif); font-size: 24px; }
.done-ref { font-family: var(--serif); font-size: 34px; font-weight: 900; letter-spacing: 1px; color: var(--accent); }
.done-wrap p { font-size: 15px; color: var(--muted); line-height: 1.6; max-width: 360px; }
.done-wrap .modal-action-btn, .done-wrap .modal-back-btn { max-width: 360px; }

/* ask dialog + toast */
/* item sheet */
.sheet-overlay { display: none; position: fixed; left: 0; right: 0; top: var(--vv-top, 0px); height: var(--vv-h, 100%); background: rgba(31, 29, 26, .55); z-index: 600; align-items: center; justify-content: center; padding: 1rem; }
.sheet-overlay.open { display: flex; }
.sheet {
  position: relative;
  background: var(--surface);
  border-radius: var(--r-lg);
  width: 100%;
  max-width: 480px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.sheet-close {
  position: absolute; top: 12px; right: 12px; z-index: 5;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
  font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(31, 29, 26, .15);
}
.sheet-photo { flex: 0 0 auto; height: 200px; background: var(--soft); }
.sheet-photo img { width: 100%; height: 100%; object-fit: cover; }
.sheet-form { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.sheet-body { padding: 22px 22px 8px; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; display: flex; flex-direction: column; gap: 14px; }
.sheet-body h3 { font-family: var(--serif); font-size: 26px; line-height: 1.2; padding-right: 44px; }
.sheet-desc { font-size: 15px; color: var(--muted); line-height: 1.5; margin-top: -6px; }
.sheet-desc[hidden], .sheet-photo[hidden] { display: none; }
.sheet-price { font-size: 18px; font-weight: 600; margin-top: -6px; }
.req { font-size: 12px; font-weight: 600; color: var(--accent-dark); margin-left: 6px; text-transform: none; letter-spacing: 0; }
.opt { border: 0; min-width: 0; }
.opt legend { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 8px; padding: 0; }
.opt-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.opt-chip input { position: absolute; opacity: 0; pointer-events: none; }
.opt-chip span {
  display: inline-flex; align-items: center; min-height: 46px; padding: 0 20px;
  border: 1.5px solid var(--line-strong); border-radius: 999px; background: var(--surface);
  font-size: 16px; font-weight: 500; cursor: pointer; transition: border-color .15s, background .15s;
}
.opt-chip span:hover { border-color: var(--ink); }
.opt-chip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 600; }
.opt-chip input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.sheet-foot { display: flex; align-items: center; gap: 12px; padding: 14px 22px calc(18px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); background: var(--surface); }
.sheet-foot .modal-action-btn { margin-top: 0; flex: 1; }
.stepper { display: flex; align-items: center; gap: 4px; border: 1px solid var(--line-strong); border-radius: 999px; padding: 4px; flex-shrink: 0; }
.stepper .qty-btn { width: 40px; height: 40px; font-size: 20px; border: 0; }
.stepper .qty-btn:disabled { opacity: .35; cursor: not-allowed; }
.stepper .qty-num { min-width: 24px; font-size: 16px; }
.toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 15px; z-index: 700; opacity: 0; pointer-events: none; transition: opacity .2s; max-width: 90vw; text-align: center; }
.toast.show { opacity: 1; }
.footer-links button { background: none; border: none; color: inherit; font-size: 14px; cursor: pointer; padding: 0; }

/* ---------- TABLET AND PHONE ---------- */
@media (max-width: 900px) {
  .body-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .cart-panel { display: none; }
  .menu-panel { padding-bottom: 96px; }
  .masthead .hero-img { display: none; }
}
@media (min-width: 901px) {
  .mobile-cart-bar { display: none !important; }
}

@media (max-width: 700px) {
  :root { --header-h: 58px; --nav-h: 56px; }
  .logo { font-size: 19px; }
  .header { gap: 8px; }
  .header-right { gap: 8px; }
  .status-pill { font-size: 12px; padding: 6px 10px; }
  .header-call span { display: none; }
  .header-call { padding: 0; width: 44px; justify-content: center; }
  .masthead { padding-top: 20px; padding-bottom: 8px; }
  .masthead h1 { font-size: 27px; margin-bottom: 8px; }
  .masthead p { font-size: 14px; }
  .section-title { font-size: 23px; }
  .items-list { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .menu-item { padding: 12px; gap: 12px; }
  .item-media { flex-basis: 92px; width: 92px; min-height: 92px; }
  .item-img { width: 92px; height: 92px; }
  .demo-banner { font-size: 12px; }
  .mode-toggle { display: flex; width: 100%; }
  .track-btn { width: 100%; justify-content: center; min-height: 46px; }
  .mode-btn { flex: 1; padding: 8px 10px; gap: 8px; }
  .mode-btn svg { width: 20px; height: 20px; }
  .mode-sub { font-size: 12px; }
  .sheet-overlay { padding: 0; align-items: flex-end; }
  .sheet { max-width: none; border-radius: 22px 22px 0 0; max-height: 94%; }
  .kb-open .sheet-photo { display: none; }
  .kb-open .sheet-body { padding-top: 16px; }
  .sheet-photo { height: 170px; }
  .footer { flex-direction: column; align-items: flex-start; padding-bottom: 96px; }
  .toast { bottom: 90px; }

  /* checkout becomes a bottom sheet */
  .modal-overlay { padding: 0; align-items: flex-end; }
  .modal { border-radius: 22px 22px 0 0; max-height: 94%; }
  .modal-header { border-radius: 22px 22px 0 0; padding: 16px 18px 12px; }
  .modal-body { padding: 18px 18px 28px; }
  .field-row { grid-template-columns: 1fr; }
  .postcode-row { flex-direction: column; align-items: stretch; }
  .step { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
