/* Native Hyvä homepage product slider. Scoped to avoid affecting catalog lists. */
.toneart-product-slider {
    --toneart-slider-gap: 15px;
    --toneart-slider-items: 1;
    contain: layout style;
}

.toneart-product-slider__heading {
    align-items: flex-end;
    display: flex;
    gap: 20px;
    justify-content: space-between;
}

.toneart-product-slider .toneart-product-slider__heading h3.title {
    margin-bottom: 8px;
}

.toneart-product-slider__subtitle {
    color: #d6dbe4;
    font-size: 15px;
    line-height: 1.45;
    margin: 0 0 20px;
}

.light-mode .toneart-product-slider__subtitle {
    color: #4b5563;
}

.toneart-product-slider__controls {
    display: flex;
    flex: 0 0 auto;
    gap: 10px;
    margin-bottom: 16px;
    visibility: hidden;
}

.toneart-product-slider.has-overflow .toneart-product-slider__controls {
    visibility: visible;
}

.toneart-product-slider__control {
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    height: 42px;
    justify-content: center;
    padding: 0;
    transition: background-color .2s ease, border-color .2s ease, opacity .2s ease;
    width: 42px;
}

.toneart-product-slider__control:hover:not(:disabled),
.toneart-product-slider__control:focus-visible {
    background: rgba(58, 190, 255, 0.18);
    border-color: rgba(58, 190, 255, 0.4);
    outline: 2px solid #3abfff;
    outline-offset: 2px;
}

.toneart-product-slider__control:disabled {
    cursor: default;
    opacity: .32;
}

.light-mode .toneart-product-slider__control {
    background: rgba(255, 255, 255, .94);
    border-color: rgba(17, 24, 39, .12);
    box-shadow: 0 8px 20px rgba(15, 23, 42, .08);
    color: #111;
}

.toneart-product-slider__viewport {
    overflow: hidden;
    width: 100%;
}

.homePage-products .toneart-product-slider__track,
.homePage-products ul.product-slider.toneart-product-slider__track {
    display: flex;
    gap: var(--toneart-slider-gap);
    height: auto;
    margin: 0;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 2px 14px;
    scroll-behavior: smooth;
    scroll-padding-inline: 2px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    touch-action: pan-x pan-y;
}

.toneart-product-slider__track::-webkit-scrollbar {
    display: none;
}

.toneart-product-slider__track:focus-visible {
    border-radius: 22px;
    outline: 2px solid #3abfff;
    outline-offset: 2px;
}

.homePage-products .toneart-product-slider__slide,
.homePage-products ul.product-slider:not(.owl-loaded) li.toneart-product-slider__slide {
    flex: 0 0 calc(
        (100% - (var(--toneart-slider-gap) * (var(--toneart-slider-items) - 1)))
        / var(--toneart-slider-items)
    );
    margin: 0 !important;
    min-width: 0;
    scroll-snap-align: start;
    scroll-snap-stop: normal;
}

.toneart-product-slider__slide .product-image {
    aspect-ratio: 1 / 1;
}

.toneart-product-slider__slide .product-image img {
    height: 100%;
    max-height: none !important;
    object-fit: contain;
    width: 100% !important;
}

.toneart-product-slider .product-item-info-home h3 a {
    color: inherit;
    text-decoration: none;
}

.toneart-product-slider button.action.towishlist {
    align-items: center;
    backdrop-filter: blur(8px);
    background: rgba(10, 16, 24, .72);
    border: 0;
    border-radius: 999px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .18);
    color: #fff;
    cursor: pointer;
    display: flex;
    height: 40px;
    justify-content: center;
    padding: 0;
    position: absolute;
    right: 14px;
    top: 14px;
    width: 40px;
    z-index: 20;
}

.light-mode .toneart-product-slider button.action.towishlist {
    background: rgba(255, 255, 255, .94);
    color: #111;
}

.toneart-product-slider button.action.towishlist:hover,
.toneart-product-slider button.action.towishlist:focus-visible {
    color: #3abfff;
    outline: 2px solid #3abfff;
    outline-offset: 2px;
}

.toneart-product-slider button[aria-busy="true"] {
    cursor: wait !important;
    opacity: .65;
}

.toneart-product-slider .has-list-price .price-box .old-price {
    display: none;
}

.toneart-product-slider .delivery-time svg {
    flex: 0 0 24px;
}

.toneart-product-slider .product.attribute.delivery_time {
    align-items: baseline;
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
}

.toneart-product-slider .product.attribute.delivery_time .type {
    font-weight: 600;
}

.toneart-product-slider__cta.action.tocart {
    align-items: center !important;
    background: linear-gradient(135deg, #67d2ff 0%, #00a2f2 50%, #0087d8 100%) !important;
    border: 0 !important;
    border-radius: 14px !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 10px 24px rgba(0, 144, 220, .28) !important;
    color: #03131c !important;
    display: inline-flex !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    gap: 10px;
    justify-content: center;
    margin-top: auto !important;
    min-height: 50px;
    padding: .95rem 1.4rem !important;
    text-decoration: none;
    width: 100%;
}

.toneart-product-slider .box-tocart,
.toneart-product-slider .stock.unavailable {
    margin-top: auto;
    padding-top: 18px;
}

.toneart-product-slider .stock.unavailable {
    color: #ff8c8c;
    font-weight: 600;
    text-align: center;
}

@media (min-width: 640px) {
    .toneart-product-slider {
        --toneart-slider-items: 2;
    }
}

@media (min-width: 1024px) {
    .toneart-product-slider {
        --toneart-slider-items: 3;
    }
}

@media (min-width: 1200px) {
    .toneart-product-slider {
        --toneart-slider-items: 4;
    }
}

@media (min-width: 1500px) {
    .toneart-product-slider {
        --toneart-slider-items: 5;
    }
}

@media (max-width: 639px) {
    .toneart-product-slider__heading {
        align-items: center;
    }

    .toneart-product-slider__subtitle {
        font-size: 14px;
        margin-bottom: 16px;
    }

    .toneart-product-slider__control {
        height: 38px;
        width: 38px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .homePage-products .toneart-product-slider__track {
        scroll-behavior: auto;
    }
}
