/* =========================================================================
   PREMIUM  —  camada de arte-direção nível "Awwwards"
   -------------------------------------------------------------------------
   Tipografia de impacto, cursor customizado, textura de grão, reveals no
   scroll, marquee, botões magnéticos, seções novas e contraste claro/escuro.
   Carregue DEPOIS de estilo.css e animacoes.css.
   ========================================================================= */

:root {
  --preto: #0d0a1a;
  --preto-2: #141026;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-suave: cubic-bezier(.4, 0, .2, 1);
  --maxw: min(1180px, 92%);
}

/* ---------- Tipografia display (Syne) nos títulos ---------- */
.hero h1, .secao-titulo, .display, .cta-titulo, .passo-num,
.stat-num, .marca strong, .eyebrow {
  font-family: "Syne", "Poppins", sans-serif;
}
.hero h1, .cta-titulo { letter-spacing: -1.5px; line-height: .98; }
.secao-titulo { letter-spacing: -.8px; }

body { letter-spacing: -.1px; }

/* seleção de texto e barra de rolagem com a cor da marca */
::selection { background: var(--cor); color: #fff; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* =========================================================================
   1) TEXTURA DE GRÃO (film grain) por cima de tudo
   ========================================================================= */
.grao {
  position: fixed; inset: 0; z-index: 400; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* =========================================================================
   2) CURSOR CUSTOMIZADO (só em telas com mouse fino)
   ========================================================================= */
.cursor, .cursor-ponto { display: none; }
@media (hover: hover) and (pointer: fine) {
  html.cursor-custom, html.cursor-custom * { cursor: none !important; }
  html.cursor-custom input, html.cursor-custom textarea { cursor: text !important; }

  .cursor {
    display: block; position: fixed; top: 0; left: 0;
    width: 40px; height: 40px; border: 1.6px solid #fff; border-radius: 50%;
    transform: translate(-50%, -50%); pointer-events: none; z-index: 9999;
    mix-blend-mode: difference;
    transition: width .28s var(--ease), height .28s var(--ease),
                background-color .28s var(--ease), opacity .3s;
  }
  .cursor.grande { width: 74px; height: 74px; background: rgba(255,255,255,.18); }
  .cursor.clicando { width: 30px; height: 30px; }
  .cursor.oculto { opacity: 0; }
  .cursor-ponto {
    display: block; position: fixed; top: 0; left: 0; width: 6px; height: 6px;
    background: #fff; border-radius: 50%; transform: translate(-50%, -50%);
    pointer-events: none; z-index: 9999; mix-blend-mode: difference;
  }
}

/* =========================================================================
   3) BARRA DE PROGRESSO DO SCROLL
   ========================================================================= */
.progresso-scroll {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 500;
  transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cor), var(--ciano), var(--rosa));
}

/* =========================================================================
   4) REVEAL NO SCROLL  (só ativa se o JS marcar <html class="js-reveal">)
   ========================================================================= */
.js-reveal [data-reveal] {
  opacity: 0; transition: opacity .9s var(--ease), transform .9s var(--ease), clip-path .9s var(--ease);
  will-change: opacity, transform;
}
.js-reveal [data-reveal="up"]    { transform: translateY(38px); }
.js-reveal [data-reveal="fade"]  { transform: none; }
.js-reveal [data-reveal="scale"] { transform: scale(.92); }
.js-reveal [data-reveal="left"]  { transform: translateX(-46px); }
.js-reveal [data-reveal="right"] { transform: translateX(46px); }
.js-reveal [data-reveal].revelado { opacity: 1; transform: none; }

/* =========================================================================
   5) BOTÕES premium (sweep no hover) + botão de contorno + magnético
   ========================================================================= */
