/* ==========================================================
   eCenterShop — folha de estilos
   Tokens de marca no :root. Edite as cores/fontes ali.
   ========================================================== */

:root{
  /* cores base */
  --bg: #0E1326;
  --bg-rgb: 14,19,38;
  --bg-alt: #141A34;
  --bg-alt-rgb: 20,26,52;
  --surface: #1B2140;
  --surface-2: #232A4D;
  --line: rgba(236,238,246,0.10);

  --text: #ECEEF6;
  --text-dim: #A6ACC8;
  --text-faint: #767CA0;

  --accent: #F4B740;      /* dourado — CTAs, preço, destaque */
  --accent-rgb: 244,183,64;
  --accent-2: #FF6F59;    /* coral — badges, alertas de desconto */
  --accent-contrast: #101226;

  /* cores das lojas (usadas só como ponto de identificação, não são logos) */
  --amazon: #FF9900;
  --mercadolivre: #FFE600;
  --shopee: #EE4D2D;
  --magalu: #0086FF;
  --hotmart: #F2545B;

  /* tipografia */
  --font-display: "Sora", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  /* layout */
  --wrap: 1180px;
  --radius: 16px;
  --radius-sm: 10px;
}

/* ===================== TEMA CLARO ===================== */
:root[data-theme="light"]{
  --bg: #F3F4FA;
  --bg-rgb: 243,244,250;
  --bg-alt: #FFFFFF;
  --bg-alt-rgb: 255,255,255;
  --surface: #FFFFFF;
  --surface-2: #EEF0FA;
  --line: rgba(18,22,43,0.10);

  --text: #12162B;
  --text-dim: #4B5170;
  --text-faint: #6B7094;

  --accent: #C9840F;
  --accent-rgb: 201,132,15;
  --accent-2: #E14B37;
  --accent-contrast: #FFFFFF;
}

body{
  transition: background-color .2s ease, color .2s ease;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }

#topo,#lojas,#ofertas,#sobre{
  scroll-margin-top:94px;
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *,*::before,*::after{ animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important; }
}

body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:var(--font-body);
  font-size:16px;
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
  position:relative;
}

/* fundo "futurista": grade fina + halos de luz, fixos atrás de tudo */
body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:-2;
  background-image:
    radial-gradient(600px 420px at 88% -6%, rgba(var(--accent-rgb),0.16), transparent 60%),
    radial-gradient(520px 420px at 8% 18%, rgba(255,111,89,0.10), transparent 60%);
  pointer-events:none;
}
body::after{
  content:"";
  position:fixed;
  inset:0;
  z-index:-1;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size:64px 64px;
  mask-image:linear-gradient(to bottom, rgba(0,0,0,0.5), transparent 46%);
  -webkit-mask-image:linear-gradient(to bottom, rgba(0,0,0,0.5), transparent 46%);
  opacity:.5;
  pointer-events:none;
}

h1,h2,h3{
  font-family:var(--font-display);
  color:var(--text);
  line-height:1.12;
  margin:0 0 .5em;
}

p{ margin:0 0 1em; color:var(--text-dim); }
a{ color:inherit; }

img{ max-width:100%; display:block; }

.wrap{
  max-width:var(--wrap);
  margin:0 auto;
  padding:0 20px;
}

.skip-link{
  position:absolute;
  left:-999px;
  top:auto;
  background:var(--accent);
  color:var(--accent-contrast);
  padding:10px 16px;
  border-radius:0 0 8px 0;
  z-index:200;
  font-weight:600;
}
.skip-link:focus{ left:0; top:0; }

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

/* ===================== HEADER ===================== */
.site-header{
  position:sticky;
  top:0;
  z-index:100;
  background:rgba(var(--bg-rgb), 0.82);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  border-bottom:1px solid var(--line);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  height:78px;
}
.logo{
  display:inline-flex;
  align-items:center;
  gap:9px;
  text-decoration:none;
}
.logo-mark{
  height:64px;
  width:auto;
  display:block;
}

.header-right{
  display:flex;
  align-items:center;
  gap:18px;
}

.main-nav{
  display:flex;
  gap:28px;
}

