/* AURA · loja do S3 Air. Cores e adesivos vêm das artes do Instagram da marca. */
@font-face {
  font-family: 'Archivo';
  src: url('../assets/fonts/archivo-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --tinta: #0E0E0E;      /* fundo, o preto do mármore das artes */
  --carvao: #181818;     /* faixas e campos */
  --linha: #333;         /* bordas */
  --mostarda: #F5A90F;   /* ação e destaque */
  --ouro: #D9A441;       /* letras do logo */
  --papel: #F5F5F2;      /* texto */
  --cinza: #A8A8A3;      /* texto de apoio */
  --erro: #FF8A7A;
  --raio: 12px;
  --largura: 1180px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--tinta);
  color: var(--papel);
  font: 400 1.0625rem/1.55 'Archivo', system-ui, sans-serif;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--mostarda); text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; font-stretch: 125%; font-weight: 850; line-height: 1; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.9rem, 4.5vw, 3rem); margin-bottom: 1.5rem; }
:focus-visible { outline: 3px solid var(--papel); outline-offset: 3px; border-radius: 4px; }

.pular { position: absolute; left: -999px; top: 8px; background: var(--mostarda); color: var(--tinta); padding: .6rem 1rem; border-radius: 8px; z-index: 10; }
.pular:focus { left: 8px; }

