/* ================================================================
   ChaoDown Poki — shared styles for every page
   ================================================================ */
:root {
  --ink: #10302f;
  --ink-soft: #3d5957;
  --cream: #fbf6ee;
  --sand: #f1e6d4;
  --coral: #e8664a;
  --coral-dark: #c94f35;
  --chili: #d63b2a;
  --mango: #f3b23c;
  --sea: #1f7a72;
  --white: #ffffff;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(16, 48, 47, 0.12);
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 130px; }
body {
  margin: 0;
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
}
h1, h2, h3 {
  font-family: "Fraunces", Georgia, serif;
  line-height: 1.15;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
a { color: inherit; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: 20px; }
section { padding-block: clamp(64px, 9vw, 110px); }
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 12px;
}
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 60ch; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--coral); color: var(--white); }
.btn-primary:hover { background: var(--coral-dark); }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--cream); }
.text-link { font-weight: 700; color: var(--sea); }

/* ---------- Announcement bar ---------- */
.announce {
  background: var(--mango);
  color: var(--ink);
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 8px 20px;
}

/* ---------- Image slots ---------- */
.img-slot {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--sand);
}
.img-slot img { width: 100%; height: 100%; object-fit: cover; }
.img-slot.empty img { display: none; }
/* Menu photos: soften overly bright reds and lift crushed blacks */
.menu-page .img-slot img { filter: saturate(0.88) contrast(0.94) brightness(1.03); }
.img-slot.empty {
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(45deg, transparent 0 14px, rgba(16,48,47,0.04) 14px 28px),
    var(--sand);
  border: 2px dashed rgba(16, 48, 47, 0.25);
}
.img-slot.empty::after {
  content: "Add photo: images/" attr(data-file);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 8px 14px;
  margin: 8px;
  background: rgba(255,255,255,0.7);
  border-radius: 999px;
  text-align: center;
}
body.edit-mode .img-slot { cursor: pointer; outline: 3px solid transparent; transition: outline-color .15s; }
body.edit-mode .img-slot:hover { outline-color: var(--mango); }
.edit-banner {
  position: fixed;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  background: var(--ink);
  color: var(--cream);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.9rem;
  box-shadow: var(--shadow);
  width: max-content;
  max-width: calc(100% - 32px);
  text-align: center;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 246, 238, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(16, 48, 47, 0.08);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
}
.logo {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  font-size: 1.5rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-mark {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  flex: none;
}
.logo-mark img { width: 100%; height: 100%; object-fit: cover; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a { text-decoration: none; font-weight: 500; }
.nav-links a:not(.btn):hover, .nav-links a.active { color: var(--coral); }
.nav-links a.active { font-weight: 700; }
.nav-links .btn { padding: 10px 20px; }
.menu-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
  color: var(--ink);
}

/* ---------- Page header (Menu / About) ---------- */
.page-head { padding-block: clamp(48px, 7vw, 88px) clamp(32px, 4vw, 48px); }
.page-head h1 { margin-bottom: 0.3em; }

/* ---------- Hero (home) ---------- */
.hero { padding-block: clamp(40px, 6vw, 80px) clamp(64px, 9vw, 110px); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero h1 em { font-style: italic; color: var(--coral); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 36px;
  padding: 0;
  list-style: none;
  font-weight: 500;
  color: var(--ink-soft);
}
.hero-facts li::before { content: "✓ "; color: var(--sea); font-weight: 700; }
.hero-photo { aspect-ratio: 4 / 5; box-shadow: var(--shadow); }
.hero-badge {
  position: absolute;
  left: 18px; bottom: 18px;
  z-index: 2;
  background: var(--white);
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow: var(--shadow);
  font-size: 0.9rem;
  line-height: 1.35;
}
.hero-badge strong { display: block; font-family: "Fraunces", Georgia, serif; font-size: 1.1rem; }

/* ---------- Dark band with steps ---------- */
.dark { background: var(--ink); color: var(--cream); }
.dark .lead { color: rgba(251, 246, 238, 0.75); }
.dark .eyebrow { color: var(--mango); }
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 48px;
  counter-reset: step;
}
.step {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 24px 20px;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--mango);
  color: var(--ink);
  font-weight: 700;
  margin-bottom: 14px;
}
.step h3 { font-size: 1.2rem; }
.step p { color: rgba(251, 246, 238, 0.75); margin: 0; font-size: 0.95rem; }
.dark .btn-ghost { border-color: var(--cream); color: var(--cream); }
.dark .btn-ghost:hover { background: var(--cream); color: var(--ink); }

