/* Salgados do Tio Val — v6
   Estrutura: fontes · tokens · base · componentes · home · pedido · telas grandes */

/* ---------- Fontes (hospedadas no próprio site) ---------- */
@font-face { font-family: 'Bricolage Grotesque'; font-weight: 700; font-display: swap; src: url('/assets/fonts/bricolage-grotesque-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Bricolage Grotesque'; font-weight: 800; font-display: swap; src: url('/assets/fonts/bricolage-grotesque-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'Figtree'; font-weight: 400; font-display: swap; src: url('/assets/fonts/figtree-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Figtree'; font-weight: 500; font-display: swap; src: url('/assets/fonts/figtree-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Figtree'; font-weight: 600; font-display: swap; src: url('/assets/fonts/figtree-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Figtree'; font-weight: 700; font-display: swap; src: url('/assets/fonts/figtree-latin-700-normal.woff2') format('woff2'); }

/* ---------- Tokens ---------- */
/* Marca: bordô #7A1E27, dourado #E7A33A. Tema claro por padrão; escuro com paleta própria. */
:root {
  color-scheme: light;
  --ouro: #E7A33A;
  --ouro-claro: #F2C46D;
  --verde: #1E7A45;
  --verde-escuro: #17633A;
  --on-band: #FFF7EA;
  --on-band-soft: #F3DCCB;
  --bg: #FBF4E8;
  --surface: #FFFDF8;
  --field: #FFFFFF;
  --sunken: #F4E7D3;
  --track: #EFE3D0;
  --ink: #2B1A16;
  --text: #4E3D37;
  --muted: #6B5750;
  --line: #EADCC6;
  --line-strong: #D9C7AC;
  --accent: #7A1E27;
  --accent-hover: #5A141B;
  --solid: #7A1E27;
  --solid-hover: #5A141B;
  --on-solid: #FFF7EA;
  --band: #7A1E27;
  --footer: #5A141B;
  --ok: #1E6B3E;
  --ok-line: #9CCDAE;
  --alert: #A3341F;
  --alert-line: #E3A190;
  --alert-bg: #FBE3DC;
  --alert-ink: #7C2414;
  --soft-bg: #FFF6E3;
  --soft-bg-hover: #FFEFCF;
  --soft-ink: #6B3E12;
  --bar-glass: rgba(255, 253, 248, .97);
  --header-glass: rgba(251, 244, 232, .94);
  --shadow: rgba(43, 26, 22, .08);

  --display: 'Bricolage Grotesque', 'Arial Narrow', Arial, sans-serif;
  --body: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --raio: 18px;
  --raio-sm: 12px;
  --gutter: 20px;
  --max: 1120px;
  --header: 64px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
  --bg: #17110F;
  --surface: #221915;
  --field: #2B201B;
  --sunken: #2E221C;
  --track: #3A2C25;
  --ink: #F6EBDD;
  --text: #DCCBBB;
  --muted: #B8A393;
  --line: #3A2C25;
  --line-strong: #54423A;
  --accent: #F2C46D;
  --accent-hover: #FFD98F;
  --solid: #9A2A34;
  --solid-hover: #B2333E;
  --on-solid: #FFF7EA;
  --band: #5E161D;
  --footer: #2A0B0F;
  --ok: #7FD3A0;
  --ok-line: #2F6B47;
  --alert: #FF9C85;
  --alert-line: #8A3A2A;
  --alert-bg: #4A1D16;
  --alert-ink: #FFC9BB;
  --soft-bg: #33261A;
  --soft-bg-hover: #3D2D1E;
  --soft-ink: #F2C46D;
  --bar-glass: rgba(34, 25, 21, .97);
  --header-glass: rgba(23, 17, 15, .92);
  --shadow: rgba(0, 0, 0, .35);
  color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #17110F;
  --surface: #221915;
  --field: #2B201B;
  --sunken: #2E221C;
  --track: #3A2C25;
  --ink: #F6EBDD;
  --text: #DCCBBB;
  --muted: #B8A393;
  --line: #3A2C25;
  --line-strong: #54423A;
  --accent: #F2C46D;
  --accent-hover: #FFD98F;
  --solid: #9A2A34;
  --solid-hover: #B2333E;
  --on-solid: #FFF7EA;
  --band: #5E161D;
  --footer: #2A0B0F;
  --ok: #7FD3A0;
  --ok-line: #2F6B47;
  --alert: #FF9C85;
  --alert-line: #8A3A2A;
  --alert-bg: #4A1D16;
  --alert-ink: #FFC9BB;
  --soft-bg: #33261A;
  --soft-bg-hover: #3D2D1E;
  --soft-ink: #F2C46D;
  --bar-glass: rgba(34, 25, 21, .97);
  --header-glass: rgba(23, 17, 15, .92);
  --shadow: rgba(0, 0, 0, .35);
  color-scheme: dark;
}

/* Logo: versão clara no tema escuro */
.logo-dark { display: none !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-light { display: none !important; }
  :root:not([data-theme="light"]) .logo-dark { display: block !important; }
}
:root[data-theme="dark"] .logo-light { display: none !important; }
:root[data-theme="dark"] .logo-dark { display: block !important; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.5; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; font-family: var(--display); line-height: 1.08; letter-spacing: -0.015em; text-wrap: balance; }
p { margin: 0; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--ouro); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--ink); color: var(--bg); font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; color: var(--bg); }

/* ---------- Componentes ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 20px; border: 1.5px solid transparent; border-radius: 14px; font-weight: 700; font-size: 16px; line-height: 1.1; text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, transform .1s; }
.btn:active { transform: translateY(1px); }
.btn--whatsapp { background: var(--verde); color: #fff; min-height: 54px; font-size: 17px; }
.btn--whatsapp:hover { background: var(--verde-escuro); color: #fff; }
.btn--app { background: var(--field); border-color: var(--line-strong); color: var(--ink); }
.btn--app:hover { border-color: var(--ink); color: var(--ink); }
.btn--dark { background: var(--ink); color: var(--bg); }
.btn--dark:hover { background: var(--text); color: var(--bg); }
.btn--outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: var(--bg); }
.btn--dashed { width: 100%; min-height: 52px; background: transparent; border: 1.5px dashed var(--accent); color: var(--accent); }
.btn--dashed:hover { background: var(--field); }
.btn--soft { width: 100%; min-height: 44px; background: var(--soft-bg); border: 1.5px dashed #B9742A; color: var(--soft-ink); font-weight: 600; font-size: 15px; }
.btn--soft:hover { background: var(--soft-bg-hover); }
.btn--block { width: 100%; }

.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dot--ifood { background: #EA1D2C; }
.dot--99 { background: #FFC800; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }

.link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; text-underline-offset: 4px; }
.link-btn { min-height: 44px; padding: 0 6px; border: 0; background: none; color: var(--accent); font-weight: 600; font-size: 15px; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.link-btn--muted { color: var(--muted); }

.kicker { margin-bottom: 8px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.section { padding: 56px 0 8px; }
.section--tight { padding-bottom: 56px; }
.section-title { font-size: clamp(28px, 7vw, 40px); font-weight: 800; }
.lead { font-size: 17px; color: var(--text); }

/* ---------- Cabeçalho ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--header-glass); backdrop-filter: saturate(1.4) blur(8px); -webkit-backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.site-header__inner { height: var(--header); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: baseline; gap: 12px; text-decoration: none; }
.brand img { width: 150px; height: auto; }
.site-nav { display: none; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--accent); color: var(--accent); font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.header-phone:hover { background: var(--solid); border-color: var(--solid); color: var(--on-solid); }

/* ---------- Home: topo ---------- */
.hero { padding-bottom: 8px; }
.hero__grid { display: grid; gap: 0; padding: 0; }
.hero__photo { margin: 0; }
.hero__photo img { width: 100%; height: 250px; object-fit: cover; object-position: center 70%; }
.hero__text { display: flex; flex-direction: column; gap: 14px; padding: 22px var(--gutter) 0; }
.hours { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--text); }
.hours__dot { width: 8px; height: 8px; border-radius: 50%; background: #2F8F55; flex: none; }
.hero h1 { font-size: clamp(34px, 9.4vw, 54px); font-weight: 800; line-height: 1.03; letter-spacing: -.02em; }

.channels { display: grid; gap: 12px; margin-top: 8px; }
.channel { display: flex; flex-direction: column; gap: 10px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--raio); }
.channel h2 { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.channel p { font-size: 15px; color: var(--text); }
.channel .btn--whatsapp { margin-top: 2px; }
.size-pick { display: flex; flex-direction: column; gap: 8px; }
.size-pick__label { font-size: 14px; font-weight: 600; color: var(--ink); }
.size-pick__options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.size-pick__options a { min-height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 12px; border: 1.5px solid var(--line-strong); background: var(--field); color: var(--ink); font-family: var(--display); font-weight: 800; font-size: 18px; text-decoration: none; }
.size-pick__options a:hover { border-color: var(--accent); color: var(--accent); }
.size-pick__options .size-pick__alt { grid-column: 1 / -1; font-family: var(--body); font-size: 15px; font-weight: 600; }
.app-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

/* ---------- Home: cardápio ---------- */
.flavors { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
.flavor { display: flex; flex-direction: column; gap: 8px; font-weight: 600; font-size: 15px; line-height: 1.25; }
.flavor img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; background: var(--sunken); }
.flavor-list { list-style: none; margin: 20px 0 0; padding: 0; border-top: 1px solid var(--line); }
.flavor-list li { padding: 13px 0; border-bottom: 1px solid var(--line); font-weight: 600; }

.churros-card { margin-top: 24px; display: grid; background: var(--surface); border: 1px solid var(--line); border-radius: var(--raio); overflow: hidden; }
.churros-card img { width: 100%; height: 210px; object-fit: cover; }
.churros-card > div { padding: 18px; display: flex; flex-direction: column; gap: 4px; }
.churros-card h3 { font-size: 22px; font-weight: 700; }
.churros-card p { color: var(--text); font-size: 15px; }

/* ---------- Home: encomendas ---------- */
.band { margin-top: 56px; padding: 40px 0; background: var(--band); color: var(--on-band); }
.band__inner { display: grid; gap: 20px; justify-items: start; }
.band .section-title { margin-bottom: 10px; color: var(--on-band); }
.band p { color: var(--on-band-soft); font-size: 17px; max-width: 620px; }
.btn--light { background: var(--on-band); color: #7A1E27; }
.btn--light:hover { background: var(--ouro-claro); color: #3A1013; }

/* ---------- Home: onde estamos ---------- */
.place { display: grid; gap: 28px; }
.place__line { margin-top: 6px; color: var(--text); }
.place__line strong { color: var(--ink); }
.place__actions { margin-top: 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.area { padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--raio); }
.area h3 { font-size: 18px; font-weight: 700; }
.area p { margin-top: 12px; font-size: 14px; color: var(--muted); }
.chips { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 6px 12px; border-radius: 999px; background: var(--sunken); font-size: 14px; font-weight: 600; }

.map { position: relative; min-height: 280px; aspect-ratio: 4 / 3; max-width: 100%; border-radius: var(--raio); overflow: hidden; border: 1px solid var(--line); background: var(--sunken); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__fallback { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 14px; }

/* ---------- Home: região ---------- */
.region__intro { margin-top: 12px; max-width: 680px; }
.areas { margin-top: 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.area-card { padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--raio); }
.area-card h3 { font-size: 18px; font-weight: 700; }
.area-card p { margin-top: 6px; font-size: 15px; color: var(--text); }
.region__note { margin-top: 16px; font-size: 15px; color: var(--muted); }

/* ---------- Home: dúvidas ---------- */
.faq { display: grid; gap: 20px; }
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; font-weight: 700; font-size: 17px; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--sunken); color: var(--accent); font-size: 20px; font-weight: 600; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 18px; max-width: 680px; color: var(--text); }

.kicker--band { color: var(--ouro-claro); }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--footer); color: var(--on-band-soft); padding: 36px 0 calc(36px + env(safe-area-inset-bottom)); }
.site-footer__inner { display: flex; flex-direction: column; gap: 16px; }
.site-footer img { width: 180px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.site-footer a { display: inline-flex; min-height: 40px; align-items: center; color: var(--on-band); font-weight: 600; text-underline-offset: 4px; }
.site-footer a:hover { color: var(--ouro-claro); }
.site-footer p { font-size: 14px; }
.site-footer__copy { color: #D9B7A6; font-size: 13px; }

/* Barra rápida (celular) */
.quickbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--bar-glass); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px var(--shadow); }
.quickbar .btn { min-height: 50px; }

