/* Основной баннер */
#welcome-banner {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    opacity: 1;
    transition: opacity 0.35s ease;
}

/* Скрытое состояние */
#welcome-banner.banner-hidden {
    opacity: 0;
    pointer-events: none;
}

/* Карточка */
.banner-content {
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 420px;
    padding: 25px;
    border-radius: 16px;
    position: relative;
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
    transform: translateY(-20px);
    animation: slideIn 0.4s ease forwards;
}

/* Анимация появления */
@keyframes slideIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Картинка */
.banner-image img {
    width: 100%;
    border-radius: 14px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.banner-image img:hover {
    transform: scale(1.05);
}

/* Информация */
.banner-info {
    text-align: center;
}

/* Метка “Новинка” */
.tag {
    display: inline-block;
    background: linear-gradient(135deg, #ff4d4f, #ff7a45);
    color: #fff;
    padding: 6px 16px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(255, 77, 79, 0.4);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Название и цена */
.banner-info h1 {
    font-size: 28px;
    margin: 12px 0 5px;
    font-weight: 700;
    color: #111;
}

.banner-info h2 {
    margin: 10px 0 20px;
    font-size: 24px;
    font-weight: 700;
    color: #007bff;
}

/* Кнопка “Перейти к товару” */
.banner-btn {
    display: inline-block;
    background: linear-gradient(135deg, #007bff, #005fcc);
    color: #fff;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 6px 15px rgba(0,123,255,0.3);
    transition: all 0.3s ease;
}

.banner-btn:hover {
    background: linear-gradient(135deg, #005fcc, #007bff);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,123,255,0.4);
}

/* Кнопка закрытия */
.close-btn {
    position: absolute;
    right: 16px;
    top: 16px;
    background: #ff4d4f;
    border: none;
    font-size: 32px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 6px 15px rgba(255,77,79,0.4);
    transition: all 0.3s ease;
}

.close-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 25px rgba(255,77,79,0.5);
}

/* Адаптация под мобильные телефоны */
@media (max-width: 480px) {
    .banner-content {
        max-width: 90%;
        padding: 18px;
        gap: 15px;
    }

    .banner-info h1 {
        font-size: 22px;
    }

    .banner-info h2 {
        font-size: 20px;
        margin: 8px 0 15px;
    }

    .banner-btn {
        padding: 12px 20px;
        font-size: 14px;
    }

    .tag {
        padding: 5px 12px;
        font-size: 12px;
    }

    .close-btn {
        font-size: 28px;
        width: 40px;
        height: 40px;
        right: 12px;
        top: 12px;
    }

    .banner-image img:hover {
        transform: none;
    }
}


