/* ============================================================================
   BANNERS PRO · estilo profissional para os blocos do _banner-bloco.ejs
   ========================================================================== */

/* ---------- TOPBAR ---------- */
.bn-topbar {
  position: relative;
  width: 100%;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.3;
  z-index: 50;
}
.bn-topbar-slide {
  display: none;
  padding: 9px 0;
  text-align: center;
}
.bn-topbar-slide.ativo { display: block; }
.bn-topbar-slide .container {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  flex-wrap: wrap;
}
.bn-topbar-selo {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.bn-topbar-msg { font-weight: 600; }
.bn-topbar-msg small { opacity: 0.85; font-weight: 500; }
.bn-topbar-cta {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  color: inherit;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: background .2s;
}
.bn-topbar-cta:hover { background: rgba(255,255,255,0.32); }

/* ---------- BLOCO DE BANNER ---------- */
.bn-bloco {
  position: relative;
  margin: 32px 0;
  overflow: hidden;
}
.bn-bloco.bn-pos-categoria_topo,
.bn-bloco.bn-pos-carrinho_topo,
.bn-bloco.bn-pos-checkout_topo {
  margin: 0 0 24px;
}

.bn-track { position: relative; width: 100%; }

.bn-slide {
  position: relative;
  width: 100%;
  display: none;
  background-size: cover;
  background-position: center;
  background-color: #1a1a1f;
  overflow: hidden;
}
.bn-slide.ativo { display: block; }

/* Quando há só 1 slide, mostra sempre */
.bn-bloco:not(:has(.bn-track)) .bn-slide,
.bn-bloco .bn-slide:only-child { display: block; }

.bn-media-img,
.bn-video,
.bn-video-frame {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
}
.bn-media-img {
  background-size: cover;
  background-position: center;
}
.bn-video, .bn-video-frame { border: 0; }

/* Overlay */
.bn-overlay {
  position: absolute; inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* Content layer */
.bn-content {
  position: relative; z-index: 2;
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  padding: 32px 24px;
  box-sizing: border-box;
}
.bn-content-inner {
  display: flex; flex-direction: column; gap: 12px;
  width: 100%;
}

/* Alinhamento horizontal */
.bn-h-esquerda { align-items: flex-start; text-align: left; }
.bn-h-centro   { align-items: center;     text-align: center; }
.bn-h-direita  { align-items: flex-end;   text-align: right; }
.bn-content.bn-h-esquerda .bn-content-inner { margin-right: auto; }
.bn-content.bn-h-direita  .bn-content-inner { margin-left: auto; }
.bn-content.bn-h-centro   .bn-content-inner { margin-left: auto; margin-right: auto; }

/* Posição vertical */
.bn-v-topo   { justify-content: flex-start; }
.bn-v-centro { justify-content: center; }
.bn-v-baixo  { justify-content: flex-end; }

/* Container interno respeita o site (max-width 1240px) */
.bn-content {
  max-width: 1240px;
  margin: 0 auto;
  left: 0; right: 0;
  position: absolute; inset: 0;
  padding-left: 32px; padding-right: 32px;
}
@media (max-width: 720px) {
  .bn-content { padding: 20px 16px; }
  .bn-titulo  { font-size: 26px !important; }
}

/* Selo */
.bn-selo {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  width: fit-content;
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
}

/* Título / subtítulo */
.bn-titulo {
  font-size: clamp(28px, 4.4vw, 56px);
  line-height: 1.08;
  font-weight: 900;
  margin: 0;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 16px rgba(0,0,0,0.25);
}
.bn-subtitulo {
  font-size: clamp(14px, 1.4vw, 18px);
  line-height: 1.5;
  margin: 0;
  opacity: 0.95;
  text-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

/* Botões */
.bn-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}
.bn-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}
.bn-cta:hover { transform: translateY(-2px); }

.bn-cta-primario {
  background: #c8102e;
  color: #fff;
  border: 2px solid #c8102e;
  box-shadow: 0 8px 20px rgba(200,16,46,0.32);
}
.bn-cta-primario:hover { box-shadow: 0 12px 28px rgba(200,16,46,0.42); }

.bn-cta-branco {
  background: #fff;
  color: #0a0a0a;
  border: 2px solid #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
}

.bn-cta-contorno {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}
.bn-cta-contorno:hover {
  background: #fff; color: #0a0a0a;
}

.bn-cta-ghost {
  background: transparent;
  color: inherit;
  border: none;
  border-bottom: 2px solid currentColor;
  border-radius: 0;
  padding: 8px 0;
}
.bn-cta-ghost:hover { opacity: 0.75; }

/* Arrows + dots do carrossel */
.bn-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  background: rgba(255,255,255,0.92);
  color: #0a0a0a;
  border: none;
  width: 44px; height: 44px;
  border-radius: 999px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
  transition: background .2s, transform .2s;
}
.bn-arrow:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.bn-arrow.prev { left: 16px; }
.bn-arrow.next { right: 16px; }

.bn-dots {
  position: absolute;
  bottom: 16px; left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex; gap: 8px;
}
.bn-dot {
  width: 10px; height: 10px;
  border-radius: 999px;
  border: 2px solid #fff;
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background .2s, transform .2s;
}
.bn-dot.ativo { background: #fff; transform: scale(1.15); }

/* Animações da mídia (KenBurns / Fade / Slide / Parallax) */
.bn-anim-zoom {
  animation: bnZoom 24s ease-out infinite alternate;
}
@keyframes bnZoom {
  from { transform: scale(1); }
  to   { transform: scale(1.12); }
}
.bn-anim-fade { animation: bnFade 1.2s ease-out both; }
@keyframes bnFade { from { opacity: 0; } to { opacity: 1; } }

.bn-anim-slide { animation: bnSlide 1s cubic-bezier(.4,0,.2,1) both; }
@keyframes bnSlide {
  from { transform: translateX(40px); opacity: 0; }
  to   { transform: translateX(0);   opacity: 1; }
}

.bn-anim-parallax { will-change: transform; }
