/* Restaurant website (customer side) — modern food-ordering UI (Uber Eats / Deliverect style).
   Light, warm theme; the restaurant's brand color drives --accent. Mobile first: list rows + bottom cart bar;
   >= 1024 px: photo grid + sticky cart column. No external fonts (strict CSP): system UI stack with heavy weights. */
:root {
  --accent: #a3261b; --accent-ink: #fff; --accent-fg: var(--accent); --accent-soft: color-mix(in srgb, var(--accent) 9%, #fff); --accent-line: color-mix(in srgb, var(--accent) 28%, #fff);
  --bg: #f6f2ec; --surface: #fff; --ink: #1d1a17; --ink2: #3a342e; --muted: #6a6158; --line: #e9e2d9; --line2: #f1ece5;
  --ok: #157f3b; --ok-soft: #e7f5ec; --bad: #b42318; --bad-soft: #fdecea; --warn: #8a5a00; --warn-soft: #fff4d6;
  --r: 18px; --r-sm: 12px; --shadow: 0 1px 2px rgba(29,26,23,.06), 0 6px 20px rgba(29,26,23,.06); --shadow-lg: 0 18px 50px rgba(29,26,23,.18);
  --bar: 64px; --top: 64px; color-scheme: light; --badge-bg: #fff; --badge-fg: var(--accent-fg);
  font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body.sf { background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }
.muted { color: var(--muted); }
svg.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
svg.i.sm { width: 16px; height: 16px; }
svg.i.lg { width: 24px; height: 24px; }
h1, h2, h3 { letter-spacing: -.02em; line-height: 1.12; margin: 0; }

/* demo / notice ribbon */
.ribbon { background: var(--warn-soft); color: var(--warn); font-size: .82rem; font-weight: 600; text-align: center; padding: 6px 12px; border-bottom: 1px solid #f1dfae; }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.tb-in { max-width: 1280px; margin: 0 auto; height: var(--bar); padding: 0 16px; display: flex; align-items: center; gap: 14px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.logo { width: 44px; height: 44px; border-radius: 50%; flex: none; background: var(--accent-soft) center/cover no-repeat; border: 2px solid var(--accent-line);
  display: grid; place-items: center; color: var(--accent-fg); font-weight: 900; font-size: 18px; overflow: hidden; }
.brand-name { font-weight: 850; font-size: 1.15rem; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-mid { display: none; align-items: center; gap: 8px; margin-left: 10px; padding-left: 16px; border-left: 1px solid var(--line); }
.tb-chip { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 999px; font-weight: 650; font-size: .95rem; color: var(--ink2); }
.tb-chip:hover { background: var(--line2); }
.seg { display: inline-flex; background: var(--line2); border-radius: 999px; padding: 4px; gap: 2px; }
.seg button { height: 34px; padding: 0 14px; border-radius: 999px; font-weight: 650; font-size: .92rem; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.seg button.on { background: var(--accent); color: var(--accent-ink); box-shadow: 0 2px 6px rgba(0,0,0,.22); font-weight: 750; }
.seg button.on::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.seg button:not(.on) { opacity: .85; }
.seg button:not(.on):hover { opacity: 1; color: var(--ink); }
.tb-cart { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px 0 14px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 750; }
.tb-cart .label { display: none; }
.tb-cart b { background: var(--badge-bg); color: var(--badge-fg); min-width: 26px; height: 26px; padding: 0 6px; border-radius: 13px; display: grid; place-items: center; font-size: .86rem; font-weight: 850; box-shadow: 0 0 0 2px color-mix(in srgb, var(--badge-bg) 35%, transparent); }
.tb-fulfil { display: flex; flex-direction: column; align-items: flex-start; text-align: left; min-width: 0; }
.tb-fulfil b { display: flex; align-items: center; gap: 4px; font-size: 1.02rem; font-weight: 800; white-space: nowrap; }
.tb-fulfil span { font-size: .85rem; color: var(--muted); white-space: nowrap; }
.only-mobile { display: flex; }
.only-desk { display: none; }

/* ---------- layout ---------- */
.wrap { max-width: 1280px; margin: 0 auto; padding: 16px 16px 120px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start; }
.col-side { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; border-radius: 22px; overflow: hidden; min-height: 210px; background: linear-gradient(135deg, var(--accent), #1d1a17); box-shadow: var(--shadow); isolation: isolate; }
.hero img.cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10,8,6,.78) 0%, rgba(10,8,6,.45) 45%, rgba(10,8,6,.05) 100%), linear-gradient(0deg, rgba(10,8,6,.55), transparent 55%); }
.hero-in { position: relative; padding: 26px 22px 22px; min-height: 210px; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; }
.hero h1 { font-size: clamp(2rem, 6vw, 3.6rem); font-weight: 900; text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.hero .sub { margin-top: 6px; font-size: 1.05rem; font-weight: 600; opacity: .92; }
.hero .chips-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; font-size: .88rem; font-weight: 700; background: rgba(255,255,255,.16); color: #fff; backdrop-filter: blur(6px); }
.pill.open { background: #e7f5ec; color: var(--ok); }
.pill.closed { background: #fdecea; color: var(--bad); }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

/* info strip under the hero */
.info { display: grid; grid-template-columns: 1fr; gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); margin-top: 14px; box-shadow: var(--shadow); overflow: hidden; }
.info-item { display: flex; gap: 12px; align-items: center; padding: 14px 16px; text-align: left; width: 100%; }
.info-item + .info-item { border-top: 1px solid var(--line2); }
.info-ico { width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-fg); display: grid; place-items: center; flex: none; }
.info-item .t { min-width: 0; flex: 1; }
.info-item .t > b { display: block; font-weight: 750; font-size: .98rem; }
.info-item .t > span { display: block; color: var(--muted); font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.info-item .go { color: var(--muted); }
.mini-actions { display: flex; gap: 8px; }
.btn-soft { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 999px; background: var(--line2); font-weight: 700; font-size: .88rem; text-decoration: none; color: var(--ink2); }
.btn-soft:hover { background: var(--line); }
.btn-soft.wa { background: #dcfce7; color: #166534; }

.alert { margin-top: 14px; border-radius: var(--r); padding: 14px 16px; font-weight: 650; display: flex; gap: 10px; align-items: center; background: var(--bad-soft); color: var(--bad); }

/* ---------- search + categories (sticky) ---------- */
.tools { position: sticky; top: var(--top); z-index: 20; background: var(--bg); padding: 14px 0 10px; margin-top: 6px; }
.search { display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; color: var(--muted); }
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.search input { flex: 1; border: 0; outline: 0; font: inherit; font-size: 1rem; background: transparent; color: var(--ink); min-width: 0; }
.cats { display: flex; gap: 8px; overflow-x: auto; padding-top: 12px; scrollbar-width: none; scroll-behavior: smooth; }
.cats::-webkit-scrollbar { display: none; }
.cats button { flex: none; height: 40px; padding: 0 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 650; font-size: .93rem; white-space: nowrap; color: var(--ink2); }
.cats button.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.cats { cursor: grab; overscroll-behavior-x: contain; outline: none; }
.cats.drag { cursor: grabbing; scroll-behavior: auto; user-select: none; }
.cats.drag button { pointer-events: none; }
.catwrap { position: relative; }
.catarrow { position: absolute; top: 12px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); color: var(--ink); display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0,0,0,.18); cursor: pointer; }
.catarrow:hover { border-color: var(--accent); color: var(--accent); }
.catarrow.l { left: 0; } .catarrow.r { right: 0; }
.catarrow[hidden] { display: none; }
.catwrap.fl .cats { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 56px); mask-image: linear-gradient(90deg, transparent 0, #000 56px); }
.catwrap.fr .cats { -webkit-mask-image: linear-gradient(270deg, transparent 0, #000 56px); mask-image: linear-gradient(270deg, transparent 0, #000 56px); }
.catwrap.fl.fr .cats { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 56px, #000 calc(100% - 56px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 56px, #000 calc(100% - 56px), transparent 100%); }
@media (hover: none) { .catarrow { display: none; } }

/* ---------- menu ---------- */
.section { scroll-margin-top: calc(var(--top) + 130px); margin-top: 26px; }
.section h2 { font-size: 1.55rem; font-weight: 900; margin-bottom: 14px; }
.list { display: grid; grid-template-columns: 1fr; gap: 12px; }
/* row card (mobile, Uber Eats style) */
.card { position: relative; display: flex; gap: 14px; align-items: stretch; width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 14px; box-shadow: var(--shadow); transition: transform .12s ease, box-shadow .18s ease; }
.card:hover { box-shadow: 0 2px 4px rgba(29,26,23,.06), 0 12px 28px rgba(29,26,23,.10); }
.card:active { transform: scale(.985); }
.card[disabled] { opacity: .55; cursor: default; }
.card .body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.card .nm { font-weight: 800; font-size: 1.05rem; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .ds { color: var(--muted); font-size: .9rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .pr { margin-top: auto; padding-top: 4px; font-weight: 750; color: var(--ink2); font-variant-numeric: tabular-nums; }
.card .pr small { font-weight: 600; color: var(--muted); }
.ph { position: relative; flex: none; width: 112px; height: 112px; border-radius: 14px; overflow: hidden; background: var(--line2); }
.ph img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s ease; }
.ph img.ok { opacity: 1; }
.plus { position: absolute; right: 8px; bottom: 8px; width: 38px; height: 38px; border-radius: 50%; background: var(--surface); color: var(--accent-fg); display: grid; place-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.18); border: 1px solid var(--line); }
.card.noimg .plus { position: static; align-self: flex-end; flex: none; background: var(--accent); color: var(--accent-ink); border: 0; }
.qtybadge { position: absolute; top: 10px; left: 10px; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 12px; background: var(--accent); color: var(--accent-ink); font-size: .8rem; font-weight: 800; display: grid; place-items: center; z-index: 2; }
/* popular carousel (mobile) */
.carousel { display: grid; grid-auto-flow: column; grid-auto-columns: 74%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none; }
.carousel::-webkit-scrollbar { display: none; }
.carousel .tile { scroll-snap-align: start; }
/* tile card (image on top) */
.tile { position: relative; display: flex; flex-direction: column; width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .12s ease, box-shadow .18s ease; }
.tile:hover { box-shadow: 0 2px 4px rgba(29,26,23,.06), 0 14px 32px rgba(29,26,23,.12); transform: translateY(-1px); }
.tile[disabled] { opacity: .55; cursor: default; }
.tile .ph { width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: 0; }
.tile .ph .noimg { position: absolute; inset: 0; display: grid; place-items: center; color: var(--accent-fg); background: linear-gradient(135deg, var(--accent-soft), #fff); font-size: 2.6rem; font-weight: 900; }
.tile .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.tile .nm { font-weight: 850; font-size: 1.12rem; line-height: 1.2; padding-right: 46px; }
.tile .ds { color: var(--muted); font-size: .9rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile .pr { font-weight: 700; color: var(--ink2); margin-top: auto; padding-top: 2px; }
.tile .plus { right: 14px; bottom: 14px; background: var(--accent); color: var(--accent-ink); border: 0; width: 42px; height: 42px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.empty { text-align: center; color: var(--muted); padding: 40px 10px; }
.skel { height: 140px; border-radius: var(--r); margin: 12px 0; background: linear-gradient(90deg, #efe9e1 25%, #f7f3ee 50%, #efe9e1 75%); background-size: 200% 100%; animation: sk 1.2s infinite; }
@keyframes sk { to { background-position: -200% 0; } }
.foot { text-align: center; color: var(--muted); font-size: .82rem; padding: 40px 0 0; }

/* ---------- cart (side column + sheet) ---------- */
.cart-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 20px; }
.cart-card h2 { font-size: 1.6rem; font-weight: 900; }
.cart-sub { color: var(--muted); font-weight: 600; margin: 4px 0 10px; }
.cl { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line2); }
.cl .thumb { width: 64px; height: 64px; border-radius: 12px; flex: none; background: var(--line2) center/cover; }
.cl .t { flex: 1; min-width: 0; }
.cl .t b { display: block; font-weight: 800; line-height: 1.2; }
.cl .t .o { color: var(--muted); font-size: .85rem; margin-top: 2px; }
.cl .r { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 8px; }
.cl .r .pp { font-weight: 800; font-variant-numeric: tabular-nums; }
.step { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.step button { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: var(--ink2); }
.step button:hover { background: var(--line2); }
.step span { min-width: 24px; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }
.step.big button { width: 48px; height: 48px; }
.step.big span { min-width: 40px; font-size: 1.15rem; }
.tot { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0 14px; font-size: 1.35rem; font-weight: 900; }
.tot small { font-size: .95rem; color: var(--muted); font-weight: 700; }
.cart-empty { text-align: center; padding: 26px 8px 8px; color: var(--muted); }
.cart-empty .ico { width: 64px; height: 64px; margin: 0 auto 10px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-fg); display: grid; place-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 56px; padding: 0 20px; border-radius: 14px; background: var(--accent); color: var(--accent-ink);
  font-weight: 800; font-size: 1.08rem; transition: filter .15s ease, transform .08s ease; text-decoration: none; }
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: scale(.99); }
.btn:disabled { opacity: .45; cursor: default; filter: none; }
.btn .sp { margin-left: auto; font-variant-numeric: tabular-nums; }
.btn.ghost { background: var(--line2); color: var(--ink); }
.btn.split { justify-content: space-between; }
.note { color: var(--muted); font-size: .86rem; text-align: center; margin-top: 10px; }

/* mobile cart bar */
.cartbar { position: fixed; z-index: 25; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); max-width: 640px; margin: 0 auto; height: 60px; border-radius: 16px;
  background: var(--accent); color: var(--accent-ink); display: flex; align-items: center; gap: 12px; padding: 0 20px; box-shadow: var(--shadow-lg); font-weight: 800; font-size: 1.05rem; animation: up .25s ease; }
.cartbar .n { background: var(--badge-bg); color: var(--badge-fg); min-width: 30px; height: 30px; padding: 0 7px; border-radius: 10px; display: grid; place-items: center; font-size: .92rem; font-weight: 850; }
.cartbar .sp { margin-left: auto; font-variant-numeric: tabular-nums; }
@keyframes up { from { transform: translateY(24px); opacity: 0; } }

/* ---------- sheets (dish, cart, info, fulfillment) ---------- */
.sheet-bg { position: fixed; inset: 0; z-index: 40; background: rgba(15,12,10,.5); animation: fade .18s ease; }
@keyframes fade { from { opacity: 0; } }
.sheet { position: fixed; z-index: 41; inset: 0; background: var(--surface); overflow-y: auto; overscroll-behavior: contain; animation: rise .26s cubic-bezier(.2,.9,.25,1); display: flex; flex-direction: column; }
@keyframes rise { from { transform: translateY(36px); opacity: .5; } }
.sheet-head { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 12px; background: rgba(255,255,255,.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line2); }
.sheet-head h3 { font-size: 1.15rem; font-weight: 850; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--ink); box-shadow: 0 2px 10px rgba(0,0,0,.16); flex: none; }
.sheet-head .icon-btn { box-shadow: none; background: var(--line2); }
.sheet-body { padding: 18px 18px 120px; flex: 1; }
.sheet-foot { position: sticky; bottom: 0; z-index: 3; padding: 12px 16px max(12px, env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line2); display: flex; gap: 12px; align-items: center; }
.sheet-foot .btn { flex: 1; }
/* dish sheet */
.dish-media { position: relative; background: var(--line2); }
.dish-media img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; }
.dish-media .icon-btn { position: absolute; top: 12px; left: 12px; }
.dish-title { font-size: 1.9rem; font-weight: 900; margin-top: 4px; }
.dish-desc { color: var(--muted); margin-top: 6px; font-size: 1rem; }
.dish-price { font-weight: 800; font-size: 1.15rem; margin-top: 8px; }
/* dish details */
.mini-facts { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: .82rem; font-weight: 650; color: var(--ink2); }
.mini-facts .mf-ico { letter-spacing: 1px; font-size: .92rem; } .mini-facts .mf-dot { color: var(--muted); }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.fact { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--line2); color: var(--ink2); font-size: .88rem; font-weight: 700; border: 1px solid var(--line); }
.fact .fe { font-size: 1rem; line-height: 1; }
.fact.green { background: #ecf7ee; color: #1f6b33; border-color: #cfe9d5; }
.fact.hot { background: #fdeee9; color: #a3341b; border-color: #f7d2c6; }
.ingr { margin-top: 18px; padding: 16px; border-radius: 18px; background: var(--accent-soft); border: 1px solid var(--accent-line); }
.ingr-h { font-size: .78rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-fg); margin-bottom: 12px; }
.ingr-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); gap: 12px 8px; }
.ingr-it { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; min-width: 0; }
.ingr-ic { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 1.6rem; line-height: 1; background: var(--surface); box-shadow: 0 2px 8px rgba(0,0,0,.08), inset 0 0 0 1px var(--accent-line); }
.ingr-nm { font-size: .8rem; font-weight: 700; color: var(--ink2); line-height: 1.2; overflow-wrap: anywhere; }
.ingr-note { margin: 12px 0 0; font-size: .92rem; color: var(--ink2); line-height: 1.4; }
.ingr-grid + .ingr-note { padding-top: 12px; border-top: 1px dashed var(--accent-line); }
.group { margin-top: 22px; }
.gh { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.gh b { font-size: 1.2rem; font-weight: 850; }
.tag { font-size: .78rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: var(--line2); color: var(--muted); white-space: nowrap; }
.tag.req { background: var(--bad-soft); color: var(--bad); }
.tag.done { background: var(--ok-soft); color: var(--ok); }
.group.missing .gh b { color: var(--bad); }
.opts { display: grid; gap: 10px; }
.opt { display: flex; align-items: center; gap: 14px; padding: 15px 16px; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; background: var(--surface); transition: border-color .12s ease, background .12s ease; }
.opt:hover { border-color: var(--accent-line); }
.opt.on { border-color: var(--accent); background: var(--accent-soft); }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt .mark { width: 22px; height: 22px; flex: none; border-radius: 50%; border: 2px solid #cfc6bb; display: grid; place-items: center; background: #fff; }
.opt.multi .mark { border-radius: 6px; }
.opt.on .mark { border-color: var(--accent); background: var(--accent); color: #fff; }
.opt .mark svg { width: 14px; height: 14px; stroke-width: 3; opacity: 0; }
.opt.on .mark svg { opacity: 1; }
.opt:not(.multi).on .mark { background: #fff; }
.opt:not(.multi).on .mark::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.opt:not(.multi) .mark svg { display: none; }
.opt .on-name { flex: 1; font-weight: 650; font-size: 1.02rem; }
.opt .on-price { font-weight: 700; color: var(--ink2); font-variant-numeric: tabular-nums; }
.qty-row { display: flex; justify-content: center; margin: 26px 0 6px; }
.err { color: var(--bad); font-weight: 700; min-height: 1.3em; margin: 8px 0 0; }
/* info sheet */
.hours { width: 100%; border-collapse: collapse; margin-top: 6px; }
.hours td { padding: 8px 0; border-bottom: 1px solid var(--line2); }
.hours td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.hours tr.today td { font-weight: 800; }
.choice-card { display: flex; gap: 14px; align-items: center; width: 100%; text-align: left; padding: 16px; border: 1.5px solid var(--line); border-radius: 16px; margin-bottom: 10px; background: var(--surface); }
.choice-card.on { border-color: var(--accent); background: var(--accent-soft); }
.choice-card > span > b { display: block; font-size: 1.05rem; font-weight: 800; }
.choice-card > span > span { display: block; color: var(--muted); font-size: .92rem; }

/* ---------- checkout page ---------- */
.co { max-width: 1180px; margin: 0 auto; padding: 18px 16px 140px; }
.back { display: inline-flex; align-items: center; gap: 8px; color: var(--accent-fg); font-weight: 750; text-decoration: none; padding: 6px 0; }
.co h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); font-weight: 900; margin: 10px 0 18px; }
.co-grid { display: grid; grid-template-columns: 1fr; gap: 18px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 20px; }
.panel + .panel { margin-top: 16px; }
.panel h2 { font-size: 1.35rem; font-weight: 900; margin-bottom: 14px; }
.where { display: flex; gap: 14px; align-items: flex-start; }
.where .info-ico { width: 52px; height: 52px; border-radius: 14px; }
.where .t { flex: 1; min-width: 0; }
.where .t > b { display: block; font-size: 1.15rem; font-weight: 850; }
.where .t > span { display: flex; align-items: center; gap: 6px; color: var(--ink2); margin-top: 4px; }
.link { color: var(--accent-fg); font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }
.fields { display: grid; grid-template-columns: 1fr; gap: 14px; }
.field label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: 6px; }
.field input, .field textarea { width: 100%; height: 50px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; font: inherit; color: var(--ink); outline: 0; transition: border-color .12s, box-shadow .12s; }
.field textarea { height: 84px; padding: 12px 14px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field.bad input { border-color: var(--bad); }
.field .hint { color: var(--bad); font-size: .85rem; font-weight: 650; margin-top: 4px; min-height: 0; }
.pay { display: grid; gap: 10px; }
.pay .choice-card { margin: 0; }
.pay .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--line2); display: grid; place-items: center; flex: none; }
.pay .choice-card.on .ic { background: #fff; color: var(--accent-fg); }
.pay .radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #cfc6bb; flex: none; display: grid; place-items: center; margin-left: auto; }
.pay .choice-card.on .radio { border-color: var(--accent); }
.pay .choice-card.on .radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.check { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; font-size: .95rem; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); margin: 1px 0 0; flex: none; }
.summary .sl { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line2); }
.summary .sl .thumb { width: 84px; height: 64px; border-radius: 12px; background: var(--line2) center/cover; flex: none; }
.summary .sl .t { flex: 1; min-width: 0; }
.summary .sl b { font-weight: 800; }
.summary .sl .o { color: var(--muted); font-size: .88rem; }
.summary .sl .pp { font-weight: 800; font-variant-numeric: tabular-nums; }
.summary .hdr { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.mobile-pay { position: fixed; z-index: 25; left: 0; right: 0; bottom: 0; padding: 12px 16px max(12px, env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(0,0,0,.06); }

.toast { position: fixed; z-index: 60; left: 50%; top: calc(var(--top) + 10px); transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 14px; font-weight: 650;
  box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 10px; animation: drop .22s ease; max-width: calc(100vw - 32px); }
@keyframes drop { from { transform: translate(-50%, -12px); opacity: 0; } }

/* ---------- tablet / desktop ---------- */
@media (min-width: 720px) {
  .wrap { padding: 22px 24px 120px; }
  .hero, .hero-in { min-height: 280px; }
  .hero-in { padding: 36px; }
  .info.n2 { grid-template-columns: 1fr 1fr; }
  .info-item + .info-item { border-top: 0; border-left: 1px solid var(--line2); }
  .list { grid-template-columns: 1fr 1fr; }
  .carousel { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); overflow: visible; }
  .sheet { inset: auto; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(560px, 94vw); max-height: 90vh; border-radius: 24px; box-shadow: var(--shadow-lg); animation: pop .2s ease; }
  @keyframes pop { from { opacity: 0; transform: translate(-50%, -48%) scale(.98); } }
  .dish-media img { border-radius: 24px 24px 0 0; }
  .sheet-body { padding: 22px 26px 30px; }
  .fields.two { grid-template-columns: 1fr 1fr; }
  .tb-cart .label { display: inline; }
}
@media (min-width: 1024px) {
  :root { --bar: 76px; --top: 76px; }
  .only-mobile { display: none; }
  .only-desk { display: flex; }
  .tb-in { padding: 0 24px; }
  .tb-mid { display: flex; }
  .logo { width: 52px; height: 52px; font-size: 20px; }
  .brand-name { font-size: 1.35rem; }
  .layout { grid-template-columns: minmax(0, 1fr) 360px; }
  .col-side { display: block; position: sticky; top: calc(var(--top) + 20px); }
  .cartbar { display: none !important; }
  .hero, .hero-in { min-height: 320px; }
  .hero-in { padding: 44px 48px; }
  .list.rows { grid-template-columns: 1fr 1fr; }
  .co-grid { grid-template-columns: minmax(0, 1fr) 420px; gap: 26px; }
  .co-side { position: sticky; top: calc(var(--top) + 20px); }
  .mobile-pay { display: none; }
}

/* ---------- order tracking + driver page ---------- */
.track { max-width: 640px; margin: 0 auto; padding: 18px 16px 60px; }
.track .card2, .track .card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 18px; margin: 14px 0; }
.track .card:active { transform: none; }
.track h1 { font-size: 1.7rem; font-weight: 900; margin: 6px 0 2px; }
.status-hero { text-align: center; padding: 26px 18px 20px !important; }
.status-ico { width: 72px; height: 72px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-fg); position: relative; }
.status-ico::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--accent-line); animation: ring 1.8s ease-out infinite; }
.status-ico.done { background: var(--ok-soft); color: var(--ok); }
.status-ico.done::after, .status-ico.bad::after { display: none; }
.status-ico.bad { background: var(--bad-soft); color: var(--bad); }
.status-ico svg { width: 34px; height: 34px; }
@keyframes ring { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.25); opacity: 0; } }
.bigstatus { font-size: 1.3rem; font-weight: 850; line-height: 1.25; }
.eta { color: var(--muted); font-weight: 650; margin-top: 6px; }
.steps { display: flex; margin: 22px 0 4px; }
.steps .st { flex: 1; text-align: center; font-size: .78rem; color: var(--muted); position: relative; padding-top: 22px; font-weight: 650; }
.steps .st::before { content: ""; position: absolute; top: 6px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--line); z-index: 1; }
.steps .st::after { content: ""; position: absolute; top: 11px; left: -50%; width: 100%; height: 4px; background: var(--line); }
.steps .st:first-child::after { display: none; }
.steps .st.done::before, .steps .st.done::after { background: var(--accent); }
.steps .st.cur { color: var(--ink); font-weight: 850; }
.steps .st.cur::before { box-shadow: 0 0 0 5px var(--accent-soft); }
.line { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line2); }
.line .thumb { width: 54px; height: 54px; border-radius: 12px; background: var(--line2) center/cover; flex: none; }
.line .t { flex: 1; min-width: 0; }
.line .o { color: var(--muted); font-size: .88rem; }
.hero-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.pillbtn { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 999px; background: var(--line2); font-weight: 700; text-decoration: none; color: var(--ink2); }
.pillbtn.wa { background: #dcfce7; color: #166534; }
.primary { display: block; width: 100%; height: 58px; border-radius: 14px; background: var(--accent); color: var(--accent-ink); font-weight: 850; font-size: 1.1rem; }
.drvbtns { position: sticky; bottom: 12px; margin-top: 14px; }
.drvbtns .primary { height: 64px; font-size: 1.2rem; }
.state-bad .bigstatus { color: var(--bad); }
.track-head { display: flex; align-items: center; gap: 12px; }
.track-head .logo { width: 48px; height: 48px; }

.tb-in > .push { margin-left: auto; }

@media (max-width: 1023px) { .logo.only-mobile { display: grid; } }
.track .card .tot { padding-bottom: 6px; }

@media (min-width: 720px) { .info .btn-soft .lbl { display: none; } .info .btn-soft { width: 36px; padding: 0; justify-content: center; } .info-item { min-width: 0; } }

.fields + .fields { margin-top: 14px; }

.foot .powered { display:flex; align-items:center; justify-content:center; gap:6px; margin-top:8px; font-size:.8rem; color: var(--muted); }
.foot .powered img { display:block; }

/* layout stability: reserve the space of content that is filled in after load */
#heroChips { min-height: 34px; }
#cats { min-height: 52px; }
.hero img.cover { aspect-ratio: 1080 / 450; }

/* screen-reader / search-engine only text */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* mobile top bar: delivery / pickup switch */
.tb-modes.seg button { height: 36px; padding: 0 12px; font-size: .9rem; }
.tb-modes.single span { display: inline-flex; align-items: center; gap: 6px; font-weight: 750; font-size: .95rem; color: var(--ink2); }

/* hero: the owner chooses the text and how much the photo is darkened (Portal > Sitio web > Diseño) */
.hero.shade-none::after { background: linear-gradient(0deg, rgba(10,8,6,.28), transparent 38%); }
.hero.shade-light::after { background: linear-gradient(90deg, rgba(10,8,6,.55) 0%, rgba(10,8,6,.22) 50%, rgba(10,8,6,0) 100%), linear-gradient(0deg, rgba(10,8,6,.45), transparent 50%); }
.hero.shade-strong::after { background: linear-gradient(90deg, rgba(10,8,6,.8) 0%, rgba(10,8,6,.5) 50%, rgba(10,8,6,.12) 100%), linear-gradient(0deg, rgba(10,8,6,.6), transparent 55%); }
.hero.notext::after { background: linear-gradient(0deg, rgba(10,8,6,.3), transparent 35%); }
.hero h1 { line-height: 1.05; }
.hero .sub { max-width: 34ch; font-size: 1.02rem; line-height: 1.35; text-shadow: 0 1px 10px rgba(0,0,0,.45); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hero .sub:empty { display: none; }
.hero .chips-row { margin-top: 12px; }
.hero.notext .chips-row { margin-top: 0; }
.hero .pill:not(.open):not(.closed) { background: rgba(16,12,10,.62); color: #fff; backdrop-filter: blur(6px); }

/* info buttons under the cover: hours and/or contact, side by side on phones too */
#info { min-height: 0; }
#info.n1, #info.n2 { min-height: 66px; }
.info.n0 { display: none; }
.info.n2 { grid-template-columns: 1fr 1fr; }
.info.n2 .info-item + .info-item { border-top: 0; border-left: 1px solid var(--line2); }
.info .btn-soft { width: 34px; height: 34px; padding: 0; justify-content: center; flex: none; }
.info-item { min-width: 0; }
@media (max-width: 719px) {
  .info.n1, .info.n2 { min-height: 64px; }
  .info.n2 .info-item { padding: 12px; gap: 8px; }
  .info.n2 .info-ico { display: none; }
  .info.n2 .go { width: 18px; height: 18px; color: var(--accent-fg); }
  .info.n2 .info-item .t > b { font-size: .92rem; }
  .info.n2 .info-item .t > span { font-size: .82rem; }
  .info.n2 .mini-actions { gap: 6px; }
  .info.n2 .info-item.contact .t > span { display: none; }
  .hero h1 { font-size: clamp(1.7rem, 7.5vw, 2.4rem); }
}

/* fixed cover proportions so the recommended upload sizes fit exactly: phones 16:9 (1280x720), tablet/desktop 8:3 (1600x600) */
.hero, .hero-in { min-height: 0; }
.hero { aspect-ratio: 16 / 9; display: flex; }
.hero-in { flex: 1; }
.hero img.cover { aspect-ratio: auto; }
@media (min-width: 720px) { .hero, .hero-in { min-height: 0; } .hero { aspect-ratio: 8 / 3; } }
@media (min-width: 1024px) { .hero, .hero-in { min-height: 0; } }
/* clickable tiles look clickable */
button.info-item { cursor: pointer; }
button.info-item:hover, button.info-item:active { background: var(--line2); }

/* quantity badge: over the photo when there is one; in line, left of the text, on text-only cards (never over the text) */
.card.noimg .qtybadge { position: static; align-self: center; flex: none; }
.grid + .list.plain, .carousel + .list.plain { margin-top: 12px; }

/* ---------- delivery map (public/map.js) ---------- */
.addr { position: relative; }
.addrwrap { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.row-gps { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-soft.gps { gap: 6px; padding: 0 14px; width: auto; border-radius: 999px; font-weight: 650; font-size: .92rem; height: 40px; background: var(--accent-soft); color: var(--accent); border: 1px solid transparent; cursor: pointer; }
.btn-soft.gps:disabled { opacity: .7; cursor: wait; }
.rmap { position: relative; height: 250px; border-radius: 14px; overflow: hidden; background: #e7e3da; border: 1px solid var(--line); touch-action: none; cursor: grab; outline: none; user-select: none; -webkit-user-select: none; }
.rmap:focus-visible { box-shadow: 0 0 0 3px var(--accent-soft); border-color: var(--accent); }
.rmap.drag { cursor: grabbing; }
.rtiles { position: absolute; inset: 0; }
.rtiles .rt { position: absolute; width: 256px; height: 256px; max-width: none; opacity: 0; transition: opacity .18s; pointer-events: none; }
.rtiles .rt.ok { opacity: 1; }
.rpin { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; }
.rpin-head { position: absolute; left: -15px; top: -46px; width: 30px; height: 30px; background: var(--accent); border: 3px solid #fff; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); box-shadow: 0 3px 8px rgba(0,0,0,.4); }
.rpin-head::after { content: ""; position: absolute; left: 7px; top: 7px; width: 10px; height: 10px; border-radius: 50%; background: #fff; }
.rpin-dot { position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 50%; background: rgba(0,0,0,.45); }
.rctl { position: absolute; right: 10px; top: 10px; display: flex; flex-direction: column; gap: 6px; }
.rzoom { width: 36px; height: 36px; border-radius: 10px; background: #fff; color: #222; border: 1px solid rgba(0,0,0,.18); font-size: 20px; line-height: 1; font-weight: 700; cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.rattr { position: absolute; left: 0; bottom: 0; padding: 2px 8px; font-size: 11px; background: rgba(255,255,255,.85); color: #333; border-top-right-radius: 8px; text-decoration: none; }
.pinstatus { font-size: .86rem; color: var(--muted); }
.pinstatus.ok { color: var(--ok, #1a7f43); font-weight: 600; }
.sugg { position: absolute; z-index: 40; left: 0; right: 0; list-style: none; margin: 4px 0 0; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 28px rgba(0,0,0,.22); max-height: 260px; overflow: auto; }
.sugg li { margin: 0; }
.sugg .sg { width: 100%; text-align: left; padding: 10px 12px; border-radius: 8px; background: none; border: 0; font: inherit; color: var(--ink); cursor: pointer; }
.sugg .sg:hover, .sugg .sg:focus { background: var(--accent-soft); outline: none; }
.hint-n { font-size: .86rem; color: var(--muted); margin-top: 4px; }

/* where the food comes from: always visible */
.tb-sub { align-items: center; gap: 6px; height: 28px; padding: 0 16px 4px; font-size: .8rem; color: var(--muted); border-top: 1px solid var(--line2); }
.tb-sub b { color: var(--ink); font-weight: 750; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-sub .chg { margin-left: auto; font: inherit; font-weight: 700; color: var(--accent-fg); text-decoration: underline; padding: 4px 0 4px 10px; }
.tb-sub .i { flex: none; }
.tb-chip.multi { background: var(--accent-soft); color: var(--accent-fg); }
.tb-chip.multi::after { content: "▾"; font-size: .8em; }
@media (min-width: 1024px) { :root { --top: 76px; } .tb-sub { display: none !important; } }
@media (max-width: 1023px) { :root { --top: 92px; } }

.tb-sub { cursor: pointer; }
.tb-sub .how { margin-left: auto; font-weight: 700; color: var(--accent-fg); white-space: nowrap; }
.tb-sub .how + .chg { margin-left: 4px; }
.howmap { height: 200px; margin: 10px 0; }

.mapbtn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); font: inherit; font-weight: 650; font-size: .92rem; cursor: pointer; }
.mapbtn:hover { border-color: var(--accent); color: var(--accent-fg); }
.mapbtn .mi { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* delivery range circle */
.rring { position: absolute; border-radius: 50%; border: 2px solid #1f6feb; background: rgba(31,111,235,.12); pointer-events: none; box-sizing: border-box; }


.range-warn { margin: 8px 0 0; padding: 10px 12px; border-radius: 10px; background: #fdecea; color: #8a1c10; border: 1px solid #f3b8b0; font-size: .9rem; font-weight: 600; }
.range-warn[hidden] { display: none; }


/* ---------- floating "your order is in process" button + status page actions ---------- */
.orderfab { position: fixed; z-index: 24; right: 12px; left: 12px; bottom: max(12px, env(safe-area-inset-bottom)); max-width: 420px; margin: 0 auto; display: flex; align-items: center; gap: 12px; padding: 10px 16px;
  border-radius: 16px; background: var(--ink); color: #fff; text-decoration: none; box-shadow: 0 10px 30px rgba(0,0,0,.28); }
.orderfab[hidden] { display: none; }
.orderfab.up { bottom: calc(max(12px, env(safe-area-inset-bottom)) + 72px); }
.orderfab .t { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.orderfab .t b { font-size: .95rem; } .orderfab .t small { opacity: .75; font-size: .8rem; }
.orderfab .go { margin-left: auto; font-size: 1.6rem; line-height: 1; opacity: .8; }
.orderfab .pulse { width: 12px; height: 12px; border-radius: 50%; background: #34d399; flex: none; box-shadow: 0 0 0 0 rgba(52,211,153,.6); animation: fabpulse 1.8s ease-out infinite; }
@keyframes fabpulse { 70% { box-shadow: 0 0 0 10px rgba(52,211,153,0); } 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); } }
@media (min-width: 1024px) { .orderfab { left: auto; right: 24px; bottom: 24px; margin: 0; } .orderfab.up { bottom: 24px; } }
@media (prefers-reduced-motion: reduce) { .orderfab .pulse { animation: none; } }
.tb-menu { font-weight: 750; color: var(--accent-fg); text-decoration: none; padding: 8px 4px; }
.track .again { display: flex; flex-direction: column; gap: 12px; text-align: center; }
.track .again .btn { text-decoration: none; }

/* ======================================================================================================================
   Designs (Portal > Sitio web > Diseño). One page, three looks, chosen by classes on <body> that the server renders in the first paint:
   design-clasico (the original) · design-galeria (photo-first, bold, like a printed menu) · design-express (delivery-app style)
   font-display / font-serif / font-sans (headings) · dark (dark background, any design). Pure CSS: no extra requests except the display font.
   ====================================================================================================================== */
@font-face { font-family: "Anton"; src: url("/brand/anton-latin.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- shared: food icons, close button on the right, category banners ---------- */
svg.fi { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.mini-facts .mf-ico { display: inline-flex; gap: 5px; color: var(--ink2); letter-spacing: 0; }
.mini-facts svg.fi { width: 17px; height: 17px; }
.mini-facts svg.fi.hot, .fact.hot svg.fi { color: #c2410c; }
.fact svg.fi { width: 17px; height: 17px; }
.fact .chilis { display: inline-flex; gap: 0; } .fact .chilis svg.fi { width: 15px; height: 15px; } .fact .chilis svg.fi.off { opacity: .28; }
.ingr-ic { color: var(--accent-fg); } .ingr-ic svg.fi { width: 26px; height: 26px; stroke-width: 1.6; }
.sheet-head { padding: 0 12px 0 18px; } .sheet-head h3 { order: 0; } .sheet-head .icon-btn { order: 1; margin-left: auto; }
.dish-media .icon-btn { left: auto; right: 12px; }
.sec-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.section .sec-head h2 { margin-bottom: 0; }
.sec-head.has-img { position: relative; display: flex; align-items: flex-end; min-height: 0; aspect-ratio: 16 / 6; border-radius: var(--r); overflow: hidden; padding: 18px 20px; isolation: isolate; box-shadow: var(--shadow); }
.sec-head.has-img .sec-pic, .sec-head.has-img .sec-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.sec-head.has-img::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(8,6,5,.72), rgba(8,6,5,.08) 70%); }
.sec-head.has-img h2 { color: #fff; text-shadow: 0 2px 14px rgba(0,0,0,.4); font-size: clamp(1.6rem, 5vw, 2.3rem); }
@media (min-width: 720px) { .sec-head.has-img { aspect-ratio: 16 / 4.2; padding: 24px 28px; } }
.side-cats { display: none; }
.cat-tiles { display: none; }

/* ---------- heading fonts ---------- */
body.font-display :is(.hero h1, .section h2, .dish-title, .tile .nm, .cart-card h2, .co h1, .panel h2) { font-family: "Anton", "Impact", "Arial Narrow Bold", sans-serif; font-weight: 400; text-transform: uppercase; letter-spacing: .01em; }
body.font-display .brand-name { font-family: "Anton", "Impact", sans-serif; font-weight: 400; text-transform: uppercase; letter-spacing: .02em; }
body.font-display .tile .nm { font-size: 1.12rem; line-height: 1.15; }
body.font-serif :is(.hero h1, .section h2, .dish-title, .tile .nm, .card .nm, .cart-card h2, .co h1, .panel h2, .brand-name) { font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif; letter-spacing: 0; font-weight: 700; }
body.font-serif .hero h1 { font-weight: 700; }

/* ---------- dark background (any design) ---------- */
body.dark { --bg: #0d0c0b; --surface: #171514; --ink: #f6f2ec; --ink2: #e4ddd4; --muted: #a59c92; --line: #2a2624; --line2: #201d1b;
  --accent-soft: color-mix(in srgb, var(--accent) 16%, #171514); --accent-line: color-mix(in srgb, var(--accent) 45%, #171514); --accent-fg: color-mix(in srgb, var(--accent) 55%, #fff);
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35); color-scheme: dark; }
body.dark .topbar { background: rgba(13,12,11,.9); }
body.dark .sheet-head { background: rgba(23,21,20,.95); }
body.dark .field input, body.dark .field textarea { background: var(--line2); color: var(--ink); }
body.dark .opt .mark { background: var(--line2); border-color: #4a443f; }
body.dark .opt:not(.multi).on .mark { background: var(--line2); }
body.dark .toast { background: #f6f2ec; color: #141210; }
body.dark .skel { background: linear-gradient(90deg, #1d1a18 25%, #26221f 50%, #1d1a18 75%); background-size: 200% 100%; }
body.dark .fact.green { background: #12301d; color: #8fe3ad; border-color: #1f4a2d; }
body.dark .fact.hot { background: #3a1a10; color: #ffb59a; border-color: #5a2a1b; }
body.dark .mini-facts svg.fi.hot, body.dark .fact.hot svg.fi { color: #ff8a5c; }
body.dark .pill.open { background: #12301d; color: #8fe3ad; } body.dark .pill.closed { background: #45161a; color: #ffb4ab; }
body.dark .btn-soft.wa { background: #12301d; color: #8fe3ad; }
body.dark .ribbon { background: #3a2d0b; color: #f5d27a; border-color: #4d3c10; }
body.dark .rmap { background: #2a2624; }
body.dark .tile .ph .noimg { background: linear-gradient(135deg, var(--accent-soft), var(--surface)); }
body.dark .ingr-ic { background: var(--line2); box-shadow: inset 0 0 0 1px var(--accent-line); }
body.dark .orderfab { background: #f6f2ec; color: #141210; }

/* ======================================================================================================================
   GALERÍA — photo-first, bold display headings, cards with centered text (great for sushi, burgers, bars, modern places)
   ====================================================================================================================== */
body.design-galeria .hero { border-radius: 24px; }
body.design-galeria .hero h1 { font-size: clamp(2.4rem, 9vw, 4.6rem); line-height: .98; }
body.design-galeria .cats button { border-radius: 6px; height: 36px; padding: 0 14px; background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; opacity: .9; }
body.design-galeria .cats button.on { background: var(--surface); color: var(--ink); border-color: var(--ink); opacity: 1; }
body.design-galeria .section h2 { font-size: clamp(1.9rem, 6vw, 2.6rem); letter-spacing: .01em; }
body.design-galeria .section:not(:has(.sec-head.has-img)) .sec-head h2::after { content: ""; display: block; width: 56px; height: 5px; margin-top: 8px; border-radius: 3px; background: var(--accent); }
body.design-galeria .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
body.design-galeria .carousel { grid-auto-columns: 46%; }
body.design-galeria .tile { border-radius: 14px; text-align: center; border: 0; background: var(--surface); }
body.design-galeria .tile .ph { aspect-ratio: 1 / 1; }
body.design-galeria .tile .body { padding: 14px 12px 16px; align-items: center; gap: 6px; }
body.design-galeria .tile .nm { padding-right: 0; font-size: 1rem; }
body.design-galeria .tile .ds { font-size: .84rem; text-align: center; }
body.design-galeria .tile .mini-facts { justify-content: center; }
body.design-galeria .tile .pr { font-size: 1.02rem; font-weight: 850; color: var(--ink); }
body.design-galeria .tile .plus { top: 10px; right: 10px; bottom: auto; width: 36px; height: 36px; box-shadow: 0 4px 12px rgba(0,0,0,.35); }
body.design-galeria .info, body.design-galeria .search { border-radius: 14px; }
body.design-galeria .dish-title { font-size: 2.1rem; line-height: 1.02; }
@media (min-width: 720px) {
  body.design-galeria .grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }
  body.design-galeria .carousel { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
  body.design-galeria .tile .ph { aspect-ratio: 4 / 3.4; }
}
@media (min-width: 1024px) {
  body.design-galeria .tools { position: static; }
  body.design-galeria .cats { flex-wrap: wrap; justify-content: center; overflow: visible; cursor: default; }
  body.design-galeria .catarrow { display: none !important; }
  body.design-galeria .catwrap .cats { -webkit-mask-image: none !important; mask-image: none !important; }
  body.design-galeria .tile .nm { font-size: 1.15rem; }
}

/* ======================================================================================================================
   EXPRESS — delivery-app style (Rappi / DiDi / Uber Eats): clean white, store header, category tiles, underline tabs that follow you,
   flat list rows, and on computers a category sidebar that is always visible. Fast to scan, always clear where you are.
   ====================================================================================================================== */
body.design-express:not(.dark) { --bg: #ffffff; --surface: #ffffff; --line: #ececec; --line2: #f5f5f5; --muted: #6b6b6b; --ink2: #333; --shadow: 0 1px 3px rgba(0,0,0,.08); }
body.design-express .hero { aspect-ratio: auto; display: block; background: none; box-shadow: none; overflow: visible; border-radius: 0; }
body.design-express .hero::after { display: none; }
body.design-express .hero .cover-pic { display: block; }
body.design-express .hero img.cover { position: static; display: block; width: 100%; height: auto; aspect-ratio: 16 / 7; border-radius: 16px; z-index: auto; }
body.design-express .hero-in { color: var(--ink); padding: 14px 2px 0; min-height: 0; }
body.design-express .hero h1 { font-size: clamp(1.6rem, 6vw, 2.2rem); text-shadow: none; }
body.design-express .hero .sub { text-shadow: none; color: var(--muted); }
body.design-express .hero .chips-row { margin-top: 10px; }
body.design-express .hero .pill:not(.open):not(.closed) { background: var(--line2); color: var(--ink2); backdrop-filter: none; }
body.design-express .hero.notext .hero-in { padding-top: 10px; }
body.design-express .info { box-shadow: none; border-radius: 14px; }
body.design-express .tools { background: var(--surface); padding: 10px 0 0; border-bottom: 1px solid var(--line); box-shadow: 0 6px 12px -10px rgba(0,0,0,.25); }
body.design-express .search { height: 44px; border-radius: 999px; background: var(--line2); border-color: transparent; }
body.design-express .cats { gap: 2px; padding-top: 6px; }
body.design-express .cats button { height: 46px; padding: 0 12px; border: 0; border-radius: 0; background: none; color: var(--muted); font-weight: 700; border-bottom: 3px solid transparent; }
body.design-express .cats button.on { color: var(--ink); background: none; border-bottom-color: var(--accent); }
body.design-express .catarrow { top: 8px; width: 34px; height: 34px; }
body.design-express .section { margin-top: 30px; scroll-margin-top: calc(var(--top) + 118px); }
body.design-express .sec-head { padding-bottom: 6px; }
body.design-express .section h2 { font-size: 1.4rem; font-weight: 850; }
body.design-express .sec-n { color: var(--muted); font-size: .88rem; font-weight: 600; }
body.design-express .list { gap: 0; }
body.design-express .card { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; padding: 16px 0; background: transparent; }
body.design-express .card:hover { box-shadow: none; background: transparent; }
body.design-express .card .nm { font-size: 1.02rem; font-weight: 750; }
body.design-express .card .pr { color: var(--ink); font-weight: 700; }
body.design-express .ph { width: 104px; height: 104px; border-radius: 12px; }
body.design-express .plus { width: 34px; height: 34px; right: 6px; bottom: 6px; background: var(--surface); color: var(--ink); border: 0; box-shadow: 0 2px 10px rgba(0,0,0,.22); }
body.design-express .card.noimg .plus { background: var(--line2); color: var(--ink); }
body.design-express .carousel { grid-auto-columns: 44%; }
body.design-express .carousel .tile { border: 0; box-shadow: none; background: transparent; }
body.design-express .carousel .tile .ph { border-radius: 14px; aspect-ratio: 4 / 3; }
body.design-express .carousel .tile .body { padding: 8px 2px 0; }
body.design-express .carousel .tile .nm { font-size: .98rem; padding-right: 0; }
body.design-express .carousel .tile .ds { display: none; }
body.design-express .carousel .tile .plus { top: 8px; right: 8px; bottom: auto; width: 34px; height: 34px; background: var(--surface); color: var(--ink); }
/* category tiles */
body.design-express .cat-tiles { display: flex; gap: 14px; overflow-x: auto; padding: 18px 2px 4px; scrollbar-width: none; scroll-snap-type: x proximity; }
body.design-express .cat-tiles::-webkit-scrollbar { display: none; }
body.design-express .ct { flex: none; width: 76px; display: flex; flex-direction: column; align-items: center; gap: 6px; scroll-snap-align: start; }
body.design-express .ct-img { width: 68px; height: 68px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--line); transition: transform .15s ease; }
body.design-express .ct:hover .ct-img { transform: scale(1.05); }
body.design-express .ct-img img { width: 100%; height: 100%; object-fit: cover; }
body.design-express .ct-ini { font-weight: 900; font-size: 1.5rem; color: var(--accent-fg); }
body.design-express .ct-nm { font-size: .78rem; font-weight: 700; text-align: center; line-height: 1.15; color: var(--ink2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
body.design-express .tile .ph { width: 100%; height: auto; }            /* the list-thumbnail size above is for rows, not photo cards */
/* two rows side by side only when the menu column itself is wide enough (not the screen): no squeezed names on tablets */
.col-main { container-type: inline-size; }
body.design-express .list.rows { grid-template-columns: minmax(0, 1fr); gap: 0; }
@container (min-width: 640px) { body.design-express .list.rows { grid-template-columns: 1fr 1fr; gap: 0 28px; } }
@media (min-width: 720px) {
  body.design-express .hero img.cover { aspect-ratio: 16 / 5; border-radius: 20px; }
  body.design-express .carousel { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
}
@media (min-width: 1200px) {
  body.design-express .layout { grid-template-columns: 200px minmax(0, 1fr) 340px; gap: 28px; }
  body.design-express .side-cats { display: flex; flex-direction: column; gap: 2px; position: sticky; top: calc(var(--top) + 20px); max-height: calc(100vh - var(--top) - 40px); overflow-y: auto; padding-right: 4px; scrollbar-width: thin; }
  body.design-express .side-h { font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 4px 12px 8px; }
  body.design-express .side-cats button { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; text-align: left; padding: 10px 12px; border-radius: 10px; font-weight: 650; font-size: .94rem; color: var(--ink2); border-left: 3px solid transparent; }
  body.design-express .side-cats button small { color: var(--muted); font-weight: 600; font-size: .8rem; }
  body.design-express .side-cats button:hover { background: var(--line2); }
  body.design-express .side-cats button.on { background: var(--accent-soft); color: var(--ink); font-weight: 800; border-left-color: var(--accent); border-radius: 4px 10px 10px 4px; }
  body.design-express .tools .catwrap, body.design-express .tools .cats { display: none; }
  body.design-express .tools { border-bottom: 0; box-shadow: none; padding-bottom: 8px; }
  body.design-express .cat-tiles { display: none; }
  body.design-express .section { scroll-margin-top: calc(var(--top) + 80px); }
}
@media (prefers-reduced-motion: reduce) { body.design-express .ct-img { transition: none; } }
body.design-galeria .tile .mini-facts { flex-direction: column; gap: 4px; } body.design-galeria .tile .mini-facts .mf-dot { display: none; }

/* ---------- dish window: compact, the quantity and the button always visible ---------- */
.dish-media img { aspect-ratio: 16 / 10; max-height: 36vh; }
.dish-close { position: fixed !important; top: max(12px, env(safe-area-inset-top)) !important; right: 12px !important; left: auto !important; z-index: 6; background: rgba(255,255,255,.92); color: #141210; backdrop-filter: blur(6px); }
.sheet-body.dish-body { padding: 16px 16px 24px; }
.dish-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.dish-top .dish-title { margin-top: 0; font-size: 1.6rem; flex: 1; min-width: 0; }
.dish-top .dish-price { margin-top: 4px; white-space: nowrap; font-size: 1.1rem; }
.dish-body .facts { margin-top: 8px; gap: 6px; } .dish-body .fact { padding: 5px 10px; font-size: .84rem; }
.dish-body .dish-desc { margin-top: 8px; font-size: .96rem; line-height: 1.45; }
/* ingredients: one compact line of chips instead of big circles (same information, a third of the height) */
.ingr { margin-top: 12px; padding: 10px 12px; border-radius: 14px; }
.ingr-h { margin: 0 0 8px; font-size: .72rem; }
.ingr-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.ingr-it { flex-direction: row; gap: 6px; padding: 3px 10px 3px 3px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--accent-line); }
.ingr-ic { width: 26px; height: 26px; box-shadow: none; background: var(--accent-soft); } .ingr-ic svg.fi { width: 16px; height: 16px; stroke-width: 1.8; }
.ingr-nm { font-size: .82rem; font-weight: 650; white-space: nowrap; }
.ingr-note { margin-top: 8px; font-size: .88rem; } .ingr-grid + .ingr-note { padding-top: 8px; }
body.dark .ingr-it { background: var(--line2); } body.dark .ingr-ic { background: var(--accent-soft); box-shadow: none; }
.dish-body .group { margin-top: 18px; } .dish-body .gh b { font-size: 1.08rem; } .dish-body .opt { padding: 12px 14px; }
.dish-body .err:empty { display: none; }
.dish-foot { gap: 10px; padding-top: 10px; box-shadow: 0 -10px 24px -16px rgba(0,0,0,.35); }
.dish-step { flex: none; height: 52px; border-width: 1.5px; }
.dish-step button { width: 44px; height: 50px; } .dish-step button:disabled { opacity: .35; cursor: default; background: none; }
.dish-step .qn { min-width: 26px; font-size: 1.12rem; }
.dish-foot .btn { height: 52px; font-size: 1.02rem; padding: 0 16px; }
.dish-foot .btn .bl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.btn.need { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 2px var(--accent); }
.btn.need .bl { color: var(--accent-fg); }
@media (min-width: 720px) {
  .dish-media img { max-height: 320px; }
  .sheet-body.dish-body { padding: 20px 24px 26px; }
  .dish-close { position: absolute !important; top: 12px !important; }
}

/* ---------- brand color close to the page background: thin outline so buttons never disappear ---------- */
:where(.btn:not(.ghost):not(.need), .tb-cart, .cartbar, .seg button.on, .cats button.on, .tile .plus, .card.noimg .plus, .qtybadge, .primary) { outline: var(--accent-outline, none); outline-offset: -1.5px; }

/* ---------- corner style: rounded (default) or straight ("Rectas"): only radii change, nothing to load ---------- */
body.corners-square { --r: 6px; --r-sm: 4px; }
body.corners-square :is(.hero, .info, .search, .cats button, .card, .tile, .ph, .btn, .cartbar, .tb-cart, .seg, .seg button, .tb-chip, .pill, .fact, .ingr, .ingr-it, .ingr-ic, .tag,
  .opt, .step, .plus, .qtybadge, .cart-card, .panel, .choice-card, .field input, .field textarea, .sec-head.has-img, .alert, .orderfab, .toast, .btn-soft, .catarrow,
  .ct-img, .sheet, .cl .thumb, .tb-cart b, .cartbar .n, .rmap, .sugg, .mapbtn, .info-ico, .cart-empty .ico, .side-cats button, .mini-actions a, .pay .ic, .primary, .pillbtn, .summary .sl .thumb) { border-radius: 4px; }
body.corners-square .tile .ph { border-radius: 0; }
body.corners-square .opt.multi .mark { border-radius: 3px; }
@media (min-width: 720px) { body.corners-square .sheet { border-radius: 8px; } body.corners-square .dish-media img { border-radius: 8px 8px 0 0; } }

.pinstatus.need { color: var(--warn); font-weight: 650; }