/* ---------- Página de pedido ---------- */
.page-order .site-header__inner { display: grid; grid-template-columns: 1fr auto 1fr; }
.back { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding-right: 10px; color: var(--ink); font-weight: 600; text-decoration: none; justify-self: start; }
.brand--center { justify-self: center; }
.brand--center img { width: 134px; }
.header-spacer { justify-self: end; }

.order { padding-top: 22px; padding-bottom: 110px; }
.order__intro { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.order__intro h1 { font-size: clamp(28px, 7.4vw, 38px); font-weight: 800; }
.order__intro p { color: var(--text); font-size: 15px; }
.order__form { display: grid; gap: 14px; }

.panel { padding: 18px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--raio); display: flex; flex-direction: column; gap: 14px; }
.panel h2 { font-size: 21px; font-weight: 700; letter-spacing: -.01em; }
.panel__head { display: flex; flex-direction: column; gap: 2px; }
.panel__hint { font-size: 14px; color: var(--muted); }
.empty { color: var(--muted); font-size: 15px; }

.trays { display: flex; flex-direction: column; gap: 14px; }
.tray { display: flex; flex-direction: column; gap: 14px; padding: 16px 14px; border: 1.5px solid var(--line-strong); border-radius: 16px; background: var(--field); }
.tray.is-complete { border-color: var(--ok-line); }
.tray.is-over { border-color: var(--alert-line); }
.tray__head { display: flex; align-items: center; justify-content: space-between; }
.tray__title { font-size: 18px; font-weight: 700; }
.tray__size { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px 12px; }
.tray__label { font-size: 14px; font-weight: 600; color: var(--text); }
.tray__size .stepper { justify-self: end; }
.quick--sizes { grid-column: 1 / -1; }
.tray__status { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; font-weight: 600; }
.tray__status strong { color: var(--accent); }
.tray.is-complete .tray__status strong { color: var(--ok); }
.tray.is-over .tray__status strong { color: var(--alert); }
.bar { margin-top: 6px; height: 8px; border-radius: 999px; background: var(--track); overflow: hidden; }
.bar__fill { height: 100%; width: 0; background: var(--ouro); border-radius: inherit; transition: width .2s; }
.tray.is-complete .bar__fill { background: #2F8F55; }
.tray.is-over .bar__fill { background: var(--alert); }
.tray__tip { font-size: 13px; color: var(--muted); }

.flavor-rows { list-style: none; margin: 0; padding: 0; }
.flavor-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--track); }
.flavor-row:last-child { border-bottom: 1px solid var(--track); }
.flavor-row label { font-weight: 600; font-size: 15px; line-height: 1.25; }

