/* Crepe Beirut — site theme
   Layout: brand-pack colour blocking. Cream "paper" for reading, a stripe-wrapped hero panel
   like the shop's packaging, a cocoa band for the story, a sky gingham-grid band for hours.
   The menu reads like the printed card; the order sits beside it as a punched paper ticket. */
:root {
  /* Theme colours. These four are set from the admin's Theme screen; everything else derives from them. */
  --cream: #FFFBF1;   /* background */
  --butter: #FCF0CA;  /* soft colour */
  --sky: #BDD9EE;     /* accent */
  --cocoa: #633C20;   /* brand */

  /* Roles */
  --bg: var(--cream);
  --paper: color-mix(in srgb, var(--cream) 40%, #FFFFFF);
  --tint: var(--butter);
  --ink: color-mix(in srgb, var(--cocoa) 62%, #000);
  --ink-2: color-mix(in srgb, var(--cocoa) 85%, var(--cream));
  --line: color-mix(in srgb, var(--cocoa) 13%, var(--cream));
  --brand: var(--cocoa);
  --on-brand: var(--cream);
  --accent: var(--sky);
  --on-accent: color-mix(in srgb, var(--cocoa) 55%, #000);
  --stripe-a: var(--sky);
  --stripe-b: var(--butter);
  --band-dark: color-mix(in srgb, var(--cocoa) 82%, #000);
  --band-dark-ink: var(--butter);
  --band-dark-line: color-mix(in srgb, var(--butter) 9%, transparent);
  --band-sky: var(--sky);
  --band-sky-line: color-mix(in srgb, var(--cream) 90%, transparent);
  --logo-hi: color-mix(in srgb, var(--cream) 70%, var(--butter));
  --wa: #1E8A4C;
  --on-wa: #FFFFFF;
  --ok: #2F7D4F;
  --warn-bg: #FFF1D6;
  --warn-ink: #7A4A00;
  --danger: #B3261E;
  --shadow-sm: 0 1px 2px rgba(58, 35, 18, .07);
  --shadow: 0 2px 4px rgba(58, 35, 18, .05), 0 14px 34px -10px rgba(58, 35, 18, .22);

  /* Type (the admin can pick other fonts) */
  --display: "Fraunces", "Cooper Black", Georgia, serif;
  --body: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  /* One type scale for the whole site: every text size is one of these. */
  --fs-2xs: .7rem;                          /* tags and counters */
  --fs-xs: .8rem;                           /* labels, notes, chips */
  --fs-sm: .9rem;                           /* secondary text, buttons */
  --fs-md: 1.0625rem;                       /* body text, inputs */
  --fs-lg: 1.25rem;                         /* lead text, card titles */
  --fs-xl: 1.6rem;                          /* sub-headings, totals */
  --fs-2xl: clamp(1.9rem, 3.4vw, 2.6rem);   /* section headings */
  --fs-hero: clamp(2.75rem, 6.6vw, 5.6rem); /* home page headline */
  /* Two weights for the text font, and the headline font's own weight (set from the admin's
     font choice, since some headline fonts only come in one weight). */
  --w-regular: 400;
  --w-bold: 700;
  --display-weight: 700;

  /* Shape & space (corners follow the admin's choice) */
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 28px;
  --pill: 999px;
  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1320px;
  --head-h: 68px;
  color-scheme: light;
}
:root[data-corners="round"] { --r-sm: 14px; --r: 22px; --r-lg: 38px; }
:root[data-corners="square"] { --r-sm: 4px; --r: 6px; --r-lg: 10px; --pill: 8px; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: color-mix(in srgb, var(--cocoa) 26%, #0A0705);
    --paper: color-mix(in srgb, var(--cocoa) 30%, #110B07);
    --tint: color-mix(in srgb, var(--cocoa) 42%, #120C08);
    --ink: var(--butter);
    --ink-2: color-mix(in srgb, var(--butter) 76%, var(--cocoa));
    --line: color-mix(in srgb, var(--cocoa) 62%, #1A120B);
    --brand: var(--butter);
    --on-brand: color-mix(in srgb, var(--cocoa) 45%, #000);
    --accent: color-mix(in srgb, var(--sky) 74%, #000);
    --on-accent: color-mix(in srgb, var(--cocoa) 26%, #0A0705);
    --stripe-a: color-mix(in srgb, var(--sky) 48%, #1B120B);
    --stripe-b: color-mix(in srgb, var(--cocoa) 38%, #120C08);
    --band-dark: color-mix(in srgb, var(--cocoa) 14%, #050302);
    --band-dark-ink: var(--butter);
    --band-dark-line: color-mix(in srgb, var(--butter) 6%, transparent);
    --band-sky: color-mix(in srgb, var(--sky) 16%, #0F1418);
    --band-sky-line: color-mix(in srgb, var(--sky) 22%, transparent);
    --logo-hi: color-mix(in srgb, var(--cocoa) 40%, #120C08);
    --wa: #1E8A4C; --on-wa: #FFFFFF; --ok: #7BC79A;
    --warn-bg: #3B2A0F; --warn-ink: #F5CF85; --danger: #FFB4AB;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4); --shadow: 0 14px 34px -10px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: color-mix(in srgb, var(--cocoa) 26%, #0A0705);
  --paper: color-mix(in srgb, var(--cocoa) 30%, #110B07);
  --tint: color-mix(in srgb, var(--cocoa) 42%, #120C08);
  --ink: var(--butter);
  --ink-2: color-mix(in srgb, var(--butter) 76%, var(--cocoa));
  --line: color-mix(in srgb, var(--cocoa) 62%, #1A120B);
  --brand: var(--butter);
  --on-brand: color-mix(in srgb, var(--cocoa) 45%, #000);
  --accent: color-mix(in srgb, var(--sky) 74%, #000);
  --on-accent: color-mix(in srgb, var(--cocoa) 26%, #0A0705);
  --stripe-a: color-mix(in srgb, var(--sky) 48%, #1B120B);
  --stripe-b: color-mix(in srgb, var(--cocoa) 38%, #120C08);
  --band-dark: color-mix(in srgb, var(--cocoa) 14%, #050302);
  --band-dark-ink: var(--butter);
  --band-dark-line: color-mix(in srgb, var(--butter) 6%, transparent);
  --band-sky: color-mix(in srgb, var(--sky) 16%, #0F1418);
  --band-sky-line: color-mix(in srgb, var(--sky) 22%, transparent);
  --logo-hi: color-mix(in srgb, var(--cocoa) 40%, #120C08);
  --wa: #1E8A4C; --on-wa: #FFFFFF; --ok: #7BC79A;
  --warn-bg: #3B2A0F; --warn-ink: #F5CF85; --danger: #FFB4AB;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4); --shadow: 0 14px 34px -10px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

@font-face { font-family: "Fraunces"; src: url("../assets/fonts/fraunces-soft-750.woff2") format("woff2"); font-weight: 500 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../assets/fonts/figtree-var.woff2") format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; }

/* ---------- Brand patterns ---------- */
.pat-stripes { background: repeating-linear-gradient(90deg, var(--stripe-a) 0 var(--sw, 9%), var(--stripe-b) var(--sw, 9%) calc(var(--sw, 9%) * 2)); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 70px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--body); font-size: var(--fs-md); line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 {
  font-family: var(--display); font-variation-settings: "SOFT" 100; font-weight: var(--display-weight);
  line-height: 1.04; letter-spacing: -.015em; text-wrap: balance; margin: 0; color: var(--brand);
}
p { margin: 0; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ico { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.kicker { font-size: var(--fs-xs); font-weight: var(--w-bold); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); }
.text-link { font-weight: var(--w-bold); font-size: var(--fs-sm); color: var(--brand); text-underline-offset: 3px; }
.skip { position: absolute; left: 16px; top: -80px; z-index: 100; background: var(--brand); color: var(--on-brand); padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 44px; padding: 0 1.2em; border-radius: var(--pill); border: 1.5px solid transparent;
  font-weight: var(--w-bold); font-size: var(--fs-sm); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, filter .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-lg { min-height: 52px; padding: 0 1.5em; font-size: var(--fs-md); }
.btn-block { width: 100%; }
.btn-cocoa { background: var(--brand); color: var(--on-brand); }
.btn-cocoa:hover { filter: brightness(1.12); }
.btn-line { border-color: var(--line); background: var(--paper); color: var(--ink); }
.btn-line:hover { border-color: var(--ink-2); }
.btn-wa { background: var(--wa); color: var(--on-wa); }
.btn-wa:hover { filter: brightness(1.08); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.icon-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; border: 0; border-radius: 50%; background: var(--tint); color: var(--ink); cursor: pointer; }
.icon-btn:hover { filter: brightness(.97); }

/* ---------- Announcement + header ---------- */
.announce { background: var(--band-dark); color: var(--band-dark-ink); text-align: center; font-size: var(--fs-sm); font-weight: var(--w-bold); padding: 9px var(--gutter); }
.head {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s ease;
}
.head.scrolled { border-bottom-color: var(--line); }
.head-inner { height: var(--head-h); display: flex; align-items: center; gap: 24px; }
.lockup { display: flex; align-items: center; gap: 10px; color: var(--brand); text-decoration: none; margin-right: auto; }
.lockup-mark { width: 44px; height: 35px; }
.lockup-word { width: 128px; height: 26px; }
.head-nav { display: flex; gap: 26px; font-size: var(--fs-sm); font-weight: var(--w-bold); }
.head-nav a { text-decoration: none; padding-block: 6px; background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 2px no-repeat; transition: background-size .2s ease; }
.head-nav a:hover { background-size: 100% 2px; }
.status-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: var(--pill);
  background: var(--tint); font-size: var(--fs-xs); font-weight: var(--w-bold); white-space: nowrap;
}
.status-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-2); }
.status-pill.open i { background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 22%, transparent); }
.bag-btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 8px 0 16px;
  border: 0; border-radius: var(--pill); background: var(--brand); color: var(--on-brand);
  font-weight: var(--w-bold); font-size: var(--fs-sm); cursor: pointer;
}
.count {
  min-width: 26px; height: 26px; padding: 0 7px; border-radius: var(--pill); display: inline-grid; place-items: center;
  background: var(--accent); color: var(--on-accent); font-size: var(--fs-xs); font-weight: var(--w-bold); font-variant-numeric: tabular-nums;
}
.count.bump { animation: bump .4s ease; }
@keyframes bump { 40% { transform: scale(1.3); } }

.mode-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; border: 0; border-radius: 50%; background: var(--tint); color: var(--ink); cursor: pointer; }
.mode-btn:hover { filter: brightness(.97); }
.mode-btn .ico { grid-area: 1 / 1; transition: transform .35s ease, opacity .25s ease; }
.mode-btn .ico-sun { opacity: 0; transform: rotate(-90deg) scale(.6); }
.mode-btn.is-dark .ico-moon { opacity: 0; transform: rotate(90deg) scale(.6); }
.mode-btn.is-dark .ico-sun { opacity: 1; transform: none; }
.cur-switch { display: inline-grid; grid-auto-flow: column; padding: 3px; border-radius: var(--pill); background: var(--tint); }
.cur-switch label { position: relative; }
.cur-switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.cur-switch span { display: block; min-width: 38px; padding: 5px 10px; border-radius: var(--pill); text-align: center; font-size: var(--fs-xs); font-weight: var(--w-bold); color: var(--ink-2); cursor: pointer; }
.cur-switch input:checked + span { background: var(--paper); color: var(--ink); box-shadow: var(--shadow-sm); }
.cur-switch input:focus-visible + span { outline: 3px solid var(--accent); }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding-block: clamp(28px, 5vw, 64px) clamp(40px, 6vw, 88px); }
.hero-copy { display: grid; gap: 22px; min-width: 0; container-type: inline-size; }
/* The home page headline uses the text font (bold) or the headline font: the admin picks (Theme → Fonts). */
/* One line, in capitals: the size shrinks to fit the width (first guessed from the number of letters,
   then measured exactly by site.js fitHeroTitle), never bigger than the usual headline size. */
.hero h1 {
  font-family: var(--body); font-variation-settings: normal; font-weight: var(--w-bold);
  text-transform: uppercase; white-space: nowrap; letter-spacing: 0; line-height: 1.05;
  font-size: min(var(--fs-hero), calc(100cqi / (var(--hero-chars, 26) * .66)));
}
:root[data-hero-font="display"] .hero h1 { font-family: var(--display); font-variation-settings: "SOFT" 100; font-weight: var(--display-weight); }
.hero-lede { font-size: var(--fs-lg); color: var(--ink-2); max-width: 32em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-facts { list-style: none; margin: 6px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: var(--fs-sm); font-weight: var(--w-bold); }
.hero-facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero-facts .ico { color: var(--ink-2); }

.hero-art { position: relative; padding: 4% 6% 8% 4%; }
.hero-panel {
  position: relative; aspect-ratio: 1 / 1.02; max-width: 100%; border-radius: var(--r-lg); overflow: hidden;
  background: repeating-linear-gradient(90deg, var(--stripe-a) 0 8.33%, var(--stripe-b) 8.33% 16.66%);
  box-shadow: inset 0 0 0 10px var(--bg), inset 0 0 0 12px var(--line);
}
.hero-plate {
  position: absolute; left: 50%; top: 52%; width: 74%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%;
  background: var(--bg); box-shadow: 0 0 0 clamp(8px, 1.4vw, 14px) var(--cocoa), 0 30px 50px -20px rgba(58, 35, 18, .5);
}
.hero-crepe { position: absolute; width: 78%; left: 11%; top: 31%; translate: 0 calc(var(--sy, 0) * -0.07px); rotate: calc(var(--sy, 0) * 0.015deg); filter: drop-shadow(0 18px 20px rgba(58, 35, 18, .28)); animation: crepe-in .9s cubic-bezier(.2, .9, .3, 1.15) both; }
.sticker {
  position: absolute; left: 0; top: 0; width: 30%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  background: repeating-linear-gradient(90deg, var(--sky) 0 12.5%, var(--cream) 12.5% 25%);
  box-shadow: 0 0 0 clamp(5px, .8vw, 8px) var(--sky), 0 0 0 calc(clamp(5px, .8vw, 8px) + 3px) var(--bg), var(--shadow);
  color: var(--cocoa); rotate: -10deg; animation: sticker-in .8s .2s cubic-bezier(.2, .9, .3, 1.2) both;
  --logo-hi: color-mix(in srgb, var(--cream) 70%, var(--butter));
}
.sticker svg { width: 62%; height: 50%; }
.hero-spreader { position: absolute; width: 36%; right: 0; top: -2%; rotate: calc(20deg + var(--sy, 0) * 0.16deg); transform-origin: 50% 20%; filter: drop-shadow(0 8px 10px rgba(58, 35, 18, .2)); }
.hero-pancakes { position: absolute; width: 27%; right: 2%; bottom: 0; translate: 0 calc(var(--sy, 0) * 0.12px); animation: hop 1s .35s ease-out both; }
@keyframes crepe-in { from { transform: translateY(-16px) rotate(-5deg); } }
@keyframes sticker-in { from { transform: scale(.7); } }
@keyframes hop { 0% { transform: translateY(12px); } 60% { transform: translateY(-6px); } 100% { transform: none; } }

/* ---------- Section headings ---------- */
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.section-head h2 { font-size: var(--fs-2xl); margin-top: 6px; }

/* ---------- Favourites ---------- */
.favs { padding-block: 8px 24px; }
.fav-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.fav {
  display: grid; grid-template-rows: auto 1fr; border-radius: var(--r); overflow: hidden;
  background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.fav:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.fav-pic {
  position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center;
  background-color: var(--band-sky);
  background-image:
    radial-gradient(circle, var(--band-sky-line) 2.6px, transparent 3.2px),
    linear-gradient(90deg, transparent calc(50% - .75px), var(--band-sky-line) calc(50% - .75px) calc(50% + .75px), transparent calc(50% + .75px)),
    linear-gradient(transparent calc(50% - .75px), var(--band-sky-line) calc(50% - .75px) calc(50% + .75px), transparent calc(50% + .75px));
  background-size: 34px 34px;
}
.fav:nth-child(even) .fav-pic { background-color: var(--tint); --band-sky-line: color-mix(in srgb, var(--sky) 80%, transparent); }
.fav-pic img { position: absolute; inset: 11% 15%; width: 70%; height: 78%; object-fit: contain; filter: drop-shadow(0 10px 12px rgba(58, 35, 18, .22)); transition: transform .3s ease; }
.fav:hover .fav-pic img { transform: scale(1.05) rotate(-2deg); }
.fav-body { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 4px 12px; padding: 14px 14px 16px 16px; }
.fav-cat { grid-column: 1 / -1; font-size: var(--fs-xs); color: var(--ink-2); font-weight: var(--w-bold); }
.fav-name { font-family: var(--display); font-variation-settings: "SOFT" 100; font-weight: var(--display-weight); font-size: var(--fs-lg); line-height: 1.15; color: var(--brand); }
.fav-price { font-size: var(--fs-sm); color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* ---------- Menu layout ---------- */
.menu {
  display: grid; grid-template-columns: 196px minmax(0, 1fr) 380px; gap: clamp(24px, 3vw, 44px);
  align-items: start; padding-block: 56px 80px;
}
.rail { position: sticky; top: calc(var(--head-h) + 20px); display: grid; gap: 10px; }
.rail ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.rail a {
  display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 12px;
  text-decoration: none; font-size: var(--fs-sm); font-weight: var(--w-bold); color: var(--ink-2);
}
.rail a:hover { background: var(--tint); color: var(--ink); }
.rail a.on { background: var(--brand); color: var(--on-brand); }
.rail .rail-n { margin-left: auto; font-size: var(--fs-xs); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.menu-main { min-width: 0; container-type: inline-size; }
.menu-intro { display: grid; gap: 6px; margin-bottom: 12px; }
.menu-intro h2 { font-size: var(--fs-2xl); }
.menu-intro p { color: var(--ink-2); font-size: var(--fs-sm); max-width: 46em; }
.menu-tools {
  position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--head-h)); z-index: 10;
  display: grid; gap: 10px; padding-block: 10px; background: var(--bg); border-bottom: 1px solid var(--line);
}
.search {
  display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 16px; border-radius: var(--pill);
  background: var(--paper); border: 1.5px solid var(--line); color: var(--ink-2); transition: border-color .15s ease;
}
.search:focus-within { border-color: var(--accent); }
.search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: var(--fs-md); color: var(--ink); }
.chips { display: none; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chips a { flex: none; padding: 7px 14px; border-radius: var(--pill); font-size: var(--fs-xs); font-weight: var(--w-bold); text-decoration: none; background: var(--tint); white-space: nowrap; }
.chips a.on { background: var(--brand); color: var(--on-brand); }

/* ---------- Category + items ---------- */
.cat { padding-top: 40px; }
.cat-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: center; margin-bottom: 8px; }
.cat-badge {
  position: relative; width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center;
  background: repeating-linear-gradient(90deg, var(--stripe-a) 0 12.5%, var(--stripe-b) 12.5% 25%);
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 4.5px var(--line);
}
.cat-badge img { position: absolute; inset: 6%; width: 88%; height: 88%; object-fit: contain; filter: drop-shadow(0 6px 6px rgba(58, 35, 18, .25)); }
.cat-badge svg { width: 60%; height: 48%; color: var(--cocoa); --logo-hi: color-mix(in srgb, var(--cream) 70%, var(--butter)); }
.cat-head h3 { font-size: var(--fs-xl); }
.cat-meta { font-size: var(--fs-sm); color: var(--ink-2); }
.items { list-style: none; margin: 0; padding: 0; display: grid; column-gap: 40px; }
@container (min-width: 640px) { .items { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.item { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding-block: 13px; border-bottom: 1px dashed var(--line); }
.item-name { font-weight: var(--w-bold); min-width: 0; line-height: 1.3; overflow-wrap: anywhere; }
.item-desc { display: block; font-weight: var(--w-regular); font-size: var(--fs-xs); color: var(--ink-2); margin-top: 2px; }
.item-price { font-size: var(--fs-sm); color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.item-price span { display: block; line-height: 1.45; }
.item-price small { font-size: var(--fs-xs); margin-right: 4px; }
.tag { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: var(--pill); font-size: var(--fs-2xs); font-weight: var(--w-bold); letter-spacing: .04em; vertical-align: 2px; }
.tag-pop { background: var(--accent); color: var(--on-accent); }
.tag-out { background: var(--tint); color: var(--ink); }
/* Sold out: dimmed, but still readable (WCAG AA contrast), and the price struck through. */
.item.out .item-name { opacity: .78; }
.item.out .item-price { text-decoration: line-through; }
.add {
  position: relative; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none;
  border: 1.5px solid var(--brand); background: transparent; color: var(--brand); cursor: pointer;
  transition: background-color .15s ease, color .15s ease, transform .15s ease;
}
.add:hover { background: var(--brand); color: var(--on-brand); }
.add:active { transform: scale(.94); }
.add[disabled] { border-color: var(--line); color: var(--ink-2); background: none; cursor: not-allowed; }
.add .ico { stroke-width: 2.5; }
.add .n {
  position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: var(--pill);
  display: grid; place-items: center; background: var(--accent); color: var(--on-accent);
  font-size: var(--fs-2xs); font-weight: var(--w-bold); border: 2px solid var(--bg);
}
.item.in .add { background: var(--brand); color: var(--on-brand); }
.cat-note { margin-top: 12px; font-size: var(--fs-xs); color: var(--ink-2); display: flex; align-items: center; gap: 8px; }
.cat-note::before { content: "+"; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font-weight: var(--w-bold); font-size: var(--fs-xs); }
.no-results { padding: 48px 0; text-align: center; color: var(--ink-2); }

/* ---------- Order ticket ---------- */
.ticket { position: sticky; top: calc(var(--head-h) + 20px); min-width: 0; }
.ticket-card {
  position: relative; display: grid; gap: 16px; padding: 30px 22px 22px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow);
  max-height: calc(100vh - var(--head-h) - 40px); overflow-y: auto; overscroll-behavior: contain;
}
.ticket-card::before {
  content: ""; position: absolute; left: 22px; right: 22px; top: 11px; height: 8px;
  background: radial-gradient(circle, var(--bg) 3.5px, transparent 4px) 0 0 / 16px 8px repeat-x;
}
.ticket-head { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.ticket-head h2 { font-size: var(--fs-xl); }
.ticket-sub { font-size: var(--fs-sm); color: var(--ink-2); margin-top: 2px; }
.ticket-close { display: none; }
.notice { padding: 12px 14px; border-radius: var(--r-sm); background: var(--tint); font-size: var(--fs-sm); display: grid; gap: 6px; }
.notice-warn { background: var(--warn-bg); color: var(--warn-ink); }
.notice-warn .text-link { color: inherit; }
.offline-note { margin-top: 8px; max-width: 46em; }
.menu-intro .offline-note p { color: inherit; }
.cart-empty { display: grid; justify-items: center; gap: 14px; text-align: center; padding: 10px 6px 4px; color: var(--ink-2); font-size: var(--fs-sm); }
.cart-empty-badge {
  width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; color: var(--cocoa); --logo-hi: color-mix(in srgb, var(--cream) 70%, var(--butter));
  background: repeating-linear-gradient(90deg, var(--stripe-a) 0 12.5%, var(--stripe-b) 12.5% 25%);
  box-shadow: 0 0 0 5px var(--paper), 0 0 0 6.5px var(--line);
}
.cart-empty-badge svg { width: 60%; height: 48%; }
.lines { list-style: none; margin: 0; padding: 0; display: grid; }
.line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 12px; padding-block: 13px; border-bottom: 1px dashed var(--line); }
.line:first-child { padding-top: 0; }
.line-name { font-weight: var(--w-bold); font-size: var(--fs-sm); }
.line-total { font-size: var(--fs-sm); font-weight: var(--w-bold); font-variant-numeric: tabular-nums; white-space: nowrap; }
.line-meta { grid-column: 1 / -1; font-size: var(--fs-xs); color: var(--ink-2); }
.line-ctrl { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.line.bad .line-name { color: var(--danger); }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: var(--pill); background: var(--paper); }
.stepper button { width: 34px; height: 32px; display: grid; place-items: center; border: 0; background: none; border-radius: var(--pill); cursor: pointer; color: var(--ink); }
.stepper button:hover { background: var(--tint); }
.stepper output { min-width: 24px; text-align: center; font-weight: var(--w-bold); font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.link-btn { border: 0; background: none; padding: 4px 0; color: var(--ink-2); font-size: var(--fs-xs); font-weight: var(--w-bold); text-decoration: underline; cursor: pointer; }
.totals { display: grid; gap: 4px; font-variant-numeric: tabular-nums; }
.totals .row { display: flex; justify-content: space-between; gap: 12px; font-size: var(--fs-sm); color: var(--ink-2); }
.totals .total { color: var(--brand); font-family: var(--display); font-variation-settings: "SOFT" 100; font-weight: var(--display-weight); font-size: var(--fs-xl); padding-top: 6px; }
.fine { font-size: var(--fs-xs); color: var(--ink-2); }
.center { text-align: center; }

.checkout { display: grid; gap: 12px; padding-top: 16px; border-top: 1.5px solid var(--line); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; border: 0; margin: 0 0 4px; padding: 4px; background: var(--tint); border-radius: var(--pill); }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 9px; border-radius: var(--pill); font-weight: var(--w-bold); font-size: var(--fs-sm); cursor: pointer; color: var(--ink-2); }
.seg input:checked + label { background: var(--paper); color: var(--ink); box-shadow: var(--shadow-sm); }
.seg input:focus-visible + label { outline: 3px solid var(--accent); }
.field { display: grid; gap: 6px; }
.field label { font-size: var(--fs-xs); font-weight: var(--w-bold); }
.field .opt { font-weight: var(--w-regular); color: var(--ink-2); }
.field input, .field textarea {
  width: 100%; padding: 11px 13px; border-radius: 12px; border: 1.5px solid var(--line);
  background: var(--bg); font-size: var(--fs-md); resize: vertical; transition: border-color .15s ease;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field.bad input, .field.bad textarea { border-color: var(--danger); }
.form-error { color: var(--danger); font-size: var(--fs-sm); font-weight: var(--w-bold); }

.sent { display: grid; gap: 12px; justify-items: center; text-align: center; }
.sent-badge { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--wa); color: var(--on-wa); }
.sent-badge .ico { width: 30px; height: 30px; }
.sent h3 { font-size: var(--fs-xl); }
.sent > p { font-size: var(--fs-sm); color: var(--ink-2); }
.sent-actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sent-text { width: 100%; font-size: var(--fs-xs); border: 1px solid var(--line); border-radius: 12px; padding: 10px; background: var(--bg); color: var(--ink-2); resize: vertical; text-align: left; }

/* ---------- About (cocoa band) ---------- */
.about {
  background-color: var(--band-dark); color: var(--band-dark-ink);
  background-image:
    radial-gradient(circle, var(--band-dark-line) 3px, transparent 3.6px),
    linear-gradient(90deg, transparent calc(50% - .75px), var(--band-dark-line) calc(50% - .75px) calc(50% + .75px), transparent calc(50% + .75px)),
    linear-gradient(transparent calc(50% - .75px), var(--band-dark-line) calc(50% - .75px) calc(50% + .75px), transparent calc(50% + .75px));
  background-size: 44px 44px;
}
.about-inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(32px, 6vw, 96px); align-items: center; padding-block: clamp(56px, 8vw, 110px); }
.about .kicker { color: inherit; opacity: .7; }
.about h2 { color: inherit; font-size: var(--fs-2xl); margin-block: 10px 18px; }
.about-copy { min-width: 0; }
.about-text { display: grid; gap: 14px; max-width: 36em; opacity: .88; font-size: var(--fs-md); }
.about-facts { list-style: none; margin: 32px 0 0; padding: 24px 0 0; border-top: 1px solid rgba(252, 240, 202, .18); display: flex; flex-wrap: wrap; gap: 18px 48px; }
.about-facts li { display: grid; gap: 2px; }
.about-facts b { font-family: var(--display); font-variation-settings: "SOFT" 100; font-weight: var(--display-weight); font-size: var(--fs-2xl); line-height: 1; font-variant-numeric: tabular-nums; }
.about-facts span { font-size: var(--fs-xs); opacity: .75; }
.about-art { justify-self: center; width: min(360px, 100%); }
.seal { position: relative; aspect-ratio: 1; }
.seal-ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 50s linear infinite; }
.seal-ring text { font: 700 11px var(--body); letter-spacing: .2em; fill: var(--band-dark-ink); }
.seal-core {
  position: absolute; inset: 19%; border-radius: 50%; display: grid; place-items: center; color: var(--cocoa); --logo-hi: color-mix(in srgb, var(--cream) 70%, var(--butter));
  background: repeating-linear-gradient(90deg, var(--sky) 0 12.5%, var(--cream) 12.5% 25%);
  box-shadow: 0 0 0 10px var(--sky), 0 0 0 13px var(--band-dark), 0 0 0 14.5px rgba(252, 240, 202, .35), 0 30px 60px -10px rgba(0, 0, 0, .5);
}
.seal-core svg { width: 62%; height: 50%; }
@keyframes spin { to { rotate: 360deg; } }

/* ---------- Visit (sky grid band) ---------- */
.visit {
  padding-block: clamp(48px, 7vw, 96px);
  background-color: var(--band-sky);
  background-image:
    radial-gradient(circle, var(--band-sky-line) 3px, transparent 3.6px),
    linear-gradient(90deg, transparent calc(50% - 1px), var(--band-sky-line) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)),
    linear-gradient(transparent calc(50% - 1px), var(--band-sky-line) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px));
  background-size: 48px 48px;
}
.visit-card {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); border-radius: var(--r-lg); overflow: hidden;
  background: var(--paper); box-shadow: var(--shadow); max-width: 1040px; margin-inline: auto;
}
.visit-card.no-hours { grid-template-columns: minmax(0, 1fr); max-width: 680px; }
.visit-card.no-hours .visit-hours { display: none; }
.visit-main { display: grid; gap: 14px; align-content: start; padding: clamp(24px, 4vw, 48px); }
.visit-main h2 { font-size: var(--fs-2xl); }
.visit-text { color: var(--ink-2); }
.visit-wa {
  display: inline-flex; align-items: center; gap: 12px; justify-self: start; margin-top: 8px;
  font-family: var(--display); font-variation-settings: "SOFT" 100; font-weight: var(--display-weight); font-size: var(--fs-2xl);
  text-decoration: none; color: var(--brand); font-variant-numeric: tabular-nums;
}
.visit-wa .ico { width: 34px; height: 34px; padding: 6px; border-radius: 50%; background: var(--wa); color: var(--on-wa); stroke-width: 2; }
.visit-wa:hover span { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.visit-address { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; font-weight: var(--w-bold); }
.visit-address .ico { margin-top: 3px; color: var(--ink-2); }
.socials { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 6px; }
.socials a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--pill); background: var(--tint); font-weight: var(--w-bold); font-size: var(--fs-sm); text-decoration: none; }
.socials a:hover { filter: brightness(.97); }
.visit-hours { padding: clamp(24px, 4vw, 48px); background: var(--tint); display: grid; gap: 14px; align-content: start; }
.visit-hours h3 { font-size: var(--fs-lg); }
.hours { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.hours td { padding: 9px 0; border-bottom: 1px dashed color-mix(in srgb, var(--ink-2) 30%, transparent); }
.hours td:last-child { text-align: right; }
.hours tr.today td { font-weight: var(--w-bold); color: var(--brand); }
.hours .today-tag { margin-left: 8px; font-size: var(--fs-2xs); letter-spacing: .1em; text-transform: uppercase; padding: 2px 7px; border-radius: var(--pill); background: var(--brand); color: var(--on-brand); vertical-align: 1px; }
.hours-empty { color: var(--ink-2); font-size: var(--fs-sm); }

/* ---------- Footer ---------- */
.foot { background: var(--band-dark); color: var(--band-dark-ink); padding-block: 44px calc(44px + 76px); }
.foot-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.foot-brand { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 4px 12px; color: var(--band-dark-ink); --logo-hi: var(--band-dark); }
.foot-mark { width: 52px; height: 41px; grid-row: span 2; }
.foot-word { width: 150px; height: 31px; }
.foot-tag { font-size: var(--fs-2xs); letter-spacing: .32em; text-transform: uppercase; font-weight: var(--w-bold); opacity: .7; }
.foot-about { grid-column: 1 / -1; max-width: 34em; margin-top: 8px; font-size: var(--fs-xs); line-height: 1.5; opacity: .75; }
.foot-nav { display: flex; gap: 22px; font-size: var(--fs-sm); font-weight: var(--w-bold); }
.foot-nav a { text-decoration: none; opacity: .85; }
.foot-nav a:hover { opacity: 1; text-decoration: underline; }
.foot-copy { font-size: var(--fs-xs); opacity: .6; }

/* ---------- Customise sheet ---------- */
.sheet {
  width: min(520px, calc(100% - 32px)); max-height: min(90vh, 820px); max-height: min(90svh, 820px); padding: 0; overflow: hidden;
  border: 0; border-radius: var(--r-lg); background: var(--paper); color: var(--ink); box-shadow: var(--shadow);
}
.sheet::backdrop { background: rgba(27, 18, 11, .55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.sheet[open] { animation: rise .25s cubic-bezier(.2, .9, .3, 1); }
@keyframes rise { from { transform: translateY(20px); } }
/* A flex column (not a grid): Safari only shrinks the scrolling middle to fit a max-height in
   flexbox, so the quantity and Add bar always stays on screen however many extras there are. */
.sheet[open] { display: flex; flex-direction: column; }
.sheet-form { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
.sheet-hero, .sheet-head, .sheet-foot { flex: none; }
.sheet-hero {
  position: relative; height: 150px; display: grid; place-items: center;
  background: repeating-linear-gradient(90deg, var(--stripe-a) 0 6.25%, var(--stripe-b) 6.25% 12.5%);
}
.sheet-hero img { height: 128px; width: auto; max-width: 70%; object-fit: contain; filter: drop-shadow(0 10px 12px rgba(58, 35, 18, .3)); }
.sheet-close { position: absolute; top: 12px; right: 12px; background: var(--paper); box-shadow: var(--shadow-sm); }
.sheet-head { padding: 18px 22px 6px; display: grid; gap: 4px; }
.sheet-head h3 { font-size: var(--fs-xl); }
.sheet-desc { color: var(--ink-2); font-size: var(--fs-sm); }
.sheet-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 10px 22px 18px; display: grid; align-content: start; gap: 20px; overscroll-behavior: contain; }
.opt-group { border: 0; margin: 0; padding: 0; display: grid; gap: 10px; }
.opt-group legend { padding: 0; margin-bottom: 10px; font-size: var(--fs-xs); font-weight: var(--w-bold); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.opt-group .hint { font-weight: var(--w-regular); letter-spacing: 0; text-transform: none; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; }
.opt input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.opt span { display: inline-flex; align-items: baseline; gap: 8px; padding: 9px 14px; border-radius: var(--pill); border: 1.5px solid var(--line); font-size: var(--fs-sm); font-weight: var(--w-bold); cursor: pointer; transition: border-color .15s ease; }
.opt span:hover { border-color: var(--ink-2); }
.opt span small { font-size: var(--fs-xs); font-weight: var(--w-regular); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.opt input:checked + span { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.opt input:checked + span small { color: inherit; opacity: .85; }
.opt input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.opt input:disabled + span { opacity: .45; cursor: not-allowed; text-decoration: line-through; }
.sheet-foot { display: flex; align-items: center; gap: 12px; padding: 14px 22px calc(16px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); }
.sheet-foot .btn { flex: 1; min-width: 0; padding-inline: 1em; white-space: normal; line-height: 1.2; font-variant-numeric: tabular-nums; }
.sheet-foot .stepper button { width: 42px; height: 42px; }

/* ---------- Mobile bag bar, scrim, toast ---------- */
.bag-bar {
  position: fixed; z-index: 35; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  display: none; align-items: center; gap: 12px; min-height: 58px; padding: 0 20px 0 12px;
  border: 0; border-radius: var(--pill); background: var(--brand); color: var(--on-brand); box-shadow: var(--shadow);
  font-weight: var(--w-bold); cursor: pointer;
}
.bag-bar-total { margin-left: auto; font-variant-numeric: tabular-nums; }
.scrim { position: fixed; inset: 0; z-index: 44; background: rgba(27, 18, 11, .5); }
.toast {
  position: fixed; z-index: 60; left: 50%; bottom: calc(88px + env(safe-area-inset-bottom, 0px)); translate: -50% 0;
  width: max-content; max-width: calc(100% - 32px); padding: 11px 18px; border-radius: var(--pill); text-align: center;
  background: var(--ink); color: var(--bg); font-size: var(--fs-sm); font-weight: var(--w-bold); box-shadow: var(--shadow);
  opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .2s ease, transform .2s ease;
}
.toast.show { opacity: 1; transform: none; }

/* ---------- Uploaded photos ---------- */
.hero-photo { position: absolute; inset: 12px; width: calc(100% - 24px); height: calc(100% - 24px); object-fit: cover; border-radius: calc(var(--r-lg) - 10px); transform: scale(var(--hero-zoom, 1)); }
/* Home picture shapes (Theme screen): circle, or no frame at all */
.hero-art.shape-circle .hero-panel, .hero-art.shape-none .hero-panel { aspect-ratio: 1; background: none; box-shadow: none; }
.hero-art.shape-circle .hero-panel { border-radius: 50%; }
.hero-art.shape-circle .hero-photo { inset: 0; width: 100%; height: 100%; border-radius: 50%; }
.hero-art.shape-none .hero-panel { border-radius: 0; overflow: visible; }
.hero-art.shape-none .hero-photo { inset: 0; width: 100%; height: 100%; border-radius: 0; object-fit: contain; }
.hero-art.has-photo .hero-plate, .hero-art.has-photo .hero-crepe { display: none; }
.hero-art.no-drawings .sticker, .hero-art.no-drawings .hero-spreader, .hero-art.no-drawings .hero-pancakes { display: none; }
.hero-art.no-drawings { padding: 0; }
/* Melting chocolate on the bottom of the frame: drips stretch down below it, let a drop go, and the drop fades as it falls. */
.hero-frame { position: relative; }
.hero-choc {
  --choc: #3B2010; --choc-hi: #74462A;
  position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none;
  filter: drop-shadow(0 1.5px 1.5px rgb(30 15 5 / .3));
}
.hero-art.shape-none .hero-choc { display: none; }
.choc-neck { transform-box: fill-box; transform-origin: 50% 0; animation: choc-stretch 6s var(--d) ease-in-out infinite both; }
.choc-tip { animation: choc-tip 6s var(--d) ease-in-out infinite both; }
.choc-drop { transform-box: fill-box; transform-origin: 50% 0; opacity: 0; animation: choc-fall 6s var(--d) ease-in infinite both; }
@keyframes choc-stretch { 0%, 100% { transform: scaleY(.3); } 48%, 56% { transform: scaleY(1); } 70% { transform: scaleY(.45); } }
@keyframes choc-tip { 0%, 100% { transform: translateY(calc(var(--l) * -.7px)); } 48%, 56% { transform: none; } 70% { transform: translateY(calc(var(--l) * -.55px)); } }
@keyframes choc-fall {
  0%, 50% { opacity: 0; transform: scale(.5); }
  55% { opacity: 1; transform: translateY(1px) scale(1); }
  60% { opacity: 1; transform: translateY(4px) scale(.95, 1.12); }
  78%, 100% { opacity: 0; transform: translateY(26px) scale(.6, .9); }
}
@media (prefers-reduced-motion: reduce) {
  .choc-neck, .choc-tip { animation: none; }
  .choc-drop { display: none; }
}
.cat-badge.photo { overflow: hidden; }
.cat-badge.photo img { inset: 0; width: 100%; height: 100%; object-fit: cover; filter: none; }
.fav-pic.photo img { inset: 0; width: 100%; height: 100%; object-fit: cover; filter: none; }
.fav:hover .fav-pic.photo img { transform: scale(1.04); }
.item.has-pic { grid-template-columns: 60px minmax(0, 1fr) auto auto; }
.item-pic { width: 60px; height: 60px; border-radius: var(--r-sm); object-fit: cover; background: var(--tint); }
/* A dish photo fills the top of the pop-up, cropped to the frame so it never runs into the text. */
.sheet-hero { overflow: hidden; }
.sheet-hero.photo { height: 240px; background: var(--tint); }
.sheet-hero.photo img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; filter: none; }
.sheet-hero.photo::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 76px; z-index: 1; pointer-events: none;
  background: linear-gradient(rgba(20, 13, 8, .32), transparent);
}
.sheet-hero.photo .sheet-close { z-index: 2; background: rgba(20, 13, 8, .5); color: #fff; box-shadow: none; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.sheet-zoom { display: none; }
.sheet-hero.photo .sheet-zoom {
  position: absolute; right: 12px; bottom: 12px; z-index: 2; width: 34px; height: 34px; display: grid; place-items: center;
  border-radius: 50%; background: rgba(20, 13, 8, .5); color: #fff; pointer-events: none;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.sheet-hero.photo .sheet-zoom .ico { width: 17px; height: 17px; }
.seal-core.has-photo { overflow: hidden; }
.seal-core.has-photo svg { display: none; }
.seal-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

/* ---------- Pattern choice (Theme screen) ---------- */
:root[data-pattern="grid"] :is(.hero-panel, .sheet-hero, .cat-badge, .cart-empty-badge, .sticker, .seal-core) {
  background-color: var(--stripe-b);
  background-image:
    radial-gradient(circle, var(--stripe-a) 2.4px, transparent 2.9px),
    linear-gradient(90deg, transparent calc(50% - .75px), var(--stripe-a) calc(50% - .75px) calc(50% + .75px), transparent calc(50% + .75px)),
    linear-gradient(transparent calc(50% - .75px), var(--stripe-a) calc(50% - .75px) calc(50% + .75px), transparent calc(50% + .75px));
  background-size: 26px 26px;
}
:root[data-pattern="grid"] :is(.cat-badge, .cart-empty-badge) { background-size: 14px 14px; }
:root[data-pattern="plain"] :is(.hero-panel, .sheet-hero) { background: var(--stripe-b); }
:root[data-pattern="plain"] :is(.cat-badge, .cart-empty-badge, .sticker, .seal-core) { background: var(--stripe-a); }
.cat-badge.photo, .seal-core.has-photo { background: var(--tint) !important; }

/* ---------- Motion (only when the visitor allows it; see site.js) ---------- */
.drizzle { display: block; width: 120px; height: 19px; margin-top: 8px; overflow: visible; }
.drizzle path { fill: none; stroke: var(--brand); stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
.drizzle .drip { fill: var(--brand); }
.about .drizzle path { stroke: var(--band-dark-ink); }
.about .drizzle .drip { fill: var(--band-dark-ink); }
.motion .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease var(--d, 0ms), transform .85s cubic-bezier(.2, .8, .2, 1) var(--d, 0ms); }
.motion .reveal.shown { opacity: 1; transform: none; }
.motion .reveal.spin { transform: rotate(-140deg) scale(.55); transition-duration: .7s, 1s; }
.motion .reveal.spin.shown { transform: none; }
.motion .reveal.draw { opacity: 1; transform: none; }
.motion .reveal.draw path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.3s cubic-bezier(.6, .1, .3, 1) var(--d, 0ms); }
.motion .reveal.draw.shown path { stroke-dashoffset: 0; }
.motion .reveal.draw .drip { opacity: 0; transform: translateY(-6px); transform-box: fill-box; }
.motion .reveal.draw.shown .drip { animation: drip 1.6s 1.25s ease-in both; }
@keyframes drip { 0% { opacity: 0; transform: translateY(-6px) scale(.4); } 20% { opacity: 1; transform: translateY(0) scale(1); } 70% { opacity: 1; transform: translateY(6px) scaleY(1.25); } 100% { opacity: 0; transform: translateY(16px) scale(.6); } }
.motion .fav.reveal { transform: translateY(34px) scale(.97); }
.motion .fav.reveal.shown { transform: none; }
.motion .fav.reveal.shown:hover { transform: translateY(-3px); transition-delay: 0ms; }
.motion .item.reveal { transform: translateY(14px); }
.fly {
  position: fixed; left: 0; top: 0; z-index: 70; width: 44px; height: 44px; border-radius: 50%; pointer-events: none; overflow: hidden;
  background: repeating-linear-gradient(90deg, var(--sky) 0 25%, var(--butter) 25% 50%); box-shadow: 0 0 0 3px var(--paper), var(--shadow);
}
.fly img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Responsive ---------- */
@media (max-width: 1239px) {
  .menu { grid-template-columns: minmax(0, 1fr) 360px; }
  .rail { display: none; }
  .chips { display: flex; }
  .head-nav { gap: 18px; }
}
@media (max-width: 1023px) {
  .menu { grid-template-columns: minmax(0, 1fr); padding-block: 40px 64px; }
  .ticket {
    position: fixed; z-index: 45; left: 0; right: 0; bottom: 0; top: auto;
    transform: translateY(105%); visibility: hidden; transition: transform .3s ease, visibility 0s .3s;
  }
  .ticket.open { transform: none; visibility: visible; transition: transform .3s ease; }
  .ticket-card { border-radius: var(--r-lg) var(--r-lg) 0 0; border-bottom: 0; max-height: 90vh; max-height: 90dvh; padding-bottom: calc(22px + env(safe-area-inset-bottom, 0px)); }
  .ticket-close { display: inline-grid; }
  .bag-bar { display: flex; }
  .head-nav { display: none; }
  /* A sideways-only row: no vertical scrolling inside it, so swiping up and down scrolls the page. */
  .fav-grid {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr);
    overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; touch-action: pan-x pan-y;
    scroll-snap-type: x mandatory; scrollbar-width: none;
    padding-block: 4px 12px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
  }
  .fav-grid::-webkit-scrollbar { display: none; }
  .fav, .fav:hover { transform: none; }
  .motion .fav.reveal, .motion .fav.reveal.shown, .motion .fav.reveal.shown:hover { transform: none; }
  .fav { scroll-snap-align: start; }
}
@media (max-width: 799px) {
  :root { --head-h: 60px; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 18px; padding-top: 16px; }
  .hero-art { order: -1; width: min(330px, 88%); justify-self: center; }
  .hero-lede { font-size: var(--fs-md); margin-inline: auto; }
  /* One column: center the headline block under the picture */
  .hero-copy { justify-items: center; text-align: center; }
  .hero-cta, .hero-facts { justify-content: center; }
  .hero-facts { width: 100%; }
  .about-inner { grid-template-columns: minmax(0, 1fr); }
  .about-art { width: min(240px, 70%); order: -1; }
  .visit-card { grid-template-columns: minmax(0, 1fr); }
  .foot-inner { flex-direction: column; align-items: center; text-align: center; }
  .foot-brand { grid-template-columns: auto; justify-items: center; gap: 8px; }
  .foot-mark { grid-row: auto; }
  .foot-nav { flex-wrap: wrap; justify-content: center; gap: 12px 22px; }
  .sheet { width: 100%; max-width: 100%; margin: auto 0 0; border-radius: var(--r-lg) var(--r-lg) 0 0; max-height: 86vh; max-height: 92svh; }
  .sheet-hero { height: 120px; }
  .sheet-hero.photo { height: 210px; }
  .sheet-hero img { height: 100px; }
}
@media (max-width: 520px) {
  .head-inner { gap: 10px; }
  .mode-btn { width: 36px; height: 36px; }
  .status-pill { display: none !important; }
  .bag-label { display: none; }
  .bag-btn { padding: 0 8px 0 12px; }
  .lockup-word { width: 112px; height: 23px; }
  .cat-badge { width: 60px; height: 60px; }
  .cat-head h3 { font-size: var(--fs-xl); }
  .hero-cta .btn { flex: 1 1 auto; }
}
@media (max-width: 420px) {
  .head-inner { gap: 8px; }
  .lockup { gap: 6px; }
  .lockup-mark { width: 38px; height: 30px; }
  .lockup-word { width: 88px; height: 18px; }
  .cur-switch span { min-width: 30px; padding: 5px 7px; }
}
@media (max-width: 350px) {
  .lockup-word { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* Short screens (small phones, landscape): a smaller picture leaves room for the extras. */
@media (max-height: 700px) {
  .sheet-hero { height: 96px; }
  .sheet-hero.photo { height: 160px; }
  .sheet-hero img { height: 80px; }
  .sheet-head { padding-top: 12px; }
}

/* ---------- Photo quick view ----------
   Full-screen photo of a dish: swipe or arrows between dishes, swipe down or Esc to close,
   double-tap to zoom. The info card at the bottom adds the dish to the order. */
[data-qv-open] { cursor: zoom-in; }
.qv {
  width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: transparent; color: #fff; overflow: hidden;
}
.qv::backdrop { background: rgba(14, 9, 5, var(--qv-dim, .9)); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.qv[open] { display: flex; flex-direction: column; }
.qv-top { position: relative; z-index: 2; flex: none; display: flex; align-items: center; justify-content: space-between; padding: calc(10px + env(safe-area-inset-top, 0px)) 14px 6px 20px; }
.qv-count { text-shadow: 0 1px 3px rgba(0, 0, 0, .6); font-size: var(--fs-xs); font-weight: var(--w-bold); letter-spacing: .14em; opacity: .75; font-variant-numeric: tabular-nums; }
.qv-btn {
  width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(20, 13, 8, .45); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); transition: background .15s ease, opacity .2s ease;
}
.qv-btn:hover { background: rgba(20, 13, 8, .65); }
.qv-btn:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.qv-btn .ico { width: 22px; height: 22px; }
.qv-stage { position: relative; flex: 1 1 auto; min-height: 0; touch-action: none; user-select: none; -webkit-user-select: none; }
/* The photo fits inside this box (a fixed size), so it never covers the info card. */
.qv-frame { position: absolute; inset: 8px 16px; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.qv-img {
  max-width: min(100%, 1100px); max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 16px; pointer-events: auto;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45); transform-origin: center; will-change: transform; cursor: zoom-in;
  -webkit-user-drag: none; -webkit-touch-callout: none;
}
.qv.zoomed .qv-img { cursor: grab; border-radius: 0; }
.qv-img.ease { transition: transform .28s cubic-bezier(.2, .9, .3, 1), opacity .2s ease; }
.qv-nav { position: absolute; z-index: 2; top: 50%; translate: 0 -50%; }
.qv-prev { left: 18px; }
.qv-prev .ico { transform: rotate(180deg); }
.qv-next { right: 18px; }
.qv-nav[hidden] { display: none; }
.qv-info {
  position: relative; z-index: 2; flex: none; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: min(760px, calc(100% - 24px)); margin: 8px auto calc(14px + env(safe-area-inset-bottom, 0px));
  padding: 16px 18px 16px 22px; border-radius: var(--r-lg); background: var(--paper); color: var(--ink);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .35); transition: opacity .2s ease, transform .2s ease;
}
.qv.zoomed .qv-info, .qv.zoomed .qv-nav, .qv.dragging .qv-info { opacity: 0; pointer-events: none; }
.qv-text { min-width: 0; display: grid; gap: 2px; }
.qv-text h3 { font-size: var(--fs-xl); }
.qv-desc { color: var(--ink-2); font-size: var(--fs-sm); }
.qv-buy { flex: none; display: flex; align-items: center; gap: 14px; }
.qv-price { font-weight: var(--w-bold); color: var(--brand); white-space: nowrap; font-variant-numeric: tabular-nums; }
.qv[open] { animation: qv-in .22s ease; }
@keyframes qv-in { from { opacity: 0; } }
@media (max-width: 640px) {
  .qv-nav { display: none; }
  .qv-frame { inset: 4px 8px; }
  .qv-img { border-radius: 12px; }
  .qv-info { flex-direction: column; align-items: stretch; gap: 12px; padding: 16px; }
  .qv-buy { justify-content: space-between; }
  .qv-buy .btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { .qv[open], .qv-img.ease { animation: none; transition: none; } }

/* An extra-group limit reached: said right in the pop-up. */
.opt-group .hint.warn { color: var(--danger, #B3261E); font-weight: var(--w-bold); }

/* A zoomed, unframed home picture never makes the page scroll sideways. */
.hero { overflow-x: clip; }

/* Narrow phones: the price goes under the name so long names and sized prices both fit. */
@media (max-width: 380px) {
  .item { grid-template-columns: minmax(0, 1fr) auto; row-gap: 2px; }
  .item .item-price { grid-column: 1; grid-row: 2; text-align: left; }
  .item .add { grid-column: 2; grid-row: 1 / span 2; }
  .item-price span { display: inline; margin-right: 10px; }
}
@media (max-width: 420px) {
  .item.has-pic { grid-template-columns: 52px minmax(0, 1fr) auto; row-gap: 2px; }
  .item.has-pic .item-pic { width: 52px; height: 52px; grid-row: 1 / span 2; }
  .item.has-pic .item-name { grid-column: 2; }
  .item.has-pic .item-price { grid-column: 2; grid-row: 2; text-align: left; }
  .item.has-pic .item-price span { display: inline; margin-right: 10px; }
  .item.has-pic .add { grid-column: 3; grid-row: 1 / span 2; }
}
