/* =============================================
   BRUNIMPORTS — Estilos Globais
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;600;700;800;900&family=Inter:wght@400;500;600&display=swap');

/* Variáveis */
:root {
  --amarelo: #FFB800;
  --amarelo-hover: #e6a600;
  --preto: #0a0a0a;
  --superficie: #111111;
  --card: #1a1a1a;
  --borda: #222222;
  --borda-clara: #333333;
  --texto: #ffffff;
  --texto-sec: #aaaaaa;
  --verde-desconto: #4ade80;
  --fundo-desconto: #1a3300;
  --whatsapp: #25D366;
  --radius: 10px;
  --radius-lg: 14px;
}

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

html {
  background: #050505;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--preto);
  color: var(--texto);
  font-size: 14px;
  line-height: 1.6;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 0 0 1px var(--borda);
}

h1, h2, h3, h4 {
  font-family: 'Barlow', sans-serif;
  font-weight: 800;
}

a { text-decoration: none; color: inherit; }

img { max-width: 100%; height: auto; }

/* ---- Top Bar ---- */
.topbar {
  background: var(--amarelo);
  color: #000;
  padding: 8px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
  font-family: 'Barlow', sans-serif;
}
.topbar-btn {
  background: #000;
  color: var(--amarelo);
  border: none;
  padding: 4px 14px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  font-family: 'Barlow', sans-serif;
  letter-spacing: 0.5px;
}

/* ---- Header ---- */
.header {
  background: var(--superficie);
  border-bottom: 1px solid var(--borda);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--amarelo);
  object-fit: cover;
}
.logo-nome {
  font-family: 'Barlow', sans-serif;
  font-weight: 900;
  font-size: 18px;
  color: var(--amarelo);
  letter-spacing: 1px;
}
.logo-nome span { color: #fff; }

/* ---- Navegação Desktop ---- */
.nav-desktop { display: flex; gap: 24px; align-items: center; }
.nav-desktop a {
  color: var(--texto-sec);
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-desktop a:hover,
.nav-desktop a.ativo { color: var(--amarelo); }

/* ---- Botão WhatsApp ---- */
.btn-wa {
  background: var(--whatsapp);
  color: #fff;
  border: none;
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Barlow', sans-serif;
}

/* ---- Botão CTA Principal ---- */
.btn-cta {
  background: var(--amarelo);
  color: #000;
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Barlow', sans-serif;
  letter-spacing: 0.3px;
  transition: background 0.2s;
  display: inline-block;
  text-align: center;
}
.btn-cta:hover { background: var(--amarelo-hover); }
.btn-cta-full { width: 100%; }

/* ---- Seção ---- */
.section { padding: 24px 20px; }
.section-dark { background: #0d0d0d; }
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.section-titulo {
  font-family: 'Barlow', sans-serif;
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-titulo::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 18px;
  background: var(--amarelo);
  border-radius: 2px;
}
.ver-todos {
  color: var(--amarelo);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

/* ---- Badge de Desconto ---- */
.badge-desc {
  background: var(--amarelo);
  color: #000;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  font-family: 'Barlow', sans-serif;
}
.badge-categoria {
  background: #1a1500;
  color: var(--amarelo);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 6px;
  font-family: 'Barlow', sans-serif;
}

/* ---- Card de Oferta ---- */
.card-oferta {
  background: var(--card);
  border: 1px solid var(--borda);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s;
}
.card-oferta:hover { border-color: var(--amarelo); }
.card-oferta-img {
  background: #222;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.card-oferta-img img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.card-oferta-badge {
  position: absolute;
  top: 8px;
  left: 8px;
}
.card-oferta-info { padding: 10px 12px; }
.card-oferta-nome {
  font-size: 12px;
  font-weight: 600;
  color: #ddd;
  margin-bottom: 3px;
  line-height: 1.3;
}
.card-oferta-loja { font-size: 11px; color: #666; margin-bottom: 4px; }
.card-oferta-preco-antigo { font-size: 11px; color: #555; text-decoration: line-through; }
.card-oferta-preco {
  font-family: 'Barlow', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--amarelo);
  margin: 2px 0 8px;
}

/* ---- Marquee ---- */
.marquee-bar {
  background: var(--superficie);
  border-top: 1px solid var(--borda);
  border-bottom: 1px solid var(--borda);
  padding: 9px 0;
  overflow: hidden;
}
.marquee-inner {
  display: flex;
  gap: 24px;
  animation: marquee 20s linear infinite;
  white-space: nowrap;
  width: max-content;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #888;
}
.marquee-item i { color: var(--amarelo); font-size: 13px; }
.marquee-sep { color: #333; }

/* ---- Share Button ---- */
.share-btn {
  width: 34px;
  height: 34px;
  background: var(--card);
  border: 1px solid var(--borda-clara);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  transition: border-color 0.2s;
}
.share-btn:hover { border-color: var(--amarelo); }
.share-btn i { font-size: 16px; color: #888; transition: color 0.2s; }
.share-btn:hover i { color: var(--amarelo); }
.share-btn::after {
  content: 'Compartilhar';
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: #222;
  color: #fff;
  font-size: 10px;
  font-family: 'Inter', sans-serif;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
}
.share-btn:hover::after { opacity: 1; }

/* ---- Bottom Nav (Mobile) ---- */
.bottom-nav {
  display: none;
  background: var(--superficie);
  border-top: 1px solid var(--borda);
  padding: 10px 0 8px;
  position: sticky;
  bottom: 0;
  z-index: 100;
}
.bottom-nav-inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
}
.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  text-decoration: none;
}
.bottom-nav-item i { font-size: 22px; color: #666; }
.bottom-nav-item span { font-size: 10px; color: #666; }
.bottom-nav-item.ativo i,
.bottom-nav-item.ativo span { color: var(--amarelo); }

/* ---- Footer ---- */
.footer {
  background: #0d0d0d;
  border-top: 1px solid var(--borda);
  padding: 28px 20px 16px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.footer-col h4 {
  font-family: 'Barlow', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--amarelo);
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}
.footer-col a {
  display: block;
  font-size: 12px;
  color: #666;
  margin-bottom: 6px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--amarelo); }
.footer-social { display: flex; gap: 8px; margin-top: 12px; }
.footer-social a {
  width: 32px;
  height: 32px;
  background: var(--card);
  border: 1px solid var(--borda-clara);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-social a i { font-size: 16px; color: #888; }
.footer-bottom {
  border-top: 1px solid var(--borda);
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-legal { font-size: 11px; color: #444; }
.footer-afiliado { font-size: 11px; color: #444; font-style: italic; max-width: 380px; text-align: right; }

/* ====================================
   RESPONSIVO — MOBILE FIRST
   ==================================== */
@media (max-width: 768px) {
  .header { padding: 0 14px; height: 52px; }
  .nav-desktop { display: none; }
  .btn-wa { display: none; }
  .bottom-nav { display: block; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-afiliado { text-align: left; }

  .topbar { font-size: 11px; padding: 7px 12px; }
  .section { padding: 18px 14px; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
