/**
 * Promo 2x1 Outlet.
 *
 * Usa las variables del tema (base.css) con fallback, para que la promo siga
 * el diseno kitsune aunque el plugin se cargue sin el tema.
 */

/* Barra de anuncio ------------------------------------------------------- */

.tvfvc-promo-bar {
  position: relative;
  z-index: 60;
  background: linear-gradient(135deg, var(--kitsune-red, #c8102e), var(--ember, #ff4444));
  color: var(--white, #fff);
  font-family: var(--font-body, "Inter", sans-serif);
  font-size: 0.9rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.tvfvc-promo-bar[hidden] {
  display: none;
}

.tvfvc-promo-bar__inner {
  max-width: var(--container-max, 1280px);
  margin: 0 auto;
  padding: 0.6rem 2.75rem 0.6rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tvfvc-promo-bar__tag {
  font-family: var(--font-accent, "Orbitron", sans-serif);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm, 4px);
  background: rgba(0, 0, 0, 0.28);
}

.tvfvc-promo-bar__text {
  font-weight: 600;
}

.tvfvc-promo-bar__cta {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}

.tvfvc-promo-bar__cta:hover,
.tvfvc-promo-bar__cta:focus {
  opacity: 0.85;
}

.tvfvc-promo-bar__terms {
  font-size: 0.78rem;
  opacity: 0.85;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.tvfvc-promo-bar__close {
  position: absolute;
  top: 50%;
  right: 0.85rem;
  transform: translateY(-50%);
  background: none;
  border: 0;
  color: inherit;
  font-size: 1.35rem;
  line-height: 1;
  padding: 0 0.25rem;
  cursor: pointer;
  opacity: 0.75;
}

.tvfvc-promo-bar__close:hover,
.tvfvc-promo-bar__close:focus {
  opacity: 1;
}

@media (max-width: 600px) {
  .tvfvc-promo-bar__inner {
    font-size: 0.82rem;
    gap: 0.5rem;
    padding-right: 2.4rem;
  }

  .tvfvc-promo-bar__terms {
    display: none;
  }
}

/* Avisos de ficha y carrito ---------------------------------------------- */

.tvfvc-promo-note {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 1.25rem 0;
  padding: 0.9rem 1.1rem;
  border: 1px solid rgba(200, 16, 46, 0.45);
  border-left: 3px solid var(--kitsune-red, #c8102e);
  border-radius: var(--radius-md, 8px);
  background: rgba(200, 16, 46, 0.08);
  color: var(--ghost, #e8e8e8);
  font-family: var(--font-body, "Inter", sans-serif);
  font-size: 0.92rem;
  line-height: 1.5;
}

.tvfvc-promo-note p {
  margin: 0;
}

.tvfvc-promo-note strong {
  color: var(--white, #fff);
}

.tvfvc-promo-note a {
  color: var(--ember, #ff4444);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.tvfvc-promo-note a:hover,
.tvfvc-promo-note a:focus {
  color: var(--white, #fff);
}

.tvfvc-promo-note__tag {
  flex: 0 0 auto;
  font-family: var(--font-accent, "Orbitron", sans-serif);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.24rem 0.5rem;
  border-radius: var(--radius-sm, 4px);
  background: linear-gradient(135deg, var(--kitsune-red, #c8102e), var(--ember, #ff4444));
  color: var(--white, #fff);
}

/* Cuando falta una unidad para la siguiente gratis, el aviso pide accion. */
.tvfvc-promo-note--nudge {
  border-color: rgba(255, 68, 68, 0.7);
  background: rgba(255, 68, 68, 0.13);
  box-shadow: var(--shadow-glow, 0 0 15px rgba(200, 16, 46, 0.4));
}

/* Badge en tarjetas de producto ------------------------------------------ */

.badge-tag.promo-2x1 {
  position: relative;
  font-family: var(--font-accent, "Orbitron", sans-serif);
  letter-spacing: 0.06em;
  padding: 0.34rem 0.72rem;
  border-radius: var(--radius-sm, 4px);
  background: linear-gradient(135deg, #1c1c1e, var(--kitsune-red, #c8102e));
  color: var(--white, #fff);
  box-shadow: 0 8px 18px rgba(200, 16, 46, 0.4);
}

/* Reserva el hueco de la barra en la fila de totales del carrito. */
.tvfvc-promo-note--cart {
  margin-bottom: 1.5rem;
}

@media (prefers-reduced-motion: reduce) {
  .tvfvc-promo-note--nudge {
    box-shadow: none;
  }
}
