/* =============================================================
   On Shop Cell — styles.css
   1. Tokens (cores, fontes, medidas)
   2. Base
   3. Utilitários e botões
   4. Tela de carregamento
   5. Cabeçalho e menu
   6. Animação de rolagem (hero)
   7. Seções
   8. Rodapé e botão flutuante
   9. Responsivo
   10. Movimento reduzido
   ============================================================= */

/* 1. TOKENS ---------------------------------------------------- */
:root {
  /* identidade visual (cores tiradas do logo) */
  --bg: #05070b;
  --bg-soft: #080c13;
  --surface: #0e141d;
  --surface-2: #131b27;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.15);
  --text: #eef2f7;
  --text-soft: #c9d2de;
  --muted: #94a3b8;
  --blue: #0a6cf5;
  --blue-600: #0057d6;
  --blue-400: #3d96ff;
  --blue-glow: rgba(10, 108, 245, 0.45);
  --silver: #d1d3d3;
  --wa: #25d366;
  --wa-hover: #3be27b;
  --wa-ink: #052e16;

  --font-display: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 72px;
  --radius: 22px;
  --radius-sm: 14px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  /* trilhas de circuito usadas como textura */
  --circuit: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' fill='none' stroke='%233d96ff' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M0 46h52l22 22h58M132 68v44l22 22h66M18 220v-48l24-24h30M150 0v26l-22 22M220 160h-34l-18 18v42'/%3E%3Cg fill='%233d96ff' stroke='none'%3E%3Ccircle cx='132' cy='68' r='3.2'/%3E%3Ccircle cx='72' cy='148' r='3.2'/%3E%3Ccircle cx='128' cy='48' r='3.2'/%3E%3Ccircle cx='168' cy='178' r='3.2'/%3E%3C/g%3E%3C/svg%3E");

  color-scheme: dark;
}

/* 2. BASE ------------------------------------------------------ */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

[hidden] { display: none !important; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; }
strong, b { font-weight: 700; }
small { font-size: inherit; }

:focus-visible {
  outline: 2px solid var(--blue-400);
  outline-offset: 3px;
}

::selection { background: var(--blue); color: #fff; }

/* 3. UTILITÁRIOS E BOTÕES ------------------------------------- */
.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 120;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform 0.2s;
}
.skip-link:focus { transform: none; }

.text-blue { color: var(--blue-400); }

.i {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75em;
  font: 700 0.75rem/1.2 var(--font-display);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-400);
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.icon-box {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 14px;
  color: var(--blue-400);
  background: linear-gradient(180deg, rgba(61, 150, 255, 0.18), rgba(10, 108, 245, 0.08));
  border: 1px solid rgba(61, 150, 255, 0.22);
}
.icon-box .i { width: 24px; height: 24px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 48px;
  padding: 0.85em 1.5em;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 700 0.95rem/1 var(--font-display);
  letter-spacing: 0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), background-color 0.25s, border-color 0.25s, box-shadow 0.25s, color 0.25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn .i { width: 1.2em; height: 1.2em; }

.btn--primary {
  color: #fff;
  background: linear-gradient(180deg, var(--blue-400), var(--blue) 60%, var(--blue-600));
  box-shadow: 0 12px 30px -12px var(--blue-glow), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn--primary:hover { box-shadow: 0 16px 36px -10px var(--blue-glow), inset 0 1px 0 rgba(255, 255, 255, 0.3); }

.btn--wa {
  color: var(--wa-ink);
  background: var(--wa);
  box-shadow: 0 12px 30px -14px rgba(37, 211, 102, 0.7);
}
.btn--wa:hover { background: var(--wa-hover); }

.btn--ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-strong);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.btn--ghost:hover { border-color: rgba(61, 150, 255, 0.7); background: rgba(10, 108, 245, 0.14); }

.btn--sm { min-height: 42px; padding: 0.7em 1.1em; font-size: 0.85rem; }
.btn--lg { min-height: 56px; padding: 1em 1.8em; font-size: 1rem; }

/* 4. TELA DE CARREGAMENTO ------------------------------------- */
.loader { display: none; }