.stepper { display: inline-flex; align-items: center; gap: 4px; flex: none; }
.stepper__btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; border: 1.5px solid var(--line-strong); background: var(--field); color: var(--accent); font-size: 22px; line-height: 1; cursor: pointer; touch-action: manipulation; }
.stepper__btn:hover { border-color: var(--accent); }
.stepper__btn--plus { background: var(--solid); border-color: var(--solid); color: var(--on-solid); }
.stepper__btn--plus:hover { background: var(--solid-hover); }
.stepper__btn:disabled { opacity: .35; cursor: default; }
.stepper__input { width: 52px; height: 44px; border: 0; border-radius: 10px; background: transparent; text-align: center; font-size: 18px; font-weight: 700; -moz-appearance: textfield; appearance: textfield; }
.stepper__input::-webkit-outer-spin-button, .stepper__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper__input:focus { background: var(--sunken); }
.stepper__value { min-width: 84px; text-align: center; font-size: 15px; color: var(--text); }
.stepper__value strong { font-family: var(--display); font-size: 24px; font-weight: 800; color: var(--ink); }

.quick { display: flex; flex-wrap: wrap; gap: 6px; }
.quick button { min-width: 56px; min-height: 40px; padding: 0 12px; border-radius: 10px; border: 1.5px solid var(--line-strong); background: var(--field); font-weight: 700; font-size: 15px; cursor: pointer; }
.quick button:hover { border-color: var(--accent); }
.quick button[aria-pressed="true"] { background: var(--solid); border-color: var(--solid); color: var(--on-solid); }
.quick--sizes button { flex: 1; }

