/* =========================================================
   BASE.CSS — compartilhado por todas as páginas do site
   (variáveis, reset, header, rodapé, botões, seção de
   confiança e os blocos de avaliação repetidos em mais
   de uma página). Cada página tem seu próprio arquivo
   além deste (index.css, rastreio.css, avaliacoes.css,
   pedidoaprovado.css, backredirect.css).
   ========================================================= */

:root{
  --black:#17181c;
  --near-black:#26282e;
  --white:#ffffff;
  --gray-50:#f7f7f9;
  --gray-100:#eef0f3;
  --gray-200:#dfe2e8;
  --gray-400:#9aa0ab;
  --gray-500:#6b7280;
  --gray-600:#4b4f58;

  --brand:#123c47;        /* teal escuro (header/promo/destaques) */
  --brand-dark:#0c2b33;
  --brand-tint:#e7eef0;

  --gold:#c9982f;         /* badge "mais vendida" */
  --gold-dark:#a97e23;

  --green:#16a34a;        /* botão comprar */
  --green-dark:#0f8a3d;
  --green-tint:#eafbf1;

  --red:#e0342a;

  --radius:10px;
  --shadow:0 2px 10px rgba(23,24,28,.06);
  --shadow-lg:0 12px 32px rgba(23,24,28,.16);
  --font-head:'Barlow Condensed',sans-serif;
  --font-body:'Inter',sans-serif;
}

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0;min-width:0;-webkit-tap-highlight-color:transparent}
html{scroll-behavior:smooth;overflow-x:hidden;width:100%}
body{
  font-family:var(--font-body);
  color:var(--black);
  background:var(--white);
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
  width:100%;
}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
button{font-family:inherit;cursor:pointer;border:none;background:none;color:inherit;-webkit-appearance:none;appearance:none}
ul{list-style:none}
h1,h2,h3,h4{font-family:var(--font-head);font-weight:800;letter-spacing:.2px;line-height:1.1}

.container{width:100%;max-width:1180px;margin:0 auto;padding:0 16px}

/* ============ Promo bar ============ */
.promo-bar{
  background:var(--brand);
  color:var(--white);
  text-align:center;
  font-size:11.5px;
  font-weight:700;
  padding:9px 10px;
  letter-spacing:.2px;
}
.promo-bar span{color:#ffd54a;font-variant-numeric:tabular-nums}

/* ============ Header ============ */
.site-header{
  position:sticky;top:0;z-index:50;
  background:var(--white);
  border-bottom:1px solid var(--gray-200);
}
.header-inner{
  position:relative;
  display:flex;align-items:center;justify-content:space-between;
  height:64px;gap:10px;
}
.logo{flex-shrink:0}
.logo img{height:44px;width:auto;display:block}
.main-nav{
  display:none;position:absolute;top:100%;left:0;right:0;
  flex-direction:column;background:var(--white);border-bottom:1px solid var(--gray-200);
  padding:14px 16px;gap:14px;box-shadow:var(--shadow);
}
.main-nav.mobile-open{display:flex}
.main-nav a{
  font-size:14px;font-weight:600;color:var(--gray-600);
  transition:color .15s;
}
.main-nav a:hover{color:var(--brand)}
.header-actions{display:flex;align-items:center;gap:4px}
.icon-btn{
  position:relative;width:36px;height:36px;display:flex;align-items:center;justify-content:center;
  color:var(--black);border-radius:50%;transition:background .15s;
}
.icon-btn:hover{background:var(--gray-100)}
.cart-count{
  position:absolute;top:-2px;right:-2px;background:var(--gold);color:var(--white);
  font-size:10px;font-weight:800;width:16px;height:16px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
}
.menu-toggle{display:flex;align-items:center;justify-content:center;width:36px;height:36px}

/* ============ Breadcrumb ============ */
.breadcrumb{
  font-size:12px;color:var(--gray-500);padding:12px 16px 0;
  display:flex;gap:6px;flex-wrap:wrap;
}
.breadcrumb a:hover{color:var(--black)}

/* ============ Botões e átomos compartilhados ============ */
.buy-btn{
  background:var(--green);color:var(--white);font-weight:700;font-size:16px;
  padding:16px;border-radius:var(--radius);letter-spacing:.4px;transition:.15s;
  box-shadow:var(--shadow);width:100%;
}
.buy-btn:hover{background:var(--green-dark);transform:translateY(-1px)}

.back-link{
  display:inline-flex;align-items:center;gap:6px;
  font-size:13.5px;font-weight:600;color:var(--gray-600);margin-bottom:16px;
  transition:color .15s;
}
.back-link:hover{color:var(--brand)}

.payment-icons{display:flex;flex-wrap:wrap;gap:7px;margin-top:2px}
.payment-icons span{
  border:1px solid var(--gray-200);border-radius:5px;padding:4px 8px;font-size:10.5px;font-weight:700;color:var(--gray-600);
}

.view-all-btn{
  display:block;width:100%;margin:0 auto;background:var(--brand);color:var(--white);
  padding:14px 28px;border-radius:var(--radius);font-weight:700;font-size:13.5px;letter-spacing:.3px;text-align:center;
}
.view-all-btn:hover{background:var(--brand-dark)}
.view-all-btn:disabled{background:var(--gray-200);color:var(--gray-500);cursor:default}

.stars{color:#f5a623;letter-spacing:1px}
.fine-print{font-size:11px;color:var(--gray-500)}

/* ============ Trust icons ============ */
.trust-icons-section{background:var(--brand);color:var(--white);padding:36px 0}
.trust-icons-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px 20px}
.ti-item{display:flex;align-items:flex-start;gap:12px;text-align:left}
.ti-icon{
  width:42px;height:42px;border-radius:50%;flex-shrink:0;
  background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.18);
  display:flex;align-items:center;justify-content:center;color:var(--white);
}
.ti-item h4{font-family:var(--font-body);font-size:13.5px;font-weight:700;margin-bottom:3px;line-height:1.25}
.ti-item p{font-size:11.5px;line-height:1.4;color:rgba(255,255,255,.62)}