.js .loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background:
    radial-gradient(55% 45% at 50% 45%, rgba(10, 108, 245, 0.16), transparent 70%),
    var(--bg);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s var(--ease-out), visibility 0s linear 0.7s;
}
.js.is-loading .loader { opacity: 1; visibility: visible; transition: none; }
html.is-loading { overflow: hidden; }

.loader__box { display: grid; justify-items: center; gap: 14px; }
.loader__mark {
  width: 136px;
  height: 70px;
  filter: drop-shadow(0 0 28px rgba(10, 108, 245, 0.45));
  animation: loader-pulse 1.8s ease-in-out infinite;
}
.loader__word {
  font: 800 1.1rem/1 var(--font-display);
  letter-spacing: 0.06em;
  color: #e9edf2;
}
.loader__word b { color: var(--blue-400); }
.loader__track {
  width: min(240px, 60vw);
  height: 3px;
  margin-top: 14px;
  border-radius: 3px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
}
.loader__fill {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--blue-600), var(--blue-400));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.2s linear;
}
.loader__pct {
  font: 600 0.78rem/1 var(--font-display);
  letter-spacing: 0.2em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

@keyframes loader-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.75; transform: scale(0.97); }
}

/* 5. CABEÇALHO E MENU ----------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  padding-top: env(safe-area-inset-top);
}
/* degradê para leitura sobre a animação */
.site-header::before,
.site-header::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out);
}
.site-header::before {
  bottom: -48px;
  background: linear-gradient(to bottom, rgba(5, 7, 11, 0.78), rgba(5, 7, 11, 0));
}
/* fundo sólido com desfoque (fica num pseudo-elemento para não prender o menu mobile) */
.site-header::after {
  opacity: 0;
  background: rgba(5, 7, 11, 0.8);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
}
.site-header.is-solid::before { opacity: 0; }
.site-header.is-solid::after { opacity: 1; }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.brand {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand__mark { width: 60px; height: 31px; }
.brand__word {
  font: 800 1.02rem/1 var(--font-display);
  letter-spacing: 0.04em;
  color: #e9edf2;
}
.brand__word b { color: var(--blue-400); font-weight: 800; }

.nav { display: flex; align-items: center; gap: 22px; }
.nav__list { display: flex; gap: 4px; }
.nav__list a {
  display: block;
  padding: 10px 14px;
  border-radius: 999px;
  font: 600 0.92rem/1 var(--font-body);
  color: var(--text-soft);
  transition: color 0.2s, background-color 0.2s;
}
.nav__list a:hover { color: #fff; background: rgba(255, 255, 255, 0.07); }
.nav__cta { min-height: 44px; padding: 0.7em 1.2em; font-size: 0.88rem; }

.site-header__actions { position: relative; z-index: 2; display: none; align-items: center; gap: 10px; }

.header-wa,
.nav-toggle {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
}
.header-wa { color: var(--wa-ink); background: var(--wa); }
.header-wa .i { width: 22px; height: 22px; }

.nav-toggle {
  position: relative;
  padding: 0;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
}
.nav-toggle__bar {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease-out);
}
.nav-toggle__bar:first-child { transform: translateY(-4px); }
.nav-toggle__bar:last-child { transform: translateY(4px); }
.menu-open .nav-toggle__bar:first-child { transform: rotate(45deg); }
.menu-open .nav-toggle__bar:last-child { transform: rotate(-45deg); }

/* 6. ANIMAÇÃO DE ROLAGEM (HERO) ------------------------------- */
/* A altura define quanto o usuário rola até a animação terminar:
   aumente (ex.: 600vh) para deixá-la mais lenta, diminua para mais rápida. */
.hero {
  position: relative;
  height: 500vh;
  background: var(--bg);
}

/* Palco preso na tela durante a rolagem. 100lvh = altura "grande" da tela no
   celular, assim o canvas não é redimensionado quando a barra do navegador some. */
.hero__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100lvh;
  overflow: hidden;
  background: var(--bg);
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.9s var(--ease-out);
}
.hero.has-frame .hero__canvas { opacity: 1; }

