/*
 * Estilos para el módulo BA Cross-selling.
 *
 * Este archivo define estilos para el carrusel de productos sugeridos.
 * Se utilizan clases con prefijo `ba-` para evitar colisiones.
 */

/* Contenedor general */
.bacrossselling-wrapper {
  margin-top: 20px;
}

/* Título del bloque */
.ba-cross-title {
  margin-bottom: 15px;
}

/* Tamaños del título (modificadores) */
.ba-title-size-small {
  font-size: 1rem;
}
.ba-title-size-normal {
  font-size: 1.3rem;
}
.ba-title-size-large {
  font-size: 1.6rem;
}

/* Contenedor del carrusel */
.ba-swiper-container {
  position: relative;
  width: 100%;
  overflow: hidden;
}

/* Wrapper interno que contendrá las slides */
.ba-swiper-wrapper {
  display: flex;
  transition: transform 0.5s ease;
}

/* Slide individual */
.ba-swiper-slide {
  flex-shrink: 0;
  padding: 10px;
  box-sizing: border-box;
}

/* Tarjeta de producto */
.ba-product-card {
  background: #fff;
  border: 1px solid #eee;
  padding: 10px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Imagen del producto */
.ba-product-image img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 10px auto;
}

/* Información del producto */
.ba-product-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}

/* Nombre del producto */
.ba-product-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 5px;
  text-decoration: none;
}
.ba-product-name:hover {
  color: #007bff;
}

/* Precios */
.ba-product-price {
  margin-bottom: 8px;
}
.ba-new-price,
.ba-current-price {
  font-weight: bold;
  color: #333;
}
.ba-old-price {
  text-decoration: line-through;
  color: #888;
  margin-left: 5px;
  font-size: 0.85rem;
}

/* Botón agregar al carrito */
.ba-add-to-cart {
  margin-top: auto;
  display: inline-block;
  padding: 6px 12px;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 3px;
  font-size: 0.85rem;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.ba-add-to-cart:hover {
  background-color: #0056b3;
}

/* Flechas de navegación */
.ba-swiper-button-prev,
.ba-swiper-button-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
}
.ba-swiper-button-prev {
  left: 5px;
}
.ba-swiper-button-next {
  right: 5px;
}
.ba-swiper-button-prev::before,
.ba-swiper-button-next::before {
  font-family: 'FontAwesome', sans-serif;
  font-size: 16px;
  line-height: 1;
}
.ba-swiper-button-prev::before {
  content: '\f104'; /* ícono de flecha izquierda */
}
.ba-swiper-button-next::before {
  content: '\f105'; /* ícono de flecha derecha */
}

/* Puntos/paginación */
.ba-swiper-pagination {
  text-align: center;
  margin-top: 10px;
}
.ba-swiper-pagination .ba-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #ccc;
  border-radius: 50%;
  margin: 0 3px;
  cursor: pointer;
  transition: background 0.3s ease;
}
.ba-swiper-pagination .ba-dot.active {
  background: #007bff;
}