/* Catálogo visual para categorías excepto Colchones y sus subcategorías. */
#category .product-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

#category .category-product-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #ece7e1;
  background: #fff;
  transition: box-shadow .2s ease, transform .2s ease;
}

#category .category-product-card:hover {
  box-shadow: 0 10px 24px rgba(52, 43, 35, .12);
  transform: translateY(-3px);
}

#category .category-product-card__image {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f8f6f3;
}

#category .category-product-card__image picture,
#category .category-product-card__image img {
  display: block;
  width: 100%;
  height: 100%;
}

#category .category-product-card__image img {
  object-fit: cover;
  /* La propia portada ya está compuesta en formato cuadrado. No se escala:
     así el producto se muestra completo y no queda recortado en la tarjeta. */
  transform: none;
  transition: transform .3s ease;
}

#category .category-product-card:hover .category-product-card__image img {
  transform: scale(1.035);
}

/* Algunas portadas de mesitas se guardaron centradas en un lienzo cuadrado
   con bandas vacías. Cada una se ajusta a su proporción real, sin recortar
   las demás portadas de la categoría. */
#category.category-id-44 .category-product-card[data-id-product="617"] .category-product-card__image img {
  transform: scale(1.333);
}

#category.category-id-44 .category-product-card[data-id-product="618"] .category-product-card__image img {
  transform: scale(1.25);
}

#category.category-id-44 .category-product-card[data-id-product="617"]:hover .category-product-card__image img {
  transform: scale(1.38);
}

#category.category-id-44 .category-product-card[data-id-product="618"]:hover .category-product-card__image img {
  transform: scale(1.294);
}

/* Las ocho referencias blancas y de roble tienen la foto vertical centrada
   sobre un lienzo cuadrado. Se elimina su margen lateral interno. */
#category.category-id-44 .category-product-card:is([data-id-product="625"], [data-id-product="626"], [data-id-product="627"], [data-id-product="628"], [data-id-product="629"], [data-id-product="630"], [data-id-product="631"], [data-id-product="632"]) .category-product-card__image img {
  transform: scale(1.502);
}

#category.category-id-44 .category-product-card:is([data-id-product="625"], [data-id-product="626"], [data-id-product="627"], [data-id-product="628"], [data-id-product="629"], [data-id-product="630"], [data-id-product="631"], [data-id-product="632"]):hover .category-product-card__image img {
  transform: scale(1.555);
}

#category .category-product-card__image .category-product-card__cover--square {
  transform: none;
}

#category .category-product-card:hover .category-product-card__image .category-product-card__cover--square {
  transform: scale(1.035);
}

#category .category-product-card__content {
  display: flex;
  min-height: 151px;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 17px 18px 18px;
}

#category .category-product-card__title {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
}

#category .category-product-card__title a {
  color: #292522;
}

#category .category-product-card__cta {
  display: flex;
  width: 100%;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  padding: 13px 16px;
  background: #ce5f1f;
  border: 0;
  border-radius: 8px !important;
  box-shadow: 0 4px 8px rgba(158, 63, 19, .20);
  color: #fff !important;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none !important;
}

#category .category-product-card__cta:hover {
  background: #b94f15;
  box-shadow: 0 5px 10px rgba(158, 63, 19, .26);
  color: #fff !important;
}

#category .category-product-card__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: -4px 0 14px;
  color: #292522;
  font-family: "Josefin Sans", sans-serif;
}

#category .category-product-card__price-final {
  font-size: 18px !important;
  font-weight: 600;
}

#category .category-product-card__price-old {
  color: #837d78;
  font-size: 13px !important;
  text-decoration: line-through;
}

@media (max-width: 1199px) {
  #category .product-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
}

@media (max-width: 767px) {
  #category .product-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  #category .category-product-card__content {
    min-height: 130px;
    padding: 12px;
  }

  #category .category-product-card__title {
    margin-bottom: 11px;
    font-size: 13px;
  }

  #category .category-product-card__cta {
    width: 100%;
    min-height: 46px;
    padding: 10px 7px;
    font-size: 13px;
    text-align: center;
  }

  #category .category-product-card__price {
    margin-bottom: 11px;
  }

  #category .category-product-card__price-final {
    font-size: 16px !important;
  }
}