/* Capa estática: aparece sem JS, sem frames ou enquanto o 1º frame não chega.
   No celular o logo fica no alto; no computador, à direita do texto. */
.hero__fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: calc(var(--header-h) + env(safe-area-inset-top) + 7vh) var(--gutter) 0;
  background:
    radial-gradient(50% 55% at 70% 38%, rgba(10, 108, 245, 0.28), transparent 70%),
    radial-gradient(40% 40% at 15% 85%, rgba(10, 108, 245, 0.12), transparent 70%),
    var(--bg);
  transition: opacity 0.9s var(--ease-out), visibility 0s linear 0.9s;
}
.hero__fallback::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--circuit);
  background-size: 220px 220px;
  opacity: 0.16;
  -webkit-mask-image: radial-gradient(70% 70% at 60% 40%, #000, transparent 75%);
  mask-image: radial-gradient(70% 70% at 60% 40%, #000, transparent 75%);
}
.hero.has-frame .hero__fallback { opacity: 0; visibility: hidden; }

.hero__fallback-logo {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 10px;
}
.hero__fallback-mark {
  width: clamp(150px, 30vw, 420px);
  height: auto;
  aspect-ratio: 206 / 106;
  filter: drop-shadow(0 0 50px rgba(10, 108, 245, 0.35));
}
.hero__fallback-word {
  font: 800 clamp(2rem, 5vw, 4.2rem)/1 var(--font-display);
  letter-spacing: 0.02em;
  color: #edf1f5;
}
.hero__fallback-word b { color: var(--blue-400); }
.hero__fallback-tag {
  padding-top: 12px;
  border-top: 2px solid var(--blue);
  font: 600 clamp(0.62rem, 1vw, 0.8rem)/1 var(--font-display);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: #9fb3cf;
}

/* degradês para o texto ficar legível sobre qualquer frame: canto inferior
   esquerdo (onde ficam os textos), base, topo (cabeçalho) e uma vinheta leve
   que integra o fundo do vídeo ao tema escuro do site */
.hero__shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(85% 70% at 0% 100%, rgba(5, 7, 11, 0.78) 0%, rgba(5, 7, 11, 0.32) 50%, rgba(5, 7, 11, 0) 75%),
    linear-gradient(to top, rgba(5, 7, 11, 0.94) 0%, rgba(5, 7, 11, 0.45) 22%, rgba(5, 7, 11, 0) 46%),
    linear-gradient(to bottom, rgba(5, 7, 11, 0.55) 0%, rgba(5, 7, 11, 0) 20%),
    radial-gradient(130% 100% at 50% 45%, rgba(5, 7, 11, 0) 55%, rgba(5, 7, 11, 0.4) 100%);
}

/* camada de texto: usa a altura "pequena" da tela, então nada fica escondido
   atrás da barra do navegador no celular */
.hero__ui {
  position: absolute;
  inset: 0 0 auto 0;
  height: 100vh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  padding-bottom: env(safe-area-inset-bottom);
  pointer-events: none;
}
.hero__ui a,
.hero__ui button { pointer-events: auto; }

.hero__beats { position: relative; flex: 1; }

.beat {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  max-width: 700px;
  opacity: 0;
  visibility: hidden;
  will-change: opacity, transform;
}
.beat.is-visible,
.beat--intro { visibility: visible; }
.beat--intro { opacity: 1; }

.beat__heading { display: grid; gap: 16px; font-weight: inherit; }
.beat__title {
  display: block;
  font: 800 clamp(2.3rem, 5.6vw, 4.8rem)/1.02 var(--font-display);
  letter-spacing: -0.025em;
  text-wrap: balance;
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.45);
}
.beat > .beat__title { margin: 16px 0 0; }
.beat__text {
  max-width: 52ch;
  margin-top: 16px;
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  color: var(--text-soft);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}
.beat__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.beat__actions--static { display: none; }

