@font-face { font-family: Fraunces; src: url(fontes/fraunces.ttf); font-weight: 100 900; font-display: swap; }
@font-face { font-family: Fraunces; src: url(fontes/fraunces-italic.ttf); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: Outfit; src: url(fontes/outfit.ttf); font-weight: 100 900; font-display: swap; }

:root { --creme: #FBF6EC; --baunilha: #E8DCC4; --nuvem: #A9CDEE; --tinta: #24406B; }

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { background: var(--creme); color: var(--tinta); font: 16px/1.5 Outfit, system-ui, sans-serif; }
h1, h2, h3, .preco, .slogan, .total strong { font-family: Fraunces, Georgia, serif; font-variation-settings: "SOFT" 100; line-height: 1.1; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--tinta); outline-offset: 2px; }

.faixa { background: var(--baunilha); text-align: center; font-size: 14px; padding: 6px 16px; }
.topo { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; background: var(--creme); }
.marca img { display: block; height: 40px; }
.botao-sacola { border: 2px solid var(--tinta); background: none; border-radius: 40px; padding: 6px 16px; font-weight: 600; }
.botao-sacola span { display: inline-block; min-width: 1.4em; }

input[type="radio"] { accent-color: var(--tinta); }
.botao { display: inline-block; border: 0; border-radius: 40px; background: var(--tinta); color: var(--creme); padding: 13px 26px; font-weight: 600; text-decoration: none; }

/* silhueta da gata da marca: recorta a vitrine da capa e as categorias */
:root { --gata: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='28 8 144 154'%3E%3Cpath d='M40,70 C35,45 38,25 45,12 C60,22 72,35 80,45 C93,42 107,42 120,45 C128,35 140,22 155,12 C162,25 165,45 160,70 C172,90 170,130 140,150 C120,163 80,163 60,150 C30,130 28,90 40,70 Z'/%3E%3C/svg%3E"); }
.gatinha, .bolha, .bolha img, .gatinha img { -webkit-mask: var(--gata) center / 100% 100% no-repeat; mask: var(--gata) center / 100% 100% no-repeat; }

.capa { position: relative; background: var(--nuvem); padding: 28px 16px 44px; }
.capa::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 14px; background: radial-gradient(circle at 14px 16px, var(--creme) 14px, transparent 14.5px) 0 0 / 28px 14px repeat-x; }
.capa-miolo { max-width: 1040px; margin: 0 auto; display: grid; gap: 20px; text-align: center; justify-items: center; }
.capa h1 { font-size: clamp(34px, 7vw, 58px); font-weight: 800; font-style: italic; text-wrap: balance; }
.capa p { max-width: 34ch; margin: 10px auto 18px; font-size: 17px; }
.vitrine { display: flex; justify-content: center; align-items: flex-end; width: 100%; max-width: 480px; }
/* o foco usa filter porque a máscara corta o contorno */
.gatinha { flex: 0 1 36%; aspect-ratio: 144 / 154; border: 0; padding: 5px; background: var(--creme); }
.gatinha + .gatinha { margin-left: -3%; }
.gatinha:nth-child(2) { flex-basis: 42%; position: relative; z-index: 1; margin-bottom: 14px; }
.gatinha img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 65%; }
.gatinha:focus-visible { background: var(--tinta); }
@media (min-width: 760px) {
  .capa { padding: 44px 24px 60px; }
  .capa-miolo { grid-template-columns: 1fr 1.1fr; align-items: center; text-align: left; justify-items: start; }
  .capa p { margin-left: 0; }
  .vitrine { max-width: none; }
}