/* varredura de cor no hover via gradiente de fundo (o texto nunca some) */
.btn-principal {
  letter-spacing: .2px;
  background-color: var(--cor);
  background-image: linear-gradient(115deg, #120a2e 0%, var(--cor-escura) 46%, var(--cor) 46%);
  background-size: 230% 100%; background-position: 100% 0;
  transition: background-position .55s var(--ease), transform .2s var(--ease), box-shadow .3s;
}
.btn-principal:hover { background-position: 0 0; }

.btn-linha {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-weight: 700; font-size: 15px;
  text-decoration: none; color: var(--tinta); border: 1.5px solid rgba(20,16,38,.18);
  background: rgba(255,255,255,.5); backdrop-filter: blur(6px);
  transition: border-color .3s var(--ease), background .3s, color .3s, transform .2s;
}
.btn-linha:hover { border-color: var(--cor); color: var(--cor); background: #fff; }

[data-magnetic] { transition: transform .35s var(--ease); will-change: transform; }

/* =========================================================================
   6) CABEÇALHO com estado "rolou" + menu central
   ========================================================================= */
.topo { transition: padding .35s var(--ease), background .35s, box-shadow .35s; }
.topo.rolou { background: rgba(255,255,255,.82); box-shadow: 0 6px 30px rgba(20,16,40,.08); }
.topo.rolou .topo-inner { padding: 8px 0; }

/* menu central: preenche o vão e dá navegação */
.menu { display: flex; gap: 30px; justify-self: center; }
.menu a {
  position: relative; text-decoration: none; color: var(--tinta);
  font-weight: 600; font-size: 15px; padding: 6px 2px; transition: color .2s var(--ease);
}
.menu a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: linear-gradient(90deg, var(--cor), var(--ciano));
  transform: scaleX(0); transform-origin: 0 50%; transition: transform .3s var(--ease);
}
.menu a:hover { color: var(--cor); }
.menu a:hover::after { transform: scaleX(1); }

/* abaixo de 900px: some o menu e o cabeçalho vira 2 zonas (marca | ações) */
@media (max-width: 900px) {
  .menu { display: none; }
  .topo-inner { display: flex; justify-content: space-between; }
}
/* telas pequenas: mostra só os ícones para não apertar */
@media (max-width: 520px) {
  .btn-carrinho-txt, #labelConta { display: none; }
  .marca-txt small { display: none; }
}

/* =========================================================================
   7) HERO refinado
   ========================================================================= */
.hero { padding: 88px 0 80px; }
/* contém o hero numa coluna de leitura confortável (evita texto esticado) */
.hero-inner { display: flex; flex-direction: column; align-items: center; max-width: 820px; margin-inline: auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: var(--cor-escura); background: rgba(124,58,237,.10);
  padding: 8px 16px; border-radius: 999px; margin-bottom: 22px;
  border: 1px solid rgba(124,58,237,.18);
}
.hero h1 { font-size: clamp(38px, 8vw, 88px); font-weight: 800; }
.hero h1 em { font-style: normal; display: inline-block;
  background: linear-gradient(100deg, var(--laranja), var(--rosa) 60%, var(--cor));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { font-size: clamp(16px, 2.2vw, 20px); max-width: 560px; }
.hero-botoes { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }

.scroll-cue {
  display: inline-flex; flex-direction: column; align-items: center; gap: 8px;
  margin: 40px auto 0; font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--tinta-suave); text-decoration: none;
}
.scroll-cue span {
  width: 26px; height: 42px; border: 2px solid rgba(20,16,40,.25); border-radius: 999px; position: relative;
}
.scroll-cue span::after {
  content: ""; position: absolute; top: 7px; left: 50%; width: 4px; height: 8px; border-radius: 4px;
  background: var(--cor); transform: translateX(-50%); animation: rolinha 1.6s var(--ease) infinite;
}
@keyframes rolinha { 0% { opacity: 0; top: 7px; } 40% { opacity: 1; } 80% { opacity: 0; top: 22px; } 100% { opacity: 0; } }

/* =========================================================================
   8) MARQUEE (faixa deslizante)
   ========================================================================= */
.marquee {
  overflow: hidden; white-space: nowrap; padding: 20px 0;
  background: var(--preto); color: #fff; border-block: 1px solid rgba(255,255,255,.08);
  position: relative; z-index: 1;
}
.marquee-track { display: inline-flex; align-items: center; gap: 34px; animation: correr 26s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { font-family: "Syne", sans-serif; font-weight: 800; font-size: clamp(20px, 3vw, 34px); letter-spacing: -.5px; }
.marquee .estrela { color: var(--cor); -webkit-text-stroke: 0; }
.marquee .vazado { color: transparent; -webkit-text-stroke: 1.4px rgba(255,255,255,.55); }
@keyframes correr { to { transform: translateX(-50%); } }

/* =========================================================================
   9) SEÇÃO "COMO FUNCIONA"
   ========================================================================= */
.secao { padding: 84px 0; position: relative; z-index: 1; }
.secao-cabec { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.secao-eyebrow {
  font-size: 12px; font-weight: 800; letter-spacing: 2.5px; text-transform: uppercase; color: var(--cor);
  display: block; margin-bottom: 12px;
}
.secao-titulo { font-size: clamp(28px, 5vw, 46px); margin: 0; }
.secao-cabec p { color: var(--tinta-suave); margin-top: 14px; font-size: 17px; }

.passos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.passo {
  background: #fff; border: 1px solid var(--borda); border-radius: 22px; padding: 30px 26px;
  position: relative; overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.passo:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -20px rgba(124,58,237,.35); }
.passo::after {
  content: ""; position: absolute; top: -40px; right: -40px; width: 130px; height: 130px; border-radius: 50%;
  background: var(--acento, var(--cor)); opacity: .12; transition: transform .5s var(--ease);
}
.passo:hover::after { transform: scale(1.5); }
.passo-num {
  font-size: 15px; font-weight: 800; color: var(--acento, var(--cor));
  border: 2px solid currentColor; width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.passo-emoji { font-size: 34px; position: absolute; top: 26px; right: 26px; }
.passo h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.passo p { color: var(--tinta-suave); font-size: 14.5px; }

/* =========================================================================
   10) FAIXA DE NÚMEROS (seção escura)
   ========================================================================= */
.stats {
  background:
    radial-gradient(700px 300px at 15% 0%, rgba(124,58,237,.5), transparent 60%),
    radial-gradient(700px 400px at 100% 120%, rgba(34,211,238,.35), transparent 60%),
    var(--preto);
  color: #fff; padding: 70px 0; position: relative; z-index: 1; overflow: hidden;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat-num { font-size: clamp(34px, 6vw, 60px); font-weight: 800; line-height: 1;
  background: linear-gradient(120deg, #fff, #c9b8ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-label { color: rgba(255,255,255,.65); font-size: 14px; margin-top: 8px; font-weight: 500; }

/* =========================================================================
   11) BANNER DE CHAMADA (CTA) antes do rodapé
   ========================================================================= */
.cta {
  margin: 0 auto; max-width: var(--maxw); border-radius: 34px; padding: clamp(40px, 7vw, 80px);
  text-align: center; position: relative; overflow: hidden; z-index: 1;
  background: linear-gradient(130deg, var(--cor), #4c1d95 55%, var(--preto));
  color: #fff; box-shadow: 0 40px 80px -30px rgba(124,58,237,.6);
}
.cta::before {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background: radial-gradient(400px 260px at 80% -10%, rgba(34,211,238,.6), transparent 60%),
              radial-gradient(400px 260px at 10% 120%, rgba(244,114,182,.6), transparent 60%);
}
.cta > * { position: relative; }
.cta-titulo { font-size: clamp(30px, 6vw, 62px); font-weight: 800; margin-bottom: 16px; }
.cta p { color: rgba(255,255,255,.8); max-width: 520px; margin: 0 auto 28px; font-size: 17px; }
.cta .btn-principal {
  background: #fff; background-image: none; color: var(--cor-escura);
  box-shadow: 0 12px 30px rgba(0,0,0,.25);
}
.cta .btn-principal:hover { background: #f0eaff; transform: translateY(-2px); }
.secao-cta { padding: 40px 0 70px; }

/* =========================================================================
   Rodapé um pouco mais rico
   ========================================================================= */
.rodape { background: var(--preto); color: rgba(255,255,255,.6); border: 0; }
.rodape a { color: #fff; }
.rodape #rodapeTexto { font-family: "Syne", sans-serif; font-weight: 700; color: #fff; font-size: 18px; }

/* =========================================================================
   Responsivo
   ========================================================================= */
@media (max-width: 860px) {
  .passos { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 30px 12px; }
}
@media (max-width: 560px) {
  .hero { padding: 68px 0 60px; }
  .secao { padding: 62px 0; }
}

/* Menos movimento: desliga marquee, reveals e cursor animado */
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .js-reveal [data-reveal] { opacity: 1 !important; transform: none !important; }
  .scroll-cue span::after { animation: none; }
}

/* =========================================================================
   ACESSIBILIDADE (A11y) — foco visível para navegação por teclado (WCAG)
   :focus-visible aparece só na navegação por teclado, não atrapalha o mouse.
   ========================================================================= */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--cor);
  outline-offset: 3px;
  border-radius: 6px;
}
/* dentro de seções escuras, o contorno branco contrasta melhor */
.stats :focus-visible,
.cta :focus-visible,
.rodape :focus-visible,
.marquee :focus-visible {
  outline-color: #fff;
}
/* atalho "pular para o conteúdo" para leitores de tela / teclado */
.pular-conteudo {
  position: absolute; left: -9999px; top: 0; z-index: 600;
  background: var(--cor); color: #fff; padding: 12px 18px; border-radius: 0 0 10px 0;
  font-weight: 700; text-decoration: none;
}
.pular-conteudo:focus { left: 0; }

/* aviso de privacidade (LGPD) no checkout */
.aviso-privacidade {
  font-size: 12px; line-height: 1.5; color: var(--tinta-suave);
  background: #f4f2fb; border: 1px solid var(--borda); border-radius: 10px;
  padding: 10px 12px; margin: -4px 0 2px;
}
.aviso-privacidade a { color: var(--cor); font-weight: 600; }

/* =========================================================================
   FILTROS por categoria
   ========================================================================= */
.filtros {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
  margin: 0 auto 30px; max-width: 760px;
}
.chip-cat {
  border: 1.5px solid var(--borda); background: #fff; color: var(--tinta);
  padding: 9px 18px; border-radius: 999px; font-weight: 600; font-size: 14px;
  font-family: inherit; transition: .2s var(--ease);
}
.chip-cat:hover { border-color: var(--cor); color: var(--cor); transform: translateY(-2px); }
.chip-cat.ativa { background: var(--cor); border-color: var(--cor); color: #fff; box-shadow: 0 6px 16px rgba(124,58,237,.3); }

/* =========================================================================
   CARRINHO FLUTUANTE — acompanha a rolagem quando há itens
   z-index abaixo do overlay (50), então some sozinho quando o painel abre.
   ========================================================================= */
.carrinho-flutuante {
  position: fixed; right: 20px; bottom: 20px; z-index: 45;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 11px 16px 11px 15px; border: 0; border-radius: 999px;
  font-family: inherit; color: #fff; cursor: pointer;
  background: linear-gradient(135deg, var(--cor), var(--cor-escura));
  box-shadow: 0 16px 36px -8px rgba(124,58,237,.7);
  /* estado oculto (sem itens): não clicável e fora do fluxo de foco */
  opacity: 0; visibility: hidden; transform: translateY(26px) scale(.9);
  transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s, background .2s;
}
.carrinho-flutuante.visivel { opacity: 1; visibility: visible; transform: none; }
/* some quando o carrinho/modal (overlay) está aberto, para não sobrepor */
body.overlay-ativo .carrinho-flutuante.visivel { opacity: 0; visibility: hidden; transform: translateY(10px); }
.carrinho-flutuante:hover { transform: translateY(-3px); box-shadow: 0 20px 44px -8px rgba(124,58,237,.8); }
.carrinho-flutuante:active { transform: translateY(-1px) scale(.98); }
.carrinho-flutuante.pulou { animation: cfPulo .45s var(--ease); }
@keyframes cfPulo { 0%,100% { transform: none; } 35% { transform: translateY(-4px) scale(1.06); } }

.cf-icone { font-size: 22px; line-height: 1; }
.cf-info { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.cf-qtd { font-size: 11px; font-weight: 600; opacity: .85; }
.cf-total { font-size: 15px; font-weight: 800; }
.cf-seta { font-size: 20px; font-weight: 700; opacity: .9; margin-left: 2px; }

@media (max-width: 520px) {
  .carrinho-flutuante { right: 14px; bottom: 14px; padding: 10px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .carrinho-flutuante.pulou { animation: none; }
}

/* =========================================================================
   Produto ESGOTADO
   ========================================================================= */
.card.esgotado { opacity: .72; }
.card.esgotado .card-foto img { filter: grayscale(.85); }
.card.esgotado .card-foto { cursor: default; }
.selo-esgotado { background: #64748b !important; }
.btn-add:disabled { background: #cbd5e1; cursor: not-allowed; filter: none; }
.btn-add:disabled:hover { background: #cbd5e1; }
