:root {
  color-scheme: dark;
  --page: #121513;
  --panel: #1b201c;
  --raised: #262e27;
  --deep: #101512;
  --text: #f8f2e7;
  --muted: #c3c7ba;
  --line: #3d473e;
  --accent: #eed0a0;
  --accent-ink: #1d261e;
  --edge: #5c654f;
}
body[data-model="pizzaria"] {
  --page: #191212;
  --panel: #251918;
  --raised: #382622;
  --deep: #1a1311;
  --line: #4a3530;
  --muted: #d7c4b8;
  --accent: #f4ad84;
  --accent-ink: #381e16;
  --edge: #6c4940;
}
body[data-model="lanchonete"] {
  --page: #171411;
  --panel: #241d16;
  --raised: #34291d;
  --deep: #16130f;
  --line: #4c3b2c;
  --muted: #d6c6af;
  --accent: #ffd679;
  --accent-ink: #2c2112;
  --edge: #6b573a;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 20px; }
body { margin: 0; background: var(--page); color: var(--text); font: 1rem/1.55 system-ui, sans-serif; }
a { color: inherit; text-underline-offset: 4px; }
a:focus-visible, button:focus-visible, pre:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
button { color: inherit; font: inherit; cursor: pointer; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
h1, h2, .wordmark { font-family: Georgia, serif; font-weight: 400; }
h1, h2 { letter-spacing: -.042em; line-height: 1.02; }
.shell { width: min(1260px, calc(100% - 72px)); margin-inline: auto; }
.skip { position: absolute; z-index: 3; left: 1rem; top: 1rem; padding: .65rem 1rem; background: var(--raised); transform: translateY(-155%); }
.skip:focus { transform: none; }
.demo-header { border-bottom: 1px solid var(--line); }
.header-inner { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.wordmark { color: var(--accent); font-size: 1.55rem; text-decoration: none; line-height: 1; }
nav { display: flex; align-items: center; gap: 23px; font-size: .86rem; font-weight: 650; }
nav a { text-decoration: none; }
nav a:hover, .demo-footer a:hover { text-decoration: underline; }
.order-link { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.order-count { display: grid; place-items: center; min-width: 25px; height: 25px; background: var(--raised); border-radius: 50%; font-size: .73rem; }

.model-picker { margin: 22px 0 16px; }
.model-heading { display: flex; gap: 12px; justify-content: space-between; align-items: center; margin-bottom: 11px; }
.model-picker h2 { font-size: 1.55rem; }
.model-picker nav { gap: 8px; }
.model-picker nav a { flex: 1; min-width: 0; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 7px; background: var(--panel); line-height: 1.25; }
.model-picker nav a strong { font-size: .95rem; }
.model-picker nav a span { font-size: .76rem; color: var(--muted); }
.model-picker nav a[aria-current="page"] { background: var(--raised); border-color: var(--accent); color: var(--accent); }
.phone-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex-shrink: 0; min-height: 36px; padding: 5px 11px; border: 1px solid var(--edge); border-radius: 6px; background: transparent; color: var(--accent); font-size: .8rem; font-weight: 700; }
.phone-toggle:hover { background: var(--raised); }
.phone-icon { display: inline-block; width: 11px; height: 16px; position: relative; border: 1.5px solid currentColor; border-radius: 3px; }
.phone-icon::after { content: ""; position: absolute; bottom: 2px; width: 3px; left: 2.5px; border-top: 1px solid currentColor; }

.showcase { isolation: isolate; position: relative; display: grid; min-height: 480px; align-items: center; border-radius: 13px; overflow: hidden; background: var(--deep); border: 1px solid var(--line); }
.showcase-copy { position: relative; z-index: 1; padding: 46px clamp(26px, 5vw, 76px); width: min(59%, 630px); }
.showcase::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--deep) 7%, color-mix(in srgb, var(--deep) 97%, transparent) 24%, color-mix(in srgb, var(--deep) 60%, transparent) 43%, transparent 70%); }
.eyebrow { font-size: .76rem; text-transform: uppercase; letter-spacing: .17em; color: var(--accent); font-weight: 730; }
.showcase h1 { font-size: clamp(3.3rem, 6.45vw, 6.7rem); max-width: 9ch; margin: 12px 0 17px; }
.showcase p:not(.eyebrow) { color: #eee5d8; max-width: 34ch; font-size: 1rem; }
.hero-photo { position: absolute; inset: 0 0 0 auto; display: block; width: 80%; height: 100%; object-fit: cover; object-position: 64% center; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 10px 15px; min-height: 44px; border: 1px solid transparent; border-radius: 6px; background: var(--accent); color: var(--accent-ink); font-size: .88rem; font-weight: 750; text-decoration: none; text-align: center; }
.button:hover:not(:disabled) { filter: brightness(.91); }
.button:disabled { opacity: .48; cursor: default; }
.hero-button { margin-top: 22px; }

.catalog { padding-block: 52px 66px; }
.catalog-heading { margin-bottom: 22px; }
.catalog-heading h2 { font-size: clamp(2.7rem, 5vw, 4.4rem); margin-bottom: 9px; }
.catalog-heading p, .item p { color: var(--muted); }
.shop-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(245px, 295px); gap: clamp(18px, 3vw, 37px); align-items: start; }
.filters { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 15px; }
.filters button { min-height: 39px; background: transparent; border: 1px solid var(--edge); border-radius: 22px; padding: 6px 13px; font-size: .82rem; font-weight: 650; }
.filters button[aria-pressed="true"] { border-color: var(--accent); color: var(--accent-ink); background: var(--accent); }
.menu-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.item { overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.item-photo { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.item-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.item-meta { color: var(--accent); font-size: .75rem; font-weight: 680; margin-bottom: 5px; }
.item h3 { font-family: Georgia, serif; font-weight: 400; font-size: clamp(1.28rem, 2.4vw, 1.82rem); line-height: 1.12; margin-bottom: 5px; }
.item p { font-size: .87rem; }
.item-buy { margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 7px; }
.item-buy strong { font-size: 1rem; white-space: nowrap; }
.qty { display: grid; grid-template-columns: 40px 27px 40px; align-items: center; text-align: center; font-weight: 650; font-size: .85rem; }
.qty button { height: 42px; padding: 0; border: 1px solid var(--edge); border-radius: 6px; background: var(--raised); font-weight: 750; font-size: 1.15rem; }
.qty button:last-child { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.qty button:hover:not(:disabled) { filter: brightness(.9); }
.qty button:disabled { opacity: .43; cursor: default; }

.cart { position: sticky; top: 20px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); padding: 19px; }
.cart h2 { font-size: 2rem; margin-bottom: 14px; }
#cart-items { font-size: .88rem; color: var(--muted); }
#cart-items ul { margin: 0; padding-left: 17px; }
#cart-items li + li { margin-top: 5px; }
.cart-total { margin-block: 15px 11px; display: block; border-top: 1px solid var(--line); padding-top: 11px; }
.checkout { width: 100%; }
.cart-note { margin-top: 9px; font-size: .75rem; color: var(--muted); }
.cart pre { margin: 12px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; padding: 10px; background: var(--page); border: 1px solid var(--line); border-radius: 5px; font: .82rem/1.5 system-ui,sans-serif; }
.demo-footer { background: var(--panel); border-top: 1px solid var(--line); padding: 20px 0; font-size: .88rem; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; }
.demo-footer a { font-weight: 700; }
.mobile-order { display: none; }

.phone-dialog { width: min(432px, calc(100vw - 18px)); max-height: calc(100dvh - 18px); margin: auto; padding: 12px; border: 1px solid var(--edge); border-radius: 15px; background: var(--panel); color: var(--text); overflow: auto; }
.phone-dialog::backdrop { background: rgb(0 0 0 / .82); }
.phone-toolbar { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-bottom: 9px; }
.phone-toolbar h2 { font-size: 1.42rem; margin-bottom: 4px; }
.phone-toolbar p { color: var(--muted); font-size: .78rem; }
.phone-close { width: 37px; height: 37px; border: 1px solid var(--line); border-radius: 6px; background: var(--raised); font-size: 1.35rem; line-height: 1; }
.phone-frame { display: flex; justify-content: center; border: 4px solid var(--edge); background: var(--page); border-radius: 17px; overflow: hidden; }
.phone-frame iframe { display: block; height: min(690px, calc(100dvh - 107px)); width: 100%; max-width: 390px; border: 0; background: var(--page); }

@media (max-width: 820px) {
  .shell { width: calc(100% - 36px); }
  .shop-layout { grid-template-columns: 1fr; }
  .cart { position: static; }
  .showcase { min-height: 380px; }
  .model-picker nav a { align-items: flex-start; flex-direction: column; gap: 4px; }
}
@media (max-width: 550px) {
  .shell { width: calc(100% - 28px); }
  .header-inner { min-height: 56px; }
  .wordmark { font-size: 1.35rem; }
  .desktop-link { display: none; }
  .model-picker { margin-top: 15px; }
  .model-picker h2 { font-size: 1.22rem; }
  .model-picker nav { gap: 5px; }
  .model-picker nav a { padding: 9px 6px; }
  .model-picker nav a strong { font-size: .79rem; }
  .model-picker nav a span { font-size: .65rem; }
  .phone-toggle { font-size: .68rem; padding-inline: 7px; gap: 5px; }
  .showcase { display: flex; flex-direction: column-reverse; align-items: stretch; min-height: 0; }
  .showcase::after { display: none; }
  .showcase-copy { width: 100%; padding: 19px 17px 22px; }
  .showcase h1 { font-size: clamp(2.35rem, 9vw, 3.65rem); max-width: none; margin: 8px 0 12px; }
  .showcase p:not(.eyebrow) { font-size: .88rem; }
  .hero-photo { position: static; width: 100%; height: auto; aspect-ratio: 1.8; object-position: right center; }
  .hero-button { margin-top: 16px; }
  .catalog { padding-block: 36px 43px; }
  .menu-grid { grid-template-columns: 1fr; }
  .item-photo { aspect-ratio: 1.5; }
  .qty { grid-template-columns: 44px 28px 44px; }
  .qty button { height: 44px; }
  body.has-items { padding-bottom: 71px; }
  .mobile-order { display: flex; position: fixed; inset: auto 9px 9px; z-index: 2; padding: 10px 14px; min-height: 45px; justify-content: space-between; align-items: center; gap: 10px; border-radius: 7px; background: var(--accent); color: var(--accent-ink); text-decoration: none; font-size: .86rem; box-shadow: 0 3px 14px #0008; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

#order-form { display: grid; gap: 13px; }
.fulfillment, .delivery-fields { min-inline-size: 0; border: 0; padding: 0; margin: 0; }
.fulfillment legend, .delivery-fields legend { margin-bottom: 7px; padding: 0; font-size: .86rem; font-weight: 750; }
.fulfillment-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.fulfillment-options label { display: flex; gap: 6px; align-items: center; min-height: 40px; padding: 5px 7px; border: 1px solid var(--edge); border-radius: 6px; font-size: .82rem; cursor: pointer; }
.fulfillment-options label:has(input:checked) { border-color: var(--accent); background: var(--raised); color: var(--accent); }
.fulfillment-options input { margin: 0; accent-color: var(--accent); }
.delivery-fields label { display: grid; gap: 3px; margin-bottom: 8px; font-size: .78rem; }
.delivery-fields label small { color: var(--muted); font-size: inherit; }
.delivery-fields input { width: 100%; min-width: 0; min-height: 40px; background: var(--page); color: var(--text); border: 1px solid var(--edge); border-radius: 5px; padding: 6px 8px; font: .95rem system-ui, sans-serif; }
.delivery-fields input:focus-visible, .fulfillment-options input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.address-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 7px; }
.delivery-fields .cart-note { margin-top: 3px; }
@media (min-width: 821px) {
  .cart:has(#delivery-fields:not([hidden])) { max-height: calc(100dvh - 40px); overflow: auto; }
}

.live-form { display: grid; gap: 12px; }
.live-form #delivery-fields[hidden], #shop[hidden], #tracking[hidden] { display: none; }
#tracking { margin: 32px 0; max-width: 560px; }
#tracking h1 { margin: 0 0 12px; }
#tracking a { display: inline-block; margin: 12px; }
