/* D'Luh Festas — site público. Linha das referências (Cake Shop, Seja Doce, Sweets App):
   fundo claro, foto e vídeo na frente, cards com botão redondo, carrinho ao lado do cardápio.
   Marca: terracota + Playfair Display; texto em Urbanist. */

:root {
  --terracota: #c0725a;
  --terracota-forte: #a45b45;   /* botões e texto: 5:1 com branco, 4.6:1 no blush */
  --terracota-funda: #8c4d3a;
  --salmao: #eecabd;
  --rosa: #f7e3dc;
  --blush: #fdf3f0;
  --branco: #ffffff;
  --cafe: #2a1810;
  --cafe-2: #6b4a3e;
  --linha: #ecd9d1;
  --verde: #1e6b4f;
  --verde-fundo: #e3f1ea;
  --dourado: #b8903c;
  --erro: #b3261e;
  --erro-fundo: #fff3f0;
  --verde-forte: #17573f;
  --placeholder: #9a7b70;

  --titulo: "Playfair Display", Georgia, serif;
  --texto: "Urbanist", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-s: 10px;
  --r-m: 16px;
  --r-l: 24px;
  --r-xl: 32px;

  --sombra: 0 1px 2px rgb(42 24 16 / 0.06), 0 12px 32px -14px rgb(42 24 16 / 0.28);
  --sombra-alta: 0 2px 4px rgb(42 24 16 / 0.08), 0 24px 48px -18px rgb(42 24 16 / 0.35);

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  --gutter: clamp(16px, 4vw, 40px);
  --largura: 1240px;
  --topo-h: 76px;

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--topo-h) + 16px);
  scrollbar-color: var(--salmao) var(--blush);
  /* As cenas presas do GSAP (pin-spacer) medem a janela com a barra de rolagem do Windows e passam
     15px da tela: sem isso, aparece rolagem de lado no desktop. */
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--branco);
  color: var(--cafe);
  font-family: var(--texto);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

img, svg, video { display: block; max-width: 100%; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-underline-offset: 0.2em; }
h1, h2, h3 { text-wrap: balance; }

::selection { background: var(--salmao); color: var(--cafe); }

:focus-visible { outline: 3px solid var(--terracota-forte); outline-offset: 3px; border-radius: 8px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.icone { width: 1.25em; height: 1.25em; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.num { font-variant-numeric: tabular-nums lining-nums; }

.pular {
  position: absolute; left: 16px; top: -64px; z-index: 100; padding: 10px 16px;
  background: var(--cafe); color: var(--branco); border-radius: var(--r-s); font-weight: 700; text-decoration: none;
}
.pular:focus { top: 12px; }

.moldura { width: min(100% - 2 * var(--gutter), var(--largura)); margin-inline: auto; }
.secao { padding-block: clamp(40px, 6vw, 80px); }
.secao--blush { background: var(--blush); }

.titulo {
  font-family: var(--titulo); font-weight: 700; color: var(--cafe);
  font-size: clamp(2rem, 4.2vw, 3.125rem); line-height: 1.08; letter-spacing: -0.015em; margin: 0;
}
.titulo em { font-style: italic; color: var(--terracota-forte); }
.titulo--m { font-size: clamp(1.625rem, 3vw, 2.25rem); }
.cabeca-secao { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; margin-bottom: clamp(24px, 3.4vw, 40px); }
.cabeca-secao p { margin: 10px 0 0; max-width: 52ch; color: var(--cafe-2); font-size: 1.125rem; }

/* ── Botões ────────────────────────────────────────────────────── */

.botao {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 26px; border-radius: 999px; border: 2px solid transparent;
  background: var(--terracota-forte); color: var(--branco);
  font-weight: 700; font-size: 1.0625rem; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, transform 160ms var(--ease-out);
  touch-action: manipulation; user-select: none;
}
.botao:active { transform: scale(0.97); }
.botao--contorno { background: transparent; color: var(--terracota-forte); border-color: var(--terracota-forte); }
.botao--branco { background: var(--branco); color: var(--cafe); }
.botao--verde { background: var(--verde); }
.botao--pequeno { min-height: 44px; padding: 8px 18px; font-size: 0.9375rem; }
.botao--grande { min-height: 58px; padding: 14px 32px; font-size: 1.125rem; }
.botao--largo { width: 100%; }
.botao[disabled] { background: var(--rosa); color: var(--cafe-2); cursor: not-allowed; }
.botao[disabled]:active { transform: none; }
@media (hover: hover) and (pointer: fine) {
  .botao:not([disabled]):hover { background: var(--terracota-funda); }
  .botao--contorno:not([disabled]):hover { background: var(--terracota-forte); color: var(--branco); }
  .botao--branco:not([disabled]):hover { background: var(--rosa); }
  .botao--verde:not([disabled]):hover { background: var(--verde-forte); }
}

/* Botão redondo de adicionar (cards). */
.mais {
  display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 50%;
  background: var(--terracota-forte); color: var(--branco); border: 0; cursor: pointer;
  transition: background-color 180ms ease, transform 160ms var(--ease-out);
}
.mais .icone { width: 22px; height: 22px; stroke-width: 2.5; }
.mais:active { transform: scale(0.92); }
@media (hover: hover) and (pointer: fine) { .mais:hover { background: var(--terracota-funda); } }

.link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; color: var(--terracota-forte); text-decoration: underline; text-decoration-thickness: 2px; }

/* ── Topo ──────────────────────────────────────────────────────── */

.topo {
  position: sticky; top: 0; z-index: 40; background: rgb(255 255 255 / 0.94);
  border-bottom: 1px solid var(--linha);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
}
.topo__dentro { display: flex; align-items: center; gap: clamp(8px, 2vw, 28px); height: var(--topo-h); }
.marca { margin-right: auto; display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--cafe); }
.marca__d { display: block; width: 62px; height: 47px; flex: none; }
.marca__d img, .marca__svg { width: 100%; height: 100%; display: block; overflow: visible; }
.marca__pincel { fill: none; stroke: #fff; stroke-linecap: round; stroke-linejoin: round; }
.marca__nome { font-family: var(--titulo); font-weight: 700; font-size: 1.375rem; letter-spacing: -0.01em; white-space: nowrap; }
.marca__nome em { font-style: italic; font-weight: 600; color: var(--terracota-forte); }
.menu { display: flex; align-items: center; gap: 4px; }
.menu a { padding: 10px 12px; border-radius: 999px; font-weight: 600; text-decoration: none; color: var(--cafe-2); transition: color 160ms ease, background-color 160ms ease; }
.menu a:hover { color: var(--cafe); background: var(--blush); }
.menu a[aria-current="page"] { color: var(--terracota-forte); }
.sacola {
  position: relative; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--blush); color: var(--cafe); text-decoration: none; flex: none;
}
.sacola .icone { width: 22px; height: 22px; }
/* "Acompanhar pedido" em ícone, só no celular (no largo ele está no menu). */
.so-estreito { display: none; }
.menu + .so-estreito { margin-left: auto; }
.sacola[aria-current="page"] { background: var(--salmao); }
@media (max-width: 900px) { .so-estreito { display: grid; } .so-estreito + .sacola { margin-left: 0; } }
.sacola__n {
  position: absolute; top: -2px; right: -2px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  display: grid; place-items: center; background: var(--terracota-forte); color: var(--branco);
  font-size: 0.75rem; font-weight: 800; border: 2px solid var(--branco);
}

