/* Стилі для слайдера акційних пропозицій */

.promotions-section {
    background: #f8f9fa;
    padding: 30px 0;
}

.promotions-section .section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.promotions-section .section-subtitle {
    font-size: 1rem;
    color: #666;
}

/* Показ блоків на різних пристроях */
.promotions-section.mobile-only {
    display: none;
}

.promotions-section.desktop-only {
    display: block;
}

/* Контейнер слайдера */
.promotions-slider-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 50px;
}

.promotions-slider {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 20px;
    padding: 10px 0 20px;
    scrollbar-width: none;
}

.promotions-slider::-webkit-scrollbar {
    display: none;
}

/* Картки в слайдері промо - desktop */
.promotions-slider .product-card {
    flex: 0 0 200px;
    min-width: 200px;
    max-width: 200px;
    height: 340px;
    max-height: 340px;
}

/* Навігаційні елементи */
.slider-nav-controls {
    display: none;
    gap: 15px;
    justify-content: center;
    margin-bottom: 20px;
}

/* Кнопки навігації - desktop по боках */
.promotions-section.desktop-only .promo-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: white;
    border: 2px solid #e91e63;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    color: #e91e63;
}

.promotions-section.desktop-only .promo-nav-btn:hover {
    background: #e91e63;
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.promotions-section.desktop-only .promo-nav-btn svg path {
    stroke: currentColor;
}

.promotions-section.desktop-only .promo-prev-btn {
    left: 0;
}

.promotions-section.desktop-only .promo-next-btn {
    right: 0;
}

/* Кнопки навігації - загальні стилі */
.promo-nav-btn {
    width: 40px;
    height: 40px;
    background: white;
    border: 2px solid #e91e63;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #e91e63;
}

.promo-nav-btn:hover {
    background: #e91e63;
    color: white;
    transform: scale(1.1);
}

.promo-nav-btn svg {
    width: 24px;
    height: 24px;
}

.promo-nav-btn svg path {
    stroke: currentColor;
}

/* Сторінка акцій - сітка карток */
.products-grid--sale {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
    justify-items: center;
}

.products-grid--sale .product-card {
    width: 100%;
    max-width: 240px;
}

/* Кнопка "Переглянути всі" */
.promotions-actions {
    text-align: center;
}

.promo-view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: white;
    border: 2px solid #e91e63;
    color: #e91e63;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(233, 30, 99, 0.1);
}

.promo-view-all:hover {
    background: #e91e63;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.25);
}

.promo-view-all svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.promo-view-all:hover svg {
    transform: translateX(4px);
}

/* Адаптивність сторінки акцій */
@media (max-width: 1200px) {
    .products-grid--sale {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .products-grid--sale {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Адаптивність */
@media (max-width: 768px) {
    .promotions-section.mobile-only {
        display: block;
    }
    
    .promotions-section.desktop-only {
        display: none;
    }
    
    .promotions-slider-container {
        padding: 0;
    }
    
    .promotions-slider {
        gap: 15px;
        padding: 10px 15px 0px;
    }
    
    .promotions-slider .product-card {
        flex: 0 0 calc(50% - 7.5px);
        min-width: calc(50% - 7.5px);
        max-width: calc(50% - 7.5px);
        height: 280px;
        max-height: 280px;
    }
    
    .promotions-section .section-subtitle {
        margin-bottom: 0;
    }
    
    .slider-nav-controls {
        display: flex;
    }
    
    .promo-nav-btn {
        width: 36px;
        height: 36px;
    }
    
    .promo-nav-btn svg {
        width: 20px;
        height: 20px;
    }
    
    .products-grid--sale {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .promotions-slider .product-card {
        flex: 0 0 calc(50% - 7.5px);
        min-width: calc(50% - 7.5px);
        max-width: calc(50% - 7.5px);
        height: 280px;
        max-height: 280px;
    }
    
    .products-grid--sale {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .promo-nav-btn {
        width: 34px;
        height: 34px;
    }
}


