/*
 COZZYPAWS HOMEPAGE PRODUCT TEXT FIX V1
 Scope: homepage product cards only.
 No gallery, carousel, variation or purchase changes.
*/

/* Product name containers */
body.home ul.products li.product .product-title,
body.home ul.products li.product .woocommerce-loop-product__title,
body.home ul.products li.product .name,
body.home ul.products li.product .products-content h3,
body.home ul.products li.product .products-content h2,
body.home .products-list li.product .product-title,
body.home .products-list li.product .name,
body.home .products-list li.product .products-content h3 {
    display: block !important;
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    overflow: visible !important;
    text-overflow: clip !important;
    -webkit-line-clamp: unset !important;
    -webkit-box-orient: initial !important;

    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;

    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.45 !important;
    color: #5B3224 !important;
    text-align: center !important;

    margin: 14px 0 14px !important;
    padding: 0 !important;
}

/* Product name links */
body.home ul.products li.product .product-title a,
body.home ul.products li.product .name a,
body.home ul.products li.product .woocommerce-loop-product__title a,
body.home ul.products li.product .products-content h3 a,
body.home ul.products li.product .products-content h2 a,
body.home .products-list li.product .product-title a,
body.home .products-list li.product .name a {
    display: block !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    white-space: normal !important;
    text-overflow: clip !important;
    -webkit-line-clamp: unset !important;
    line-height: inherit !important;
    color: #5B3224 !important;
}

/* Prevent inner content wrappers from clipping titles */
body.home ul.products li.product .products-content,
body.home ul.products li.product .products-content .product-title,
body.home ul.products li.product .products-content .name {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

/* Clear, readable price below title */
body.home ul.products li.product .price,
body.home .products-list li.product .price {
    display: block !important;
    position: relative !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;

    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1.5 !important;
    text-align: center !important;
    color: #5B3224 !important;

    padding: 0 !important;
    margin: 14px 0 12px !important;
    white-space: normal !important;
}

/* Sale prices */
body.home ul.products li.product .price del,
body.home ul.products li.product .price ins {
    display: inline !important;
    white-space: nowrap !important;
    line-height: inherit !important;
}

body.home ul.products li.product .price del {
    opacity: .65 !important;
    margin-right: 5px !important;
    color: #786A62 !important;
}

body.home ul.products li.product .price ins {
    color: #5B3224 !important;
    font-weight: 800 !important;
    text-decoration: none !important;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    body.home ul.products li.product .product-title,
    body.home ul.products li.product .woocommerce-loop-product__title,
    body.home ul.products li.product .name,
    body.home ul.products li.product .products-content h3,
    body.home ul.products li.product .products-content h2 {
        font-size: 14px !important;
        line-height: 1.4 !important;
        margin: 10px 0 12px !important;
    }

    body.home ul.products li.product .price {
        font-size: 16px !important;
        line-height: 1.45 !important;
    }
}
