/* =========================================================================
   Destampa · base.css
   Tema "Atomic TV Dinner": lanchonete retro-futurista dos anos 50/60.
   Creme, vermelho cereja, verde-agua, mostarda e cromado. Bebas Neue nos titulos,
   Yellowtail no letreiro e nos chamados, DM Sans no texto.
   Este arquivo e a base comum. Paginas da loja: shop.css. Sacola/checkout/conta: flow.css.
   ========================================================================= */

:root {
  /* Cores */
  --cream: #FFF4E0;          /* fundo */
  --cream-2: #FBE7C6;        /* fundo alternado */
  --paper: #FFFBF4;          /* cartoes */
  --ink: #2B1D17;            /* texto e contornos */
  --ink-soft: #6A5245;       /* texto secundario (5.9:1 no creme) */
  --line: #E6D3B3;           /* divisorias suaves */
  --cherry: #D3313A;         /* principal; texto branco 4.9:1 */
  --cherry-ink: #B8232D;     /* vermelho para TEXTO no creme (5.8:1) */
  --cherry-soft: #FBD9D3;
  --teal: #2BB3A3;           /* decorativo, nunca texto pequeno */
  --teal-deep: #146B63;      /* verde-agua para texto e fundos com texto claro (6.3:1) */
  --mint: #CDEDE6;
  --mustard: #F4B63F;        /* estrelas e destaques; texto ink por cima */
  --mustard-soft: #FCE3A6;
  --freezer: #D6EEF3;        /* azul gelo, para "congelado" */
  --strawberry-soft: #F9D6E3; /* sobremesas (milk-shake de morango) */
  --lime-soft: #E3F1C2;      /* bebidas (smoothie verde) */
  --ok: #1E7A45;
  --ok-soft: #D8F0DF;
  --danger: #B8232D;
  --danger-soft: #FBDAD6;

  /* Cromado (bordas de bandeja, frisos) */
  --chrome: linear-gradient(180deg, #FFFFFF 0%, #DDE2E6 38%, #9AA3AB 52%, #E9ECEF 70%, #C4CBD1 100%);
  --chrome-flat: #C9CED3;

  /* Tipografia */
  --font-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Bebas Neue', 'Oswald', 'Arial Narrow', sans-serif;
  --font-script: 'Yellowtail', 'Brush Script MT', cursive;

  /* Medidas */
  --radius: 18px;
  --radius-sm: 10px;
  --radius-lg: 28px;
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1200px;
  --shadow-hard: 4px 4px 0 var(--ink);
  --shadow-hard-sm: 2px 2px 0 var(--ink);
  --shadow-soft: 0 10px 30px -12px rgba(43, 29, 23, 0.35);
  --ease-pop: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
body {
  margin: 0;
  background-color: var(--cream);
  /* Brilhos atomicos bem leves no fundo */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cg fill='%232BB3A3' fill-opacity='0.10'%3E%3Cpath d='M30 18l2.4 9.6L42 30l-9.6 2.4L30 42l-2.4-9.6L18 30l9.6-2.4z'/%3E%3Cpath d='M118 96l1.6 6.4 6.4 1.6-6.4 1.6-1.6 6.4-1.6-6.4-6.4-1.6 6.4-1.6z'/%3E%3C/g%3E%3Ccircle cx='96' cy='34' r='2.2' fill='%23D3313A' fill-opacity='0.12'/%3E%3Ccircle cx='40' cy='124' r='2.2' fill='%23F4B63F' fill-opacity='0.22'/%3E%3C/svg%3E");
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--cherry-ink); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.05; }
p { margin: 0 0 0.8em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--teal-deep); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }
s { text-decoration-thickness: 1.5px; }

.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;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--cream); padding: 10px 16px; border-radius: var(--radius-sm);
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--cream); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 760px; }

/* ---------- Tipografia ---------- */
.display, .page-head__title, .section-head__title {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 0.95;
  text-transform: uppercase;
}
.kicker {
  font-family: var(--font-script);
  font-size: 1.55rem;
  line-height: 1.1;
  color: var(--cherry-ink);
  margin: 0 0 0.15em;
  transform: rotate(-2deg);
  transform-origin: left bottom;
  display: inline-block;
}
.script { font-family: var(--font-script); font-weight: 400; text-transform: none; letter-spacing: 0; }
.lead { font-size: 1.15rem; color: var(--ink-soft); }
.muted { color: var(--ink-soft); }
.small { font-size: 0.875rem; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Topo de pagina e secoes ---------- */
.page-head { padding: clamp(28px, 5vw, 56px) 0 clamp(16px, 3vw, 28px); }
.page-head__title { font-size: clamp(2.6rem, 7vw, 4.6rem); }
.page-head__intro { max-width: 60ch; margin-top: 0.6em; font-size: 1.1rem; color: var(--ink-soft); }

.section { padding: clamp(40px, 7vw, 88px) 0; }
.section--alt { background: var(--cream-2); }
.section--mint { background: var(--mint); }
.section-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 16px 32px; margin-bottom: clamp(20px, 3vw, 36px);
}
.section-head__title { font-size: clamp(2.2rem, 5.5vw, 3.6rem); }
.section-head__intro { max-width: 56ch; margin-top: 0.5em; color: var(--ink-soft); }