.hero__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0 28px;
}
.hero__hint,
.hero__skip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 600 0.74rem/1 var(--font-display);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--text-soft);
}
.hero__hint .i { width: 22px; height: 22px; }
.hero__wheel { animation: mouse-wheel 1.8s ease-in-out infinite; }
.hero__skip {
  padding: 10px 14px;
  margin-right: -14px;
  border-radius: 999px;
  transition: color 0.2s, background-color 0.2s;
}
.hero__skip:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.hero__skip .i { width: 16px; height: 16px; }

@keyframes mouse-wheel {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(4px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

.hero__progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
}
.hero__buffer,
.hero__played {
  position: absolute;
  inset: 0;
  transform: scaleX(0);
  transform-origin: left center;
}
.hero__buffer { background: rgba(255, 255, 255, 0.14); transition: transform 0.3s linear; }
.hero__played { background: linear-gradient(90deg, var(--blue-600), var(--blue-400)); }

/* Modo estático: sem JS, sem frames, "reduzir movimento" ou economia de dados.
   A seção vira uma capa de uma tela só (um frame ou a capa da marca) e o texto
   entra no fluxo normal, então nunca fica por cima do logo em telas baixas. */
:is(.no-js, .motion-static, .frames-missing) .hero { height: auto; }
:is(.no-js, .motion-static, .frames-missing) .hero__stage {
  position: relative;
  height: auto;
  min-height: 100vh;
  min-height: 100svh;
}
:is(.no-js, .motion-static, .frames-missing) .hero__ui {
  position: relative;
  height: auto;
  min-height: inherit;
  padding-top: calc(var(--header-h) + env(safe-area-inset-top) + 7vh + clamp(150px, 30vw, 420px) * 0.52 + 120px);
}
:is(.no-js, .motion-static, .frames-missing) .hero__beats {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: clamp(40px, 8vh, 80px);
}
:is(.no-js, .motion-static, .frames-missing) .beat:not(.beat--intro) { display: none; }
:is(.no-js, .motion-static, .frames-missing) .beat--intro {
  position: relative;
  bottom: auto;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}
:is(.no-js, .motion-static, .frames-missing) .beat__actions--static { display: flex; }
:is(.no-js, .motion-static, .frames-missing) :is(.hero__bar, .hero__progress) { display: none; }

/* 7. SEÇÕES --------------------------------------------------- */
.section {
  position: relative;
  padding-block: clamp(80px, 10vw, 128px);
}

.section-head { max-width: 720px; margin-bottom: clamp(32px, 4vw, 48px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-title {
  margin: 16px 0;
  font: 800 clamp(2rem, 4.2vw, 3.25rem)/1.08 var(--font-display);
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.section-lead {
  max-width: 60ch;
  font-size: clamp(1rem, 1.25vw, 1.125rem);
  color: var(--muted);
}
.section-head--center .section-lead { margin-inline: auto; }

/* Diferenciais */
.perks {
  position: relative;
  background: var(--bg-soft);
  border-block: 1px solid var(--line);
}
.perks__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.perk {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 28px 20px;
}
.perk + .perk { border-left: 1px solid var(--line); }
.perk__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  color: var(--blue-400);
  background: rgba(10, 108, 245, 0.12);
}
.perk__icon .i { width: 22px; height: 22px; }
.perk strong { display: block; font: 700 0.95rem/1.25 var(--font-display); }
.perk small { display: block; margin-top: 3px; font-size: 0.85rem; color: var(--muted); }

/* Produtos */
.products::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 520px;
  background: radial-gradient(60% 100% at 50% 0%, rgba(10, 108, 245, 0.12), transparent 70%);
  pointer-events: none;
}

.filters {
  display: flex;
  gap: 10px;
  margin: 0 0 28px;
  padding: 4px 2px 10px;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}
.filters::-webkit-scrollbar { display: none; }

.chip {
  flex: none;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-soft);
  font: 600 0.9rem/1 var(--font-body);
  cursor: pointer;
  scroll-snap-align: start;
  transition: color 0.2s, background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.chip:hover { color: #fff; border-color: rgba(61, 150, 255, 0.6); }
.chip[aria-pressed="true"] {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
  box-shadow: 0 10px 24px -12px var(--blue-glow);
}

.product-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.product {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--bg-soft));
  transition: transform 0.4s var(--ease-out), border-color 0.4s, box-shadow 0.4s;
}
.product[hidden] { display: none; }
.product:hover {
  transform: translateY(-4px);
  border-color: rgba(61, 150, 255, 0.35);
  box-shadow: 0 26px 50px -26px rgba(10, 108, 245, 0.5);
}

.product__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #0b1017;
}
/* fotos: carrossel deslizável (arrasta no celular, setas no computador) */
.product__slides {
  display: flex;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.product__slides::-webkit-scrollbar { display: none; }
.product__media img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  transition: transform 0.7s var(--ease-out), filter 0.3s;
}
.product:hover .product__slides img:only-child { transform: scale(1.04); }
.product.no-photo .product__slides {
  display: grid;
  place-items: center;
  background: radial-gradient(70% 60% at 50% 40%, rgba(10, 108, 245, 0.16), transparent 70%), #0b1017;
}
.product.no-photo .product__slides::after {
  content: "Foto em breve";
  font: 600 0.8rem/1 var(--font-display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.product__count {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 1;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(5, 7, 11, 0.72);
  color: #fff;
  font: 600 0.72rem/1 var(--font-body);
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}
.product__arrow {
  position: absolute;
  top: 50%;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-top: -18px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(5, 7, 11, 0.7);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s, background-color 0.2s;
}
.product__arrow--prev { left: 10px; }
.product__arrow--next { right: 10px; }
.product__arrow .i { width: 18px; height: 18px; }
.product:hover .product__arrow,
.product__arrow:focus-visible { opacity: 1; }
.product__arrow:hover { background: var(--blue); }
@media (hover: none) {
  .product__arrow { display: none; }
}

.product__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font: 700 0.68rem/1 var(--font-display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: 0 6px 18px -6px var(--blue-glow);
}

.product__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 18px 18px 20px;
}
.product__tag {
  font: 700 0.68rem/1 var(--font-display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-400);
}
.product__name { font: 700 1.06rem/1.25 var(--font-display); }
.product__desc { margin-bottom: 8px; font-size: 0.9rem; line-height: 1.5; color: var(--muted); }
/* o botão vai para o pé do card, alinhado entre cards de alturas diferentes */
.product__cta { width: 100%; margin-top: auto; }

/* cartão "Tem muito mais na loja": com 17 produtos + este cartão a grade
   fecha certinho em 2, 3 e 4 colunas (nas 4 colunas ele ocupa 3 espaços) */
.grid-cta {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 18px;
  padding: 28px;
  border: 1px solid rgba(61, 150, 255, 0.3);
  border-radius: var(--radius);
  background:
    radial-gradient(90% 80% at 100% 0%, rgba(10, 108, 245, 0.32), transparent 70%),
    var(--surface);
}
.grid-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--circuit);
  background-size: 220px 220px;
  opacity: 0.1;
  pointer-events: none;
}
.grid-cta > * { position: relative; }
.grid-cta h3 { font: 800 1.35rem/1.15 var(--font-display); }
.grid-cta p { margin-top: 8px; color: var(--muted); font-size: 0.95rem; }
.grid-cta__text { flex: 1 1 auto; }
.grid-cta .btn { flex: none; }