/* ── Abertura com vídeo ────────────────────────────────────────── */

.abertura { padding-top: clamp(12px, 2vw, 24px); }
.banner {
  position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r-xl);
  min-height: min(78svh, 720px); display: grid; align-items: end;
  background: var(--cafe);
}
.banner::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgb(42 24 16 / 0.85) 0%, rgb(42 24 16 / 0.51) 45%, rgb(42 24 16 / 0.05) 80%),
              linear-gradient(0deg, rgb(42 24 16 / 0.55), transparent 50%);
}

/* Chuva de fotos e vídeos do salão: colunas verticais caindo em velocidades diferentes. */
.chuva {
  position: absolute; inset: -6% -3%; z-index: -2;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px;
  transform: rotate(-4deg) scale(1.06);
}
.chuva__col { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; align-content: start; animation: chuva-cai 40s linear infinite; }
.chuva__col--b, .chuva__col--d { animation-duration: 30s; margin-top: -12%; }
.chuva__col--c, .chuva__col--e { animation-duration: 48s; margin-top: -30%; }
.chuva .tile { aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden; background: var(--terracota-funda); }
.chuva .tile img, .chuva .tile video { width: 100%; height: 100%; object-fit: cover; }
.banner.parado .chuva__col { animation-play-state: paused; }
@keyframes chuva-cai { from { transform: translateY(-50%); } to { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .chuva__col { animation: none; } }

.banner__texto { padding: clamp(28px, 5vw, 64px); max-width: 700px; color: var(--branco); }
.banner h1 {
  font-family: var(--titulo); font-weight: 700; margin: 0;
  font-size: clamp(2.625rem, 6vw, 4.75rem); line-height: 1.02; letter-spacing: -0.02em;
}
.banner h1 em { font-style: italic; font-weight: 600; color: var(--salmao); }
.banner p { margin: 18px 0 0; font-size: clamp(1.0625rem, 1.5vw, 1.25rem); max-width: 46ch; color: rgb(255 255 255 / 0.92); }
.banner__infos { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 20px 0 0; padding: 0; list-style: none; font-weight: 600; font-size: 0.9375rem; }
.banner__infos li { display: inline-flex; align-items: center; gap: 8px; }
.banner__acoes { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.banner .banner__extra { max-width: none; margin-top: 14px; font-size: 0.9375rem; color: rgb(255 255 255 / 0.85); }
.banner__extra a { color: var(--branco); font-weight: 700; display: inline-flex; align-items: center; gap: 4px; min-height: 44px; vertical-align: middle; text-underline-offset: 3px; }
.banner__extra .icone { width: 18px; height: 18px; }
.banner__pausa {
  position: absolute; right: 20px; bottom: 20px; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; border: 0; cursor: pointer;
  background: rgb(255 255 255 / 0.18); color: var(--branco);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.banner__pausa:hover { background: rgb(255 255 255 / 0.3); }

/* ── Categorias com foto ───────────────────────────────────────── */

.categorias-foto { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(12px, 2vw, 24px); }
.cat-foto a { display: grid; gap: 12px; text-decoration: none; text-align: center; }
.cat-foto__img {
  aspect-ratio: 1; border-radius: var(--r-l); overflow: hidden; background: var(--rosa);
  transition: transform 300ms var(--ease-out), box-shadow 300ms var(--ease-out);
}
.cat-foto__img img { width: 100%; height: 100%; object-fit: cover; }
.cat-foto strong { font-weight: 700; font-size: 1.0625rem; }
.cat-foto span { display: block; color: var(--cafe-2); font-size: 0.9375rem; margin-top: -8px; }
@media (hover: hover) and (pointer: fine) { .cat-foto a:hover .cat-foto__img { transform: translateY(-4px); box-shadow: var(--sombra); } }

/* ── Card de produto ───────────────────────────────────────────── */

.grade-produtos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: clamp(14px, 2vw, 24px); }
.card {
  position: relative; display: flex; flex-direction: column; background: var(--branco);
  border-radius: var(--r-l); box-shadow: var(--sombra); overflow: hidden;
  transition: box-shadow 260ms var(--ease-out), transform 260ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .card:hover { box-shadow: var(--sombra-alta); transform: translateY(-3px); } }
.card__foto { aspect-ratio: 1; background: var(--rosa); overflow: hidden; }
.card__foto img { width: 100%; height: 100%; object-fit: cover; }
.card__foto--vazia { display: grid; place-items: center; color: var(--salmao); }
.card__foto--vazia .marca-vazia, .cat-foto__img .marca-vazia { width: 46%; height: auto; opacity: 0.55; filter: saturate(0.6); object-fit: contain; }
.cat-foto__img:has(.marca-vazia) { display: grid; place-items: center; }
.card__corpo { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px 18px; flex: 1; }
.card__nome { margin: 0; font-weight: 700; font-size: 1.125rem; line-height: 1.25; }
.card__desc { margin: 0; color: var(--cafe-2); font-size: 0.9375rem; line-height: 1.4; }
.card__pe { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 12px; }
.card__preco { margin: 0; line-height: 1.2; }
.card__preco small { display: block; color: var(--cafe-2); font-size: 0.875rem; font-weight: 500; white-space: nowrap; }
.card__preco strong { font-weight: 800; font-size: 1.25rem; color: var(--terracota-forte); }
.selo {
  position: absolute; top: 12px; left: 12px; padding: 4px 12px; border-radius: 999px;
  background: var(--branco); color: var(--cafe); font-size: 0.8125rem; font-weight: 700; box-shadow: var(--sombra);
}
.selo--verde { background: var(--verde); color: var(--branco); }

/* ── Bolos por tamanho ─────────────────────────────────────────── */

.aros { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.aro {
  display: grid; justify-items: center; gap: 6px; text-align: center; padding: 20px 12px 18px;
  background: var(--branco); border-radius: var(--r-l); box-shadow: var(--sombra);
}
.aro svg { width: 100%; max-width: 120px; height: auto; }
.aro__nome { font-family: var(--titulo); font-weight: 700; font-size: 1.25rem; margin-top: 6px; }
.aro__serve { font-size: 0.875rem; color: var(--cafe-2); min-height: 2.6em; line-height: 1.3; }
.aro__valor { font-weight: 800; font-size: 1.125rem; color: var(--terracota-forte); }

/* ── Como funciona ─────────────────────────────────────────────── */

.passos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); counter-reset: passo; }
.passo { counter-increment: passo; position: relative; display: grid; gap: 8px; align-content: start; }
.passo::before {
  content: counter(passo); display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--terracota-forte); color: var(--branco); font-family: var(--titulo); font-weight: 700; font-size: 1.375rem;
  position: relative; z-index: 1;
}
.passo:not(:last-child)::after {
  content: ""; position: absolute; top: 26px; left: 64px; right: calc(-1 * clamp(20px, 3vw, 40px) + 12px);
  border-top: 2px dashed var(--salmao);
}
.passo h3 { margin: 10px 0 0; font-size: 1.25rem; font-weight: 700; }
.passo p { margin: 0; color: var(--cafe-2); }

