/* colecciones/style.css */

/* Fix for GSAP ScrollTrigger Pin Overlapping */
body {
  overflow-x: hidden;
}

.collection-page {
  overflow-x: visible !important;
  overflow-y: visible !important;
}

.melena-collection {
  background-color: #fff;
}

.breadcrumb {
  background-color: #f6f6f6;
  text-align: center;
  padding: 8px 0;
  font-size: 14px;
  color: var(--variante-dg-1);
  font-weight: 300;
}

.breadcrumb strong {
  font-weight: 700;
}

.hero-image-banner {
  width: 100%;
  height: auto;
  /* adjusted to look like a banner */
  overflow: hidden;
}

.hero-image-banner img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.benefits-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 20px 10px;
}

.benefit-card {
  width: 125px;
  height: auto;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 10px;
  text-align: center;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.bg-mdm-green {
  background-color: #0d9284;
}

.bg-primary-mf {
  background-color: var(--primary-mf);
}

.info-dashed-box {
  margin: 10px 10px 30px;
  border: 1px dashed #0d9284;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  color: var(--variante-dg-1);
  font-size: 14px;
  line-height: 1.4;
}

.info-dashed-box strong {
  font-weight: 800;
}

.products-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  padding: 0 10px;
}

/* Optimize card layout in 2-column mobile grid */
@media (max-width: 767px) {
  .products-grid-2col .product-card {
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.1);
  }

  .products-grid-2col .product-card-body {
    padding: 10px 0 0;
  }

  .products-grid-2col .product-card-title {
    font-size: 13px;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .products-grid-2col .product-card-pricing {
    gap: 6px;
    margin-bottom: 10px;
  }

  .products-grid-2col .card-new-price {
    font-size: 14px;
  }

  .products-grid-2col .card-old-price {
    font-size: 12px;
  }

  .products-grid-2col .product-card-actions {
    gap: 6px;
    margin-top: 8px;
  }

  .products-grid-2col .btn-add-cart-outline,
  .products-grid-2col .btn-ver-mas-solid {
    font-size: 11px;
    padding: 8px 0;
    gap: 4px;
  }

  .products-grid-2col .btn-add-cart-outline svg,
  .products-grid-2col .btn-ver-mas-solid svg {
    width: 12px;
    height: 12px;
  }
}

.science-section {
  position: relative;
  margin-top: 40px;
  padding: 40px 20px 60px;
  border-radius: 15px 15px 0 0;
  overflow: hidden;
  color: #fff;
}

.science-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../img/melena-de-leon.jpg');
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.science-bg-2 {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../img/Cola-de-Pavo/Capsulas/img-1.webp');
  background-size: cover;
  background-position: center;
  z-index: 1;
  opacity: 0;
}

.science-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(11, 79, 71, 0.9) 20%, rgba(11, 79, 71, 0.5) 80%);
  z-index: 2;
}

.science-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.science-content .icon-title {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 25px;
}

.science-content .icon-title strong {
  font-weight: 800;
}

.science-content .icon {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.science-content .glass-box {
  background: rgba(5, 75, 67, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 25px 20px;
  border-radius: 10px;
  font-size: 14px;
  text-align: center;
  line-height: 1.4;
  font-weight: 500;
}

.related-section {
  padding: 40px 0;
}

.related-section h2 {
  font-size: 24px;
  font-weight: 800;
  color: #087366;
  text-align: center;
  margin-bottom: 20px;
}

.related-carousel {
  display: flex;
  gap: 15px;
  padding: 0 15px 15px;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE 10+ */
}

.related-carousel::-webkit-scrollbar {
  display: none;
}


.testimonials-section {
  padding: 40px 0;
  background-color: #0d9284;
  border-radius: 10px 10px 0 0;
  margin-top: -10px;
  /* pull up over the related-section slightly if needed, or just normal */
  position: relative;
  z-index: 4;
}

.testimonials-section h2 {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  text-align: right;
  margin-bottom: 20px;
  padding: 0 15px;
}

.test-carousel {
  display: flex;
  gap: 15px;
  padding: 0 15px 15px;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE 10+ */
}

.test-carousel::-webkit-scrollbar {
  display: none;
}

.test-card {
  flex: 0 0 221px;
  scroll-snap-align: center;
  background-color: #087366;
  border-radius: 10px;
  padding: 20px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 205px;
}

.test-card p {
  font-size: 12px;
  line-height: 1.4;
  font-weight: 400;
}

.test-card .author {
  font-size: 16px;
  font-weight: 800;
  margin-top: 15px;
}

.test-card .stars {
  height: 15px;
  margin-top: 5px;
}



/* Add desktop media query if needed later */
@media (min-width: 1024px) {
  .products-grid-2col {
    grid-template-columns: repeat(4, 1fr);
  }
}