.churros { display: flex; align-items: center; gap: 14px; }
.churros img { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; flex: none; }
.churros__body { display: flex; flex-direction: column; gap: 2px; }
.churros__controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }

.field { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label, .field legend { font-size: 14px; font-weight: 600; color: var(--ink); }
.field legend { margin-bottom: 6px; padding: 0; }
.optional { font-weight: 400; color: var(--muted); }
.field input[type="text"], .field input[type="date"], .field select, .field textarea { width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--line-strong); border-radius: var(--raio-sm); background: var(--field); font-size: 16px; }
.field textarea { resize: vertical; min-height: 72px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(231, 163, 58, .45); }
.field [aria-invalid="true"] { border-color: var(--alert); }
.field__error { font-size: 14px; font-weight: 600; color: var(--alert); }
.field__note { margin-top: 8px; font-size: 14px; color: var(--muted); }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }

.segmented { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.segmented--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.segmented span { min-height: 46px; display: flex; align-items: center; justify-content: center; padding: 0 8px; border-radius: var(--raio-sm); border: 1.5px solid var(--line-strong); background: var(--field); font-size: 15px; font-weight: 600; text-align: center; line-height: 1.15; }
.segmented input:checked + span { background: var(--solid); border-color: var(--solid); color: var(--on-solid); }
.segmented input:focus-visible + span { outline: 3px solid var(--ouro); outline-offset: 2px; }
.segmented input:disabled + span { opacity: .45; }

.summary { padding: 18px 16px; border-radius: var(--raio); background: var(--sunken); display: flex; flex-direction: column; gap: 12px; }
.summary h2 { font-size: 15px; font-family: var(--body); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.summary__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 16px; }
.summary__error { padding: 10px 12px; border-radius: 10px; background: var(--alert-bg); color: var(--alert-ink); font-weight: 600; font-size: 15px; }
.summary__actions { display: flex; justify-content: space-between; flex-wrap: wrap; }
.summary__preview summary { min-height: 40px; display: flex; align-items: center; cursor: pointer; font-weight: 600; font-size: 15px; color: var(--text); }
.summary__preview pre { margin: 6px 0 0; padding: 12px; border-radius: 10px; background: var(--surface); white-space: pre-wrap; font-family: var(--body); font-size: 14px; line-height: 1.45; color: var(--text); }
.summary__note { font-size: 13px; color: var(--muted); }

.sendbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--bar-glass); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px var(--shadow); }
.sendbar__text { font-weight: 700; font-size: 15px; line-height: 1.2; }
.sendbar .btn { min-height: 50px; padding: 0 24px; }

