/* ================================================================
   Champion Dog Premium — assets/style.css
   Referência: vitrine de marketplace com seções, cards e produto
   Fontes: Montserrat (bold display) + Open Sans (corpo)
   ================================================================ */

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

/* ── RESET & TOKENS ─────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --green:   #3cb815;
  --green-d: #2fa30e;
  --dark:    #061c0a;
  --gold:    #eab44f;
  --blue:    #1a56db;
  --white:   #ffffff;
  --bg:      #f5f5f5;
  --border:  #e5e7eb;
  --txt:     #111827;
  --sub:     #6b7280;
  --card-bg: #ffffff;
  --radius:  10px;
  --shadow:  0 2px 8px rgba(0,0,0,.08);
  --shadow-h: 0 8px 24px rgba(0,0,0,.14);
  --font-d:  'Montserrat', sans-serif;
  --font-b:  'Open Sans', sans-serif;
  --max:     1280px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-b);
  background: var(--bg);
  color: var(--txt);
  font-size: 14px;
  line-height: 1.5;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ── TOP BAR ────────────────────────────────────────────────── */
.topbar {
  background: var(--dark);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-d);
  letter-spacing: .6px;
  text-align: center;
  padding: 8px 16px;
  text-transform: uppercase;
}

.topbar-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.topbar-inner span { opacity: .5; }

/* ── NAVBAR ─────────────────────────────────────────────────── */
.navbar {
  background: var(--white);
  border-bottom: 2px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 6px rgba(0,0,0,.06);
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 24px;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-logo img { height: 44px; }

.nav-logo-txt {
  font-family: var(--font-d);
  font-weight: 900;
  font-size: 1.25rem;
  color: var(--dark);
  line-height: 1;
  letter-spacing: -.3px;
}

.nav-logo-txt span { color: var(--green); }

/* Nav links (seções) */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-links::-webkit-scrollbar { display: none; }

.nav-links a {
  white-space: nowrap;
  font-family: var(--font-d);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .4px;
  color: var(--sub);
  padding: 8px 14px;
  border-radius: 6px;
  transition: background .15s, color .15s;
}

.nav-links a:hover { background: var(--bg); color: var(--dark); }

/* Nav actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-actions a {
  font-family: var(--font-d);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .4px;
  padding: 8px 16px;
  border-radius: 6px;
  transition: .2s;
}

.btn-wa-nav {
  background: #25d366;
  color: #fff !important;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-wa-nav:hover { background: #1ebe5d; }
.btn-wa-nav svg { width: 15px; height: 15px; }

/* ── BANNERS / SLIDER ────────────────────────────────────────── */
.banner-wrap {
  width: 100%;
  background: var(--dark);
  position: relative;
  overflow: hidden;
}

.banner-track {
  position: relative;
  width: 100%;
  height: 420px;
  overflow: hidden;
  background: var(--dark);
}

.banner-slide {
  display: none;
  position: absolute;
  inset: 0;
}

.banner-slide.active {
  display: block;
}

.banner-slide a {
  display: block;
  width: 100%;
  height: 100%;
}

.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Dots */
.banner-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  z-index: 10;
}

.banner-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.35);
  cursor: pointer;
  border: 2px solid rgba(255,255,255,.5);
  transition: background .2s, transform .2s;
  padding: 0;
}

.banner-dot.active {
  background: #fff;
  border-color: #fff;
  transform: scale(1.15);
}

/* Arrows */
.banner-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(4px);
  border: 2px solid rgba(255,255,255,.2);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, transform .2s;
  font-size: 22px;
  font-weight: 900;
  z-index: 10;
  line-height: 1;
}

.banner-arrow:hover {
  background: rgba(0,0,0,.6);
  transform: translateY(-50%) scale(1.08);
}

.banner-arrow.prev { left: 18px; }
.banner-arrow.next { right: 18px; }

/* Grade de banners menores abaixo do slider */
.banners-grade {
  max-width: var(--max);
  margin: 16px auto 0;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.banner-card {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 2/1;
  position: relative;
  cursor: pointer;
}

.banner-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}

.banner-card:hover img { transform: scale(1.03); }

/* ── BARRA DE BENEFÍCIOS DO INDEX ───────────────────────────── */
.benefits-bar {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.benefits-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-right: 1px solid var(--border);
}

.benefit-item:last-child { border-right: none; }

.benefit-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(60,184,21,.1);
}

.benefit-icon img {
  width: 24px; height: 24px;
  object-fit: contain;
}

.benefit-txt strong {
  display: block;
  font-family: var(--font-d);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .3px;
  color: var(--dark);
}

.benefit-txt span {
  font-size: 11px;
  color: var(--sub);
  font-weight: 500;
}

/* ── SEÇÕES ──────────────────────────────────────────────────── */
.secao {
  padding: 36px 20px;
}

.secao:nth-child(even) .sec-inner { }

.sec-inner {
  max-width: var(--max);
  margin: 0 auto;
}

/* Cabeçalho da seção */
.sec-hd {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 16px;
}

.sec-hd-left {}