/* ---------- Dish cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}
.cards.four { grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.card .img-slot { aspect-ratio: 4 / 3; border-radius: 0; }
.card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.card-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.card-top h3 { margin-bottom: 0.3em; }
.price { font-weight: 700; color: var(--coral); white-space: nowrap; }
.card-body p { color: var(--ink-soft); font-size: 0.97rem; margin-bottom: 14px; }
.card-body p.kids-note { font-size: 0.88rem; font-style: italic; margin: 2px 0 0; }
.card-body p.kids-note .price { font-style: normal; font-size: 0.85rem; }
.tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: auto; }
.tag {
  display: inline-flex;
  align-items: center;
  line-height: 1.2;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--sand);
  color: var(--ink-soft);
}

/* ---------- Spice + diet icons ---------- */
.spice {
  display: inline-flex;
  gap: 1px;
  vertical-align: -3px;
  margin-left: 6px;
}
.spice svg { width: 18px; height: 18px; }
.diet {
  display: inline-block;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  padding: 3px 5px;
  border-radius: 5px;
  margin-left: 5px;
  vertical-align: 2px;
  border: 1.5px solid currentColor;
}
.diet.vg { color: #2f8a3a; }
.diet.gf { color: #a16a00; }
.diet.sf { color: #3767a8; }

.legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 26px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 18px 24px;
  box-shadow: var(--shadow);
  font-size: 0.92rem;
}
.legend strong { font-family: "Fraunces", Georgia, serif; font-size: 1rem; }
.legend span.item { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.legend .spice { margin-left: 0; }
.legend .diet { margin-left: 0; margin-right: 2px; vertical-align: 0; }

/* ---------- Menu page ---------- */
.menu-tabs {
  position: sticky;
  top: 72px;
  z-index: 40;
  background: var(--cream);
  border-bottom: 1px solid rgba(16,48,47,0.08);
}
.menu-tabs .wrap {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-block: 12px;
  scrollbar-width: none;
}
.menu-tabs a {
  flex: none;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--white);
  box-shadow: 0 2px 8px rgba(16,48,47,0.06);
}
.menu-tabs a:hover { background: var(--ink); color: var(--cream); }

.menu-section { padding-block: clamp(48px, 6vw, 72px); border-bottom: 1px solid rgba(16,48,47,0.08); }
.menu-section:last-of-type { border-bottom: 0; }
.menu-section > .wrap > h2 { margin-bottom: 0.2em; }
.section-note { color: var(--ink-soft); margin-bottom: 32px; }

.build-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.build-step {
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px 28px;
  box-shadow: var(--shadow);
}
.build-step.wide { grid-column: 1 / -1; }
.build-step h3 { display: flex; align-items: center; gap: 12px; }
.build-step h3 .num {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--coral);
  color: var(--white);
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 1rem;
  flex: none;
}
.build-step h4 {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 18px 0 8px;
}
.build-step .hint { font-size: 0.88rem; color: var(--ink-soft); margin: 4px 0 0; }

.price-list { list-style: none; margin: 0; padding: 0; }
.price-list li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 9px 0;
  border-bottom: 1px dashed rgba(16,48,47,0.14);
}
.price-list li:last-child { border-bottom: 0; }
.price-list .name { font-weight: 700; }
.price-list .sub { color: var(--ink-soft); font-size: 0.9rem; }
.price-list .dots { flex: 1; }
.price-list .price { margin-left: auto; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chips li {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  line-height: 1.2;
  background: var(--cream);
  border: 1px solid rgba(16,48,47,0.1);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.93rem;
  font-weight: 500;
}
.chips li small { color: var(--ink-soft); font-weight: 400; }

.sides-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 48px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 14px 28px;
  box-shadow: var(--shadow);
}
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.drinks-split { display: grid; grid-template-columns: 1fr 1.2fr; gap: 24px; align-items: center; }
.drinks-photo { aspect-ratio: 1; box-shadow: var(--shadow); }
.drinks-stack { display: grid; gap: 24px; }
.advisory {
  font-size: 0.85rem;
  color: var(--ink-soft);
  border-left: 3px solid var(--mango);
  padding-left: 14px;
  margin-top: 28px;
  max-width: 80ch;
}