/* ============ Footer ============ */
.site-footer{background:var(--gray-50);padding:36px 0 0}
.footer-grid{display:flex;flex-direction:column;gap:28px;padding-bottom:28px}
.footer-col h4{font-family:var(--font-body);font-size:14px;font-weight:700;margin-bottom:10px;margin-top:16px}
.footer-col h4:first-child{margin-top:0}
.footer-col p,.footer-col a{display:block;font-size:13px;color:var(--gray-600);margin-bottom:8px}
.footer-col a:hover{color:var(--brand);text-decoration:underline}
.newsletter-form{display:flex;flex-direction:column;gap:8px;margin-top:4px}
.newsletter-form input{
  padding:10px 12px;border:1.5px solid var(--gray-200);border-radius:8px;font-size:13px;font-family:inherit;
}
.newsletter-form button{
  background:var(--green);color:var(--white);padding:11px 16px;border-radius:8px;font-weight:600;font-size:13px;
}
.footer-disclaimer{border-top:1px solid var(--gray-200);padding:18px 0;font-size:11px;color:var(--gray-500);line-height:1.6}
.footer-bottom{
  border-top:1px solid var(--gray-200);padding:18px 16px 24px;
  display:flex;flex-direction:column;align-items:flex-start;gap:12px;font-size:12px;color:var(--gray-500);
}
.secure-tags{font-weight:600}

/* ============ Blocos de avaliação reutilizados
   (aparecem no index.html e no avaliacoes.html) ============ */
.reviews-subtitle{font-size:14.5px;font-weight:700;text-align:center;color:var(--gray-600);margin-bottom:14px}

.video-carousel{display:flex;align-items:center;gap:8px;margin-bottom:28px}
.video-testimonials{
  display:flex;gap:14px;flex:1;overflow-x:auto;scroll-snap-type:x mandatory;
  scroll-behavior:smooth;padding:4px 2px 10px;-webkit-overflow-scrolling:touch;
}
.video-testimonials::-webkit-scrollbar{height:6px}
.video-testimonials::-webkit-scrollbar-thumb{background:var(--gray-200);border-radius:10px}
.video-card{
  position:relative;flex:0 0 72%;scroll-snap-align:center;border-radius:var(--radius);
  overflow:hidden;box-shadow:var(--shadow);background:#000;cursor:pointer;aspect-ratio:9/16;
}
.video-card video{width:100%;height:100%;object-fit:cover;display:block;pointer-events:none}
.video-play-btn{
  position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:56px;height:56px;
  border-radius:50%;background:rgba(23,24,28,.55);color:var(--white);display:flex;
  align-items:center;justify-content:center;font-size:20px;transition:transform .15s;
}
.video-card:hover .video-play-btn{transform:translate(-50%,-50%) scale(1.08)}
.vc-arrow{
  flex:0 0 auto;width:38px;height:38px;border-radius:50%;border:1px solid var(--gray-200);
  background:var(--white);color:var(--near-black);font-size:20px;line-height:1;cursor:pointer;
  display:flex;align-items:center;justify-content:center;box-shadow:var(--shadow);
}
.vc-arrow:hover{background:var(--gray-50)}

