/* Простое мобильное меню - черный фон и черная боковая панель */

/* Черный фон меню */
.simple-mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Черная боковая панель на весь экран как в архиве */
.simple-mobile-menu .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: #000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 10001;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.simple-mobile-menu.open {
    display: block;
    opacity: 1;
}

.simple-mobile-menu.open .sidebar {
    transform: translateX(0);
}

/* Минималистичный крестик для закрытия */
.simple-mobile-menu .close-btn {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10002;
    transition: all 0.2s ease;
}

.simple-mobile-menu .close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ebeb47;
}

.simple-mobile-menu .close-btn::before,
.simple-mobile-menu .close-btn::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 1px;
    background: #fff;
    border-radius: 1px;
    transition: all 0.2s ease;
}

.simple-mobile-menu .close-btn::before {
    transform: rotate(45deg);
}

.simple-mobile-menu .close-btn::after {
    transform: rotate(-45deg);
}

.simple-mobile-menu .close-btn:hover::before,
.simple-mobile-menu .close-btn:hover::after {
    background: #ebeb47;
}

/* Минималистичный дизайн меню */
.simple-mobile-menu .menu-links {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    gap: 8px;
    z-index: 10001;
}

.simple-mobile-menu .menu-links a {
    display: block;
    color: #fff;
    text-decoration: none;
    font-size: 20px;
    font-weight: 300;
    padding: 16px 0;
    margin: 0;
    border-radius: 0;
    transition: all 0.2s ease;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    width: 100%;
    max-width: 300px;
    letter-spacing: 0.5px;
}

.simple-mobile-menu .menu-links a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ebeb47;
    transform: none;
}

.simple-mobile-menu .menu-links a:last-of-type {
    border-bottom: none;
}

/* Минималистичные стили для wishlist и cart */
.simple-mobile-menu .menu-links a[href*="wishlist"] {
    color: #ff6699;
    border-bottom-color: rgba(255, 102, 153, 0.3);
}

.simple-mobile-menu .menu-links a[href*="wishlist"]:hover {
    color: #ff6699;
    background: rgba(255, 102, 153, 0.1);
}

.simple-mobile-menu .menu-links a[href*="cart"] {
    color: #ffcc00;
    border-bottom-color: rgba(255, 204, 0, 0.3);
}

.simple-mobile-menu .menu-links a[href*="cart"]:hover {
    color: #ffcc00;
    background: rgba(255, 204, 0, 0.1);
}

/* Минималистичный переключатель языков */
.simple-mobile-menu .menu-links .language-switcher {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
}

.simple-mobile-menu .menu-links .language-switcher a {
    font-size: 16px;
    padding: 12px 20px;
    margin: 0;
    display: inline-block;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    text-align: center;
    border-radius: 25px;
    transition: all 0.2s ease;
    min-width: 50px;
    font-weight: 300;
    letter-spacing: 1px;
}

.simple-mobile-menu .menu-links .language-switcher a:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ebeb47;
    color: #ebeb47;
    transform: none;
}

.simple-mobile-menu .menu-links .language-switcher a.active {
    background: #ebeb47;
    border-color: #ebeb47;
    color: #000;
}

/* Блокировка прокрутки */
body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* Анимация кнопки меню */
.btn-menu.active .icon-bar:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.btn-menu.active .icon-bar:nth-child(2) {
    opacity: 0;
}