.filtros { display: flex; gap: 6px; overflow-x: auto; max-width: 1040px; margin: 0 auto; padding: 22px 16px 6px; scrollbar-width: none; }
.filtros button { flex: 1 0 84px; display: flex; flex-direction: column; align-items: center; gap: 6px; border: 0; background: none; padding: 2px; font-size: 13px; line-height: 1.25; }
.bolha { display: block; flex: none; width: 72px; height: 77px; padding: 3px; background: var(--nuvem); }
.bolha img { display: block; width: 66px; height: 71px; object-fit: cover; object-position: center 65%; background: #fff; }
.filtros button[aria-pressed="true"] { font-weight: 700; }
.filtros button[aria-pressed="true"] .bolha, .filtros button:focus-visible .bolha { background: var(--tinta); }

/* bloco do produto especial: fundo escuro, como a mesa iluminada da foto */
.especial { max-width: 1008px; margin: 24px 16px 0; display: grid; gap: 0; background: var(--tinta); color: var(--creme); border-radius: 28px; overflow: hidden; }
.especial-foto { border: 0; padding: 0; background: none; }
.especial-foto img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; object-position: center 75%; }
.especial-foto:focus-visible { outline: 3px solid var(--nuvem); outline-offset: -6px; }
.especial-texto { padding: 22px 20px 26px; align-self: center; }
.especial h2 { font-size: clamp(32px, 6vw, 44px); font-weight: 800; font-style: italic; margin-bottom: 8px; }
.especial p { max-width: 46ch; }
.especial .preco { font-size: 32px; margin: 14px 0; }
.especial .botao { background: var(--nuvem); color: var(--tinta); }
.especial .botao:disabled { opacity: .6; cursor: default; }
@media (min-width: 760px) { .especial { grid-template-columns: 1fr 1fr; margin: 28px auto 0; width: calc(100% - 48px); } .especial-foto img { height: 100%; } .especial-texto { padding: 32px; } }

h2 { text-wrap: balance; }
.ir-contato { margin-left: auto; margin-right: 14px; color: inherit; font-weight: 600; }
#contato { max-width: 1040px; margin: 0 auto; padding: 8px 16px 48px; text-align: center; scroll-margin-top: 72px; }
#contato h2 { font-size: 26px; font-weight: 800; margin-bottom: 14px; }
.contatos { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.contato { flex: 1 1 220px; max-width: 320px; display: flex; flex-direction: column; background: var(--tinta); color: var(--creme); border-radius: 24px; padding: 14px 20px; text-decoration: none; }
.contato b { font-size: 18px; }
.contato span { font-size: 14px; }
#destaques { max-width: 1040px; margin: 0 auto; padding: 22px 16px 0; }
.destaques-topo { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 12px; margin-bottom: 12px; }
#destaques h2 { font-size: 26px; font-weight: 800; }
.arraste { border: 0; border-radius: 40px; background: var(--baunilha); padding: 5px 14px; font-size: 14px; font-weight: 600; }
.arraste span { display: inline-block; animation: arraste 1.2s ease-in-out 6; }
@keyframes arraste { 50% { transform: translateX(6px); } }
@media (prefers-reduced-motion: reduce) { .arraste span { animation: none; } }
.trilho { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(170px, 46vw, 220px); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; }
.trilho .produto { scroll-snap-align: start; }

#produtos { max-width: 1040px; margin: 0 auto; padding: 22px 16px 48px; scroll-margin-top: 64px; }
#busca { margin: 0 0 16px; max-width: 420px; border-radius: 40px; padding: 11px 18px; }
#nada { margin-bottom: 14px; }
.grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.produto { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--baunilha); border-radius: 22px 22px 28px 28px; overflow: hidden; }
.foto { aspect-ratio: 4 / 5; border-radius: 10px; background: var(--baunilha); overflow: hidden; display: grid; place-items: center; }
.foto img { width: 100%; height: 100%; object-fit: cover; }
.produto .foto { border-radius: 0; }
.sem-foto img { width: 55%; height: auto; opacity: .55; }
.produto h3 { font-size: 15px; line-height: 1.3; font-family: Outfit, system-ui, sans-serif; font-weight: 500; flex: 1; padding: 0 12px; }
.produto small { position: absolute; top: 8px; left: 8px; background: var(--creme); border-radius: 40px; padding: 2px 10px; font-size: 12px; font-weight: 600; }
.preco { font-size: 22px; font-weight: 700; }
.produto .preco { padding: 0 12px; }
.produto > button { border: 0; border-radius: 40px; background: var(--nuvem); margin: 8px 10px 10px; padding: 9px; font-weight: 600; }
.produto > button:not(.ver):hover:not(:disabled) { background: var(--tinta); color: var(--creme); }
.produto > button:disabled { background: var(--baunilha); cursor: default; }
.produto > .ver { display: flex; flex-direction: column; flex: 1; gap: 6px; margin: 0; border-radius: 0; border: 0; background: none; padding: 0; text-align: left; }
.produto > .ver:focus-visible { outline-offset: -3px; }
#detalhe .foto { margin-bottom: 14px; }
#detalhe h2 { font-size: 24px; }
#detalhe .botao { width: 100%; margin-top: 16px; }
#detalhe .botao:disabled { opacity: .5; cursor: default; }

