/* ============================================
   AJUSTE UNIFORME DE TARJETAS DE PRODUCTO
   ============================================ */

/* Contenedor base de cada tarjeta */
.product-miniature {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  min-height: 560px;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding-bottom: 10px;
  transition: box-shadow 0.3s ease-in-out;
}

.product-miniature:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Imagen ajustada a espacio fijo */
.product-thumbnail img {
  width: 100%;
  height: 250px;
  object-fit: contain;
  padding: 10px;
  display: block;
  margin: 0 auto;
}

/* Estructura interna de título y descripción */
.product-title,
.product-description {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: flex-start;
}

/* Título: altura mínima para forzar equilibrio entre tarjetas */
.product-title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  min-height: 48px;
  margin-bottom: 6px;
}

/* Descripción: limitada a 3-4 líneas */
.product-description .product-desc {
  font-size: 14px;
  color: #555;
  line-height: 1.4;
  max-height: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 10px;
}

/* Alinear el bloque del botón al fondo */
.product-description + .product-actions {
  margin-top: auto;
}

/* Botón estilo "Añadir al carrito" */
.product-actions .btn {
  width: 100%;
  padding: 10px 0;
  font-weight: bold;
  border-radius: 4px;
  background-color: #00a896;
  color: white;
  border: none;
  text-align: center;
  transition: background-color 0.3s ease;
}

/* Efecto al pulsar el botón */
.product-actions .btn:active,
.product-actions .btn:focus {
  background-color: #009688; /* Verde activo como el de "añadir al carrito" */
  color: white;
  outline: none;
}

/* ============================
   RESPONSIVE: Vista móvil
   ============================ */
@media (max-width: 768px) {
  .product-miniature {
    min-height: auto;
  }

  .product-thumbnail img {
    height: 180px;
  }

  .product-description .product-desc {
    max-height: 50px;
  }

  .product-title {
    min-height: auto;
  }
	/* Mostrar correctamente saltos de línea en la ficha del producto */
.product-description-short {
  white-space: pre-line;
  line-height: 1.6;
  font-size: 15px;
  color: #333;
  margin-bottom: 20px;
  }

}
