/* Compact, centred desktop cards for Special Offers and New Arrivals only. */
@media (min-width: 960px) {
    #main-content .ty-home-product-section {
        width: calc(100% - 96px);
        max-width: 1360px;
        margin-inline: auto;
    }
    #main-content .ty-home-product-section .ty-section-title { padding-inline: 0; }
    #main-content .ty-home-product-section .ty-product-block-min > a {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 16px;
        min-height: 0;
        border-radius: 12px;
    }
    #main-content .ty-home-product-section .ty-product-img-holder {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: auto;
        aspect-ratio: 6 / 5;
        position: relative;
        flex-shrink: 0;
    }
    #main-content .ty-home-product-section .ty-product-img-holder img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }
    #main-content .ty-home-product-section .ty-product-content {
        width: 100%;
        min-width: 0;
        flex: 1;
        display: flex;
        flex-direction: column;
        text-align: center;
    }
    #main-content .ty-home-product-section .ty-product-title {
        font-size: 16px;
        line-height: 1.3;
        min-height: 0;
        margin-bottom: 6px;
        overflow-wrap: anywhere;
    }
    #main-content .ty-home-product-section .ty-product-cat { font-size: 12px; }
    #main-content .ty-home-product-section .ty-price-holder { margin-bottom: 10px; }
    #main-content .ty-home-product-section .ty-price-msg { font-size: 12px; }
    #main-content .ty-home-product-section .ty-product-content .ty-price-holder span.ty-price { font-size: 18px; }
    #main-content .ty-home-product-section .ty-price-past span { font-size: 11px; }
    #main-content .ty-home-product-section .ty-btn-holder {
        display: flex;
        gap: 6px;
        margin-top: auto;
    }
    #main-content .ty-home-product-section .ty-btn-holder button {
        flex: 1;
        min-width: 0;
        min-height: 44px;
        padding: 6px 4px;
        font-size: 12px;
    }
}

/* Reserve space on both sides so arrows sit outside the product cards. */
@media (min-width: 960px) {
    #main-content .ty-home-product-section .splide__arrow {
        width: 40px;
        height: 40px;
        transform: translateY(-50%);
    }
    #main-content .ty-home-product-section .splide__arrow--prev { left: -48px; }
    #main-content .ty-home-product-section .splide__arrow--next { right: -48px; }
}

/* Use one centred action in homepage product cards. */
#main-content .ty-home-product-section .ty-btn-holder { display: flex; justify-content: center; }
#main-content .ty-home-product-section .ty-btn-holder button { flex: 0 1 auto; width: 180px; max-width: 100%; min-height: 44px; }

/* Two readable product cards per row on phones and tablets. */
@media (max-width: 959px) {
    #main-content .ty-home-product-section .ty-product-block-min > a {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 10px 8px;
        border-radius: 12px;
    }
    #main-content .ty-home-product-section .ty-product-img-holder {
        width: 100%;
        height: auto;
        aspect-ratio: 6 / 5;
        max-height: 180px;
        position: relative;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    #main-content .ty-home-product-section .ty-product-img-holder img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }
    #main-content .ty-home-product-section .ty-product-content {
        width: 100%;
        min-width: 0;
        flex: 1;
        display: flex;
        flex-direction: column;
        text-align: center;
    }
    #main-content .ty-home-product-section .ty-product-title {
        font-size: 13px;
        line-height: 1.3;
        min-height: 0;
        margin-bottom: 6px;
        overflow-wrap: anywhere;
    }
    #main-content .ty-home-product-section .ty-product-cat { font-size: 10px; overflow-wrap: anywhere; }
    #main-content .ty-home-product-section .ty-price-holder { margin-bottom: 8px; }
    #main-content .ty-home-product-section .ty-price-msg { font-size: 11px; }
    #main-content .ty-home-product-section .ty-product-content .ty-price-holder span.ty-price { font-size: 14px; }
    #main-content .ty-home-product-section .ty-price-past span { font-size: 10px; overflow-wrap: anywhere; }
    #main-content .ty-home-product-section .ty-price-past .ty-discount { padding: 3px; }
    #main-content .ty-home-product-section .ty-btn-holder { margin-top: auto; }
    #main-content .ty-home-product-section .ty-btn-holder button { font-size: 12px; padding: 6px 4px; }
    /* Put navigation below the cards so neither card is covered by an arrow. */
    #main-content .ty-home-product-section .splide__arrow {
        top: auto;
        bottom: 0;
        transform: none;
        width: 32px;
        height: 32px;
    }
    #main-content .ty-home-product-section .splide__pagination {
        min-height: 32px;
        padding-inline: 40px;
    }
}