.btn-menu.active .icon-bar:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Улучшенный UX для черного хедера */
@media (max-width: 1024px) {
    /* Улучшаем расположение элементов в черном хедере */
    .header__top .container.flexible {
        justify-content: space-between;
        align-items: center;
        padding: 12px 16px;
    }
    
    .header__top .header-menu {
        display: flex;
        align-items: center;
        gap: 12px;
    }
    
    /* Улучшаем стили кнопок в хедере */
    .header__top .header-menu .link {
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 8px 12px;
        border-radius: 8px;
        transition: all 0.3s ease;
        position: relative;
    }
    
    .header__top .header-menu .link:hover {
        background: rgba(255, 255, 255, 0.1);
        transform: scale(1.05);
    }
    
    /* Стилизация wishlist */
    .header__top .btn-wishlist {
        background: rgba(255, 102, 153, 0.2);
        border: 1px solid rgba(255, 102, 153, 0.4);
    }
    
    .header__top .btn-wishlist:hover {
        background: rgba(255, 102, 153, 0.3);
        border-color: rgba(255, 102, 153, 0.6);
    }
    
    .header__top .btn-wishlist span {
        color: #ff6699;
        font-weight: 600;
        font-size: 14px;
    }
    
    /* Стилизация cart */
    .header__top .btn-cart {
        background: rgba(235, 235, 71, 0.15);
        border: 1px solid rgba(235, 235, 71, 0.5);
    }
    
    .header__top .btn-cart:hover {
        background: rgba(235, 235, 71, 0.25);
        border-color: rgba(235, 235, 71, 0.8);
    }
    
    .header__top .btn-cart span {
        color: #ebeb47 !important;
        font-weight: 700 !important;
        font-size: 14px !important;
        text-shadow: 0 0 25px rgba(235, 235, 71, 1), 0 0 10px rgba(235, 235, 71, 0.8) !important;
        filter: brightness(1.3) !important;
    }
    
    /* Стилизация кнопки меню */
    .header__top .btn-menu {
        background: #ebeb47;
        border: 2px solid #ebeb47;
        border-radius: 8px;
        padding: 8px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3px;
        transition: all 0.3s ease;
        cursor: pointer;
        min-width: 44px;
        min-height: 44px;
    }
    
    .header__top .btn-menu:hover {
        background: #d4d43a;
        border-color: #d4d43a;
        transform: scale(1.1);
    }
    
    .header__top .btn-menu.active {
        background: #000;
        border-color: #ebeb47;
    }
    
    .header__top .btn-menu .icon-bar {
        width: 18px;
        height: 2px;
        background: #000;
        border-radius: 1px;
        transition: all 0.3s ease;
    }
    
    .header__top .btn-menu.active .icon-bar {
        background: #ebeb47;
    }
    
    /* Скрываем текст "Menu" на мобилке */
    .header__top .header-menu .link:last-child {
        font-size: 0;
    }
    
    /* Улучшаем логотип */
    .header__top .header-logo img {
        height: 28px;
        width: auto;
    }
    
    /* Улучшаем языковой переключатель */
    .header__top .btn-lang {
        padding: 6px 12px;
        border-radius: 6px;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        color: #fff;
        font-weight: 600;
        font-size: 14px;
        transition: all 0.3s ease;
    }
    
    .header__top .btn-lang:hover {
        background: rgba(255, 255, 255, 0.2);
        border-color: rgba(255, 255, 255, 0.4);
    }
    
    /* Счетчики товаров */
    .header__top .header-menu .link span {
        font-size: 12px;
        font-weight: 700;
        padding: 2px 6px;
        border-radius: 10px;
        min-width: 18px;
        text-align: center;
        line-height: 1.2;
    }
    
    /* Улучшаем SVG иконки */
    .header__top .header-menu .link svg {
        width: 16px;
        height: 16px;
        transition: all 0.3s ease;
    }
    
    .header__top .btn-wishlist svg path {
        fill: #ff6699;
    }
    
    .header__top .btn-cart svg path {
        fill: white !important;
        filter: none !important;
    }
    
    /* Дополнительное усиление для очень узких экранов */
    @media (max-width: 480px) {
        .header__top .btn-cart span {
            color: #ebeb47 !important;
            font-size: 13px !important;
            text-shadow: 0 0 35px rgba(235, 235, 71, 1), 0 0 15px rgba(235, 235, 71, 1) !important;
            filter: brightness(1.5) !important;
        }
    }
}
