/* ============================================================
   Landing "Comprou Dobrou" — o que não cabe em utilitário.
   Cores via tokens de theme.css (--color-bb-*).
   ============================================================ */

@media (max-width: 990px) {
  .product-card-price .text-sm,
  .product-card-price .text-sm * { font-size: 11px !important; }
}

/* ============================================================
   Parent site overrides
   ============================================================ */
html, body { margin: 0; }
#barraNewsletter { margin: 0 !important; }
#corpo { padding: 0 !important; margin: 0 !important; }
.caixa-sombreada,
.caixa-sombreada > div { box-shadow: none !important; border: none !important; }

/* ============================================================
   Base reset
   ============================================================ */
#bb-cd {
  overflow: visible;
  box-sizing: border-box;
}
#bb-cd *, #bb-cd *::before, #bb-cd *::after { box-sizing: inherit; }

/* ============================================================
   Fade-in (IntersectionObserver adiciona .visible via JS)
   ============================================================ */
#bb-cd .fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
}
#bb-cd .fade-in.visible { opacity: 1; transform: none; }

@media (max-width: 767px) {
  #bb-cd .fade-in { transform: translateY(16px); }
}
@media (prefers-reduced-motion: reduce) {
  #bb-cd .fade-in { opacity: 1; transform: none; transition: none; }
}

#floating-buy-button {
  border: 0;
  background: transparent;
  border-radius: 0;
  width: 100%;
  bottom: 0;
}

/* ============================================================
   Hero - imagem de fundo via variavel Liquid (CSS var)
   ============================================================ */
#bb-cd .bb-hero--img {
  background-image:
    linear-gradient(rgb(from var(--color-bb-preto) r g b / .78), rgb(from var(--color-bb-preto) r g b / .78)),
    var(--hero-img);
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

/* ============================================================
   Comparativo - proporcoes customizadas
   ============================================================ */
#bb-cd .bb-compare-grid {
  display: grid;
  /* minmax(0, …): sem isso a coluna não encolhe abaixo do texto e a tabela estoura no mobile */
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.25fr);
}
#bb-cd .bb-compare-grid > * { overflow-wrap: anywhere; hyphens: auto; }
@media (max-width: 640px) {
  #bb-cd .bb-compare-grid > [role="cell"] { font-size: 12px; padding: .7rem .6rem; }
}

/* ============================================================
   Density Cards (composicao) — escala de mordida da marca
   ============================================================ */
#bb-cd .bb-density-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
  margin-bottom: 2.5rem;
}
#bb-cd .bb-density-card {
  --dens: var(--color-bb-mordida-moderado);
  border-radius: 22px;
  padding: 1.4rem 1.25rem 1.4rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  position: relative;
  overflow: hidden;
  background: var(--color-base-100);
  transition: transform .2s ease, box-shadow .2s ease;
}
#bb-cd .bb-density-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-m);
}
#bb-cd .bb-dens--mod  { --dens: var(--color-bb-mordida-moderado); }
#bb-cd .bb-dens--str  { --dens: var(--color-bb-mordida-forte); }
#bb-cd .bb-dens--xstr { --dens: var(--color-bb-mordida-extraforte); }
/* Barra de acento esquerda */
#bb-cd .bb-dens-accent {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 6px;
  background: var(--dens);
}
#bb-cd .bb-dens-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
#bb-cd .bb-dens-top .dp-dot {
  font-size: 1.3rem;
  line-height: 1;
  width: 2.8rem; height: 2.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--dens);
  color: var(--color-bb-preto);
}
/* Barras de intensidade */
#bb-cd .bb-dens-bars { display: flex; gap: 4px; align-items: flex-end; }
#bb-cd .bb-dens-b { width: 9px; border-radius: 4px; background: rgb(from var(--color-bb-preto) r g b / .12); }
#bb-cd .bb-dens-b:nth-child(1) { height: 12px; }
#bb-cd .bb-dens-b:nth-child(2) { height: 18px; }
#bb-cd .bb-dens-b:nth-child(3) { height: 24px; }
#bb-cd .bb-dens-b.active { background: var(--color-bb-preto); }
/* Labels */
#bb-cd .bb-density-card .dp-label {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .95rem;
  text-transform: uppercase;
  color: var(--color-bb-preto);
  letter-spacing: .04em;
}
#bb-cd .bb-density-card .dp-desc {
  font-size: .8rem;
  color: rgb(from var(--color-bb-preto) r g b / .72);
  line-height: 1.6;
}
@media (max-width: 560px) {
  #bb-cd .bb-density-row { grid-template-columns: 1fr; }
}
