/* hsd quick task 260519-hsd — fix product-card title overlap in Related + Recently Viewed sections.
 *
 * Loaded by hsd-product-card-title-fix.php via wp_enqueue_style at priority 99.
 *
 * Background:
 *   Ecomus parent rule (ecomus/woocommerce.css:1406) sets
 *     ul.products li.product .woocommerce-loop-product__title {
 *       font-size: 16px;
 *       line-height: 19.2px;  <-- fixed px, causes overlap on 2-line wraps
 *     }
 *   and the inner anchor uses `display: -webkit-box; -webkit-line-clamp: 3`.
 *   Long product names like "AI Video Translation & Dubbing Service" wrap to
 *   2-3 lines and line 2 visually crashes into line 1.
 *
 * Fix:
 *   Raise line-height to 1.3 (matches existing child-theme override at
 *   ecomus-child/aaa-landing-pages-style.php for landing pages 12562-12564)
 *   on the h3.woocommerce-loop-product__title AND its inner <a>, scoped to
 *   the WooCommerce Related Products section and the Recently Viewed widget
 *   container. The main single-product H1 (.product_title.entry-title) is a
 *   DIFFERENT class so this rule cannot touch it.
 *
 * Upsells: confirmed absent on /product/.../ pages in the current theme; the
 * UPSELLS_CONTAINER (.upsells.products) selector block has been omitted per
 * the investigation file (UPSELLS_CONTAINER=NONE).
 */

.related.products .woocommerce-loop-product__title,
.related.products .woocommerce-loop-product__title a,
.recently-viewed .woocommerce-loop-product__title,
.recently-viewed .woocommerce-loop-product__title a {
  line-height: 1.3 !important;
  /* Allow multi-line wrap without crashing into siblings */
  min-height: 0;
  max-height: none;
}