/* o script.js define quantas colunas o cartão ocupa; largo = conteúdo em linha */
.grid-cta.is-wide { flex-direction: row; align-items: center; padding: 32px 40px; }

/* preço, cores e estados do produto */
.product__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
}
.product__price strong {
  font: 800 1.2rem/1.1 var(--font-display);
  letter-spacing: -0.01em;
  color: #fff;
}
.product__price s { font-size: 0.85rem; color: var(--muted); }
.product__price--ask { font-size: 0.9rem; font-weight: 600; color: var(--blue-400); }

.product__colors {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}
.product__swatches { display: flex; flex-wrap: wrap; gap: 4px; }
.swatch {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 4px solid #0f151f;
  border-radius: 50%;
  background: var(--swatch);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22);
  cursor: pointer;
  transition: box-shadow 0.15s, transform 0.15s;
}
.swatch:hover { transform: scale(1.08); }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--blue-400); }
.product__color-name { font-size: 0.8rem; color: var(--muted); }

.product.is-soldout .product__slides img { filter: grayscale(0.9) brightness(0.65); }
.product.is-soldout .product__price strong { color: var(--muted); }
.product__badge--muted { background: #3a4150; box-shadow: none; }

/* enquanto os produtos carregam */
.product--skeleton { pointer-events: none; }
.product--skeleton .product__media,
.product--skeleton .product__body span {
  background: linear-gradient(100deg, #0e141d 30%, #182233 50%, #0e141d 70%);
  background-size: 300% 100%;
  animation: skeleton 1.4s ease-in-out infinite;
}
.product--skeleton .product__body span { display: block; height: 12px; border-radius: 6px; }
.product--skeleton .product__body span:nth-child(1) { width: 40%; }
.product--skeleton .product__body span:nth-child(2) { width: 80%; height: 16px; }
.product--skeleton .product__body span:nth-child(3) { width: 100%; height: 40px; margin-top: auto; border-radius: 999px; }
@keyframes skeleton {
  from { background-position: 100% 0; }
  to { background-position: 0 0; }
}

.products__notice {
  grid-column: 1 / -1;
  padding: 28px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--text-soft);
  text-align: center;
}

/* Assistência */
.service {
  background:
    radial-gradient(45% 60% at 90% 15%, rgba(10, 108, 245, 0.16), transparent 70%),
    var(--bg-soft);
  border-block: 1px solid var(--line);
  overflow: clip;
}
.service::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--circuit);
  background-size: 220px 220px;
  opacity: 0.07;
  -webkit-mask-image: linear-gradient(to left, #000, transparent 70%);
  mask-image: linear-gradient(to left, #000, transparent 70%);
  pointer-events: none;
}
.service__layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: center;
}
.service__intro .section-lead { margin-bottom: 32px; }
.service__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.service-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025);
  transition: border-color 0.3s, background-color 0.3s, transform 0.4s var(--ease-out);
}
.service-card:hover {
  transform: translateY(-3px);
  border-color: rgba(61, 150, 255, 0.45);
  background: rgba(10, 108, 245, 0.06);
}
.service-card h3 { margin: 18px 0 6px; font-size: 1.08rem; font-weight: 700; }
.service-card p { font-size: 0.92rem; color: var(--muted); }

