/* ================================
   ОСНОВНІ АНІМАЦІЇ ТА ЕФЕКТИ
   ================================ */

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes bounceGentle {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse {
    0%, 100% {
        transform: translateX(-50%) scale(1);
    }
    50% {
        transform: translateX(-50%) scale(1.05);
    }
}

@keyframes fadeInVideo {
    from { 
        opacity: 0; 
        transform: translateY(20px);
    }
    to { 
        opacity: 1; 
        transform: translateY(0);
    }
}

/* ================================
   ГРАДІЄНТИ ТА ЕФЕКТИ
   ================================ */

.gradient-warm {
    background: linear-gradient(135deg, #8B4513 0%, #D2691E 50%, #B22222 100%);
}

.text-shadow {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* ================================
   КАРУСЕЛЬ ТОВАРІВ
   ================================ */

.image-carousel {
    position: relative;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.3s ease;
}

.carousel-image {
    width: 100%;
    flex-shrink: 0;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(139, 69, 19, 0.8);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
}

.carousel-btn:hover {
    background: rgba(139, 69, 19, 1);
}

.carousel-prev {
    left: 8px;
}

.carousel-next {
    right: 8px;
}

.carousel-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgb(243 58 58 / 50%);
    cursor: pointer;
    transition: all 0.3s;
}

.carousel-dot.active {
    background: black;
}

/* ================================
   ХАРАКТЕРИСТИКИ ТОВАРІВ
   ================================ */

.specs-icon {
    transition: transform 0.3s ease;
}

.specs-icon.rotate {
    transform: rotate(180deg);
}

/* ================================
   СПОВІЩЕННЯ
   ================================ */

.notification-banner {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 30px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    min-width: 300px;
    max-width: 90%;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.notification-banner.show {
    opacity: 1;
    visibility: visible;
}

.notification-banner .name {
    font-weight: bold;
    color: #667eea;
    font-size: 16px;
}

.notification-banner .message {
    color: #333;
    font-size: 15px;
    margin-top: 3px;
}

.notification-banner .count {
    font-weight: bold;
    color: #e74c3c;
}

.notification-banner.final {
    background: rgba(231, 76, 60, 0.95);
    animation: pulse 1s infinite;
}

.notification-banner.final .message {
    color: white;
    font-weight: bold;
    font-size: 16px;
    text-transform: uppercase;
}

/* ================================
   ВІДГУКИ
   ================================ */

.review-product-image {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    max-height: 300px;
}

.review-product-image img {
    height: auto;
    max-height: 380px;
    transition: transform 0.3s ease;
}

.review-product-image img:hover {
    transform: scale(1.05);
}

/* ================================
   ВІДЕО СЕКЦІЯ
   ================================ */

.video-section {
    max-width: 350px;
    margin: 0 auto;
    animation: fadeInVideo 0.8s ease-out;
}

#mainVideo {
    transition: all 0.3s ease;
    border-radius: 12px;
}

#mainVideo:hover {
    transform: scale(1.02);
}

/* ================================
   ФУТЕР
   ================================ */

.footer__link {
    color: #F5DEB3;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.footer__link:hover {
    color: #D2691E;
}

/* ================================
   АДАПТИВНІСТЬ
   ================================ */

@media (max-width: 768px) {
    .review-product-image {
        min-height: 360px;
        max-height: 220px;
    }
    
    .review-product-image img {
        max-height: 300px;
        max-width: 320px;
    }
    
    .video-section {
        max-width: 280px;
    }
    
    .absolute.bottom-4 {
        bottom: 8px;
        left: 8px;
        right: 8px;
        padding: 6px 8px;
    }
    
    .absolute.bottom-4 span {
        font-size: 11px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .review-product-image {
        min-height: 180px;
        max-height: 240px;
    }
    
    .review-product-image img {
        max-height: 220px;
        max-width: 380px;
    }
}

@media (min-width: 769px) {
    .video-section {
        max-width: 400px;
    }
}