/* Botões */
.botao {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: .8rem 1.8rem;
  background: var(--mostarda); color: var(--tinta);
  border: 0; border-radius: 999px;
  font: inherit; font-weight: 800; font-stretch: 112%; font-size: 1.05rem;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s, transform .15s;
}
.botao:hover { background: #FFBC33; }
.botao:active { transform: scale(.98); }
.botao[disabled] { opacity: .6; cursor: progress; }
.botao-pequeno { min-height: 40px; padding: .45rem 1.1rem; font-size: .95rem; }
.botao-cheio { width: 100%; }

/* Topo */
.topo {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .5rem max(16px, calc((100% - var(--largura)) / 2));
  background: rgb(14 14 14 / .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #222;
}
.topo-logo img { width: 64px; height: auto; }
.topo nav { display: flex; align-items: center; gap: clamp(.8rem, 3vw, 1.8rem); }
.topo nav a:not(.botao) { color: var(--papel); text-decoration: none; font-weight: 500; }
.topo nav a:not(.botao):hover { color: var(--mostarda); }

section { padding: clamp(3.5rem, 8vw, 6.5rem) max(16px, calc((100% - var(--largura)) / 2)); }

/* Abertura */
.abertura {
  display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(2rem, 5vw, 4.5rem);
  padding-top: clamp(2rem, 5vw, 4rem);
}
.marca-produto { margin: 0 0 1rem; color: var(--ouro); font-weight: 700; font-stretch: 112%; }
.abertura h1 { font-size: clamp(2.5rem, 6.2vw, 5rem); line-height: .95; }
.abertura-lead { max-width: 34ch; margin: 1.4rem 0 1.8rem; font-size: 1.15rem; color: #D6D6D1; }

.cores { display: flex; gap: .6rem; margin: 0 0 1.6rem; padding: 0; border: 0; }
.cores legend { margin-bottom: .6rem; color: var(--cinza); font-size: .95rem; }
.cor {
  position: relative; display: inline-flex; align-items: center; gap: .55rem;
  padding: .55rem 1.1rem .55rem .6rem;
  border: 2px solid var(--linha); border-radius: 999px; cursor: pointer; font-weight: 600;
}
.cor input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.cor:has(input:checked) { border-color: var(--mostarda); }
.cor:has(input:focus-visible) { outline: 3px solid var(--papel); outline-offset: 3px; }
.cor-bolinha { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--papel); }
.cor-branco { background: #F2F2EE; }
.cor-preto { background: linear-gradient(145deg, #6B6F75, #24262A); }

.preco p { margin: 0; }
.preco s { color: var(--cinza); font-size: 1.05rem; }
.preco strong { font-size: clamp(2.1rem, 4vw, 2.8rem); font-weight: 850; font-stretch: 115%; margin-left: .3rem; font-variant-numeric: tabular-nums; }
.preco-condicoes { margin: .3rem 0 1.6rem !important; color: #D6D6D1; }
.preco-condicoes b { color: var(--mostarda); font-weight: 700; }
.entrega-curta { margin: 1rem 0 0; color: var(--cinza); font-size: .95rem; }

.abertura-foto { position: relative; margin: 0; }
.abertura-foto img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 22px;
  transition: opacity .25s;
}
.abertura-foto img.trocando { opacity: 0; }
/* O adesivo: mesma linguagem dos posts (contorno branco grosso, girado) */
.adesivo {
  position: absolute; top: -18px; right: -14px;
  display: grid; place-items: center; text-align: center;
  width: 128px; height: 128px; border-radius: 50%;
  background: var(--mostarda); color: var(--tinta);
  border: 5px solid #fff;
  box-shadow: 0 10px 24px rgb(0 0 0 / .45);
  font-weight: 900; font-stretch: 125%; font-size: 1.05rem; line-height: 1.05;
  transform: rotate(-12deg);
  animation: cola .5s cubic-bezier(.2, 1.6, .4, 1) .35s both;
}
@keyframes cola { from { transform: rotate(-30deg) scale(.2); opacity: 0; } }

/* Ficha */
.ficha { background: var(--carvao); }
.ficha dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.2rem 2.5rem; margin: 0; }
.ficha dl div { border-top: 3px solid var(--mostarda); padding-top: 1rem; }
.ficha dt { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 850; font-stretch: 125%; line-height: 1.05; }
.ficha dd { margin: .4rem 0 0; color: #D6D6D1; max-width: 26ch; }

/* Por que aberto */
.aberto { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.aberto-texto p { max-width: 52ch; color: #D6D6D1; }
.aberto ul { margin: 1.2rem 0 0; padding: 0; list-style: none; }
.aberto li { position: relative; padding: .55rem 0 .55rem 1.8rem; border-bottom: 1px solid #262626; }
.aberto li::before { content: ''; position: absolute; left: 0; top: 1.05rem; width: 12px; height: 12px; border-radius: 50%; background: var(--mostarda); }
.aberto-artes { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.aberto-artes img { border-radius: 16px; border: 5px solid #fff; }
.aberto-artes img:first-child { transform: rotate(-3deg) translateY(12px); }
.aberto-artes img:last-child { transform: rotate(3deg); }

/* Compra */
.comprar { background: var(--carvao); }
.comprar h2 { margin-bottom: .6rem; }
.comprar-lead { margin: 0 0 2.2rem; color: var(--cinza); }
.pedido { display: grid; grid-template-columns: 1fr 340px; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.pedido-campos { display: grid; gap: 1.4rem; }
.passo { margin: 0; padding: 1.4rem; border: 1px solid #2A2A2A; border-radius: var(--raio); background: var(--tinta); min-width: 0; }
.passo legend { display: flex; align-items: center; gap: .6rem; padding: 0 .4rem; font-weight: 800; font-stretch: 115%; font-size: 1.15rem; }
.passo-n { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--mostarda); color: var(--tinta); font-size: .95rem; }

.campo { display: grid; gap: .35rem; margin-top: .9rem; font-size: .95rem; color: #D6D6D1; flex: 1; min-width: 0; }
.campo input, .campo select {
  width: 100%; min-height: 48px; padding: .7rem .85rem;
  background: var(--carvao); color: var(--papel);
  border: 1px solid #3A3A3A; border-radius: 10px;
  font: inherit; font-size: 1rem;
}
.campo input:focus, .campo select:focus { outline: 2px solid var(--mostarda); outline-offset: 0; border-color: transparent; }
.campo input[aria-invalid="true"], .campo select[aria-invalid="true"] { border-color: var(--erro); }
.linha { display: flex; gap: .9rem; align-items: end; }
.campo-cep { flex: 0 0 11rem; }
.campo-num { flex: 0 0 7rem; }
.campo-uf { flex: 0 0 6.5rem; }
.campo-qtd { max-width: 14rem; }
.ajuda { margin: .6rem 0 0; color: var(--cinza); font-size: .88rem; }
.linha .ajuda { margin-bottom: .8rem; }

.cores-form { margin: .4rem 0 0; }
.cor-grande {
  position: relative; display: grid; justify-items: center; gap: .4rem;
  padding: .7rem; border: 2px solid var(--linha); border-radius: var(--raio); cursor: pointer; font-weight: 700;
}
.cor-grande input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.cor-grande img { width: 96px; border-radius: 8px; }
.cor-grande:has(input:checked) { border-color: var(--mostarda); background: #1F1A0E; }
.cor-grande:has(input:focus-visible) { outline: 3px solid var(--papel); outline-offset: 3px; }

.forma {
  position: relative; display: flex; align-items: center; gap: .8rem; margin-top: .8rem;
  padding: 1rem 1.1rem; border: 2px solid var(--linha); border-radius: var(--raio); cursor: pointer;
}
.forma input { accent-color: var(--mostarda); width: 20px; height: 20px; margin: 0; flex: none; }
.forma:has(input:checked) { border-color: var(--mostarda); background: #1F1A0E; }
.forma-valor { margin-left: auto; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.isca { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.resumo {
  position: sticky; top: 96px;
  padding: 1.4rem; border-radius: var(--raio);
  background: var(--tinta); border: 2px solid var(--mostarda);
}
.resumo > img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; margin-bottom: 1rem; }
.resumo h3 { font-size: 1.35rem; margin-bottom: .8rem; }
.resumo dl { margin: 0; }
.resumo dl div { display: flex; justify-content: space-between; padding: .45rem 0; border-bottom: 1px solid #262626; }
.resumo dt { color: var(--cinza); }
.resumo dd { margin: 0; font-weight: 600; }
.resumo-total { border-bottom: 0 !important; }
.resumo-total dd { font-size: 1.6rem; font-weight: 850; font-stretch: 115%; color: var(--mostarda); font-variant-numeric: tabular-nums; }
.resumo-forma { margin: 0 0 1rem; text-align: right; color: var(--cinza); font-size: .9rem; }
.erro { margin: .8rem 0 0; color: var(--erro); font-weight: 600; }
.erro:empty { display: none; }
.seguro { margin: .9rem 0 0; color: var(--cinza); font-size: .82rem; }

/* Dúvidas */
.duvidas details { max-width: 820px; border-bottom: 1px solid #2A2A2A; }
.duvidas summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.15rem 0; cursor: pointer; list-style: none;
  font-weight: 700; font-stretch: 110%; font-size: 1.15rem;
}
.duvidas summary::-webkit-details-marker { display: none; }
.duvidas summary::after { content: '+'; color: var(--mostarda); font-size: 1.6rem; line-height: 1; transition: transform .2s; }
.duvidas details[open] summary::after { transform: rotate(45deg); }
.duvidas details p { margin: 0 0 1.2rem; color: #D6D6D1; max-width: 68ch; }

/* Rodapé */
.rodape {
  display: grid; grid-template-columns: auto 1fr; gap: 1rem 2rem; align-items: center;
  padding: 2.5rem max(16px, calc((100% - var(--largura)) / 2));
  border-top: 1px solid #222; color: var(--cinza); font-size: .95rem;
}
.rodape p { margin: .2rem 0; }
.rodape-pe { grid-column: 1 / -1; font-size: .82rem; }

/* Páginas de texto (políticas, retorno) */
.pagina { max-width: calc(760px + 32px); margin: 0 auto; padding: 3rem 16px 4rem; }
.pagina h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 1.5rem; }
.pagina h2 { font-size: 1.5rem; margin: 2.5rem 0 .8rem; }
.pagina p, .pagina li { color: #D6D6D1; max-width: 68ch; }
.retorno { text-align: center; }
.retorno .botao { margin-top: 1.5rem; }
.retorno-codigo { display: inline-block; margin-top: .5rem; padding: .4rem .9rem; border: 2px dashed var(--mostarda); border-radius: 8px; font-weight: 800; font-stretch: 115%; letter-spacing: .04em; }

/* Celular */
@media (max-width: 900px) {
  .abertura, .aberto, .pedido { grid-template-columns: 1fr; }
  .abertura-foto { order: -1; max-width: 460px; width: 100%; justify-self: center; }
  .resumo { position: static; }
  .resumo > img { display: none; }
  .ficha dl { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .topo nav a:not(.botao) { display: none; }
  .topo-logo img { width: 52px; }
  .adesivo { width: 96px; height: 96px; font-size: .85rem; right: -4px; top: -10px; border-width: 4px; }
  .ficha dl { grid-template-columns: 1fr; gap: 1.6rem; }
  .linha { flex-wrap: wrap; }
  .linha .campo { flex: 1 1 100%; }
  .linha .campo-num, .linha .campo-uf { flex: 0 0 7rem; }
  .linha .campo-num + .campo, .linha .campo:has(+ .campo-uf) { flex: 1 1 8rem; }
  .passo { padding: 1.1rem; }
  .forma { flex-wrap: wrap; }
  .rodape { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
