/* Full-width campaign carousel between the header and catalog intro. */
.hero-carousel {
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    margin: 0;
    overflow: hidden;
    touch-action: pan-y;
    background: #0b0a09;
    isolation: isolate;
}

.hero-carousel__track {
    align-items: stretch;
}

.hero-carousel__slide {
    position: relative;
    display: flex;
    width: 100%;
    max-width: 100%;
    height: clamp(440px, 110vw, 580px);
    overflow: hidden;
    align-items: center;
    justify-content: center;
    background: #0b0a09;
}

.hero-carousel__slide picture {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
}

.hero-carousel__slide::before {
    position: absolute;
    inset: -24px;
    z-index: 0;
    background-image: var(--hero-image);
    background-position: center;
    background-size: cover;
    filter: blur(18px);
    opacity: 0.55;
    transform: scale(1.06);
    content: "";
}

.hero-carousel__slide::after {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.06), transparent 48%, rgba(0, 0, 0, 0.28));
    content: "";
    pointer-events: none;
}

.hero-carousel__slide img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    user-select: none;
    -webkit-user-drag: none;
}

.hero-carousel__button {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    margin: 0;
    transform: translateY(-50%);
    padding: 0;
    border: 1px solid rgba(245, 241, 232, 0.5);
    border-radius: 50%;
    color: var(--brand-ivory);
    background: rgba(18, 18, 18, 0.5);
    box-shadow: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.hero-carousel__button::after {
    font-size: 16px;
    font-weight: 700;
}

.hero-carousel__button:hover,
.hero-carousel__button:focus-visible {
    border-color: var(--brand-gold);
    color: var(--brand-gold);
    background: rgba(18, 18, 18, 0.82);
    box-shadow: none;
    transform: translateY(-50%);
}

.hero-carousel__pagination.swiper-pagination {
    position: absolute;
    z-index: 2;
    bottom: 14px;
    display: flex;
    width: 100%;
    min-height: 12px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 0;
    transform: none;
}

.hero-carousel__pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    margin: 0;
    border: 1px solid rgba(245, 241, 232, 0.76);
    background: transparent;
    opacity: 1;
}

.hero-carousel__pagination .swiper-pagination-bullet-active {
    width: 24px;
    border-color: var(--brand-gold);
    border-radius: 999px;
    background: var(--brand-gold);
}

@media (min-width: 769px) {
    .hero-carousel__slide {
        height: clamp(470px, 42vw, 660px);
    }

    .hero-carousel__slide::before {
        background-image: var(--hero-image-desktop, var(--hero-image));
        filter: blur(14px);
        opacity: 0.72;
        transform: scale(1.08);
    }

    .hero-carousel__slide img {
        object-fit: cover;
        object-position: center;
    }

    .hero-carousel__button.swiper-button-prev {
        left: clamp(16px, 3vw, 44px);
    }

    .hero-carousel__button.swiper-button-next {
        right: clamp(16px, 3vw, 44px);
    }
}

@media (max-width: 768px) {
    .hero-carousel__slide,
    .hero-carousel__slide--complete-mobile {
        height: clamp(500px, 150vw, 620px);
        aspect-ratio: 2 / 3;
    }

    .hero-carousel__slide img,
    .hero-carousel__slide--complete-mobile img {
        object-fit: cover;
        object-position: center 52%;
    }

    .hero-carousel__button {
        width: 40px;
        min-width: 40px;
        height: 40px;
        min-height: 40px;
    }

    .hero-carousel__button::after {
        font-size: 14px;
    }

    .hero-carousel__button.swiper-button-prev {
        left: 8px;
    }

    .hero-carousel__button.swiper-button-next {
        right: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-carousel__slide img {
        transition: none;
    }
}
