/* Archivo: /modules/mycarousel/views/css/carousel.css */
/* Estilo Maliashop — 4 productos visibles, imagen completa, nombre + precio */

/* ═══════ WRAPPER — rompe el contenedor de PrestaShop ═══════ */
.custom-carousel-wrapper {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: 0;
  overflow: hidden;
  background: #fff;
}

/* ═══════ CABECERA ═══════ */
.carousel-header {
  text-align: center;
  padding: 50px 20px 35px;
}

.carousel-main-title {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-size: 40px;
  font-weight: 400;
  font-style: italic;
  color: #333;
  margin: 0 0 10px;
  letter-spacing: 1px;
}

.carousel-subtitle {
  font-size: 14px;
  color: #999;
  font-weight: 400;
  margin: 0;
  letter-spacing: 0.5px;
  text-transform: none;
}

/* ═══════ CONTENEDOR DEL CARRUSEL ═══════ */
.custom-carousel-container {
  position: relative;
  width: 100%;
  padding: 0 45px;
  box-sizing: border-box;
}

.carousel-track-wrapper {
  overflow: hidden;
  width: 100%;
}

.carousel-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
  gap: 15px;
}

/* ═══════ CADA SLIDE / PRODUCTO ═══════ */
.carousel-slide {
  flex: 0 0 calc(16.666% - 13px);
  min-width: 0;
}

.slide-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.slide-link:hover {
  text-decoration: none;
  color: inherit;
}

/* ═══════ IMAGEN DEL PRODUCTO ═══════ */
.slide-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 3.5;
  overflow: hidden;
  background: #f8f8f8;
}

.slide-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.slide-link:hover .slide-image {
  transform: scale(1.03);
}

/* ═══════ BADGE "Nuevo" ═══════ */
.slide-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #8B1A8F;
  color: #fff;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
  border-radius: 2px;
}

/* ═══════ INFO: NOMBRE + PRECIO ═══════ */
.slide-info {
  padding: 12px 0 5px;
  text-align: center;
}

.slide-title {
  font-size: 13px;
  font-weight: 500;
  color: #333;
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.slide-price {
  font-size: 14px;
  font-weight: 400;
  color: #333;
  display: block;
}

/* ═══════ FLECHAS DE NAVEGACIÓN ═══════ */
.carousel-nav {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: opacity 0.3s ease;
  padding: 0;
  color: #333;
}

.carousel-nav:hover {
  opacity: 0.6;
}

.carousel-nav i {
  font-size: 32px;
  color: #333;
}

.carousel-prev {
  left: 8px;
}

.carousel-next {
  right: 8px;
}

.carousel-nav:disabled {
  opacity: 0.2;
  cursor: default;
}

/* ═══════ DOTS ═══════ */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 25px 0 40px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ddd;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.dot:hover {
  background: #bbb;
}

.dot.active {
  background: #333;
}

/* ═══════ RESPONSIVE ═══════ */

/* Tablet grande */
@media (max-width: 1200px) {
  .carousel-slide {
    flex: 0 0 calc(25% - 12px);
  }

  .carousel-main-title {
    font-size: 34px;
  }
}

/* Tablet */
@media (max-width: 992px) {
  .carousel-slide {
    flex: 0 0 calc(33.333% - 10px);
  }

  .custom-carousel-container {
    padding: 0 40px;
  }

  .carousel-main-title {
    font-size: 30px;
  }
}

/* Móvil grande */
@media (max-width: 768px) {
  .carousel-slide {
    flex: 0 0 calc(50% - 8px);
  }

  .custom-carousel-container {
    padding: 0 35px;
  }

  .carousel-nav {
    width: 30px;
    height: 30px;
  }

  .carousel-nav i {
    font-size: 26px;
  }

  .carousel-prev {
    left: 5px;
  }

  .carousel-next {
    right: 5px;
  }

  .carousel-main-title {
    font-size: 26px;
  }

  .carousel-header {
    padding: 35px 15px 25px;
  }
}

/* Móvil */
@media (max-width: 480px) {
  .carousel-slide {
    flex: 0 0 calc(50% - 6px);
  }

  .custom-carousel-container {
    padding: 0 28px;
  }

  .carousel-track {
    gap: 10px;
  }

  .slide-title {
    font-size: 11px;
  }

  .slide-price {
    font-size: 12px;
  }

  .carousel-main-title {
    font-size: 22px;
  }
}