/*
 * SVT product listing layout v4
 * 3-column Bootstrap layout remains untouched.
 * Consistent image area, but product images are kept visually smaller.
 */

.centerBoxContentsListing {
    display: flex;
    flex-direction: column;
    height: auto !important; /* overrides Bootstrap h-100 on product cards */
}

/* Equal image area for all product cards. */
.centerBoxContentsListing > a:first-child {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 260px;
    margin-bottom: 0.25rem;
}

/* Keep original proportions and prevent oversized images. */
.centerBoxContentsListing .listingProductImage {
    display: block;
    width: auto !important;
    height: auto !important;
    max-width: 100%;
    max-height: 240px;
    object-fit: contain;
    margin: 0 auto;
}

/* Product title. */
.centerBoxContentsListing .itemTitle {
    margin-top: 0 !important;
    margin-bottom: 0.6rem !important;
    line-height: 1.25;
}

/* Let the normal document flow determine price spacing. */
.centerBoxContentsListing .pl-dp {
    margin-top: 0.5rem !important;
    margin-bottom: 0.25rem !important;
}

.centerBoxContentsListing .pl-dp p {
    margin-top: 0;
    margin-bottom: 0.25rem;
}

.centerBoxContentsListing .moreinfoLink {
    margin-top: 0.25rem;
    display: inline-block;
}

/* Phone layout. */
@media (max-width: 575.98px) {
    .centerBoxContentsListing > a:first-child {
        height: 220px;
    }

    .centerBoxContentsListing .listingProductImage {
        max-height: 190px;
    }
}
