/* === Tarjeta de producto === */
.product-card {
  list-style: none;
  margin-bottom: 30px;
}

/* Contenedor principal */
.product-card__inner {
  background: #fff;
  border: 1px solid #e2e2e2;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  text-align: left;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.product-card__inner:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}
.product-card__image-wrapper {
  width: 100%;
  /*   height: 380px;  */
  overflow: hidden;
  background: #fafafa;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* Nuevo contenedor centrador */
.product-card__image-center {
  position: relative;
  /*   width: 100%;
  height: 100%; */
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-card__image {
  width: revert-layer !important;
}
/* Las imágenes absolutas dentro del centro */
/* .product-card__image {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: auto;
  height: 100%;
  max-height: 100%;
  object-fit: contain; 
  transition: opacity 0.5s ease, transform 0.5s ease;
} */

/* Hover behavior */
/* .product-card__image.main-image {
  opacity: 1;
  z-index: 1;
}

.product-card__image.hover-image {
  opacity: 0;
  z-index: 2;
}

.product-card__inner:hover .product-card__image.hover-image {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.03);
}

.product-card__inner:hover .product-card__image.main-image {
  opacity: 0;
} */

/* ==== Etiqueta de descuento ==== */
.product-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #c40000;
  color: #fff;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 5;
}
/* ==== Contenido === */
.product-card__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px 18px;
}

.product-card__title {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 6px 0 8px;
  line-height: 1.3;
  color: #111;
}

.product-card__title a {
  color: inherit;
  text-decoration: none;
}

/* ==== Precio ==== */
.product-card__price {
  color: var(--color1);
  font-weight: 900;
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.product-card__price del {
  color: #888;
  font-weight: normal;
  margin-right: 6px;
  font-size: 1rem;
}

/* ===========================================================
   🧠 RESPONSIVE DESIGN
   =========================================================== */

/* Tablets (<= 1024px) */
@media (max-width: 1024px) {
  /* .product-card__image-wrapper {
    height: 320px;
  } */
  .product-card__price {
    font-size: 1.2rem;
  }
}

/* Móviles grandes (<= 768px) */
@media (max-width: 768px) {
  .product-card__inner {
    border-radius: 10px;
    margin: 20px 12px;
  }
  /*  .product-card__image-wrapper {
    height: 425px;
  } */
  .product-card__title {
    font-size: 1rem;
  }
  .product-card__price {
    font-size: 1.15rem;
  }
}

/* Móviles pequeños (<= 480px) */
@media (max-width: 480px) {
  .product-card__content {
    padding: 12px 14px;
  }
  .product-card__title {
    font-size: 0.95rem;
  }
  .product-card__price {
    font-size: 1.1rem;
  }
  .product-card__badge {
    font-size: 11px;
    padding: 4px 8px;
  }
}
