/* Файл: custom-header.css */

/* ==================== НЕМЕДЛЕННОЕ ОПРЕДЕЛЕНИЕ ТИПА КЛИЕНТА (СТИЛИ) ==================== */

/* B2B и Partner режим - ЗЕЛЕНЫЙ */
body.b2b-mode, html.b2b-mode {
	--primary-color: #2C5530 !important;
	--secondary-color: #1a3d1e !important;
	--accent-color: #1a3d1e !important;
	--background-color: #e8f2e9 !important;
	--text-color: #1a3d1e !important;
}

body.b2b-mode .custom-header,
body.partner-mode .custom-header,
html.b2b-mode body .custom-header,
html.partner-mode body .custom-header {
	background-color: #e8f2e9 !important;
}

body.b2b-mode .custom-nav-item,
body.partner-mode .custom-nav-item,
html.b2b-mode .custom-nav-item,
html.partner-mode .custom-nav-item {
	background: linear-gradient(145deg, #2C5530 0%, #1a3d1e 50%, #0d2910 100%) !important;
	color: white !important;
	border-color: #4CAF50 !important;
}

body.b2b-mode .customer-type-indicator,
body.partner-mode .customer-type-indicator,
html.b2b-mode .customer-type-indicator,
html.partner-mode .customer-type-indicator {
	background: #2C5530 !important;
	color: white !important;
	border-color: #1a3d1e !important;
}

body.b2b-mode .custom-icon,
body.partner-mode .custom-icon,
html.b2b-mode .custom-icon,
html.partner-mode .custom-icon {
	stroke: #2C5530 !important;
}

/* B2C режим - МЕДОВЫЙ */
body:not(.b2b-mode):not(.partner-mode), html:not(.b2b-mode):not(.partner-mode) {
	--primary-color: #E6A017 !important;
	--secondary-color: #D2691E !important;
	--accent-color: #8B4513 !important;
	--background-color: #f4e6d1 !important;
	--text-color: #8B4513 !important;
}

.custom-header {
	background-color: #f4e6d1 !important;
}

.custom-nav-item {
	background: linear-gradient(145deg, #F5E6B8 0%, #E8D49A 50%, #DBC078 100%) !important;
	color: #8B4513 !important;
	border-color: #D4B570 !important;
}

.customer-type-indicator {
	background: #E6A017 !important;
	color: white !important;
	border-color: #D2691E !important;
}

.custom-icon {
	stroke: #E6A017 !important;
}


/* ==================== ФИКСИРОВАННЫЕ РАЗМЕРЫ ДЛЯ СТАБИЛЬНОСТИ ==================== */
.custom-nav-item[data-lang-key="nav-torten"] { min-width: 140px !important; max-width: 140px !important; }
.custom-nav-item[data-lang-key="nav-mini"] { min-width: 100px !important; max-width: 100px !important; }
.custom-nav-item[data-lang-key="nav-kleine"] { min-width: 160px !important; max-width: 160px !important; }
.custom-nav-item[data-lang-key="nav-schnitten"] { min-width: 180px !important; max-width: 180px !important; }
.custom-nav-item[data-lang-key="nav-ostern"] { min-width: 80px !important; max-width: 80px !important; }
.custom-nav-item[data-lang-key="nav-theken"] { min-width: 150px !important; max-width: 150px !important; }
.custom-nav-item[data-lang-key="nav-verpackung"] { min-width: 110px !important; max-width: 110px !important; }
.custom-nav-item[data-lang-key="nav-gebaeck"] { min-width: 200px !important; max-width: 200px !important; }
.custom-nav-item[data-lang-key="nav-dekor"] { min-width: 100px !important; max-width: 100px !important; }
.customer-type-label { min-width: 140px !important; max-width: 140px !important; text-align: center !important; white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important; display: inline-block !important; }
.customer-type-indicator { min-width: 160px !important; max-width: 160px !important; justify-content: center !important; }
.custom-search-text { min-width: 60px !important; text-align: center !important; }
.custom-nav-item { text-overflow: ellipsis !important; overflow: hidden !important; white-space: nowrap !important; text-align: center !important; justify-content: center !important; flex-shrink: 0 !important; flex-grow: 0 !important; }

/* ==================== МОБИЛЬНОЕ МЕНЮ (СКРЫТО ПО УМОЛЧАНИЮ) ==================== */
.custom-navigation-mobile,
.mobile-burger-btn,
.mobile-nav-overlay,
.mobile-menu-close-btn {
    display: none;
}

/* МОБИЛЬНЫЕ размеры - пропорционально уменьшенные */
@media (max-width: 1024px) {
    .custom-nav-item[data-lang-key="nav-torten"] { min-width: 110px !important; max-width: 110px !important; }
    .custom-nav-item[data-lang-key="nav-mini"] { min-width: 85px !important; max-width: 85px !important; }
    .custom-nav-item[data-lang-key="nav-kleine"] { min-width: 130px !important; max-width: 130px !important; }
    .custom-nav-item[data-lang-key="nav-schnitten"] { min-width: 145px !important; max-width: 145px !important; }
    .custom-nav-item[data-lang-key="nav-ostern"] { min-width: 70px !important; max-width: 70px !important; }
    .custom-nav-item[data-lang-key="nav-theken"] { min-width: 120px !important; max-width: 120px !important; }
    .custom-nav-item[data-lang-key="nav-verpackung"] { min-width: 95px !important; max-width: 95px !important; }
    .custom-nav-item[data-lang-key="nav-gebaeck"] { min-width: 160px !important; max-width: 160px !important; }
    .custom-nav-item[data-lang-key="nav-dekor"] { min-width: 85px !important; max-width: 85px !important; }
    .customer-type-label { min-width: 110px !important; max-width: 110px !important; }
    .customer-type-indicator { min-width: 130px !important; max-width: 130px !important; }
}
@media (max-width: 768px) {
    .custom-nav-item[data-lang-key="nav-torten"] { min-width: 95px !important; max-width: 95px !important; }
    .custom-nav-item[data-lang-key="nav-mini"] { min-width: 75px !important; max-width: 75px !important; }
    .custom-nav-item[data-lang-key="nav-kleine"] { min-width: 110px !important; max-width: 110px !important; }
    .custom-nav-item[data-lang-key="nav-schnitten"] { min-width: 125px !important; max-width: 125px !important; }
    .custom-nav-item[data-lang-key="nav-ostern"] { min-width: 60px !important; max-width: 60px !important; }
    .custom-nav-item[data-lang-key="nav-theken"] { min-width: 100px !important; max-width: 100px !important; }
    .custom-nav-item[data-lang-key="nav-verpackung"] { min-width: 80px !important; max-width: 80px !important; }
    .custom-nav-item[data-lang-key="nav-gebaeck"] { min-width: 140px !important; max-width: 140px !important; }
    .custom-nav-item[data-lang-key="nav-dekor"] { min-width: 70px !important; max-width: 70px !important; }
    .customer-type-label { min-width: 90px !important; max-width: 90px !important; font-size: 10px !important; }
    .customer-type-indicator { min-width: 110px !important; max-width: 110px !important; }
}
@media (max-width: 480px) {
    .custom-nav-item[data-lang-key="nav-torten"] { min-width: 80px !important; max-width: 80px !important; }
    .custom-nav-item[data-lang-key="nav-mini"] { min-width: 65px !important; max-width: 65px !important; }
    .custom-nav-item[data-lang-key="nav-kleine"] { min-width: 95px !important; max-width: 95px !important; }
    .custom-nav-item[data-lang-key="nav-schnitten"] { min-width: 105px !important; max-width: 105px !important; }
    .custom-nav-item[data-lang-key="nav-ostern"] { min-width: 50px !important; max-width: 50px !important; }
    .custom-nav-item[data-lang-key="nav-theken"] { min-width: 85px !important; max-width: 85px !important; }
    .custom-nav-item[data-lang-key="nav-verpackung"] { min-width: 70px !important; max-width: 70px !important; }
    .custom-nav-item[data-lang-key="nav-gebaeck"] { min-width: 120px !important; max-width: 120px !important; }
    .custom-nav-item[data-lang-key="nav-dekor"] { min-width: 60px !important; max-width: 60px !important; }
    .customer-type-label { min-width: 75px !important; max-width: 75px !important; font-size: 9px !important; }
    .customer-type-indicator { min-width: 95px !important; max-width: 95px !important; }
}

/* ==================== ОСНОВНЫЕ СТИЛИ ХЕДЕРА ==================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
#topbar, .topbar, .secondary-navigation, .top-navigation, .header-top-navigation { display: none !important; visibility: hidden !important; height: 0 !important; overflow: hidden !important; }

:root {
    --primary-color: #E6A017;
    --secondary-color: #D2691E;
    --accent-color: #8B4513;
    --background-color: #f4e6d1;
    --text-color: #8B4513;
    --b2b-primary: #2C5530;
    --b2b-secondary: #1a3d1e;
    --b2b-accent: #1a3d1e;
    --b2b-background: #e8f2e9;
    --b2b-text: #1a3d1e;
}
body.b2b-mode, body.partner-mode, html.b2b-mode body, html.partner-mode body {
    --primary-color: var(--b2b-primary);
    --secondary-color: var(--b2b-secondary);
    --accent-color: var(--b2b-accent);
    --background-color: var(--b2b-background);
    --text-color: var(--b2b-text);
}
body { font-family: -apple-system, BlinkMacSystemFont, "San Francisco", "SF Pro Text", "Segoe UI", Roboto, Arial, sans-serif; background-color: #f9f6f0; padding-top: 160px; transition: all 0.3s ease; }
#wrapper, .main-content, .content-wrapper, #content, .page-content, main, .container { margin-top: 10px !important; position: relative; z-index: 1; }
body > *:not(.custom-header):first-child { margin-top: 10px; }
.gx-container, .gx-content-wrapper, .product-details-page, .category-page, .product-listing, .category-listing, .product-info, .checkout-page, .account-page { margin-top: 10px !important; padding-top: 10px; }
.custom-header { background-color: var(--background-color); position: fixed; top: 0; left: 0; right: 0; width: 100%; box-shadow: none; border: none; margin: 0; z-index: 999; transition: all 0.4s ease; }
.custom-header.normal { padding: 15px 0 10px 0; transform: translateY(0); }
.custom-header.compact { padding: 8px 0 0 0; transform: translateY(0); }
.custom-header-container { max-width: 1480px; margin: 0 auto; width: 100%; }
.custom-header-top { display: flex; justify-content: space-between; align-items: flex-start; max-width: 1300px; margin: 0 auto; padding: 0 10px; margin-bottom: 20px; width: 100%; position: relative; min-height: 70px; }
.custom-search-container { display: flex; align-items: center; background-color: white; padding: 8px 16px; border-radius: 25px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); cursor: text; transition: width 0.4s ease, box-shadow 0.3s ease; width: 140px; max-width: 300px; flex-shrink: 0; position: relative; overflow: visible; z-index: 15; margin-top: 8px; }
.custom-search-container:hover, .custom-search-container:focus-within { width: 280px; box-shadow: 0 3px 8px rgba(0,0,0,0.15); }
.custom-search-icon { width: 18px; height: 18px; margin-right: 8px; flex-shrink: 0; z-index: 20; position: relative; color: var(--accent-color); }
.custom-search-text { font-size: 14px; color: var(--accent-color); font-weight: 500; white-space: nowrap; transition: opacity 0.2s ease, visibility 0.2s ease; position: absolute; right: 15px; z-index: 20; pointer-events: none; }
.custom-search-input { border: none; outline: none; background: transparent; font-size: 14px; color: var(--accent-color); width: 80px; z-index: 15; position: relative; transition: width 0.4s ease; }
.custom-search-container:hover .custom-search-input, .custom-search-container:focus-within .custom-search-input { width: 200px; }
.custom-search-input::placeholder { color: transparent; }
.custom-logo-container { position: absolute; left: 50%; top: -5px; transform: translateX(-50%); z-index: 5; }
.custom-logo { height: 85px; width: auto; cursor: pointer; transition: all 0.3s ease; max-width: 100%; position: relative; overflow: hidden; }
.custom-logo:hover { transform: scale(1.02); filter: brightness(1.1); }
.custom-header.compact .custom-logo { height: 55px; }
.custom-header.compact .custom-logo-container { top: 4px; }
.custom-header-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; z-index: 10; margin-top: 8px; }
.custom-icon-container { cursor: pointer; transition: all 0.3s ease; padding: 5px; border-radius: 50%; position: relative; }
.custom-icon-container:hover { transform: scale(1.1); background-color: rgba(255, 255, 255, 0.2); }
.custom-icon { width: 24px; height: 24px; stroke: var(--primary-color); stroke-width: 2; fill: none; transition: all 0.3s ease; }
.language-selector { position: relative; display: flex !important; align-items: center; visibility: visible !important; }
.language-toggle { cursor: pointer; transition: all 0.3s ease; padding: 5px; border-radius: 50%; position: relative; background: rgba(255, 255, 255, 0.1); border: 2px solid var(--primary-color); }
.language-toggle:hover { transform: scale(1.1); background-color: rgba(255, 255, 255, 0.2); }
.language-icon { width: 24px; height: 24px; stroke: var(--primary-color); stroke-width: 2; fill: none; transition: all 0.3s ease; }
.language-dropdown { position: absolute; top: 100%; right: 0; background: white; border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,0.15); padding: 8px 0; min-width: 160px; display: none; z-index: 1000; margin-top: 8px; border: 1px solid var(--primary-color); }
.language-dropdown.show { display: block; animation: dropdownFadeIn 0.2s ease; }
@keyframes dropdownFadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
.language-option { display: flex; align-items: center; padding: 10px 14px; text-decoration: none; color: var(--accent-color); font-size: 13px; font-weight: 600; transition: all 0.2s ease; border-left: 3px solid transparent; }
.language-option:hover { background-color: var(--background-color); color: var(--accent-color); border-left-color: var(--primary-color); text-decoration: none; }
.language-option.active { background-color: var(--primary-color); color: white; border-left-color: var(--secondary-color); }
.language-option .icon { margin-right: 8px; font-size: 14px; }
.customer-type-indicator { display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 18px; border: 2px solid var(--primary-color); transition: all 0.3s ease; pointer-events: none; }
body.b2b-mode .customer-type-indicator, body.partner-mode .customer-type-indicator { background: var(--b2b-primary); color: white; border-color: var(--b2b-secondary); }
body.b2b-mode .customer-type-indicator .custom-icon, body.partner-mode .customer-type-indicator .custom-icon { stroke: white; }
body:not(.b2b-mode):not(.partner-mode) .customer-type-indicator { background: var(--primary-color); color: white; border-color: var(--secondary-color); }
body:not(.b2b-mode):not(.partner-mode) .customer-type-indicator .custom-icon { stroke: white; }
.customer-type-label { font-size: 11px; font-weight: 600; transition: all 0.3s ease; white-space: nowrap; }
.custom-cart-container { cursor: pointer; transition: all 0.3s ease; padding: 5px; border-radius: 50%; position: relative; }
.custom-cart-container:hover { transform: scale(1.1); background-color: rgba(255, 255, 255, 0.2); }
.custom-cart-icon { width: 28px; height: 28px; stroke: var(--primary-color); stroke-width: 2; fill: none; }
.cart-badge { position: absolute; top: -2px; right: -2px; background: #dc3545; color: white; border-radius: 50%; width: 18px; height: 18px; font-size: 10px; font-weight: bold; display: none; align-items: center; justify-content: center; border: 2px solid white; min-width: 18px; }
.cart-badge.show { display: flex; }
.custom-navigation { max-width: 1300px; margin: 0 auto; padding: 0 10px 10px 10px; width: 100%; transition: all 0.15s ease; overflow: hidden; background: transparent; }
.custom-header.compact .custom-navigation { max-height: 0; padding: 0 10px; opacity: 0; transform: translateY(0px); }
.custom-nav-item { padding: 6px 3px !important; text-overflow: ellipsis !important; overflow: hidden !important; white-space: nowrap !important; text-align: center !important; justify-content: center !important; flex-shrink: 0 !important; flex-grow: 0 !important; font-size: 10px !important; line-height: 1.2 !important; height: 32px !important; background: linear-gradient(145deg, #F5E6B8 0%, #E8D49A 50%, #DBC078 100%); color: #8B4513; border-radius: 20px; text-decoration: none; font-weight: 600; font-family: -apple-system, BlinkMacSystemFont, "San Francisco", "SF Pro Text", "Segoe UI", Roboto, Arial, sans-serif; transition: all 0.3s ease !important; border: 1px solid #D4B570; position: relative; overflow: hidden; display: flex; align-items: center; box-shadow: 0 2px 4px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.3); }
body.b2b-mode .custom-nav-item, body.partner-mode .custom-nav-item { background: linear-gradient(145deg, #2C5530 0%, #1a3d1e 50%, #0d2910 100%); color: white; border-color: #4CAF50; box-shadow: 0 2px 4px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.2); }
.custom-nav-item::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent); transition: left 0.5s; z-index: 1; }
.custom-nav-item:hover::before { left: 100%; }
.custom-nav-item:hover { color: white !important; background: linear-gradient(145deg, var(--secondary-color) 0%, var(--primary-color) 100%) !important; transform: translateY(-2px) !important; box-shadow: 0 4px 8px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.2) !important; text-shadow: 0 1px 2px rgba(0,0,0,0.3) !important; text-decoration: none !important; }
.custom-nav-menu { display: flex; justify-content: center; align-items: center; gap: 4px !important; flex-wrap: nowrap; overflow: hidden; padding-bottom: 0; }
.custom-nav-item.long-text { font-size: 11px; min-width: 115px; }

@media (max-width: 1024px) {
    body { padding-top: 180px; }
    .custom-logo { height: 70px; }
    .custom-nav-item { min-width: 85px; font-size: 11px; padding: 10px 12px; height: 36px; }
    .custom-nav-item.long-text { font-size: 10px; min-width: 100px; }
    .customer-type-label { display: none; }
}
@media (max-width: 768px) {
    body { padding-top: 60px !important; }
    body.menu-open { overflow: hidden !important; position: fixed !important; width: 100% !important; }

    /* ФИКСИРОВАННЫЙ ХЕДЕР */
    .custom-header, .custom-header.normal, .custom-header.compact {
        padding: 0 !important;
        transform: none !important;
        transition: none !important;
        height: 60px !important;
        position: fixed !important;
        top: 0 !important;
        will-change: auto !important;
    }

    .custom-header-top {
        height: 100%;
        padding: 0 5px !important;
        margin: 0 !important;
        position: relative !important;
        display: flex !important;
        align-items: center !important;
    }

    /* БУРГЕР КНОПКА */
    .mobile-burger-btn {
        display: flex !important;
        width: 40px;
        height: 40px;
        background: var(--primary-color) !important;
        border: none;
        border-radius: 8px;
        cursor: pointer;
        padding: 8px;
        position: absolute;
        left: 10px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1001;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    .mobile-burger-btn span {
        display: block;
        width: 20px;
        height: 2px;
        background: white !important;
        border-radius: 2px;
        margin: 2px 0;
    }

    /* ЛОГОТИП */
    .custom-logo-container {
        position: absolute !important;
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: auto;
        z-index: 1 !important;
    }
    .custom-logo { height: 45px !important; }

    /* ПОИСК */
    .custom-search-container {
        position: absolute !important;
        left: 55px !important; /* <<< ИСПРАВЛЕНО: Установлена корректная позиция слева */
        top: 50% !important;
        transform: translateY(-50%) !important;
        width: 85px !important;
        max-width: 85px !important;
        z-index: 2 !important;
        margin: 0 !important;
    }
    .custom-search-icon { display: none !important; }
    .custom-search-text {
        font-size: 11px !important;
        font-weight: 600 !important;
        visibility: visible;
    }

    /* ПРАВАЯ ПАНЕЛЬ */
    .custom-header-right {
        position: absolute !important;
        right: 10px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        z-index: 2 !important;
        margin: 0 !important;
        gap: 8px;
    }
    .custom-header-right .custom-icon,
    .custom-header-right .custom-cart-icon {
        stroke: var(--accent-color) !important;
    }

    /* ОВЕРЛЕЙ */
    .mobile-nav-overlay {
        display: block !important;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0,0,0,0.6);
        z-index: 10000 !important;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }
    .mobile-nav-overlay.active {
        opacity: 1;
        pointer-events: auto;
    }

    /* СКРЫВАЕМ ДЕСКТОП ЭЛЕМЕНТЫ */
    .language-selector,
    .customer-type-selector,
    .custom-navigation,
    .custom-navigation-desktop {
        display: none !important;
    }

    /* МОБИЛЬНОЕ БОКОВОЕ МЕНЮ */
    .custom-navigation-mobile {
        display: block !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        transform: translateX(-100%);
        width: 300px !important;
        max-width: 85% !important;
        height: 100% !important;
        background-color: var(--background-color) !important;
        padding: 60px 15px 20px 15px !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
        transition: transform 0.3s ease !important;
        box-shadow: 2px 0 15px rgba(0,0,0,0.2) !important;
        z-index: 10001 !important;
    }
    .custom-navigation-mobile.open {
        transform: translateX(0) !important;
    }

    /* КАТЕГОРИИ В МЕНЮ */
    .custom-navigation-mobile .custom-nav-menu {
        flex-direction: column !important;
        gap: 10px !important;
        align-items: stretch !important;
    }
    .custom-navigation-mobile .custom-nav-item {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 48px !important;
        font-size: 13px !important;
        padding: 12px 16px !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        line-height: 1.3 !important;
        text-align: center !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        /* ГРАДИЕНТНЫЙ ДИЗАЙН */
        background: linear-gradient(145deg, #F5E6B8 0%, #E8D49A 50%, #DBC078 100%) !important;
        color: #8B4513 !important;
        border-radius: 22px !important;
        border: 2px solid #D4B570 !important;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.3) !important;
        text-shadow: 0 1px 2px rgba(0,0,0,0.2) !important;
        font-weight: 700 !important;
        position: relative;
        overflow: hidden;
    }
    .custom-navigation-mobile .custom-nav-item::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
        transition: left 0.6s;
    }
    .custom-navigation-mobile .custom-nav-item:active::before {
        left: 100%;
    }
    .custom-navigation-mobile .custom-nav-item:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
        box-shadow: 0 1px 2px rgba(0,0,0,0.1) !important;
        background: linear-gradient(145deg, #E8D49A 0%, #DBC078 50%, #C9A962 100%) !important;
    }

    /* B2B РЕЖИМ ДЛЯ КАТЕГОРИЙ */
    body.b2b-mode .custom-navigation-mobile .custom-nav-item,
    body.partner-mode .custom-navigation-mobile .custom-nav-item {
        background: linear-gradient(145deg, #2C5530 0%, #1a3d1e 50%, #0d2910 100%) !important;
        color: white !important;
        border-color: #4CAF50 !important;
    }
    body.b2b-mode .custom-navigation-mobile .custom-nav-item::before,
    body.partner-mode .custom-navigation-mobile .custom-nav-item::before {
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    }
    body.b2b-mode .custom-navigation-mobile .custom-nav-item:active,
    body.partner-mode .custom-navigation-mobile .custom-nav-item:active {
        background: linear-gradient(145deg, #1a3d1e 0%, #0d2910 50%, #06150a 100%) !important;
    }

    /* СЕКЦИИ МЕНЮ */
    .mobile-menu-section {
        display: block !important;
        margin-top: 20px;
        padding-top: 20px;
        border-top: 2px solid rgba(0,0,0,0.1);
    }
    .mobile-menu-section-title {
        font-size: 12px;
        font-weight: 700;
        color: var(--accent-color);
        margin-bottom: 10px;
        text-transform: uppercase;
    }

    /* ОПЦИИ МЕНЮ (ЯЗЫКИ, ТИП КЛИЕНТА) */
    .mobile-menu-option {
        display: flex !important;
        align-items: center;
        padding: 12px 16px;
        border-radius: 22px !important;
        margin-bottom: 8px;
        cursor: pointer;
        gap: 12px;
        transition: all 0.3s ease;
        /* ГРАДИЕНТНЫЙ ДИЗАЙН КАК У КАТЕГОРИЙ */
        background: linear-gradient(145deg, #F5E6B8 0%, #E8D49A 50%, #DBC078 100%) !important;
        color: #8B4513 !important;
        border: 2px solid #D4B570 !important;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1), inset 0 1px 0 rgba(255,255,255,0.3) !important;
        text-shadow: 0 1px 2px rgba(0,0,0,0.2) !important;
        font-weight: 600 !important;
        position: relative;
        overflow: hidden;
    }
    .mobile-menu-option::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
        transition: left 0.6s;
    }
    .mobile-menu-option:active::before {
        left: 100%;
    }
    .mobile-menu-option:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
        background: linear-gradient(145deg, #E8D49A 0%, #DBC078 50%, #C9A962 100%) !important;
    }
    .mobile-menu-option.active {
        background: linear-gradient(145deg, #E8D49A 0%, #DBC078 50%, #C9A962 100%) !important;
        box-shadow: 0 3px 6px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.2) !important;
    }

    /* B2B РЕЖИМ ДЛЯ ОПЦИЙ */
    body.b2b-mode .mobile-menu-option,
    body.partner-mode .mobile-menu-option {
        background: linear-gradient(145deg, #2C5530 0%, #1a3d1e 50%, #0d2910 100%) !important;
        color: white !important;
        border-color: #4CAF50 !important;
        text-shadow: 0 1px 2px rgba(0,0,0,0.3) !important;
    }
    body.b2b-mode .mobile-menu-option::before,
    body.partner-mode .mobile-menu-option::before {
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    }
    body.b2b-mode .mobile-menu-option:active,
    body.partner-mode .mobile-menu-option:active {
        background: linear-gradient(145deg, #1a3d1e 0%, #0d2910 50%, #06150a 100%) !important;
    }
    body.b2b-mode .mobile-menu-option.active,
    body.partner-mode .mobile-menu-option.active {
        background: linear-gradient(145deg, #1a3d1e 0%, #0d2910 50%, #06150a 100%) !important;
    }

    .mobile-menu-option .icon {
        flex-shrink: 0;
        width: 20px;
        height: 20px;
        stroke: currentColor !important;
        fill: none;
    }
    .mobile-menu-option .label {
        color: inherit !important;
        font-weight: 700 !important;
        flex: 1;
        text-align: center !important;
    }

    /* КНОПКА ЗАКРЫТИЯ */
    .mobile-menu-close-btn {
        display: block !important;
        position: absolute;
        top: 10px;
        left: 10px;
        width: 40px;
        height: 40px;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 10002;
    }
    .mobile-menu-close-btn span {
        display: block;
        position: absolute;
        top: 50%;
        left: 50%;
        width: 24px;
        height: 3px;
        background: var(--accent-color);
        border-radius: 2px;
    }
    .mobile-menu-close-btn span:nth-child(1) {
        transform: translate(-50%, -50%) rotate(45deg);
    }
    .mobile-menu-close-btn span:nth-child(2) {
        transform: translate(-50%, -50%) rotate(-45deg);
    }
}

@media (max-width: 480px) {
    .custom-navigation-mobile {
        width: 280px !important;
    }
}