/* Reserve image space before lazy loading and stretch cards within each row. */
.bt-home-page .row > .bt-home-product-col {
    display: flex;
    min-width: 0;
}

.bt-home-page .basic-product.theme-product-5 {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    height: 100%;
}

.bt-home-page section:not(.bt-hot-sale) .basic-product.theme-product-5 .img-wrapper {
    flex: none;
    width: 100%;
    aspect-ratio: 1 / 1;
}

.bt-home-page section:not(.bt-hot-sale) .basic-product.theme-product-5 .img-wrapper > a {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.bt-home-page section:not(.bt-hot-sale) .basic-product.theme-product-5 .img-wrapper > a > img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-height: none;
    object-fit: contain;
    object-position: center;
}

.bt-home-page .basic-product.theme-product-5 .product-detail {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}

/* Leave room for a previous price even when only the current price is shown. */
.bt-home-page .basic-product.theme-product-5 .product-detail .price {
    line-height: 1.5;
    min-height: 3.6em;
}

.bt-home-page .basic-product.theme-product-5 .product-detail .bt-card-actions {
    margin-top: auto;
    padding-top: 10px;
}

.bt-home-page .home-discovery-slider .slick-track,
.bt-home-page .home-bestseller-slider .slick-track {
    display: flex;
    align-items: stretch;
}

.bt-home-page .home-discovery-slider .slick-slide,
.bt-home-page .home-bestseller-slider .slick-slide {
    height: auto;
}

/* Slick's default row adds two wrappers around each rendered card. */
.bt-home-page .home-discovery-slider .slick-slide > div,
.bt-home-page .home-bestseller-slider .slick-slide > div {
    display: flex;
    width: 100%;
    height: 100%;
}

.bt-home-page .home-discovery-slider .slick-slide .bt-home-product-col {
    display: flex !important;
    min-width: 0;
}