.sec-hd h2 {
  font-family: var(--font-d);
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--dark);
  letter-spacing: -.2px;
}

.sec-hd-line {
  display: inline-block;
  width: 36px;
  height: 4px;
  background: var(--green);
  border-radius: 2px;
  margin: 6px 0 4px;
}

.sec-hd p {
  font-size: 12px;
  color: var(--sub);
  font-weight: 500;
}

.sec-hd-tag {
  font-family: var(--font-d);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--green);
  background: rgba(60,184,21,.08);
  border: 1px solid rgba(60,184,21,.2);
  padding: 5px 12px;
  border-radius: 20px;
  white-space: nowrap;
}

/* Seção com fundo diferente */
.secao-alt { background: #1a56db; }
.secao-alt .sec-hd h2 { color: #fff; }
.secao-alt .sec-hd p { color: rgba(255,255,255,.7); }
.secao-alt .sec-hd-line { background: var(--gold); }
.secao-alt .sec-hd-tag { color: var(--gold); background: rgba(234,180,79,.1); border-color: rgba(234,180,79,.3); }

/* ── GRID DE CARDS ───────────────────────────────────────────── */
.prod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
}

/* ── CARD PRODUTO ────────────────────────────────────────────── */
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, transform .2s;
  position: relative;
}

.card:hover {
  box-shadow: var(--shadow-h);
  transform: translateY(-3px);
}

.card-img-wrap {
  position: relative;
  background: #fff;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  overflow: hidden;
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .3s ease;
}

.card:hover .card-img-wrap img { transform: scale(1.05); }

.badge {
  position: absolute;
  top: 8px;
  font-family: var(--font-d);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 3px 9px;
  border-radius: 20px;
}

.badge-frete { left: 8px; background: var(--green); color: #fff; }
.badge-novo  { right: 8px; background: var(--gold); color: var(--dark); }

.card-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0;
}

.card-stars {
  color: #f59e0b;
  font-size: 11px;
  letter-spacing: 1px;
  margin-bottom: 5px;
}

.card-name {
  font-family: var(--font-d);
  font-size: 12px;
  font-weight: 700;
  color: var(--txt);
  line-height: 1.35;
  margin-bottom: 10px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-price-wrap { margin-bottom: 10px; }

.card-price {
  font-family: var(--font-d);
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--green);
  line-height: 1;
}

.card-old-price {
  font-size: 11px;
  color: var(--sub);
  text-decoration: line-through;
  margin-bottom: 2px;
}

.card-inst {
  font-size: 11px;
  color: var(--sub);
  font-weight: 500;
  margin-top: 2px;
}

.card-inst strong { color: var(--txt); }

.btn-comprar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--green);
  color: #fff;
  font-family: var(--font-d);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 10px 14px;
  border-radius: 7px;
  transition: background .2s;
  border: none;
  cursor: pointer;
  width: 100%;
  text-align: center;
  text-decoration: none;
}

.btn-comprar:hover { background: var(--green-d); }

.btn-comprar svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* Card vazio */
.sec-empty {
  text-align: center;
  color: var(--sub);
  padding: 40px;
  font-size: 13px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px dashed var(--border);
}

/* ── PÁGINA DE PRODUTO ────────────────────────────────────────── */

/* Nav produto */
.prod-nav {
  background: var(--dark);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.prod-nav-back {
  color: rgba(255,255,255,.75);
  font-family: var(--font-d);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color .15s;
}

.prod-nav-back:hover { color: #fff; }
.prod-nav-back svg { width: 16px; height: 16px; }

.prod-nav-logo {
  font-family: var(--font-d);
  font-size: 1rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -.2px;
}

.prod-nav-logo span { color: var(--gold); }

/* Breadcrumb */
.breadcrumb {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 20px;
  font-size: 11px;
  color: var(--sub);
  display: flex;
  align-items: center;
  gap: 6px;
}

.breadcrumb a { color: var(--sub); }
.breadcrumb a:hover { color: var(--green); }
.breadcrumb .sep { opacity: .4; }

/* Layout produto */
.prod-layout {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

/* Galeria */
.galeria { display: flex; gap: 12px; }

.thumbs-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 76px;
  flex-shrink: 0;
}

.thumb {
  width: 76px;
  height: 76px;
  border: 2px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  padding: 5px;
  background: #fff;
  transition: border-color .15s;
}

.thumb:hover, .thumb.ativo { border-color: var(--green); }

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.img-main {
  flex: 1;
  aspect-ratio: 1;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow: hidden;
}

.img-main img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform .35s ease;
}

.img-main:hover img { transform: scale(1.04); }

/* Conteúdo produto */
.prod-content {}

.prod-badge {
  display: inline-block;
  background: var(--dark);
  color: var(--gold);
  font-family: var(--font-d);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .8px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.prod-nome {
  font-family: var(--font-d);
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -.2px;
}

/* Características */
.chars-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 20px;
}

.char-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 8px 12px;
  font-family: var(--font-d);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .3px;
  color: #333;
}

