


.wpfable-slider-container {
    width: 100%;
    position: relative;
    overflow: hidden;
    margin-top: 60px;
}

.wpfable-main-slider {
    width: 100%;
    height: 100%;
}

/* Стиль для каждого слайда */
.swiper-slide {
    position: relative;
    height: 430px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Фон слайда */
.slide-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    border-radius: 16px;
}

/* Затемнение фона */
.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgb(0 0 0 / 51%) 0% 0%, rgb(0 0 0 / 38%) 30% 30%, #00000045 50% 50%, rgb(0 0 0 / 10%) 100% 100%);
    z-index: 2;
    border-radius: 16px;
}

/* Контейнер для контента и изображения товара */
.slide-content-container {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}

/* Левая часть - текст и кнопки */
.slide-content {
    flex: 1;
    color: #fff;
    max-width: 600px;
}
.slide-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #fff;
    text-align: left;
}
.slide-content h1 span {
    color: #8d6e63; /* Основной цвет сайта */
}
.slide-content p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: #d7ccc8;;
    text-align: left;
}

/* Контейнер для кнопок */
.slide-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Общие стили для кнопок */
.slide-buttons .btn {
display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
    text-align: center;
    width: 215px;
}

/* Основная кнопка */
.slide-buttons .btn-primary {
    background-color: #8d6e63; /* Основной цвет сайта */
    color: #fff;
    border: 2px solid #8d6e63;
}
.slide-buttons .btn-primary:hover {
    background-color: transparent;
    color: #8d6e63;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(141, 110, 99, 0.3);
}

/* Контурная кнопка */
.slide-buttons .btn-outline {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
}
.slide-buttons .btn-outline:hover {
    background-color: #fff;
    color: #8d6e63;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

/* Правая часть - изображение товара */
.slide-product-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}
.slide-product-image img {
    max-width: 100%;
    max-height: 450px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
}

/* Стилизация навигационных стрелок */
.wpfable-main-slider .swiper-button-next,
.wpfable-main-slider .swiper-button-prev {
    position: absolute;
    background: #8d6e638a;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 11;
    top: 50%;
    color: #fff;
}
.wpfable-main-slider .swiper-button-next:after,
.wpfable-main-slider .swiper-button-prev:after {
    font-size: 13px;
    font-weight: 100;
    margin-left: 4px;
}
.wpfable-main-slider .swiper-button-next:hover,
.wpfable-main-slider .swiper-button-prev:hover {
    background: #8d6e63; /* Основной цвет сайта */
}

/* Стилизация пагинации (точек) */
.wpfable-main-slider .swiper-pagination-bullet {
    background: #fff;
    opacity: 0.5;
    width: 12px;
    height: 12px;
    transition: all 0.3s ease;
}
.wpfable-main-slider .swiper-pagination-bullet-active {
    opacity: 1;
    background: #8d6e63; /* Основной цвет сайта */
    transform: scale(1.2);
}

/* ========== АНИМАЦИЯ ЭЛЕМЕНТОВ СЛАЙДА ========== */

/* Общие стили для анимируемых элементов */
.swiper-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Анимация заголовка */
.animate-title {
    transition-delay: 0.2s;
}

/* Анимация описания */
.animate-desc {
    transition-delay: 0.4s;
}

/* Анимация кнопок */
.animate-buttons {
    transition-delay: 0.6s;
}

/* Анимация изображения */
.animate-image {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transition-delay: 0.8s;
}

/* Класс, который добавляется при активном слайде */
.swiper-slide-active .swiper-animate {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.swiper-slide-active .animate-image {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Анимация появления при загрузке страницы */
.page-loaded .swiper-slide-active .swiper-animate,
.page-loaded .swiper-slide-active .animate-image {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Адаптивность для мобильных устройств */
@media (max-width: 992px) {
    .slide-content-container {
        flex-direction: column;
        text-align: center;
        padding: 0 1rem;
        gap: 2rem;
    }
    .slide-content {
        max-width: 100%;
    }
    .slide-content h1 {
        font-size: 2.5rem;
        text-align: center;
    }
    .slide-content p {
        text-align: center;
    }
    .slide-buttons {
        justify-content: center;
    }
    .slide-product-image img {
        max-height: 300px;
    }
    .swiper-slide {
        min-height: 500px;
        height: auto;
        padding: 2rem 0;
    }
    
    /* Уменьшаем стрелки на мобильных */
    .wpfable-main-slider .swiper-button-next,
    .wpfable-main-slider .swiper-button-prev {
        width: 40px;
        height: 40px;
    }
    .wpfable-main-slider .swiper-button-next:after,
    .wpfable-main-slider .swiper-button-prev:after {
        font-size: 1.2rem;
    }
}

/* Дополнительные медиа-запросы для очень маленьких экранов */
@media (max-width: 576px) {
    .slide-content h1 {
        font-size: 2rem;
    }
    .slide-content p {
        font-size: 1rem;
    }
    .slide-buttons .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    .slide-buttons {
        flex-direction: column;
        align-items: center;
    }
}