/* Compact homepage offer and arrival cards. */
.ty-home-product-section .ty-product-block-min > a {
    align-items: stretch;
    padding: 10px 8px;
    border-radius: 12px;
    text-align: center;
}
.ty-home-product-section .ty-product-block-min .ty-img-holder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 130px;
    aspect-ratio: auto;
    margin-bottom: 8px;
}
.ty-home-product-section .ty-product-block-min .ty-img-holder img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 120px;
    object-fit: contain;
}
.ty-home-product-section .ty-product-block-min > a > h2 {
    font-size: 13px;
    line-height: 1.3;
    min-height: 5.2em;
    margin-bottom: 6px;
    overflow-wrap: anywhere;
}
.ty-home-product-section .ty-product-block-min > a > h3 {
    font-size: 10px;
    line-height: 1.3;
    margin-bottom: 8px;
    overflow-wrap: anywhere;
}
.ty-home-product-section .ty-product-block-min .ty-price-holder {
    padding: 8px 0;
    margin-bottom: 8px;
}
.ty-home-product-section .ty-product-block-min .ty-price-msg { font-size: 11px; }
.ty-home-product-section .ty-product-block-min .ty-price-holder .ty-price { font-size: 14px; }
.ty-home-product-section .ty-product-block-min .ty-price-holder .ty-price.ty-old-price { font-size: 10px; }
.ty-home-product-section .ty-product-block-min .ty-btn-holder {
    gap: 6px;
    margin-top: auto;
}
.ty-home-product-section .ty-product-block-min .ty-btn-holder button {
    flex: 1;
    min-width: 0;
    min-height: 44px;
    padding: 6px 4px;
    font-size: 14px;
    font-weight: 700;
}
.ty-home-product-section .home-splide:not(.is-initialized) .splide__list { gap: 8px; }
.ty-home-product-section .home-splide:not(.is-initialized) .splide__slide {
    flex: 0 0 calc((100% - 8px) / 2);
}
@media (min-width: 960px) {
    .ty-home-product-section .ty-home-products-inner {
        width: calc(100% - 96px);
        max-width: 1360px;
        margin-inline: auto;
    }
    .ty-home-product-section .ty-product-block-min > a {
        padding: 16px;
        min-height: 545px;
    }
    .ty-home-product-section .ty-product-block-min .ty-img-holder {
        height: 250px;
        margin-bottom: 12px;
    }
    .ty-home-product-section .ty-product-block-min .ty-img-holder img { max-height: 230px; }
    .ty-home-product-section .ty-product-block-min > a > h2 {
        font-size: 16px;
        min-height: 3.9em;
    }
    .ty-home-product-section .ty-product-block-min > a > h3,
    .ty-home-product-section .ty-product-block-min .ty-price-msg { font-size: 12px; }
    .ty-home-product-section .ty-product-block-min .ty-price-holder .ty-price { font-size: 18px; }
    .ty-home-product-section .ty-product-block-min .ty-price-holder .ty-price.ty-old-price { font-size: 11px; }
    .ty-home-product-section .home-splide .splide__arrow {
        width: 40px;
        height: 40px;
        transform: translateY(-50%);
    }
    .ty-home-product-section .home-splide .splide__arrow--prev { left: -48px; }
    .ty-home-product-section .home-splide .splide__arrow--next { right: -48px; }
    .ty-home-product-section .home-splide:not(.is-initialized) .splide__list { gap: 24px; }
    .ty-home-product-section .home-splide:not(.is-initialized) .splide__slide {
        flex-basis: calc((100% - 48px) / 3);
    }
}
@media (min-width: 1280px) {
    .ty-home-product-section .home-splide:not(.is-initialized) .splide__list { gap: 32px; }
    .ty-home-product-section .home-splide:not(.is-initialized) .splide__slide {
        flex-basis: calc((100% - 96px) / 4);
    }
}
@media (max-width: 959px) {
    .ty-home-product-section .home-splide .splide__arrow {
        top: auto;
        bottom: 0;
        transform: none;
        width: 32px;
        height: 32px;
    }
    .ty-home-product-section .splide__pagination {
        min-height: 32px;
        padding-inline: 40px;
    }
}

/* Keep cards compact on laptop widths and shorter desktop viewports. */
@media (min-width: 960px) and (max-width: 1599px),
       (min-width: 960px) and (max-height: 900px) {
    .ty-home-product-section .ty-product-block-min > a {
        min-height: 0;
    }
    .ty-home-product-section .ty-product-block-min .ty-img-holder {
        height: clamp(160px, 26vh, 220px);
    }
    .ty-home-product-section .ty-product-block-min .ty-img-holder img {
        max-height: 100%;
    }
}
