/* Catálogo del inicio en celular: dos columnas simétricas.
   - Marco 3:4 igual para todas las tarjetas; la portada se muestra completa (vertical, cuadrada u horizontal).
   - Título con alto fijo de 3 líneas y botón siempre al fondo: los botones de cada fila quedan alineados. */
@media (max-width: 620px) {
  #productGrid.product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: stretch; }
  #productGrid .product-card { height: 100%; }
  #productGrid .product-card .product-summary,
  #productGrid .product-card .product-meta,
  #productGrid .product-card .item-note,
  #productGrid .product-card .floating-top,
  #productGrid .product-card .product-type,
  #productGrid .product-card .detail-button { display: none; }

  #productGrid .product-art { flex: 0 0 auto; height: auto; aspect-ratio: 3 / 4; padding: 0; }
  #productGrid .custom-cover {
    inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px);
    object-fit: contain; border-radius: 0; transform: none;
    filter: drop-shadow(0 6px 12px rgba(33, 28, 68, .22));
  }
  #productGrid .card-book { width: 72%; height: auto; aspect-ratio: 3 / 4; padding: 10px; transform: none; font-size: 10px; }
  #productGrid .card-book strong { font-size: 13px !important; }

  #productGrid .product-info { flex: 1 1 auto; display: flex; flex-direction: column; padding: 10px 10px 12px; }
  #productGrid .product-card h3 {
    margin: 0 0 6px; font-size: 13px; line-height: 1.25; min-height: 3.75em;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  }
  #productGrid .product-bottom { margin: 0 0 8px; align-items: flex-start; }
  #productGrid .price strong { font-size: 15px; }
  #productGrid .price span { font-size: 10px; }
  #productGrid .button-buy { margin-top: auto; height: 42px; padding: 4px 8px; min-height: 0; width: 100%; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 11px; line-height: 1.2; }
}
