/* Alvport Theme 2.3.9 — Novedades: encuadre completo, coherente con Nuevos ingresos.
   Scope deliberately limited to the novelty section; no Core/WooCommerce changes. */
.alv-novelties .alv-product-card {
  display: flex !important;
  flex-direction: column !important;
  min-width: 0 !important;
  height: auto !important;
  overflow: hidden !important;
}
.alv-novelties .alv-product-card__media {
  display: block !important;
  position: relative !important;
  height: 300px !important;
  min-height: 300px !important;
  max-height: none !important;
  flex: 0 0 300px !important;
  width: 100% !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  background: #fff !important;
  border-bottom: 1px solid #e8edf0 !important;
}
.alv-novelties .alv-product-card__image-link {
  display: flex !important;
  position: relative !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 20px !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}
.alv-novelties .alv-product-card__media .alv-product-card__image-link > img,
.alv-novelties .alv-product-card__media > img.alv-product-card__image,
.alv-novelties .alv-product-card__media .alv-product-card__slide img,
.alv-novelties .alv-product-card--gallery .alv-product-card__image {
  display: block !important;
  position: static !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: auto !important;
  object-fit: contain !important;
  object-position: center center !important;
  transform: none !important;
}
/* Desktop gallery slides: fill a consistent media box without cutting the object. */
.alv-novelties .alv-product-card--gallery .alv-product-card__slides {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  overflow: hidden !important;
}
.alv-novelties .alv-product-card--gallery .alv-product-card__slide {
  box-sizing: border-box !important;
  padding: 20px !important;
  place-items: center !important;
  overflow: hidden !important;
}
.alv-novelties .alv-product-card__body {
  position: relative !important;
  z-index: 2 !important;
  flex: 1 0 auto !important;
  min-height: 0 !important;
  height: auto !important;
  background: #fff !important;
  overflow: visible !important;
}
.alv-novelties .alv-product-card__title,
.alv-novelties .alv-product-card__title a {
  max-height: none !important;
  overflow: visible !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  -webkit-line-clamp: unset !important;
}
@media (max-width: 900px) {
  .alv-novelties .alv-product-card__media {
    height: clamp(270px, 76vw, 390px) !important;
    min-height: clamp(270px, 76vw, 390px) !important;
    flex-basis: clamp(270px, 76vw, 390px) !important;
  }
  .alv-novelties .alv-product-card__image-link,
  .alv-novelties .alv-product-card--gallery .alv-product-card__slide {
    padding: 22px !important;
  }
}
