/**
 * NOVADERM - Custom Product Styles
 * Estilos específicos para visualización de productos dermocosméticos
 */

/* ==================== TARJETAS DE PRODUCTOS ==================== */

.product-card-derma {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.product-card-derma:hover {
  box-shadow: 0 8px 24px rgba(92, 152, 106, 0.15);
  transform: translateY(-8px);
  border-color: rgba(92, 152, 106, 0.2);
}

.product-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.product-card:hover {
  box-shadow: 0 8px 24px rgba(92, 152, 106, 0.15);
  transform: translateY(-8px);
  border-color: rgba(92, 152, 106, 0.2);
}

.product-card .product-image {
  width: 100%;
  height: 280px;
  overflow: hidden;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.product-card .product-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.02) 100%);
  pointer-events: none;
}

.product-card .product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-image img {
  transform: scale(1.08);
}

.product-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-card-body h4 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.4;
  color: #2c2c2c;
  transition: color 0.3s ease;
}

.product-card:hover .product-card-body h4 {
  color: #5c986a;
}

.product-card-body p {
  font-size: 14px;
  line-height: 1.7;
  color: #666;
  flex: 1;
  margin-bottom: 16px;
}

.product-card-body .button-primary-outline {
  margin-top: auto;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 12px 24px;
  border-radius: 8px;
}

.product-card-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
  background: #f8f8f8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card-derma:hover .product-card-image img {
  transform: scale(1.05);
}

.product-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-category {
  font-size: 12px;
  text-transform: uppercase;
  color: #86bc42;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.product-card-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.3;
  min-height: 48px;
}

.product-card-title a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.product-card-title a:hover {
  color: #86bc42;
}

