/* Salgados Vitória — site de pedidos.
   Cores medidas no logo (marca/logo.png): vinho #460305, dourado #B88524, brilho #FBD767.
   Ideia: confeitaria de vitrine — blocos vinho com filete dourado, áreas creme pras fotos. */

:root {
  --vinho: #460305;
  --vinho-2: #5e0b0d;
  --vinho-acao: #7a0f12;
  --vinho-acao-2: #921a1d;
  --ouro: #b88524;
  --ouro-texto: #8a6115;   /* dourado escuro: passa no contraste sobre creme */
  --ouro-claro: #fbd767;
  --creme: #fff8f0;
  --creme-2: #f7ead9;
  --papel: #ffffff;
  --tinta: #2a1210;
  --tinta-2: #6e5550;
  --linha: #eadccb;
  --zap: #1d8a4c;
  --zap-2: #17733f;
  --erro: #b3261e;

  --serifa: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --script: 'Great Vibes', 'Brush Script MT', cursive;
  --texto: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --raio: 18px;
  --sombra: 0 1px 2px rgba(70, 3, 5, .06), 0 8px 24px -12px rgba(70, 3, 5, .18);
  --sombra-forte: 0 18px 50px -18px rgba(40, 2, 3, .55);
  --largura: 1120px;
  --lado: max(16px, env(safe-area-inset-left));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--creme);
  color: var(--tinta);
  font: 400 16px/1.55 var(--texto);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.12; }
p { margin: 0; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--ouro); outline-offset: 2px; border-radius: 6px; }

.pular {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--vinho); color: #fff; padding: .6rem 1rem; border-radius: 10px;
}
.pular:focus { top: 12px; }

.script { font-family: var(--script); font-weight: 400; color: var(--vinho-acao); font-size: 1.32em; line-height: .8; }

.olho {
  font: 600 .74rem/1 var(--texto);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ouro-texto);
  display: inline-flex; align-items: center; gap: .6rem;
}
.olho::before, .olho::after { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .8; }
.olho--claro { color: var(--ouro-claro); }