.theme-toggle{
  display:flex;
  align-items:center;
  justify-content:center;
  width:38px;
  height:38px;
  border-radius:50%;
  border:1px solid var(--line);
  background:transparent;
  color:var(--text-dim);
  cursor:pointer;
  transition:border-color .15s ease, color .15s ease;
}
.theme-toggle:hover{ border-color:var(--accent); color:var(--accent); }
.theme-toggle svg{
  width:18px;
  height:18px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.theme-toggle .icon-moon{ display:none; }
:root[data-theme="light"] .theme-toggle .icon-sun{ display:none; }
:root[data-theme="light"] .theme-toggle .icon-moon{ display:block; }
.main-nav a{
  text-decoration:none;
  color:var(--text-dim);
  font-weight:500;
  font-size:14.5px;
  transition:color .15s ease;
}
.main-nav a:hover{ color:var(--text); }

.nav-toggle{
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:5px;
  width:38px;
  height:38px;
  background:none;
  border:1px solid var(--line);
  border-radius:8px;
  cursor:pointer;
}
.nav-toggle span{
  display:block;
  height:2px;
  margin:0 8px;
  background:var(--text);
  border-radius:2px;
  transition:transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity:0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

@media (max-width: 760px){
  .nav-toggle{ display:flex; }
  .main-nav{
    position:absolute;
    top:78px;
    left:0;
    right:0;
    background:var(--bg-alt);
    border-bottom:1px solid var(--line);
    flex-direction:column;
    gap:0;
    max-height:0;
    overflow:hidden;
    transition:max-height .25s ease;
  }
  .main-nav.is-open{ max-height:220px; }
  .main-nav a{
    padding:16px 20px;
    border-top:1px solid var(--line);
  }
}
@media (min-width: 761px){
  .nav-toggle{ display:none; }
}

/* ===================== HERO ===================== */
.hero{ padding:64px 0 40px; }
.hero-inner{
  display:grid;
  grid-template-columns:1fr;
  gap:40px;
  align-items:center;
}
.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-family:var(--font-mono);
  font-size:12.5px;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:var(--accent);
  margin:0 0 14px;
}
.live-dot{
  width:7px;
  height:7px;
  border-radius:50%;
  background:var(--accent);
  box-shadow:0 0 0 0 rgba(var(--accent-rgb),.55);
  animation:pulse 2.2s ease-out infinite;
}
@keyframes pulse{
  0%{ box-shadow:0 0 0 0 rgba(var(--accent-rgb),.55); }
  70%{ box-shadow:0 0 0 7px rgba(var(--accent-rgb),0); }
  100%{ box-shadow:0 0 0 0 rgba(var(--accent-rgb),0); }
}
.hero h1{
  font-size:clamp(30px, 6vw, 48px);
  max-width:14ch;
}
.hero h1 em{
  font-style:normal;
  background-image:linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.hero .lede{
  max-width:52ch;
  font-size:16.5px;
}
.hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:8px;
}

.trust-strip{
  display:flex;
  flex-wrap:wrap;
  gap:28px;
  margin:34px 0 0;
  padding-top:22px;
  border-top:1px solid var(--line);
}
.trust-item{ margin:0; }
.trust-item dt{
  font-family:var(--font-mono);
  font-size:22px;
  font-weight:700;
  color:var(--text);
}
.trust-item dd{
  margin:2px 0 0;
  font-size:12.5px;
  color:var(--text-faint);
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:13px 22px;
  border-radius:999px;
  font-weight:600;
  font-size:14.5px;
  text-decoration:none;
  border:1px solid transparent;
  cursor:pointer;
  transition:transform .12s ease, background .15s ease, border-color .15s ease;
}
.btn:hover{ transform:translateY(-1px); }
.btn-primary{
  background:var(--accent);
  color:var(--accent-contrast);
  box-shadow:0 10px 26px -12px rgba(var(--accent-rgb),.55);
}
.btn-primary:hover{ background:#ffc766; box-shadow:0 14px 30px -12px rgba(var(--accent-rgb),.7); }
.btn-ghost{
  background:transparent;
  color:var(--text);
  border-color:var(--line);
}
.btn-ghost:hover{ border-color:var(--accent); color:var(--accent); }

/* orbit */
.hero-orbit{
  display:none;
  width:100%;
  max-width:400px;
  margin:0 auto;
}
@media (min-width: 760px){
  .hero-inner{ grid-template-columns:1.1fr 0.9fr; }
  .hero-orbit{ display:block; }
}
.hero-orbit svg{ width:100%; height:auto; overflow:visible; }

.orbit-ring{
  fill:none;
  stroke:var(--line);
  stroke-width:1;
}
.orbit-ring--dashed{
  stroke:var(--accent);
  stroke-width:1.5;
  stroke-dasharray:4 10;
  opacity:.55;
  transform-origin:200px 200px;
  animation:spin 40s linear infinite;
}
@keyframes spin{ to{ transform:rotate(360deg); } }

.orbit-line{
  stroke:var(--line);
  stroke-width:1;
}

.orbit-hub circle{
  fill:var(--surface);
  stroke:var(--accent);
  stroke-width:2;
}
.orbit-hub text{
  fill:var(--text);
  font-family:var(--font-display);
  font-weight:700;
  font-size:26px;
}

.orbit-node{ cursor:default; }
.orbit-node circle{
  fill:var(--surface);
  stroke:var(--line);
  stroke-width:1.5;
  transition:stroke .2s ease, fill .2s ease;
}
.orbit-node text{
  fill:var(--text-dim);
  font-family:var(--font-mono);
  font-weight:700;
  font-size:15px;
  transition:fill .2s ease;
}
.orbit-node:hover circle{ fill:var(--surface-2); }
.orbit-node[data-store="amazon"]:hover circle{ stroke:var(--amazon); }
.orbit-node[data-store="amazon"]:hover text{ fill:var(--amazon); }
.orbit-node[data-store="mercadolivre"]:hover circle{ stroke:var(--mercadolivre); }
.orbit-node[data-store="mercadolivre"]:hover text{ fill:var(--mercadolivre); }
.orbit-node[data-store="shopee"]:hover circle{ stroke:var(--shopee); }
.orbit-node[data-store="shopee"]:hover text{ fill:var(--shopee); }
.orbit-node[data-store="magalu"]:hover circle{ stroke:var(--magalu); }
.orbit-node[data-store="magalu"]:hover text{ fill:var(--magalu); }
.orbit-node[data-store="hotmart"]:hover circle{ stroke:var(--hotmart); }
.orbit-node[data-store="hotmart"]:hover text{ fill:var(--hotmart); }

/* ===================== OFERTAS ===================== */
.offers{ padding:8px 0 72px; }
.offers-head{
  display:flex;
  flex-direction:column;
  gap:4px;
  margin-bottom:22px;
}
.offers-head h2{ font-size:26px; margin:0; }
.offers-sub{
  margin:0;
  font-size:14px;
  color:var(--text-faint);
}

/* barra de lojas parceiras — também funciona como filtro */
.store-bar{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-bottom:32px;
  padding-bottom:2px;
}
.store-pill{
  display:flex;
  align-items:center;
  justify-content:center;
  height:56px;
  padding:0 22px;
  border-radius:14px;
  border:1px solid rgba(18,22,43,0.08);
  background:#F5F6FA; /* fixo — os logos das lojas foram feitos para fundo claro */
  cursor:pointer;
  transition:transform .15s ease, border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.store-pill:hover{
  transform:translateY(-2px);
  box-shadow:0 10px 24px -14px rgba(var(--accent-rgb),.6);
}
.store-pill img{
  height:32px;
  width:auto;
  max-width:104px;
  object-fit:contain;
  display:block;
}
.store-pill.is-active{
  border-color:var(--accent);
  box-shadow:0 0 0 2px rgba(var(--accent-rgb),.35);
}

.store-pill--all{
  background:var(--surface);
  border-color:var(--line);
}
.store-pill-label{
  font-family:var(--font-body);
  font-weight:700;
  font-size:14px;
  color:var(--text-dim);
}
.store-pill--all.is-active{
  background:var(--accent);
  border-color:var(--accent);
  box-shadow:none;
}
.store-pill--all.is-active .store-pill-label{ color:var(--accent-contrast); }

@media (max-width:640px){
  .store-bar{
    flex-wrap:nowrap;
    overflow-x:auto;
    overflow-y:hidden;      /* impede o corte vertical indesejado */
    padding-top:6px;        /* dá folga pro topo do botão não ficar colado na borda */
    padding-bottom:8px;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:thin;
  }
  .store-pill{ flex:0 0 auto; height:52px; padding:0 18px; }
}

.grid{
  display:grid;
  grid-template-columns:1fr;
  gap:20px;
}
@media (min-width:560px){
  .grid{ grid-template-columns:repeat(2, 1fr); }
}
@media (min-width:900px){
  .grid{ grid-template-columns:repeat(3, 1fr); }
}
@media (min-width:1180px){
  .grid{ grid-template-columns:repeat(4, 1fr); }
}

.card{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  overflow:hidden;
  display:flex;
  flex-direction:column;
  transition:transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.card:hover{
  border-color:rgba(var(--accent-rgb),.4);
  box-shadow:0 16px 32px -18px rgba(0,0,0,.45);
  transform:translateY(-3px);
}

.card-media{
  position:relative;
  aspect-ratio:4/3;
  background:var(--bg-alt);
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}
.card-media img{ width:100%; height:100%; object-fit:cover; }
.card-media .placeholder{
  font-family:var(--font-mono);
  font-weight:700;
  font-size:14px;
  color:var(--text-faint);
  letter-spacing:.05em;
}

.card-store-badge{
  position:absolute;
  top:10px;
  left:10px;
  display:flex;
  align-items:center;
  height:26px;
  padding:0 10px;
  border-radius:999px;
  background:#FFFFFF;
  box-shadow:0 4px 12px -4px rgba(0,0,0,.35);
}
.card-store-badge img{
  height:16px;
  width:auto;
  max-width:72px;
  object-fit:contain;
  display:block;
}

.card-tag{
  position:absolute;
  top:10px;
  right:10px;
  padding:4px 10px;
  border-radius:999px;
  background:var(--accent-2);
  color:#fff;
  font-size:12px;
  font-weight:700;
}

.card-body{
  padding:16px 16px 18px;
  display:flex;
  flex-direction:column;
  gap:10px;
  flex:1;
}
.card-title{
  font-size:14.5px;
  font-weight:600;
  color:var(--text);
  margin:0;
  line-height:1.35;
}
.card-prices{
  display:flex;
  align-items:baseline;
  gap:8px;
  margin-top:auto;
}
.price-old{
  font-family:var(--font-mono);
  font-size:12.5px;
  color:var(--text-faint);
  text-decoration:line-through;
}
.price-now{
  font-family:var(--font-mono);
  font-size:19px;
  font-weight:700;
  color:var(--accent);
}
.card-cta{
  margin-top:6px;
  display:inline-flex;
  justify-content:center;
  align-items:center;
  gap:6px;
  padding:10px 14px;
  border-radius:var(--radius-sm);
  background:var(--surface-2);
  color:var(--text);
  text-decoration:none;
  font-weight:600;
  font-size:13.5px;
  transition:background .15s ease;
}
.card-cta:hover{ background:var(--accent); color:var(--accent-contrast); }

.empty-state{
  text-align:center;
  padding:40px 0;
  color:var(--text-faint);
}

/* ===================== SOBRE ===================== */
.about{ padding:16px 0 64px; }
.about-inner{
  display:grid;
  grid-template-columns:1fr;
  gap:16px;
}
@media (min-width:760px){
  .about-inner{ grid-template-columns:repeat(3, 1fr); }
}
.about-card{
  position:relative;
  background:var(--bg-alt);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:26px 24px 24px;
  overflow:hidden;
}
.about-card::before{
  content:"";
  position:absolute;
  top:0; left:0; right:0;
  height:2px;
  background:linear-gradient(90deg, var(--accent), var(--accent-2));
  opacity:.85;
}
.about-step{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:32px; height:32px;
  border-radius:50%;
  background:var(--surface-2);
  color:var(--accent);
  font-family:var(--font-mono);
  font-weight:700;
  margin-bottom:14px;
}
.about-card h3{ font-size:17px; margin-bottom:8px; }
.about-card p{ font-size:14px; margin:0; }

/* ===================== DISCLOSURE ===================== */
.disclosure{
  padding:20px 0;
  background:var(--bg-alt);
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}
.disclosure p{
  margin:0;
  font-size:13px;
  color:var(--text-faint);
  max-width:80ch;
}
.disclosure strong{ color:var(--text-dim); }

/* ===================== FOOTER ===================== */
.site-footer{ padding:44px 0 32px; }
.footer-inner{
  display:grid;
  grid-template-columns:1fr;
  gap:24px;
}
@media (min-width:760px){
  .footer-inner{
    grid-template-columns:1.3fr 1fr 1fr;
    align-items:start;
  }
}
.footer-brand p{ font-size:13.5px; max-width:32ch; }
.footer-nav{ display:flex; flex-direction:column; gap:10px; }
.footer-nav a{ text-decoration:none; color:var(--text-dim); font-size:14px; }
.footer-nav a:hover{ color:var(--text); }
.footer-legal{
  font-size:12px;
  color:var(--text-faint);
  max-width:42ch;
}
