/* =========================================
   NAVIDAD · PRECIOS EN ETIQUETA ROJA
   Se carga desde el bloque "PRECIOS NAVIDAD" de fscustomhtml (home, categorías y fichas).
   Como la etiqueta negra de Black Friday (blackfriday.css), en rojo de la campaña.
   La cuenta atrás la hace precios-navidad.js.
   ========================================= */

/* Etiqueta roja con el troquelado de sello de la campaña (mismas perforaciones que el botón
   "Pídetelo por Navidad", más finas): --h radio de cada perforación, --s separación */
.js-product-price span.price.h4:not(.small),
body#product .js-product-price .price-amount.h3.d-block.current-price {
  --h: 3px;
  --s: 10px;
  background-color: #B42A22;
  color: #fff;
  padding: 6px 18px;
  border-radius: 0;
  transform: skewX(-10deg);
  -webkit-mask:
    radial-gradient(var(--h) at 50% 0, #0000 97%, #000) 0 0 / var(--s) 100% round no-repeat,
    radial-gradient(var(--h) at 50% 100%, #0000 97%, #000) 0 0 / var(--s) 100% round no-repeat,
    radial-gradient(var(--h) at 0 50%, #0000 97%, #000) 0 0 / 100% var(--s) no-repeat round,
    radial-gradient(var(--h) at 100% 50%, #0000 97%, #000) 0 0 / 100% var(--s) no-repeat round;
  -webkit-mask-composite: source-in;
  mask:
    radial-gradient(var(--h) at 50% 0, #0000 97%, #000) 0 0 / var(--s) 100% round no-repeat,
    radial-gradient(var(--h) at 50% 100%, #0000 97%, #000) 0 0 / var(--s) 100% round no-repeat,
    radial-gradient(var(--h) at 0 50%, #0000 97%, #000) 0 0 / 100% var(--s) no-repeat round,
    radial-gradient(var(--h) at 100% 50%, #0000 97%, #000) 0 0 / 100% var(--s) no-repeat round;
  mask-composite: intersect;
}

/* Ficha: precio grande, perforaciones algo mayores */
body#product .js-product-price .price-amount.h3.d-block.current-price {
  --h: 4px;
  --s: 13px;
  padding: 8px 22px;
}

.js-product-price span.price.h4:not(.small) {
  font-size: 1.25em;
}

/* Flag de descuento ("-15% DTO"): del azul del tema (#0079BD) al rojo de la campaña.
   Se mantiene la píldora, como la flag "+ Regalo" */
.badge.badge-discount {
  background-color: #B42A22;
  color: #fff;
}

/* "+ Regalo" y "¡En oferta!": el mismo rojo en tono suave, para que el descuento siga mandando.
   La flag de regalo (trvflags) trae el color en línea desde el back office: hace falta !important */
.badge.badge-trv.--regalo,
.badge.badge-on-sale {
  background-color: #FBE1DF !important;
  color: #B42A22 !important;
}

.js-product-price .d-flex-price-info {
  margin-bottom: 20px;
}

.bike-card .prices-container {
  align-items: center;
}

/* Carruseles (Swiper): flechas, paginación y barra de scroll en rojo de la campaña.
   El tema fija el azul con variables !important en :root; redefinidas en .swiper ganan para sus hijos.
   Las flechas de .bikes-swiper usan var(--brand) de fondo y gris oscuro en hover */
.swiper {
  --swiper-navigation-color: #B42A22 !important;
  --swiper-theme-color: #B42A22 !important;
  --swiper-scrollbar-drag-bg-color: #B42A22 !important;
  --swiper-pagination-color: #B42A22 !important;
}

.bikes-swiper .swiper-button-prev,
.bikes-swiper .swiper-button-next {
  background-color: #B42A22;
}

.bikes-swiper .swiper-button-prev:hover,
.bikes-swiper .swiper-button-next:hover,
.bikes-swiper .swiper-button-prev:active,
.bikes-swiper .swiper-button-next:active {
  background-color: #8F1F19;
}

/* Carruseles inline de Connectif: la flecha es un SVG con un <circle class="st0"> azul definido en su
   propio <style>; se pasa al rojo de la campaña (rojo oscuro en hover) */
.cn__prev svg circle,
.cn__next svg circle {
  fill: #B42A22 !important;
  transition: fill .2s ease;
}

.cn__prev:hover svg circle,
.cn__next:hover svg circle {
  fill: #8F1F19 !important;
}

/* Ficha: el precio late */
body#product .js-product-price .price-amount.h3.d-block.current-price {
  animation: navidad-precio-pop 3s ease-in-out infinite;
}

@keyframes navidad-precio-pop {
  0%, 100% {
    transform: rotate(-5deg) skewX(-10deg) scale(1);
  }

  50% {
    transform: rotate(5deg) skewX(-10deg) scale(1.1);
  }
}

@media (prefers-reduced-motion: reduce) {
  body#product .js-product-price .price-amount.h3.d-block.current-price {
    animation: none;
  }
}
