/* ═══════════════════════════════════════════
   ROGUE XPRESS — Base / Design System
   Paleta: #C38F2A (dourado predominante)
           #163154 (azul escuro)
   ═══════════════════════════════════════════ */

:root {
  --gold: #C38F2A;
  --gold-light: #DCA940;
  --gold-dark: #9E7118;
  --gold-soft: #FBF4E4;
  --navy: #163154;
  --navy-dark: #0E2138;
  --navy-light: #23477A;
  --text: #1B2733;
  --text-muted: #63707E;
  --bg: #FFFFFF;
  --bg-alt: #F7F8FA;
  --border: #E6E9EE;
  --green: #1FA84E;
  --red: #D93B3B;
  --max: 1120px;
  --radius: 12px;
  --shadow: 0 4px 18px rgba(22, 49, 84, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }

body {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  overflow-x: hidden;
  max-width: 100vw;
}

/* Trava de responsividade: itens de grid/flex nunca forçam a página
   a ficar mais larga que a tela (blowout de min-content) */
.product-hero > *, .hero__inner > *, .products-grid > *,
.site-footer__inner > *, .featured > *, .feature-grid > *,
.reviews-list > *, .why-grid > *, .home-reviews > * { min-width: 0; }

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font-family: inherit; }

/* Campo de formulário no celular: abaixo de 16px o iOS dá zoom sozinho ao
   focar e não volta, deixando a página torta. Precisa de !important porque
   as telas definem o tamanho em seletores mais específicos — é contorno de
   comportamento do aparelho, não escolha de design. No desktop nada muda. */
@media (max-width: 768px) {
  input, select, textarea { font-size: 16px !important; }
}

/* ── TOP BANNER (marquee) ── */
.top-banner {
  background: var(--navy);
  color: #fff;
  overflow: hidden;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
}
.top-banner__scroll {
  display: inline-flex;
  gap: 48px;
  padding: 8px 0;
  animation: bannerScroll 26s linear infinite;
}
.top-banner__scroll span { display: inline-flex; align-items: center; gap: 6px; }
.top-banner__scroll b { color: var(--gold-light); }
@keyframes bannerScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ── HEADER ── */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 900;
}
.site-header__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  min-height: 58px;
}
.site-header__logo { display: flex; align-items: center; }
.site-header__logo img { height: 36px; width: auto; }
.site-header__nav { display: none; align-items: center; gap: 26px; }
.site-header__nav a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  transition: color 0.15s;
}
.site-header__nav a:hover { color: var(--gold); }

.site-header__actions { display: flex; align-items: center; gap: 6px; }
.header-icon {
  position: relative;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  color: var(--navy);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.header-icon:hover { background: var(--bg-alt); color: var(--gold); }
.header-icon svg { width: 21px; height: 21px; }
.header-icon .cart-dot {
  position: absolute;
  top: 5px; right: 5px;
  width: 8px; height: 8px;
  background: var(--gold);
  border: 1.5px solid #fff;
  border-radius: 50%;
}

.menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--navy);
  padding: 6px;
  display: flex;
}
.menu-toggle svg { width: 24px; height: 24px; }

/* Mobile: hambúrguer à esquerda, logo centralizada, ícones à direita */
@media (max-width: 899px) {
  .menu-toggle {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
  }
  .site-header__logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
  .site-header__logo img { height: 32px; }
  .site-header__actions {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
  }
  .header-icon { width: 36px; height: 36px; }
  .header-icon svg { width: 20px; height: 20px; }
}
@media (min-width: 900px) {
  .site-header__nav { display: flex; }
  .menu-toggle { display: none; }
}

/* ── SIDE MENU (mobile) ── */
.side-menu-overlay {
  position: fixed; inset: 0;
  background: rgba(14, 33, 56, 0.55);
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s;
  z-index: 1000;
}
.side-menu-overlay.open { opacity: 1; pointer-events: auto; }
.side-menu {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: min(320px, 85vw);
  background: #fff;
  z-index: 1001;
  transform: translateX(-105%);
  transition: transform 0.28s ease;
  display: flex; flex-direction: column;
  box-shadow: 8px 0 30px rgba(0,0,0,0.15);
}
.side-menu.open { transform: translateX(0); }
.side-menu__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid var(--border);
}
.side-menu__header img { height: 32px; width: auto; }
.side-menu__close {
  background: none; border: none; font-size: 26px;
  color: var(--text-muted); cursor: pointer; line-height: 1;
}
.side-menu__body { padding: 18px 16px; overflow-y: auto; }
.side-menu__section-title {
  font-size: 11px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 1px; color: var(--gold); margin-bottom: 10px;
}
.side-menu__nav { display: flex; flex-direction: column; }
.side-menu__link {
  text-decoration: none;
  padding: 11px 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  border-bottom: 1px solid var(--bg-alt);
}
.side-menu__link:active { color: var(--gold); }
.side-menu__divider { height: 1px; background: var(--border); margin: 18px 0; }
.side-menu__support p { font-size: 13px; color: var(--text-muted); margin-bottom: 6px; }
.side-menu__support a { color: var(--navy); font-weight: 600; }