.ic { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- botões ---------- */
.bt {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 50px; padding: 0 1.4rem;
  border-radius: 999px; border: 0;
  font: 600 1rem/1 var(--texto);
  text-decoration: none; white-space: nowrap;
  transition: background .18s, color .18s, transform .12s, box-shadow .18s, border-color .18s;
}
.bt:active { transform: scale(.97); }
.bt--creme { background: var(--creme); color: var(--vinho); box-shadow: 0 6px 20px -8px rgba(0,0,0,.5); }
.bt--creme:hover { background: #fff; }
.bt--contorno { background: transparent; color: var(--creme); border: 1.5px solid rgba(251, 215, 103, .55); }
.bt--contorno:hover { border-color: var(--ouro-claro); background: rgba(251, 215, 103, .08); }
.bt--vinho { background: var(--vinho-acao); color: #fff; }
.bt--vinho:hover { background: var(--vinho-acao-2); }
.bt--zap { background: var(--zap); color: #fff; }
.bt--zap:hover { background: var(--zap-2); }
.bt--bloco { width: 100%; }

/* ---------- aviso do dia ---------- */
.aviso-topo {
  background: var(--ouro-claro); color: var(--vinho);
  text-align: center; font-weight: 600; font-size: .92rem;
  padding: .6rem var(--lado);
}

/* ---------- capa ---------- */
.capa {
  position: relative;
  background:
    radial-gradient(rgba(251, 215, 103, .07) 1px, transparent 1.6px) 0 0 / 22px 22px,
    radial-gradient(120% 90% at 78% 30%, #6c0e11 0%, var(--vinho) 58%, #350203 100%);
  color: var(--creme);
  padding: max(2.2rem, env(safe-area-inset-top)) var(--lado) 4.2rem;
  isolation: isolate;
}
.capa__dentro {
  max-width: var(--largura); margin: 0 auto;
  display: grid; gap: 1.6rem; align-items: center; justify-items: center; text-align: center;
}
.capa__marca { order: -1; position: relative; width: min(56vw, 230px); }
.capa__marca img {
  width: 100%; height: auto;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .45));
  animation: flutua 6s ease-in-out infinite;
}
.capa__brilho {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(38% 34% at 50% 22%, rgba(251, 215, 103, .16), transparent 70%);
}
.capa__texto { display: grid; gap: 1rem; justify-items: center; max-width: 38rem; }
.capa__titulo {
  font: 700 clamp(2.15rem, 7.2vw, 3.7rem)/1.06 var(--serifa);
  letter-spacing: -.01em;
  text-wrap: balance;
}
.capa__titulo em {
  display: block; font-style: normal;
  font-family: var(--script); font-weight: 400;
  color: var(--ouro-claro);
  font-size: 1.22em; line-height: 1.05; margin-top: .1em;
}
.capa__sub { color: rgba(255, 248, 240, .82); font-size: 1.05rem; max-width: 32rem; }
.capa__acoes { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; margin-top: .4rem; }

.nota {
  display: inline-flex; align-items: center; gap: .5rem;
  margin-top: .3rem; padding: .45rem .95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(251, 215, 103, .28);
  color: rgba(255, 248, 240, .9);
  font-size: .9rem; text-decoration: none;
}
.nota b { color: var(--ouro-claro); font-weight: 700; }
.nota__estrelas { color: var(--ouro-claro); letter-spacing: .08em; }

@keyframes flutua { 50% { transform: translateY(-8px); } }

@media (min-width: 900px) {
  .capa { padding-top: 4.5rem; padding-bottom: 6rem; }
  .capa__dentro { grid-template-columns: 1.15fr .85fr; gap: 3rem; justify-items: start; text-align: left; }
  .capa__texto { justify-items: start; }
  .capa__acoes { justify-content: flex-start; }
  .capa__marca { order: 0; width: min(100%, 420px); justify-self: center; }
  .capa__brilho { background: radial-gradient(30% 45% at 74% 48%, rgba(251, 215, 103, .17), transparent 70%); }
}

/* Babado: a borda recortada de confeitaria, em vinho com filete dourado,
   igual ao aro da medalha do logo. Desenhado só com gradiente — nada de imagem. */
.babado {
  position: absolute; left: 0; right: 0; bottom: -17px; height: 18px;
  background:
    radial-gradient(circle at 50% 0, var(--vinho) 0 10.5px, var(--ouro) 11px 12.5px, transparent 13px)
    center top / 26px 18px repeat-x;
  pointer-events: none;
}
.babado--topo {
  bottom: auto; top: -17px;
  background:
    radial-gradient(circle at 50% 100%, var(--vinho) 0 10.5px, var(--ouro) 11px 12.5px, transparent 13px)
    center bottom / 26px 18px repeat-x;
}

/* ---------- selos ---------- */
.selos {
  list-style: none; margin: 0 auto; padding: 2.4rem var(--lado) .6rem;
  max-width: var(--largura);
  display: flex; flex-wrap: wrap; justify-content: center; gap: .55rem 1.4rem;
  font-weight: 600; font-size: .92rem; color: var(--tinta-2);
}
.selos li { display: inline-flex; align-items: center; gap: .5rem; }
@media (max-width: 559px) {
  .selos { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem .9rem; font-size: .88rem; padding-top: 2.1rem; }
}
.selos li::before {
  content: ''; width: 7px; height: 7px; transform: rotate(45deg);
  background: var(--ouro); border-radius: 1px;
}

/* ---------- cabeçalho de seção ---------- */
.secao__cabeca { text-align: center; display: grid; gap: .55rem; justify-items: center; margin-bottom: 1.6rem; }
.secao__titulo { font: 700 clamp(1.9rem, 5vw, 2.6rem)/1.1 var(--serifa); color: var(--vinho); }

/* ---------- mais pedidos ---------- */
.destaques { padding: 2.6rem 0 1rem; }
.destaques .secao__cabeca { padding: 0 var(--lado); }
.destaques__rolo {
  display: flex; gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--lado);
  padding: .3rem var(--lado) 1.2rem;
  max-width: var(--largura); margin: 0 auto;
  scrollbar-width: none;
}
.destaques__rolo::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .destaques__rolo { justify-content: center; flex-wrap: wrap; overflow: visible; } }

.vitrine {
  flex: 0 0 236px; scroll-snap-align: start;
  background: var(--papel); border-radius: var(--raio);
  border: 1px solid var(--linha); box-shadow: var(--sombra);
  overflow: hidden; display: flex; flex-direction: column;
  transition: border-color .2s, transform .2s;
}
.vitrine.escolhido { border-color: var(--vinho-acao); }
.vitrine__capa { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.vitrine__capa > img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.vitrine__corpo { padding: .85rem 1rem 1rem; display: grid; gap: .2rem; flex: 1; }
.vitrine__nome { font: 600 1.06rem/1.25 var(--serifa); }
.vitrine__pe { display: flex; align-items: end; justify-content: space-between; gap: .5rem; margin-top: auto; padding-top: .55rem; }

/* sem foto: a medalha da casa sobre vinho — parece de propósito, não buraco */
.sem-foto {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  background:
    radial-gradient(rgba(251, 215, 103, .09) 1px, transparent 1.6px) 0 0 / 16px 16px,
    radial-gradient(80% 80% at 50% 40%, #6c0e11, var(--vinho));
}
.sem-foto img { width: 46%; max-width: 120px; opacity: .92; filter: drop-shadow(0 8px 14px rgba(0,0,0,.4)); }

.selo-mais {
  display: inline-flex; align-items: center; gap: .3rem;
  background: var(--ouro-claro); color: var(--vinho);
  font: 700 .68rem/1 var(--texto); letter-spacing: .06em; text-transform: uppercase;
  padding: .32rem .55rem; border-radius: 999px; white-space: nowrap;
}
.vitrine__capa .selo-mais { position: absolute; top: 10px; left: 10px; box-shadow: 0 2px 8px rgba(0,0,0,.25); }

/* ---------- navegação das categorias ---------- */
.navcat {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255, 248, 240, .9);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--linha);
}
.navcat__rolo {
  max-width: var(--largura); margin: 0 auto;
  display: flex; gap: .4rem; align-items: center;
  overflow-x: auto; scrollbar-width: none;
  padding: .6rem var(--lado);
}
.navcat__rolo::-webkit-scrollbar { display: none; }
.navcat__marca {
  flex: none; border: 0; background: none; padding: 0;
  width: 0; opacity: 0; overflow: hidden;
  transition: width .25s, opacity .25s, margin .25s;
}
.navcat__marca img { width: 34px; height: 34px; }
body.rolado .navcat__marca { width: 34px; opacity: 1; margin-right: .3rem; }
.navcat a {
  flex: none; text-decoration: none;
  padding: .55rem .95rem; border-radius: 999px;
  font-weight: 600; font-size: .92rem; color: var(--tinta-2);
  transition: background .2s, color .2s;
}
.navcat a:hover { color: var(--vinho); background: var(--creme-2); }
.navcat a.ativo { background: var(--vinho); color: var(--creme); }

/* ---------- cardápio ---------- */
.cardapio { max-width: var(--largura); margin: 0 auto; padding: 1.4rem var(--lado) 3rem; }
.recado { text-align: center; color: var(--tinta-2); padding: 3rem 0; }

.categoria { padding-top: 2rem; scroll-margin-top: 64px; }
.categoria__cabeca { display: grid; gap: .35rem; margin-bottom: 1.1rem; }
.categoria__titulo { font: 700 clamp(1.7rem, 4.6vw, 2.2rem)/1.15 var(--serifa); color: var(--vinho); }
.categoria__titulo .script { font-size: 1.4em; }
.categoria__chamada { color: var(--tinta-2); max-width: 46rem; }
.categoria__foto {
  aspect-ratio: 3 / 1; border-radius: var(--raio); overflow: hidden; margin-bottom: 1.1rem;
}
.categoria__foto img { width: 100%; height: 100%; object-fit: cover; }

.grade { display: grid; gap: 12px; }
@media (min-width: 760px) { .grade { grid-template-columns: 1fr 1fr; gap: 16px; } }

/* Card no formato que o cliente do iFood já conhece: texto à esquerda, foto à
   direita. Com ou sem foto, a estrutura é a mesma — a fileira não vira escadinha. */
.item {
  display: grid; grid-template-columns: 1fr auto; gap: 1rem;
  background: var(--papel);
  border: 1.5px solid var(--linha); border-radius: var(--raio);
  padding: 1rem;
  box-shadow: var(--sombra);
  transition: border-color .2s, background .2s;
}
.item.escolhido { border-color: var(--vinho-acao); background: #fffbf7; }
.item__corpo { display: flex; flex-direction: column; gap: .25rem; min-width: 0; }
.item__topo { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .55rem; }
.item__nome { font: 600 1.12rem/1.25 var(--serifa); }
.item__porcao { font-size: .85rem; font-weight: 600; color: var(--ouro-texto); }
.item__desc {
  color: var(--tinta-2); font-size: .92rem;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.item__pe { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-top: auto; padding-top: .6rem; }
.item__foto {
  width: 108px; height: 108px; border-radius: 14px; object-fit: cover;
  cursor: zoom-in; align-self: start;
}
@media (min-width: 760px) { .item__foto { width: 124px; height: 124px; } }

.preco { display: grid; gap: .05rem; }
.preco__valor { font: 700 1.14rem/1.1 var(--texto); color: var(--vinho); font-variant-numeric: tabular-nums; }
.preco__cada { font-size: .78rem; color: var(--ouro-texto); font-weight: 600; }
.preco__consulta { font-weight: 600; color: var(--tinta-2); font-size: .95rem; }

/* + e contador */
.mais {
  width: 44px; height: 44px; flex: none;
  border-radius: 50%; border: 0;
  background: var(--vinho-acao); color: #fff;
  font-size: 1.6rem; line-height: 1; font-weight: 400;
  display: grid; place-items: center;
  box-shadow: 0 6px 14px -6px rgba(122, 15, 18, .7);
  transition: background .18s, transform .12s;
}
.mais:hover { background: var(--vinho-acao-2); }
.mais:active { transform: scale(.9); }
.contador {
  display: inline-flex; align-items: center;
  background: var(--creme-2); border-radius: 999px; padding: 3px;
}
.contador button {
  width: 38px; height: 38px; border-radius: 50%; border: 0;
  background: var(--papel); color: var(--vinho);
  font-size: 1.3rem; line-height: 1;
  box-shadow: 0 1px 3px rgba(70, 3, 5, .15);
}
.contador button:active { transform: scale(.9); }
.contador span { min-width: 2.1rem; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- encomenda ---------- */
.encomenda {
  position: relative; margin-top: 2rem;
  background:
    radial-gradient(rgba(251, 215, 103, .07) 1px, transparent 1.6px) 0 0 / 22px 22px,
    radial-gradient(120% 90% at 20% 20%, #6c0e11 0%, var(--vinho) 60%, #350203 100%);
  color: var(--creme);
  padding: 3.4rem var(--lado) 3.6rem;
}
.encomenda__dentro {
  max-width: var(--largura); margin: 0 auto;
  display: grid; gap: 1.8rem; align-items: center;
}
.encomenda__texto { display: grid; gap: .9rem; justify-items: start; }
.encomenda__titulo { font: 700 clamp(2rem, 5.6vw, 3rem)/1.08 var(--serifa); }
.encomenda__titulo em { display: block; font-style: normal; font-family: var(--script); font-weight: 400; color: var(--ouro-claro); font-size: 1.25em; line-height: 1.05; }
.encomenda__sub { color: rgba(255, 248, 240, .82); max-width: 30rem; }
@media (min-width: 900px) { .encomenda__dentro { grid-template-columns: 1fr 1fr; gap: 3.5rem; } }

.orcamento {
  background: var(--creme); color: var(--tinta);
  border-radius: 22px; padding: 1.3rem;
  box-shadow: var(--sombra-forte);
  display: grid; gap: 1rem;
  border: 1px solid rgba(251, 215, 103, .45);
}

/* ---------- formulários ---------- */
.campo { display: grid; gap: .35rem; }
.campo > span, .campo-grupo > legend { font-weight: 600; font-size: .88rem; color: var(--tinta); }
.campo > span i { font-style: normal; font-weight: 400; color: var(--tinta-2); }
.campo-grupo { border: 0; margin: 0; padding: 0; display: grid; gap: .45rem; min-width: 0; }
.campo-grupo > legend { padding: 0; margin-bottom: .45rem; }
.campo input, .campo textarea, .campo select {
  width: 100%; min-height: 48px;
  padding: .7rem .85rem;
  font-size: 16px; /* abaixo de 16px o iPhone dá zoom no campo */
  background: var(--papel);
  border: 1.5px solid var(--linha); border-radius: 12px;
  transition: border-color .15s, box-shadow .15s;
}
.campo textarea { resize: vertical; min-height: 64px; }
.campo input:focus, .campo textarea:focus { outline: 0; border-color: var(--ouro); box-shadow: 0 0 0 3px rgba(184, 133, 36, .2); }
.campo small { color: var(--tinta-2); font-size: .82rem; }
.campo__erro { display: none; color: var(--erro); font-style: normal; font-size: .84rem; font-weight: 600; }
.invalido .campo__erro { display: block; }
.invalido input, .invalido textarea { border-color: var(--erro); }
.invalido .fichas button { border-color: var(--erro); }
.dupla { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; align-items: end; }

.fichas { display: flex; flex-wrap: wrap; gap: .45rem; }
.fichas button {
  min-height: 42px; padding: 0 1rem; border-radius: 999px;
  background: var(--papel); border: 1.5px solid var(--linha);
  font-weight: 600; font-size: .92rem; color: var(--tinta);
  transition: background .15s, border-color .15s, color .15s;
}
.fichas button[aria-pressed="true"] { background: var(--vinho); border-color: var(--vinho); color: var(--creme); }

.segmento { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--creme-2); border-radius: 14px; padding: 4px; gap: 4px; }
.segmento button {
  min-height: 44px; border: 0; border-radius: 11px; background: transparent;
  font-weight: 600; font-size: .95rem; color: var(--tinta-2);
}
.segmento button.ativo { background: var(--papel); color: var(--vinho); box-shadow: 0 1px 4px rgba(70, 3, 5, .14); }

/* ---------- como pedir ---------- */
.comopedir { max-width: var(--largura); margin: 0 auto; padding: 4rem var(--lado) 4.5rem; }
.passos { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 760px) { .passos { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .passos { grid-template-columns: repeat(4, 1fr); } }
.passo {
  background: var(--papel); border: 1px solid var(--linha); border-radius: var(--raio);
  padding: 1.2rem 1.2rem 1.3rem; box-shadow: var(--sombra);
  display: grid; gap: .35rem; align-content: start;
}
.passo__n { font: 700 2rem/1 var(--serifa); color: var(--ouro); }
.passo__t { font: 600 1.12rem/1.25 var(--serifa); color: var(--vinho); }
.passo__d { color: var(--tinta-2); font-size: .94rem; }
.pagto { margin-top: 2.2rem; display: grid; gap: .8rem; justify-items: center; text-align: center; }
.pagto__lista { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.pagto__lista li {
  padding: .5rem 1rem; border-radius: 999px;
  background: var(--papel); border: 1px solid var(--linha);
  font-weight: 600; font-size: .92rem;
}

/* ---------- rodapé ---------- */
.rodape {
  position: relative;
  background:
    radial-gradient(rgba(251, 215, 103, .07) 1px, transparent 1.6px) 0 0 / 22px 22px,
    var(--vinho);
  color: var(--creme);
  padding: 3.2rem var(--lado) calc(7rem + env(safe-area-inset-bottom));
  text-align: center;
}
.rodape__dentro { max-width: 40rem; margin: 0 auto; display: grid; gap: 1.2rem; justify-items: center; }
.rodape__logo { width: 140px; height: 140px; }
.rodape__info { display: grid; gap: .3rem; color: rgba(255, 248, 240, .85); }
.rodape__info strong { color: var(--ouro-claro); font-weight: 600; }
.rodape__info p { white-space: pre-line; }
.rodape__links { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }
.rodape__nota { font-size: .82rem; color: rgba(255, 248, 240, .55); }

/* ---------- whatsapp flutuante ---------- */
.zap-flutua {
  position: fixed; z-index: 40;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--zap); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .45);
  transition: transform .2s, opacity .2s;
}
.zap-flutua svg { width: 30px; height: 30px; }
.zap-flutua:hover { transform: scale(1.06); }
body.tem-pedido .zap-flutua { opacity: 0; pointer-events: none; transform: scale(.6); }

/* ---------- barra do pedido ---------- */
.barra-pedido {
  position: fixed; z-index: 40;
  left: 50%; transform: translateX(-50%);
  bottom: max(14px, env(safe-area-inset-bottom));
  width: min(calc(100% - 28px), 520px); min-height: 60px;
  display: flex; align-items: center; gap: .8rem;
  padding: 0 .7rem 0 .6rem;
  border: 0; border-radius: 999px;
  background: var(--vinho-acao); color: #fff;
  box-shadow: var(--sombra-forte);
  font-weight: 600; font-size: 1rem;
  animation: sobe .35s cubic-bezier(.2, .9, .3, 1.2);
}
.barra-pedido__qtd {
  min-width: 42px; height: 42px; padding: 0 .4rem; border-radius: 999px;
  background: var(--ouro-claro); color: var(--vinho);
  display: grid; place-items: center; font-weight: 700;
}
.barra-pedido__txt { flex: 1; text-align: left; }
.barra-pedido__total { font-weight: 700; padding-right: .5rem; font-variant-numeric: tabular-nums; }
.barra-pedido.pulsa { animation: pulsa .4s ease; }
@keyframes sobe { from { transform: translate(-50%, 120%); } }
@keyframes pulsa { 40% { transform: translateX(-50%) scale(1.04); } }

/* ---------- gaveta ---------- */
.fundo { position: fixed; inset: 0; z-index: 50; background: rgba(30, 4, 4, .5); animation: aparece .2s; }
@keyframes aparece { from { opacity: 0; } }
.gaveta {
  position: fixed; z-index: 60;
  left: 0; right: 0; bottom: 0;
  height: 94dvh; max-height: 94vh;
  background: var(--creme);
  border-radius: 24px 24px 0 0;
  display: flex; flex-direction: column;
  transform: translateY(105%);
  transition: transform .32s cubic-bezier(.2, .8, .25, 1);
  box-shadow: 0 -20px 50px -20px rgba(0, 0, 0, .4);
  visibility: hidden;
}
.gaveta.aberta { transform: none; visibility: visible; }
@media (min-width: 760px) {
  .gaveta {
    left: auto; top: 0; width: 460px; height: 100dvh; max-height: none;
    border-radius: 24px 0 0 24px;
    transform: translateX(105%);
  }
}
.gaveta__topo {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 1.2rem .8rem; border-bottom: 1px solid var(--linha);
}
.gaveta__topo h2 { font: 700 1.6rem/1 var(--serifa); color: var(--vinho); }
.gaveta__fechar {
  width: 42px; height: 42px; border-radius: 50%; border: 0;
  background: var(--creme-2); color: var(--vinho); font-size: 1.05rem;
}
.gaveta__corpo { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: .4rem 1.2rem 1.4rem; }
.gaveta__vazio { text-align: center; color: var(--tinta-2); padding: 2.4rem 1rem; }
.gaveta__pe {
  padding: .9rem 1.2rem calc(.9rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--linha); background: var(--papel);
  display: grid; gap: .55rem;
}
.gaveta__total { display: flex; justify-content: space-between; align-items: baseline; }
.gaveta__total strong { font-size: 1.35rem; color: var(--vinho); font-variant-numeric: tabular-nums; }
.gaveta__aviso { font-size: .82rem; color: var(--tinta-2); }
.gaveta__limpar { background: none; border: 0; color: var(--tinta-2); font-size: .88rem; text-decoration: underline; padding: .3rem; }

.linha-pedido {
  display: grid; grid-template-columns: auto 1fr auto; gap: .8rem; align-items: center;
  padding: .85rem 0; border-bottom: 1px solid var(--linha);
}
.linha-pedido__foto { width: 54px; height: 54px; border-radius: 12px; object-fit: cover; }
.linha-pedido__foto--sem { display: grid; place-items: center; background: var(--vinho); }
.linha-pedido__foto--sem img { width: 70%; }
.linha-pedido__nome { font-weight: 600; line-height: 1.25; }
.linha-pedido__meta { font-size: .8rem; color: var(--tinta-2); }
.linha-pedido__lado { display: grid; gap: .35rem; justify-items: end; }
.linha-pedido__preco { font-weight: 700; color: var(--vinho); font-variant-numeric: tabular-nums; }
.linha-pedido .contador button { width: 32px; height: 32px; font-size: 1.1rem; }
.linha-pedido .contador span { min-width: 1.7rem; }

.checkout { display: grid; gap: 1.05rem; margin-top: 1.4rem; }
.checkout__titulo { font: 700 1.25rem/1.2 var(--serifa); color: var(--vinho); }

/* ---------- lupa e +1 ---------- */
.lupa {
  position: fixed; inset: 0; z-index: 80; margin: 0;
  background: rgba(20, 3, 3, .92);
  display: grid; place-items: center; gap: .8rem; padding: 1rem;
  cursor: zoom-out; animation: aparece .2s;
}
.lupa img { max-height: 82vh; border-radius: 14px; box-shadow: var(--sombra-forte); }
.lupa figcaption { color: var(--creme); font-size: .9rem; text-align: center; }

.mais1 {
  position: fixed; z-index: 90; pointer-events: none;
  font-weight: 700; color: var(--vinho-acao);
  transform: translate(-50%, -50%);
  animation: mais1 .8s ease-out forwards;
}
@keyframes mais1 { to { transform: translate(-50%, -260%); opacity: 0; } }

/* ---------- entrada suave ---------- */
.surge { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.surge.visivel { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .surge { opacity: 1; transform: none; }
}
