/* styles.css
   Pattern: bordered cards, pill buttons, photo headers, bottom tab bar + sheet on phones,
   transparent top bar on desktop.
   Every color is derived from --brand, which config.js sets (themeColor),
   so rebranding a client is one line in config.js. */

/* ---------- Design tokens ---------- */
:root {
  --brand: #d9480f;                                          /* replaced by config.js */
  --brand-deep: color-mix(in srgb, var(--brand) 78%, #000);  /* darker brand: prices, labels */
  --ink: color-mix(in srgb, var(--brand) 22%, #1d120b);      /* dark panels, dark buttons */
  --ink-hover: color-mix(in srgb, var(--ink) 75%, var(--brand));
  --sand: color-mix(in srgb, var(--brand) 14%, #fff);        /* soft tint: borders, placeholders */
  --glow: color-mix(in srgb, var(--brand) 55%, #fff);        /* light brand: accents on dark */

  --bg: #faf7f2;
  --surface: #ffffff;
  --text: #2b2118;
  --text-soft: #6f6256;

  --font: "Montserrat", "Avenir Next", "Century Gothic", system-ui, sans-serif;
  --fs-sm: .875rem; --fs-base: 1rem; --fs-lg: 1.25rem; --fs-xl: 1.6rem;
  --fs-hero: clamp(2.1rem, 6vw, 3.6rem);

  --radius-sm: 12px; --radius: 24px; --radius-pill: 999px;
  --space-1: .5rem; --space-2: 1rem; --space-3: 1.5rem; --space-4: 2.5rem; --space-5: 4rem;

  --tabbar-h: 64px;
  --topbar-h: 72px;
  --max: 1080px;
  --pad: max(5.5%, calc((100% - var(--max)) / 2));           /* side padding that also centers content */
  --shadow: 0 6px 20px rgba(29, 18, 11, .18);
}

/* Fallback for very old browsers that cannot mix colors */
@supports not (color: color-mix(in srgb, red, blue)) {
  :root {
    --brand-deep: #a93a0c; --ink: #3a2417; --ink-hover: #5a3220;
    --sand: #fbe6dc; --glow: #f0a483;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

/* The page is a column as tall as the screen: the footer sits at the bottom even on a short page,
   so no empty strip shows between the footer and the bottom tab bar on tall phones. */
.app { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.app[hidden] { display: none; }
.views { flex: 1 0 auto; }

[hidden] { display: none !important; }

a { color: inherit; }
button { font: inherit; }

:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }

.ic { width: 24px; height: 24px; fill: currentColor; fill-rule: evenodd; flex: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.muted { color: var(--text-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: inherit; font-weight: 700;
  padding: .9rem 1.5rem;
  border-radius: var(--radius-pill);
  border: 2px solid #fff;
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn:active { transform: scale(.97); }
.btn .ic { width: 20px; height: 20px; }
.btn-primary { background: #fff; color: var(--ink); }
.btn-primary:hover { background: var(--sand); border-color: var(--sand); }
.btn-ghost { background: transparent; color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-hover); border-color: var(--ink-hover); }

/* ---------- Splash ---------- */
.splash {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap:0; padding: 24px;
  background: #f2efe9;
  text-align: center;
  transition: opacity .35s ease;
}
.splash.leaving { opacity: 0; pointer-events: none; }
.splash-logo { width: min(80vw, 3400px); height: auto; max-height: 40vh; object-fit: contain; }
.splash-name { font-size: 1.6rem; font-weight: 800; padding-bottom: 20px;}

/* Opening animation: logo, name and button start invisible and are revealed one by one by app.js
   (it adds the class "show"). visibility:hidden also keeps the button untappable until it appears. */
.splash-logo, .splash-name, .splash .btn {
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .6s ease, transform .6s ease, visibility .6s;
}
.splash-logo.show, .splash-name.show, .splash .btn.show { opacity: 1; visibility: visible; transform: none; }

/* ---------- Screens ---------- */
.view { display: none; }
.view.active { display: block; }

/* ---------- Top bar ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--topbar-h);
  padding: 0 5.5%;
  display: flex; align-items: center; justify-content: center;
  background: transparent;
  z-index: 1000;
  transition: background .3s ease, box-shadow .3s ease;
}
.topbar.scrolled {
  background: color-mix(in srgb, var(--ink) 88%, transparent);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .25);
}
.nav-container { display: flex; align-items: center; justify-content: center; width: 100%; max-width: var(--max); }

.brand {
  display: flex; align-items: center; gap: .5rem;
  color: #fff; font-weight: 800; font-size: 1.15rem;
  text-decoration: none; text-shadow: 0 2px 4px rgba(0, 0, 0, .35);
}
.brand img { display: block; height: 44px; width: auto; }
.brand.has-logo span { display: none; }

.topnav { display: none; }

/* ---------- Bottom tab bar (phones) ---------- */
.bottom-bar {
  position: fixed; inset: auto 0 0 0; z-index: 1000;
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--surface);
  border-top: 2px solid var(--brand);
}
.bottom-bar a, .bottom-bar button {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font-size: .7rem; font-weight: 600;
  color: var(--text-soft);
  background: none; border: 0; text-decoration: none; cursor: pointer;
}
.bottom-bar [aria-current] { color: var(--brand-deep); }
.bottom-bar [aria-current] .ic { fill: var(--brand); }
.bottom-bar button[aria-expanded="true"] { color: var(--ink); }
.bottom-bar .ico { position: relative; display: inline-flex; }

.badge {
  display: inline-block;
  min-width: 18px; padding: 0 5px;
  border-radius: var(--radius-pill);
  background: var(--brand); color: #fff;
  font-size: .7rem; font-weight: 700; line-height: 18px; text-align: center;
}
.bottom-bar .badge { position: absolute; top: -6px; right: -12px; }

/* ---------- "More" bottom sheet ---------- */
.scrim { position: fixed; inset: 0; z-index: 1001; background: rgba(29, 18, 11, .5); }
.sheet {
  position: fixed; inset: auto 0 0 0; z-index: 1002;
  background: var(--surface);
  border-radius: var(--radius) var(--radius) 0 0;
  padding: var(--space-1) var(--space-3) calc(var(--space-3) + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column;
  animation: sheet-up .25s ease both;
}
.sheet-handle { width: 44px; height: 5px; border-radius: var(--radius-pill); background: var(--sand); margin: .4rem auto var(--space-1); }
.sheet-item {
  display: flex; align-items: center; gap: var(--space-2);
  padding: var(--space-2) 0;
  color: var(--text); font-weight: 600; text-decoration: none;
  border-bottom: 1px solid var(--sand);
}
.sheet-item:last-child { border-bottom: 0; }
.sheet-item .ic { width: 22px; height: 22px; color: var(--ink); }
.sheet-item[aria-current] { color: var(--brand-deep); }
.sheet-item[aria-current] .ic { fill: var(--brand); }
@keyframes sheet-up { from { transform: translateY(100%); } to { transform: none; } }

/* ---------- Photo headers ---------- */
.hero, .page-hero {
  color: #fff;
  background-color: var(--ink);
  background-image: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
  background-size: cover;
  background-position: center;
  padding: calc(var(--topbar-h) + 40px) var(--pad) 56px;
}
.hero { padding-top: calc(var(--topbar-h) + 64px); padding-bottom: 72px; }

/* When the owner has uploaded a photo (set from the admin panel) */
.hero.has-photo, .page-hero.has-photo {
  background-image:
    linear-gradient(to right, rgba(29, 18, 11, .85) 0%, rgba(29, 18, 11, .55) 40%, rgba(29, 18, 11, 0) 75%),
    var(--hero-img, none);
}

.hero h1, .page-hero h1 {
  font-size: var(--fs-hero); font-weight: 800; line-height: 1.08; letter-spacing: -.02em;
  color: #fff; text-shadow: 0 2px 4px rgba(0, 0, 0, .3);
}
.hero h1 { max-width: 16ch; margin-bottom: var(--space-2); }
.page-hero p { margin-top: var(--space-1); max-width: 40ch; opacity: .92; }

.hero-meta {
  font-size: var(--fs-sm); font-weight: 600; text-transform: uppercase; letter-spacing: .08em;
  margin: var(--space-3) 0 var(--space-2);
  color: color-mix(in srgb, #fff 85%, var(--brand));
}
.hero-sub { max-width: 46ch; margin-bottom: var(--space-4); color: rgba(255, 255, 255, .92); }
.hero-sub:empty { display: none; }

.cta-row { display: flex; gap: var(--space-2); flex-wrap: wrap; }

/* ---------- Sections ---------- */
.section { padding: var(--space-4) var(--pad) 0; }
.section-h { font-size: var(--fs-xl); font-weight: 800; letter-spacing: -.01em; margin-bottom: var(--space-3); }

.promos { display: grid; gap: var(--space-2); }
.promo {
  background: var(--sand);
  border-radius: var(--radius);
  overflow: hidden;                                  /* the photo (if any) follows the rounded corners */
}
.promo-body { padding: var(--space-2) var(--space-3); }
.promo-img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
/* One promotion only: a centered card instead of a half-empty row */
.promos.one { grid-template-columns: minmax(0, 520px); justify-content: center; text-align: center; }
.promo strong { display: block; color: var(--brand-deep); font-size: var(--fs-lg); font-weight: 800; }

/* ---------- Carousel (categories + reviews) ---------- */
.track-wrap { position: relative; }
.track {
  display: flex; gap: var(--space-2);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 2px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}
.track::-webkit-scrollbar { display: none; }

.car-arrow { display: none; }

.dots { display: flex; justify-content: center; gap: 8px; margin-top: var(--space-3); }
.dots:empty { display: none; }
.dot {
  position: relative; width: 8px; height: 8px; padding: 0; border: 0;
  border-radius: var(--radius-pill); background: var(--sand);
  cursor: pointer; transition: width .25s ease, background .25s ease;
}
.dot::after { content: ""; position: absolute; inset: -10px -4px; }
.dot.active { width: 24px; background: var(--brand); }

/* ---------- Category cards ---------- */
.cat-card {
  flex: 0 0 85%;
  scroll-snap-align: start;
  background: var(--surface);
  border: 2px solid var(--brand);
  border-radius: var(--radius);
  padding: var(--space-2);
  display: flex; flex-direction: column; gap: var(--space-2);
  text-align: center;
}
.cat-img {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  background: var(--sand) center / cover no-repeat;
  display: grid; place-items: center;
}
.cat-img .ic { width: 56px; height: 56px; color: var(--brand); opacity: .5; }
.cat-card h3 { font-size: var(--fs-base); font-weight: 700; line-height: 1.25; }
.cat-btn {
  margin-top: auto; align-self: center;
  padding: .55rem 1.4rem;
  border-radius: var(--radius-pill);
  border: 2px solid var(--ink); background: transparent; color: var(--ink);
  font-size: var(--fs-sm); font-weight: 700; cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.cat-btn:hover { background: var(--ink); color: #fff; }
.promo-btn { display: block; margin: var(--space-2) 0 0; }                  /* on a promotion card: under the text, left aligned (centered on a single card) */
.promos.one .promo-btn { margin-left: auto; margin-right: auto; }

/* ---------- Food cards (menu + featured) ---------- */
.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: var(--space-2); }

.menu-card {
  background: var(--surface);
  border: 2px solid var(--brand);
  border-radius: var(--radius);
  padding: var(--space-2);
  display: flex; flex-direction: column; gap: .5rem;
}
.menu-card.soldout { opacity: .65; }
.menu-img {
  position: relative; display: grid; place-items: center; overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  background: var(--sand);
  margin-bottom: .25rem;
}
.menu-img .ph { width: 44px; height: 44px; color: var(--brand); opacity: .45; }
.menu-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.menu-card h3 { font-size: var(--fs-base); font-weight: 700; line-height: 1.25; }
.menu-desc { font-size: var(--fs-sm); color: var(--text-soft); }
.menu-var {
  font: inherit; font-size: var(--fs-sm); font-weight: 600; color: var(--ink);
  padding: .5rem .75rem;
  border: 2px solid var(--sand); border-radius: var(--radius-sm); background: var(--surface);
}
.menu-foot {
  margin-top: auto; padding-top: .5rem;
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-1); flex-wrap: wrap;
}
.menu-price { font-size: var(--fs-lg); font-weight: 800; color: var(--brand-deep); }
.add-btn {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: var(--fs-sm); font-weight: 700;
  padding: .55rem 1.2rem;
  border-radius: var(--radius-pill);
  border: 2px solid var(--ink); background: var(--ink); color: #fff; cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.add-btn .ic { width: 16px; height: 16px; }
.add-btn:hover { background: var(--ink-hover); }
.add-btn:active { transform: scale(.96); }
.tag-soldout {
  font-size: .75rem; font-weight: 700;
  padding: .3rem .8rem; border-radius: var(--radius-pill);
  background: var(--ink); color: #fff;
}

/* ---------- Why us band ---------- */
.section-why { margin-top: var(--space-4); padding: var(--space-4) var(--pad); background: var(--brand); }
.section-why .section-h { color: #fff; }
.why-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-2); }
.why-card {
  background: var(--surface);
  border: 2px solid var(--brand-deep);
  border-radius: var(--radius);
  padding: var(--space-3);
  display: flex; flex-direction: column; gap: var(--space-1);
}
.why-num { font-size: 2.4rem; font-weight: 800; line-height: 1; color: var(--brand-deep); letter-spacing: -.03em; }
.why-num::after {
  content: ""; display: block; height: 4px; width: 0; margin-top: var(--space-1);
  border-radius: var(--radius-pill); background: var(--brand);
  transition: width .7s ease calc(var(--i, 0) * 120ms + 250ms);
}
.why-card.is-visible .why-num::after { width: 48px; }
.why-card h3 { font-size: var(--fs-lg); font-weight: 800; line-height: 1.2; }
.why-card p { font-size: var(--fs-sm); color: var(--text-soft); }

/* Scroll reveal (only active when JavaScript is running) */
.js .reveal {
  opacity: 0; transform: translateY(36px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1);
  transition-delay: calc(var(--i, 0) * 120ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Reviews ---------- */
.rev-rating {
  display: flex; align-items: center; flex-wrap: wrap; gap: .5rem;
  margin: calc(var(--space-2) * -1) 0 var(--space-3);
  color: var(--text-soft); font-size: var(--fs-sm);
}
.stars { display: inline-flex; gap: 2px; }
.stars .ic { width: 18px; height: 18px; color: var(--brand); }
.rev-card {
  flex: 0 0 85%;
  scroll-snap-align: start;
  background: var(--surface);
  border: 2px solid var(--brand);
  border-radius: var(--radius);
  padding: var(--space-3);
  display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-3);
}
.rev-card blockquote { line-height: 1.6; }
.rev-card blockquote::before {
  content: "\201C"; display: block;
  font-size: 3rem; line-height: .6; font-weight: 800; color: var(--brand);
  margin-bottom: var(--space-1);
}
.rev-card footer { font-weight: 700; color: var(--brand-deep); }

/* ---------- Call-to-action panel ---------- */
.cta-panel {
  background: var(--ink); color: #fff;
  border-radius: var(--radius);
  padding: var(--space-4) var(--space-3);
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.cta-panel h2 {
  font-size: clamp(1.7rem, 5vw, 2.8rem); font-weight: 800; line-height: 1.1; letter-spacing: -.02em;
  max-width: 18ch; margin-bottom: var(--space-2);
}
.cta-lead { font-size: var(--fs-lg); font-weight: 600; max-width: 40ch; margin-bottom: var(--space-1); color: var(--glow); }
.cta-text { max-width: 56ch; margin-bottom: var(--space-3); opacity: .9; }
.cta-lead:empty, .cta-text:empty, .cta-address:empty { display: none; }
.cta-panel .cta-row { justify-content: center; }
.cta-address { margin-top: var(--space-3); font-size: var(--fs-sm); opacity: .75; max-width: 40ch; }

/* ---------- Footer ---------- */
.footer {
  margin-top: var(--space-5);
  /* on phones the footer's own bottom padding also covers the space behind the fixed tab bar */
  padding: var(--space-3) 5.5% calc(var(--space-3) + var(--tabbar-h) + env(safe-area-inset-bottom, 0px));
  background: color-mix(in srgb, var(--ink) 92%, #fff);
  color: #fff; text-align: center; font-size: var(--fs-sm); line-height: 1.6;
}
.footer a { color: inherit; text-decoration: none; }
.footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-legal { display: none; }

/* ---------- Menu screen ---------- */
.menu-filter {
  position: sticky; top: var(--topbar-h); z-index: 900;
  background: var(--bg);
  padding: var(--space-2) var(--pad) var(--space-1);
  border-bottom: 2px solid var(--sand);
}
.menu-search {
  display: flex; align-items: center; gap: .6rem;
  background: var(--surface);
  border: 2px solid var(--brand); border-radius: var(--radius-pill);
  padding: 0 1rem;
}
.menu-search .ic { fill: var(--text-soft); }
.menu-search input {
  flex: 1; min-width: 0; border: 0; background: transparent; outline: none;
  font: inherit; color: var(--text); padding: .75rem 0;
}
.menu-search:focus-within { outline: 3px solid var(--brand); outline-offset: 2px; }

.chips-wrap { position: relative; }
.chips { display: flex; gap: .5rem; overflow-x: auto; padding: var(--space-1) 0; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips button {
  flex: 0 0 auto; white-space: nowrap;
  font-size: var(--fs-sm); font-weight: 700;
  padding: .5rem 1.1rem;
  border-radius: var(--radius-pill);
  border: 2px solid var(--sand); background: var(--surface); color: var(--ink); cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.chips button:hover { border-color: var(--brand); }
.chips button.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip-arrow { display: none; }

.menu-body { padding: var(--space-3) var(--pad) 0; }
.menu-cat { margin-bottom: var(--space-4); }
.menu-cat h2 {
  display: inline-block; font-size: var(--fs-xl); font-weight: 800; letter-spacing: -.01em;
  margin-bottom: var(--space-2); padding-bottom: .35rem; border-bottom: 4px solid var(--brand);
}
.menu-empty { text-align: center; padding: var(--space-4) var(--pad); color: var(--text-soft); }
.menu-note { padding: 0 var(--pad); font-size: var(--fs-sm); color: var(--text-soft); text-align: center; }

/* Floating order button */
.order-fab {
  position: fixed; left: 5.5%; right: 5.5%;
  bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px) + 12px);
  z-index: 950;
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-2);
  padding: .95rem 1.4rem;
  border-radius: var(--radius-pill);
  background: var(--ink); color: #fff;
  font-weight: 800; text-decoration: none; box-shadow: var(--shadow);
}
.order-fab:hover { background: var(--ink-hover); }
.fab-total { color: var(--glow); }

/* ---------- Order screen ---------- */
.order-body { max-width: 760px; margin: 0 auto; padding: var(--space-3) 5.5% 0; }

.order-empty { text-align: center; padding: var(--space-4) 0; display: flex; flex-direction: column; align-items: center; gap: .5rem; }
.empty-icon { width: 112px; height: 112px; border-radius: 50%; background: var(--sand); display: grid; place-items: center; margin-bottom: var(--space-1); }
.empty-icon .ic { width: 52px; height: 52px; color: var(--ink); }
.order-empty h2 { font-size: var(--fs-xl); font-weight: 800; }
.order-empty p { color: var(--text-soft); }
.order-empty .btn { margin-top: var(--space-2); }

.o-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); margin-bottom: var(--space-3); }
.o-item {
  display: grid; grid-template-columns: 72px 1fr auto; gap: var(--space-2); align-items: center;
  background: var(--surface); border: 2px solid var(--brand); border-radius: var(--radius); padding: var(--space-2);
}
.o-img { position: relative; display: grid; place-items: center; width: 72px; height: 72px; border-radius: var(--radius-sm); background: var(--sand); overflow: hidden; }
.o-img .ph { width: 30px; height: 30px; color: var(--brand); opacity: .45; }
.o-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.o-info h3 { font-size: var(--fs-base); font-weight: 700; line-height: 1.25; }
.o-var { font-size: var(--fs-sm); font-weight: 600; color: var(--brand-deep); }
.o-each { font-size: .8rem; color: var(--text-soft); margin-bottom: .4rem; }
.qty { display: inline-flex; align-items: center; border: 2px solid var(--ink); border-radius: var(--radius-pill); overflow: hidden; }
.qty button { width: 34px; height: 34px; border: 0; background: transparent; color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.qty button .ic { width: 16px; height: 16px; }
.qty button:hover { background: var(--sand); }
.q-val { min-width: 1.6rem; text-align: center; font-weight: 700; }
.o-right { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; align-self: stretch; gap: .5rem; }
.o-price { font-weight: 800; color: var(--brand-deep); white-space: nowrap; }
.o-remove { width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: var(--text-soft); cursor: pointer; display: grid; place-items: center; }
.o-remove .ic { width: 18px; height: 18px; }
.o-remove:hover { background: var(--sand); color: var(--ink); }

.o-card { background: var(--surface); border: 2px solid var(--sand); border-radius: var(--radius); padding: var(--space-3); margin-bottom: var(--space-2); }
.o-card h2 { font-size: var(--fs-lg); font-weight: 800; margin-bottom: var(--space-2); }
.otype { border: 0; padding: 0; margin: 0 0 var(--space-2); display: grid; gap: .5rem; }
.radio {
  display: flex; align-items: center; gap: .7rem;
  padding: .8rem 1rem;
  border: 2px solid var(--sand); border-radius: var(--radius-sm);
  font-weight: 700; cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.radio input { accent-color: var(--brand); width: 18px; height: 18px; margin: 0; }
.radio:has(input:checked) { border-color: var(--brand); background: var(--sand); }
.field { margin-bottom: var(--space-2); }
.field label { display: block; margin-bottom: .35rem; font-size: .75rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--brand-deep); }
.field input {
  width: 100%; font: inherit; color: var(--text);
  padding: .85rem 1rem;
  border: 2px solid var(--sand); border-radius: var(--radius-sm); background: var(--surface);
}
.field input:focus { outline: none; border-color: var(--brand); }
.o-saved { font-size: .8rem; color: var(--text-soft); }

.o-summary { background: var(--sand); border-color: var(--sand); }
.o-row { display: flex; justify-content: space-between; gap: var(--space-2); font-weight: 600; }
.o-note { margin: .5rem 0 var(--space-2); padding-bottom: var(--space-2); border-bottom: 1px solid color-mix(in srgb, var(--brand) 25%, #fff); font-size: .8rem; font-style: italic; color: var(--text-soft); }
.o-total { font-size: var(--fs-xl); font-weight: 800; color: var(--brand-deep); }

.o-error { margin: var(--space-2) 0; padding: .8rem 1rem; border-radius: var(--radius-sm); background: #fdecea; color: #a12a1a; font-weight: 600; font-size: var(--fs-sm); }
.o-send { display: grid; gap: .75rem; margin-top: var(--space-2); }
.send-btn {
  display: flex; align-items: center; justify-content: center; gap: .6rem;
  font-weight: 800; padding: 1rem 1.4rem; border: 0; border-radius: var(--radius-pill);
  color: #fff; cursor: pointer;
  transition: transform .15s ease, filter .15s ease;
}
.send-btn .ic { width: 22px; height: 22px; }
.send-btn:hover { filter: brightness(1.08); }
.send-btn:active { transform: scale(.98); }
.send-fb { background: #0a7cff; }
.send-sms { background: var(--ink); }
.o-copied { margin-top: var(--space-2); padding: .8rem 1rem; border-radius: var(--radius-sm); background: var(--sand); color: var(--ink); font-weight: 600; font-size: var(--fs-sm); text-align: center; }
.o-clear {
  display: block; margin: var(--space-3) auto 0;
  background: none; border: 0;
  font-size: var(--fs-sm); font-weight: 700; color: var(--text-soft);
  text-decoration: underline; text-underline-offset: 4px; cursor: pointer;
}
.o-clear:hover { color: var(--brand-deep); }


/* ---------- Payment + Contact cards ---------- */
.c-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: var(--space-2); }
.c-card {
  background: var(--surface);
  border: 2px solid var(--brand); border-radius: var(--radius);
  padding: var(--space-3);
  display: flex; flex-direction: column; align-items: center; gap: .6rem;
  transition: border-color .15s ease;
}
.c-card:hover { border-color: var(--ink); }
.c-icon { width: 48px; height: 48px; border-radius: 50%; background: var(--sand); display: grid; place-items: center; }
.c-icon .ic { color: var(--ink); }
.c-card h3 { font-size: var(--fs-lg); font-weight: 800; line-height: 1.2; }
.c-card p { font-size: var(--fs-sm); color: var(--text-soft); }
.c-card p:first-of-type { flex: 1; }
.c-card .btn { margin-top: .4rem; }

/* Payment: QR code / photo, extra buttons */
.c-card .qr {
  display: block; width: 100%; max-width: 260px; padding: 8px; margin-top: .2rem;
  background: #fff; border: 2px solid var(--sand); border-radius: var(--radius-sm); cursor: pointer;
}
.c-card .qr img { display: block; width: 100%; height: auto; border-radius: 6px; }
.c-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .4rem; }
.c-actions .btn { margin-top: 0; }
.btn-sm { padding: .55rem 1.1rem; font-size: var(--fs-sm); }
.btn-line { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }

.qr-modal { width: min(100%, 460px); text-align: center; display: flex; flex-direction: column; align-items: center; gap: var(--space-2); }
.qr-big { width: 100%; max-height: 70vh; object-fit: contain; background: #fff; border-radius: var(--radius-sm); }

.hours { list-style: none; padding: 0; background: var(--surface); border: 2px solid var(--sand); border-radius: var(--radius); }
.hours li { display: flex; justify-content: space-between; gap: var(--space-2); padding: .8rem var(--space-3); border-bottom: 1px solid var(--sand); }
.hours li:last-child { border-bottom: 0; }
.hours li span:first-child { font-weight: 700; }

/* ---------- Install page ---------- */
.install-body { max-width: 760px; margin: 0 auto; padding: var(--space-3) 5.5% 0; }
.install-tabs { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: var(--space-2); }
.install-tabs button {
  flex: 1 1 auto; white-space: nowrap;
  font-size: var(--fs-sm); font-weight: 700;
  padding: .6rem 1.1rem;
  border-radius: var(--radius-pill);
  border: 2px solid var(--sand); background: var(--surface); color: var(--ink); cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.install-tabs button:hover { border-color: var(--brand); }
.install-tabs button.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.install-warn {
  display: flex; flex-direction: column; align-items: flex-start; gap: .6rem;
  margin-bottom: var(--space-2); padding: .9rem 1rem;
  border-radius: var(--radius-sm); background: var(--sand); color: var(--ink);
  font-weight: 600; font-size: var(--fs-sm);
}
.install-btn { margin-bottom: var(--space-2); }
.install-steps { list-style: none; padding: 0; counter-reset: step; display: grid; gap: var(--space-2); margin-bottom: var(--space-2); }
.install-steps li { counter-increment: step; display: flex; gap: .8rem; align-items: flex-start; }
.install-steps li::before {
  content: counter(step);
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink); color: #fff; font-weight: 800; font-size: var(--fs-sm);
}
.install-steps li > span { padding-top: 3px; }
.install-done p { color: var(--text-soft); }

/* ---------- Terms + Privacy ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: var(--space-4) 5.5% 0; }
.legal p { line-height: 1.7; margin-bottom: var(--space-2); }

/* ---------- Toast + modal ---------- */
.toast {
  position: fixed; left: 50%; z-index: 3500;
  bottom: calc(var(--tabbar-h) + 84px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%) translateY(20px);
  max-width: 90vw; padding: .65rem 1.2rem;
  border-radius: var(--radius-pill);
  background: var(--ink); color: #fff; font-size: var(--fs-sm); font-weight: 600;
  opacity: 0; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

body.modal-open { overflow: hidden; }
.modal-backdrop { position: fixed; inset: 0; z-index: 3000; background: rgba(29, 18, 11, .55); display: grid; place-items: center; padding: var(--space-3); animation: fade .2s ease both; }
.modal { width: min(100%, 430px); background: var(--surface); border: 2px solid var(--brand); border-radius: var(--radius); padding: var(--space-3); box-shadow: var(--shadow); animation: pop .25s ease both; }
.modal h2 { font-size: var(--fs-lg); font-weight: 800; line-height: 1.2; margin-bottom: .6rem; }
.modal-text { color: var(--text-soft); margin-bottom: var(--space-3); }
.popup-modal { max-height: 90vh; overflow-y: auto; text-align: center; }
.popup-img { display: block; width: 100%; max-height: 240px; object-fit: cover; border-radius: var(--radius-sm); margin-bottom: var(--space-2); }
.popup-tag { display: inline-block; margin-bottom: .5rem; padding: .15rem .7rem; border-radius: var(--radius-pill); background: var(--brand); color: #fff; font-size: var(--fs-sm); font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.popup-text { white-space: pre-line; }
.modal-actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }
.m-btn { font-weight: 700; padding: .7rem 1.5rem; border-radius: var(--radius-pill); border: 2px solid var(--ink); cursor: pointer; transition: background .15s ease, color .15s ease; }
.m-primary { background: var(--ink); color: #fff; }
.m-primary:hover { background: var(--ink-hover); }
.m-ghost { background: transparent; color: var(--ink); }
.m-ghost:hover { background: var(--sand); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }

/* ---------- Tablet / desktop ---------- */
@media (min-width: 600px) {
  .o-send { grid-template-columns: 1fr 1fr; }
  .o-item { grid-template-columns: 96px 1fr auto; }
  .o-img { width: 96px; height: 96px; }
}

@media (min-width: 768px) {
  :root { --topbar-h: 80px; }

  .bottom-bar, .sheet, .scrim { display: none !important; }

  .topbar { padding: 0 5.5%; }
  .nav-container { justify-content: space-between; }
  .brand img { height: 48px; }
  .topnav { display: flex; gap: var(--space-3); }
  .topnav a {
    color: #fff; font-weight: 600; text-decoration: none;
    padding: .4rem 0; border-bottom: 3px solid transparent;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .35);
  }
  .topnav a:hover, .topnav a[aria-current] { border-color: var(--glow); color: var(--glow); }
  .topnav .badge { margin-left: .25rem; }

  .footer-legal { display: inline; }
  .footer { margin-top: var(--space-5); padding-bottom: var(--space-3); }

  /* carousels */
  .track-wrap { padding-inline: 64px; }
  .cat-card { flex-basis: calc((100% - 3 * var(--space-2)) / 3.4); }
  .rev-card { flex-basis: calc((100% - 2 * var(--space-2)) / 2.4); }
  .car-arrow {
    display: grid; place-items: center;
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
    width: 44px; height: 44px; border-radius: 50%;
    border: 2px solid var(--brand); background: var(--surface); color: var(--ink); cursor: pointer;
    transition: background .15s ease, color .15s ease;
  }
  .car-prev { left: 4px; }
  .car-next { right: 4px; }
  .car-arrow:hover:not(:disabled) { background: var(--brand); color: #fff; }
  .car-arrow:disabled { opacity: .3; cursor: default; }

  .why-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
  .promos { grid-template-columns: repeat(2, 1fr); }
  .cta-panel { padding: var(--space-5) var(--space-4); }

  /* menu filter arrows */
  .chips-wrap { padding-inline: 48px; }
  .chip-arrow {
    display: grid; place-items: center;
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 36px; height: 36px; border-radius: 50%;
    border: 2px solid var(--brand); background: var(--surface); color: var(--ink); cursor: pointer;
    transition: background .15s ease, color .15s ease;
  }
  .chip-arrow .ic { width: 20px; height: 20px; }
  .chip-prev { left: 0; }
  .chip-next { right: 0; }
  .chip-arrow:hover:not(:disabled) { background: var(--brand); color: #fff; }
  .chip-arrow:disabled { opacity: .3; cursor: default; }

  .order-fab { left: auto; right: 24px; bottom: 24px; min-width: 260px; }
  .toast { bottom: 96px; }
}

@media (min-width: 1100px) {
  .why-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .why-num::after { width: 48px; transition: none; }
  .splash-logo, .splash-name, .splash .btn { transition: none; transform: none; }
}