/* =========================================================
   Base / Theme
   ========================================================= */
:root{
  --bg:        #0a0f1a;
  --panel:     #0f1422;
  --panel-2:   #0b1220;
  --text:      #e9edf5;
  --muted:     #9aa6b2;
  --brand:     #ffd54f;
  --brand-ink: #111315;
  --stroke:    #1d2638;
  --shadow:    0 10px 25px rgba(0,0,0,.35);
  --radius:    14px;
  --radius-sm: 10px;
  --maxw:      1200px;
}

*{ box-sizing: border-box; }
html,body{ height:100%; }
html{ -webkit-tap-highlight-color: transparent; }
body{
  margin:0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.5 system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

img,video{ max-width:100%; display:block; }
a{ color: inherit; text-decoration: none; }
button{ font: inherit; }
input,button{ outline: none; }

.container{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 16px;
}
.muted{ color: var(--muted); }
.hide{ display:none !important; }

/* =========================================================
   Topbar (atalhos)
   ========================================================= */
.topbar{
  background:#0d1321;
  border-bottom:1px solid var(--stroke);
  color:var(--muted);
  font-size:13px;
}
.topbar .container{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  min-height:38px;
}
.topbar__right{
  display:flex; align-items:center; gap:12px; flex-wrap:wrap;
}
.topbar__right a{
  display:inline-flex; align-items:center; gap:8px;
  padding:4px 8px; border-radius:10px; transition:background .15s ease;
}
.topbar__right a:hover{ background: rgba(255,255,255,.06); }
.contact-icon{ width:18px; height:18px; object-fit:contain; }

/* === MOBILE: atalhos só com ícones === */
@media (max-width:560px){
  .topbar .container{ justify-content:center; }
  .topbar__left{ display:none; }
  .topbar__right{ gap:8px; }
  .topbar__right a{
    width:36px; height:36px; padding:0; justify-content:center;
    border:1px solid var(--stroke); background:#111a2a; border-radius:50%;
  }
  .topbar__right a:hover{ background:#17223a; }
  .topbar__right a > span{ display:none; }   /* esconde textos */
  .contact-icon{ width:18px; height:18px; }
}

/* =========================================================
   Header
   ========================================================= */
.header{
  position:sticky; top:0; z-index:40;
  backdrop-filter: saturate(130%) blur(6px);
  background: rgba(10,15,26,.86);
  border-bottom:1px solid var(--stroke);
}
.header__wrap{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  min-height:64px;
}
.brand__logo-img{ height:90px; width:auto; object-fit:contain; }
.nav{ display:flex; align-items:center; gap:18px; flex-wrap:wrap; }
.nav a{
  padding:8px 10px; border-radius:10px; color:#dfe6f3;
  transition: background .15s ease, color .15s ease;
}
.nav a:hover{ background:#12192b; color:#fff; }

/* === MOBILE: esconde menu grande — usamos mini-nav === */
@media (max-width:560px){
  .header__wrap{ min-height:60px; }
  .brand__logo-img{ height:36px; }
  .nav{ display:none; }
}

/* =========================================================
   MINI-NAV (tabs finas para Ofertas/Kits/Como/Contato)
   ========================================================= */
.mini-nav{ display:none; }
@media (max-width:560px){
  .mini-nav{
    position:sticky; top:60px; z-index:39;
    display:flex; gap:8px; overflow:auto;
    padding:8px 12px; background:rgba(10,15,26,.95);
    border-bottom:1px solid var(--stroke);
    -webkit-overflow-scrolling: touch;
  }
  .mini-nav a{
    white-space:nowrap;
    padding:6px 10px;
    border:1px solid var(--stroke);
    border-radius:999px;
    font-size:13px; color:#dfe6f3;
    background:#111a2a;
  }
  .mini-nav a:hover{ background:#17223a; }
}

/* =========================================================
   Hero / Carousel
   ========================================================= */
.hero{ padding: 14px 0 0; }
.hero .container{ position:relative; display:block; }

.hero__carousel{
  position:relative; width:100%;
  border:1px solid var(--stroke); border-radius:var(--radius);
  overflow:hidden; background:#0c1220;
  min-height:260px;
  /* >>> forçar a barra de benefícios a ficar FORA do banner <<< */
  margin-bottom: 14px;              /* <<< ADIÇÃO */
}
.hero__slide{
  width:100%;
  height:420px;
  display:none;
}
.hero__slide.with-bg{ background-size:cover; background-position:center; }

.hero__nav{
  position:absolute; top:50%; transform:translateY(-50%);
  width:42px; height:42px; border-radius:50%;
  display:grid; place-items:center; cursor:pointer; z-index:15;
  border:1px solid var(--stroke); background:rgba(12,18,32,.8); color:#fff;
}
#banner-prev{ left:10px; } #banner-next{ right:10px; }
.hero__nav:hover{ background:#121a2d; }

.hero__bullets{
  position:absolute; left:0; right:0; bottom:10px;
  display:flex; gap:8px; justify-content:center; z-index:15;
}
.hero__bullets .bullet{ width:8px; height:8px; border-radius:50%; background:#6e7a90; opacity:.7; }
.hero__bullets .bullet--active{ background:#cfd7e6; opacity:1; }
/* === Banner SEM corte (todas as larguras) === */
.hero__slide video{
  object-fit: contain !important;
  object-position: center !important;
  background:#000 !important;   /* letterbox elegante */
}
.hero__slide.with-bg{
  background-size: contain !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-color:#000 !important;
}

/* === MOBILE: banner menor e sem corte */
@media (max-width:560px){
  .hero{ padding-top:10px; }
  .hero__slide{ height: clamp(220px, 42vh, 320px); } /* <<< AJUSTE fino */
  .hero__slide > video{ object-fit: contain !important; background:#000; }
  .hero__slide.with-bg{
    background-size: contain !important;
    background-repeat:no-repeat;
    background-position:center;
    background-color:#000;
  }
}
/* === Banner: cobre 100% no desktop, sem sobras === */
.hero__slide,
.hero__slide video,
.hero__slide img{
  width:100%;
  height:100%;
  object-fit: cover;           /* cobre o container */
  object-position: center;
  background:#000;             /* fundo neutro se faltar pixel */
}

/* No mobile mantemos contain (sem corte) como você pediu antes */
@media (max-width:560px){
  .hero__slide video,
  .hero__slide img{
    object-fit: contain;
  }
}

/* =========================================================
   Benefícios (overlay -> barra abaixo)
   ========================================================= */
.hero__benefits{
  position:absolute; inset:auto 16px 16px 16px;
  display:grid; gap:10px; z-index:10;
  grid-template-columns: repeat(4, minmax(0,1fr));
  padding:10px; border-radius:12px;
  background: rgba(10,15,26,.65);
  border:1px solid rgba(255,255,255,.06);
  backdrop-filter: blur(6px);
}

/* Quando a barra é deslocada para fora do banner */
.benefits-below{
  position:static !important;      /* <<< REFORÇO para sair do overlay */
  inset:auto !important;
  margin:12px 0 0 0 !important;
  background:var(--panel-2) !important;
  border:1px solid var(--stroke) !important;
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  z-index: 1;                      /* garante empilhamento neutro */
}

.benefit{ display:flex; gap:10px; align-items:flex-start; }
.benefit__icon{ font-size:20px; line-height:1; }
.benefit__title{ font-weight:800; letter-spacing:.3px; }
.benefit__text{ color:var(--muted); font-size:13px; }

@media (max-width:560px){
  .hero__benefits{ grid-template-columns:1fr 1fr; inset:auto 10px 10px 10px; padding:8px; }
}
@media (min-width:561px) and (max-width:980px){
  .hero__benefits{ grid-template-columns:repeat(3, minmax(0,1fr)); }
}

/* =========================================================
   Seções
   ========================================================= */
.section{ padding:22px 0; }
.section__head{ margin-bottom:10px; }
.section__head h2{ margin:0 0 6px; font-size:26px; }
.section__head p{ margin:0; color:var(--muted); }
@media (max-width:560px){
  .section{ padding:18px 0; }
  .section__head h2{ font-size:22px; }
}

/* =========================================================
   Filtros / Busca
   ========================================================= */
.filters{
  display:flex; gap:10px; align-items:center; flex-wrap:wrap; margin:10px 0 4px;
}
.filters__search{
  height:48px;
  padding:0 14px;
  font-size:16px;
  background:#fff;
  color:#0b1220;
  border-radius:12px;
  border:1px solid #d9dfeb;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.06);
  min-width: clamp(280px, 60vw, 640px);
}
.filters__search::placeholder{ color:#6b7483; }
.filters .btn{ height:48px; }
@media (max-width:560px){
  .filters__search{ height:44px; font-size:15px; min-width:100%; }
  .filters .btn{ height:44px; }
}

/* =========================================================
   Carousel (Ofertas / Kits)
   ========================================================= */
.carousel{ position:relative; }
.carousel__track{
  display:grid; grid-auto-flow:column; grid-auto-columns:100%;
  gap:16px; overflow:auto; scroll-snap-type:x mandatory; padding:3px;
  border-radius:var(--radius); scrollbar-width:none; -ms-overflow-style:none;
}
.carousel__track::-webkit-scrollbar{ display:none; }
.carousel__track > *{ scroll-snap-align:start; }

.carousel__nav{
  position:absolute; top:50%; transform:translateY(-50%);
  width:38px; height:38px; border-radius:50%; display:grid; place-items:center;
  border:1px solid var(--stroke); background:rgba(12,18,32,.85); color:#fff; z-index:5;
}
.carousel__nav--prev{ left:0; } .carousel__nav--next{ right:0; }

@media (min-width:561px) and (max-width:680px){
  .carousel__track{ grid-auto-columns: calc((100% - 24px)/2); }
}
@media (min-width:681px){
  .carousel__track{ grid-auto-columns: calc((100% - 1148px)/3); }
}

/* =========================================================
   Card
   ========================================================= */
.card{
  background:var(--panel-2);
  border:1px solid var(--stroke);
  border-radius:var(--radius);
  overflow:hidden;
  display:flex; flex-direction:column; min-width:0;
  box-shadow:var(--shadow);
}
.card__img{
  width:100%; background:#fff; border-bottom:1px solid var(--stroke);
  aspect-ratio:1/1; display:flex; align-items:center; justify-content:center; padding:12px;
}
.card__img img{ width:100%; height:100%; object-fit:contain; object-position:center; }
.card__body{ padding:12px; display:grid; gap:8px; }
.card__brand{ color:#c8d3e8; font-size:12px; text-transform:uppercase; font-weight:700; letter-spacing:.4px; }
.card__title{ font-size:16px; line-height:1.3; margin:0; }
.card__sku{ font-size:12px; color:var(--muted); }

.price{ display:flex; align-items:baseline; gap:10px; }
/* >>> ALTERADO: preço em verde claro */
.price__now{ font-size:20px; font-weight:800; color:#77e89f; }
.price__old{ text-decoration:line-through; color:var(--muted); }

.qty{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.stepper{ display:inline-flex; align-items:center; gap:6px; border:1px solid var(--stroke); border-radius:10px; overflow:hidden; background:#0e1320; }
.stepper__btn{ background:transparent; color:#e9edf5; border:0; cursor:pointer; padding:8px 10px; min-width:44px; }
.stepper input[type="number"]{ width:84px; text-align:center; color:#fff; background:transparent; border:0; padding:10px 6px; }

.badge--off{
  display:inline-flex; align-items:center; justify-content:center;
  background:var(--brand); color:var(--brand-ink); padding:4px 8px;
  border-radius:999px; font-weight:800; font-size:12px; border:1px solid rgba(0,0,0,.2);
}
.card__actions{ display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-top:4px; }

/* Botões */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  height:40px; padding:0 14px; border-radius:10px;
  border:1px solid var(--stroke); background:#12192b; color:#fff; cursor:pointer;
  transition: transform .08s ease, background .15s ease, border-color .15s ease;
}
.btn:hover{ background:#18223a; border-color:#293553; }
.btn:active{ transform:translateY(1px); }
.btn--solid{ background:var(--brand); color:var(--brand-ink); border-color:#e6c342; }
.btn--solid:hover{ filter:brightness(1.02); }
.btn--ghost{ background:transparent; color:#dfe6f3; }

/* >>> NOVO: “Adicionar ao carrinho” com fundo branco (produtos e kits) */
.card__actions .btn[data-role="add-cart"],
.card__actions .btn[data-role="k-add-cart"]{
  background:#ffffff; color:#0a0a0a; border-color:#e7e7e7;
}
.card__actions .btn[data-role="add-cart"]:hover,
.card__actions .btn[data-role="k-add-cart"]:hover{
  background:#f5f7fb; border-color:#d8dce6;
}

/* =========================================================
   Tiers
   ========================================================= */
.tiers{ display:grid; gap:12px; grid-template-columns: repeat(auto-fill,minmax(220px,1fr)); }
.tier{ background:var(--panel-2); border:1px solid var(--stroke); border-radius:12px; padding:12px; }
.tier h4{ margin:0 0 6px; font-size:16px; }
.tier .desc{ margin:0; color:var(--muted); }

/* =========================================================
   CTA
   ========================================================= */
.cta{ padding:24px 0; }
.cta__wrap{
  background:linear-gradient(180deg, #10182a 0%, #0e1424 100%);
  border:1px solid var(--stroke); border-radius:var(--radius);
  padding:16px; display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap;
}
@media (max-width:560px){ .cta__wrap{ flex-direction:column; align-items:flex-start; } }

/* =========================================================
   Footer
   ========================================================= */
.footer{ border-top:1px solid var(--stroke); background:#0b111e; padding:18px 0; }
.footer__wrap{ display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; }
.footer__right{ display:flex; gap:12px; flex-wrap:wrap; }
.footer__right a{ padding:6px 10px; border:1px solid var(--stroke); border-radius:10px; color:#dfe6f3; background:#11182a; }
.footer__right a:hover{ background:#17223a; }

/* =========================================================
   FAB WhatsApp
   ========================================================= */
.wa-fab{
  position:fixed; right:18px; bottom:18px;
  width:56px; height:56px; border-radius:50%;
  display:grid; place-items:center; background:#1f2a44; border:1px solid var(--stroke);
  box-shadow:var(--shadow); z-index:90;
}
.wa-fab img{ width:28px; height:28px; }

/* =========================================================
   Acessibilidade
   ========================================================= */
:focus-visible{ outline:2px solid #7fc3ff; outline-offset:2px; }
/* --- Benefícios FORA do banner --- */
.hero__carousel{               /* dá um respiro entre banner e a barra */
  margin-bottom: 16px;
}
.benefits-below{               /* estilo quando estiver fora do banner */
  position: static !important;
  inset: auto !important;
  margin: 12px 0 0 !important;
  background: var(--panel-2) !important;
  border: 1px solid var(--stroke) !important;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  z-index: 1;
}
/* ---------- MOBILE-ONLY TWEAKS ---------- */
@media (max-width:560px){
  /* esconder a topbar, pois os ícones vão p/ o header */
  .topbar{ display:none !important; }

  /* logo + ícones lado a lado */
  .header__wrap{ gap:10px; min-height:60px; }
  .brand__logo-img{ height:38px; }

  /* container que receberá os ícones no header (injetado via JS) */
  .header__icons{
    margin-left:auto;
    display:flex; align-items:center; gap:8px;
  }
  .header__icons a{
    width:34px; height:34px; display:inline-grid; place-items:center;
    border-radius:50%; border:1px solid var(--stroke);
    background:#111a2a;
  }
  .header__icons a:hover{ background:#17223a; }
  .header__icons img{ width:16px; height:16px; }
  .header__icons a span{ display:none !important; } /* só ícones no mobile */

  /* banner mais baixo (melhor enquadramento) */
  .hero__carousel{ min-height:180px; }
  .hero__slide{ height: clamp(160px, 36vh, 260px) !important; }

  /* blog com cards menores */
  #blog .blog__grid{
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
    gap:12px !important;
  }
  #blog .card{ box-shadow:none; }
  #blog .card__body{ padding:10px; }
}
/* ===== Blog (MOBILE) — 2 colunas menores com espaço ===== */
@media (max-width:560px){
  #blog .blog__grid{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important; /* 2 colunas */
    gap: 12px !important;                                        /* espaço entre cards */
  }
  #blog .card{
    width: auto !important;       /* desfaz largura fixa do inline style */
    box-shadow: none;
  }
  #blog .card .card__img{ aspect-ratio: 1 / 1; } /* mantém quadrado */
  #blog .card .btn{ height: 36px; font-size: .85rem; }
}
/* ================================
   1) "Comprar agora" / "Adquirir agora" em AZUL
   (não mexe nas outras .btn--solid)
   ================================ */
.btn.btn--solid[data-role="cta-wa"],
.btn.btn--solid[data-role="k-wa"],
#cta-whatsapp.btn--solid {
  background:#3b82f6;          /* azul */
  border-color:#2f6fd6;
  color:#fff;
}
.btn.btn--solid[data-role="cta-wa"]:hover,
.btn.btn--solid[data-role="k-wa"]:hover,
#cta-whatsapp.btn--solid:hover {
  background:#2f6fd6;
  border-color:#255dc0;
}
.btn.btn--solid[data-role="cta-wa"]:active,
.btn.btn--solid[data-role="k-wa"]:active,
#cta-whatsapp.btn--solid:active {
  transform: translateY(1px);
}

/* ================================
   2) "Como funcionam os descontos" pulsando
   (aplicado nos cards .tier de forma suave)
   ================================ */
/* === Pulsar nos cards de desconto === */
@keyframes pulseTile {
  0%, 100% {
    box-shadow: 0 0 0 rgba(88,175,255,0);
    border-color: rgba(129,184,255,.25);
    transform: translateZ(0) scale(1);
  }
  50% {
    box-shadow: 0 0 26px rgba(88,175,255,.36), inset 0 0 16px rgba(88,175,255,.18);
    border-color: rgba(129,184,255,.7);
    transform: translateZ(0) scale(1.015);
  }
}
#tiers-grid .tier.is-pulsing{
  animation: pulseTile 2.2s ease-in-out infinite;
}


/* Respeita acessibilidade: desliga animação pra quem prefere menos movimento */
@media (prefers-reduced-motion: reduce) {
  .tiers .tier { animation: none !important; }
}
/* ===== Descontos pulsando (Como funcionam os descontos) ===== */
@keyframes tierPulseGlow {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(59,130,246,0.18);
    border-color: rgba(59,130,246,0.28);
  }
  50% {
    transform: scale(1.03);
    box-shadow: 0 0 24px 4px rgba(59,130,246,0.35);
    border-color: rgba(59,130,246,0.55);
  }
}

/* anel suave “respirando” */
@keyframes tierPulseRing {
  0%   { opacity:.38; transform: scale(1);    }
  70%  { opacity:0;   transform: scale(1.12); }
  100% { opacity:0;   transform: scale(1.12); }
}

.tiers .tier{
  position: relative;
  animation: tierPulseGlow 2.4s ease-in-out infinite;
}

/* anel externo */
.tiers .tier::after{
  content:"";
  position:absolute; inset:-3px;
  border-radius:12px;
  border:2px solid rgba(59,130,246,.35);
  pointer-events:none;
  animation: tierPulseRing 2.4s ease-out infinite;
}

/* pequeno desfasamento pra não pulsarem exatamente juntos */
.tiers .tier:nth-child(2){ animation-delay:.2s; }
.tiers .tier:nth-child(2)::after{ animation-delay:.2s; }
.tiers .tier:nth-child(3){ animation-delay:.4s; }
.tiers .tier:nth-child(3)::after{ animation-delay:.4s; }
.tiers .tier:nth-child(4){ animation-delay:.6s; }
.tiers .tier:nth-child(4)::after{ animation-delay:.6s; }

/* acessibilidade: desliga animação pra quem prefere menos movimento */
@media (prefers-reduced-motion: reduce){
  .tiers .tier,
  .tiers .tier::after{ animation: none !important; }
}
/* ====== PULSO VISÍVEL NOS CARTÕES DE DESCONTO ====== */
/* brilho azul atrás do cartão + leve “respirar” no próprio cartão */
@keyframes tierPulseScale {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(59,130,246,0.18);
    border-color: rgba(59,130,246,0.32);
  }
  50% {
    transform: scale(1.045);
    box-shadow: 0 0 34px 6px rgba(59,130,246,0.48);
    border-color: rgba(59,130,246,0.62);
  }
}

@keyframes tierPulseGlow {
  0%, 100% { opacity: .14; }
  50%      { opacity: .46; }
}

/* aplica a animação em cada .tier */
.tiers .tier{
  position: relative;
  will-change: transform, box-shadow;
  animation: tierPulseScale 2.2s ease-in-out infinite;
  transform-origin: center;
  overflow: visible; /* garante que o brilho não seja cortado */
}

/* halo azulado por trás do cartão */
.tiers .tier::before{
  content: "";
  position: absolute; inset: -8px;
  border-radius: 16px;
  background: radial-gradient(closest-side,
              rgba(59,130,246,.35) 0%,
              rgba(59,130,246,0) 70%);
  filter: blur(12px);
  pointer-events: none;
  z-index: -1;             /* fica atrás do cartão */
  animation: tierPulseGlow 2.2s ease-in-out infinite;
}

/* defasagem para pulso em “onda” */
.tiers .tier:nth-child(2){ animation-delay:.2s; }
.tiers .tier:nth-child(2)::before{ animation-delay:.2s; }
.tiers .tier:nth-child(3){ animation-delay:.4s; }
.tiers .tier:nth-child(3)::before{ animation-delay:.4s; }
.tiers .tier:nth-child(4){ animation-delay:.6s; }
.tiers .tier:nth-child(4)::before{ animation-delay:.6s; }

/* acessibilidade — desliga animações se o usuário pedir menos movimento */
@media (prefers-reduced-motion: reduce){
  .tiers .tier,
  .tiers .tier::before{ animation: none !important; }
}
#tiers-grid .tier.is-pulsing:hover { animation-play-state: paused; }
/* pulso nos descontos */
@keyframes pulseGlow {
  0%   { box-shadow: 0 0 0 0 rgba(45,92,255,.38); }
  70%  { box-shadow: 0 0 0 14px rgba(45,92,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(45,92,255,0); }
}
#tiers-grid .tier.is-pulsing{
  animation: pulseGlow 2.4s ease-out infinite;
  border-color:#2d5cff;
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(45,92,255,.12), transparent 60%),
    var(--panel-2);
}
/* Esconde a barra horizontal e evita reservar altura */
#carousel-track,
#kits-track{
  overflow-y: hidden !important;
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
  scrollbar-width: none;        /* Firefox */
}

#carousel-track::-webkit-scrollbar,
#kits-track  ::-webkit-scrollbar{
  height: 0;                    /* Chrome/Edge/Safari */
}
