/* ===========================================
   SWIPER — Базовые стили swiper-bundle.css
=========================================== */

.swiper {
    width: 100%;
    position: relative;
}

.swiper-wrapper {
    display: flex;
    align-items: stretch;
}

/* Слайды */
.swiper-slide {
    /* height: auto;
  width: auto; */
}

.swiper-button-prev,
.swiper-button-next,
.swiper-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    cursor: pointer;
    appearance: none;
    padding: 0;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    border: none;
    outline: none;
}

.swiper-button-prev:hover,
.swiper-button-next:hover,
.swiper-nav-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.1);
}

.swiper-pagination {
    position: relative;
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    margin-top: var(--spacing-lg-plus);
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    transition: all 0.3s ease;
    opacity: 1;
    flex-shrink: 0;
}

.swiper-pagination-bullet-active {
    background: #2196f3;
    width: 20px;
    border-radius: 10px;
}

.swiper-pagination-fraction,
.swiper-pagination-custom,
.swiper-horizontal > .swiper-pagination-bullets,
.swiper-pagination-bullets.swiper-pagination-horizontal {
    bottom: 0;
}

/* ========================================
   УНИВЕРСАЛЬНЫЕ ПРАВИЛА ДЛЯ ВСЕХ СЛАЙДЕРОВ
   ======================================== */

/* Скрываем отключенные кнопки навигации */
.swiper-button-disabled {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* При наведении на слайдер — показываем полупрозрачные стрелки */
.swiper:hover .swiper-button-disabled {
    opacity: 0.3;
}

/* При наведении на саму кнопку — делаем видимой */
.swiper-button-disabled:hover {
    opacity: 1;
    pointer-events: auto;
}

/* Скрываем пустую пагинацию (если точек нет) */
.swiper-pagination-bullets:empty {
    display: none !important;
}

.swiper-button-lock,
.swiper-pagination-lock {
    display: none;
}

@media (max-width: 1024px) {
    .swiper-nav-btn {
        width: 7rem;
        height: 7rem;
    }
    .swiper-button-prev,
    .swiper-button-next,
    .swiper-nav-btn {
        background: rgba(255, 255, 255, 0.5);
    }
}
@media (max-width: 767px) {
    .swiper-nav-btn {
        width: 15rem;
        height: 15rem;
    }
    .swiper-button-prev,
    .swiper-button-next,
    .swiper-nav-btn {
        background: rgba(255, 255, 255, 0.5);
    }
}

/* Когда Swiper инициализирован → отключаем CSS Grid, возвращаем Flex */
.section-price__slider.swiper-initialized .swiper-wrapper {
    display: flex !important;
    gap: 0 !important;
    transform: none !important; /* Swiper сам управляет через JS */
}
.section-price__slider.swiper-initialized .swiper-slide {
    width: auto !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
}