/* ── Nosso salão ───────────────────────────────────────────────── */

.salao { background: var(--terracota-forte); color: var(--branco); overflow: hidden; margin-bottom: clamp(56px, 8vw, 104px); }
.salao__grade { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.salao .titulo { color: var(--branco); }
.salao .titulo em { color: var(--branco); }
.salao__texto p { margin: 18px 0 0; font-size: 1.125rem; max-width: 44ch; color: rgb(255 255 255 / 0.92); }
.salao__acoes { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.salao .botao--contorno { color: var(--branco); border-color: var(--branco); }
@media (hover: hover) and (pointer: fine) { .salao .botao--contorno:hover { background: var(--branco); color: var(--terracota-forte); } }
.galeria {
  list-style: none; margin: 0; padding: 0; display: grid; gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: clamp(120px, 14vw, 190px); grid-auto-flow: dense;
}
.galeria li { border-radius: var(--r-m); overflow: hidden; background: var(--terracota-funda); position: relative; }
.galeria li.alto { grid-row: span 2; }
.galeria img, .galeria video { width: 100%; height: 100%; object-fit: cover; }
.galeria__legenda {
  position: absolute; left: 10px; bottom: 10px; padding: 4px 10px; border-radius: 999px;
  background: rgb(42 24 16 / 0.6); color: var(--branco); font-size: 0.8125rem; font-weight: 600;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}

/* ── Rodapé ────────────────────────────────────────────────────── */

.rodape { background: var(--terracota-forte); color: var(--branco); }
.rodape__dentro { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; padding-block: 56px 40px; }
.rodape img { height: 64px; width: auto; background: var(--branco); border-radius: 14px; padding: 6px 10px; }
.rodape h2 { font-size: 0.8125rem; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 12px; color: var(--branco); font-weight: 700; }
.rodape ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.rodape a { display: inline-flex; min-height: 40px; align-items: center; text-decoration: none; }
.rodape a:hover { text-decoration: underline; color: var(--branco); }
.rodape p { margin: 14px 0 0; max-width: 32ch; }
.rodape__base { border-top: 1px solid rgb(255 255 255 / 0.25); padding-block: 18px 28px; font-size: 0.875rem; color: var(--branco); }

/* ── Cardápio ──────────────────────────────────────────────────── */

.cabeca-pagina { padding-block: clamp(28px, 4vw, 48px) clamp(12px, 2vw, 20px); }
.cabeca-pagina h1 { margin: 0; }
.cabeca-pagina p { margin: 10px 0 0; max-width: 56ch; color: var(--cafe-2); font-size: 1.125rem; }

.abas { position: sticky; top: var(--topo-h); z-index: 30; background: rgb(255 255 255 / 0.94); padding-block: 12px; border-bottom: 1px solid var(--linha); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.abas__lista { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; padding: 2px; }
.abas__lista::-webkit-scrollbar { display: none; }
.aba {
  flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px; border-radius: 999px;
  background: var(--blush); color: var(--cafe-2); font-weight: 700; text-decoration: none; white-space: nowrap;
  transition: background-color 180ms ease, color 180ms ease;
}
.aba:hover { background: var(--rosa); color: var(--cafe); }
.aba[aria-current="true"] { background: var(--terracota-forte); color: var(--branco); }

.balcao { display: grid; grid-template-columns: minmax(0, 1fr) 370px; gap: clamp(20px, 3vw, 36px); align-items: start; padding-block: clamp(20px, 3vw, 32px) 120px; }
.comanda-coluna { align-self: stretch; }
.categorias { display: grid; gap: clamp(36px, 5vw, 56px); }
.categoria { scroll-margin-top: calc(var(--topo-h) + 84px); }
.categoria__cabeca { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 20px; margin-bottom: 18px; }
.categoria__regra { margin: 0; color: var(--cafe-2); font-weight: 600; font-size: 0.9375rem; }
.categoria .grade-produtos { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.categoria .card__foto { aspect-ratio: 4 / 3; }

/* Card de bolo/pacote no pedido: abre na largura toda pra escolher recheios. */
.card--aberto { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(180px, 260px) minmax(0, 1fr); }
.card--aberto .card__foto { aspect-ratio: auto; min-height: 100%; grid-row: span 2; }
.card--aberto .previa-total, .card--aberto .escolhas { grid-column: 2; }
.card--aberto .escolhas { padding-top: 0; }
@media (max-width: 640px) {
  .card--aberto { grid-template-columns: 1fr; }
  .card--aberto .card__foto { aspect-ratio: 16 / 9; grid-row: auto; }
  .card--aberto .previa-total, .card--aberto .escolhas { grid-column: 1; }
  .card--aberto .card__desc { display: block; }
  .card--aberto .card__pe { flex-direction: row; align-items: end; }
}

.contador {
  display: inline-grid; grid-template-columns: 40px 56px 40px; align-items: center; height: 48px;
  background: var(--blush); border-radius: 999px; padding: 4px;
}
.contador button {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--branco); color: var(--cafe); box-shadow: 0 1px 2px rgb(42 24 16 / 0.12);
  transition: transform 140ms var(--ease-out), background-color 140ms ease;
}
.contador button:active { transform: scale(0.9); }
.contador button .icone { width: 18px; height: 18px; stroke-width: 2.5; }
.contador input {
  width: 100%; height: 40px; border: 0; background: transparent; text-align: center; font-weight: 800; font-size: 1.0625rem;
  -moz-appearance: textfield; appearance: textfield; min-width: 0; border-radius: 8px;
}
.contador input::-webkit-outer-spin-button, .contador input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.contador input:focus-visible { outline-offset: 0; }
.card .contador { grid-template-columns: 36px 1fr 36px; height: 44px; width: 100%; max-width: 150px; }
.card .contador button { width: 36px; height: 36px; }

.previa-total { margin: 0; padding: 0 18px 14px; font-size: 0.875rem; font-weight: 700; color: var(--verde); }
.previa-total:empty { display: none; }

.escolhas { display: grid; gap: 10px; padding: 0 18px 18px; }
.escolha { margin: 0; padding: 12px; border: 0; border-radius: var(--r-m); background: var(--blush); min-width: 0; }
.escolha legend { float: left; width: 100%; padding: 0; margin-bottom: 8px; font-weight: 700; font-size: 0.875rem; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; clear: both; }
.chip {
  position: relative; display: inline-flex; align-items: center; min-height: 36px; padding: 4px 12px; border-radius: 999px;
  background: var(--branco); border: 1.5px solid var(--linha); cursor: pointer; font-weight: 600; font-size: 0.875rem;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip:has(input:checked) { background: var(--terracota-forte); border-color: var(--terracota-forte); color: var(--branco); }
.chip:has(input:focus-visible) { outline: 3px solid var(--terracota-forte); outline-offset: 2px; }
.chip:has(input:disabled) { opacity: 0.45; cursor: not-allowed; }
.escolha__aviso { margin: 8px 0 0; font-size: 0.8125rem; font-weight: 700; color: var(--erro); }
.escolha__ok { margin: 8px 0 0; font-size: 0.8125rem; font-weight: 700; color: var(--verde); }

/* ── Comanda (carrinho) ────────────────────────────────────────── */

.comanda {
  position: sticky; top: calc(var(--topo-h) + 84px);
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto;
  max-height: calc(100svh - var(--topo-h) - 104px);
  background: var(--branco); border-radius: var(--r-l); box-shadow: var(--sombra-alta); overflow: hidden;
}
.comanda__cabeca { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 22px 14px; }
.comanda__cabeca h2 { margin: 0; font-family: var(--titulo); font-weight: 700; font-size: 1.5rem; }
.comanda__fechar { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--blush); cursor: pointer; display: grid; place-items: center; }
.comanda__itens { list-style: none; margin: 0; padding: 0 22px; overflow-y: auto; overscroll-behavior: contain; }
.comanda__item { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 2px 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--linha); }
.comanda__item img, .comanda__item .miniatura { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; background: var(--rosa); grid-row: span 2; }
.comanda__item .miniatura { display: grid; place-items: center; }
.comanda__item .miniatura img { width: 80%; height: auto; opacity: 0.55; }
.comanda__item strong { font-weight: 700; font-size: 0.9375rem; line-height: 1.25; }
.comanda__item span { font-weight: 700; font-size: 0.9375rem; }
.comanda__item small { grid-column: 2 / -1; color: var(--cafe-2); font-size: 0.8125rem; line-height: 1.3; }
.comanda__acoes { grid-column: 2 / -1; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
.contador--mini { grid-template-columns: 34px 64px 34px; height: 42px; }
.contador--mini button { width: 34px; height: 34px; }
.contador--mini button .icone { width: 16px; height: 16px; }
.contador--mini input { height: 34px; font-size: 1rem; }
.comanda__tirar {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border: 0; border-radius: 999px;
  background: transparent; color: var(--cafe-2); font: inherit; font-weight: 600; font-size: 0.875rem; cursor: pointer;
}
.comanda__tirar .icone { width: 16px; height: 16px; }
@media (hover: hover) and (pointer: fine) { .comanda__tirar:hover { background: var(--blush); color: var(--terracota-forte); } }
.comanda__vazia { margin: 0; padding: 12px 22px 24px; color: var(--cafe-2); text-align: center; }
.comanda__vazia .icone { width: 44px; height: 44px; margin: 4px auto 10px; color: var(--salmao); stroke-width: 1.5; }
.comanda__pe { display: grid; gap: 12px; padding: 16px 22px 22px; background: var(--blush); }
.total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.total span { font-weight: 700; }
.total strong { font-weight: 800; font-size: 1.625rem; color: var(--cafe); }
.total__nota { margin: 0; font-size: 0.875rem; color: var(--cafe-2); }
.total__nota--alerta { color: var(--erro); font-weight: 600; }

.repinta { display: inline-block; }
.repinta.pintando { animation: pulsar 420ms var(--ease-out); }
@keyframes pulsar { 0% { transform: translateY(6px); opacity: 0; } 100% { transform: none; opacity: 1; } }

.barra-pedido { display: none; }

/* ── Finalizar ─────────────────────────────────────────────────── */

.finalizar { padding-block: clamp(24px, 4vw, 40px) 80px; max-width: 860px; }
.etapas { list-style: none; margin: 0 0 24px; padding: 0; display: flex; gap: 8px; align-items: center; counter-reset: etapa; }
.etapa { counter-increment: etapa; display: flex; align-items: center; gap: 10px; color: var(--cafe-2); font-weight: 700; flex: 1; }
.etapa::before {
  content: counter(etapa); display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 50%;
  background: var(--blush); color: var(--cafe-2); font-weight: 800; font-size: 0.9375rem;
}
.etapa::after { content: ""; flex: 1; height: 2px; background: var(--linha); border-radius: 2px; }
.etapa:last-child { flex: 0 0 auto; }
.etapa:last-child::after { display: none; }
.etapa[aria-current="step"] { color: var(--cafe); }
.etapa[aria-current="step"]::before { background: var(--terracota-forte); color: var(--branco); }
.etapa.feita::before {
  content: ""; background: var(--verde) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5 10 17.5 19 7'/%3E%3C/svg%3E") center / 18px no-repeat;
}
.etapa.feita::after { background: var(--verde); }

.painel { background: var(--branco); border-radius: var(--r-l); box-shadow: var(--sombra-alta); padding: clamp(22px, 4vw, 40px); }
.painel__ajuda { margin: 8px 0 24px; color: var(--cafe-2); max-width: 60ch; }
.painel__acoes { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 28px; }

.campos { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px 18px; }
.campo { display: grid; gap: 6px; grid-column: span 6; align-content: start; }
.campo--metade { grid-column: span 3; }
.campo--terco { grid-column: span 2; }
.campo--largo { grid-column: span 4; }
.campo label { font-weight: 700; font-size: 0.9375rem; }
.campo label small, .campo > small { color: var(--cafe-2); font-weight: 500; font-size: 0.875rem; }
.entrada {
  width: 100%; min-height: 52px; padding: 12px 16px; border-radius: 14px;
  background: var(--blush); border: 1.5px solid var(--linha); font-size: 1.0625rem; font-weight: 500;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
  caret-color: var(--terracota-forte);
}
textarea.entrada { min-height: 96px; resize: vertical; }
.entrada::placeholder { color: var(--placeholder); }
.entrada:hover { border-color: var(--salmao); }
.entrada:focus-visible { outline: none; background: var(--branco); border-color: var(--terracota-forte); box-shadow: 0 0 0 4px rgb(192 114 90 / 0.18); border-radius: 14px; }
.entrada[aria-invalid="true"] { border-color: var(--erro); background: var(--erro-fundo); }
.campo__erro { margin: 0; color: var(--erro); font-weight: 600; font-size: 0.9375rem; }

.opcoes-modo { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.opcao-modo {
  position: relative; display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; align-items: center; padding: 18px;
  border-radius: var(--r-m); background: var(--blush); border: 2px solid transparent; cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease;
}
.opcao-modo input { position: absolute; opacity: 0; pointer-events: none; }
.opcao-modo .icone { grid-row: span 2; width: 28px; height: 28px; color: var(--terracota-forte); }
.opcao-modo strong { font-weight: 700; font-size: 1.0625rem; }
.opcao-modo span { font-size: 0.9375rem; color: var(--cafe-2); }
.opcao-modo:has(input:checked) { border-color: var(--terracota-forte); background: var(--branco); box-shadow: var(--sombra); }
.opcao-modo:has(input:focus-visible) { outline: 3px solid var(--terracota-forte); outline-offset: 3px; }

/* Login Google na revisão do pedido */
.conta { margin: 0 0 24px; padding: 16px 18px; border-radius: var(--r-m); background: var(--blush); }
.conta__fora { display: grid; gap: 12px; justify-items: start; }
.conta__fora p { margin: 0; max-width: 60ch; }
.conta__dentro { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; }
.conta__dentro strong { overflow-wrap: anywhere; }
.conta__trocar { background: none; border: 0; padding: 10px 0; min-height: 44px; font: inherit; font-weight: 600; color: var(--terracota-forte); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

.aviso { display: flex; gap: 12px; align-items: flex-start; margin: 16px 0 0; padding: 14px 16px; border-radius: var(--r-m); background: var(--blush); font-weight: 500; font-size: 0.9375rem; }
.aviso .icone { margin-top: 2px; color: var(--terracota-forte); }
.aviso--erro { background: var(--erro-fundo); color: var(--erro); }
.aviso--erro .icone { color: var(--erro); }

.revisao { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--linha); }
.revisao__bloco { padding: 0; }
.revisao__bloco h3 { margin: 0 0 6px; font-size: 1rem; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.revisao__bloco p { margin: 0; }
.revisao__bloco p + h3 { margin-top: 16px; }
.revisao__bloco button { background: none; border: 0; padding: 8px 4px; font-weight: 700; color: var(--terracota-forte); text-decoration: underline; cursor: pointer; min-height: 44px; }
.revisao__itens { list-style: none; margin: 0; padding: 0; }
.revisao__itens li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid var(--linha); }
.revisao__itens li:first-child { border-top: 0; }
.revisao__itens li > span:last-child { white-space: nowrap; font-weight: 700; }
.revisao__itens small { color: var(--cafe-2); }
.painel .total { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--linha); }
.painel .total__nota { margin-top: 8px; }
/* Linha da taxa de entrega acima do total: mais leve, e o total logo abaixo sem outro traço. */
.total--linha strong { font-size: 1.125rem; font-weight: 700; }
.painel .total--linha:not([hidden]) + .total { margin-top: 8px; padding-top: 0; border-top: 0; }

/* ── Pedido recebido ───────────────────────────────────────────── */

.recebido { padding-block: clamp(40px, 7vw, 88px) 96px; text-align: center; }
.recebido__selo { width: 76px; height: 76px; margin: 0 auto 20px; border-radius: 50%; background: var(--verde-fundo); color: var(--verde); display: grid; place-items: center; }
.recebido__selo .icone { width: 38px; height: 38px; stroke-width: 2.5; }
.recebido .moldura > p { margin: 14px auto 0; max-width: 46ch; color: var(--cafe-2); font-size: 1.125rem; }
.ficha { width: min(100%, 440px); margin: 32px auto 0; text-align: left; background: var(--branco); border-radius: var(--r-l); box-shadow: var(--sombra-alta); overflow: hidden; }
.ficha__numero { padding: 18px 22px; background: var(--blush); display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.ficha__numero span { font-weight: 700; color: var(--cafe-2); }
.ficha__numero strong { font-weight: 800; font-size: 1.75rem; color: var(--terracota-forte); }
.ficha dl { margin: 0; padding: 14px 22px 20px; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; }
.ficha dt { color: var(--cafe-2); }
.ficha dd { margin: 0; font-weight: 700; text-align: right; }
.recebido__acoes { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }

/* ── Acompanhar pedido ─────────────────────────────────────────── */

.pagina-pedido { padding-bottom: 96px; max-width: 980px; }
.consulta { background: var(--branco); border-radius: var(--r-l); box-shadow: var(--sombra-alta); padding: clamp(20px, 3vw, 32px); }
.consulta form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 16px; align-items: end; }
.consulta .campo { grid-column: auto; }
.situacao { margin-top: 28px; display: grid; gap: 20px; }
.situacao__topo { display: grid; gap: 20px; padding-top: 8px; }
.situacao__titulo { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 20px; }
.situacao__titulo p { margin: 0; font-weight: 700; color: var(--cafe-2); }
.situacao__frase { margin: -8px 0 0; font-size: 1.125rem; color: var(--cafe-2); }
.trilha { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.trilha li { display: grid; gap: 4px; justify-items: start; padding: 14px; border-radius: var(--r-m); background: var(--blush); color: var(--cafe-2); font-weight: 700; }
.trilha li .icone { width: 26px; height: 26px; }
.trilha li small { font-weight: 500; font-size: 0.8125rem; }
.trilha li.feito { background: var(--verde-fundo); color: var(--verde); }
.trilha li.agora { background: var(--terracota-forte); color: var(--branco); }
.trilha--cancelado li { opacity: 0.5; }
/* Entregador da RYD dentro do "Acompanhar pedido". --passo (0 a 3) diz até onde a barra vai. */
.entregador { display: grid; gap: 16px; padding: 20px; border-radius: var(--r-l); background: var(--branco); box-shadow: var(--sombra); }
.entregador__quem { display: flex; gap: 16px; align-items: center; }
.entregador__quem h3 { margin: 0; font-size: 1.125rem; font-weight: 800; line-height: 1.25; text-wrap: balance; }
.entregador__quem p { margin: 2px 0 0; color: var(--cafe-2); }
.entregador__foto { flex: none; width: 56px; height: 56px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--rosa); color: var(--terracota-forte); }
.entregador__foto img { width: 100%; height: 100%; object-fit: cover; }
.entregador__foto .icone { width: 28px; height: 28px; }
.entregador__inicial { font-family: var(--titulo); font-weight: 700; font-size: 1.5rem; }
.entregador--fim .entregador__foto { background: var(--verde-fundo); color: var(--verde); }
.entregador__barra { position: relative; height: 6px; margin: 10px 12.5% 0; border-radius: 999px; background: var(--linha); }
.entregador__feito { position: absolute; inset: 0; border-radius: inherit; background: var(--terracota-forte); transform-origin: left; transform: scaleX(calc(var(--passo) / 3)); transition: transform 600ms var(--ease-out); }
.entregador--fim .entregador__feito { background: var(--verde); }
/* A motinho fica na ponta da barra e balança de leve: a tela nunca parece parada esperando. */
.entregador__moto { position: absolute; top: 50%; left: calc(var(--passo) / 3 * 100%); width: 28px; height: 28px; margin: -14px 0 0 -14px; display: grid; place-items: center; border-radius: 50%; background: var(--terracota-forte); color: var(--branco); transition: left 600ms var(--ease-out); animation: moto-anda 1.6s ease-in-out infinite; }
.entregador__moto .icone { width: 18px; height: 18px; }
.entregador--fim .entregador__moto { display: none; }
@keyframes moto-anda { 50% { transform: translateY(-2px) rotate(-4deg); } }
/* Cada nome fica no meio da sua coluna; a barra vai do meio da 1ª ao meio da 4ª (margem de 12,5%). */
.entregador__passos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); text-align: center; font-size: 0.8125rem; font-weight: 700; color: var(--cafe-2); }
.entregador__passos .feito { color: var(--cafe); }
.entregador__passos .agora { color: var(--terracota-forte); }
.entregador__vivo { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 0.8125rem; color: var(--cafe-2); }
.entregador__vivo .ponto { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--verde); }
.entregador__vivo .ponto::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--verde); animation: ponto-vivo 2s var(--ease-out) infinite; }
@keyframes ponto-vivo { from { transform: scale(1); opacity: 0.6; } to { transform: scale(2.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .entregador__moto, .entregador__vivo .ponto::after { animation: none; }
}
.contas { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0; margin: 0; border-block: 1px solid var(--linha); }
.contas div { padding: 14px 16px 14px 0; }
.contas div + div { padding-left: 16px; border-left: 1px solid var(--linha); }
.contas dt { font-size: 0.875rem; color: var(--cafe-2); }
.contas dd { margin: 2px 0 0; font-weight: 800; font-size: 1.375rem; }
.contas .falta dd { color: var(--terracota-forte); }
.detalhe { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; background: var(--branco); border-radius: var(--r-l); box-shadow: var(--sombra); padding: clamp(20px, 3vw, 32px); }
.detalhe h2 { margin: 0 0 8px; font-size: 1.0625rem; }
.detalhe p { margin: 0; }
.detalhe p + p { margin-top: 6px; }

/* ── Recado e carregando ───────────────────────────────────────── */

.recado {
  position: fixed; left: 50%; bottom: 24px; z-index: 80; display: flex; align-items: center; gap: 14px;
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  padding: 12px 14px 12px 20px; border-radius: 999px; background: var(--cafe); color: var(--branco);
  font-weight: 600; width: max-content; max-width: min(560px, calc(100vw - 32px)); box-shadow: var(--sombra-alta);
  transition: transform 280ms var(--ease-out), opacity 200ms ease;
}
.recado a { color: var(--salmao); font-weight: 700; white-space: nowrap; }
.recado.visivel { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.carregando { display: grid; gap: 12px; }
.carregando div { height: 72px; border-radius: var(--r-m); background: var(--blush); }

/* ── Responsivo ────────────────────────────────────────────────── */

@media (max-width: 1080px) {
  .balcao { grid-template-columns: minmax(0, 1fr) 320px; }
  .aros { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rodape__dentro { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  :root { --topo-h: 64px; }
  .menu .so-largo { display: none; }
  .marca__d { width: 52px; height: 39px; }
  .marca__nome { font-size: 1.1875rem; }
  .banner { min-height: min(84svh, 640px); border-radius: var(--r-l); }
  .banner__pausa { top: 16px; bottom: auto; right: 16px; }
  .banner::after { background: linear-gradient(0deg, rgb(42 24 16 / 0.92) 0%, rgb(42 24 16 / 0.6) 55%, rgb(42 24 16 / 0.15) 100%); }
  .chuva { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .chuva__col--d, .chuva__col--e { display: none; }
  .categorias-foto { grid-template-columns: repeat(5, 132px); overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
  .categorias-foto::-webkit-scrollbar { display: none; }
  .passos { grid-template-columns: 1fr; }
  .passo { grid-template-columns: 52px 1fr; column-gap: 16px; }
  .passo::before { grid-row: span 2; }
  .passo h3 { margin-top: 0; align-self: end; }
  .passo:not(:last-child)::after { top: 60px; bottom: -20px; left: 25px; right: auto; border-top: 0; border-left: 2px dashed var(--salmao); }
  .salao__grade { grid-template-columns: 1fr; }
  .balcao { grid-template-columns: 1fr; padding-bottom: 132px; }
  .comanda-coluna { display: none; }
  .barra-pedido {
    position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 45;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 10px 10px 20px; border-radius: 999px; background: var(--cafe); color: var(--branco); box-shadow: var(--sombra-alta);
    transform: translateY(140%); transition: transform 360ms var(--ease-drawer);
  }
  .barra-pedido.visivel { transform: none; }
  /* com a barra do pedido na tela, o aviso sobe pra cima dela em vez de tapar o "Ver pedido" */
  body:has(.barra-pedido.visivel) .recado { bottom: calc(96px + env(safe-area-inset-bottom)); }
  /* No celular o aviso é uma faixa da largura da tela, numa linha só (não um balão espremido). */
  .recado { left: 12px; right: 12px; width: auto; max-width: none; transform: translateY(16px); border-radius: 18px; padding: 10px 10px 10px 18px; justify-content: space-between; }
  .recado.visivel { transform: none; }
  .recado span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .recado a { padding: 8px 10px; }
  .barra-pedido p { margin: 0; line-height: 1.15; }
  .barra-pedido small { display: block; opacity: 0.8; font-size: 0.8125rem; }
  .barra-pedido strong { font-weight: 800; font-size: 1.25rem; }
  .revisao, .detalhe { grid-template-columns: 1fr; }
  .consulta form { grid-template-columns: 1fr; }
  .trilha { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .etapa span { display: none; }
  .etapa[aria-current="step"] span { display: inline; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .grade-produtos, .categoria .grade-produtos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card__corpo { padding: 12px 12px 14px; }
  .card__nome { font-size: 1rem; }
  .card__desc { display: none; }
  .card__pe { flex-direction: column; align-items: stretch; gap: 10px; }
  .card__preco strong { font-size: 1.125rem; }
  .card .mais { width: 100%; height: 44px; border-radius: 999px; }
  .card .contador { max-width: none; }
  .escolhas { padding: 0 12px 14px; }
  .previa-total { padding: 0 12px 12px; }
  .aros { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 132px; overflow-x: auto; scrollbar-width: none; align-items: end; margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 16px; }
  .aros::-webkit-scrollbar { display: none; }
  .aro { padding: 16px 10px 14px; }
  .campo--metade, .campo--terco, .campo--largo { grid-column: span 6; }
  .opcoes-modo { grid-template-columns: 1fr; }
  .contas { grid-auto-flow: row; grid-template-columns: 1fr; }
  .contas div, .contas div + div { padding: 12px 0; border-left: 0; display: flex; justify-content: space-between; align-items: baseline; }
  .contas div + div { border-top: 1px solid var(--linha); }
  .painel__acoes { flex-direction: column-reverse; }
  .painel__acoes .botao { width: 100%; }
  .rodape__dentro { grid-template-columns: 1fr; }
  .galeria { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; }
  /* título do topo cabe na largura e não bate no botão de pausa */
  .banner h1 { font-size: clamp(2.25rem, 10.4vw, 2.75rem); }
  .banner__texto { padding: 76px 22px 26px; }
}

/* Folha do pedido no celular. */
@media (max-width: 900px) {
  .folha {
    position: fixed; inset: auto 0 0 0; z-index: 60; max-height: 88svh; top: auto;
    border-radius: var(--r-l) var(--r-l) 0 0;
    transform: translateY(100%); transition: transform 400ms var(--ease-drawer);
  }
  .folha.aberta { transform: none; }
  .folha .comanda__pe { padding-bottom: calc(22px + env(safe-area-inset-bottom)); }
  .veu { position: fixed; inset: 0; z-index: 55; background: rgb(42 24 16 / 0.5); opacity: 0; pointer-events: none; transition: opacity 300ms ease; }
  .veu.aberto { opacity: 1; pointer-events: auto; }
}
@media (min-width: 901px) { .folha, .veu { display: none !important; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
}

/* ── Abertura animada da marca (só na primeira visita da sessão) ── */
.intro {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
  background: var(--blush); cursor: pointer;
}
.intro__palco { display: flex; align-items: flex-end; gap: clamp(4px, 1vw, 14px); will-change: transform; }
.intro__d { width: min(44vw, 380px); aspect-ratio: 859 / 648; }
.intro__d svg { transform-origin: 50% 85%; }
/* O nome é revelado por uma máscara com borda em degradê (não um corte seco): a máscara tem 2,5× a
   largura do texto e o JS anda com ela de 100% (oculto) a 0% (visível). */
.intro__nome {
  font-family: var(--titulo); font-weight: 700; font-style: italic; color: var(--cafe);
  font-size: clamp(3rem, 10vw, 8rem); line-height: 1; letter-spacing: -0.02em; white-space: nowrap;
  margin-bottom: clamp(8px, 2.4vw, 30px); padding-right: 0.12em;
  -webkit-mask-image: linear-gradient(90deg, #000 40%, transparent 60%); mask-image: linear-gradient(90deg, #000 40%, transparent 60%);
  -webkit-mask-size: 250% 100%; mask-size: 250% 100%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: 100% 0; mask-position: 100% 0;
}
.intro__nome span { color: var(--terracota-forte); }
.intro__filtros { position: absolute; width: 0; height: 0; overflow: hidden; }
.intro__gota { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 201; pointer-events: none; overflow: visible; }
.intro__pular {
  position: fixed; right: 20px; top: 20px; z-index: 202; min-height: 44px; padding: 8px 18px; border-radius: 999px;
  border: 1.5px solid var(--linha); background: var(--branco); color: var(--cafe-2); font-weight: 700; cursor: pointer;
}
html.intro-ativa body { overflow: hidden; }
html.intro-ativa .topo .marca__d { opacity: 0; }
@media (max-width: 640px) {
  .intro__palco { flex-direction: column; align-items: center; gap: 0; }
  .intro__d { width: min(66vw, 280px); }
  .intro__nome { margin: 10px 0 0; font-size: clamp(2.75rem, 13vw, 4rem); }
}

/* ── Rolagem que conta a história (GSAP) ── */
.progresso { position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 50; background: var(--terracota-forte); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }
.banner { transform-origin: 50% 0; will-change: transform; }

/* Preferidos: trilho horizontal preso na tela (desktop); no celular, arrasta de lado. */
.preferidos-cena { overflow: hidden; }
.trilho-h { display: flex; gap: 24px; width: max-content; }
.trilho-h > .card { width: 300px; flex: none; }
@media (max-width: 899px) {
  .trilho-h { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 6px var(--gutter) 24px; margin-inline: calc(-1 * var(--gutter)); }
  .trilho-h::-webkit-scrollbar { display: none; }
  .trilho-h > .card { width: 72vw; max-width: 300px; scroll-snap-align: center; }
}

/* Bolo que cresce com a rolagem. */
.cena-bolo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 5vw, 72px); min-height: min(62svh, 560px); background: var(--blush); border-radius: var(--r-xl); padding: clamp(20px, 3vw, 40px); }
.cena-bolo__prato { position: relative; aspect-ratio: 1; width: min(100%, 460px); justify-self: center; }
.cena-bolo__prato svg { width: 100%; height: 100%; overflow: visible; }
.cena-bolo__3d { position: absolute; inset: -12%; width: 124%; height: 124%; display: block; opacity: 0; animation: bolo3d-entra 600ms cubic-bezier(0.23, 1, 0.32, 1) forwards; }
.cena-bolo--3d .cena-bolo__prato svg { opacity: 0; transition: opacity 300ms ease; }
@keyframes bolo3d-entra { to { opacity: 1; } }
.titulo__linha { padding-bottom: 0.08em; margin-bottom: -0.08em; }
.cena-bolo__info { display: grid; gap: 6px; }
.cena-bolo__aro { font-family: var(--titulo); font-weight: 700; font-size: clamp(3rem, 8vw, 6rem); line-height: 1; letter-spacing: -0.02em; margin: 0; }
.cena-bolo__serve { font-size: 1.375rem; color: var(--cafe-2); margin: 0; }
.cena-bolo__preco { font-size: 2rem; font-weight: 800; color: var(--terracota-forte); margin: 6px 0 0; }
.cena-bolo__marcas { display: flex; gap: 6px; margin-top: 18px; list-style: none; padding: 0; }
.cena-bolo__marcas li { width: 28px; height: 4px; border-radius: 4px; background: var(--linha); transition: background-color 200ms ease; }
.cena-bolo__marcas li.ativo { background: var(--terracota-forte); }
.cena-bolo__dica { margin: 18px 0 0; color: var(--cafe-2); font-size: 0.9375rem; }
@media (max-width: 760px) {
  .cena-bolo { grid-template-columns: 1fr; text-align: center; min-height: 0; }
  .cena-bolo { gap: 8px; }
  .cena-bolo__prato { width: min(58vw, 34svh, 250px); }
  .cena-bolo__aro { font-size: 3rem; }
  .cena-bolo__serve { font-size: 1.125rem; }
  .cena-bolo__preco { font-size: 1.5rem; margin-top: 0; }
  .cena-bolo__marcas { justify-content: center; margin-top: 10px; }
  .cena-bolo__dica { display: none; }
  #bolos-cena { padding-block: 24px; }
  #bolos-cena .cabeca-secao { margin-bottom: 12px; }
  #bolos-cena .cabeca-secao p { font-size: 1rem; }
}
.com-cenas .aros { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ── Monte sua festa ───────────────────────────────────────────── */

.festa { display: grid; gap: clamp(16px, 2.5vw, 24px); max-width: 860px; padding-block: clamp(12px, 2vw, 20px) 96px; }
.festa .painel > .titulo--m { margin-bottom: 18px; }
.festa .painel__ajuda { margin-top: -10px; }
.opcoes-modo--fim { margin: 22px 0 0; }
.festa__legenda { grid-column: 1 / -1; padding: 0; margin-bottom: 2px; font-weight: 700; font-size: 0.9375rem; }
.opcoes-linha { grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 8px; }
.opcoes-linha .opcao-modo { padding: 14px 12px; }
.opcoes-linha .opcao-modo { grid-template-columns: 1fr; text-align: left; }
.festa__pratos, .festa__avulso { display: grid; gap: 10px; }
.festa__avulso { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--linha); }
.festa .escolha legend small { font-weight: 600; color: var(--cafe-2); }
.festa__extras { margin-bottom: 18px; }
.festa #f-pratos-erro { margin-top: 12px; }
.pagina-festa .recebido { padding-block: clamp(32px, 6vw, 72px); }
.pagina-festa .recebido > p { margin: 14px auto 0; max-width: 46ch; color: var(--cafe-2); font-size: 1.125rem; }
@media (max-width: 640px) {
  .festa .campo--metade, .festa .campo--terco { grid-column: span 6; }
  .festa .opcoes-modo:not(.opcoes-linha) { grid-template-columns: 1fr; }
}