/* Como comprar */
.steps__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.step {
  position: relative;
  overflow: hidden;
  padding: 32px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--bg-soft));
}
.step::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  opacity: 0.6;
}
.step__num {
  position: absolute;
  top: 16px;
  right: 22px;
  font: 800 3.6rem/1 var(--font-display);
  color: rgba(255, 255, 255, 0.05);
}
.step h3 { margin: 20px 0 8px; font-size: 1.2rem; font-weight: 700; }
.step p { color: var(--muted); }

/* Clientes / Instagram */
.social__card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "profile highlights"
    "text text"
    "cta cta";
  align-items: center;
  gap: 28px 36px;
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  background:
    radial-gradient(60% 90% at 0% 0%, rgba(10, 108, 245, 0.16), transparent 70%),
    linear-gradient(180deg, var(--surface), var(--bg-soft));
}
.social__profile { grid-area: profile; display: flex; align-items: center; gap: 16px; }
.social__handle { display: block; font: 700 1.1rem/1.2 var(--font-display); }
.social__meta { display: block; margin-top: 4px; font-size: 0.88rem; color: var(--muted); }
.social__text { grid-area: text; }
.social__text .section-title { margin-top: 0; }
.social__highlights { grid-area: highlights; display: flex; justify-content: flex-end; gap: 18px; }
.social__highlights a {
  display: grid;
  justify-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-soft);
  transition: color 0.2s;
}
.social__highlights a:hover { color: #fff; }
.social__cta { grid-area: cta; justify-self: start; }

.avatar {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  flex: none;
  border-radius: 50%;
  background: #000;
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--blue);
}
.avatar svg { width: 64%; height: auto; aspect-ratio: 206 / 106; }
.avatar--sm { width: 64px; height: 64px; box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px rgba(61, 150, 255, 0.7); }