/* ---------- Barra do topo e cabecalho ---------- */
.topbar {
  background: var(--teal-deep);
  color: var(--cream);
  font-size: 0.875rem;
  text-align: center;
  padding: 8px var(--gutter);
}
.topbar p { margin: 0; }
.topbar strong { color: var(--mustard); }

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--cream);
  border-bottom: 3px solid var(--ink);
  box-shadow: 0 3px 0 var(--cherry);
}
.site-header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px 28px;
  min-height: 74px;
}
/* Logo oficial (public/img/marca/logo-selo.svg, versao leve do vetor do dono). Nunca encolhe na
   largura: a grade do cabecalho apertava a imagem e o logo saia deformado. */
.wordmark { display: inline-flex; align-items: center; text-decoration: none; padding: 4px 0; flex-shrink: 0; }
.wordmark__logo { height: 60px; width: auto; max-width: none; flex-shrink: 0; transition: transform 0.35s var(--ease-pop); transform-origin: 50% 70%; }
.wordmark:hover .wordmark__logo { transform: rotate(-3deg) scale(1.04); }
@media (max-width: 480px) { .wordmark__logo { height: 46px; } }

.site-nav ul { list-style: none; display: flex; gap: 6px; justify-content: center; }
.site-nav a {
  display: block; padding: 8px 14px; border-radius: 999px;
  font-family: var(--font-display); font-size: 1.35rem; letter-spacing: 0.06em;
  color: var(--ink); text-decoration: none; line-height: 1; white-space: nowrap;
}
.site-nav a:hover { background: var(--mustard-soft); color: var(--ink); }
.site-nav a[aria-current='page'] { background: var(--ink); color: var(--cream); }
.site-nav__sempre { box-shadow: inset 0 0 0 2px var(--cherry); }
/* Rotulos curtos onde o menu aperta: ao lado do logo entre 1080 e 1219 px, e no celular. */
.nav-short { display: none; }
@media (max-width: 1219px) and (min-width: 1080px), (max-width: 640px) {
  .nav-long { display: none; }
  .nav-short { display: inline; }
}

.site-header__tools { display: flex; align-items: center; gap: 10px; }
.tool-link {
  display: flex; flex-direction: column; line-height: 1.15; text-decoration: none;
  color: var(--ink); font-weight: 700; font-size: 0.95rem; padding: 4px 8px; border-radius: var(--radius-sm);
}
.tool-link__kicker { font-weight: 400; font-size: 0.75rem; color: var(--ink-soft); }
.tool-link:hover, .tool-link.is-current { background: var(--mustard-soft); color: var(--ink); }
.cart-link {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px 9px 12px; border-radius: 999px;
  background: var(--cherry); color: #fff; text-decoration: none; font-weight: 700;
  border: 2px solid var(--ink); box-shadow: var(--shadow-hard-sm);
  transition: transform 0.15s, box-shadow 0.15s;
}
.cart-link:hover { color: #fff; transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--ink); }
.cart-link__icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linejoin: round; }
.cart-link__count {
  min-width: 26px; height: 26px; padding: 0 6px; border-radius: 999px;
  display: inline-grid; place-items: center;
  background: var(--mustard); color: var(--ink); border: 2px solid var(--ink);
  font-size: 0.85rem; line-height: 1; font-variant-numeric: tabular-nums;
}

/* Abaixo de 1080 px os 5 itens do menu nao cabem ao lado do logo e da sacola: o menu desce para
   a segunda linha do cabecalho e rola sozinho se ainda nao couber (a pagina nunca rola de lado). */
@media (max-width: 1079px) {
  .site-header__inner { grid-template-columns: 1fr auto; padding-top: 6px; }
  .site-nav { position: relative; grid-column: 1 / -1; grid-row: 2; margin: 0 calc(var(--gutter) * -1); overflow-x: auto; }
  .site-nav ul { justify-content: flex-start; padding: 0 var(--gutter) 10px; }
  .site-nav a { font-size: 1.2rem; padding: 7px 12px; }
}
@media (max-width: 860px) {
  .topbar__extra { display: none; }
}
@media (max-width: 480px) {
  .tool-link__kicker { display: none; }
  .cart-link__label { display: none; }
  .cart-link { padding: 8px 10px; }
}
/* Celular: menu mais justo para os 5 itens caberem (ou quase, abaixo de uns 400 px ele rola). */
@media (max-width: 520px) {
  .site-nav ul { gap: 2px; }
  .site-nav a { font-size: 1.1rem; padding: 7px 9px; letter-spacing: 0.04em; }
}

