/* VOICE: doce, alegre e caseiro, como a vitrine de uma confeitaria de bairro
   IDEA: a caixa de bolo com fita: rosa por fora, verde-limão por dentro, etiqueta branca e letra preta
   PICTURE: fotos reais dos bolos em molduras de etiqueta, granulado que foge do mouse
   COLOUR and TYPE: verde-limão claro + rosa do logo, branco e preto; Great Vibes (marca) + Outfit
   LAYOUT: topo fixo, hero em duas colunas, grade de cards, faixas de cor de ponta a ponta */
:root {
  color-scheme: light;
  --limao: #dff2c4; --limao-2: #c6e79b; --limao-forte: #8cc456;
  --rosa: #e8578c; --rosa-2: #c93a6f; --rosa-claro: #fde4ee;
  --preto: #1b1b1b; --cinza: #5c5c5c; --linha: #ececec; --branco: #fff;
  --raio: 22px; --sombra: 0 18px 40px -18px rgba(120, 30, 70, .35);
  --script: 'Great Vibes', cursive; --ui: 'Outfit', system-ui, sans-serif;
}
* { box-sizing: border-box; min-width: 0 }
html { scroll-behavior: smooth; scroll-padding-top: 84px }
html.travado { overflow: hidden }
body { margin: 0; font: 16px/1.55 var(--ui); color: var(--preto); background: var(--branco); overflow-x: clip }
img { max-width: 100%; display: block }
[hidden] { display: none !important }
a { color: inherit }
h1, h2, h3 { line-height: 1.08; margin: 0; text-wrap: balance }
h2 { font-size: clamp(32px, 4.4vw, 48px); font-weight: 800; letter-spacing: -.02em }
:focus-visible { outline: 3px solid var(--rosa); outline-offset: 3px; border-radius: 8px }
.pular { position: absolute; left: -999px; top: 8px; background: var(--preto); color: #fff; padding: 10px 14px; border-radius: 10px; z-index: 100 }
.pular:focus { left: 8px }

/* botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 999px; border: 2px solid transparent; font: 600 16px var(--ui); text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, box-shadow .2s; white-space: nowrap; will-change: transform }
.btn svg { width: 20px; height: 20px; flex: none }
.btn--grande { min-height: 54px; padding: 0 28px; font-size: 17px }
.btn--largo { width: 100% }
.btn--preto { background: var(--preto); color: #fff }
.btn--preto:hover { background: #000; box-shadow: 0 10px 24px -10px rgba(0,0,0,.6) }
.btn--rosa { background: var(--rosa); color: #fff }
.btn--rosa:hover { background: var(--rosa-2) }
.btn--branco { background: #fff; color: var(--rosa-2) }
.btn--linha { background: transparent; border-color: var(--preto); color: var(--preto) }
.btn--linha:hover { background: var(--preto); color: #fff }
.btn--whats { background: #1f9d55; color: #fff }
.btn--whats:hover { background: #18834a }
.selo { display: inline-block; margin: 0 0 14px; padding: 6px 14px; border-radius: 999px; background: var(--rosa-claro); color: var(--rosa-2); font-weight: 600; font-size: 14px }
.selo--claro { background: rgba(255,255,255,.2); color: #fff }

/* topo */
.topo { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 20px; padding: 10px max(4vw, 16px); background: rgba(255,255,255,.86); backdrop-filter: blur(12px); transition: box-shadow .3s }
.topo.rolou { box-shadow: 0 6px 24px -12px rgba(0,0,0,.25) }
.marca { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto }
.marca img { width: 44px; height: 44px; border-radius: 50% }
.marca span { display: flex; flex-direction: column; line-height: 1 }
.marca em { font: normal 30px var(--script); color: var(--preto) }
.marca small { font-size: 11px; letter-spacing: .08em; color: var(--rosa-2); font-weight: 600; text-transform: uppercase }
.menu { display: flex; gap: 4px }
.menu a { text-decoration: none; padding: 10px 14px; border-radius: 999px; font-weight: 500 }
.menu a:hover { background: var(--limao) }
.btn--pedido { min-height: 44px; padding: 0 18px }
.contador { min-width: 24px; height: 24px; border-radius: 999px; background: #fff; color: var(--rosa-2); font-size: 13px; font-weight: 800; display: inline-grid; place-items: center; padding: 0 6px }
.pulso { animation: pulso .5s cubic-bezier(.16,1,.3,1) }
@keyframes pulso { 40% { transform: scale(1.25) } }

/* hero */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 60px); align-items: center; padding: clamp(36px, 6vw, 84px) max(5vw, 16px) clamp(48px, 7vw, 96px); background: radial-gradient(120% 90% at 90% 10%, var(--rosa-claro) 0 38%, transparent 60%), linear-gradient(180deg, #fff 0%, var(--limao) 100%); overflow: hidden; isolation: isolate }
.fx-granulado { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none }
.hero__titulo { font-size: clamp(40px, 6vw, 72px); font-weight: 800; letter-spacing: -.03em; line-height: 1.02 }
.hero__titulo i { font: normal 1.25em var(--script); color: var(--rosa); letter-spacing: 0; padding-right: .08em }
.palavra { display: inline-block; opacity: 0; transform: translateY(18px); transition: opacity .55s cubic-bezier(.16,1,.3,1), transform .55s cubic-bezier(.16,1,.3,1) }
.palavra.dentro { opacity: 1; transform: none }
.hero__troca { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 18px 0 8px; font-size: clamp(20px, 2.4vw, 26px); font-weight: 600 }
.janela { position: relative; height: 1.35em; overflow: hidden; display: inline-block; vertical-align: bottom; background: var(--preto); color: var(--limao); border-radius: 12px; padding: 0 14px }
.janela .fita { display: block }
.janela .fita span { display: block; height: 1.35em; line-height: 1.35em }
.hero__lead { max-width: 52ch; color: var(--cinza); font-size: 18px; margin: 12px 0 28px }
.acoes { display: flex; flex-wrap: wrap; gap: 12px }
.acoes--centro { justify-content: center }
.hero__arte { position: relative; aspect-ratio: 1 / .95; max-width: 560px; justify-self: center; width: 100% }
.moldura { position: absolute; background: #fff; padding: 10px 10px 34px; border-radius: 18px; box-shadow: var(--sombra); transition: transform .6s cubic-bezier(.16,1,.3,1) }
.moldura img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px }
.moldura--a { width: 60%; height: 66%; left: 4%; top: 6%; transform: rotate(-5deg); z-index: 2 }
.moldura--b { width: 48%; height: 56%; right: 2%; top: 0; transform: rotate(6deg) }
.moldura--c { width: 46%; height: 40%; right: 8%; bottom: 0; transform: rotate(-3deg); z-index: 3; background: var(--limao-2) }
.hero__arte:hover .moldura--a { transform: rotate(-7deg) translateY(-6px) }
.hero__arte:hover .moldura--b { transform: rotate(9deg) translateY(-4px) }
.hero__logo { position: absolute; width: 26%; left: 0; bottom: 4%; z-index: 4; border-radius: 50%; box-shadow: var(--sombra); animation: girar 18s linear infinite }
@keyframes girar { to { transform: rotate(360deg) } }

/* seções */
.secao { padding: clamp(56px, 7vw, 104px) max(5vw, 16px) }
.secao--branca { background: #fff }
.secao--limao { background: var(--limao) }
.secao--rosa { background: var(--rosa); color: #fff }
.cabeca { max-width: 720px; margin: 0 auto 28px; text-align: center }
.cabeca p:not(.selo) { color: var(--cinza); font-size: 18px; margin: 14px 0 0 }
.cabeca--linha { max-width: 1240px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; text-align: left }
.revelar { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1) }
.revelar.visto { opacity: 1; transform: none }

/* filtros + grade */
.filtros { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 10px }
.filtros button { min-height: 44px; padding: 0 20px; border-radius: 999px; border: 2px solid var(--preto); background: #fff; font: 600 15px var(--ui); cursor: pointer; transition: background .2s, color .2s }
.filtros button:hover { background: var(--limao) }
.filtros button.on { background: var(--preto); color: #fff }
.contagem { text-align: center; color: var(--cinza); font-size: 14px; margin: 0 0 24px }
.grade { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 22px }
.carregando { grid-column: 1 / -1; text-align: center; color: var(--cinza) }
.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--linha); border-radius: var(--raio); overflow: hidden; transition: box-shadow .3s, border-color .3s; will-change: transform }
.card:hover { box-shadow: var(--sombra); border-color: transparent }
.card.fora { display: none }
.card__foto { position: relative; display: block; padding: 0; border: 0; background: var(--limao); aspect-ratio: 4 / 3.3; cursor: zoom-in; overflow: hidden }
.card__foto img, .card__foto .sem-foto { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.16,1,.3,1) }
.card:hover .card__foto img { transform: scale(1.05) }
.fita-destaque { position: absolute; top: 12px; left: 12px; background: var(--rosa); color: #fff; font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 999px }
.sem-foto { display: grid; place-items: center; align-content: center; gap: 4px; background: repeating-linear-gradient(45deg, var(--limao) 0 14px, #e8f6d4 14px 28px); color: var(--cinza); font-size: 13px }
.sem-foto svg { width: 56%; max-width: 180px }
.card__corpo { display: flex; flex-direction: column; gap: 6px; padding: 18px 18px 20px; flex: 1 }
.tag { align-self: flex-start; font-size: 13px; font-weight: 600; color: var(--rosa-2); background: var(--rosa-claro); padding: 2px 10px; border-radius: 999px }
.card h3 { font-size: 20px; font-weight: 700 }
.card p { margin: 0; color: var(--cinza); font-size: 15px }
.card__ctrl { margin-top: auto; padding-top: 10px; display: flex; flex-direction: column; gap: 12px }
.chips { display: flex; flex-wrap: wrap; gap: 8px }
.chip { display: flex; flex-direction: column; align-items: flex-start; min-height: 44px; padding: 6px 14px; border-radius: 14px; border: 2px solid var(--linha); background: #fff; font: 600 14px var(--ui); cursor: pointer; text-align: left }
.chip small { font-weight: 400; font-size: 13px; color: var(--cinza) }
.chip.on { border-color: var(--rosa); background: var(--rosa-claro) }
.card__rodape { display: flex; align-items: center; justify-content: space-between; gap: 10px }
.preco { font-size: 22px; font-weight: 800; white-space: nowrap }
.preco--combinar { font-size: 16px; color: var(--rosa-2) }
.btn--add { min-height: 44px; padding: 0 18px }
.qtd { display: inline-flex; align-items: center; background: var(--limao); border-radius: 999px; padding: 3px }
.qtd button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; font: 700 20px var(--ui); cursor: pointer; display: grid; place-items: center }
.qtd button:hover { background: var(--preto); color: #fff }
.qtd output { min-width: 34px; text-align: center; font-weight: 800; font-size: 17px }
.qtd--mini button { width: 34px; height: 34px; font-size: 18px }

/* faixa que corre */
.faixa { background: var(--preto); color: var(--limao); overflow: hidden; padding: 16px 0; font: normal 34px var(--script) }
.faixa__trilho { display: flex; width: max-content; animation: correr 32s linear infinite }
.faixa__trilho span { white-space: nowrap; padding-right: 10px }
@keyframes correr { to { transform: translateX(-50%) } }

/* salgados */
.salgados { max-width: 1140px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: center }
.salgados__texto p:not(.selo) { font-size: 18px; color: #3c4a30 }
.tamanhos { list-style: none; padding: 0; margin: 22px 0 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px }
.tamanhos li { background: #fff; border-radius: 18px; padding: 16px; display: flex; flex-direction: column }
.tamanhos b { color: var(--rosa-2) } .tamanhos span { font-size: 22px; font-weight: 800 } .tamanhos small { color: var(--cinza); font-size: 14px }
.tabela { background: #fff; border-radius: var(--raio); padding: 8px 22px 14px; box-shadow: var(--sombra) }
.tabela table { width: 100%; border-collapse: collapse }
.tabela caption { text-align: left; font-weight: 700; font-size: 20px; padding: 16px 0 6px }
.tabela th, .tabela td { padding: 13px 6px; border-bottom: 1px dashed #d9d9d9; text-align: left }
.tabela thead th { font-size: 14px; color: var(--cinza); font-weight: 600 }
.tabela td, .tabela thead th:not(:first-child) { text-align: right; white-space: nowrap; font-weight: 700 }
.tabela tbody tr:last-child > * { border-bottom: 0 }
.tabela tbody th { font-weight: 500 }

/* sobre */
.sobre { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center }
.sobre__logo { width: 100%; border-radius: 50%; box-shadow: 0 30px 60px -20px rgba(0,0,0,.4); border: 8px solid #fff }
.sobre__frase { font-size: clamp(22px, 2.8vw, 32px); font-weight: 600; line-height: 1.35; margin: 0 0 28px }
.sobre__frase span { transition: opacity .35s }

/* galeria */
.galeria { padding: clamp(56px, 7vw, 104px) 0; background: var(--rosa-claro) }
.galeria .cabeca { padding: 0 max(5vw, 16px) }
.galeria .selo { background: #fff }
.galeria__setas { display: flex; gap: 8px }
.seta { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--preto); background: #fff; font-size: 26px; line-height: 1; cursor: pointer }
.seta:hover { background: var(--preto); color: #fff }
.galeria__palco { position: relative; overflow: hidden }
.galeria__trilho { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px max(5vw, 16px) 18px; scrollbar-width: none; user-select: none }
.galeria__trilho::-webkit-scrollbar { display: none }
.galeria__trilho.arrastando { scroll-snap-type: none; cursor: grabbing }
.galeria__item { flex: none; width: clamp(240px, 30vw, 360px); margin: 0; scroll-snap-align: start; background: #fff; padding: 10px 10px 14px; border-radius: 20px; box-shadow: 0 10px 30px -16px rgba(0,0,0,.3) }
.galeria__item:nth-child(even) { transform: translateY(18px) }
.galeria__item img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; border-radius: 14px; pointer-events: none }
.galeria__item figcaption { padding: 10px 6px 0; font-weight: 600 }
.galeria__item figcaption b { color: var(--rosa) }
.com-cursor .galeria__trilho { cursor: none }
.fx-ponto, .fx-anel { position: absolute; top: 0; left: 0; pointer-events: none; opacity: 0; transition: opacity .2s; z-index: 5 }
.fx-ponto { width: 10px; height: 10px; border-radius: 50%; background: var(--rosa) }
.fx-anel { width: 72px; height: 72px; border-radius: 50%; background: rgba(27,27,27,.85); color: var(--limao); display: grid; place-items: center; font-size: 13px; font-weight: 600 }

/* final + rodapé */
.final { text-align: center; padding: clamp(64px, 8vw, 120px) max(5vw, 16px); background: var(--limao) }
.final h2 { max-width: 16ch; margin: 0 auto 30px }
.rodape { background: var(--preto); color: #fff; text-align: center; padding: 48px 16px 110px }
.marca--rodape { justify-content: center; margin: 0 0 16px }
.marca--rodape img { width: 56px; height: 56px }
.marca--rodape em { color: #fff } .marca--rodape small { color: var(--limao) }
.rodape a { color: var(--limao) }
.rodape__mini { font-size: 14px; color: #aaa }

/* flutuante + barra */
.flutuante { position: fixed; right: 18px; bottom: 18px; z-index: 35; display: flex; align-items: center; gap: 8px; background: #1f9d55; color: #fff; text-decoration: none; font-weight: 600; border-radius: 999px; padding: 12px 18px 12px 14px; box-shadow: 0 14px 30px -10px rgba(0,0,0,.45); transition: transform .3s, bottom .3s }
.flutuante svg { width: 26px; height: 26px }
.flutuante:hover { transform: translateY(-3px) }
body:has(.barra-pedido:not([hidden])) .flutuante { bottom: 92px }
.barra-pedido { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 36; width: min(560px, calc(100% - 24px)); display: flex; align-items: center; gap: 12px; padding: 12px 18px; border: 0; border-radius: 20px; background: var(--preto); color: #fff; font: 500 15px var(--ui); cursor: pointer; box-shadow: 0 18px 40px -14px rgba(0,0,0,.6) }
.barra-pedido[hidden] { display: none }
.barra-pedido b { color: var(--limao) }
.barra-pedido__total { margin-left: auto; font-weight: 800; white-space: nowrap }
.barra-pedido__ver { background: var(--rosa); padding: 8px 14px; border-radius: 999px; font-weight: 600; white-space: nowrap }

/* painel do pedido */
.painel { border: 0; padding: 0; margin: 0 0 0 auto; height: 100%; max-height: 100dvh; width: min(480px, 100%); max-width: 100%; background: #fff; color: var(--preto) }
.painel[open] { animation: entrarLado .45s cubic-bezier(.16,1,.3,1) }
.painel::backdrop { background: rgba(27,27,27,.55); backdrop-filter: blur(2px) }
@keyframes entrarLado { from { transform: translateX(100%) } }
.painel__caixa { display: flex; flex-direction: column; height: 100%; overflow-y: auto }
.painel__topo { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; background: var(--limao) }
.painel__topo h2 { font-size: 24px }
.painel__fechar { width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; font-size: 18px; cursor: pointer }
[data-painel-corpo] { padding: 18px 22px 28px }
.vazio, .sucesso { text-align: center; padding: 40px 0 }
.nota { color: var(--cinza); font-size: 14px }
.lista { list-style: none; margin: 0; padding: 0 }
.lista li { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--linha) }
.lista img, .lista .sem-foto { width: 64px; height: 64px; object-fit: cover; border-radius: 14px; grid-row: span 2 }
.lista .sem-foto span, .lista .sem-foto svg { display: none }
.lista__info { display: flex; flex-direction: column; line-height: 1.3 }
.lista__info small { color: var(--cinza) }
.lista__preco { font-weight: 700; margin-top: 2px }
.remover { grid-column: 3; justify-self: end; border: 0; background: none; color: var(--rosa-2); text-decoration: underline; font: 500 13px var(--ui); cursor: pointer; padding: 4px }
.total { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0 4px; font-size: 18px }
.total b { font-size: 24px } .total small { color: var(--cinza); font-size: 14px }
.dados fieldset { border: 0; padding: 0; margin: 14px 0 0 }
.dados legend { font-weight: 800; font-size: 20px; margin-bottom: 8px }
.campo { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; font-weight: 600; font-size: 15px }
.campo small { color: var(--cinza); font-weight: 400 }
.campo input, .campo textarea { font: 16px var(--ui); padding: 12px 14px; border: 2px solid var(--linha); border-radius: 14px; background: #fff; color: var(--preto); width: 100% }
.campo input:focus, .campo textarea:focus { border-color: var(--rosa); outline: 0 }
.campo [aria-invalid="true"] { border-color: #c62828 }
.erro { color: #c62828; font-style: normal; font-weight: 500; font-size: 14px }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px }
.seg label { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; border: 2px solid var(--linha); border-radius: 14px; cursor: pointer; font-weight: 600 }
.seg label:has(input:checked) { border-color: var(--rosa); background: var(--rosa-claro) }
.seg input { accent-color: var(--rosa); width: auto; padding: 0; margin: 0 }
.isca { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden }
.sucesso__codigo { font-size: 22px } .sucesso__codigo strong { display: block; font-size: 38px; color: var(--rosa); letter-spacing: .04em }

/* janela que nasce do card (efeito 22) */
.fx-veu { position: fixed; inset: 0; z-index: 60; background: rgba(27,27,27,.6); opacity: 0; transition: opacity .35s }
.fx-veu.on { opacity: 1 }
.fx-janela { position: fixed; z-index: 61; background: #fff; border-radius: 24px; overflow: hidden; box-shadow: 0 40px 90px rgba(0,0,0,.45); transition: transform .45s cubic-bezier(.16,1,.3,1), opacity .3s }
.fx-janela .perto { opacity: 0; transition: opacity .25s .15s; height: 100% }
.fx-janela.aberta .perto { opacity: 1 }
.perto { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) }
.perto__foto { background: var(--limao) }
.perto__foto img, .perto__foto .sem-foto { width: 100%; height: 100%; object-fit: cover }
.perto__texto { position: relative; padding: 30px 26px; display: flex; flex-direction: column; gap: 10px; overflow-y: auto }
.perto__x { position: absolute; top: 14px; right: 14px; background: var(--limao) }
.perto h3 { font-size: 28px; font-weight: 800; padding-right: 44px }
.perto p { margin: 0; color: var(--cinza) }
.perto__precos { list-style: none; padding: 0; margin: 6px 0 10px }
.perto__precos li { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px dashed #ddd }
.perto__precos small { color: var(--cinza) }
.perto__precos b { white-space: nowrap }
.fx-confete { position: fixed; inset: 0; z-index: 90; pointer-events: none; width: 100%; height: 100% }

@media (max-width: 900px) {
  .menu { display: none }
  .hero, .salgados, .sobre { grid-template-columns: 1fr }
  .hero__arte { max-width: 440px; order: -1 }
  .sobre { text-align: center } .sobre__logo { max-width: 200px; margin: 0 auto }
}
@media (max-width: 600px) {
  .marca small { display: none } .marca em { font-size: 26px }
  .btn--pedido { padding: 0 14px; font-size: 15px }
  .btn--pedido svg { display: none }
  .acoes .btn { width: 100% }
  .hero__arte { max-width: 340px }
  .perto { grid-template-columns: 1fr; grid-template-rows: 42% 1fr }
  .flutuante span { display: none }
  .flutuante { padding: 14px }
  .cabeca--linha { align-items: flex-start; flex-direction: column }
  .barra-pedido__ver { display: none }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important }
  .revelar, .palavra { opacity: 1; transform: none }
}
