/*
 * Don — customer website design system
 * Plain CSS, no build step. Tokens first, then base, layout, components, pages.
 *
 * Palette: ivory paper, wine (burgundy) for actions, night plum for dark surfaces,
 * charcoal ink, champagne gold used sparingly for hairlines, ratings and the sunburst motif.
 * Type: Playfair Display for headings, Bricolage Grotesque for everything else.
 */

/* ------------------------------------------------------------------ fonts */
@font-face { font-family: "Playfair"; src: url("../fonts/playfair-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Playfair"; src: url("../fonts/playfair-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Playfair"; src: url("../fonts/playfair-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Playfair"; src: url("../fonts/playfair-600-italic.woff2") format("woff2"); font-weight: 600; font-style: italic; font-display: swap; }
@font-face { font-family: "Bricolage"; src: url("../fonts/bricolage-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Bricolage"; src: url("../fonts/bricolage-600.woff2") format("woff2"); font-weight: 500 600; font-display: swap; }
@font-face { font-family: "Bricolage"; src: url("../fonts/bricolage-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Bricolage"; src: url("../fonts/bricolage-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }

/* ----------------------------------------------------------------- tokens */
:root {
  --paper: #FBF8F3;
  --paper-2: #F3ECE1;
  --card: #FFFFFF;
  --ink: #1F1A1C;
  --ink-2: #5B5054;
  --ink-3: #847A7D;
  --line: #E8DFD3;
  --line-2: #D8CBBB;

  --wine: #6E1426;
  --wine-2: #57101E;
  --wine-3: #8A2236;
  --wine-tint: #F6ECEC;
  --night: #2A0F18;
  --night-2: #3B1622;

  --gold: #B08A3E;
  --gold-2: #D9BE7E;
  --gold-tint: #F7EFDD;

  --leaf: #1E7A4B;
  --leaf-tint: #E8F3EC;
  --chili: #B3261E;
  --chili-tint: #FBEAE8;
  --amber: #9A6200;
  --amber-tint: #FCF1DC;

  --serif: "Playfair", "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Bricolage", "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-pill: 999px;

  --shadow-1: 0 1px 2px rgba(42, 15, 24, .06), 0 2px 8px rgba(42, 15, 24, .05);
  --shadow-2: 0 2px 6px rgba(42, 15, 24, .07), 0 12px 32px rgba(42, 15, 24, .10);
  --shadow-3: 0 18px 60px rgba(42, 15, 24, .22);

  --gutter: 16px;
  --wrap: 1240px;
  --header-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --focus: 0 0 0 3px var(--paper), 0 0 0 5px var(--wine);
}
@media (min-width: 640px) { :root { --gutter: 24px; } }
@media (min-width: 1100px) { :root { --gutter: 32px; --header-h: 76px; } }

/* ------------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 16px/1.55 var(--sans); font-feature-settings: "ss01";
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.2; color: var(--ink); }
h1, h2 { font-family: var(--serif); letter-spacing: -.01em; font-feature-settings: "lnum"; }
h1 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); }
h2 { font-size: clamp(1.35rem, 1.15rem + .8vw, 1.85rem); }
h3 { font-size: 1.125rem; font-weight: 600; }
p { margin: 0; }
a { color: var(--wine); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--wine-2); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--wine); outline-offset: 2px; }
::selection { background: var(--gold-tint); color: var(--ink); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--night); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); }
.skip:focus { top: 12px; color: #fff; }
[hidden] { display: none !important; }
.muted { color: var(--ink-2); }
.subtle { color: var(--ink-3); font-size: .875rem; }
.num { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.strike { text-decoration: line-through; color: var(--ink-3); }

/* ----------------------------------------------------------------- layout */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 820px; }
.wrap--mid { max-width: 1040px; }
main { display: block; min-height: 60vh; }
.section { padding-block: 28px; }
.section + .section { padding-top: 8px; }
.stack > * + * { margin-top: var(--gap, 16px); }
.row { display: flex; align-items: center; gap: 12px; }
.row--between { justify-content: space-between; }
.row--wrap { flex-wrap: wrap; }
.grow { flex: 1 1 auto; min-width: 0; }
.divider { height: 1px; background: var(--line); border: 0; margin: 20px 0; }

.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.sec-head p { color: var(--ink-2); margin-top: 4px; font-size: .95rem; }
.sec-head__tools { display: flex; gap: 8px; flex-shrink: 0; }

/* ------------------------------------------------------------- announcement */
.announce { background: var(--night); color: #F3E6D0; font-size: .875rem; text-align: center; padding: 8px var(--gutter); }
.announce a { color: var(--gold-2); }

/* ------------------------------------------------------------------ header */
.hdr { position: sticky; top: 0; z-index: 40; background: var(--paper); border-bottom: 1px solid var(--line); }
.hdr__in { display: flex; align-items: center; gap: 12px; height: var(--header-h); }
.hdr__logo { display: flex; align-items: center; flex-shrink: 0; border-radius: var(--r-sm); }
.hdr__logo img { height: 46px; width: auto; }
@media (min-width: 1100px) { .hdr__logo img { height: 54px; } }
.loc-btn {
  display: flex; align-items: center; gap: 8px; min-width: 0; max-width: 280px;
  padding: 6px 10px 6px 8px; border: 0; background: transparent; border-radius: var(--r-sm); text-align: left;
}
.loc-btn:hover { background: var(--paper-2); }
.loc-btn__icon { color: var(--wine); flex-shrink: 0; }
.loc-btn__txt { min-width: 0; line-height: 1.2; }
.loc-btn__label { display: flex; align-items: center; gap: 4px; font-weight: 700; font-size: .95rem; }
.loc-btn__label span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.loc-btn__sub { display: block; font-size: .8rem; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hdr__search { flex: 1 1 auto; max-width: 520px; margin-left: auto; }
.hdr__actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.hdr__search + .hdr__actions { margin-left: 8px; }
.nav-link { display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: var(--r-sm); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; min-height: 44px; }
.nav-link:hover { background: var(--paper-2); color: var(--ink); }
.nav-link[aria-current="page"] { color: var(--wine); }
.cart-pill { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border-radius: var(--r-pill); background: var(--wine); color: #fff; text-decoration: none; font-weight: 700; font-size: .95rem; }
.cart-pill:hover { background: var(--wine-2); color: #fff; }
.cart-pill__count { min-width: 22px; height: 22px; border-radius: var(--r-pill); background: #fff; color: var(--wine); display: inline-grid; place-items: center; font-size: .78rem; padding: 0 6px; }
.cart-pill--empty { background: transparent; color: var(--ink); border: 1px solid var(--line-2); }
.cart-pill--empty:hover { background: var(--paper-2); color: var(--ink); }
.cart-pill--empty .cart-pill__count { background: var(--paper-2); color: var(--ink-2); }
.hdr .lbl-wide { display: none; }
@media (min-width: 900px) { .hdr .lbl-wide { display: inline; } }
@media (max-width: 899px) {
  .hdr__search { display: none; }
  .hdr__in { gap: 8px; }
  .loc-btn { max-width: none; flex: 1 1 auto; }
  .hdr__actions { margin-left: 0; }
}
.mobile-search { display: none; padding: 0 var(--gutter) 12px; }
@media (max-width: 899px) { .mobile-search { display: block; } }

/* search field */
.search { position: relative; }
.search__icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.search input {
  width: 100%; height: 46px; padding: 0 16px 0 44px; border-radius: var(--r-pill);
  border: 1px solid var(--line-2); background: var(--card); font-size: .95rem;
}
.search input::placeholder { color: var(--ink-3); }
.search input:focus { outline: none; border-color: var(--wine); box-shadow: 0 0 0 3px rgba(110, 20, 38, .14); }
.search--lg input { height: 54px; font-size: 1.02rem; }

/* account menu */
.menu { position: relative; }
.menu__panel { position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-2); padding: 6px; z-index: 50; }
.menu__panel a, .menu__panel button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-sm); border: 0; background: none; color: var(--ink); text-decoration: none; font-size: .95rem; text-align: left; }
.menu__panel a:hover, .menu__panel button:hover { background: var(--paper-2); }
.menu__sep { height: 1px; background: var(--line); margin: 6px 4px; }

/* ----------------------------------------------------------------- buttons */
.btn {
  --bg: var(--card); --fg: var(--ink); --bd: var(--line-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: var(--r-sm);
  border: 1px solid var(--bd); background: var(--bg); color: var(--fg);
  font-weight: 700; font-size: .95rem; line-height: 1.1; text-decoration: none; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s, transform .1s;
}
.btn:hover { --bg: var(--paper-2); color: var(--fg); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; }
.btn--primary { --bg: var(--wine); --fg: #fff; --bd: var(--wine); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .15); }
.btn--primary:hover { --bg: var(--wine-2); --bd: var(--wine-2); }
.btn--ghost { --bg: transparent; --bd: transparent; --fg: var(--wine); }
.btn--ghost:hover { --bg: var(--wine-tint); }
.btn--outline { --bg: transparent; --bd: var(--wine); --fg: var(--wine); }
.btn--outline:hover { --bg: var(--wine-tint); }
.btn--danger { --bg: transparent; --bd: #E3B9B5; --fg: var(--chili); }
.btn--danger:hover { --bg: var(--chili-tint); }
.btn--sm { min-height: 36px; padding: 7px 12px; font-size: .875rem; border-radius: var(--r-xs); }
.btn--lg { min-height: 54px; padding: 14px 24px; font-size: 1.02rem; border-radius: var(--r-md); }
.btn--block { width: 100%; }
.btn .spinner { display: none; }
.btn.is-busy { pointer-events: none; }
.btn.is-busy .spinner { display: inline-block; }
.btn.is-busy .btn__label { opacity: .7; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-pill); border: 1px solid var(--line-2); background: var(--card); color: var(--ink); }
.icon-btn:hover { background: var(--paper-2); }
.icon-btn--plain { border-color: transparent; background: transparent; }
.icon-btn:disabled { opacity: .35; cursor: default; }
.link-btn { border: 0; background: none; padding: 0; color: var(--wine); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* quantity stepper */
.qty { display: inline-flex; align-items: center; height: 38px; border-radius: var(--r-sm); background: var(--card); border: 1px solid var(--wine); color: var(--wine); overflow: hidden; }
.qty button { width: 36px; height: 100%; border: 0; background: none; color: inherit; display: grid; place-items: center; }
.qty button:hover { background: var(--wine-tint); }
.qty output { min-width: 22px; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }
.add-btn { min-width: 96px; height: 38px; border-radius: var(--r-sm); border: 1px solid var(--wine); background: var(--card); color: var(--wine); font-weight: 800; letter-spacing: .02em; }
.add-btn:hover { background: var(--wine-tint); }
.add-btn:disabled { border-color: var(--line-2); color: var(--ink-3); background: var(--paper-2); cursor: not-allowed; }
.add-btn small { display: block; font-size: .68rem; font-weight: 600; color: var(--ink-3); margin-top: -2px; }

/* ------------------------------------------------------------------- chips */
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: -2px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
  min-height: 40px; padding: 8px 14px; border-radius: var(--r-pill);
  border: 1px solid var(--line-2); background: var(--card); color: var(--ink);
  font-size: .9rem; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.chip:hover { border-color: var(--ink-3); color: var(--ink); }
.chip[aria-pressed="true"], .chip.is-on { background: var(--night); border-color: var(--night); color: #fff; }
.chip[aria-pressed="true"]:hover, .chip.is-on:hover { color: #fff; }
.chip select { border: 0; background: transparent; font-weight: 600; padding-right: 4px; appearance: none; cursor: pointer; }
.chip select:focus { outline: none; }
.chip--sort:focus-within { box-shadow: var(--focus); }

/* ------------------------------------------------------------------- forms */
.field { display: grid; gap: 6px; }
.field + .field { margin-top: 16px; }
.label { font-weight: 600; font-size: .9rem; }
.label small { color: var(--ink-3); font-weight: 400; }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; border-radius: var(--r-sm);
  border: 1px solid var(--line-2); background: var(--card); font-size: 1rem;
}
.textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--wine); box-shadow: 0 0 0 3px rgba(110, 20, 38, .14); }
.input[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--chili); }
.input--otp { letter-spacing: .5em; font-size: 1.4rem; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }
.input-group { display: flex; align-items: stretch; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--card); overflow: hidden; }
.input-group:focus-within { border-color: var(--wine); box-shadow: 0 0 0 3px rgba(110, 20, 38, .14); }
.input-group > span { display: grid; place-items: center; padding: 0 12px; color: var(--ink-2); background: var(--paper-2); border-right: 1px solid var(--line); font-weight: 600; }
.input-group input { border: 0; flex: 1; min-width: 0; padding: 11px 14px; background: transparent; min-height: 48px; }
.input-group input:focus { outline: none; }
.input-group .btn { border-radius: 0; border: 0; border-left: 1px solid var(--line); min-height: auto; }
.hint { font-size: .85rem; color: var(--ink-3); }
.error-text { font-size: .875rem; color: var(--chili); font-weight: 600; }
.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--wine); flex-shrink: 0; }
.seg { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px; border-radius: var(--r-pill); border: 1px solid var(--line-2); background: var(--card); font-weight: 600; font-size: .9rem; cursor: pointer; }
.seg input:checked + label { background: var(--night); border-color: var(--night); color: #fff; }
.seg input:focus-visible + label { box-shadow: var(--focus); }

.choice { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--card); cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.choice:hover { border-color: var(--ink-3); }
.choice input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--wine); flex-shrink: 0; }
.choice:has(input:checked) { border-color: var(--wine); box-shadow: inset 0 0 0 1px var(--wine); background: #FFFCFA; }
.choice:has(input:disabled) { opacity: .55; cursor: not-allowed; }
.choice__body { flex: 1; min-width: 0; }
.choice__title { font-weight: 700; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.choice__meta { font-size: .9rem; color: var(--ink-2); margin-top: 2px; }
.choices { display: grid; gap: 10px; }

/* --------------------------------------------------------------- feedback */
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--card); font-size: .95rem; }
.notice > svg { flex-shrink: 0; margin-top: 2px; }
.notice--ok { background: var(--leaf-tint); border-color: #BFDCCB; color: #134D30; }
.notice--warn { background: var(--amber-tint); border-color: #EBD3A4; color: #6B4400; }
.notice--err { background: var(--chili-tint); border-color: #EFC2BD; color: #7D1A14; }
.notice--info { background: var(--gold-tint); border-color: #E6D6AE; color: #5C4515; }
.notice a { color: inherit; font-weight: 700; }
.toasts { position: fixed; z-index: 90; left: 50%; bottom: 20px; transform: translateX(-50%); display: grid; gap: 8px; width: min(440px, calc(100% - 32px)); pointer-events: none; }
.toast { pointer-events: auto; background: var(--night); color: #fff; padding: 12px 16px; border-radius: var(--r-md); box-shadow: var(--shadow-3); font-size: .95rem; display: flex; gap: 10px; align-items: center; animation: toast-in .25s var(--ease); }
.toast--err { background: #7D1A14; }
.toast button { margin-left: auto; background: none; border: 0; color: var(--gold-2); font-weight: 700; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }
@media (max-width: 899px) { body.has-cart-bar .toasts { bottom: 96px; } }

/* badges */
.veg { display: inline-grid; place-items: center; width: 16px; height: 16px; border: 1.5px solid var(--leaf); border-radius: 3px; flex-shrink: 0; }
.veg::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--leaf); }
.veg--non { border-color: var(--chili); }
.veg--non::after { width: 0; height: 0; border-radius: 0; background: none; border-left: 4.5px solid transparent; border-right: 4.5px solid transparent; border-bottom: 8px solid var(--chili); }
.rating { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: .875rem; font-variant-numeric: tabular-nums; }
.rating svg { color: var(--gold); }
.rating--pill { background: var(--leaf); color: #fff; padding: 2px 8px; border-radius: var(--r-xs); }
.rating--pill svg { color: #fff; }
.rating--new { color: var(--ink-3); font-weight: 600; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: var(--r-pill); font-size: .78rem; font-weight: 700; background: var(--paper-2); color: var(--ink-2); }
.tag--gold { background: var(--gold-tint); color: #6E5420; }
.tag--wine { background: var(--wine-tint); color: var(--wine); }
.tag--leaf { background: var(--leaf-tint); color: var(--leaf); }
.tag--red { background: var(--chili-tint); color: var(--chili); }
.tag--amber { background: var(--amber-tint); color: var(--amber); }
.dot-sep { display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: var(--ink-3); vertical-align: middle; margin: 0 6px; }

/* -------------------------------------------------------------- media/img */
.ph { position: relative; overflow: hidden; background: var(--paper-2) url("../images/placeholder/pattern.svg") center / 64px; }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph img.is-fallback { object-fit: cover; }

/* -------------------------------------------------------------------- rails */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: var(--rail-col, 78%); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter); scrollbar-width: none; padding: 4px var(--gutter) 8px; margin: -4px calc(var(--gutter) * -1) -8px; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
@media (min-width: 640px) { .rail { --rail-col: 44%; } }
@media (min-width: 900px) { .rail { --rail-col: calc((100% - 48px) / 3.3); } }
@media (min-width: 1200px) { .rail { --rail-col: calc((100% - 48px) / 4); } }
.rail--banners { --rail-col: 88%; }
@media (min-width: 640px) { .rail--banners { --rail-col: 62%; } }
@media (min-width: 1100px) { .rail--banners { --rail-col: calc((100% - 32px) / 2.4); } }

/* ------------------------------------------------------------------ banners */
.banner { position: relative; display: block; aspect-ratio: 16 / 7.2; border-radius: var(--r-lg); overflow: hidden; color: #fff; text-decoration: none; background: var(--night); isolation: isolate; }
.banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s var(--ease); }
.banner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(42, 15, 24, .88) 0%, rgba(42, 15, 24, .55) 45%, rgba(42, 15, 24, 0) 75%); }
.banner__body { position: absolute; left: 24px; right: 40%; bottom: 22px; }
.banner__title { font-family: var(--serif); font-weight: 700; font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); line-height: 1.15; }
.banner__sub { margin-top: 6px; font-size: .92rem; color: #F1E4CC; }
.banner__cta { margin-top: 12px; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .875rem; color: var(--gold-2); }
.banner:hover { color: #fff; }
.banner:hover img { transform: scale(1.03); }
@media (max-width: 639px) { .banner__body { right: 24px; left: 18px; bottom: 16px; } }

/* ------------------------------------------------------- cuisine arch tiles */
.arches { display: grid; grid-auto-flow: column; grid-auto-columns: 96px; gap: 14px; overflow-x: auto; scrollbar-width: none; padding: 4px var(--gutter) 8px; margin: -4px calc(var(--gutter) * -1) -8px; scroll-snap-type: x proximity; }
.arches::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .arches { grid-auto-columns: 112px; gap: 18px; } }
.arch { display: grid; justify-items: center; gap: 8px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .9rem; text-align: center; scroll-snap-align: start; border-radius: var(--r-sm); }
.arch__img { width: 100%; aspect-ratio: 4 / 5; border-radius: 999px 999px var(--r-md) var(--r-md); overflow: hidden; background: var(--paper-2); box-shadow: inset 0 0 0 1px rgba(42, 15, 24, .06); position: relative; }
.arch__img::after { content: ""; position: absolute; inset: 4px; border-radius: inherit; border: 1px solid rgba(255, 255, 255, .55); pointer-events: none; }
.arch__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.arch:hover { color: var(--wine); }
.arch:hover .arch__img img { transform: scale(1.06); }
.arch[aria-current="true"] .arch__img { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--wine); }
.arch[aria-current="true"] { color: var(--wine); }

/* --------------------------------------------------------- restaurant card */
.r-grid { display: grid; gap: 28px 20px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .r-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .r-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .r-grid { grid-template-columns: repeat(4, 1fr); } }
.r-card { position: relative; display: flex; flex-direction: column; gap: 10px; color: var(--ink); text-decoration: none; border-radius: var(--r-md); min-width: 0; }
.r-card__media { aspect-ratio: 16 / 10.5; border-radius: var(--r-md); }
.r-card__media img { transition: transform .5s var(--ease); }
.r-card:hover .r-card__media img { transform: scale(1.04); }
.r-card__offer { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 12px 10px; background: linear-gradient(to top, rgba(31, 12, 18, .86), rgba(31, 12, 18, 0)); color: #fff; font-weight: 800; font-size: .95rem; letter-spacing: -.01em; display: flex; align-items: center; gap: 6px; }
.r-card__offer svg { color: var(--gold-2); }
.r-card__fav { position: absolute; top: 10px; right: 10px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: var(--ink); display: grid; place-items: center; box-shadow: var(--shadow-1); }
.r-card__fav[aria-pressed="true"] { color: var(--chili); }
.r-card__fav[aria-pressed="true"] svg { fill: currentColor; }
.r-card__flag { position: absolute; top: 10px; left: 10px; z-index: 1; }
.r-card__body { display: grid; gap: 3px; padding-inline: 2px; }
.r-card__name { font-weight: 700; font-size: 1.06rem; line-height: 1.25; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.r-card__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 0; font-size: .9rem; color: var(--ink); font-weight: 600; }
.r-card__cuisines { font-size: .9rem; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.r-card__fee { font-size: .85rem; color: var(--ink-3); }
/* Closed: photo stays sharp and in colour (a whole page of grey, faded cards looks broken when no rider is
   online); a light tint plus a clear label says it can't take orders right now. */
.r-card.is-closed .r-card__media img { filter: saturate(.8); }
.r-card.is-closed .r-card__media::after { content: ""; position: absolute; inset: 0; background: rgba(46, 8, 18, .18); pointer-events: none; }
.r-card__closed { position: absolute; z-index: 1; inset: auto 10px 10px 10px; background: #fff; color: var(--mahogany, #4A0E1C); border-radius: var(--r-sm); padding: 7px 10px; font-size: .85rem; font-weight: 700; text-align: center; box-shadow: 0 6px 16px -8px rgba(46, 8, 18, .45); }
.r-card::after { content: ""; position: absolute; inset: -6px; border-radius: calc(var(--r-md) + 4px); pointer-events: none; }
.r-card:focus-visible { outline: none; }
.r-card:focus-visible::after { box-shadow: 0 0 0 2px var(--wine); }

/* --------------------------------------------------------------- filters */
.filters { position: sticky; top: var(--header-h); z-index: 20; background: var(--paper); padding: 12px 0; margin-bottom: 18px; border-bottom: 1px solid transparent; transition: border-color .2s; }
.filters.is-stuck { border-bottom-color: var(--line); }
.filters__row { display: flex; gap: 8px; align-items: center; }
.filters__count { font-size: .9rem; color: var(--ink-2); margin-top: 10px; }

/* ------------------------------------------------------------- empty/error */
.empty { display: grid; justify-items: center; text-align: center; gap: 12px; padding: 48px 16px; max-width: 520px; margin: 0 auto; }
.empty__art { width: 120px; height: 120px; color: var(--gold); }
.empty h2, .empty h3 { font-family: var(--serif); font-size: 1.4rem; }
.empty p { color: var(--ink-2); }
.empty .row { justify-content: center; margin-top: 4px; flex-wrap: wrap; }

.sunburst { width: 100%; height: 100%; }
.loader { display: inline-grid; place-items: center; width: 48px; height: 48px; color: var(--gold); }
.loader svg { animation: spin 2.4s linear infinite; }

/* skeleton */
.skel { background: linear-gradient(90deg, var(--paper-2) 0%, #EDE4D7 50%, var(--paper-2) 100%); background-size: 200% 100%; animation: skel 1.4s ease-in-out infinite; border-radius: var(--r-sm); }
@keyframes skel { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ------------------------------------------------------------------ cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; }
.card--flat { box-shadow: none; }
.card--pad-lg { padding: 28px; }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card__title { font-family: var(--serif); font-size: 1.25rem; font-weight: 700; }
@media (max-width: 639px) { .card { padding: 16px; border-radius: var(--r-md); } }

/* -------------------------------------------------------- restaurant page */
.r-hero { padding-top: 20px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: .85rem; color: var(--ink-3); margin-bottom: 14px; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--wine); text-decoration: underline; }
.r-hero__card { display: grid; gap: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
@media (min-width: 900px) { .r-hero__card { grid-template-columns: 1.05fr 1fr; } }
.r-hero__cover { aspect-ratio: 16 / 9; min-height: 100%; }
/* Desktop: the photo fills the height the details need; a tall (portrait) photo never stretches the card. */
@media (min-width: 900px) { .r-hero__cover { aspect-ratio: auto; min-height: 320px; } .r-hero__cover img { position: absolute; inset: 0; } }
.r-hero__info { padding: 22px 22px 20px; display: grid; gap: 14px; align-content: start; }
@media (min-width: 900px) { .r-hero__info { padding: 30px 32px; } }
.r-hero__title { display: flex; gap: 14px; align-items: flex-start; }
.r-hero__logo { width: 64px; height: 72px; border-radius: 999px 999px var(--r-sm) var(--r-sm); flex-shrink: 0; border: 1px solid var(--line); }
.r-hero h1 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.25rem); }
.r-hero__cuisines { color: var(--ink-2); margin-top: 4px; }
.r-hero__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r-md); }
.r-hero__facts > div { padding: 12px 14px; display: grid; gap: 2px; }
.r-hero__facts > div + div { border-left: 1px solid var(--line); }
.r-hero__facts b { font-size: 1.05rem; font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: 4px; }
.r-hero__facts span { font-size: .8rem; color: var(--ink-3); }
.r-hero__row { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; font-size: .9rem; color: var(--ink-2); }
.offer-strip { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.offer-strip::-webkit-scrollbar { display: none; }
.offer { flex: 0 0 auto; display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: var(--r-md); border: 1px dashed #D7C08E; background: var(--gold-tint); min-width: 220px; }
.offer svg { color: var(--gold); flex-shrink: 0; }
.offer b { display: block; font-size: .95rem; }
.offer small { color: var(--ink-2); font-size: .8rem; }

.menu-layout { display: grid; gap: 24px; padding-top: 24px; padding-bottom: 48px; align-items: start; }
@media (min-width: 900px) { .menu-layout { grid-template-columns: 200px minmax(0, 1fr); } }
@media (min-width: 1200px) { .menu-layout { grid-template-columns: 210px minmax(0, 1fr) 340px; gap: 32px; } }
.menu-nav { position: sticky; top: calc(var(--header-h) + 16px); display: none; }
@media (min-width: 900px) { .menu-nav { display: block; } }
.menu-nav h2 { font-family: var(--sans); font-size: .8rem; font-weight: 700; color: var(--ink-3); margin-bottom: 8px; letter-spacing: .02em; }
.menu-nav a { display: flex; justify-content: space-between; gap: 8px; padding: 8px 12px; border-radius: var(--r-sm); color: var(--ink-2); text-decoration: none; font-size: .95rem; font-weight: 600; border-left: 2px solid transparent; }
.menu-nav a:hover { background: var(--paper-2); color: var(--ink); }
.menu-nav a.is-active { color: var(--wine); background: var(--wine-tint); }
.menu-nav a span { color: var(--ink-3); font-weight: 500; }
.menu-tools { position: sticky; top: var(--header-h); z-index: 15; background: var(--paper); padding: 10px 0 12px; display: grid; gap: 10px; }
.menu-tools__row { display: flex; gap: 8px; align-items: center; }
.menu-tools .search { flex: 1; }
.menu-cats-mobile { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.menu-cats-mobile::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .menu-cats-mobile { display: none; } }
.menu-section { padding-top: 12px; }
.menu-section + .menu-section { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 26px; }
.menu-section h2 { font-size: 1.4rem; display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.menu-section h2 small { font-family: var(--sans); font-size: .9rem; font-weight: 600; color: var(--ink-3); }

.dish { display: grid; grid-template-columns: minmax(0, 1fr) 132px; gap: 16px; padding: 20px 0; border-bottom: 1px dashed var(--line); }
.dish:last-child { border-bottom: 0; }
@media (min-width: 640px) { .dish { grid-template-columns: minmax(0, 1fr) 156px; gap: 24px; } }
.dish__info { display: grid; gap: 6px; align-content: start; min-width: 0; }
.dish__top { display: flex; gap: 8px; align-items: center; }
.dish__name { font-weight: 700; font-size: 1.05rem; line-height: 1.3; }
.dish__price { font-weight: 700; font-variant-numeric: tabular-nums; }
.dish__desc { color: var(--ink-2); font-size: .92rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dish__desc.is-open { -webkit-line-clamp: unset; }
.dish__more { justify-self: start; border: 0; background: none; padding: 0; color: var(--ink-2); font-weight: 700; font-size: .85rem; text-decoration: underline; text-underline-offset: 2px; }
.dish__side { position: relative; display: flex; flex-direction: column; align-items: center; }
.dish__img { width: 100%; aspect-ratio: 1 / 1; border-radius: var(--r-md); }
.dish__action { margin-top: -20px; position: relative; z-index: 1; display: grid; justify-items: center; gap: 2px; }
.dish__action .add-btn, .dish__action .qty { box-shadow: var(--shadow-1); }
.dish__custom { font-size: .72rem; color: var(--ink-3); font-weight: 600; }
.dish.is-unavailable .dish__img img { filter: grayscale(.7); }
.dish.is-unavailable .dish__name { color: var(--ink-2); }
.dish--noimg .dish__side { justify-content: center; }
.dish--noimg .dish__action { margin-top: 0; }

/* cart panel (desktop) */
.cart-panel { position: sticky; top: calc(var(--header-h) + 16px); display: none; }
@media (min-width: 1200px) { .cart-panel { display: block; } }
.cart-panel .card { padding: 18px; }
.cart-lines { display: grid; gap: 14px; max-height: 46vh; overflow: auto; margin: 0 -4px; padding: 0 4px; }
.cart-line { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; gap: 10px; align-items: start; }
.cart-line__name { font-weight: 600; font-size: .95rem; line-height: 1.3; }
.cart-line__addons { font-size: .8rem; color: var(--ink-3); }
.cart-line__end { display: grid; justify-items: end; gap: 4px; }
.cart-line__total { font-size: .9rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.cart-line .qty { height: 32px; }
.cart-line .qty button { width: 30px; }
.cart-total { display: flex; justify-content: space-between; font-weight: 800; font-size: 1.05rem; padding-top: 14px; margin-top: 14px; border-top: 1px solid var(--line); }

/* mobile cart bar */
.cart-bar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 45; display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 18px; border-radius: var(--r-md); background: var(--wine); color: #fff; text-decoration: none; box-shadow: var(--shadow-3); transform: translateY(0); transition: transform .25s var(--ease); }
.cart-bar:hover { color: #fff; background: var(--wine-2); }
.cart-bar__txt { flex: 1; min-width: 0; line-height: 1.25; }
.cart-bar__txt b { display: block; font-size: 1rem; }
.cart-bar__txt span { font-size: .82rem; color: #F2DADF; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cart-bar__go { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; }
@media (min-width: 1200px) { .cart-bar.is-menu { display: none; } }
@media (min-width: 900px) { .cart-bar:not(.is-menu) { left: auto; right: 24px; bottom: 24px; width: 380px; } }

/* --------------------------------------------------------------- dialogs */
dialog.sheet { border: 0; padding: 0; background: var(--card); color: var(--ink); border-radius: var(--r-lg); box-shadow: var(--shadow-3); width: min(520px, calc(100% - 24px)); max-height: min(86vh, 760px); overflow: hidden; }
dialog.sheet::backdrop { background: rgba(31, 12, 18, .55); }
dialog.sheet[open] { display: flex; flex-direction: column; animation: sheet-in .22s var(--ease); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
@media (max-width: 639px) {
  dialog.sheet { width: 100%; max-width: 100%; margin: auto 0 0; border-radius: var(--r-lg) var(--r-lg) 0 0; max-height: 90vh; }
  @keyframes sheet-in { from { transform: translateY(40px); opacity: .6; } }
}
.sheet__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 20px 12px; }
.sheet__head h2 { font-size: 1.3rem; }
.sheet__head p { color: var(--ink-2); font-size: .9rem; margin-top: 2px; }
.sheet__body { padding: 4px 20px 20px; overflow: auto; flex: 1; }
.sheet__foot { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; gap: 10px; align-items: center; background: var(--card); }
.sheet__foot .btn { flex: 1; }
.loc-results { display: grid; gap: 4px; margin-top: 8px; }
.loc-result { display: flex; gap: 12px; align-items: flex-start; width: 100%; padding: 12px; border: 0; background: none; border-radius: var(--r-sm); text-align: left; }
.loc-result:hover, .loc-result:focus-visible { background: var(--paper-2); }
.loc-result svg { color: var(--ink-3); flex-shrink: 0; margin-top: 2px; }
.loc-result b { display: block; font-size: .95rem; }
.loc-result span { font-size: .85rem; color: var(--ink-2); }
.addon-list { display: grid; gap: 8px; }
.addon-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); cursor: pointer; }
.addon-row:has(input:checked) { border-color: var(--wine); background: #FFFCFA; }
.addon-row input { width: 18px; height: 18px; accent-color: var(--wine); }
.addon-row span { flex: 1; font-weight: 600; }
.addon-row small { color: var(--ink-2); font-weight: 600; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ checkout */
.co-layout { display: grid; gap: 24px; padding-block: 24px 64px; align-items: start; }
@media (min-width: 960px) { .co-layout { grid-template-columns: minmax(0, 1fr) 400px; gap: 32px; } }
.co-steps { display: grid; gap: 16px; }
.co-step { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; }
@media (min-width: 640px) { .co-step { padding: 24px; } }
.co-step__head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; }
.co-step__num { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--night); color: var(--gold-2); font-weight: 800; font-size: .9rem; flex-shrink: 0; }
.co-step.is-done .co-step__num { background: var(--leaf); color: #fff; }
.co-step__head h2 { font-family: var(--sans); font-size: 1.15rem; font-weight: 700; }
.co-step__head p { color: var(--ink-2); font-size: .9rem; margin-top: 2px; }
.co-step__head .grow + * { flex-shrink: 0; }
.co-side { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 16px; }
.co-rest { display: flex; gap: 12px; align-items: center; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.co-rest__img { width: 52px; height: 52px; border-radius: var(--r-sm); flex-shrink: 0; }
.bill { display: grid; gap: 9px; font-size: .95rem; }
.bill__row { display: flex; justify-content: space-between; gap: 12px; }
.bill__row span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.bill__row--sub { color: var(--ink-2); }
.bill__row--save { color: var(--leaf); font-weight: 600; }
.bill__row--total { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 4px; font-weight: 800; font-size: 1.1rem; }
.bill__row--pay { font-weight: 800; color: var(--wine); }
.bill.is-loading { opacity: .5; }
.tip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.coupon-list { display: grid; gap: 8px; margin-top: 12px; }
.coupon { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 12px 14px; border: 1px dashed var(--line-2); border-radius: var(--r-sm); }
.coupon code { font-family: var(--sans); font-weight: 800; letter-spacing: .06em; color: var(--wine); }
.coupon p { font-size: .85rem; color: var(--ink-2); }
.place-bar { display: grid; gap: 10px; }
.secure-note { display: flex; gap: 8px; align-items: center; justify-content: center; font-size: .8rem; color: var(--ink-3); }

/* ------------------------------------------------------------------ account */
.acct { display: grid; gap: 24px; padding-block: 24px 64px; align-items: start; }
@media (min-width: 900px) { .acct { grid-template-columns: 240px minmax(0, 1fr); gap: 32px; } }
.acct__nav { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.acct__nav::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .acct__nav { flex-direction: column; position: sticky; top: calc(var(--header-h) + 16px); } }
.acct__nav a { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: var(--r-sm); color: var(--ink-2); text-decoration: none; font-weight: 600; white-space: nowrap; border: 1px solid transparent; }
.acct__nav a:hover { background: var(--paper-2); color: var(--ink); }
.acct__nav a[aria-current="page"] { background: var(--card); border-color: var(--line); color: var(--wine); }
.acct__user { display: none; padding: 4px 14px 14px; }
@media (min-width: 900px) { .acct__user { display: block; } }
.acct__user b { font-family: var(--serif); font-size: 1.25rem; display: block; }
.acct__user span { color: var(--ink-3); font-size: .9rem; }
.page-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head p { color: var(--ink-2); margin-top: 4px; }

.list { display: grid; gap: 12px; }
.o-card { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 14px; padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); text-decoration: none; color: var(--ink); }
.o-card:hover { border-color: var(--line-2); box-shadow: var(--shadow-1); color: var(--ink); }
.o-card__img { width: 56px; height: 56px; border-radius: var(--r-sm); }
.o-card__top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.o-card__name { font-weight: 700; }
.o-card__items { color: var(--ink-2); font-size: .9rem; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.o-card__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 10px; font-size: .88rem; color: var(--ink-3); flex-wrap: wrap; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 700; padding: 3px 10px; border-radius: var(--r-pill); white-space: nowrap; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status--live { background: var(--amber-tint); color: var(--amber); }
.status--ok { background: var(--leaf-tint); color: var(--leaf); }
.status--bad { background: var(--chili-tint); color: var(--chili); }
.status--muted { background: var(--paper-2); color: var(--ink-2); }

.addr { display: flex; gap: 14px; align-items: flex-start; padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); }
.addr__icon { width: 40px; height: 40px; border-radius: 50%; background: var(--paper-2); display: grid; place-items: center; color: var(--wine); flex-shrink: 0; }
.addr__body { flex: 1; min-width: 0; }
.addr__body b { display: flex; gap: 8px; align-items: center; }
.addr__body p { color: var(--ink-2); font-size: .92rem; margin-top: 2px; }
.addr__actions { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 10px; }

.wallet-hero { background: radial-gradient(120% 140% at 100% 0%, #4A1A2A 0%, var(--night) 60%); color: #fff; border-radius: var(--r-lg); padding: 24px; position: relative; overflow: hidden; }
.wallet-hero::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; background: url("../images/placeholder/rays.svg") center / contain no-repeat; opacity: .35; }
.wallet-hero span { color: #E9D6B4; font-size: .9rem; }
.wallet-hero b { display: block; font-family: var(--serif); font-size: 2.4rem; font-weight: 700; margin-top: 4px; font-variant-numeric: lining-nums tabular-nums; }
.txn { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.txn:last-child { border-bottom: 0; }
.txn b { font-variant-numeric: tabular-nums; }
.txn .plus { color: var(--leaf); }

/* ------------------------------------------------------------ order detail */
.track { display: grid; gap: 20px; padding-block: 24px 64px; align-items: start; }
@media (min-width: 960px) { .track { grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; } }
.track-hero { background: var(--night); color: #fff; border-radius: var(--r-lg); padding: 24px; position: relative; overflow: hidden; }
.track-hero h1 { color: #fff; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.track-hero p { color: #E8D7DC; margin-top: 6px; }
.track-hero__eta { display: inline-flex; align-items: baseline; gap: 6px; margin-top: 14px; color: var(--gold-2); font-weight: 700; }
.track-hero__eta b { font-family: var(--serif); font-size: 2rem; color: #fff; font-variant-numeric: lining-nums; }
.track-hero::after { content: ""; position: absolute; right: -70px; bottom: -90px; width: 260px; height: 260px; background: url("../images/placeholder/rays.svg") center / contain no-repeat; opacity: .28; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.steps li { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; padding-bottom: 18px; }
.steps li::before { content: ""; position: absolute; left: 13px; top: 26px; bottom: 0; width: 2px; background: var(--line); }
.steps li:last-child::before { display: none; }
.steps__dot { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--card); display: grid; place-items: center; color: #fff; z-index: 1; }
.steps li.is-done .steps__dot { background: var(--leaf); border-color: var(--leaf); }
.steps li.is-done::before { background: var(--leaf); }
.steps li.is-now .steps__dot { border-color: var(--wine); box-shadow: 0 0 0 4px var(--wine-tint); }
.steps li.is-now .steps__dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--wine); }
.steps b { display: block; font-size: .98rem; }
.steps span { font-size: .85rem; color: var(--ink-3); }
.steps li.is-todo b { color: var(--ink-3); font-weight: 600; }
.otp-box { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; border-radius: var(--r-md); background: var(--gold-tint); border: 1px solid #E6D6AE; }
.otp-box b { font-family: var(--serif); font-size: 1.9rem; letter-spacing: .3em; font-variant-numeric: lining-nums tabular-nums; color: var(--night); }
.otp-box p { font-size: .88rem; color: #5C4515; max-width: 260px; }
.map { height: 280px; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); background: var(--paper-2); z-index: 0; }
.rider { display: flex; gap: 12px; align-items: center; }
.rider__img { width: 48px; height: 48px; border-radius: 50%; }
.stars { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.stars input { position: absolute; opacity: 0; pointer-events: none; }
.stars label { cursor: pointer; color: var(--line-2); width: 36px; height: 36px; display: grid; place-items: center; border-radius: var(--r-xs); }
.stars label svg { width: 28px; height: 28px; }
.stars input:checked ~ label, .stars label:hover, .stars label:hover ~ label { color: var(--gold); }
.stars input:focus-visible + label { box-shadow: var(--focus); }

/* confirmation seal */
.seal { width: 112px; height: 112px; position: relative; display: grid; place-items: center; margin: 0 auto; color: var(--gold); }
.seal svg.sunburst { position: absolute; inset: 0; animation: spin 18s linear infinite; }
.seal__core { width: 64px; height: 64px; border-radius: 50%; background: var(--leaf); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 6px var(--paper); position: relative; }

/* tickets */
.thread { display: grid; gap: 12px; }
.msg { max-width: 82%; padding: 12px 16px; border-radius: var(--r-md); background: var(--card); border: 1px solid var(--line); }
.msg--me { justify-self: end; background: var(--wine-tint); border-color: #EBD3D6; }
.msg__meta { font-size: .78rem; color: var(--ink-3); margin-top: 6px; }
.msg img { margin-top: 8px; border-radius: var(--r-sm); max-height: 220px; }

/* ------------------------------------------------------------------ auth */
.auth { display: grid; min-height: calc(100vh - var(--header-h)); }
@media (min-width: 960px) { .auth { grid-template-columns: 1fr 1fr; } }
.auth__art { display: none; position: relative; background: var(--night); overflow: hidden; }
@media (min-width: 960px) { .auth__art { display: block; } }
.auth__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.auth__art-copy { position: absolute; left: 48px; right: 48px; bottom: 48px; color: #fff; }
.auth__art-copy h2 { color: #fff; font-size: 2.1rem; line-height: 1.15; }
.auth__art-copy p { color: #EAD9DD; margin-top: 10px; max-width: 420px; }
.auth__form { display: grid; place-items: center; padding: 40px var(--gutter); }
.auth__card { width: 100%; max-width: 420px; }
.auth__card h1 { font-size: 2rem; }
.auth__card > p { color: var(--ink-2); margin-top: 8px; }

/* -------------------------------------------------------- content pages */
.doc { padding-block: 32px 64px; }
.doc h1 { margin-bottom: 8px; }
.doc .lede { color: var(--ink-2); font-size: 1.1rem; max-width: 62ch; }
.prose { max-width: 70ch; line-height: 1.7; }
.prose h2 { font-size: 1.4rem; margin: 32px 0 10px; }
.prose h3 { margin: 22px 0 6px; }
.prose p, .prose ul, .prose ol { margin: 0 0 14px; }
.prose li { margin-bottom: 6px; }
.feature-grid { display: grid; gap: 16px; }
@media (min-width: 720px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }
.feature { padding: 20px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); }
.feature h3 { margin: 10px 0 6px; }
.feature p { color: var(--ink-2); font-size: .95rem; }
.feature__icon { width: 44px; height: 44px; border-radius: 50%; background: var(--wine-tint); color: var(--wine); display: grid; place-items: center; }
.split { display: grid; gap: 24px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1.1fr 1fr; gap: 48px; } }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--wine); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-2); margin-top: 8px; }

/* -------------------------------------------------------------- pagination */
.pager { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 28px; }
.load-more { display: flex; justify-content: center; margin-top: 32px; }

/* ------------------------------------------------------------------ footer */
.ftr { background: var(--night); color: #D9C7CC; margin-top: 48px; }
.ftr__in { padding-block: 40px 28px; display: grid; gap: 28px; }
@media (min-width: 900px) { .ftr__in { grid-template-columns: 1.3fr repeat(3, 1fr); } }
.ftr__brand img { height: 64px; width: auto; }
.ftr__brand p { margin-top: 12px; font-size: .92rem; max-width: 34ch; color: #CDB8BE; }
.ftr h2 { font-family: var(--sans); font-size: .85rem; color: var(--gold-2); font-weight: 700; margin-bottom: 12px; letter-spacing: .02em; }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ftr a { color: #EEE2E5; text-decoration: none; font-size: .95rem; }
.ftr a:hover { color: #fff; text-decoration: underline; }
.ftr__base { border-top: 1px solid rgba(217, 190, 126, .2); padding-block: 18px; font-size: .82rem; color: #B9A2A9; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* -------------------------------------------------------- motion & print */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
@media print { .hdr, .ftr, .cart-bar, .toasts { display: none !important; } }

/* whole-card link (the heading link covers the card; buttons above it stay clickable) */
.stretched::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--r-md); }
.stretched:focus-visible { outline: none; }
.stretched:focus-visible::after { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--wine); }
.r-card__fav { z-index: 3; }

/* --- refinements after first visual review --- */
.arches { scroll-padding-inline: var(--gutter); }
.hdr__actions > *, .nav-link, .cart-pill { flex-shrink: 0; }
@media (max-width: 899px) { .sec-head__tools { display: none; } }
@media (max-width: 639px) {
  .hdr__logo img { height: 40px; }
  .cart-pill { padding: 8px 12px; }
  .nav-link { padding: 9px 8px; }
}
.loc-btn__label, .loc-btn__label span { min-width: 0; }
.loc-btn__label svg { flex-shrink: 0; }
.hdr__actions { flex-shrink: 0; }
@media (max-width: 899px) { .loc-btn { flex: 1 1 0; } }

/* content page heading */
.doc-head { background: var(--paper-2); border-bottom: 1px solid var(--line); padding: 40px 0 36px; position: relative; overflow: hidden; }
.doc-head::after { content: ""; position: absolute; right: -80px; top: -90px; width: 320px; height: 320px; background: url("../images/placeholder/rays-wine.svg") center / contain no-repeat; opacity: .07; pointer-events: none; }
.doc-head h1 { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); max-width: 22ch; }
.doc-head__lead { color: var(--ink-2); font-size: 1.12rem; margin-top: 12px; max-width: 60ch; }
.doc-head__kicker { color: var(--wine); font-weight: 700; margin-bottom: 8px; }
.facts { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin-top: 24px; }
.facts > div { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; }
.facts b { display: block; font-family: var(--serif); font-size: 1.25rem; }
.facts span { color: var(--ink-2); font-size: .9rem; }
.num-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; counter-reset: s; }
.num-steps li { counter-increment: s; display: grid; grid-template-columns: 36px 1fr; gap: 12px; }
.num-steps li::before { content: counter(s); width: 32px; height: 32px; border-radius: 50%; background: var(--night); color: var(--gold-2); display: grid; place-items: center; font-weight: 800; }
.num-steps b { display: block; }
.num-steps p, .num-steps span { color: var(--ink-2); }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks li::before { content: ""; flex-shrink: 0; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: var(--leaf-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E7A4B' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7'/%3E%3C/svg%3E") center / 12px no-repeat; }
.two-col { display: grid; gap: 28px; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; gap: 40px; } }
button.nav-link { border: 0; background: transparent; }
.acct { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .acct { grid-template-columns: 240px minmax(0, 1fr); } }
.acct > *, .track > *, .co-layout > *, .menu-layout > * { min-width: 0; }
.two-col > *, .feature-grid > *, .r-grid > * { min-width: 0; }
.card, .feature, .prose, .bill__row span { overflow-wrap: anywhere; }

/* ======================================================================
 * Grand theme — royal mahogany, champagne gold and parchment.
 * Layered over the design system above; markup hooks are unchanged.
 * ==================================================================== */
:root {
  --mahogany: #4A0E1C;
  --mahogany-2: #2E0812;
  --gold-3: #C9A048;
  --gold-line: rgba(176, 138, 62, .38);
  --gold-grad: linear-gradient(135deg, #F3DC9B 0%, #D4AA52 45%, #B0842F 70%, #E8C97A 100%);
  --wine-grad: linear-gradient(160deg, #84203A 0%, #6E1426 45%, #4A0E1C 100%);
  --shadow-card: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 2px 4px rgba(74, 14, 28, .05), 0 14px 34px -14px rgba(74, 14, 28, .22);
  --shadow-lift: 0 4px 10px rgba(74, 14, 28, .08), 0 26px 50px -18px rgba(74, 14, 28, .35);
  --r-md: 16px;
  --r-lg: 22px;
}
body { background: var(--paper) url("../images/site/damask.svg") 0 0 / 96px; }

/* headings: a touch more presence */
h1, h2 { letter-spacing: -.015em; }
h2 { font-size: clamp(1.45rem, 1.15rem + 1vw, 2.1rem); }

/* ---------------------------------------------------------------- ribbon */
.ribbon { background: linear-gradient(90deg, var(--mahogany-2), var(--mahogany) 50%, var(--mahogany-2)); color: #EBD9B4; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; position: relative; }
.ribbon::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-2), transparent); opacity: .7; }
.ribbon__in { display: flex; justify-content: center; align-items: center; gap: 28px; min-height: 34px; white-space: nowrap; overflow: hidden; }
.ribbon__in span { display: inline-flex; align-items: center; gap: 28px; }
.ribbon__in span + span::before { content: ""; width: 6px; height: 6px; transform: rotate(45deg); background: var(--gold-2); }
@media (max-width: 760px) { .ribbon__in span:not(:first-child) { display: none; } .ribbon__in { font-size: .72rem; min-height: 30px; } }

/* ---------------------------------------------------------------- header */
/* Solid (no see-through or blur): content scrolling underneath never smears the header. */
.hdr { background: #FFFDF8; border-bottom: 0; box-shadow: 0 6px 18px -12px rgba(74, 14, 28, .35); }
.hdr::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, transparent 0%, var(--gold-3) 20%, #E9CF8C 50%, var(--gold-3) 80%, transparent 100%); }
.hdr__logo { padding: 2px; }
.loc-btn { border: 1px solid transparent; }
.loc-btn:hover { background: #fff; border-color: var(--gold-line); }
.loc-btn__icon { color: #fff; background: var(--wine-grad); border-radius: 50%; padding: 6px; width: 34px !important; height: 34px !important; box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--gold-line); }
.search input { border-color: var(--gold-line); background: #fff; box-shadow: 0 2px 10px -6px rgba(74, 14, 28, .25); }
.search input:focus { border-color: var(--gold-3); box-shadow: 0 0 0 4px rgba(201, 160, 72, .2); }
.search__icon { color: var(--gold); }
.nav-link:hover { background: #fff; }
.cart-pill { background: var(--wine-grad); box-shadow: inset 0 0 0 1px rgba(233, 207, 140, .45), 0 8px 18px -10px rgba(74, 14, 28, .7); }
.cart-pill__count { background: var(--gold-grad); color: var(--mahogany-2); font-weight: 800; }
.cart-pill--empty { background: #fff; border-color: var(--gold-line); box-shadow: none; }
.cart-pill--empty .cart-pill__count { background: var(--gold-tint); color: #6E5420; }
.menu__panel { border-color: var(--gold-line); box-shadow: var(--shadow-lift); }
.menu__panel a:hover, .menu__panel button:hover { background: var(--gold-tint); }
body.has-hero .mobile-search { display: none; }

/* --------------------------------------------------------------- buttons */
.btn--primary { --bg: #6E1426; background: var(--wine-grad); border-color: #5A1020; box-shadow: inset 0 0 0 1px rgba(233, 207, 140, .35), 0 8px 18px -10px rgba(74, 14, 28, .75); }
.btn--primary:hover { background: linear-gradient(160deg, #6E1426, #3A0A16); }
.btn--gold { --bg: #D4AA52; --fg: var(--mahogany-2); --bd: #B88C35; background: var(--gold-grad); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 8px 18px -10px rgba(120, 84, 20, .8); }
.btn--gold:hover { --fg: var(--mahogany-2); filter: brightness(1.05); }
.btn--outline { --bd: var(--gold-3); }
.icon-btn { border-color: var(--gold-line); box-shadow: 0 4px 12px -8px rgba(74, 14, 28, .45); }
.icon-btn:hover:not(:disabled) { background: var(--wine-grad); color: #F3DC9B; border-color: transparent; }
.add-btn { border-color: var(--gold-3); color: var(--wine); background: #fff; letter-spacing: .08em; text-transform: uppercase; font-size: .85rem; }
.add-btn:hover { background: var(--wine-grad); color: #fff; border-color: transparent; }
.qty { border-color: var(--gold-3); }

/* ------------------------------------------------------------------ hero */
.hero { position: relative; overflow: hidden; color: #F7EBD3; background: radial-gradient(120% 120% at 85% 10%, #7A1C33 0%, var(--mahogany) 45%, var(--mahogany-2) 100%); isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("../images/site/damask-gold.svg") 0 0 / 88px; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--gold-grad); }
.hero__in { display: grid; gap: 28px; align-items: center; padding-block: 40px 44px; }
@media (min-width: 960px) { .hero__in { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; padding-block: 64px 72px; } }
.hero__kicker { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: var(--r-pill); border: 1px solid rgba(233, 207, 140, .45); background: rgba(255, 255, 255, .06); color: #F3DC9B; font-size: .82rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.hero__title { margin-top: 18px; color: #FFF8EA; font-size: clamp(2.1rem, 1.3rem + 3.4vw, 4rem); line-height: 1.06; letter-spacing: -.02em; max-width: 15ch; }
.hero__title em { font-style: italic; font-weight: 600; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
.hero__lead { margin-top: 16px; color: #E9D6C2; font-size: clamp(1rem, .95rem + .3vw, 1.15rem); max-width: 46ch; }
.hero__search { margin-top: 26px; max-width: 580px; }
.hero__search input { height: 62px; padding-right: 130px; font-size: 1.02rem; border: 1px solid rgba(233, 207, 140, .6); box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .55), 0 0 0 6px rgba(255, 255, 255, .06); }
.hero__search .search__icon { left: 20px; }
.hero__search input { padding-left: 52px; }
.hero__search .btn { position: absolute; right: 7px; top: 7px; bottom: 7px; min-height: 0; border-radius: var(--r-pill); padding-inline: 24px; }
.hero__trust { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: #E9D6C2; font-size: .92rem; }
.hero__trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero__trust svg { color: #E9C97A; flex-shrink: 0; }
.hero__trust b { font-family: var(--serif); font-size: 1.35rem; color: #F3DC9B; font-variant-numeric: lining-nums; }
.hero__art { position: relative; justify-self: center; width: min(100%, 440px); aspect-ratio: 1; }
.hero__rays { position: absolute; inset: -12%; width: 124%; max-width: none; opacity: .5; animation: spin 80s linear infinite; }
.hero__plate { position: absolute; inset: 9%; border-radius: 50%; overflow: hidden; background: var(--night); box-shadow: 0 0 0 6px rgba(233, 207, 140, .9), 0 0 0 14px rgba(74, 14, 28, .75), 0 0 0 15px rgba(233, 207, 140, .5), 0 40px 80px -20px rgba(0, 0, 0, .7); }
.hero__plate img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); }
.hero__badge { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: var(--r-pill); background: #FFF8EA; color: var(--mahogany); font-weight: 700; font-size: .9rem; box-shadow: 0 16px 32px -14px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(176, 138, 62, .5); animation: float 6s ease-in-out infinite; }
.hero__badge svg { color: var(--gold); }
.hero__badge--a { left: -2%; top: 16%; }
.hero__badge--b { right: -4%; bottom: 14%; animation-delay: -3s; }
@keyframes float { 50% { transform: translateY(-10px); } }
@media (max-width: 959px) {
  .hero__in { grid-template-columns: minmax(0, 1fr) 112px; gap: 4px 16px; padding-block: 26px 30px; }
  .hero__copy { display: contents; }
  .hero__kicker { grid-column: 1; grid-row: 1; justify-self: start; font-size: .72rem; padding: 5px 11px; }
  .hero__title { grid-column: 1 / -1; grid-row: 2; margin-top: 12px; max-width: 14ch; }
  .hero__art { grid-column: 2; grid-row: 1 / 3; align-self: start; width: 112px; margin-top: -4px; position: absolute; right: var(--gutter); top: 18px; opacity: .95; }
  .hero__lead, .hero__search, .hero__trust { grid-column: 1 / -1; }
  .hero__lead { max-width: 30ch; }
  .hero__badge { display: none; }
  .hero__plate { box-shadow: 0 0 0 3px rgba(233, 207, 140, .9), 0 0 0 7px rgba(74, 14, 28, .75), 0 18px 30px -12px rgba(0, 0, 0, .6); }
  .hero__in { position: relative; }
  .hero__title { padding-right: 0; }
  .hero__search input { height: 56px; padding-right: 108px; }
  .hero__search .btn { padding-inline: 16px; }
  .hero__trust { gap: 8px 16px; font-size: .85rem; }
  .hero__trust b { font-size: 1.15rem; }
}
@media (max-width: 420px) { .hero__title { font-size: 2rem; max-width: 12ch; } .hero__art { width: 96px; } }

/* --------------------------------------------------------- section heads */
.section { padding-block: 34px; }
.sec-head { margin-bottom: 20px; }
.sec-head > div:first-child::before { content: ""; display: block; width: 104px; height: 12px; margin-bottom: 8px; background: url("../images/site/ornament.svg") left center / contain no-repeat; }
.sec-head p { color: var(--ink-3); }

/* --------------------------------------------------------------- banners */
.rail--banners { --rail-col: 88%; }
@media (min-width: 1100px) { .rail--banners { --rail-col: calc((100% - 32px) / 2.2); } }
.banner { border-radius: var(--r-lg); box-shadow: var(--shadow-lift); aspect-ratio: 16 / 7; }
.banner::after { content: ""; position: absolute; inset: 10px; border-radius: calc(var(--r-lg) - 6px); border: 1px solid rgba(233, 207, 140, .55); pointer-events: none; }
.banner::before { background: linear-gradient(100deg, rgba(46, 8, 18, .92) 0%, rgba(46, 8, 18, .6) 45%, rgba(46, 8, 18, 0) 78%); }
.banner__body { left: 30px; bottom: 28px; }
.banner__title { font-size: clamp(1.4rem, 1rem + 1.4vw, 2.1rem); }
.banner__cta { margin-top: 14px; padding: 7px 14px; border-radius: var(--r-pill); background: var(--gold-grad); color: var(--mahogany-2); }
@media (max-width: 639px) { .banner__body { left: 22px; bottom: 22px; } .banner { aspect-ratio: 16 / 9; } }

/* ---------------------------------------------------------- cuisine arches */
.arches { grid-auto-columns: 100px; gap: 16px; padding-top: 8px; }
@media (min-width: 900px) { .arches { grid-auto-columns: 124px; gap: 22px; } }
.arch { font-family: var(--serif); font-weight: 700; font-size: .98rem; }
.arch__img { background: #fff; padding: 5px; box-shadow: 0 0 0 1px var(--gold-line), 0 14px 26px -14px rgba(74, 14, 28, .45); transition: transform .3s var(--ease), box-shadow .3s; }
.arch__img img { border-radius: 999px 999px calc(var(--r-md) - 4px) calc(var(--r-md) - 4px); }
.arch__img::after { inset: 9px; border-color: rgba(255, 255, 255, .7); }
.arch:hover .arch__img { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--gold-3), 0 22px 34px -16px rgba(74, 14, 28, .55); }
.arch[aria-current="true"] .arch__img { box-shadow: 0 0 0 2px var(--gold-3), 0 0 0 5px var(--wine); }

/* -------------------------------------------------------- restaurant card */
.r-grid { gap: 26px 22px; }
.r-card { background: #fff; padding: 8px 8px 14px; border-radius: var(--r-lg); box-shadow: var(--shadow-card); border: 1px solid rgba(176, 138, 62, .22); transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; gap: 12px; }
.r-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: var(--gold-line); }
.r-card__media { border-radius: calc(var(--r-lg) - 6px); }
.r-card__body { padding-inline: 8px; gap: 4px; }
.r-card__name { font-family: var(--serif); font-size: 1.16rem; font-weight: 700; letter-spacing: 0; }
.r-card__meta .rating { background: var(--leaf); color: #fff; padding: 2px 7px 2px 6px; border-radius: 6px; font-size: .8rem; }
.r-card__meta .rating svg { color: #fff; fill: currentColor; width: 12px; height: 12px; }
.r-card__meta .rating--new { background: var(--gold-tint); color: #6E5420; }
.r-card__fee { padding-top: 8px; margin-top: 4px; border-top: 1px dashed var(--line); }
.r-card__offer { background: linear-gradient(to top, rgba(46, 8, 18, .92), rgba(46, 8, 18, 0)); font-size: 1rem; text-transform: uppercase; letter-spacing: .03em; }
.r-card__offer svg { color: #E9C97A; }
.r-card__flag.tag--gold { background: var(--gold-grad); color: var(--mahogany-2); }
.r-card::after, .stretched::after { border-radius: var(--r-lg); }
.rail > .r-card { margin-block: 4px 10px; }

/* ----------------------------------------------------------------- chips */
.chip { border-color: var(--gold-line); box-shadow: 0 3px 10px -8px rgba(74, 14, 28, .4); }
.chip:hover { border-color: var(--gold-3); }
.chip[aria-pressed="true"], .chip.is-on, .seg input:checked + label { background: var(--wine-grad); border-color: var(--mahogany); color: #F3DC9B; }

/* ----------------------------------------------------------------- cards */
.card, .co-step, .o-card, .addr, .feature, .facts > div { border-color: rgba(176, 138, 62, .25); box-shadow: var(--shadow-card); }
.card__title, .co-step__head h2 { font-family: var(--serif); }
.co-step__num, .num-steps li::before { background: var(--wine-grad); color: #F3DC9B; box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--gold-line); }
.wallet-hero, .track-hero { background: radial-gradient(120% 140% at 100% 0%, #7A1C33 0%, var(--mahogany) 50%, var(--mahogany-2) 100%); box-shadow: inset 0 0 0 1px rgba(233, 207, 140, .35), var(--shadow-lift); }
.acct__nav a[aria-current="page"] { border-color: var(--gold-line); box-shadow: var(--shadow-card); }
.doc-head { background: linear-gradient(180deg, #F6EEDF, var(--paper)); border-bottom: 1px solid var(--gold-line); }
.doc-head h1::after { content: ""; display: block; width: 104px; height: 12px; margin-top: 14px; background: url("../images/site/ornament.svg") left center / contain no-repeat; }

/* --------------------------------------------------------- restaurant page */
.r-hero__card { border-color: var(--gold-line); box-shadow: var(--shadow-lift); position: relative; }
.r-hero__card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 3px 0 #C9A048; pointer-events: none; }
.r-hero__facts { border-color: var(--gold-line); background: linear-gradient(180deg, #FFFDF8, #FBF4E6); }
.r-hero__facts > div + div { border-color: var(--gold-line); }
.r-hero__facts b { font-family: var(--serif); font-size: 1.2rem; }
.r-hero__logo { box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--gold-line); }
.offer { background: linear-gradient(135deg, #FBF1DA, #F5E3B8); border-color: #CFA95A; }
.menu-section h2::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--gold-line), transparent); align-self: center; }
.menu-nav a.is-active { background: var(--wine-grad); color: #F3DC9B; }
.menu-nav a.is-active span { color: #E9C97A; }
.dish__img { box-shadow: 0 0 0 1px var(--gold-line), 0 12px 24px -14px rgba(74, 14, 28, .5); }
.dish__name { font-family: var(--serif); font-size: 1.12rem; }
.cart-bar { background: var(--wine-grad); box-shadow: inset 0 0 0 1px rgba(233, 207, 140, .45), var(--shadow-3); }
.cart-bar__go { color: #F3DC9B; }

/* ---------------------------------------------------------------- footer */
.ftr { position: relative; background: radial-gradient(100% 140% at 50% 0%, #5A1225 0%, var(--mahogany-2) 70%); isolation: isolate; margin-top: 64px; }
.ftr::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("../images/site/damask-gold.svg") 0 0 / 88px; }
.ftr::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--gold-grad); }
.ftr__promise { display: grid; gap: 14px; padding-block: 36px 8px; }
@media (min-width: 760px) { .ftr__promise { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.ftr__promise > div { display: grid; grid-template-columns: 48px 1fr; column-gap: 14px; align-items: center; padding: 16px 18px; border-radius: var(--r-md); border: 1px solid rgba(233, 207, 140, .28); background: rgba(255, 255, 255, .04); }
.ftr__promise-icon { grid-row: span 2; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-grad); color: var(--mahogany-2); }
.ftr__promise b { font-family: var(--serif); color: #FFF3DA; font-size: 1.08rem; }
.ftr__promise span:last-child { color: #CDB8BE; font-size: .88rem; }
.ftr h2 { text-transform: uppercase; letter-spacing: .12em; font-size: .76rem; }

@media (prefers-reduced-motion: reduce) { .hero__rays, .hero__badge { animation: none; } .r-card:hover, .arch:hover .arch__img { transform: none; } }

/* grand theme: phone refinements, menu book */
.hero__kicker span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.hero__kicker svg { flex-shrink: 0; }
@media (max-width: 959px) {
  .hero__kicker { max-width: 100%; }
  .hero__lead { font-size: .95rem; margin-top: 12px; }
  .hero__search { margin-top: 20px; }
  .hero__trust { margin-top: 16px; gap: 8px 18px; }
}
@media (max-width: 639px) {
  .loc-btn { gap: 8px; padding-inline: 4px; }
  .loc-btn__icon { width: 30px !important; height: 30px !important; padding: 5px; }
  .hdr__in { gap: 6px; }
}
.menu-section { background: #fff; border: 1px solid rgba(176, 138, 62, .25); border-radius: var(--r-lg); box-shadow: var(--shadow-card); padding: 20px 20px 4px; }
.menu-section + .menu-section { margin-top: 20px; border-top: 1px solid rgba(176, 138, 62, .25); padding-top: 20px; }
@media (min-width: 640px) { .menu-section { padding: 24px 28px 6px; } .menu-section + .menu-section { padding-top: 24px; } }
.menu-section h2 { padding-bottom: 6px; }
.menu-nav { background: #fff; border: 1px solid rgba(176, 138, 62, .25); border-radius: var(--r-lg); padding: 14px 10px; box-shadow: var(--shadow-card); }
.menu-nav h2 { padding-inline: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--gold); }
.auth__art { background: var(--mahogany-2); }
/* Photo at full colour; the dark wash sits only behind the caption at the bottom. */
.auth__art::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(46, 8, 18, .94) 0%, rgba(46, 8, 18, .55) 30%, rgba(46, 8, 18, 0) 62%); }
.auth__art::after { content: ""; position: absolute; inset: 18px; z-index: 2; border: 1px solid rgba(233, 207, 140, .55); border-radius: var(--r-lg); pointer-events: none; }
.auth__art img { opacity: 1; }
.auth__art-copy { z-index: 3; }
.auth__art-copy h2::after { content: ""; display: block; width: 104px; height: 12px; margin-top: 14px; background: url("../images/site/ornament.svg") left center / contain no-repeat; }
.auth__card { background: #fff; padding: 32px 28px; border-radius: var(--r-lg); border: 1px solid rgba(176, 138, 62, .25); box-shadow: var(--shadow-lift); }
@media (max-width: 639px) { .r-hero__facts b { font-size: 1.02rem; } .r-hero__facts > div { padding: 10px; } .auth__card { padding: 24px 18px; } }

/* compact hero: about a third of the screen on desktop, so restaurants show sooner */
.hero__in { padding-block: 28px 32px; gap: 24px; }
@media (min-width: 960px) { .hero__in { grid-template-columns: minmax(0, 1fr) 260px; gap: 40px; padding-block: 34px 38px; } }
.hero__title { font-size: clamp(1.6rem, 1.1rem + 1.9vw, 2.6rem); line-height: 1.12; max-width: 24ch; margin-top: 12px; }
.hero__lead { margin-top: 10px; font-size: 1rem; }
.hero__search { margin-top: 18px; max-width: 540px; }
.hero__search input { height: 54px; }
.hero__search .btn { top: 6px; bottom: 6px; right: 6px; }
.hero__trust { margin-top: 14px; font-size: .88rem; }
.hero__trust b { font-size: 1.15rem; }
.hero__art { width: 260px; }
.hero__badge { padding: 7px 12px; font-size: .8rem; }
.hero__badge--a { left: -14%; top: 10%; }
.hero__badge--b { right: -10%; bottom: 6%; }
.hero__plate { box-shadow: 0 0 0 4px rgba(233, 207, 140, .9), 0 0 0 10px rgba(74, 14, 28, .75), 0 0 0 11px rgba(233, 207, 140, .5), 0 24px 50px -18px rgba(0, 0, 0, .7); }
@media (max-width: 959px) {
  .hero__in { grid-template-columns: minmax(0, 1fr) 84px; padding-block: 18px 22px; }
  .hero__art { width: 84px; top: 14px; }
  .hero__title { font-size: 1.6rem; max-width: 16ch; margin-top: 10px; }
  .hero__lead { display: none; }
  .hero__search { margin-top: 14px; }
  .hero__search input { height: 50px; }
  .hero__trust { margin-top: 12px; font-size: .82rem; }
  .hero__plate { box-shadow: 0 0 0 2px rgba(233, 207, 140, .9), 0 0 0 5px rgba(74, 14, 28, .75), 0 12px 22px -10px rgba(0, 0, 0, .6); }
}
@media (max-width: 420px) { .hero__title { font-size: 1.45rem; max-width: 15ch; } .hero__art { width: 76px; } }
.banner { aspect-ratio: 16 / 6.2; }
@media (max-width: 639px) { .banner { aspect-ratio: 16 / 8; } }
@media (max-width: 959px) {
  .hero__in { gap: 4px 12px; }
  .hero__trust { gap: 6px 14px; }
  .hero__trust li:nth-child(3) { display: none; }
}
/* less scrolling: tighter section spacing */
.section { padding-block: 22px; }
.section + .section { padding-top: 6px; }
.sec-head { margin-bottom: 14px; }
.sec-head > div:first-child::before { margin-bottom: 4px; }
/* hero search: phones and tablets only; on desktop the header search is already on screen */
@media (min-width: 960px) { .hero__search { display: none; } .hero__trust { margin-top: 18px; } }

/* ------------------------------------------------ location picking & address form */
/* Map with a fixed pin in the middle (D.pinMap): the spot is wherever the map is moved to. */
.pinmap { position: relative; }
.pinmap::after {
  content: ""; position: absolute; left: 50%; top: 50%; z-index: 500; width: 34px; height: 46px; pointer-events: none;
  transform: translate(-50%, -100%); transition: transform .15s var(--ease);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 40'%3E%3Cpath d='M15 39s13-12.4 13-23A13 13 0 0 0 2 16c0 10.6 13 23 13 23z' fill='%236E1426' stroke='%23fff' stroke-width='2'/%3E%3Ccircle cx='15' cy='15.5' r='5' fill='%23F3DC9B'/%3E%3C/svg%3E") center / contain no-repeat;
  filter: drop-shadow(0 6px 6px rgba(46, 8, 18, .35));
}
.pinmap::before { content: ""; position: absolute; left: 50%; top: 50%; z-index: 499; width: 14px; height: 6px; margin: -3px 0 0 -7px; border-radius: 50%; background: rgba(46, 8, 18, .35); pointer-events: none; transition: transform .15s var(--ease), opacity .15s; }
.pinmap.is-moving::after { transform: translate(-50%, calc(-100% - 10px)); }
.pinmap.is-moving::before { transform: scale(.7); opacity: .6; }

.loc-options { display: grid; gap: 10px; }
.loc-options .choice { width: 100%; text-align: left; align-items: center; }
.loc-opt-icon { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; color: #F3DC9B; background: var(--wine-grad); box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--gold-line); }
.loc-map { margin-top: 12px; display: grid; gap: 10px; }
.loc-map .map { height: 260px; }
.loc-map__place { font-size: .9rem; color: var(--ink-2); min-height: 1.4em; }
dialog.sheet .notice { margin-bottom: 14px; }

.addr-step { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 700; font-size: 1.15rem; margin-bottom: 12px; }
.addr-step span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-family: var(--sans); font-size: .85rem; color: #F3DC9B; background: var(--wine-grad); flex: none; }
.addr-find { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-start; margin-bottom: 12px; position: relative; z-index: 600; }
.addr-find .search { min-width: min(100%, 260px); position: relative; }
.addr-find__results { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--gold-line); border-radius: var(--r-md); box-shadow: var(--shadow-lift); padding: 6px; max-height: 300px; overflow: auto; margin: 0; }
.addr-map { height: 320px; }
@media (max-width: 639px) { .addr-map { height: 280px; } .addr-find .btn { width: 100%; } }
.addr-pin-status { margin-top: 10px; font-size: .9rem; color: var(--ink-2); padding: 10px 12px; border-radius: var(--r-sm); background: var(--gold-tint); border: 1px dashed #D7C08E; }
.addr-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 16px; }
.addr-grid .field + .field { margin-top: 0; }
.addr-actions { display: flex; gap: 12px; align-items: center; margin-top: 24px; flex-wrap: wrap; }
@media (max-width: 639px) { .addr-actions .btn--primary { flex: 1 1 100%; } }
.input[aria-invalid="true"] { box-shadow: 0 0 0 3px rgba(179, 38, 30, .12); }
