/* =========================================================
   Delícia de Doce — estilos (mobile-first)
   Paleta tirada das cores do site atual da cliente:
   rosa claro + marrom canela, com creme e chocolate.
   ========================================================= */
:root {
  --creme: #fbf5ef;
  --creme-2: #f6ece3;
  --rosa-claro: #f3e2df;
  --rosa: #c9707a;        /* rosa queimado (destaques) */
  --rosa-escuro: #9e4652; /* botões e textos de destaque — contraste AA */
  --canela: #8f5e45;
  --chocolate: #3e2620;
  --texto: #3e2620;
  --texto-suave: #6e534a;
  --branco: #fffdfb;
  --verde-whats: #1f8a4c;
  --erro: #b3261e;

  --raio: 22px;
  --raio-sm: 14px;
  --sombra: 0 1px 2px rgba(62,38,32,.05), 0 8px 24px rgba(62,38,32,.08);
  --sombra-alta: 0 4px 10px rgba(62,38,32,.08), 0 22px 48px rgba(62,38,32,.16);
  --mola: cubic-bezier(.34, 1.56, .64, 1); /* leve "quique" */
  --suave: cubic-bezier(.22, 1, .36, 1);

  --f-titulo: "Fraunces", Georgia, serif;
  --f-texto: "Nunito Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; overflow-x: hidden;
  background: var(--creme); color: var(--texto);
  font: 400 16px/1.6 var(--f-texto);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
figure { margin: 0; }
h1, h2, h3 { font-family: var(--f-titulo); line-height: 1.1; margin: 0; letter-spacing: -.01em; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.so-desk { display: none; }
@media (min-width: 720px) { .so-desk { display: inline; } }

:focus-visible { outline: 3px solid var(--rosa-escuro); outline-offset: 3px; border-radius: 10px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--chocolate); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }

/* ---------- Faixa de prévia ---------- */
.previa { background: var(--chocolate); color: var(--rosa-claro); text-align: center; font-size: 13px; font-weight: 700; letter-spacing: .03em; padding: 7px 12px; }

/* ---------- Topo (fica fixo e ganha fundo ao rolar) ---------- */
.topo { position: sticky; top: 0; z-index: 30; background: rgba(243,226,223,.0); transition: background-color .3s, box-shadow .3s, backdrop-filter .3s; }
.topo.rolou { background: rgba(251,245,239,.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 rgba(62,38,32,.08); }
.topo__in { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.marca { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.marca__selo svg { display: block; transition: transform .5s var(--mola); }
.marca:hover .marca__selo svg { transform: rotate(-12deg) scale(1.08); }
.marca__nome { font-family: var(--f-titulo); font-weight: 700; font-size: 21px; color: var(--chocolate); white-space: nowrap; }
.topo__nav { display: none; gap: 28px; }
.topo__nav a { color: var(--chocolate); text-decoration: none; font-weight: 700; position: relative; padding: 10px 0; }
.topo__nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px; background: var(--rosa); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--suave); }
.topo__nav a:hover::after { transform: scaleX(1); transform-origin: left; }
@media (min-width: 860px) { .topo__nav { display: flex; } }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 12px 24px; border-radius: 999px; border: 2px solid transparent;
  font: 800 16px/1 var(--f-texto); text-decoration: none; cursor: pointer; position: relative; overflow: hidden;
  transition: transform .25s var(--mola), box-shadow .25s, background-color .2s, color .2s;
}
.btn svg { transition: transform .3s var(--mola); }
.btn:hover { transform: translateY(-2px); box-shadow: var(--sombra); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(0) scale(.97); box-shadow: none; }
.btn--sm { min-height: 44px; padding: 8px 16px; font-size: 15px; }
.btn--primary { background: var(--rosa-escuro); color: #fff; }
.btn--primary:hover { background: #87394a; }
.btn--ghost { background: transparent; color: var(--chocolate); border-color: rgba(143,94,69,.5); }
.btn--ghost:hover { background: var(--branco); border-color: var(--canela); }
.btn--link { background: none; color: var(--chocolate); padding-left: 8px; padding-right: 8px; text-decoration: underline; text-decoration-color: var(--rosa); text-underline-offset: 6px; text-decoration-thickness: 2px; }
.btn--link:hover { box-shadow: none; text-decoration-color: var(--chocolate); }
.btn--claro { background: var(--rosa-claro); color: var(--chocolate); }
.btn--claro:hover { background: #fff; }
.btn--whats { background: var(--verde-whats); color: #fff; width: 100%; font-size: 17px; min-height: 56px; }
.btn--whats:hover { background: #18723e; }
/* brilho que passa no botão do WhatsApp */
.btn--whats::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%); transform: translateX(-100%); animation: brilho 3.2s ease-in-out infinite 1s; }
@keyframes brilho { 0%, 60% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

/* Efeito "onda" ao clicar (criado pelo app.js) */
.onda { position: absolute; border-radius: 50%; background: rgba(255,255,255,.45); transform: scale(0); animation: onda .6s ease-out forwards; pointer-events: none; }
@keyframes onda { to { transform: scale(4); opacity: 0; } }

/* ---------- Entradas ---------- */
.entra { animation: entrar .9s var(--suave) both; animation-delay: calc(var(--i, 0) * 110ms + 100ms); }
@keyframes entrar { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.revela { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--suave), transform .8s var(--suave); transition-delay: calc(var(--i, 0) * 120ms); }
.revela.visivel { opacity: 1; transform: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; margin-top: -68px; padding: 108px 0 64px;
  background:
    radial-gradient(60% 50% at 90% 10%, rgba(201,112,122,.22), transparent 70%),
    radial-gradient(50% 40% at 0% 100%, rgba(232,180,160,.35), transparent 70%),
    linear-gradient(180deg, var(--rosa-claro), var(--creme) 92%);
}
.hero__grade { display: grid; gap: 44px; align-items: center; position: relative; z-index: 1; }
@media (min-width: 960px) { .hero__grade { grid-template-columns: 1.05fr 1fr; gap: 56px; } .hero { padding: 128px 0 96px; } }

.hero__kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; padding: 8px 14px; border-radius: 999px; background: rgba(255,253,251,.7); color: var(--canela); font-weight: 800; font-size: 13px; letter-spacing: .02em; }
.ponto { width: 8px; height: 8px; border-radius: 50%; background: #2fa865; box-shadow: 0 0 0 0 rgba(47,168,101,.6); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 9px rgba(47,168,101,0); } 100% { box-shadow: 0 0 0 0 rgba(47,168,101,0); } }
.hero__titulo { font-size: clamp(42px, 10vw, 76px); font-weight: 700; color: var(--chocolate); max-width: 12ch; }
.hero__titulo em { font-style: italic; font-weight: 500; color: var(--rosa-escuro); position: relative; white-space: nowrap; }
.hero__titulo em::after { /* sublinhado desenhado */
  content: ""; position: absolute; left: 2%; right: 2%; bottom: -.04em; height: .16em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'%3E%3Cpath d='M2 8 Q50 1 100 6 T198 5' fill='none' stroke='%23c9707a' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
  transform: scaleX(0); transform-origin: left; animation: risca .9s var(--suave) 1s forwards;
}
@keyframes risca { to { transform: scaleX(1); } }
.hero__slogan { font-size: 18px; color: var(--texto-suave); margin: 20px 0 28px; max-width: 44ch; }
.hero__acoes { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.hero__fatos { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 460px; }
.hero__fatos li { background: rgba(255,253,251,.75); border-radius: var(--raio-sm); padding: 12px; display: flex; flex-direction: column; transition: transform .3s var(--mola); }
.hero__fatos li:hover { transform: translateY(-3px); }
.hero__fatos strong { font: 700 17px var(--f-titulo); color: var(--chocolate); }
.hero__fatos span { font-size: 13px; color: var(--texto-suave); }

/* fotos do hero */
.hero__fotos { position: relative; min-height: 360px; }
@media (min-width: 600px) { .hero__fotos { min-height: 460px; } }
.hero__foto { position: absolute; overflow: hidden; box-shadow: var(--sombra-alta); }
.hero__foto img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--suave); }
.hero__foto:hover img { transform: scale(1.04); }
.hero__foto--grande { inset: 0 0 50px 8%; border-radius: 200px 200px var(--raio) var(--raio); }
.hero__foto--mini { width: 42%; aspect-ratio: 1; left: 0; bottom: 0; border-radius: 50%; border: 6px solid var(--creme); animation: flutua 6s ease-in-out infinite; }
@keyframes flutua { 50% { transform: translateY(-10px); } }
.selo-gira { position: absolute; right: -6px; top: -14px; width: 116px; height: 116px; display: grid; place-items: center; background: var(--chocolate); color: var(--rosa-claro); border-radius: 50%; box-shadow: var(--sombra-alta); }
.selo-gira svg { position: absolute; inset: 0; animation: gira 16s linear infinite; }
.selo-gira text { font: 800 11.5px var(--f-texto); text-transform: uppercase; fill: currentColor; }
.selo-gira span { font-size: 34px; }
@keyframes gira { to { transform: rotate(360deg); } }
.hero__cartao { position: absolute; right: 4%; bottom: 14px; display: flex; gap: 10px; align-items: center; background: var(--branco); padding: 12px 16px; border-radius: 16px; box-shadow: var(--sombra-alta); animation: flutua 7s ease-in-out infinite .8s; }
.hero__cartao-emoji { font-size: 26px; }
.hero__cartao strong { display: block; font: 700 15px var(--f-titulo); }
.hero__cartao span:not(.hero__cartao-emoji) { font-size: 13px; color: var(--texto-suave); }

/* granulados decorativos */
.granulado { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.granulado i { position: absolute; left: var(--x); top: var(--y); width: 26px; height: 8px; border-radius: 8px; background: var(--c); opacity: .55; transform: rotate(var(--r)); animation: cai 7s ease-in-out infinite var(--d); }
@keyframes cai { 50% { transform: rotate(calc(var(--r) + 40deg)) translateY(14px); } }

/* ---------- Faixa correndo ---------- */
.faixa { background: var(--chocolate); color: var(--rosa-claro); overflow: hidden; padding: 16px 0; transform: rotate(-1.2deg) scale(1.02); margin: -8px 0 0; position: relative; z-index: 2; }
.faixa__trilho { display: flex; gap: 28px; width: max-content; animation: corre 32s linear infinite; font: italic 500 22px var(--f-titulo); white-space: nowrap; align-items: center; }
.faixa__trilho b { color: var(--rosa); font-size: 16px; }
.faixa:hover .faixa__trilho { animation-play-state: paused; }
@keyframes corre { to { transform: translateX(-50%); } }

/* ---------- Seções ---------- */
.secao__cabeca { margin-bottom: 28px; max-width: 640px; }
.secao__kicker { margin: 0 0 8px; color: var(--rosa-escuro); font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .12em; }
.secao__kicker--claro { color: var(--rosa); }
.secao__titulo { font-size: clamp(32px, 7vw, 52px); color: var(--chocolate); }
.secao__sub { color: var(--texto-suave); margin: 12px 0 0; font-size: 17px; }

/* ---------- Vitrine ---------- */
.vitrine { padding: 80px 0 96px; outline: none; }
.filtros { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 18px; margin: 0 -2px 8px; scrollbar-width: none; }
.filtro {
  flex: 0 0 auto; min-height: 46px; padding: 8px 20px; border-radius: 999px;
  border: 2px solid #ead7d1; background: var(--branco); color: var(--chocolate);
  font: 800 15px var(--f-texto); cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  transition: background-color .25s, border-color .25s, color .25s, transform .3s var(--mola);
}
.filtro:hover { border-color: var(--rosa); transform: translateY(-2px); }
.filtro:active { transform: scale(.95); }
.filtro[aria-pressed="true"] { background: var(--chocolate); border-color: var(--chocolate); color: var(--rosa-claro); }
.filtro__n { font-size: 12px; background: rgba(201,112,122,.18); color: inherit; border-radius: 999px; padding: 2px 8px; }

.grade { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .grade { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grade { grid-template-columns: repeat(3, 1fr); gap: 28px; } }

.card {
  background: var(--branco); border-radius: var(--raio); box-shadow: var(--sombra);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .4s var(--suave), box-shadow .4s var(--suave);
  animation: cardEntra .6s var(--suave) both; animation-delay: calc(var(--i) * 70ms);
}
@keyframes cardEntra { from { opacity: 0; transform: translateY(18px) scale(.98); } }
.card:hover { transform: translateY(-4px); box-shadow: var(--sombra-alta); }
.card__foto { aspect-ratio: 4 / 3; overflow: hidden; position: relative; background: var(--rosa-claro); }
.card__foto img, .card__placeholder { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--suave); }
.card:hover .card__foto img, .card:hover .card__placeholder { transform: scale(1.06); }
.card__placeholder { display: grid; place-items: center; font-size: 72px; }
.card__selo { position: absolute; top: 12px; left: 12px; background: rgba(255,253,251,.92); color: var(--canela); font-size: 12px; font-weight: 800; padding: 5px 12px; border-radius: 999px; backdrop-filter: blur(6px); }
.card__corpo { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card__nome { font-size: 23px; color: var(--chocolate); }
.card__desc { margin: 0; color: var(--texto-suave); font-size: 15px; }
.card__opcao label { display: block; font-size: 13px; font-weight: 800; color: var(--texto-suave); margin-bottom: 4px; }
.card__rodape { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 8px; }
.preco { font: 700 24px var(--f-titulo); color: var(--rosa-escuro); display: inline-block; }
.preco small { font: 700 12px var(--f-texto); color: var(--texto-suave); display: block; }
.preco.pula { animation: pula .4s var(--mola); }
@keyframes pula { 40% { transform: scale(1.12); } }
.btn-add .mais { display: inline-block; font-size: 20px; line-height: 0; transition: transform .35s var(--mola); }
.btn-add:hover .mais { transform: rotate(90deg); }
.btn-add { white-space: nowrap; }
.btn-add.ok { background: var(--verde-whats); }
.btn-add.ok .mais { display: none; }

select, input, textarea {
  width: 100%; min-height: 48px; padding: 10px 14px;
  border: 2px solid #ead7d1; border-radius: var(--raio-sm); background: var(--branco);
  font: 400 16px var(--f-texto); color: var(--texto); transition: border-color .2s, box-shadow .2s;
}
select { appearance: none; background: var(--branco) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%238f5e45' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center; padding-right: 38px; cursor: pointer; }
textarea { min-height: 88px; resize: vertical; }
select:hover, input:hover, textarea:hover { border-color: #d9b9af; }
select:focus, input:focus, textarea:focus { border-color: var(--rosa-escuro); outline: none; box-shadow: 0 0 0 4px rgba(158,70,82,.16); }
[aria-invalid="true"] { border-color: var(--erro) !important; animation: treme .35s; }
@keyframes treme { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

/* foto "voando" até o carrinho */
.voando { position: fixed; z-index: 80; border-radius: 50%; object-fit: cover; pointer-events: none; box-shadow: var(--sombra-alta); transition: transform .75s cubic-bezier(.5,-.3,.7,1), opacity .75s; }

/* ---------- Como pedir ---------- */
.como { padding: 88px 0; background: var(--creme-2); }
.passos { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; counter-reset: p; }
@media (min-width: 820px) { .passos { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.passo { position: relative; background: var(--branco); border-radius: var(--raio); padding: 28px 24px 26px; box-shadow: var(--sombra); transition: transform .4s var(--suave), box-shadow .4s; }
.passo:hover { transform: translateY(-4px); box-shadow: var(--sombra-alta); }
.passo__num { position: absolute; top: 18px; right: 22px; font: italic 700 56px/1 var(--f-titulo); color: var(--rosa-claro); }
.passo__icone { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: var(--rosa-claro); font-size: 28px; margin-bottom: 18px; transition: transform .5s var(--mola); }
.passo:hover .passo__icone { transform: rotate(-8deg) scale(1.1); }
.passo h3 { font-size: 22px; margin-bottom: 6px; position: relative; }
.passo p { margin: 0; color: var(--texto-suave); position: relative; }

/* ---------- Destaque ---------- */
.destaque { background: var(--chocolate); color: #f8e9e4; padding: 88px 0; overflow: hidden; }
.destaque__grade { display: grid; gap: 40px; align-items: center; }
@media (min-width: 860px) { .destaque__grade { grid-template-columns: 1fr 1.1fr; gap: 72px; } .destaque__foto { aspect-ratio: 4 / 5; } }
.destaque__foto { border-radius: var(--raio); overflow: hidden; aspect-ratio: 4 / 3; max-height: 560px; transform: rotate(-2deg); box-shadow: 0 30px 60px rgba(0,0,0,.35); transition: transform .6s var(--suave); }
.destaque__foto.visivel { transform: rotate(-2deg); }
.destaque__foto:hover { transform: rotate(0deg) scale(1.02); }
.destaque__foto img { width: 100%; height: 100%; object-fit: cover; }
.destaque h2 { font-size: clamp(34px, 7vw, 56px); color: #fff; margin-bottom: 16px; }
.destaque p { font-size: 18px; color: #e8d3cc; margin: 0 0 28px; max-width: 46ch; }

/* ---------- Entrega ---------- */
.entrega { padding: 88px 0; }
.entrega__grade { display: grid; gap: 28px; align-items: center; }
@media (min-width: 860px) { .entrega__grade { grid-template-columns: 1fr 1fr; gap: 56px; } }
.cidades { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.cidade { display: flex; align-items: center; gap: 16px; background: var(--branco); border-radius: var(--raio); padding: 20px 22px; box-shadow: var(--sombra); transition: transform .4s var(--mola); }
.cidade:hover { transform: translateX(6px); }
.cidade__pin { width: 48px; height: 48px; border-radius: 50%; background: var(--rosa-claro); display: grid; place-items: center; font-size: 22px; flex: 0 0 auto; }
.cidade strong { font: 700 21px var(--f-titulo); display: block; }
.cidade span { color: var(--texto-suave); font-size: 15px; }
.cidade--retirada .cidade__pin { background: #e5f3ea; }

/* ---------- Instagram ---------- */
.insta { padding: 0 0 96px; }
.insta__in { background: linear-gradient(120deg, var(--rosa-claro), #f7d9cf); border-radius: 32px; padding: 44px 28px; display: grid; gap: 22px; justify-items: start; position: relative; overflow: hidden; }
.insta__in::before { content: "🍓"; position: absolute; right: 18px; top: 10px; font-size: 64px; opacity: .25; animation: flutua 5s ease-in-out infinite; }
.insta h2 { font-size: clamp(26px, 5.5vw, 40px); color: var(--chocolate); max-width: 22ch; }
@media (min-width: 860px) { .insta__in { grid-template-columns: 1fr auto; align-items: center; padding: 56px; } }

/* ---------- Botão flutuante ---------- */
.fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 40;
  display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 0 12px 0 20px;
  background: var(--chocolate); color: var(--rosa-claro); border: 0; border-radius: 999px;
  font: 800 16px var(--f-texto); box-shadow: var(--sombra-alta); cursor: pointer;
  transition: transform .3s var(--mola);
}
.fab:hover { transform: translateY(-3px); }
.fab:active { transform: scale(.95); }
.fab__total { font-weight: 700; opacity: .85; }
.fab__total:empty { display: none; }
.fab__badge { min-width: 30px; height: 30px; padding: 0 8px; border-radius: 999px; background: var(--rosa); color: #fff; display: grid; place-items: center; font-size: 14px; }
.fab.pulsar { animation: pulsar .5s var(--mola); }
.fab.pulsar .fab__badge { animation: badge .5s var(--mola); }
@keyframes pulsar { 40% { transform: scale(1.08); } }
@keyframes badge { 40% { transform: scale(1.4); background: #e58b95; } }

/* ---------- Gaveta ---------- */
.veu { position: fixed; inset: 0; background: rgba(62,38,32,.45); backdrop-filter: blur(3px); z-index: 50; animation: fade .3s both; }
.gaveta { position: fixed; inset: 0; z-index: 60; background: var(--creme); display: flex; flex-direction: column; animation: deslizar .45s var(--suave) both; }
@media (min-width: 720px) { .gaveta { left: auto; width: 470px; border-radius: 28px 0 0 28px; box-shadow: var(--sombra-alta); } }
@keyframes deslizar { from { transform: translateX(100%); } to { transform: none; } }
@keyframes fade { from { opacity: 0; } }

.gaveta__topo { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; background: var(--rosa-claro); }
.gaveta__topo h2 { font-size: 26px; color: var(--chocolate); }
.icone-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--branco); color: var(--chocolate); cursor: pointer; display: grid; place-items: center; transition: transform .35s var(--mola); }
.icone-btn:hover { transform: rotate(90deg); }
.gaveta__corpo { overflow-y: auto; padding: 18px 20px 28px; flex: 1; }

.itens { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.item { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: start; background: var(--branco); padding: 12px; border-radius: var(--raio-sm); box-shadow: var(--sombra); animation: itemEntra .4s var(--suave) both; }
@keyframes itemEntra { from { opacity: 0; transform: translateX(16px); } }
.item__mini { width: 64px; height: 64px; border-radius: 12px; display: grid; place-items: center; font-size: 28px; overflow: hidden; }
.item__mini img { width: 100%; height: 100%; object-fit: cover; }
.item__nome { font-weight: 800; margin: 0; }
.item__opc { font-size: 13px; color: var(--texto-suave); margin: 0; }
.item__linha { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.qtd { display: inline-flex; align-items: center; border: 2px solid #ead7d1; border-radius: 999px; }
.qtd button { width: 40px; height: 40px; border: 0; background: none; font-size: 20px; font-weight: 800; color: var(--chocolate); cursor: pointer; border-radius: 50%; transition: background-color .2s, transform .2s var(--mola); }
.qtd button:hover { background: var(--rosa-claro); }
.qtd button:active { transform: scale(.85); }
.qtd output { min-width: 26px; text-align: center; font-weight: 800; }
.remover { background: none; border: 0; color: var(--rosa-escuro); font: 700 14px var(--f-texto); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 40px; }
.item__preco { font-weight: 800; color: var(--chocolate); }

.vazio { text-align: center; color: var(--texto-suave); padding: 40px 0; display: grid; justify-items: center; gap: 8px; }
.vazio p { margin: 0 0 8px; }
.vazio__emoji { font-size: 56px; animation: flutua 3s ease-in-out infinite; }
.subtotal { display: flex; justify-content: space-between; align-items: baseline; padding: 18px 4px; border-bottom: 2px dashed #ead7d1; margin-bottom: 8px; font-size: 18px; }
.subtotal strong { font: 700 26px var(--f-titulo); color: var(--rosa-escuro); }

.form h3 { font-size: 23px; margin: 14px 0 16px; color: var(--chocolate); }
.campo { margin-bottom: 14px; border: 0; padding: 0; min-width: 0; }
.campo > label, .campo legend { display: block; font-weight: 800; font-size: 15px; margin-bottom: 6px; }
.opc { font-weight: 400; color: var(--texto-suave); }
.linha { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.modo { display: flex; gap: 10px; flex-wrap: wrap; }
.modo legend { width: 100%; }
.pill { flex: 1; position: relative; cursor: pointer; }
.pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pill span { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 50px; border: 2px solid #ead7d1; border-radius: 999px; background: var(--branco); font-weight: 800; transition: all .25s var(--suave); }
.pill:hover span { border-color: var(--rosa); }
.pill input:checked + span { background: var(--chocolate); border-color: var(--chocolate); color: var(--rosa-claro); transform: scale(1.02); }
.pill input:focus-visible + span { outline: 3px solid var(--rosa-escuro); outline-offset: 3px; }
.bloco-entrega { animation: abre .4s var(--suave); }
@keyframes abre { from { opacity: 0; transform: translateY(-8px); } }
.aviso { background: #fdeedd; border-left: 4px solid var(--canela); padding: 10px 12px; border-radius: 8px; font-size: 14px; margin: 0 0 14px; }
.erro { color: var(--erro); font-size: 14px; font-weight: 700; margin: 4px 0 0; }
.erro:empty { display: none; }
.erro--geral { margin-bottom: 10px; }

/* ---------- Tela de sucesso ---------- */
.sucesso { display: grid; justify-items: center; text-align: center; gap: 12px; padding: 36px 8px 8px; outline: none; animation: abre .5s var(--suave); }
.sucesso h3 { font-size: 30px; color: var(--chocolate); }
.sucesso p { margin: 0 0 8px; color: var(--texto-suave); max-width: 34ch; }
.sucesso .btn--whats { width: auto; }
.sucesso__check { width: 96px; height: 96px; }
.sucesso__check circle { fill: #e5f3ea; stroke: var(--verde-whats); stroke-width: 4; stroke-dasharray: 230; stroke-dashoffset: 230; transform-origin: center; animation: desenha .7s var(--suave) forwards, pulsar .5s var(--mola) .7s; }
.sucesso__check path { fill: none; stroke: var(--verde-whats); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: desenha .45s var(--suave) .55s forwards; }
@keyframes desenha { to { stroke-dashoffset: 0; } }
/* barrinha mostrando que a gaveta vai fechar sozinha (6s) */
.sucesso__barra { width: 160px; height: 4px; border-radius: 4px; background: #ead7d1; overflow: hidden; margin-top: 8px; position: relative; }
.sucesso__barra::after { content: ""; position: absolute; inset: 0; background: var(--rosa); transform-origin: left; animation: esvazia 6s linear forwards; }
@keyframes esvazia { from { transform: scaleX(1); } to { transform: scaleX(0); } }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 92px; transform: translate(-50%, 20px) scale(.96); z-index: 70; background: var(--chocolate); color: #fff; padding: 12px 20px; border-radius: 999px; font-weight: 700; opacity: 0; pointer-events: none; transition: all .35s var(--mola); max-width: calc(100% - 32px); }
.toast.mostrar { opacity: 1; transform: translate(-50%, 0) scale(1); }

/* ---------- Rodapé ---------- */
.rodape { background: var(--canela); color: #fff7f2; padding: 48px 0 110px; }
.rodape__in { display: grid; gap: 20px; }
@media (min-width: 760px) { .rodape__in { grid-template-columns: 1fr 1fr; } }
.rodape p { margin: 0; }
.rodape__marca { font: 700 26px var(--f-titulo); }
.rodape a { color: #fff; font-weight: 800; display: inline-flex; min-height: 44px; align-items: center; text-underline-offset: 5px; }
.rodape a:hover { text-decoration-thickness: 2px; }
.rodape__credito { font-weight: 700; }
.rodape__fotos { font-size: 12px; opacity: .75; grid-column: 1 / -1; }

body.travado { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .revela { opacity: 1; transform: none; }
  .hero__titulo em::after { transform: none; }
  .sucesso__check circle, .sucesso__check path { stroke-dashoffset: 0; }
}