/* ---------- Telas médias ---------- */
@media (min-width: 560px) {
  .flavors { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .flavor-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 20px; }
  .churros-card { grid-template-columns: 1.1fr 1fr; align-items: center; }
  .churros-card img { height: 100%; min-height: 220px; }
  .churros-card > div { padding: 28px; }
}

/* ---------- Telas grandes ---------- */
@media (min-width: 860px) {
  :root { --gutter: 32px; --header: 72px; }
  .brand img { width: 176px; }
  .site-nav { display: flex; gap: 28px; margin-left: auto; }
  .site-nav a { font-weight: 600; color: var(--ink); text-decoration: none; }
  .site-nav a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 6px; }

  .hero { padding: 40px 0 24px; }
  .hero__grid { grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; padding: 0 var(--gutter); }
  .hero__photo { order: 2; position: sticky; top: calc(var(--header) + 24px); }
  .hero__photo img { height: auto; aspect-ratio: 1; border-radius: 24px; object-position: center 60%; }
  .hero__text { padding: 8px 0 0; gap: 18px; }
  .channels { grid-template-columns: 1fr; }

  .section { padding-top: 88px; }
  .section--tight { padding-bottom: 88px; }
  .band { margin-top: 88px; padding: 64px 0; }
  .band__inner { grid-template-columns: 1fr auto; align-items: center; gap: 48px; }
  .size-pick__options { grid-template-columns: repeat(4, minmax(0, 1fr)) auto; }
  .size-pick__options .size-pick__alt { grid-column: auto; padding: 0 14px; }
  .place { grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start; }
  .place__actions { max-width: 420px; }
  .faq { grid-template-columns: 320px 1fr; gap: 48px; align-items: start; }
  .site-footer__inner { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 16px 40px; }
  .site-footer nav { justify-content: flex-end; }
  .site-footer p { grid-column: 1 / -1; }
  .quickbar { display: none !important; }

  /* Pedido: formulário + resumo fixo ao lado */
  .page-order .order { padding-bottom: 64px; }
  .order__intro { max-width: 640px; margin-bottom: 28px; }
  .order__form { grid-template-columns: minmax(0, 1fr) 360px; gap: 18px 32px; align-items: start; }
  .order__form > .panel { grid-column: 1; }
  .summary { grid-column: 2; grid-row: 1 / span 3; position: sticky; top: calc(var(--header) + 20px); padding: 22px; }
  .panel { padding: 24px; }
  .tray { padding: 20px; }
  .sendbar { display: none; }
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.notfound { min-height: 100vh; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 18px; max-width: 560px; }
.notfound h1 { font-size: clamp(30px, 8vw, 44px); font-weight: 800; }