.char-item svg {
  width: 14px;
  height: 14px;
  color: var(--green);
  flex-shrink: 0;
}

/* Preço produto */
.preco-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 18px;
}

.preco-val {
  font-family: var(--font-d);
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--green);
  letter-spacing: -1px;
  line-height: 1;
}

.preco-inst {
  font-size: 12px;
  color: var(--sub);
  font-weight: 600;
  margin-top: 5px;
}

/* Botão checkout */
.btn-checkout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: var(--green);
  color: #fff;
  font-family: var(--font-d);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 18px 24px;
  border-radius: 9px;
  transition: background .2s, transform .15s;
  margin-bottom: 12px;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.btn-checkout:hover { background: var(--green-d); transform: translateY(-1px); }
.btn-checkout svg { width: 20px; height: 20px; }

.btn-wa-prod {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: #25d366;
  color: #fff;
  font-family: var(--font-d);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 13px 24px;
  border-radius: 9px;
  transition: background .2s;
  text-decoration: none;
}

.btn-wa-prod:hover { background: #1ebe5d; }
.btn-wa-prod svg { width: 17px; height: 17px; }

/* Selos de garantia */
.selos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 16px;
}

.selo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 8px;
  text-align: center;
}

.selo svg { width: 22px; height: 22px; color: var(--green); }

.selo span {
  font-family: var(--font-d);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .3px;
  color: var(--sub);
}

/* ── BARRA DE BENEFÍCIOS (produto) ───────────────────────────── */
.prod-ben-bar {
  background: #fff;
  border-top: 2px solid var(--border);
  border-bottom: 2px solid var(--border);
  margin-bottom: 0;
}

.prod-ben-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
}

.prod-ben-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 16px;
  border-right: 1px solid var(--border);
  transition: background .15s;
}

.prod-ben-item:last-child { border-right: none; }
.prod-ben-item:hover { background: #f9fdf7; }

.prod-ben-icon {
  width: 50px;
  height: 50px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.prod-ben-icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.prod-ben-txt strong {
  display: block;
  font-family: var(--font-d);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .3px;
  color: #111;
}

.prod-ben-txt span {
  font-size: 11px;
  color: var(--sub);
  font-weight: 500;
}

/* ── DESCRIÇÃO ───────────────────────────────────────────────── */
.desc-section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 32px 20px;
}

.desc-section h3 {
  font-family: var(--font-d);
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--dark);
  border-bottom: 3px solid var(--green);
  padding-bottom: 10px;
  margin-bottom: 18px;
  letter-spacing: -.1px;
}

.desc-wrap {
  position: relative;
  overflow: hidden;
  max-height: 200px;
  transition: max-height .45s ease;
}

.desc-wrap.open { max-height: 4000px; }

.desc-txt {
  font-size: 13px;
  color: #444;
  line-height: 1.85;
  white-space: pre-line;
}

.desc-fade {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 70px;
  background: linear-gradient(transparent, #fff);
  pointer-events: none;
  transition: opacity .3s;
}

.desc-wrap.open .desc-fade { opacity: 0; }

.btn-ver-mais {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  background: none;
  border: 2px solid var(--green);
  color: var(--green);
  font-family: var(--font-d);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 8px 18px;
  border-radius: 7px;
  cursor: pointer;
  transition: background .2s, color .2s;
}

.btn-ver-mais:hover { background: var(--green); color: #fff; }

/* ── FOOTER ─────────────────────────────────────────────────── */
footer {
  background: var(--dark);
  color: rgba(255,255,255,.55);
  text-align: center;
  padding: 28px 20px;
  font-size: 11px;
  line-height: 1.9;
  font-family: var(--font-b);
}

footer strong { color: rgba(255,255,255,.9); }

/* ── WA FLOAT ─────────────────────────────────────────────────── */
.wa-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 50px;
  font-family: var(--font-d);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .4px;
  box-shadow: 0 4px 18px rgba(37,211,102,.45);
  z-index: 200;
  transition: transform .2s, background .2s;
  text-decoration: none;
}

.wa-float:hover { background: #1ebe5d; transform: translateY(-2px); }
.wa-float svg { width: 18px; height: 18px; }

/* ── RESPONSIVO ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .prod-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }

  .prod-layout {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 0 16px 32px;
  }

  .galeria { flex-direction: column-reverse; }
  .thumbs-col { flex-direction: row; width: auto; }
  .thumb { width: 60px; height: 60px; }
  .img-main { aspect-ratio: 4/3; }

  .prod-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }

  .benefits-inner { grid-template-columns: repeat(2, 1fr); }

  .chars-grid { grid-template-columns: 1fr; }
  .banner-track { height: 220px; }
  .banners-grade { grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 12px; margin-top: 10px; }
  .topbar-inner { gap: 10px; font-size: 10px; }
}

@media (max-width: 480px) {
  .secao { padding: 24px 14px; }
  .prod-grid { gap: 8px; }
  .card-name { font-size: 11px; }
  .card-price { font-size: 1.15rem; }
  .selos { grid-template-columns: repeat(3, 1fr); }
}