/* Contato */
.contact { padding-top: 0; }
.contact__card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  padding: clamp(32px, 6vw, 72px);
  border: 1px solid rgba(61, 150, 255, 0.28);
  border-radius: calc(var(--radius) + 8px);
  background:
    radial-gradient(70% 120% at 100% 0%, rgba(10, 108, 245, 0.35), transparent 60%),
    radial-gradient(60% 90% at 0% 100%, rgba(10, 108, 245, 0.16), transparent 70%),
    var(--surface);
}
.contact__card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--circuit);
  background-size: 220px 220px;
  opacity: 0.12;
  -webkit-mask-image: linear-gradient(to left, #000, transparent 65%);
  mask-image: linear-gradient(to left, #000, transparent 65%);
  pointer-events: none;
}
.contact__text,
.contact__info { position: relative; }
.contact__text .section-title { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
.contact__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.contact__info { display: grid; gap: 14px; }
.contact__info li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(5, 7, 11, 0.45);
}
.contact__info small {
  display: block;
  font: 600 0.72rem/1.2 var(--font-display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact__info a,
.contact__info strong { display: block; margin-top: 2px; font-size: 1.05rem; font-weight: 600; color: var(--text); }
.contact__info a:hover { color: var(--blue-400); }

/* 8. RODAPÉ E BOTÃO FLUTUANTE --------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 56px 0 calc(28px + env(safe-area-inset-bottom));
}
.site-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  padding-bottom: 40px;
}
.site-footer__brand p { max-width: 36ch; margin-top: 16px; color: var(--muted); font-size: 0.92rem; }
.site-footer__links,
.site-footer__contact { display: grid; gap: 12px; align-content: start; }
.site-footer a { transition: color 0.2s; }
.site-footer__links a,
.site-footer__contact :is(a, span) { color: var(--text-soft); font-size: 0.95rem; }
.site-footer__contact :is(a, span) { display: inline-flex; align-items: center; gap: 10px; }
.site-footer__contact .i { color: var(--blue-400); }
.site-footer a:hover { color: #fff; }
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--muted);
}
.site-footer__bottom a { display: inline-flex; align-items: center; gap: 6px; }
.site-footer__bottom .i { width: 16px; height: 16px; }

.wa-float {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 40;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  color: #fff;
  background: var(--wa);
  box-shadow: 0 14px 34px -10px rgba(37, 211, 102, 0.65);
  opacity: 0;
  visibility: hidden;
  transform: translateY(24px) scale(0.85);
  transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out), visibility 0s linear 0.35s;
}
.wa-float.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}
.wa-float:hover { background: var(--wa-hover); }
.wa-float .i { width: 30px; height: 30px; }
.no-js .wa-float { opacity: 1; visibility: visible; transform: none; }

/* animação de entrada das seções (ativada pelo script.js). Usa "translate"
   para não brigar com o "transform" do hover dos cards. */
.reveal-ready [data-reveal] {
  opacity: 0;
  translate: 0 28px;
  transition:
    opacity 0.8s var(--ease-out) var(--delay, 0s),
    translate 0.8s var(--ease-out) var(--delay, 0s);
}
.reveal-ready [data-reveal].is-in { opacity: 1; translate: none; }
.reveal-ready :is(.product, .service-card)[data-reveal] {
  transition:
    opacity 0.8s var(--ease-out) var(--delay, 0s),
    translate 0.8s var(--ease-out) var(--delay, 0s),
    transform 0.4s var(--ease-out),
    border-color 0.4s,
    box-shadow 0.4s,
    background-color 0.3s;
}

/* página 404 */
.not-found { display: grid; min-height: 100vh; place-items: center; }
.not-found__box { padding: 48px 0; text-align: center; }
.not-found__box .section-lead { margin-inline: auto; }
.not-found__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }

/* 9. RESPONSIVO ----------------------------------------------- */
@media (min-width: 901px) {
  .hero__fallback {
    align-items: center;
    justify-content: flex-end;
    padding: var(--header-h) max(var(--gutter), 7vw) 0;
  }
  .hero__fallback-logo { transform: translateY(-8%); }
  :is(.no-js, .motion-static, .frames-missing) .hero__ui { padding-top: calc(var(--header-h) + 40px); }
  :is(.no-js, .motion-static, .frames-missing) .beat--intro { max-width: min(640px, 52%); }
}

@media (max-width: 1099px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1080px) {
  .service__layout { grid-template-columns: 1fr; }
  .service__intro { max-width: 640px; }
  .contact__card { grid-template-columns: 1fr; }
  .perks__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .perk:nth-child(3) { border-left: 0; }
  .perk:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }

  .site-header__actions { display: flex; }
  .brand__mark { width: 54px; height: 28px; }

  /* menu em tela cheia */
  .nav {
    position: fixed;
    inset: 0;
    z-index: 1;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 32px;
    padding: calc(var(--header-h) + env(safe-area-inset-top) + 16px) var(--gutter) calc(32px + env(safe-area-inset-bottom));
    background:
      radial-gradient(70% 50% at 100% 0%, rgba(10, 108, 245, 0.2), transparent 70%),
      var(--bg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out), visibility 0s linear 0.35s;
  }
  .menu-open .nav { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  html.menu-open { overflow: hidden; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list a {
    padding: 18px 4px;
    border-radius: 0;
    border-bottom: 1px solid var(--line);
    font: 800 clamp(1.6rem, 7vw, 2.2rem)/1.1 var(--font-display);
    color: var(--text);
  }
  .nav__list a:hover { background: none; color: var(--blue-400); }
  .nav__cta { min-height: 56px; font-size: 1rem; }

  .steps__list { grid-template-columns: 1fr; }
  .social__card {
    grid-template-columns: 1fr;
    grid-template-areas: "profile" "text" "highlights" "cta";
  }
  .social__highlights { justify-content: flex-start; }
  .site-footer__top { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .beat__title { font-size: clamp(2.1rem, 10.5vw, 3rem); }
  .beat__actions .btn { flex: 1 1 auto; }
  .hero__bar { padding: 18px 0 22px; }
  .hero__hint { letter-spacing: 0.12em; }

  .perks__list { grid-template-columns: 1fr 1fr; }
  .perk { flex-direction: column; align-items: flex-start; gap: 10px; padding: 20px 14px; }
  .perk strong { font-size: 0.86rem; }
  .perk small { font-size: 0.78rem; }

  .filters { margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }

  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .product,
  .grid-cta { border-radius: 18px; }
  .product-grid > .grid-cta,
  .product-grid > .grid-cta.is-wide { flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px; }
  .product__price strong { font-size: 1.05rem; }
  .swatch { width: 26px; height: 26px; }
  .grid-cta h3 { font-size: 1.05rem; }
  .grid-cta p { font-size: 0.82rem; }
  .grid-cta .btn { width: 100%; }
  .product__body { gap: 6px; padding: 12px 12px 14px; }
  .product__badge { top: 8px; left: 8px; padding: 5px 8px; font-size: 0.6rem; }
  .product__name { font-size: 0.92rem; }
  .product__desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.8rem;
  }
  .product__desc { margin-bottom: 6px; }
  .product__cta { min-height: 40px; padding-inline: 0.6em; }
  .hide-sm { display: none; }

  .service__grid { grid-template-columns: 1fr; gap: 12px; }
  .service-card { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; align-items: center; padding: 18px; }
  .service-card .icon-box { grid-row: span 2; }
  .service-card h3 { margin: 0 0 2px; }

  .contact__actions .btn { flex: 1 1 100%; }
  .contact__info li { padding: 14px; }
  .site-footer__top { grid-template-columns: 1fr; gap: 28px; }
}

/* 10. MOVIMENTO REDUZIDO -------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .reveal-ready [data-reveal] { opacity: 1; translate: none; }
  .btn:hover,
  .product:hover,
  .service-card:hover,
  .product:hover .product__media img { transform: none; }
}
