/* Scoped to product archives/search. Home, single product and checkout excluded. */
body.leo-catalog-title-readable:not(.home):not(.single-product) ul.products li.product .woocommerce-loop-product__title,
body.leo-catalog-title-readable:not(.home):not(.single-product) ul.products li.product h2 {
    font-size: 18px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    display: block !important;
    -webkit-line-clamp: unset !important;
    height: auto !important;
    min-height: 4.2em !important;
    max-height: none !important;
    overflow: visible !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
}
body.leo-catalog-title-readable:not(.home):not(.single-product) ul.products li.product .woocommerce-loop-product__title a,
body.leo-catalog-title-readable:not(.home):not(.single-product) ul.products li.product h2 a {
    font-size: inherit !important;
    font-weight: inherit !important;
    line-height: inherit !important;
}
@media (max-width: 1024px) {
body.leo-catalog-title-readable:not(.home):not(.single-product) ul.products li.product .woocommerce-loop-product__title,
body.leo-catalog-title-readable:not(.home):not(.single-product) ul.products li.product h2 { font-size: 15px !important; }
}
@media (max-width: 767px) {
body.leo-catalog-title-readable:not(.home):not(.single-product) ul.products li.product .woocommerce-loop-product__title,
body.leo-catalog-title-readable:not(.home):not(.single-product) ul.products li.product h2 { font-size: 14px !important; }
}

/* v0.5.11.326: mobile CSS is printed late in wp_head. Keep a complete,
   higher-specificity title box so legacy 34px/43px limits cannot cut it. */
@media (max-width: 767px) {
body.leo-catalog-title-readable:not(.home):not(.single-product):not(.woocommerce-cart) ul.products li.product .woocommerce-loop-product__title,
body.leo-catalog-title-readable:not(.home):not(.single-product):not(.woocommerce-cart) ul.products li.product h2 {
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    display: block !important;
    -webkit-line-clamp: unset !important;
    flex: 0 0 auto !important;
    height: auto !important;
    min-height: 4.2em !important;
    max-height: none !important;
    margin: 0 0 10px !important;
    padding: 0 !important;
    overflow: visible !important;
    white-space: normal !important;
}
}