/* ── BOTÕES ──
   Padrão único do projeto: gradiente dourado, cantos 12px,
   texto maiúsculo 900, sempre centralizados no container */
.buy-btn {
  display: block;
  margin: 0 auto;
  width: 100%;
  max-width: 420px;
  padding: 16px 24px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold) 45%, var(--gold-light));
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 1px;
  cursor: pointer;
  text-transform: uppercase;
  box-shadow: 0 6px 18px rgba(195, 143, 42, 0.4);
  transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
  animation: btnPulse 2.2s ease-in-out infinite;
}
.buy-btn:hover { transform: translateY(-2px); filter: brightness(1.05); box-shadow: 0 8px 24px rgba(195, 143, 42, 0.5); }
@keyframes btnPulse {
  0%, 100% { box-shadow: 0 6px 18px rgba(195, 143, 42, 0.4); }
  50% { box-shadow: 0 6px 26px rgba(195, 143, 42, 0.65); }
}
.btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px;
  background: transparent;
  border: 2px solid var(--navy);
  color: var(--navy);
  border-radius: var(--radius);
  font-size: 14px; font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.btn-outline:hover { background: var(--navy); color: #fff; }

/* ── SEÇÕES ── */
.section { padding: 48px 16px; }
.section__inner { max-width: var(--max); margin: 0 auto; }
.section--alt { background: var(--bg-alt); }
.section--navy { background: linear-gradient(170deg, var(--navy), var(--navy-dark)); color: #fff; }
.section-title {
  font-size: clamp(22px, 3.6vw, 32px);
  font-weight: 900;
  text-align: center;
  line-height: 1.25;
  margin-bottom: 10px;
}
.section-subtitle {
  font-size: 15px;
  color: var(--text-muted);
  text-align: center;
  max-width: 640px;
  margin: 0 auto 32px;
}
.section--navy .section-subtitle { color: rgba(255,255,255,0.72); }
.gold { color: var(--gold); }

/* ── TRUST STRIP ── */
/* Sempre 4 selos lado a lado — no mobile eles só ficam mais compactos */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 26px 16px;
}
.trust-item {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 4px;
  padding: 18px 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.trust-label { font-size: 14px; font-weight: 800; color: var(--navy); margin-top: 6px; }
.trust-sublabel { font-size: 12px; color: var(--text-muted); }
@media (max-width: 759px) {
  .trust-strip { gap: 8px; padding: 20px 12px; }
  .trust-item { padding: 12px 4px; gap: 2px; }
  .trust-item svg { width: 22px; height: 22px; }
  .trust-label { font-size: 11px; margin-top: 4px; }
  .trust-sublabel { font-size: 9.5px; }
}

/* ── STICKY CTA (mobile) ──
   Sem fundo: só o botão flutua sobre a página. Por isso a barra
   não intercepta clique nenhum — só o botão dentro dela. */
.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: transparent;
  border-top: none;
  pointer-events: none;
  transform: translateY(110%);
  transition: transform 0.3s ease;
  z-index: 800;
}
.sticky-cta.visible { transform: translateY(0); }
.sticky-cta .buy-btn {
  padding: 14px; font-size: 15px; animation: none;
  pointer-events: auto;
  /* sombra própria, já que não existe mais a faixa branca por trás */
  box-shadow: 0 6px 22px rgba(14, 33, 56, 0.28);
}

/* ── FOOTER ── */
.site-footer {
  background: linear-gradient(180deg, var(--navy), var(--navy-dark));
  color: rgba(255,255,255,0.82);
  padding: 48px 16px 26px;
  margin-top: 0;
}
.site-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
}
@media (min-width: 820px) {
  .site-footer__inner { grid-template-columns: 1.4fr 1fr 1fr; }
}
/* Mobile: rodapé todo centralizado */
@media (max-width: 819px) {
  .site-footer__inner { text-align: center; justify-items: center; }
  .site-footer__logo img { margin-left: auto; margin-right: auto; }
}
.site-footer__logo img { height: 42px; width: auto; margin-bottom: 14px; }
.site-footer__about { font-size: 13px; line-height: 1.7; color: rgba(255,255,255,0.65); }
.site-footer h4 {
  font-size: 12px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 1.2px; color: var(--gold-light); margin-bottom: 14px;
}
.site-footer__nav { display: flex; flex-direction: column; gap: 9px; }
.site-footer__nav a {
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  font-size: 13.5px;
  transition: color 0.15s;
}
.site-footer__nav a:hover { color: var(--gold-light); }
.site-footer__contact p { font-size: 13.5px; margin-bottom: 8px; color: rgba(255,255,255,0.82); }
.site-footer__contact a { color: #fff; font-weight: 600; }
.footer-payments { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.footer-payments img {
  height: 26px; width: auto;
  background: #fff; border-radius: 5px; padding: 3px 6px;
}
.site-footer__divider {
  height: 1px;
  background: rgba(255,255,255,0.12);
  max-width: var(--max);
  margin: 32px auto 20px;
}
.site-footer__bottom {
  max-width: var(--max);
  margin: 0 auto;
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  line-height: 1.8;
}
.site-footer__bottom a { color: rgba(255,255,255,0.7); }

/* ── SELO SEGURANÇA ── */
.secure-note {
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 8px;
  display: flex; align-items: center; justify-content: center; gap: 5px;
}

/* ── REVEAL ── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── BADGES ── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 800;
  padding: 5px 10px;
  border-radius: 999px;
  letter-spacing: 0.3px;
}
.badge--gold { background: var(--gold-soft); color: var(--gold-dark); border: 1px solid #EBD9AC; }
.badge--green { background: #E8F8EE; color: var(--green); border: 1px solid #BFEACD; }
.badge--navy { background: #E9EFF7; color: var(--navy); border: 1px solid #C9D8EA; }

/* ── PÁGINAS DE POLÍTICA ── */
.policy-body {
  padding: 32px 16px 64px;
  max-width: 820px;
  margin: 0 auto;
}
.policy-body h1 { font-size: 26px; font-weight: 900; margin-bottom: 20px; color: var(--navy); }
.policy-body h2 { font-size: 17px; font-weight: 800; margin: 24px 0 8px; color: var(--navy); }
.policy-body p, .policy-body li { font-size: 14.5px; color: var(--text-muted); line-height: 1.75; margin-bottom: 10px; }
.policy-body ul { padding-left: 20px; }
.policy-body a { color: var(--gold-dark); font-weight: 600; }
.policy-back {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--navy); font-size: 14px; font-weight: 700;
  margin-bottom: 22px; text-decoration: none;
}
.policy-back:hover { color: var(--gold); }

/* ── CARRINHO LATERAL ── */
.cart-overlay {
  position: fixed; inset: 0;
  background: rgba(14, 33, 56, 0.55);
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s;
  z-index: 1100;
}
.cart-overlay.open { opacity: 1; pointer-events: auto; }
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(400px, 92vw);
  background: #fff;
  z-index: 1101;
  transform: translateX(105%);
  transition: transform 0.28s ease;
  display: flex; flex-direction: column;
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.18);
}
.cart-drawer.open { transform: translateX(0); }
.cart-drawer__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid var(--border);
}
.cart-drawer__title {
  display: flex; align-items: center; gap: 8px;
  font-size: 16px; font-weight: 900; color: var(--navy);
}
.cart-drawer__title .cart-count {
  background: var(--gold); color: #fff;
  font-size: 11px; font-weight: 900;
  min-width: 20px; height: 20px;
  border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 6px;
}
.cart-drawer__close {
  background: none; border: none;
  font-size: 26px; line-height: 1;
  color: var(--text-muted);
  cursor: pointer; padding: 4px;
}
.cart-drawer__body { flex: 1; overflow-y: auto; padding: 16px; }
.cart-item {
  display: flex; gap: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
}
.cart-item__img {
  width: 76px; height: 76px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: #fff;
  overflow: hidden;
  flex-shrink: 0;
}
.cart-item__img img { width: 100%; height: 100%; object-fit: contain; }
.cart-item__name {
  font-size: 12.5px; font-weight: 700; color: var(--text);
  line-height: 1.35;
  text-decoration: none;
  display: block;
}
.cart-item__name:hover { color: var(--gold-dark); }
.cart-item__prices { display: flex; align-items: baseline; gap: 7px; margin-top: 5px; }
.cart-item__old { font-size: 11.5px; color: var(--text-muted); text-decoration: line-through; }
.cart-item__price { font-size: 15px; font-weight: 900; color: var(--navy); }
.cart-item__qty { font-size: 11.5px; color: var(--text-muted); margin-top: 3px; }
.cart-freeship {
  display: flex; align-items: center; gap: 8px;
  background: var(--gold-soft);
  border: 1px dashed var(--gold);
  color: var(--gold-dark);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12px; font-weight: 600;
  margin-top: 12px;
}
.cart-drawer__footer {
  border-top: 1px solid var(--border);
  padding: 16px;
}
.cart-subtotal {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px;
}
.cart-subtotal span { font-size: 14px; font-weight: 700; color: var(--text-muted); }
.cart-subtotal b { font-size: 19px; font-weight: 900; color: var(--navy); }
.cart-continue {
  display: block;
  text-align: center;
  margin-top: 10px;
  font-size: 13px; font-weight: 700;
  color: var(--text-muted);
  text-decoration: none;
  cursor: pointer;
}
.cart-continue:hover { color: var(--gold-dark); }
.cart-drawer__footer .buy-btn { animation: none; max-width: none; }