.product-skin-types {
  margin-bottom: 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.badge-skin {
  display: inline-block;
  padding: 4px 10px;
  background: #f0f0f0;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  color: #666;
  text-transform: capitalize;
}

.product-description {
  font-size: 14px;
  line-height: 1.6;
  color: #666;
  margin-bottom: 15px;
  flex: 1;
}

.button-primary-outline {
  border: 2px solid #86bc42;
  background: transparent;
  color: #86bc42;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  display: inline-block;
  text-align: center;
  width: 100%;
}

.button-primary-outline:hover {
  background: #86bc42;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(134, 188, 66, 0.3);
}

/* ==================== PÁGINA DE PRODUCTO INDIVIDUAL ==================== */

.product-image-wrapper {
  background: #fff;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.product-image-wrapper img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

.product-header {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #f0f0f0;
}

.product-category-badge {
  display: inline-block;
  padding: 6px 15px;
  background: #86bc42;
  color: #fff;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
}

.product-name {
  font-size: 32px;
  font-weight: 700;
  color: #333;
  margin-bottom: 10px;
  line-height: 1.2;
}

.product-presentation {
  font-size: 16px;
  color: #86bc42;
  font-weight: 600;
}

.product-skin-types-section {
  margin-bottom: 25px;
}

.product-skin-types-section h6 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  color: #666;
  margin-bottom: 10px;
}

.skin-types-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge-skin-detail {
  display: inline-block;
  padding: 8px 16px;
  background: linear-gradient(135deg, #86bc42 0%, #72a837 100%);
  color: #fff;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  text-transform: capitalize;
  box-shadow: 0 2px 8px rgba(134, 188, 66, 0.2);
}

.product-description-text {
  margin-bottom: 25px;
  line-height: 1.8;
}

.product-description-text .lead {
  font-size: 18px;
  font-weight: 600;
  color: #555;
  margin-bottom: 15px;
}

.product-manufacturer {
  padding: 15px 20px;
  background: #f8f8f8;
  border-left: 4px solid #86bc42;
  border-radius: 4px;
  margin-top: 20px;
}

.product-section {
  background: #fff;
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid #f0f0f0;
}

.product-section h5 {
  font-size: 20px;
  font-weight: 700;
  color: #333;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.product-section h5 .icon {
  color: #86bc42;
  font-size: 24px;
}

.ingredients-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ingredients-list li {
  padding: 12px 15px;
  background: #f8f8f8;
  border-left: 3px solid #86bc42;
  margin-bottom: 10px;
  border-radius: 4px;
  font-weight: 600;
  color: #555;
  transition: all 0.3s ease;
}

.ingredients-list li:hover {
  background: #f0f0f0;
  transform: translateX(5px);
}

.product-warnings {
  background: #fff8e1;
  border-left: 4px solid #ffc107;
}

.product-warnings h5 {
  color: #f57c00;
}

.product-warnings .icon {
  color: #ffc107;
}

/* ==================== PRODUCTOS RELACIONADOS ==================== */

.product-card-related {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  height: 100%;
}

.product-card-related:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
  transform: translateY(-3px);
}

.product-card-related .product-card-image {
  height: 200px;
}

.product-card-related .product-card-body {
  padding: 15px;
}

.product-card-related h6 {
  font-size: 16px;
  margin-bottom: 10px;
}

.product-card-related h6 a {
  color: #333;
  text-decoration: none;
}

.product-card-related h6 a:hover {
  color: #86bc42;
}

/* ==================== PRODUCTOS DESTACADOS (HOME) ==================== */

.product-card-featured {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: 100%;
}

.product-card-featured:hover {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  transform: translateY(-5px);
}

.product-card-featured .product-card-image {
  height: 280px;
}

.product-card-content {
  padding: 25px;
}

.product-card-content h5 {
  font-size: 20px;
  margin-bottom: 12px;
}

.product-card-content h5 a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.product-card-content h5 a:hover {
  color: #86bc42;
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 767px) {
  .product-card-image {
    height: 200px;
  }

  .product-name {
    font-size: 24px;
  }

  .product-section {
    padding: 20px;
  }

  .skin-types-list {
    gap: 5px;
  }

  .badge-skin-detail {
    padding: 6px 12px;
    font-size: 12px;
  }
}

/* ==================== ANIMACIONES ==================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-card-derma,
.product-section {
  animation: fadeInUp 0.5s ease-out;
}

/* ==================== UTILIDADES ==================== */

.text-primary-custom {
  color: #86bc42 !important;
}

.bg-primary-custom {
  background-color: #86bc42 !important;
}

.border-primary-custom {
  border-color: #86bc42 !important;
}

.product-meta {
  font-size: 13px;
  color: #999;
  font-weight: 600;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}

/* Mejorar las tarjetas de categoría existentes */
.product-big {
  position: relative;
}

.product-big .product-meta {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  text-align: center;
}

.product-image img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* =========================================================
   OCULTAR CUADRO CENTRAL (Jumbotron) SIN CAMBIAR EL CARRUSEL
   + ALTURA RESPONSIVE (mantiene proporción y evita recortes)
   ========================================================= */

/* 1) Elimina el cuadro de texto/botón del centro */
.jumbotron-custom-wrapper,
.jumbotron-custom {
  display: none !important;
}

/* 2) Mantiene el tamaño del carrusel de forma responsive
- Mínimo: 360px (móvil)
- Intermedio: 38vw (escala con el ancho)
- Máximo: 738px (altura original de tus imágenes 1920x738)
*/
.swiper-custom-container,
.swiper-container.swiper-slider-custom,
.swiper-container.swiper-slider-custom .swiper-wrapper,
.swiper-container.swiper-slider-custom .swiper-slide {
  height: clamp(360px, 38vw, 738px) !important;
  min-height: clamp(360px, 38vw, 738px) !important;
}

/* 3) Si las slides usan background (data-slide-bg), asegura buen encuadre */
.swiper-container.swiper-slider-custom .swiper-slide {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* 4) Asegura que el contenedor no “colapse” por estilos previos */
.swiper-container.swiper-slider-custom {
  overflow: hidden;
}