.video-lightbox{display:none;position:fixed;inset:0;background:rgba(0,0,0,.92);z-index:1000;align-items:center;justify-content:center}
.video-lightbox.open{display:flex}
.video-lightbox video{max-width:min(92vw,480px);max-height:88vh;border-radius:8px;background:#000}
.vl-close,.vl-arrow{
  position:absolute;border:none;background:rgba(255,255,255,.12);color:var(--white);cursor:pointer;
  border-radius:50%;display:flex;align-items:center;justify-content:center;
}
.vl-close:hover,.vl-arrow:hover{background:rgba(255,255,255,.22)}
.vl-close{top:18px;right:18px;width:40px;height:40px;font-size:18px}
.vl-arrow{top:50%;transform:translateY(-50%);width:48px;height:48px;font-size:26px}
.vl-prev{left:14px}
.vl-next{right:14px}
@media (min-width:600px){.vl-prev{left:32px}.vl-next{right:32px}}
body.lightbox-open{overflow:hidden}

.rating-summary{
  display:flex;flex-direction:column;gap:22px;align-items:center;justify-content:center;
  background:var(--white);border-radius:var(--radius);padding:22px;box-shadow:var(--shadow);margin-bottom:26px;
}
.rating-score{display:flex;flex-direction:column;align-items:center;gap:4px;text-align:center}
.score-number{font-family:var(--font-head);font-size:44px;font-weight:800}
.sold-check{font-size:12px;color:var(--green-dark);font-weight:600;margin-top:4px}
.rating-bars{display:flex;flex-direction:column;gap:6px;width:100%;max-width:260px}
.bar-row{display:flex;align-items:center;gap:10px;font-size:12px}
.bar-row>span:first-child{width:8px}
.bar-row>span:last-child{width:30px;text-align:right;color:var(--gray-500)}
.bar{flex:1;height:7px;background:var(--gray-200);border-radius:6px;overflow:hidden}
.bar>div{height:100%;background:#f5a623}

/* ============ Chrome compartilhado das páginas "standalone"
   (pedidoaprovado.html e backredirect.html) ============ */
.success-header{padding:18px 0;border-bottom:1px solid var(--gray-200)}
.success-header .logo img{height:36px}
.success-footer{border-top:1px solid var(--gray-200);padding:24px 16px;text-align:center;background:var(--gray-50)}
.success-footer p{font-size:13px;color:var(--gray-600);margin-bottom:4px}
.success-footer a{color:var(--brand);font-weight:700;font-size:14px;text-decoration:underline}
.success-footer .fine-print{margin-top:10px;font-size:11px;color:var(--gray-500)}

/* =========================================================
   MOBILE-FIRST BREAKPOINTS (regras acima)
   ========================================================= */

/* ---- >=640px : tablets pequenos ---- */
@media (min-width:640px){
  .container{padding:0 24px}
  .trust-icons-grid{grid-template-columns:repeat(4,1fr)}
  .footer-bottom{flex-direction:row;align-items:center;justify-content:space-between}
  .newsletter-form{flex-direction:row}
  .newsletter-form input{flex:1}
}

/* ---- >=768px : tablets / desktop pequeno ---- */
@media (min-width:768px){
  .promo-bar{font-size:13px;padding:10px 12px}
  .header-inner{height:88px}
  .logo img{height:58px}
  .main-nav{
    display:flex;position:static;flex-direction:row;gap:26px;flex:1;justify-content:center;
    background:none;border:none;box-shadow:none;padding:0;
  }
  .menu-toggle{display:none}
  .breadcrumb{padding:14px 24px 0}

  .video-card{flex-basis:calc((100% - 28px)/3)}
  .rating-summary{flex-direction:row;gap:40px;padding:28px}

  .footer-grid{grid-template-columns:1.3fr 1fr 1fr 1.2fr;padding-bottom:36px}
  .footer-bottom{padding:20px 24px 28px}
}
