/** Shopify CDN: Minification failed

Line 16:0 Unexpected "<"
Line 93:8 Expected identifier but found whitespace
Line 93:10 Unexpected "{"
Line 93:19 Expected ":"
Line 99:8 Expected identifier but found whitespace
Line 99:10 Unexpected "{"
Line 99:19 Expected ":"
Line 106:8 Expected identifier but found whitespace
Line 106:10 Unexpected "{"
Line 106:19 Expected ":"
... and 1 more hidden warnings

**/
<style>
.custom-collections {
  padding: 40px 0;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

.custom-collections-heading {
  margin-bottom: 30px;
  padding: 0 20px;
  text-align: center;
}

.custom-collections-carousel {
  padding: 0 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Base responsiva para Computadora y Pantallas Medianas */
.custom-collections-carousel-track {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.custom-collections-carousel-slide {
  width: 100%;
  max-width: 280px; 
  flex: 1 1 240px; 
  display: flex;
  justify-content: center;
}

/* Tarjeta con fondo gris unificado */
.custom-collections-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 10px;
  width: 100%;
  background-color: #f2f2f2 !important; 
  text-decoration: none;
}

/* CORRECCIÓN: Forzamos a la imagen a no estirarse hacia abajo si tiene espacios transparentes */
.custom-collections-card img {
  width: 100%;
  height: auto;
  max-height: 300px; /* Limita la altura de la imagen para cortar el espacio vacío */
  object-fit: contain;
  display: block;
}

/* CORRECCIÓN: Subimos el bloque de texto con margen negativo para eliminar el hueco */
.custom-collections-overlay {
  position: relative !important;
  inset: auto !important;
  margin-top: -100px; /* Margen negativo para empujar el texto hacia arriba y pegarlo a la bota */
  padding: 0 15px 25px 15px !important; 
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  flex-grow: 1;
  background-color: #f2f2f2 !important; 
  text-align:center;
}

.custom-collections-overlay h3 {
  margin: 5px 0 8px 0;
  font-size: 16px !important;
  text-transform: uppercase;
  font-weight: bold !important;
  letter-spacing: 1px;
  color: {{ section.settings.title_color }};
}

.custom-collections-overlay p {
  font-size: 14px !important;
  line-height: 20px !important;
  color: {{ section.settings.text_color }};
  margin: 0 0 15px 0 !important;
}

.custom-collections-cta {
  font-weight: bold;
  text-decoration: underline;
  color: {{ section.settings.cta_color }};
  display: inline-block;
  margin-top: auto; 
}

/* MÓVIL (Pantallas muy chicas) */
@media (max-width: 580px) {
  .custom-collections-carousel {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 10px;
    -webkit-overflow-scrolling: touch;
    padding: 0 10px;
  }

  .custom-collections-carousel-track {
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 15px;
  }

  .custom-collections-carousel-slide {
    width: 260px !important;
    flex: 0 0 260px !important;
    scroll-snap-align: start;
  }
}
</style>