/* ---------- Story ---------- */
.story { background: var(--sand); }
.split {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.story-photos { max-width: 440px; width: 100%; justify-self: center; }
.story-photos .img-slot { aspect-ratio: 4 / 5; box-shadow: var(--shadow); }
blockquote.quote {
  margin: 28px 0;
  padding-left: 20px;
  border-left: 4px solid var(--coral);
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.25rem;
  font-style: italic;
}
blockquote.quote cite {
  display: block;
  margin-top: 8px;
  font-family: "DM Sans", system-ui, sans-serif;
  font-style: normal;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* ---------- About page ---------- */
.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.value {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow);
}
.value .icon { font-size: 2rem; display: block; margin-bottom: 12px; }
.value p { color: var(--ink-soft); margin: 0; }

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 40px;
}
.gallery .img-slot { aspect-ratio: 1; }
.social-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* ---------- Visit ---------- */
.visit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.info-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.info-card h3 { display: flex; align-items: center; gap: 10px; }
.info-card a { font-weight: 700; color: var(--sea); }
.map-card { grid-column: 1 / -1; }
.map-frame {
  height: 300px;
  border-radius: calc(var(--radius) * 0.6);
  overflow: hidden;
  background: var(--sand);
}
.map-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.hours { width: 100%; border-collapse: collapse; }
.hours td { padding: 5px 0; border-bottom: 1px dashed rgba(16,48,47,0.12); }
.hours td:last-child { text-align: right; font-weight: 500; }
.hours tr:last-child td { border-bottom: 0; }

/* ---------- CTA band ---------- */
.cta { text-align: center; }
.cta .hero-actions { justify-content: center; }

/* ---------- Social buttons ---------- */
.social {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 10px 12px;
  border-radius: 999px;
  background: var(--white);
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(16, 48, 47, 0.08);
  transition: transform 0.15s ease, background 0.15s, color 0.15s;
}
.social:hover { transform: translateY(-2px); background: var(--ink); color: var(--cream); }
.social svg { width: 24px; height: 24px; flex: none; }
.social-icons { display: flex; gap: 12px; margin-top: 18px; }
.social-icons .social { padding: 10px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--cream); padding-block: 56px 32px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
}
.site-footer h4 {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mango);
  margin: 0 0 12px;
}
.site-footer p, .site-footer li { color: rgba(251,246,238,0.75); margin: 0 0 6px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--mango); }
.site-footer .social { background: rgba(255,255,255,0.08); color: var(--cream); box-shadow: none; }
.site-footer .social:hover { background: var(--coral); color: var(--white); }
.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.85rem;
  color: rgba(251,246,238,0.55);
}

/* ---------- Order page ---------- */
[hidden] { display: none !important; }
button.btn { font: inherit; cursor: pointer; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.nav-links .btn-ghost { padding: 8px 18px; }
.test-banner { background: var(--sea); color: var(--white); }

.order-section { padding-block: 0 clamp(64px, 9vw, 110px); }
.order-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}
.builder { display: grid; gap: 24px; }
.step-note { color: var(--ink-soft); font-size: 0.92rem; margin: -4px 0 14px; }
.step-note.done { color: var(--sea); font-weight: 500; }
.half-picker { margin-top: 18px; padding-top: 4px; border-top: 1px dashed rgba(16,48,47,0.14); }
.half-picker h4 { margin-top: 14px; }
.order-main { display: grid; gap: 24px; min-width: 0; }

/* Extra protein scoops cost more: show the price on each protein */
.counter-chip .cc-price { display: none; color: var(--coral-dark); font-weight: 700; }
.paid .counter-chip .cc-price { display: inline; }
.counter-chip.has .cc-price { color: var(--mango); }
.step-note.paid { color: var(--coral-dark); font-weight: 500; }

.prep-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 8px 0; }
.prep-name { font-weight: 700; min-width: 150px; }

.qty-label { font-weight: 700; font-size: 0.92rem; }
.qty-sm button { width: 34px; height: 34px; font-size: 1.05rem; }
.qty-sm output { min-width: 2.2ch; font-size: 0.95rem; }
.ci-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; margin-top: 6px; }