/* ---------- Botoes ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 0.85em 1.5em; min-height: 48px;
  border-radius: 999px; border: 2px solid var(--ink);
  background: var(--cherry); color: #fff;
  font-family: var(--font-body); font-weight: 800; font-size: 0.95rem;
  letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; line-height: 1.1;
  box-shadow: var(--shadow-hard);
  cursor: pointer;
  transition: transform 0.15s var(--ease-pop), box-shadow 0.15s, background-color 0.15s;
}
.btn:hover { color: #fff; transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn:disabled, .btn[aria-disabled='true'] { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: var(--shadow-hard-sm); }
.btn--teal { background: var(--teal-deep); }
.btn--cream { background: var(--paper); color: var(--ink); }
.btn--cream:hover { color: var(--ink); background: #fff; }
.btn--mustard { background: var(--mustard); color: var(--ink); }
.btn--mustard:hover { color: var(--ink); }
.btn--small { min-height: 38px; padding: 0.55em 1.05em; font-size: 0.8rem; box-shadow: var(--shadow-hard-sm); }
.btn--small:hover { box-shadow: 3px 3px 0 var(--ink); }
.btn--block { width: 100%; }
.btn--link {
  background: none; border: 0; box-shadow: none; padding: 0; min-height: 0;
  color: var(--cherry-ink); text-decoration: underline; text-transform: none; letter-spacing: 0; font-weight: 700;
}
.btn--link:hover { transform: none; box-shadow: none; color: var(--ink); }

/* ---------- Estrela atomica ---------- */
.burst { position: relative; display: inline-grid; place-items: center; flex: none; text-align: center; }
.burst--sm { width: 72px; height: 72px; }
.burst--md { width: 104px; height: 104px; }
.burst--lg { width: 168px; height: 168px; }
.burst__shape { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.burst__shape polygon { stroke: var(--ink); stroke-width: 2.5; stroke-linejoin: round; }
.burst--mustard .burst__shape polygon { fill: var(--mustard); }
.burst--cherry .burst__shape polygon { fill: var(--cherry); }
.burst--teal .burst__shape polygon { fill: var(--teal); }
.burst__text {
  position: relative; font-family: var(--font-display); line-height: 0.9; color: var(--ink);
  display: flex; flex-direction: column; align-items: center; transform: rotate(-8deg);
}
.burst--cherry .burst__text { color: #fff; }
.burst--sm .burst__text { font-size: 1.15rem; }
.burst--md .burst__text { font-size: 1.7rem; }
.burst--lg .burst__text { font-size: 3rem; }
.burst__text small { font-family: var(--font-body); font-weight: 800; font-size: 0.42em; letter-spacing: 0.04em; text-transform: uppercase; margin-top: 2px; }
.burst--lg .burst__text small { font-size: 0.3em; }

/* ---------- Faixa xadrez ---------- */
.checker {
  height: 18px;
  background-color: var(--cream);
  background-image:
    linear-gradient(45deg, var(--ink) 25%, transparent 25%, transparent 75%, var(--ink) 75%),
    linear-gradient(45deg, var(--ink) 25%, transparent 25%, transparent 75%, var(--ink) 75%);
  background-size: 18px 18px;
  background-position: 0 0, 9px 9px;
}
.checker--cherry {
  background-image:
    linear-gradient(45deg, var(--cherry) 25%, transparent 25%, transparent 75%, var(--cherry) 75%),
    linear-gradient(45deg, var(--cherry) 25%, transparent 25%, transparent 75%, var(--cherry) 75%);
}

/* ---------- Etiquetas ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 999px; border: 1.5px solid var(--ink);
  font-size: 0.75rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1.3;
  background: var(--paper); color: var(--ink); white-space: nowrap;
}
.chip--fit { background: var(--mint); }
.chip--low-carb { background: var(--mustard-soft); }
.chip--sem-alergenos { background: var(--freezer); }
.chip--dia-a-dia { background: var(--cherry-soft); }
.chip--sobremesas { background: var(--strawberry-soft); }
.chip--bebidas { background: var(--lime-soft); }
.chip--tag { background: var(--paper); border-style: dashed; }
.chip--free { background: var(--ok-soft); border-color: var(--ok); color: var(--ok); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- Precos ---------- */
.price { margin: 0; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price__now { font-family: var(--font-display); font-size: 1.9rem; line-height: 1; letter-spacing: 0.02em; color: var(--ink); }
.price__was { color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- Avisos ---------- */
.notice {
  border: 2px solid var(--ink); border-radius: var(--radius-sm); padding: 12px 16px; margin: 0 0 20px;
  background: var(--paper); box-shadow: var(--shadow-hard-sm);
}
.notice--ok { background: var(--ok-soft); }
.notice--error { background: var(--danger-soft); }
.notice--info { background: var(--freezer); }
.notice p { margin: 0; }
.notice p + p, .notice p + ul, .notice ul + p { margin-top: 6px; }
.notice ul { padding-left: 1.2em; }

/* ---------- Formularios ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 700; font-size: 0.95rem; }
.field__opt { font-weight: 400; color: var(--ink-soft); }
.field input, .field select, .field textarea, .input {
  width: 100%; min-height: 48px; padding: 10px 14px;
  background: #fff; border: 2px solid var(--ink); border-radius: var(--radius-sm);
  box-shadow: inset 2px 2px 0 rgba(43, 29, 23, 0.08);
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus {
  outline: none; border-color: var(--teal-deep); box-shadow: 0 0 0 3px var(--mint);
}
.field__hint { margin: 0; font-size: 0.85rem; color: var(--ink-soft); }
.field__error { margin: 0; font-size: 0.875rem; font-weight: 700; color: var(--danger); }
.field--error input, .field--error select, .field--error textarea { border-color: var(--danger); background: #FFF7F6; }
.fields-row { display: grid; gap: 0 16px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--cherry); flex: none; }

/* ---------- Painel de "papel" (cartoes genericos) ---------- */
.panel {
  background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius);
  padding: clamp(18px, 3vw, 28px); box-shadow: var(--shadow-hard);
}

/* ---------- Rodape ---------- */
.site-footer { margin-top: clamp(48px, 8vw, 96px); background: var(--teal-deep); color: var(--cream); }
.checker--footer {
  background-color: var(--teal-deep);
  background-image:
    linear-gradient(45deg, var(--cream) 25%, transparent 25%, transparent 75%, var(--cream) 75%),
    linear-gradient(45deg, var(--cream) 25%, transparent 25%, transparent 75%, var(--cream) 75%);
}
.site-footer a { color: var(--cream); }
.site-footer a:hover { color: var(--mustard); }
.site-footer__top {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px;
  padding: clamp(32px, 5vw, 56px) 0 24px; border-bottom: 2px dashed rgba(255, 244, 224, 0.35);
}
.site-footer__brand { margin: 0; }
.site-footer__brand img { height: 84px; width: auto; }
.site-footer__tagline { margin: 0; font-size: 1.1rem; flex: 1 1 240px; }
.site-footer__burst { transform: rotate(10deg); }
.site-footer__cols {
  display: grid; gap: 28px; padding: 32px 0;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.site-footer__head { font-family: var(--font-display); font-size: 1.5rem; letter-spacing: 0.06em; margin-bottom: 10px; color: var(--mustard); }
.site-footer ul { list-style: none; display: grid; gap: 6px; font-size: 0.95rem; }
.site-footer__base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
  padding: 18px 0 28px; border-top: 2px dashed rgba(255, 244, 224, 0.35); font-size: 0.85rem;
}
.site-footer__base p { margin: 0; }
.site-footer__legal { display: grid; gap: 4px; min-width: 0; }
.site-footer__company { overflow-wrap: anywhere; }
.site-footer__cnpj { white-space: nowrap; }
.site-footer__replays { display: flex; flex-wrap: wrap; gap: 6px 18px; }

/* ---------- Paginas de erro ---------- */
.error-page { padding: clamp(48px, 9vw, 120px) 0; }
.error-page__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 32px 56px; }
.error-page__burst { transform: rotate(-10deg); }
.error-page__copy { flex: 1 1 320px; }
.error-page__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }

/* ---------- Aviso de alergicos (linha Sem Alergenos) ---------- */
.allergy-note {
  margin: 0 0 20px; padding: 16px 18px; border: 3px solid var(--danger); border-radius: var(--radius);
  background: var(--danger-soft); box-shadow: 4px 4px 0 var(--danger);
}
.allergy-note p { margin: 0 0 6px; }
.allergy-note__title { font-family: var(--font-display); font-size: 1.5rem; letter-spacing: 0.04em; color: var(--danger); line-height: 1; }
.allergy-note__strong { font-weight: 800; color: var(--danger); }

/* Aviso em tela cheia (pop-up animado): public/css/allergy.css */

/* ---------- Utilidades ---------- */
.stack > * + * { margin-top: 16px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.center { text-align: center; }
.hide { display: none !important; }
