/* Compact vertical cards; keep product photos complete and descriptions bounded. */
:is(.bestsellers, .best-seller, .products-carousel) .item-box .product-item:not(.bss-pbox-h) {
    max-width: 260px;
    min-width: 0;
    min-height: 420px;
    margin-inline: auto;
    padding: 12px;
}

:is(.bestsellers, .best-seller, .products-carousel) .item-box .product-item:not(.bss-pbox-h) > .picture,
:is(.bestsellers, .best-seller, .products-carousel) .item-box .product-item:not(.bss-pbox-h) > .item-top-wrapper {
    width: 100%;
    height: 180px;
    min-height: 0;
    aspect-ratio: auto;
    flex: 0 0 180px;
}

:is(.bestsellers, .best-seller, .products-carousel) .item-box .product-item:not(.bss-pbox-h) > .item-top-wrapper > .picture {
    position: absolute;
    inset: 0;
    height: 100%;
}

:is(.bestsellers, .best-seller, .products-carousel) .item-box .product-item:not(.bss-pbox-h) .picture > .swiper,
:is(.bestsellers, .best-seller, .products-carousel) .item-box .product-item:not(.bss-pbox-h) .picture .swiper-wrapper {
    height: 100%;
}

:is(.bestsellers, .best-seller, .products-carousel) .item-box .product-item:not(.bss-pbox-h) .picture > a:not(.bss-pbox-3d-badge),
:is(.bestsellers, .best-seller, .products-carousel) .item-box .product-item:not(.bss-pbox-h) .picture .swiper-wrapper > a {
    height: 100%;
}

:is(.bestsellers, .best-seller, .products-carousel) .item-box .product-item:not(.bss-pbox-h) .picture > a::before,
:is(.bestsellers, .best-seller, .products-carousel) .item-box .product-item:not(.bss-pbox-h) .picture .swiper-wrapper > a::before {
    content: none;
}

:is(.bestsellers, .best-seller, .products-carousel) .item-box .product-item:not(.bss-pbox-h) .picture > a > img,
:is(.bestsellers, .best-seller, .products-carousel) .item-box .product-item:not(.bss-pbox-h) .picture .swiper-wrapper > a > img {
    object-fit: contain;
    object-position: center;
    background-color: var(--white, #fff);
}

:is(.bestsellers, .best-seller, .products-carousel) .item-box .product-item:not(.bss-pbox-h) .details {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    margin-top: 12px;
}

:is(.bestsellers, .best-seller, .products-carousel) .item-box .product-item:not(.bss-pbox-h) .details > .add-info,
:is(.bestsellers, .best-seller, .products-carousel) .item-box .product-item:not(.bss-pbox-h) .details > .details-wrapper > .add-info:has(> .buttons),
:is(.bestsellers, .best-seller, .products-carousel) .item-box .product-item:not(.bss-pbox-h) .details > .details-wrapper > .buttons {
    margin-top: auto;
}

:is(.bestsellers, .best-seller, .products-carousel) .item-box .product-item:not(.bss-pbox-h) .product-title a,
:is(.bestsellers, .best-seller, .products-carousel) .item-box .product-item:not(.bss-pbox-h) .description:not([data-short-description="none"]) {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

:is(.bestsellers, .best-seller, .products-carousel) .item-box .product-item:not(.bss-pbox-h) .product-title {
    min-height: 40px;
    margin: 0;
}

:is(.bestsellers, .best-seller, .products-carousel) .item-box .product-item:not(.bss-pbox-h) .product-title a {
    max-height: 40px;
    line-height: 20px;
}

:is(.bestsellers, .best-seller, .products-carousel) .item-box .product-item:not(.bss-pbox-h) .description {
    max-height: 36px;
    line-height: 18px;
}

/* Give manufacturer logos a consistent area without cropping them. */
.manufacturer-container .manufacturer-item .picture,
.manufacturer-list-page .manufacturer-item .picture {
    box-sizing: border-box;
    width: 100%;
    height: 120px;
    padding: 12px;
}

.manufacturer-container .manufacturer-item .picture > a,
.manufacturer-list-page .manufacturer-item .picture > a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.manufacturer-container .manufacturer-item .picture > a > img,
.manufacturer-list-page .manufacturer-item .picture > a > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

@media (max-width: 767.98px) {
    .manufacturer-container .manufacturer-item .picture,
    .manufacturer-list-page .manufacturer-item .picture {
        height: 96px;
    }
}
