/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/

/* Show complete product names, including model and refurbished grade. */
.product-grid-item .wd-entities-title,
.product-grid-item .wd-entities-title a {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    white-space: normal !important;
    text-overflow: clip !important;
    -webkit-line-clamp: unset !important;
    line-clamp: unset !important;
    overflow-wrap: anywhere;
}

/* Keep card images consistent without cropping or stretching the product. */
.product-grid-item .product-image-link {
    display: block;
    aspect-ratio: 1 / 1;
}

.product-grid-item .product-image-link > img,
.product-grid-item .hover-img > img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}
