/* Home hero slider — single source of truth for storefront geometry. */
.mainSliderSwiper {
    width: 100vw;
    max-width: 100vw;
    height: var(--home-slider-desktop-height, 440px);
    margin: 0 0 24px;
    overflow: hidden;
    background: #f0f0f0;
}

.mainSliderSwiper .swiper-wrapper,
.mainSliderSwiper .swiper-slide,
.mainSliderSwiper .home-slider__link,
.mainSliderSwiper .home-slider__picture {
    height: 100%;
}

.mainSliderSwiper .swiper-slide {
    overflow: hidden;
    background: #f0f0f0;
    border-radius: 0;
}

.mainSliderSwiper .home-slider__link,
.mainSliderSwiper .home-slider__picture,
.mainSliderSwiper img {
    display: block;
    width: 100%;
}

.mainSliderSwiper .home-slider__link {
    position: relative;
    color: inherit;
    text-decoration: none;
}

/* A linked desktop slide exposes an explicit CTA while the whole slide
   remains the actual click target. Logical inset keeps placement correct
   for the RTL storefront without coupling it to left/right coordinates. */
.mainSliderSwiper .home-slider__cta {
    position: absolute;
    z-index: 4;
    inset-inline-start: 32px;
    bottom: 28px;
    display: inline-flex;
    align-items: center;
    direction: rtl;
    gap: 8px;
    min-height: 40px;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, .62);
    border-radius: 999px;
    background: rgba(20, 20, 20, .54);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    box-shadow: 0 5px 18px rgba(0, 0, 0, .20);
    backdrop-filter: blur(6px);
    pointer-events: none;
}

.mainSliderSwiper .home-slider__cta-arrow {
    flex: 0 0 auto;
    font-size: 17px;
    line-height: 1;
}

.mainSliderSwiper .home-slider__cta-label {
    white-space: nowrap;
}

.mainSliderSwiper .home-slider__mobile-link-hint {
    display: none;
}

.mainSliderSwiper img {
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.mainSliderSwiper .swiper-button-next,
.mainSliderSwiper .swiper-button-prev {
    color: #fff;
    background: rgba(0, 0, 0, .30);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: background .25s ease;
}

.mainSliderSwiper .swiper-button-next:hover,
.mainSliderSwiper .swiper-button-prev:hover {
    background: rgba(0, 0, 0, .60);
}

.mainSliderSwiper .swiper-button-next::after,
.mainSliderSwiper .swiper-button-prev::after {
    font-size: 18px;
    font-weight: 700;
}

/* Logical pagination is built by home_slider.js. Keep the whole indicator
   group geometrically centered instead of relying on Swiper's optional
   Pagination module classes; this stays stable in both RTL and LTR. */
.mainSliderSwiper .swiper-pagination {
    left: 50% !important;
    right: auto !important;
    bottom: 12px !important;
    width: max-content !important;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    direction: ltr;
}

.mainSliderSwiper .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    margin: 0 4px !important;
    border-radius: 999px;
    background: rgba(255, 255, 255, .78);
    box-shadow: 0 1px 5px rgba(0, 0, 0, .22);
    opacity: .82;
    transition: width .22s ease, opacity .22s ease, background .22s ease;
}

.mainSliderSwiper .swiper-pagination-bullet-active {
    width: 22px;
    background: #fff;
    opacity: 1;
}

@media (max-width: 768px) {
    .mainSliderSwiper {
        height: var(--home-slider-mobile-height, 300px);
        margin-top: 8px;
        margin-bottom: 20px;
        background: transparent;
    }

    /* The active mobile card is centered. With an 8px gap and a 36px
       total width reduction, roughly 10px of both adjacent slides remains
       visible on a 430px viewport. This works for two slides because the
       controlled JS loop supplies persistent boundary clones. */
    .mainSliderSwiper .swiper-slide {
        border-radius: 12px;
    }

    .mainSliderSwiper.mainSliderSwiper--multiple .swiper-slide {
        width: calc(100% - 36px);
    }

    /* A single slide keeps the existing 8px visual inset on both sides. */
    .mainSliderSwiper:not(.mainSliderSwiper--multiple) .swiper-slide {
        width: calc(100% - 16px);
    }

    .mainSliderSwiper .swiper-button-next,
    .mainSliderSwiper .swiper-button-prev {
        display: none !important;
    }

    .mainSliderSwiper .swiper-pagination {
        bottom: 10px !important;
        display: flex !important;
    }

    .mainSliderSwiper .home-slider__cta {
        display: none;
    }

    /* Mobile keeps the image visually clean but signals that linked slides
       are actionable with one small arrow badge. */
    .mainSliderSwiper .home-slider__mobile-link-hint {
        position: absolute;
        z-index: 4;
        inset-inline-start: 12px;
        bottom: 12px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 30px;
        height: 30px;
        border: 1px solid rgba(255, 255, 255, .62);
        border-radius: 50%;
        background: rgba(20, 20, 20, .50);
        color: #fff;
        font-size: 17px;
        line-height: 1;
        box-shadow: 0 3px 12px rgba(0, 0, 0, .18);
        backdrop-filter: blur(5px);
        pointer-events: none;
    }
}
