/* Super Extra Product Slider Styles */

.sep-slider-container {
    background: #f8f3eb;
    border-radius: 20px;
    padding: 30px;
    margin: 30px 0;
    position: relative;
    overflow: hidden;
}


/* Header with Navigation */

.sep-header-with-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0px;
}

.sep-slider-title {
    font-size: 22px;
    font-weight: 500;
    color: #8B4513;
    margin: 0;
    text-align: left;
}

.sep-slider-title-add-custom {
    font-size: 24px;
}

.sep-navigation-arrows {
    display: flex;
    gap: 10px;
}

.sep-navigation-arrows .sep-nav-arrow {
    position: static;
    transform: none;
    background: rgba(139, 69, 19, 0.1);
    color: #8B4513;
    border: 2px solid rgba(139, 69, 19, 0.2);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sep-navigation-arrows .sep-nav-arrow:hover {
    background: rgba(139, 69, 19, 0.2);
    border-color: rgba(139, 69, 19, 0.4);
    transform: scale(1.05);
}

.sep-navigation-arrows .sep-nav-arrow svg {
    width: 20px;
    height: 20px;
}

.sep-slider-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
}

.sep-slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 20px;
}

.sep-product-card {
    flex: 0 0 calc(25% - 15px);
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.sep-product-card:hover {}

.sep-product-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

.sep-product-name {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.2em !important;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sep-product-price {
    font-size: 20px;
    font-weight: 700;
    color: #8B4513;
    margin-bottom: 15px;
}

.sep-product-price .woocommerce-Price-amount {
    font-size: 20px;
}

.sep-cart-controls {
    display: flex;
    margin-top: auto !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 40px;
}

.sep-quantity-form {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.sep-quantity-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: none;
    background: #8B4513;
    color: white;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.sep-quantity-btn:hover {
    background: #A0522D;
    transform: scale(1.1);
}

.sep-quantity-btn:active {
    transform: scale(0.95);
}

.sep-quantity-display {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    min-width: 30px;
    text-align: center;
}

.sep-add-btn {
    background: #8B4513;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sep-add-btn svg {
    width: 16px;
    height: 16px;
}

.sep-add-btn:hover {
    background: #A0522D;
    transform: scale(1.1);
}


/* Навигационные стрелки */

.sep-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(139, 69, 19, 0.8);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sep-nav-arrow:hover {
    background: rgba(139, 69, 19, 1);
    transform: translateY(-50%) scale(1.1);
}

.sep-nav-arrow.prev {
    left: -25px;
}

.sep-nav-arrow.next {
    right: -25px;
}


/* Точки навигации */

.sep-dots-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 25px;
}

.sep-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(139, 69, 19, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sep-dot.active,
.sep-dot:hover {
    background: #8B4513;
    transform: scale(1.2);
}


/* Адаптивность */

@media (max-width: 1200px) {
    .sep-product-card {
        flex: 0 0 calc(33.333% - 15px);
    }
}

@media (max-width: 768px) {
.sep-quickview-slider-container .swiper-horizontal {
    padding-bottom: 50px;
}
    .sep-product-image {
        height: 150px;
    }


    .sep-product-card {
        flex: 0 0 calc(50% - 10px);
    }
    .sep-slider-title {
        font-size: 24px;
        text-align: center;
    }
    .sep-slider-container {
        padding: 20px;
    }
    .sep-nav-arrow {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    .sep-nav-arrow.prev {
        left: -20px;
    }
    .sep-nav-arrow.next {
        right: -20px;
    }
}

@media (max-width: 480px) {
    .sep-product-card {
        flex: 0 0 calc(50% - 10px);
        min-height: 280px;
    }
    .sep-slider-title {
        font-size: 20px;
    }
    .sep-product-name {
        font-size: 16px;
        min-height: 40px;
    }
    .sep-product-price {
        font-size: 18px;
    }
    .sep-quantity-btn {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
    .sep-nav-arrow {
        display: none;
    }
}


/* Анимации загрузки */

.sep-slider-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

.sep-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #8B4513;
    border-radius: 50%;
    animation: sep-spin 1s linear infinite;
}

@keyframes sep-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}


/* Эффекты при добавлении в корзину */

.sep-product-card.adding-to-cart {
    opacity: 0.7;
    pointer-events: none;
}

.sep-product-card.added-to-cart {
    background: #f0fff0;
    border: 2px solid #90EE90;
}

.sep-product-card.added-to-cart .sep-add-btn {
    background: #90EE90;
    color: #333;
}


/* Скрытие элементов при отсутствии товаров */

.sep-slider-container.no-products {
    display: none;
}


/* Стили для сообщений */

.sep-message {
    padding: 15px;
    border-radius: 10px;
    margin: 20px 0;
    text-align: center;
    font-weight: 600;
}

.sep-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.sep-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.sep-message.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}


/* Swiper.js Customization */

.sep-slider-container .swiper {
    overflow: visible;
}

.sep-slider-container .swiper-wrapper {
    align-items: stretch;
}

.sep-slider-container .swiper-slide {
    height: auto;
}


/* Swiper Navigation */

.sep-swiper-next,
.sep-swiper-prev {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(139, 69, 19, 0.8);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sep-swiper-next:hover,
.sep-swiper-prev:hover {
    background: rgba(139, 69, 19, 1);
    transform: translateY(-50%) scale(1.1);
}

.sep-swiper-prev {
    left: -20px;
}

.sep-swiper-next {
    right: -20px;
}

.sep-swiper-next::after,
.sep-swiper-prev::after {
    font-size: 18px;
    color: white;
}


/* Swiper Pagination */

.sep-swiper-pagination {
    position: static;
    margin-top: 20px;
    text-align: center;
}

.sep-swiper-pagination .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(139, 69, 19, 0.3);
    opacity: 1;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.sep-swiper-pagination .swiper-pagination-bullet-active {
    background: #8B4513;
    transform: scale(1.2);
}


/* Анимация загрузки */

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}