@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; }

.capa { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--nuvem); padding: 40px max(16px, calc(50% - 504px)); }
.capa h1 { font-size: clamp(28px, 7.5vw, 56px); text-wrap: balance; }
input[type="radio"] { accent-color: var(--tinta); }
.capa p { margin: 12px 0 20px; max-width: 34ch; }
.mascote { width: clamp(100px, 25vw, 240px); }
.botao { display: inline-block; border: 0; border-radius: 40px; background: var(--tinta); color: var(--creme); padding: 13px 26px; font-weight: 600; text-decoration: none; }

#produtos { max-width: 1040px; margin: 0 auto; padding: 24px 16px 48px; scroll-margin-top: 64px; }
#busca { margin: 0 0 12px; max-width: 420px; border-radius: 40px; padding: 10px 18px; }
#nada { margin-bottom: 14px; }
.filtros { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.filtros button { border: 2px solid var(--nuvem); background: none; border-radius: 40px; padding: 6px 16px; }
.filtros button[aria-pressed="true"] { background: var(--nuvem); font-weight: 600; }
.grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.produto { display: flex; flex-direction: column; gap: 6px; background: #fff; border-radius: 16px; padding: 10px; }
.foto { aspect-ratio: 1; border-radius: 10px; background: var(--baunilha); overflow: hidden; display: grid; place-items: center; }
.foto img { width: 100%; height: 100%; object-fit: cover; }
.sem-foto img { width: 55%; height: auto; opacity: .55; }
.produto h3 { font-size: 16px; font-family: Outfit, system-ui, sans-serif; font-weight: 400; flex: 1; }
.preco { font-size: 22px; font-weight: 700; }
.produto button { border: 0; border-radius: 40px; background: var(--nuvem); padding: 9px; font-weight: 600; }
.produto button:disabled { background: var(--baunilha); 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%; }
.nota { font-size: 14px; text-align: center; margin-top: 10px; }
