@font-face { font-family: "Syne"; src: url("fonts/syne-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Marcellus"; src: url("fonts/marcellus-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Albert Sans"; src: url("fonts/albert-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Albert Sans"; src: url("fonts/albert-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Albert Sans"; src: url("fonts/albert-sans-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --abismo: #03121b; --fundo: #062430; --mar: #0e5563; --nacar: #e9f4ef; --espuma: #b4d6cd; --verdete: #74d4bd;
  --led: #3af593; --led-escuro: #04170d; --ciano: #7ff0ff; --sol: #ffc98a; --linha: rgba(180, 214, 205, 0.22);
  --gutter: clamp(1rem, 4vw, 3.5rem); --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-color: var(--verdete) var(--abismo); scrollbar-width: thin; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column; color: var(--nacar);
  font-family: "Albert Sans", system-ui, sans-serif; font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased;
  background: radial-gradient(110% 70% at 75% -10%, var(--mar), var(--fundo) 40%, var(--abismo) 85%) fixed;
}
::selection { background: var(--led); color: var(--led-escuro); }
:focus-visible { outline: 2px solid var(--ciano); outline-offset: 3px; border-radius: 4px; }
a { color: var(--led); text-underline-offset: 0.25em; }
a:hover { color: var(--nacar); }
h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; font-family: "Marcellus", serif; letter-spacing: -0.01em; }
main:focus, main:focus-visible { outline: none; }
main { flex: 1; width: 100%; max-width: 78rem; margin: 0 auto; padding: 6.5rem var(--gutter) 4rem; outline: none; }

/* topo */
.topo { position: fixed; inset: 0 0 auto; z-index: 5; display: flex; align-items: center; gap: 2rem; padding: 0.9rem var(--gutter); background: rgba(3, 18, 27, 0.94); border-bottom: 1px solid var(--linha); }
.marca { display: inline-flex; align-items: center; gap: 0.65rem; color: var(--nacar); font-family: "Marcellus", serif; font-size: 1.3rem; text-decoration: none; }
.marca-anel { width: 1.9rem; height: 1.9rem; fill: none; stroke: var(--led); stroke-width: 1.6; filter: drop-shadow(0 0 6px rgba(58, 245, 147, 0.6)); }
.marca-anel .nucleo { fill: var(--led); stroke: none; }
.menu { display: flex; gap: 1.75rem; margin-left: auto; font-size: 0.95rem; }
.menu a { color: var(--espuma); text-decoration: none; font-family: "Syne", "Albert Sans", system-ui, sans-serif; font-weight: 600; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; } .menu a:hover { color: var(--nacar); }
.carrinho-ligacao { position: relative; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border: 1px solid var(--linha); border-radius: 50%; color: var(--nacar); }
.carrinho-ligacao svg { width: 1.3rem; height: 1.3rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.carrinho-n { position: absolute; top: -0.35rem; right: -0.35rem; min-width: 1.3rem; height: 1.3rem; padding: 0 0.3rem; display: grid; place-items: center; border-radius: 999px; background: var(--led); color: var(--led-escuro); font-size: 0.75rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.carrinho-n[hidden] { display: none; }

/* botões e campos */
.botao { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: 0.8rem 1.6rem; border-radius: 999px; border: 0; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.botao:active { transform: translateY(1px); }
.botao:disabled { opacity: 0.55; cursor: progress; }
.botao-led { background: var(--led); color: var(--led-escuro); box-shadow: 0 6px 24px -6px rgba(58, 245, 147, 0.55); }
.botao-led:hover:not(:disabled) { color: var(--led-escuro); box-shadow: 0 10px 34px -6px rgba(58, 245, 147, 0.8); transform: translateY(-2px); }
.botao-nacar { color: var(--nacar); border: 1px solid rgba(233, 244, 239, 0.55); background: rgba(3, 18, 27, 0.35); }
.botao-nacar:hover { background: rgba(233, 244, 239, 0.1); border-color: var(--nacar); transform: translateY(-2px); }
input, select, textarea { font: inherit; color: var(--nacar); background: rgba(233, 244, 239, 0.06); border: 1px solid rgba(180, 214, 205, 0.3); border-radius: 10px; padding: 0.65rem 0.8rem; width: 100%; }
select { color-scheme: dark; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ciano); background: rgba(233, 244, 239, 0.09); }
input[type="radio"], input[type="checkbox"] { width: 1.1rem; height: 1.1rem; padding: 0; accent-color: var(--led); flex-shrink: 0; }
.ligacao { background: none; border: 0; color: var(--verdete); font: inherit; font-size: 0.9rem; text-decoration: underline; cursor: pointer; padding: 0; }
.ligacao:hover { color: var(--nacar); }

/* catálogo */
.cabeca { max-width: 46rem; margin-bottom: 2rem; display: grid; gap: 1.1rem; justify-items: start; }
.cabeca h1, .titulo-pagina { font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.05; }
.entrada { margin: 0; color: var(--espuma); font-size: 1.1rem; }
.filtros { display: grid; gap: 1rem; margin-bottom: 1rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.filtros-chips { display: grid; gap: 0.6rem; }
.chip { padding: 0.45rem 1rem; border-radius: 999px; border: 1px solid rgba(116, 212, 189, 0.4); background: rgba(14, 85, 99, 0.18); color: var(--espuma); font: inherit; font-size: 0.92rem; cursor: pointer; transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease); }
.chip:hover { border-color: var(--verdete); color: var(--nacar); }
.chip[aria-pressed="true"] { border-color: var(--led); background: rgba(58, 245, 147, 0.12); color: var(--nacar); }
.filtros-linha { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.campo-procura { flex: 1 1 16rem; max-width: 26rem; }
.campo-ordem { width: auto; flex: 0 0 auto; }
.contagem { color: var(--espuma); font-size: 0.92rem; margin: 0 0 1rem; }
.produtos-grelha { display: grid; grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr)); gap: 1.1rem; }
.produto-cartao { display: grid; gap: 0.5rem; align-content: start; padding: 1.1rem; border-radius: 16px; background: rgba(3, 18, 27, 0.88); border: 1px solid var(--linha); color: var(--nacar); text-decoration: none; transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.3s var(--ease); }
.produto-cartao:hover { border-color: var(--led); box-shadow: 0 18px 44px -18px rgba(58, 245, 147, 0.4); transform: translateY(-3px); color: var(--nacar); }
.produto-cartao h3 { font-size: 1.1rem; line-height: 1.25; }
.produto-tile { display: flex; align-items: baseline; justify-content: center; gap: 0.35rem; aspect-ratio: 16 / 9; border-radius: 12px; align-content: center; align-items: center; background: radial-gradient(80% 90% at 50% 0%, rgba(58, 245, 147, 0.22), rgba(14, 85, 99, 0.28) 60%, rgba(3, 18, 27, 0.6)); border: 1px solid rgba(116, 212, 189, 0.25); }
.produto-tile.grande { aspect-ratio: 4 / 3; }
.produto-tile { position: relative; overflow: hidden; }
.produto-tile img { width: 100%; height: 100%; object-fit: contain; display: block; }
.produto-tile.com-foto img { object-fit: cover; background: #fff; }
.produto-tile.foto-serie { background: #fff; border-color: rgba(255, 255, 255, 0.5); }
.produto-tile.foto-serie img { object-fit: contain; padding: 0.4rem; }
.produto-tile.foto-serie .tile-nota { color: #3d5a52; }
.tile-selo { position: absolute; right: 0.6rem; bottom: 0.55rem; padding: 0.2rem 0.65rem; border-radius: 999px; background: rgba(3, 18, 27, 0.8); border: 1px solid rgba(58, 245, 147, 0.5); color: var(--led); font-size: 0.82rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.tile-nota { position: absolute; left: 0.6rem; bottom: 0.55rem; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--verdete); opacity: 0.8; }
.tile-n { font-family: "Marcellus", serif; font-size: 3rem; line-height: 1; color: var(--nacar); text-shadow: 0 0 24px rgba(58, 245, 147, 0.5); font-variant-numeric: tabular-nums; }
.grande .tile-n { font-size: 5.5rem; }
.tile-u { color: var(--led); letter-spacing: 0.14em; font-size: 0.95rem; }
.produto-cat { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--led); }
.produto-preco { display: grid; font-variant-numeric: tabular-nums; color: var(--espuma); }
.produto-preco strong { font-size: 1.25rem; color: var(--nacar); font-weight: 600; }
.produto-preco small { color: var(--verdete); }
.produto-preco.grande strong { font-family: "Marcellus", serif; font-weight: 400; font-size: 2.4rem; }

/* produto */
.migalhas { color: var(--espuma); font-size: 0.92rem; margin: 0 0 1.5rem; }
.produto-pagina { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.produto-detalhe { display: grid; gap: 1rem; }
.produto-detalhe h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); line-height: 1.1; }
.specs { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.specs li { padding: 0.3rem 0.8rem; border-radius: 999px; border: 1px solid var(--linha); color: var(--espuma); font-size: 0.9rem; }
.nota-fraca { color: var(--espuma); opacity: 0.85; }
.nota { margin: 0; font-size: 0.9rem; color: var(--verdete); }
.comprar { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.qtd { display: inline-flex; align-items: center; border: 1px solid rgba(180, 214, 205, 0.3); border-radius: 999px; }
.qtd button { width: 2.4rem; height: 2.4rem; border: 0; background: none; color: var(--nacar); font-size: 1.15rem; cursor: pointer; border-radius: 50%; }
.qtd button:hover { color: var(--led); }
.qtd-valor { min-width: 2rem; text-align: center; font-variant-numeric: tabular-nums; }
.aviso { margin: 0; min-height: 1.4rem; font-size: 0.95rem; color: var(--espuma); }
.aviso-ok { color: var(--led); } .aviso-erro { color: var(--sol); }

/* carrinho e finalizar */
.duas-colunas { display: grid; grid-template-columns: minmax(0, 1fr) 22rem; gap: 1.5rem; align-items: start; margin-top: 1.75rem; }
.linhas { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.linha { display: grid; grid-template-columns: 1fr auto auto; gap: 1rem; align-items: center; padding: 1rem 1.1rem; border: 1px solid var(--linha); border-radius: 14px; background: rgba(3, 18, 27, 0.88); }
.linha-info { display: grid; min-width: 0; } .linha-info small { color: var(--verdete); font-variant-numeric: tabular-nums; }
.linha-controlos { display: grid; gap: 0.3rem; justify-items: center; }
.linha-total { font-variant-numeric: tabular-nums; font-weight: 600; min-width: 6rem; text-align: right; }
.linha-qtd { color: var(--led); font-variant-numeric: tabular-nums; }
.linhas.compacto .linha { grid-template-columns: auto 1fr auto; padding: 0.6rem 0.8rem; }
.resumo, .caixa, .bloco { background: rgba(3, 18, 27, 0.88); border: 1px solid var(--linha); border-radius: 16px; padding: 1.25rem 1.35rem; }
.resumo { position: sticky; top: 5.5rem; display: grid; gap: 1rem; }
.resumo h2, .caixa h2 { font-size: 1.4rem; }
.totais { display: grid; gap: 0.4rem; }
.totais-linha { display: flex; justify-content: space-between; color: var(--espuma); font-variant-numeric: tabular-nums; }
.totais-linha.forte { color: var(--nacar); font-size: 1.25rem; font-weight: 600; padding-top: 0.6rem; border-top: 1px solid var(--linha); }
.finalizar { display: grid; gap: 1.1rem; }
.bloco { margin: 0; min-width: 0; }
.bloco legend { padding: 0 0.4rem; font-family: "Marcellus", serif; font-size: 1.3rem; }
.campos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem 1.1rem; }
.campo { display: grid; gap: 0.3rem; font-size: 0.92rem; color: var(--espuma); }
.campo-largo { grid-column: 1 / -1; display: grid; }
.opcao { display: flex; gap: 0.75rem; align-items: flex-start; padding: 0.7rem 0; cursor: pointer; }
.opcao span { display: grid; } .opcao small { color: var(--espuma); font-size: 0.88rem; }
.consentimento { display: flex; gap: 0.65rem; align-items: flex-start; color: var(--espuma); font-size: 0.95rem; }
.stripe-zona { padding: 1rem; border: 1px solid var(--linha); border-radius: 14px; background: rgba(3, 18, 27, 0.88); }
.stripe-zona[hidden] { display: none; }

/* estados */
.a-carregar { color: var(--espuma); padding: 4rem 0; }
.vazio, .obrigado { display: grid; gap: 1.1rem; justify-items: start; max-width: 40rem; padding: 2rem 0; }
.vazio h1, .obrigado h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.05; }
.caixa { display: grid; gap: 0.5rem; } .iban { font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }

.rodape { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding: 1.75rem var(--gutter) 2.25rem; border-top: 1px solid var(--linha); background: var(--abismo); font-size: 0.9rem; color: var(--espuma); }
.rodape a { color: var(--espuma); }

@media (max-width: 900px) {
  .menu { display: none; } .topo { justify-content: space-between; }
  .produto-pagina, .duas-colunas { grid-template-columns: 1fr; }
  .resumo { position: static; order: -1; }
  .campos { grid-template-columns: 1fr; }
  .linha { grid-template-columns: 1fr auto; } .linha-total { text-align: left; }
}
