/* ==========================================================
   DOÑA LALA — SLIDER DE PRODUCTOS V2
   Reemplaza el archivo estilos-slider-fix.css anterior.
   Se carga DESPUÉS de css/estilos.css.
   ========================================================== */

.products {
  overflow: hidden;
}

.product-wrap {
  position: relative;
  width: 100%;
  max-width: 1240px;
  margin: 34px auto 0;
  padding: 0 54px;
  box-sizing: border-box;
}

.product-slider-viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.product-track {
  --product-gap: 20px;

  display: flex !important;
  flex-flow: row nowrap !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  gap: var(--product-gap) !important;

  width: 100% !important;
  min-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;

  margin: 0 !important;
  padding: 4px 0 26px !important;

  overflow: visible !important;
  scroll-snap-type: none !important;
  scroll-behavior: auto !important;

  transform: none !important;
  translate: none !important;
  transition: none !important;
}

.product-card {
  display: flex !important;
  flex: 0 0 calc((100% - (var(--product-gap) * 3)) / 4) !important;
  flex-direction: column !important;
  align-items: center !important;

  width: calc((100% - (var(--product-gap) * 3)) / 4) !important;
  min-width: 0 !important;
  max-width: none !important;
  height: auto !important;
  min-height: 0 !important;

  margin: 0 !important;
  padding: 20px 16px 22px !important;
  box-sizing: border-box !important;

  visibility: visible !important;
  opacity: 1 !important;

  text-align: center;
  background: #ffffff;
  border: 1px solid rgba(28, 82, 49, 0.12);
  border-radius: 20px;
  box-shadow: 0 10px 28px rgba(42, 65, 38, 0.09);
}

.product-card img {
  display: block !important;
  width: 100% !important;
  height: 175px !important;
  min-height: 0 !important;
  margin: 0 auto 16px !important;
  object-fit: contain !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.product-card h3 {
  margin: 0 0 10px !important;
}

.product-card strong {
  display: block !important;
  margin: 0 0 10px !important;
}

.product-card p {
  margin: 4px 0 0 !important;
}

.slider-btn {
  position: absolute !important;
  top: 50% !important;
  z-index: 20 !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  width: 42px !important;
  height: 42px !important;
  padding: 0 !important;

  color: #ffffff !important;
  background: #167044 !important;
  border: 0 !important;
  border-radius: 50% !important;

  font-size: 30px !important;
  line-height: 1 !important;
  cursor: pointer;

  transform: translateY(-50%) !important;
}

.slider-btn.prev {
  left: 2px !important;
}

.slider-btn.next {
  right: 2px !important;
}

.slider-btn:hover,
.slider-btn:focus-visible {
  background: #e5aa20 !important;
}

/* Tablet: 2 productos */
@media (max-width: 900px) {
  .product-wrap {
    padding: 0 48px;
  }

  .product-card {
    flex-basis: calc((100% - var(--product-gap)) / 2) !important;
    width: calc((100% - var(--product-gap)) / 2) !important;
  }

  .product-card img {
    height: 165px !important;
  }
}

/* Celular: 1 producto */
@media (max-width: 560px) {
  .products.section {
    height: auto !important;
    min-height: 0 !important;
    padding: 52px 0 42px !important;
  }

  .products .container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
    box-sizing: border-box;
  }

  .products .title-row {
    margin-top: 0 !important;
  }

  .product-wrap {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 26px auto 0 !important;
    padding: 0 46px !important;
  }

  .product-slider-viewport {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  .product-track {
    --product-gap: 14px;

    height: auto !important;
    min-height: 0 !important;
    padding-bottom: 18px !important;
  }

  .product-card {
    flex: 0 0 100% !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    min-height: 0 !important;
    padding: 18px 14px 22px !important;
    border-radius: 18px !important;
  }

  .product-card img {
    width: 100% !important;
    height: 210px !important;
    margin-bottom: 14px !important;
  }

  .slider-btn {
    width: 38px !important;
    height: 38px !important;
    font-size: 27px !important;
  }

  .slider-btn.prev {
    left: 2px !important;
  }

  .slider-btn.next {
    right: 2px !important;
  }

  .dots {
    margin-top: 10px !important;
  }
}