.btn-sm { padding: 8px 18px; font-size: 0.92rem; }
.extra-list { list-style: none; margin: 0; padding: 0; }
.extra-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 12px 0;
  border-bottom: 1px dashed rgba(16,48,47,0.14);
}
.extra-row:last-child { border-bottom: 0; }
.extra-info { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.extra-info small { color: var(--ink-soft); }
.extra-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-left: auto; }
.extra-controls select {
  font: inherit;
  font-size: 0.92rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid rgba(16,48,47,0.2);
  border-radius: 999px;
  padding: 8px 14px;
  max-width: 100%;
}
.extra-controls .btn-sm { min-width: 84px; justify-content: center; }
.extra-choices { flex-basis: 100%; display: grid; gap: 8px; }
.choice-group { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.choice-label { font-size: 0.85rem; font-weight: 700; margin-right: 4px; }
.choice-label small { font-weight: 400; color: var(--ink-soft); }
.choice-group .pick > span { padding: 5px 12px; font-size: 0.86rem; }

/* Sauce dropdowns on sides */
.choice-group select,
.multi-select summary {
  font: inherit;
  font-size: 0.88rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid rgba(16,48,47,0.2);
  border-radius: 999px;
  padding: 6px 14px;
  max-width: 100%;
  cursor: pointer;
}
/* The list opens under the whole row (not just the button), so it never runs off a phone screen */
.choice-group { position: relative; }
.multi-select { max-width: 100%; }
.multi-select summary {
  list-style: none;
  display: block;
  position: relative;
  padding-right: 34px;
  min-width: 170px;
  max-width: 280px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.multi-select summary::-webkit-details-marker { display: none; }
.multi-select summary::after { content: "\25BE"; position: absolute; right: 14px; top: 50%; transform: translateY(-50%); }
.multi-select[open] summary, .choice-group select:focus { border-color: var(--ink); }
.multi-select.has summary { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.multi-select summary:focus-visible { outline: 3px solid var(--mango); outline-offset: 2px; }
.ms-panel {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  left: 0;
  width: 300px;
  max-width: 100%;
  max-height: 320px;
  overflow-y: auto;
  display: grid;
  gap: 2px;
  padding: 8px;
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(16,48,47,0.2);
}
.ms-option { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; cursor: pointer; font-size: 0.92rem; }
.ms-option:hover { background: var(--cream); }
.ms-option input { width: 18px; height: 18px; flex: none; accent-color: var(--coral); }
.ms-done { position: sticky; bottom: 0; margin-top: 6px; justify-content: center; }
.ms-hint { margin: 2px 10px 6px; font-size: 0.82rem; color: var(--ink-soft); }
.ms-option:has(input:disabled) { opacity: 0.45; cursor: not-allowed; }
.ms-summary { display: block; overflow: hidden; text-overflow: ellipsis; }
/* Locked choices (kids topping limit, pickup times too soon while busy) */
.pick input:disabled + span { opacity: 0.4; cursor: not-allowed; }
.pick:has(input:disabled) { cursor: not-allowed; }

/* Phone + pickup time */
.field-msg { font-size: 0.82rem; color: var(--ink-soft); margin: 0; }
.field-msg.error { color: var(--chili); font-weight: 500; }
.field input[aria-invalid="true"] { border-color: var(--chili); }
.pickup-time, .tip-choice { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; min-width: 0; }
.pickup-time legend, .tip-choice legend { font-weight: 700; font-size: 0.92rem; padding: 0; margin-bottom: 6px; }
.pick-grid.pickup-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pick-grid.tip-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.pickup-grid .pick-card > span, .tip-grid .pick-card > span { padding: 9px 6px; }
.pickup-grid .pick-card small, .tip-grid .pick-card small { font-size: 0.78rem; }

/* Apple Pay / Google Pay */
.wallets { display: grid; gap: 10px; }
.wallets.not-ready { opacity: 0.5; pointer-events: none; }
.google-pay-button { height: 48px; }
.apple-pay-button {
  height: 48px;
  cursor: pointer;
  -webkit-appearance: -apple-pay-button;
  -apple-pay-button-type: plain;
  -apple-pay-button-style: black;
  border-radius: 999px;
}
.or-card { display: flex; align-items: center; gap: 10px; margin: 4px 0 0; font-size: 0.82rem; color: var(--ink-soft); }
.or-card::before, .or-card::after { content: ""; flex: 1; border-top: 1px solid rgba(16,48,47,0.15); }
.busy-notice {
  margin: 0;
  padding: 10px 14px;
  border-radius: 12px;
  background: #fff4dc;
  border-left: 4px solid var(--mango);
  font-size: 0.9rem;
  font-weight: 500;
}
.confirm-pickup { font-size: 1.15rem; font-weight: 700; color: var(--sea); margin-bottom: 0.4em; }
.prep-name small { color: var(--ink-soft); font-weight: 400; }

/* ---------- Order page sidebar ---------- */
.order-page .wrap { max-width: 1320px; }
/* min-width: 0 lets the tab row scroll inside the page instead of widening it */
.cat-nav { position: sticky; top: 96px; min-width: 0; }
.cat-nav ul {
  list-style: none;
  margin: 0;
  padding: 8px;
  display: grid;
  gap: 4px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.cat-btn {
  width: 100%;
  display: grid;
  gap: 2px;
  text-align: left;
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.cat-btn strong { font-size: 1rem; line-height: 1.2; }
.cat-btn small { font-size: 0.82rem; color: var(--ink-soft); }
.cat-btn:hover { background: var(--cream); }
.cat-btn[aria-current="true"] { background: var(--ink); color: var(--cream); }
.cat-btn[aria-current="true"] small { color: rgba(251,246,238,0.75); }
.cat-btn:focus-visible { outline: 3px solid var(--mango); outline-offset: 2px; }
.extras h3 { margin-bottom: 0.2em; }
.builder h4:first-child { margin-top: 0; }

.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.pick-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pick { position: relative; display: inline-flex; cursor: pointer; }
.pick input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.pick > span,
.counter-chip {
  border: 1px solid rgba(16,48,47,0.12);
  background: var(--cream);
  border-radius: 999px;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.pick > span {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.3em;
  line-height: 1.2;
  padding: 8px 14px;
  font-size: 0.93rem;
  font-weight: 500;
}
.pick small, .counter-chip small { color: var(--ink-soft); font-weight: 400; }
.pick:hover > span { border-color: rgba(16,48,47,0.4); }
.pick input:checked + span,
.counter-chip.has { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.pick input:checked + span small,
.counter-chip.has small { color: rgba(251,246,238,0.75); }
.pick input:focus-visible + span,
.counter-chip button:focus-visible,
.qty button:focus-visible,
.ci-remove:focus-visible { outline: 3px solid var(--mango); outline-offset: 2px; }

.pick-card { display: flex; }
.pick-card > span {
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  flex-wrap: nowrap;
  gap: 2px;
  border-radius: 14px;
  padding: 14px 16px;
}
.pick-card strong { font-size: 1rem; }
.pick-card em { font-style: normal; font-weight: 700; color: var(--coral); margin-top: 4px; }
.pick-card input:checked + span em { color: var(--mango); }

.counter-chip { display: inline-flex; align-items: stretch; overflow: hidden; }
.counter-chip button {
  font: inherit;
  font-size: 0.93rem;
  font-weight: 500;
  line-height: 1.2;
  color: inherit;
  background: none;
  border: 0;
  padding: 8px 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.3em;
  text-align: left;
}
.counter-chip:not(.has):hover { border-color: rgba(16,48,47,0.4); }
.counter-chip button:disabled { opacity: 0.4; cursor: not-allowed; }
.counter-chip .cc-remove { display: none; font-weight: 700; font-size: 1.1rem; padding: 0 14px; border-left: 1px solid rgba(251,246,238,0.25); }
.counter-chip.has .cc-remove { display: inline-flex; }
.cc-count {
  display: none;
  place-items: center;
  min-width: 1.5em;
  height: 1.5em;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--mango);
  color: var(--ink);
  font-size: 0.78rem;
}
.counter-chip.has .cc-count { display: inline-grid; }

.add-step { display: grid; gap: 16px; }
.add-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.add-btn { flex: 1 1 220px; justify-content: center; }
.qty {
  display: inline-flex;
  align-items: center;
  background: var(--white);
  border: 1px solid rgba(16,48,47,0.2);
  border-radius: 999px;
}
.qty button { width: 44px; height: 46px; border: 0; background: none; font-size: 1.25rem; color: inherit; cursor: pointer; border-radius: 999px; }
.qty button:disabled { opacity: 0.35; cursor: not-allowed; }
.qty output { min-width: 2ch; text-align: center; font-weight: 700; }

.field { display: grid; gap: 6px; }
.field > span { font-weight: 700; font-size: 0.92rem; }
.field small { font-weight: 400; color: var(--ink-soft); }
.field input, .field textarea {
  font: inherit;
  width: 100%;
  padding: 12px 14px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid rgba(16,48,47,0.2);
  border-radius: 12px;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { outline: 3px solid rgba(243,178,60,0.6); border-color: var(--ink); }

.form-msg { margin: 0; font-weight: 500; }
.form-msg.error { color: var(--chili); }
.form-msg.ok { color: var(--sea); }
#page-error { margin-bottom: 24px; }
.hours-notice {
  margin: 0 0 24px;
  padding: 12px 18px;
  border-radius: 12px;
  border-left: 4px solid var(--sea);
  background: var(--white);
  box-shadow: 0 4px 14px rgba(16, 48, 47, 0.06);
  font-weight: 500;
}
.hours-notice.closed { border-left-color: var(--chili); background: #fdeeea; }

.order-panel {
  position: sticky;
  top: 96px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 24px;
}
.order-panel h2 { font-size: 1.7rem; }
.order-panel h3 { font-size: 1.15rem; margin: 8px 0 0; }
.cart-empty { color: var(--ink-soft); }
.cart-list { list-style: none; margin: 0; padding: 0; }
.cart-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 12px;
  padding: 12px 0;
  border-bottom: 1px dashed rgba(16,48,47,0.14);
}
.ci-title { font-weight: 700; }
.ci-price { font-weight: 700; }
.ci-detail { grid-column: 1 / -1; font-size: 0.88rem; color: var(--ink-soft); line-height: 1.45; }
.ci-remove {
  grid-column: 1 / -1;
  justify-self: start;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--sea);
  background: none;
  border: 0;
  padding: 2px 0;
  cursor: pointer;
  text-decoration: underline;
}
.totals { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; margin: 14px 0 22px; }
.totals dt { color: var(--ink-soft); }
.totals dd { margin: 0; text-align: right; font-weight: 500; }
.totals .grand { color: var(--ink); font-weight: 700; font-size: 1.15rem; padding-top: 8px; margin-top: 4px; border-top: 1px solid rgba(16,48,47,0.12); }
.checkout-form { display: grid; gap: 14px; }
#card-container { min-height: 90px; }
.turnstile-box { min-height: 65px; max-width: 100%; overflow: hidden; }
.pay-btn { width: 100%; justify-content: center; font-size: 1.05rem; }
.secure-note { font-size: 0.8rem; color: var(--ink-soft); text-align: center; margin: 0; }

.order-bar {
  position: fixed;
  left: 16px; right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  display: none;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 22px;
  border-radius: 999px;
  background: var(--coral);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow);
}

.confirmation { padding-block: clamp(48px, 7vw, 88px); }
.confirm-card {
  max-width: 640px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(28px, 5vw, 48px);
}
.confirm-card h1 { font-size: clamp(2rem, 5vw, 3rem); }
.confirm-card h1:focus { outline: none; }
.confirm-check {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--sea);
  color: var(--white);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 18px;
}
.confirm-meta { font-size: 0.85rem; color: var(--ink-soft); word-break: break-all; }
.confirm-help { margin: 24px 0 0; color: var(--ink-soft); }

@media (max-width: 1000px) and (min-width: 821px) {
  .nav-links { gap: 18px; }
}
/* Narrower screens: the sidebar becomes a sticky row of tabs above the menu */
@media (max-width: 1100px) {
  .order-layout { grid-template-columns: minmax(0, 1fr) 340px; }
  .cat-nav {
    grid-column: 1 / -1;
    top: 72px;
    z-index: 30;
    margin: -10px -20px 0;
    padding: 10px 20px;
    background: var(--cream);
    border-bottom: 1px solid rgba(16,48,47,0.08);
  }
  .cat-nav ul {
    display: flex;
    gap: 8px;
    padding: 0;
    overflow-x: auto;
    background: none;
    box-shadow: none;
    border-radius: 0;
    scrollbar-width: none;
  }
  .cat-btn {
    width: auto;
    white-space: nowrap;
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--white);
    box-shadow: 0 2px 8px rgba(16,48,47,0.06);
  }
  .cat-btn small { display: none; }
  .order-panel { top: 140px; }
}
@media (max-width: 900px) {
  .order-layout { grid-template-columns: minmax(0, 1fr); }
  .order-panel { position: static; }
  .order-bar { display: flex; }
  .order-page main { padding-bottom: 72px; }
}
/* Phones: Add stays beside the item name; size picker and add-ons go underneath */
@media (max-width: 600px) {
  .order-page .page-head { padding-block: 28px 20px; }
  .extra-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 12px; }
  .extra-controls { display: contents; }
  .extra-controls .btn-sm { grid-column: 2; grid-row: 1; }
  .extra-controls select { grid-column: 1 / -1; grid-row: 2; justify-self: start; }
  .extra-choices { grid-column: 1 / -1; }
  .prep-name { min-width: 0; flex-basis: 100%; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  /* 5 steps: 3 on top, 2 below, no empty gap */
  .steps { grid-template-columns: repeat(6, 1fr); }
  .steps .step:nth-child(-n+3) { grid-column: span 2; }
  .steps .step:nth-child(n+4) { grid-column: span 3; }
  .cards.four { grid-template-columns: repeat(2, 1fr); }
  .cards, .visit-grid, .values { gap: 18px; }
}
@media (max-width: 700px) {
  .cards, .visit-grid, .values { grid-template-columns: 1fr; }
  .map-frame { height: 240px; }
  .card .img-slot { aspect-ratio: 16 / 10; }
}
@media (max-width: 820px) {
  .menu-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid rgba(16,48,47,0.1);
    padding: 8px 20px 20px;
  }
  .nav-links.open { display: flex; }
  .nav-links li a:not(.btn) { display: block; padding: 12px 0; }
  .nav-links .btn { justify-content: center; margin-top: 8px; }
  .hero-grid, .split, .build-grid, .sides-grid, .two-col, .drinks-split { grid-template-columns: 1fr; }
  .drinks-photo { aspect-ratio: 4 / 3; }
  .sides-grid { gap: 0; }
  .hero-photo { aspect-ratio: 16 / 10; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .steps, .cards.four { grid-template-columns: 1fr; }
  .steps .step:nth-child(n) { grid-column: auto; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .hero-photo { aspect-ratio: 4 / 3; }
  .logo { font-size: 1.25rem; }

  /* Buttons share a row and fill the width */
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; padding: 13px 18px; }

  /* Steps: number sits beside the heading to save space */
  .steps { gap: 12px; margin-top: 32px; }
  .step {
    display: grid;
    grid-template-columns: 38px 1fr;
    column-gap: 14px;
    padding: 18px;
  }
  .step::before { grid-row: span 2; margin-bottom: 0; }
  .step h3 { margin-bottom: 0.2em; }

  /* Cooked bowls: compact rows with a small photo on the left */
  .cards.four .card { flex-direction: row; align-items: stretch; }
  .cards.four .img-slot { aspect-ratio: auto; width: 120px; min-height: 100px; flex: none; }
  .cards.four .img-slot.empty::after { content: "images/" attr(data-file); font-size: 0.7rem; word-break: break-all; }
  .cards.four .card-body { justify-content: center; padding: 16px 18px; }
  .cards.four .card-top { flex-direction: column; gap: 0; }
  .cards.four h3 { font-size: 1.15rem; }

  /* Menu section buttons wrap instead of running off the edge */
  .menu-tabs .wrap { flex-wrap: wrap; justify-content: center; gap: 6px; padding-block: 10px; }
  .menu-tabs a { font-size: 0.82rem; padding: 6px 12px; }
  html { scroll-padding-top: 170px; }

  .build-step, .info-card, .value { padding: 22px 20px; }
  .sides-grid { padding: 8px 20px; }
  .legend { padding: 16px 18px; gap: 8px 18px; }
  .price-list li { flex-wrap: wrap; column-gap: 8px; row-gap: 0; }
  .price-list .name, .price-list .sub { white-space: nowrap; }

  .social-row { gap: 10px; }
  .social-row .social { padding: 8px 14px 8px 10px; }
}