footer { text-align: center; padding: 32px 16px 96px; background: var(--nuvem) url(img/estampa.svg) top / 120px 70px repeat-x; padding-top: 94px; }
footer a { color: inherit; font-weight: 600; }
.slogan { font-size: 26px; font-weight: 800; font-style: italic; margin-bottom: 8px; }

.barra { position: fixed; z-index: 3; left: 16px; right: 16px; bottom: 16px; max-width: 420px; margin: 0 auto; border: 0; border-radius: 40px; background: var(--tinta); color: var(--creme); padding: 15px; font-weight: 600; box-shadow: 0 6px 20px rgb(36 64 107 / .35); }

dialog { position: fixed; inset: 0 0 0 auto; width: min(420px, 100%); height: 100%; max-height: 100%; max-width: 100%; margin: 0 0 0 auto; border: 0; padding: 20px 16px; background: var(--creme); color: var(--tinta); overflow-y: auto; }
dialog::backdrop { background: rgb(36 64 107 / .45); }
.sacola-topo { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.fechar { border: 0; background: none; font-size: 32px; line-height: 1; padding: 0 8px; }
#itens { list-style: none; }
#itens li { display: grid; grid-template-columns: 1fr auto 80px; align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--baunilha); }
#itens li > :last-child { text-align: right; }
.qtd { display: flex; align-items: center; gap: 8px; }
.qtd button { width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--nuvem); }
.total { display: flex; justify-content: space-between; align-items: baseline; margin: 14px 0; }
.total strong { font-size: 28px; }
form > label { display: block; margin-bottom: 12px; }
input:not([type="radio"]), textarea { display: block; width: 100%; margin-top: 4px; padding: 10px 12px; border: 2px solid var(--baunilha); border-radius: 10px; background: #fff; }
fieldset { border: 0; margin-bottom: 12px; }
fieldset label { margin-right: 18px; }
.enviar { width: 100%; }
#d-opcoes { margin: 14px 0 0; }
.escolha { margin: 4px 0 14px; }
#d-opcoes legend, .escolha legend { font-weight: 600; margin-bottom: 8px; }
#d-opcoes label, .escolha label { display: inline-flex; align-items: center; gap: 6px; border: 2px solid var(--nuvem); border-radius: 40px; padding: 6px 14px; margin: 0 8px 8px 0; cursor: pointer; }
#d-opcoes label:has(:checked), .escolha label:has(:checked) { background: var(--nuvem); font-weight: 600; }
.nota { font-size: 14px; text-align: center; margin-top: 10px; }
#detalhe .preco { margin: 6px 0 10px; }
.comentarios { margin-top: 28px; border-top: 2px solid var(--baunilha); padding-top: 18px; }
.comentarios h3 { margin-bottom: 10px; }
.comentarios ul { list-style: none; }
.comentarios li { background: #fff; border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; overflow-wrap: anywhere; }
#comentar { margin-top: 16px; }

/* abertura por rolagem: gata, logo e chuva de produtos num palco preso; a loja fica logo atrás (margem negativa) */
html:not(.com-abertura) #abertura { display: none; }
#abertura { position: relative; z-index: 4; height: 600vh; margin-bottom: -100vh; margin-bottom: -100svh; pointer-events: none; }
.palco { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; text-align: center; background: var(--nuvem); pointer-events: auto; }
.palco > * { position: absolute; }
.gata { width: min(56vw, 34svh, 280px); height: auto; left: 0; right: 0; top: 0; bottom: 22%; margin: auto; overflow: visible; transform-origin: 50% 65%; z-index: 2; }
.laco { transform-box: fill-box; transform-origin: center; }
.a-marca { left: 0; right: 0; top: 55%; padding: 0 16px; }
.a-logo { width: min(80vw, 420px); }
.brilho { height: auto; margin: -10px; }
.a-pular { top: 16px; right: 16px; z-index: 200; border: 2px solid var(--tinta); border-radius: 40px; background: var(--creme); padding: 4px 16px; font-weight: 600; }
.a-dica { left: 0; right: 0; bottom: 40px; font-weight: 600; }
.a-dica span { display: block; font-size: 22px; }
.chuva { inset: 0; width: 100%; height: 100%; }
