* { box-sizing: border-box; }
:root { font-family: system-ui, sans-serif; color-scheme: dark; color: var(--texto, #f3e5d7); background: var(--fundo, #201820); line-height: 1.5; }
body { margin: 0; }
[hidden] { display: none !important; }
h1, h2, h3, p, dl, dd { margin: 0; }
button, input { font: inherit; }
a { color: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--destaque); outline-offset: 3px; }
button { cursor: pointer; }
.limite { width: min(100% - 2rem, 70rem); margin-inline: auto; }
.topo { border-bottom: 1px solid var(--borda); }
.barra, .marca, .janela-topo, .produto-base, .totais div { display: flex; align-items: center; gap: .75rem; }
.barra, .janela-topo, .produto-base, .totais div { justify-content: space-between; }
.barra { min-height: 4.5rem; padding-block: .5rem; }
.marca { font-weight: 850; text-decoration: none; min-height: 44px; }
.marca img, .selo { width: 2.75rem; height: 2.75rem; object-fit: contain; }
.selo { display: grid; place-items: center; color: var(--destaque); background: var(--escuro); border-radius: .65rem; }
.demo { text-align: right; font-size: .875rem; font-weight: 650; }
.capa { display: grid; margin-top: 1.25rem; overflow: hidden; border-radius: 1.25rem; background: var(--escuro); color: var(--texto); }
.capa-texto { padding: clamp(1.35rem, 5vw, 3.5rem); align-self: center; }
.capa h1 { font-size: clamp(2.45rem, 6.4vw, 5.1rem); line-height: 1; letter-spacing: -.065em; max-width: 10ch; margin-block: .65rem 1rem; }
.capa p { max-width: 36ch; }
.rotulo { font-size: .875rem; font-weight: 800; letter-spacing: .12em; color: var(--destaque); }
.capa img { width: 100%; height: 100%; min-height: 0; max-height: 28rem; aspect-ratio: 16 / 10; object-fit: cover; }
.botao { display: inline-flex; justify-content: center; align-items: center; gap: .7rem; border: 0; border-radius: .7rem; padding: .7rem 1rem; min-height: 48px; background: var(--acao); color: var(--textoAcao); font-weight: 750; text-decoration: none; text-align: center; }
.capa .botao { margin-top: 1.25rem; background: var(--destaque); color: var(--escuro); }
.menu { margin-top: 2rem; scroll-margin-top: 1rem; }
.menu-topo { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1rem; }
h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); line-height: 1.15; letter-spacing: -.04em; }
nav { display: flex; flex-wrap: wrap; gap: .5rem; }
nav button, .fechar, .quantidade button { min-height: 44px; border: 1px solid var(--borda); border-radius: .65rem; background: transparent; color: inherit; padding: .4rem .7rem; font-weight: 650; }
nav button[aria-pressed="true"] { background: var(--destaque); color: var(--escuro); border-color: var(--destaque); }
.grade { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: .8rem; }
.produto { background: var(--superficie); border: 1px solid var(--borda); border-radius: 1rem; padding: 1rem; display: flex; flex-direction: column; gap: .55rem; }
.produto img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: .65rem; }
.produto h3 { font-size: 1.2rem; }
.produto-base { margin-top: auto; padding-top: .4rem; flex-wrap: wrap; }
footer { margin-block: 2.5rem 6.2rem; padding-top: 1rem; border-top: 1px solid var(--borda); }
footer p, .nota { font-size: .875rem; }
.info-loja { display: flex; flex-wrap: wrap; gap: .75rem 2rem; margin-block: .75rem; }
.info-loja ul { margin: 0; padding: 0; list-style: none; font-size: .875rem; }
.convite { display: inline-flex; align-items: center; min-height: 44px; color: var(--destaque); }
.campo-pedido { display: grid; gap: .25rem; margin-top: .75rem; }
.campo-pedido input, .campo-pedido textarea {
  width: 100%;
  min-height: 44px;
  padding: .5rem;
  border: 1px solid var(--borda);
  border-radius: .5rem;
  background: var(--fundo);
  color: var(--texto);
  font: inherit;
}
.campo-pedido textarea { resize: vertical; }
.titulo-previa { margin-top: 1rem; }
.previa-pedido {
  margin: .5rem 0 0;
  padding: .85rem;
  border-radius: .5rem;
  background: var(--fundo);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: inherit;
}
.fixo { position: fixed; inset: auto 0 0; background: var(--escuro); padding: .55rem 0 max(.55rem, env(safe-area-inset-bottom)); }
.fixo .botao { display: flex; justify-content: space-between; background: var(--destaque); color: var(--escuro); }
dialog { width: min(100% - 1rem, 34rem); max-height: calc(100dvh - 1rem); border: 0; border-radius: 1rem; padding: 1.15rem; color: var(--texto); background: var(--superficie); }
dialog::backdrop { background: #160b1bb8; }
.janela-topo { margin-bottom: 1rem; }
.fechar, .quantidade button { min-width: 44px; }
.fechar { font-size: 1.4rem; }
fieldset { border: 1px solid var(--borda); border-radius: .6rem; margin: 1rem 0; padding: .35rem .75rem; }
legend { font-weight: 750; padding-inline: .25rem; }
.opcao { display: flex; gap: .6rem; align-items: center; min-height: 44px; cursor: pointer; }
.opcao input { width: 1.25rem; height: 1.25rem; accent-color: var(--acao); }
.largura { width: 100%; justify-content: space-between; }
#form-produto > .botao { margin-top: .75rem; }
#endereco { width: 100%; margin-top: .3rem; min-height: 44px; padding: .5rem; color: var(--texto); background: var(--fundo); border: 1px solid var(--borda); border-radius: .5rem; }
.totais { margin-block: 1rem; }
.totais div:last-child { margin-top: .4rem; border-top: 1px solid var(--borda); padding-top: .4rem; font-weight: 800; }
.item { padding-block: .75rem; border-bottom: 1px solid var(--borda); }
.quantidade { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; }
.quantidade button:disabled { opacity: .5; cursor: default; }
.quantidade output { min-width: 2ch; text-align: center; }
.nota { margin-top: .5rem; }
.somente-leitor { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (min-width: 48rem) {
  .capa:has(img:not([hidden])) { grid-template-columns: 1fr 1fr; }
  .capa img { max-height: none; }
}

@keyframes entrada-suave {
  from { opacity: .65; transform: translateY(.5rem); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: no-preference) {
  .capa { animation: entrada-suave 360ms ease-out; }
  .produto { animation: entrada-suave 240ms ease-out; }
  dialog[open] { animation: entrada-suave 200ms ease-out; }

  .botao, .quantidade button { transition: transform 140ms ease, filter 140ms ease; }
  .botao:active, .quantidade button:not(:disabled):active { transform: scale(.97); }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .botao:hover { filter: brightness(1.07); }
}

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .menu-topo {
      animation: entrada-suave linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 100%;
    }
  }
}
