/* ============================================================
   BOMBON — Spanish café menu
   Colours: pimentón red, saffron, azulejo cobalt, olive, crema paper.
   Fonts: RUINA-style cut-paper capitals (Londrina Solid, free) for the wordmark,
          titles, labels, dish names and prices; Lora Medium Italic for descriptions;
          Montserrat for form fields. A licensed "Ruina" web font, if added, is used first.
   ============================================================ */
:root {
  color-scheme: light;
  --rojo: #8E2B1F;          /* pimentón */
  --rojo-deep: #4A1610;
  --azafran: #E8A623;       /* saffron */
  --oro: #B07A1A;
  --cobalto: #1F4B99;       /* azulejo blue */
  --oliva: #5F6E2C;
  --crema: #FBF2DF;
  --arena: #F3E4C2;
  --tinta: #3A1C12;         /* dish names, prices */
  --ink-soft: #6F5646;
  --line: #E8D3A6;
  --veg: #1E8E3E;
  --nonveg: #8B3A1E;
  --accent: var(--cobalto);
  --ruina: "Ruina", "Londrina Solid", "Arial Narrow", sans-serif;
  --wordmark: var(--ruina);
  --display: var(--ruina);
  --cond: var(--ruina);
  --sans: "Montserrat", "Helvetica Neue", system-ui, sans-serif;
  --serif: "Lora", Georgia, serif;
  /* Andalusian azulejo: cobalt eight-point star, saffron centre and corners, olive leaves */
  --tile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Crect width='64' height='64' fill='%23FBF2DF'/%3E%3Cg fill='%231F4B99'%3E%3Crect x='21' y='21' width='22' height='22'/%3E%3Cpath d='M32 16.4L47.6 32 32 47.6 16.4 32z'/%3E%3Cpath d='M0 0h14a14 14 0 0 1-14 14zM64 0v14A14 14 0 0 1 50 0zM0 64V50a14 14 0 0 1 14 14zM64 64H50a14 14 0 0 1 14-14z'/%3E%3C/g%3E%3Ccircle cx='32' cy='32' r='6.5' fill='%23E8A623'/%3E%3Ccircle cx='32' cy='32' r='2.4' fill='%23FBF2DF'/%3E%3Cg fill='%23E8A623'%3E%3Ccircle cx='0' cy='0' r='5'/%3E%3Ccircle cx='64' cy='0' r='5'/%3E%3Ccircle cx='0' cy='64' r='5'/%3E%3Ccircle cx='64' cy='64' r='5'/%3E%3C/g%3E%3Cg fill='%235F6E2C'%3E%3Cellipse cx='32' cy='6' rx='2' ry='4.5'/%3E%3Cellipse cx='32' cy='58' rx='2' ry='4.5'/%3E%3Cellipse cx='6' cy='32' rx='4.5' ry='2'/%3E%3Cellipse cx='58' cy='32' rx='4.5' ry='2'/%3E%3C/g%3E%3C/svg%3E");
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 170px; }
body { margin: 0; background: var(--rojo-deep); color: var(--tinta); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2.5px solid var(--cobalto); outline-offset: 2px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.book { max-width: 620px; margin-inline: auto; background: var(--crema); min-height: 100vh; box-shadow: 0 0 0 1px rgba(0,0,0,.08), 0 20px 60px rgba(0,0,0,.4); }

/* ---------- cover ---------- */
.tiles { height: 34px; background: var(--tile) 0 0 / 34px 34px; border-bottom: 3px solid var(--azafran); }
.cover {
  background: var(--rojo); color: var(--azafran); padding: 30px 20px 26px; text-align: center; display: grid; justify-items: center; gap: 8px;
  background-image: radial-gradient(ellipse at 50% 0%, rgba(255,210,140,.16), transparent 65%);
}
.wordmark { font-family: var(--wordmark); font-weight: 900; font-size: 76px; line-height: .95; letter-spacing: .03em; text-transform: uppercase; margin: 2px 0 0; }
.cover .kicker { font-family: var(--cond); font-weight: 400; font-size: 14px; letter-spacing: .22em; text-transform: uppercase; display: flex; gap: 10px; align-items: center; color: #F6D9A0; white-space: nowrap; }
.cover .kicker i { width: 5px; height: 5px; background: var(--azafran); transform: rotate(45deg); display: inline-block; }
.cover .line { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 19px; line-height: 1.3; max-width: 26ch; text-wrap: balance; color: #FBE7BF; margin-top: 2px; }
.cover .facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; font-family: var(--cond); font-weight: 400; font-size: 15px; letter-spacing: .14em; text-transform: uppercase; color: #F6D9A0; }
.cover .facts span + span::before { content: "✦"; margin-right: 14px; color: var(--azafran); font-size: 11px; vertical-align: 2px; }

/* ---------- sticky controls ---------- */
.bar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--crema); border-bottom: 1px solid var(--line); box-shadow: inset 0 3px 0 var(--accent); transition: box-shadow .25s; }
.table-strip { padding: 7px 16px 6px; background: var(--rojo); color: var(--azafran); text-align: center; font-family: var(--cond); font-weight: 400; font-size: 16px; letter-spacing: .2em; text-transform: uppercase; }
.bar-top { display: flex; align-items: center; gap: 8px; padding: 14px 16px 8px; flex-wrap: wrap; }
.tabs { display: inline-flex; border: 1px solid var(--tinta); border-radius: 999px; padding: 3px; gap: 2px; }
.tabs button { border: 0; background: none; cursor: pointer; padding: 6px 12px; border-radius: 999px; font-family: var(--cond); font-weight: 400; font-size: 16px; letter-spacing: .06em; text-transform: uppercase; color: var(--tinta); }
.tabs button[aria-selected="true"] { background: var(--accent); color: var(--crema); }
.picks-btn { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--oro); background: var(--azafran); color: var(--rojo-deep); cursor: pointer; padding: 6px 12px; min-height: 36px; border-radius: 999px; font-family: var(--cond); font-weight: 400; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.picks-btn[aria-pressed="true"] { background: var(--rojo); border-color: var(--rojo); color: var(--azafran); }
/* Veg | Non-veg: tap one to filter, tap it again to show everything */
.diet { margin-left: auto; display: inline-flex; border: 1px solid var(--tinta); border-radius: 999px; padding: 3px; gap: 2px; }
.diet button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; cursor: pointer; padding: 6px 10px; border-radius: 999px; font-family: var(--cond); font-weight: 400; font-size: 15px; letter-spacing: .05em; text-transform: uppercase; color: var(--tinta); white-space: nowrap; }
.diet button[aria-pressed="true"][data-diet="veg"] { background: var(--veg); color: #fff; }
.diet button[aria-pressed="true"][data-diet="nonveg"] { background: var(--nonveg); color: #fff; }
.search { padding: 0 16px 10px; }
.search input { width: 100%; font: 500 16px var(--sans); color: var(--tinta); background: #FFFAEE; border: 1.5px solid var(--line); border-radius: 10px; padding: 9px 13px; }
.search input::placeholder { color: #A98E78; font-style: italic; }
.search input:focus { outline: none; border-color: var(--cobalto); }
.chips { display: flex; gap: 22px; overflow-x: auto; padding: 0 20px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 0; background: none; cursor: pointer; padding: 8px 0 9px; font-family: var(--display); font-weight: 400; font-size: 19px; letter-spacing: .05em; text-transform: uppercase; line-height: 1.1; white-space: nowrap; color: var(--tinta); opacity: .5; border-bottom: 2px solid transparent; transition: opacity .2s, border-color .2s; }
.chip:hover { opacity: .8; }
.chip.on { opacity: 1; border-bottom-color: var(--rojo); }

/* ---------- diet marks & tags ---------- */
.mark { display: inline-block; flex: none; width: 13px; height: 13px; border: 1.5px solid currentColor; border-radius: 2px; background: #FFFDF7; position: relative; vertical-align: -1px; }
.mark::after { content: ""; position: absolute; inset: 0; margin: auto; }
.mark.veg { color: var(--veg); }
.mark.veg::after { width: 5.5px; height: 5.5px; border-radius: 50%; background: currentColor; }
.mark.nonveg { color: var(--nonveg); }
.mark.nonveg::after { width: 0; height: 0; border-left: 3.5px solid transparent; border-right: 3.5px solid transparent; border-bottom: 6px solid currentColor; }
.diet button[aria-pressed="true"] .mark { border-color: #fff; }
.tag { font-family: var(--cond); font-weight: 400; font-size: 11px; letter-spacing: .12em; padding: 1px 6px; border-radius: 999px; border: 1px solid; line-height: 1.4; }
.tag.egg { color: #8A5A0E; border-color: var(--azafran); background: #FFF4D6; }
.sig { font-family: var(--display); font-size: 14px; letter-spacing: .06em; text-transform: uppercase; font-weight: 400; color: var(--cobalto); }
.sig::before { content: "✦ "; font-size: 11px; vertical-align: 2px; }

/* ---------- pages ---------- */
.pages { padding: 4px 20px 34px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--ink-soft); padding: 16px 0 0; align-items: center; font-family: var(--serif); }
.legend > span { display: inline-flex; align-items: center; gap: 6px; }
section.sec { padding-top: 34px; }
.sec-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.sec-head h2 { margin: 0; font-family: var(--display); font-weight: 900; font-size: 34px; line-height: 1.1; letter-spacing: .03em; text-transform: uppercase; color: var(--rojo); }
.sec-head .en { font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--ink-soft); letter-spacing: .02em; }
.sec-head::after { content: ""; flex: 1 1 40px; height: 1.5px; background: var(--accent); opacity: .55; align-self: center; }
.sec-note { margin: 6px 0 0; font-family: var(--serif); font-weight: 500; font-size: 14.5px; color: var(--ink-soft); font-style: italic; }
.item { display: grid; grid-template-columns: 1fr auto; gap: 4px 14px; padding: 13px 0; border-bottom: 1px dashed var(--line); }
.item:last-child { border-bottom: 0; }
.item h3 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 19px; letter-spacing: .04em; text-transform: uppercase; line-height: 1.45; color: var(--tinta); }
/* flowing text, so the diet mark stays at the start of the first line of a long name */
.item h3 > .mark, .oline-name > .mark { margin-right: 8px; vertical-align: -1px; }
.item h3 > .tag, .item h3 > .sig, .item h3 > .opt { display: inline-block; margin-left: 7px; vertical-align: 1px; }
.item h3 .opt { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 14px; letter-spacing: 0; text-transform: none; color: var(--oro); }
.item .price { font-family: var(--cond); font-weight: 400; font-size: 20px; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; letter-spacing: .04em; color: var(--tinta); }
.item .price.ask { font-family: var(--serif); font-weight: 400; font-style: italic; font-size: 15px; color: var(--ink-soft); letter-spacing: 0; }
.item p { grid-column: 1 / -1; margin: 0; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 14.5px; line-height: 1.45; color: var(--ink-soft); max-width: 58ch; }
.extras { margin-top: 16px; border: 1.5px solid var(--rojo); background: #FFF8E6; }
.extras b { display: block; background: var(--rojo); color: var(--crema); padding: 7px 12px; font-family: var(--cond); font-weight: 400; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; }
.extras ul { list-style: none; margin: 0; padding: 6px 12px 8px; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 0 18px; }
.extras li { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-family: var(--sans); font-weight: 600; font-size: 14px; border-bottom: 1px dotted var(--line); }
.extras li span.n { flex: 1; }
.extras li span.p { font-family: var(--cond); font-weight: 400; font-variant-numeric: tabular-nums; }

/* ★ Signatures view */
.picks-intro { margin: 8px 0 4px; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 15px; line-height: 1.5; color: var(--ink-soft); max-width: 52ch; }
.pick { grid-template-columns: 34px 1fr auto; }
.pick .rank { grid-row: span 3; font-family: var(--display); font-weight: 900; font-size: 26px; line-height: 1; color: var(--oro); }
.pick .from { grid-column: 2 / -1; font-family: var(--cond); font-weight: 400; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--cobalto); }
.pick p { grid-column: 2 / -1; }
.pick .jump { grid-column: 2 / -1; justify-self: start; border: 0; background: none; padding: 4px 0; cursor: pointer; font-family: var(--cond); font-weight: 400; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--rojo); text-decoration: underline; text-underline-offset: 3px; }
.empty { text-align: center; padding: 44px 10px; font-family: var(--display); font-weight: 400; font-size: 21px; color: var(--ink-soft); }
.empty button { display: block; margin: 14px auto 0; border: 1.5px solid var(--rojo); background: none; border-radius: 999px; padding: 8px 18px; min-height: 44px; cursor: pointer; font-family: var(--cond); font-weight: 400; font-size: 15px; letter-spacing: .1em; text-transform: uppercase; color: var(--rojo); font-style: normal; }

footer { background: var(--rojo); color: #F3DDB4; padding: 24px 20px 30px; text-align: center; font-family: var(--serif); font-size: 15px; line-height: 1.5; display: grid; gap: 6px; justify-items: center; }
footer .wordmark { font-size: 44px; color: var(--azafran); margin-bottom: 4px; }
footer .foot-legend { justify-content: center; color: #F3DDB4; padding-top: 6px; }
footer .concept { font-family: var(--display); font-weight: 400; font-size: 19px; color: var(--azafran); margin-top: 6px; }

/* ---------- dish photos ---------- */
.item.has-img { grid-template-columns: 84px 1fr auto; column-gap: 14px; }
.item.has-img > .thumb { grid-row: 1 / span 3; align-self: start; }
.item.has-img > h3 { grid-column: 2; }
.item.has-img > .price { grid-column: 3; }
.item.has-img > p { grid-column: 2 / -1; }
.ordering .item.has-img:not(.pick) > p { grid-column: 2; }   /* beats the general ordering rule further down */
.ordering .item.has-img > .ctl { grid-column: 3; }
.thumb { width: 84px; height: 84px; padding: 0; border: 0; border-radius: 50%; overflow: hidden; cursor: zoom-in; background: var(--arena);
  box-shadow: 0 10px 18px -8px rgba(58,28,18,.55), 0 0 0 3px #fff; transition: transform .2s; }
.thumb:hover { transform: rotate(-6deg) scale(1.04); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* the big dish card, after the reference: floating round photo on a warm frosted card */
.dish { margin: auto; border: 0; padding: 0; width: min(400px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: visible;
  background: transparent; color: var(--tinta); }
.dish[open] { display: block; animation: up .25s ease-out; }
.dish::backdrop { background: rgba(40, 12, 6, .45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.dish-photo { position: relative; z-index: 2; width: 82%; aspect-ratio: 1; margin: 0 auto -38%; border-radius: 50%; overflow: hidden;
  box-shadow: 0 28px 40px -18px rgba(40,12,6,.75), 0 0 0 6px rgba(255,255,255,.7); }
.dish-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dish-body { position: relative; z-index: 1; padding: calc(38% + 30px) 24px 22px; border-radius: 34px;
  background: linear-gradient(160deg, rgba(255,248,236,.92), rgba(246,222,196,.92) 55%, rgba(232,190,160,.92));
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.55); border: 1px solid rgba(255,255,255,.6); }
.dish-x { position: absolute; z-index: 3; top: 8px; right: 0; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.9); color: var(--tinta); font-size: 26px; line-height: 1; box-shadow: 0 4px 12px rgba(0,0,0,.25); }
.dish-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dish-top h2 { margin: 0; font-family: var(--display); font-weight: 900; font-size: 30px; line-height: 1.05; letter-spacing: .02em; text-transform: uppercase; }
.dish-diet { display: inline-flex; align-items: center; gap: 6px; flex: none; font-family: var(--cond); font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.dish-sec { margin: 4px 0 0; font-family: var(--cond); font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--rojo); }
.dish-desc { margin: 10px 0 0; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 16px; line-height: 1.5; color: var(--ink-soft); }
.dish-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: 18px; }
.dish-label { display: block; font-family: var(--serif); font-size: 14px; color: var(--ink-soft); }
.dish-price { font-family: var(--cond); font-size: 30px; line-height: 1.1; letter-spacing: .02em; }
/* black "Add to cart" pill with a white + circle, as in the reference */
.dish-ctl .add { min-height: 56px; padding: 0 8px 0 22px; gap: 14px; border: 0; background: #111; color: #fff; font-size: 17px; border-radius: 999px; }
.dish-ctl .add::after { content: "+"; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; color: #111; font: 400 26px/1 system-ui, sans-serif; }
.dish-ctl .add .pl { display: none; }
.dish-ctl .add .tx::after { content: " to order"; }
.dish-ctl .stepper { background: #111; min-height: 56px; }
.dish-ctl .stepper button { width: 52px; height: 52px; }

/* ---------- table ordering (order.js, only with ?table=N) ---------- */
.ordering .item > .ctl { grid-column: -2; grid-row: 2 / span 3; align-self: start; justify-self: end; }
.ordering .item:not(.pick) > p { grid-column: 1; }
.ordering .pick > .from, .ordering .pick > p, .ordering .pick > .jump { grid-column: 2; }
.add {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; min-width: 84px; padding: 0 16px;
  border-radius: 999px; cursor: pointer; border: 1.5px solid var(--accent); background: transparent; color: var(--accent);
  font-family: var(--cond); font-size: 16px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
}
.stepper { display: inline-flex; align-items: center; min-height: 44px; border-radius: 999px; background: var(--accent); color: var(--crema); }
.stepper button { width: 44px; height: 44px; border: 0; border-radius: 999px; background: none; color: inherit; cursor: pointer; font: 400 24px/1 system-ui, sans-serif; display: grid; place-items: center; padding: 0; }
.stepper .q { min-width: 22px; text-align: center; font: 400 16px var(--cond); font-variant-numeric: tabular-nums; }
.add:active, .stepper button:active, .orderbar button:active, .primary:active { transform: scale(.97); }

.orderbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; justify-content: center; pointer-events: none; padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)); }
.orderbar button {
  pointer-events: auto; width: 100%; max-width: 596px; min-height: 56px; display: flex; align-items: center; gap: 8px; padding: 0 18px;
  border: 0; border-radius: 14px; cursor: pointer; background: var(--rojo); color: var(--crema); box-shadow: 0 10px 28px rgba(0,0,0,.3);
  font-family: var(--cond); font-size: 16px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; text-align: left;
}
.orderbar .dot { opacity: .6; }
.orderbar .cta { margin-left: auto; padding-left: 10px; white-space: nowrap; color: var(--azafran); }
.orderbar .cta::after { content: " →"; }
.has-order body { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }

.sheet { border: 0; padding: 0; margin: auto auto 0; width: 100%; max-width: 620px; max-height: calc(100dvh - 24px); border-radius: 18px 18px 0 0;
  background: var(--crema); color: var(--tinta); font-family: var(--serif); box-shadow: 0 -10px 40px rgba(0,0,0,.3); overflow: hidden; }
.sheet[open] { display: flex; flex-direction: column; animation: up .22s ease-out; }
@keyframes up { from { transform: translateY(24px); opacity: 0; } }
.sheet::backdrop { background: rgba(40, 12, 6, .55); }
.s-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 10px 8px 20px; border-bottom: 1px solid var(--line); }
.s-head h2 { margin: 0; font-family: var(--display); font-weight: 900; font-size: 30px; text-transform: uppercase; letter-spacing: .03em; line-height: 1.15; color: var(--rojo); }
.s-head .pill { font-family: var(--cond); font-weight: 400; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; background: var(--rojo); color: var(--azafran); border-radius: 999px; padding: 3px 10px; margin-left: 8px; vertical-align: 6px; }
.x { width: 44px; height: 44px; flex: none; border: 0; border-radius: 999px; background: none; font-size: 30px; line-height: 1; cursor: pointer; color: var(--ink-soft); }
.s-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 4px 20px 12px; }
.s-foot { padding: 12px 20px calc(14px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); }
.oline { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.oline-name { font-family: var(--display); font-weight: 400; font-size: 18px; letter-spacing: .05em; text-transform: uppercase; line-height: 1.4; }
.oline-total { font-family: var(--cond); font-weight: 400; font-size: 17px; font-variant-numeric: tabular-nums; text-align: right; }
.oline-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; }
.oline-note { flex: 1; min-width: 150px; min-height: 44px; padding: 8px 12px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; font: 16px var(--serif); }
.oline-note:focus, .fld input:focus, .fld textarea:focus { outline: none; border-color: var(--cobalto); }
.fld { display: block; margin-top: 14px; font-family: var(--cond); font-weight: 400; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.fld em { font-family: var(--serif); font-size: 15px; letter-spacing: 0; text-transform: none; color: var(--ink-soft); }
.fld input, .fld textarea { display: block; width: 100%; margin-top: 6px; min-height: 48px; padding: 10px 12px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; font: 16px/1.4 var(--serif); letter-spacing: 0; text-transform: none; resize: vertical; }
.sum { display: grid; grid-template-columns: 1fr auto; gap: 6px 0; padding: 14px 0 0; font-size: 16px; font-variant-numeric: tabular-nums; }
.sum > span:nth-child(even) { text-align: right; padding-left: 12px; font-family: var(--cond); font-weight: 400; }
.sum .grand { padding-top: 8px; margin-top: 2px; border-top: 1.5px solid currentColor; font-weight: 700; font-size: 18px; }
.fine { margin: 10px 0 0; font-style: italic; font-size: 14px; color: var(--ink-soft); text-align: center; }
.primary { width: 100%; min-height: 54px; border: 0; border-radius: 12px; cursor: pointer; background: var(--rojo); color: var(--crema); font-family: var(--cond); font-size: 18px; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; }
.primary:disabled { opacity: .55; cursor: default; }
.error { margin: 0 0 10px; padding: 10px 12px; border-radius: 10px; border: 1px solid #E3A396; background: #FBE6E1; color: #8A1C0C; font-size: 15px; line-height: 1.45; }
.done { text-align: center; padding: 26px 0 16px; }
.done .tick { width: 64px; height: 64px; margin: 0 auto 10px; border-radius: 50%; display: grid; place-items: center; background: var(--veg); color: #fff; font-size: 32px; }
.done h3 { margin: 0 0 6px; font-family: var(--display); font-weight: 900; font-size: 34px; text-transform: uppercase; letter-spacing: .03em; color: var(--rojo); }
.done p { margin: 0 0 6px; font-size: 17px; }
.done .ref { font-family: var(--cond); font-weight: 400; letter-spacing: .1em; text-transform: uppercase; font-size: 14px; color: var(--ink-soft); }

/* order tracking */
.orderbar.tracking button { background: var(--tinta); }
.live-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; background: var(--azafran); box-shadow: 0 0 0 0 rgba(232,166,35,.6); animation: pulse 1.6s infinite; vertical-align: 1px; }
.live-dot.preparing { background: #F0B44C; }
.live-dot.served, .live-dot.paid { background: #58C27D; animation: none; }
.live-dot.cancelled { background: #E5484D; animation: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(232,166,35,0); } 100% { box-shadow: 0 0 0 0 rgba(232,166,35,0); } }
.orders-h { margin: 18px 0 8px; font-family: var(--display); font-weight: 400; font-size: 20px; letter-spacing: .04em; text-transform: uppercase; color: var(--rojo); }
.orders-below:empty { display: none; }
.orders-below { margin-top: 18px; border-top: 1px solid var(--line); }
.track { margin: 10px 0; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: #FFFAEE; }
.track-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.track-head b { font-family: var(--cond); font-weight: 400; font-size: 17px; letter-spacing: .06em; }
.track-head span { font-size: 14px; color: var(--ink-soft); }
.steps { list-style: none; margin: 12px 0 8px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); position: relative; }
.steps::before { content: ""; position: absolute; left: 16.6%; right: 16.6%; top: 7px; height: 2px; background: var(--line); }
.steps li { position: relative; display: grid; justify-items: center; gap: 6px; font-family: var(--cond); font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.steps .dot { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2px solid var(--line); position: relative; z-index: 1; }
.steps li.done { color: var(--tinta); }
.steps li.done .dot { background: var(--veg); border-color: var(--veg); }
.steps li.now .dot { box-shadow: 0 0 0 4px rgba(30,142,62,.2); }
.track-items { margin: 0; font-size: 14px; color: var(--ink-soft); font-style: italic; }
.track-cancel { margin: 8px 0; color: #8A1C0C; font-weight: 500; }
.primary.ghost { background: transparent; color: var(--rojo); border: 1.5px solid var(--rojo); margin-top: 12px; }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }

@media (max-width: 420px) {
  .bar-top { gap: 8px; padding: 12px 12px 8px; }
  .tabs button { padding: 6px 10px; font-size: 15px; }
  .picks-btn { padding: 6px 11px; }
  .diet { margin-left: 0; }
  .search { padding: 0 12px 10px; }
  .pages { padding: 4px 16px 34px; }
  .wordmark { font-size: 64px; }
  .cover .kicker { font-size: 12px; letter-spacing: .14em; gap: 8px; }
  .sec-head h2 { font-size: 30px; }
  .orderbar .tbl { display: none; }
}
@media (prefers-reduced-motion: reduce) { .sheet[open] { animation: none; } .chip { transition: none; } }

/* ---------- print: all three tabs, one after another ---------- */
@media print {
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body { background: #fff; }
  .book { max-width: none; box-shadow: none; }
  .bar, .orderbar, .sheet, .ctl, .picks-btn { display: none !important; }
  .printing-tab { break-before: page; padding-top: 10mm; }
  .printing-tab:first-child { break-before: auto; }
  .printing-tab > h1 { margin: 0; font-family: var(--display); font-weight: 900; font-size: 40px; color: var(--rojo); text-align: center; }
  .item { break-inside: avoid; }
  footer { break-inside: avoid; }
}
