/* Основные переменные цветов - Оранжево-серая палитра */
:root {
    --primary-orange: #FF6B35;
    --secondary-orange: #FF8C42;
    --light-orange: #FFB88C;
    --dark-gray: #2C3E50;
    --medium-gray: #5D6D7E;
    --light-gray: #95A5A6;
    --very-light-gray: #ECF0F1;
    --white: #FFFFFF;
    --black: #1A1A1A;
    --shadow: rgba(0, 0, 0, 0.1);
}

/* Сброс стилей */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Prevent images from overflowing their containers */
img {
    max-width: 100%;
    height: auto;
}

/* Exception for product card images - they need fixed height and contain fit */
.product-card .product-image img {
    height: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    /* Скрываем стрелки скроллбара */
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 107, 53, 0.3) transparent;
    /* Отступ для якорных ссылок, чтобы контент не перекрывался шапкой */
    scroll-padding-top: 77.5px;
}

/* Скрываем стрелки скроллбара для WebKit браузеров */
html::-webkit-scrollbar {
    width: 8px;
}

html::-webkit-scrollbar-track {
    background: transparent;
}

html::-webkit-scrollbar-thumb {
    background: rgba(255, 107, 53, 0.3);
    border-radius: 4px;
}

html::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 107, 53, 0.5);
}

/* Убираем стрелки вверх/вниз */
html::-webkit-scrollbar-button {
    display: none;
    width: 0;
    height: 0;
}

/* Анимация градиента для disclaimer banner */
@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

body {
    font-family: Arial, sans-serif;
    color: var(--dark-gray);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    position: relative;
    margin: 0;
    padding: 0;
}

/* Контейнер */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Контейнер внутри навигации - центрированный с ограничением ширины */
.navbar > .container {
    max-width: 1400px;
    padding: 0 20px;
    padding-right: 80px; /* Увеличенный отступ справа для кнопки "Войти" и других элементов */
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    overflow: visible;
}

@media (max-width: 768px) {
    .navbar > .container {
        padding: 0 25px;
        padding-right: 30px; /* Дополнительный отступ справа на мобильных */
    }
}

@media (max-width: 480px) {
    .navbar > .container {
        padding: 0 20px;
        padding-right: 25px; /* Дополнительный отступ справа на маленьких экранах */
    }
}

/* Disclaimer Banner */
.disclaimer-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100vw;
    max-width: 100vw;
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--secondary-orange) 50%, var(--primary-orange) 100%);
    background-size: 200% 100%;
    animation: gradientShift 3s ease infinite;
    color: var(--white);
    padding: 0.425rem 0;
    text-align: center;
    z-index: 1001;
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.3);
    box-sizing: border-box;
    overflow: hidden;
    overflow-x: hidden;
    margin: 0;
}

.disclaimer-banner p {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.disclaimer-banner a {
    color: var(--white);
    text-decoration: underline;
    font-weight: 600;
    transition: opacity 0.3s ease;
}

.disclaimer-banner a:hover {
    opacity: 0.8;
}

/* Responsive disclaimer banner */
@media (max-width: 768px) {
    .disclaimer-banner {
        padding: 0.3rem 0.5rem;
    }
    
    .disclaimer-banner p {
        font-size: 0.7125rem;
        line-height: 1.4;
    }
    
    .navbar {
        top: 17.5px;
    }
}

@media (max-width: 480px) {
    .disclaimer-banner {
        padding: 0.25rem 0.375rem;
        max-width: 100vw;
        left: 0;
        right: 0;
    }
    
    .disclaimer-banner p {
        font-size: 0.675rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .navbar {
        top: 16px;
        max-width: 100vw;
        left: 0;
        right: 0;
        padding: 1rem 0 !important;
    }
    
    /* Улучшенная мобильная навигация для маленьких экранов */
    .nav-wrapper {
        padding: 0.75rem 10px !important;
        gap: 10px !important;
    }
    
    .logo {
        margin-bottom: 12px !important;
        max-width: 160px !important;
    }
    
    .logo-img {
        height: 20px !important;
        max-width: 80px !important;
    }
    
    /* Элементы управления - равномерное распределение */
    .burger {
        margin: 0 3px !important;
    }
    
    /* Кнопки группы - используем gap как у меню */
    .user-auth,
    .cart-icon-container,
    .b2b-switcher {
        margin: 0 !important;
    }
    
    .nav-wrapper > .language-switcher + .user-auth,
    .nav-wrapper > .user-auth + .b2b-switcher,
    .nav-wrapper > .b2b-switcher + .cart-icon-container {
        margin-left: 0.8rem !important;
    }
    
    /* Кнопки на маленьких экранах */
    .user-auth .login-btn,
    .user-auth .logout-btn {
        padding: 0.5rem 1rem !important;
        font-size: 0.8rem !important;
        min-height: 38px !important;
    }
    
    /* Корзина на маленьких экранах */
    .cart-icon {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        min-height: 40px !important;
    }
    
    /* B2B переключатель на маленьких экранах */
    .b2b-switcher-container {
        padding: 0.4rem 0.6rem !important;
    }
    
    .b2b-switcher-toggle {
        width: 36px !important;
        height: 18px !important;
    }
    
    .b2b-switcher-toggle::before {
        width: 14px !important;
        height: 14px !important;
    }
    
    .b2b-switcher-toggle.active::before {
        left: 20px !important;
    }
    
    /* Бургер меню на маленьких экранах */
    .burger {
        width: 40px !important;
        height: 40px !important;
    }
}

/* Навигация */
.navbar {
    position: fixed;
    top: 20px;
    left: 0;
    right: 0;
    width: 100vw;
    max-width: 100vw;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.98) 0%, rgba(52, 73, 94, 0.98) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 0.9rem 0;
    padding-left: 0;
    padding-right: 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), 0 2px 8px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    overflow: visible;
    overflow-x: visible;
    margin: 0;
    border-bottom: 1px solid rgba(255, 107, 53, 0.2);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: visible;
    overflow-x: visible;
    gap: 0.5rem;
    flex-wrap: nowrap;
    position: relative;
}

/* Группа кнопок справа - расстояние между ними как у меню (0.8rem) */
/* Убираем все margin у элементов группы, кроме первого */
.nav-wrapper > .user-auth,
.nav-wrapper > .b2b-switcher,
.nav-wrapper > .cart-icon-container {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Прижимаем группу кнопок к правому краю через первый элемент */
/* Header Search */
.header-search {
    display: flex;
    align-items: center;
    margin: 0 1rem;
}

/* Mobile search - hidden by default on desktop */
.header-search-mobile {
    display: none;
}

/* Desktop search - visible by default */
.header-search-desktop {
    display: flex;
}

.header-search-input {
    padding: 0.4rem 0.8rem;
    border: 1px solid var(--very-light-gray);
    border-radius: 6px;
    font-size: 0.55rem;
    width: 200px;
    transition: all 0.3s ease;
    background: var(--white);
    color: var(--text-dark);
}

.header-search-input:focus {
    outline: none;
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 2px rgba(255, 107, 53, 0.1);
}

.header-search-input::placeholder {
    color: var(--text-light);
    font-size: 0.55rem;
}

/* Search Results Dropdown */
.header-search {
    position: relative;
}

.search-results-dropdown {
    position: fixed;
    top: calc(0.425rem + 20px + 0.9rem + 40px + 5px); /* disclaimer banner height + navbar top + navbar padding + navbar content height + gap */
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    max-width: 100vw;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    max-height: 600px;
    overflow-y: auto;
    padding: 1rem 0;
}

/* Mobile search dropdown positioning */
@media (max-width: 768px) {
    #searchResultsDropdownMobile {
        top: calc(0.425rem + 20px + 0.6rem + 40px + 0.75rem + 0.75rem + 50px) !important; /* disclaimer banner + navbar top + navbar padding + navbar content height + search padding top + search padding bottom + search input height */
        left: 0 !important;
        transform: none !important;
        width: 100vw !important;
        max-width: 100vw !important;
        border-radius: 0 0 8px 8px !important;
    }
    
    /* Позиционирование мобильного поиска относительно navbar */
    .navbar .header-search-mobile {
        order: 2;
    }
}

.search-results-dropdown .search-result-item {
    display: flex;
    align-items: center;
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--very-light-gray);
    cursor: pointer;
    transition: background 0.2s ease;
    gap: 1.5rem;
}

.search-results-dropdown .search-result-item:hover {
    background: var(--very-light-gray);
}

.search-results-dropdown .search-result-item:last-child {
    border-bottom: none;
}

.search-results-dropdown .search-result-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
    flex-shrink: 0;
    background: var(--very-light-gray);
    border-radius: 6px;
    padding: 0.5rem;
}

.search-results-dropdown .search-result-name {
    flex: 1;
    text-align: center;
    font-size: 0.9rem;
    color: var(--dark-gray);
    font-weight: 500;
}

.search-results-dropdown .search-result-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-orange);
    flex-shrink: 0;
    min-width: 100px;
    text-align: right;
}

.search-results-dropdown .search-result-section-title {
    padding: 0.75rem 2rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--medium-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--very-light-gray);
    border-bottom: 2px solid var(--primary-orange);
}

.search-results-dropdown .no-results {
    padding: 2rem;
    text-align: center;
    color: var(--medium-gray);
    font-size: 0.9rem;
}

.search-results-dropdown .search-result-brand {
    background: rgba(255, 107, 53, 0.05);
    padding: 1.5rem 2rem;
}

.search-results-dropdown .search-result-brand:hover {
    background: rgba(255, 107, 53, 0.15);
}

.search-results-dropdown .search-result-brand-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
}

.search-results-dropdown .search-result-brand-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
    background: var(--very-light-gray);
    border-radius: 6px;
    padding: 0.5rem;
}

.search-results-dropdown .search-result-brand-name {
    font-size: 0.9rem;
    color: var(--dark-gray);
    font-weight: 500;
    text-align: center;
}

.search-results-dropdown .search-result-category {
    background: rgba(33, 150, 243, 0.05);
    padding: 0.75rem 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    width: auto;
    min-width: fit-content;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    border-radius: 6px;
}

.search-results-dropdown .search-result-category:hover {
    background: rgba(33, 150, 243, 0.15);
}

.search-results-dropdown .search-result-category-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-orange);
}

.search-results-dropdown .search-result-category-icon svg {
    width: 100%;
    height: 100%;
}

.search-results-dropdown .search-result-category-name {
    font-size: 0.85rem;
    color: var(--dark-gray);
    font-weight: 500;
    white-space: nowrap;
}

.search-results-dropdown .search-result-section-title {
    margin-bottom: 0.5rem;
}

.search-results-dropdown .search-result-categories-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.5rem 0;
    align-items: center;
}

@media (max-width: 768px) {
    .search-results-dropdown {
        top: calc(0.6rem + 35px + 0.9rem + 40px + 5px); /* Adjusted for mobile navbar position */
    }
}

.nav-wrapper > .language-switcher {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Применяем margin-left только для следующих элементов в группе */
.nav-wrapper > .header-search + .language-switcher {
    margin-left: 0 !important;
}

.nav-wrapper > .language-switcher + .user-auth {
    margin-left: 0.8rem !important;
}

.nav-wrapper > .user-auth + .b2b-switcher {
    margin-left: 0.8rem !important;
}

.nav-wrapper > .b2b-switcher + .cart-icon-container {
    margin-left: 0.8rem !important;
}

/* Переопределяем justify-content для размещения меню по центру */

.nav-wrapper {
    justify-content: flex-start !important;
    position: relative;
    min-height: 40px; /* Минимальная высота для правильного отображения */
}

/* Размещаем меню по центру экрана (viewport) - относительно navbar */
/* Desktop nav-menu styles */
.navbar .nav-menu {
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    margin: 0 !important;
    z-index: 1001 !important;
    width: auto !important;
}

/* Группа элементов справа от меню (поиск и кнопки) */
.nav-wrapper > .header-search {
    position: absolute;
    left: calc(50% + 280px); /* Смещаем правее меню (50% - центр, +280px - ширина меню примерно + отступ) */
    z-index: 1002;
    margin-left: 0 !important;
    display: flex;
    align-items: center;
}

.nav-wrapper > .header-search + .language-switcher {
    position: absolute;
    left: calc(50% + 500px); /* Поиск (280px) + отступ (20px) + ширина поиска (200px) */
    z-index: 1002;
    margin-left: 0 !important;
}

.nav-wrapper > .language-switcher + .user-auth {
    position: absolute;
    left: calc(50% + 580px); /* Продолжаем расчет позиций */
    z-index: 1002;
    margin-left: 0 !important;
}

.nav-wrapper > .user-auth + .b2b-switcher {
    position: absolute;
    left: calc(50% + 660px);
    z-index: 1002;
    margin-left: 0 !important;
}

.nav-wrapper > .b2b-switcher + .cart-icon-container {
    position: absolute;
    left: calc(50% + 740px);
    z-index: 1002;
    margin-left: 0 !important;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.25rem 0;
    margin-left: -10px;
}

.logo:hover {
    transform: translateX(2px);
}

.logo-img {
    height: 24.375px;
    width: auto;
    max-width: 97.5px;
    object-fit: contain;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 2px 4px rgba(255, 107, 53, 0.3));
    margin-right: -10px;
}

/* Увеличиваем все элементы шапки в 1.5 раза на десктопе */
@media (min-width: 769px) {
    /* Обновляем отступ для якорных ссылок с учетом увеличенной шапки */
    html {
        scroll-padding-top: 116.25px !important; /* 77.5px * 1.5 */
    }
    
    /* Логотип */
    .logo-img {
        height: 36.5625px !important; /* 24.375px * 1.5 */
        max-width: 146.25px !important; /* 97.5px * 1.5 */
    }
    
    /* Навигационная панель - увеличиваем padding */
    .navbar {
        padding: 1.35rem 0 !important; /* 0.9rem * 1.5 */
    }
    
    /* Меню навигации - увеличиваем gap и размеры шрифта */
    .nav-menu {
        gap: 1.2rem !important; /* 0.8rem * 1.5 */
    }
    
    .nav-menu a {
        font-size: 1.2375rem !important; /* 0.825rem * 1.5 */
        padding: 0.45rem 0 !important; /* 0.3rem * 1.5 */
    }
    
    /* Поиск в шапке */
    .header-search-input {
        padding: 0.6rem 1.2rem !important; /* 0.4rem * 1.5, 0.8rem * 1.5 */
        font-size: 0.825rem !important; /* 0.55rem * 1.5 */
        width: 300px !important; /* 200px * 1.5 */
    }
    
    .header-search-input::placeholder {
        font-size: 0.825rem !important; /* 0.55rem * 1.5 */
    }
    
    /* Переключатель языка */
    .lang-dropdown-btn {
        padding: 0.9rem 1.5rem !important; /* 0.6rem * 1.5, 1rem * 1.5 */
        font-size: 1.125rem !important; /* 0.75rem * 1.5 */
        min-width: 90px !important; /* 60px * 1.5 */
        min-height: 48px !important; /* 32px * 1.5 */
        gap: 0.6rem !important; /* 0.4rem * 1.5 */
    }
    
    /* Иконка корзины */
    .cart-icon {
        width: 39px !important; /* 26px * 1.5 */
        height: 39px !important; /* 26px * 1.5 */
        min-width: 39px !important;
        min-height: 39px !important;
    }
    
    .cart-badge {
        top: -7.5px !important; /* -5px * 1.5 */
        right: -7.5px !important; /* -5px * 1.5 */
        width: 15px !important; /* 10px * 1.5 */
        height: 15px !important; /* 10px * 1.5 */
        font-size: 0.5625rem !important; /* 0.375rem * 1.5 */
    }
    
    /* Аватар пользователя */
    .user-avatar-link {
        width: 37.5px !important; /* 25px * 1.5 */
        height: 37.5px !important; /* 25px * 1.5 */
    }
    
    .user-avatar-initials {
        font-size: 0.825rem !important; /* 0.55rem * 1.5 */
    }
    
    /* Кнопки входа/выхода */
    .login-btn, .logout-btn {
        padding: 0.7125rem 1.5rem !important; /* 0.475rem * 1.5, 1rem * 1.5 */
        font-size: 0.7125rem !important; /* 0.475rem * 1.5 */
        min-height: 36px !important; /* 24px * 1.5 */
    }
    
    /* B2B переключатель */
    .b2b-switcher-container {
        padding: 0.525rem 0.9rem !important; /* 0.35rem * 1.5, 0.6rem * 1.5 */
        min-height: 36px !important; /* 24px * 1.5 */
    }
    
    .b2b-switcher-toggle {
        width: 40.5px !important; /* 27px * 1.5 */
        height: 21px !important; /* 14px * 1.5 */
        min-width: 40.5px !important;
        min-height: 19.5px !important; /* 13px * 1.5 */
    }
    
    .b2b-switcher-toggle::before {
        top: 2.25px !important; /* 1.5px * 1.5 */
        left: 2.25px !important; /* 1.5px * 1.5 */
        width: 16.5px !important; /* 11px * 1.5 */
        height: 16.5px !important; /* 11px * 1.5 */
    }
    
    .b2b-switcher-toggle.active::before {
        left: 21px !important; /* 14px * 1.5 */
    }
    
    /* Отступы между элементами в навигации */
    .nav-wrapper {
        gap: 0.75rem !important; /* 0.5rem * 1.5 */
        min-height: 60px !important; /* 40px * 1.5 */
    }
    
    .nav-wrapper > .language-switcher + .user-auth,
    .nav-wrapper > .user-auth + .b2b-switcher,
    .nav-wrapper > .b2b-switcher + .cart-icon-container {
        margin-left: 1.2rem !important; /* 0.8rem * 1.5 */
    }
    
    /* Корректировка позиционирования абсолютно позиционированных элементов */
    .nav-wrapper > .header-search {
        left: calc(50% + 420px) !important; /* 280px * 1.5 */
    }
    
    .nav-wrapper > .header-search + .language-switcher {
        left: calc(50% + 750px) !important; /* 500px * 1.5 */
    }
    
    .nav-wrapper > .language-switcher + .user-auth {
        left: calc(50% + 870px) !important; /* 580px * 1.5 */
    }
    
    .nav-wrapper > .user-auth + .b2b-switcher {
        left: calc(50% + 990px) !important; /* 660px * 1.5 */
    }
    
    .nav-wrapper > .b2b-switcher + .cart-icon-container {
        left: calc(50% + 1110px) !important; /* 740px * 1.5 */
    }
}

/* Уменьшаем шапку в 1 раз на средних экранах (отменяем умножение на 1.5) */
@media (min-width: 769px) and (max-width: 1200px) {
    /* Обновляем отступ для якорных ссылок */
    html {
        scroll-padding-top: 77.5px !important; /* Возвращаем исходное значение */
    }
    
    /* Логотип - исходные размеры */
    .logo-img {
        height: 24.375px !important;
        max-width: 97.5px !important;
    }
    
    /* Навигационная панель - исходные размеры */
    .navbar {
        padding: 0.9rem 0 !important;
    }
    
    /* Меню навигации - минимальные отступы */
    .nav-menu {
        gap: 0.4rem !important; /* Уменьшено с 0.8rem для экономии места */
    }
    
    .nav-menu a {
        font-size: 0.825rem !important;
        padding: 0.3rem 0 !important;
    }
    
    /* Поиск в шапке - уменьшенная ширина */
    .header-search-input {
        padding: 0.4rem 0.6rem !important;
        font-size: 0.55rem !important;
        width: 150px !important; /* Уменьшено с 200px */
    }
    
    .header-search-input::placeholder {
        font-size: 0.55rem !important;
    }
    
    /* Переключатель языка - исходные размеры */
    .lang-dropdown-btn {
        padding: 0.6rem 1rem !important;
        font-size: 0.75rem !important;
        min-width: 60px !important;
        min-height: 32px !important;
        gap: 0.4rem !important;
    }
    
    /* Иконка корзины - исходные размеры */
    .cart-icon {
        width: 26px !important;
        height: 26px !important;
        min-width: 26px !important;
        min-height: 26px !important;
    }
    
    .cart-badge {
        top: -5px !important;
        right: -5px !important;
        width: 10px !important;
        height: 10px !important;
        font-size: 0.375rem !important;
    }
    
    /* Аватар пользователя - исходные размеры */
    .user-avatar-link {
        width: 25px !important;
        height: 25px !important;
    }
    
    .user-avatar-initials {
        font-size: 0.55rem !important;
    }
    
    /* Кнопки входа/выхода - исходные размеры */
    .login-btn, .logout-btn {
        padding: 0.475rem 1rem !important;
        font-size: 0.475rem !important;
        min-height: 24px !important;
    }
    
    /* B2B переключатель - исходные размеры */
    .b2b-switcher-container {
        padding: 0.35rem 0.6rem !important;
        min-height: 24px !important;
    }
    
    .b2b-switcher-toggle {
        width: 27px !important;
        height: 14px !important;
        min-width: 27px !important;
        min-height: 13px !important;
    }
    
    .b2b-switcher-toggle::before {
        top: 1.5px !important;
        left: 1.5px !important;
        width: 11px !important;
        height: 11px !important;
    }
    
    .b2b-switcher-toggle.active::before {
        left: 14px !important;
    }
    
    /* Отступы между элементами - минимальные для экономии места */
    .nav-wrapper {
        gap: 0.3rem !important; /* Уменьшено с 0.5rem */
        min-height: 40px !important;
    }
    
    .nav-wrapper > .language-switcher + .user-auth,
    .nav-wrapper > .user-auth + .b2b-switcher,
    .nav-wrapper > .b2b-switcher + .cart-icon-container {
        margin-left: 0.5rem !important; /* Уменьшено с 0.8rem */
    }
    
    /* Позиционирование - минимальные расстояния для экономии места */
    .nav-wrapper > .header-search {
        left: calc(50% + 200px) !important; /* Уменьшено с 280px - меню стало компактнее */
    }
    
    .nav-wrapper > .header-search + .language-switcher {
        left: calc(50% + 360px) !important; /* Уменьшено с 500px - поиск стал уже (150px вместо 200px) */
    }
    
    .nav-wrapper > .language-switcher + .user-auth {
        left: calc(50% + 430px) !important; /* Уменьшено с 580px */
    }
    
    .nav-wrapper > .user-auth + .b2b-switcher {
        left: calc(50% + 500px) !important; /* Уменьшено с 660px */
    }
    
    .nav-wrapper > .b2b-switcher + .cart-icon-container {
        left: calc(50% + 570px) !important; /* Уменьшено с 740px */
    }
}

.logo-img:hover {
    transform: scale(1.08) translateY(-1px);
    filter: drop-shadow(0 4px 8px rgba(255, 107, 53, 0.5));
}

/* Fallback текст, если SVG не загрузится */
.logo-text-fallback {
    display: none;
    font-size: 1.8rem;
    color: var(--primary-orange);
    font-weight: 700;
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.8rem;
    align-items: center;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
}

/* Hide mobile elements in desktop nav-menu - ALWAYS HIDDEN */
/* Скрываем мобильные элементы на десктопе */
.mobile-user-auth {
    display: none;
}

.nav-menu .mobile-b2b-switcher,
.nav-menu .mobile-profile-link,
.nav-menu .mobile-search {
    display: none !important;
    visibility: hidden !important;
}

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.825rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.3rem 0;
    letter-spacing: 0.3px;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1.5px;
    background: linear-gradient(90deg, var(--primary-orange), var(--secondary-orange));
    border-radius: 2px;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(255, 107, 53, 0.4);
}

.nav-menu a:hover {
    color: var(--primary-orange);
    transform: translateY(-1px);
}

.nav-menu a:hover::after {
    width: 80%;
    left: 50%;
    transform: translateX(-50%);
}

.nav-menu a.active {
    color: var(--primary-orange);
}

.nav-menu a.active::after {
    width: 80%;
    left: 50%;
    transform: translateX(-50%);
}

/* Cart Icon */
.cart-icon-container {
    position: relative;
    flex-shrink: 0;
}

.cart-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    color: var(--white);
    text-decoration: none;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 26px;
    min-height: 26px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
}

.cart-icon:hover {
    background: rgba(255, 107, 53, 0.2);
    color: var(--primary-orange);
    transform: translateY(-2px) scale(1.05);
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--primary-orange);
    color: white;
    border-radius: 50%;
    width: 10px;
    height: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.375rem;
    font-weight: 600;
    border: 1px solid var(--dark-gray);
}

/* User Auth Buttons */
.user-auth {
    position: relative;
    flex-shrink: 0;
    z-index: 10001;
    overflow: visible;
}

/* Делаем область user-auth кликабельной */
.user-auth {
    cursor: pointer;
    border: none;
    outline: none;
}

.user-auth:hover {
    border: none;
    outline: none;
}

.user-auth .user-menu {
    cursor: default;
}

/* User Avatar */
.user-avatar-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-orange), #ff8c5a);
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.user-avatar-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
}

.user-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.user-avatar-initials {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 0.55rem;
    font-weight: 600;
    text-transform: uppercase;
}

.login-btn, .logout-btn {
    padding: 0.475rem 1rem;
    background: var(--white);
    border: none;
    color: var(--dark-grey);
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.475rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    min-height: 24px;
    letter-spacing: 0.3px;
    text-transform: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

.login-btn:hover {
    background: linear-gradient(135deg, var(--primary-orange), #ff8c5a);
    color: var(--white) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4), 0 2px 8px rgba(255, 107, 53, 0.3);
}

.login-btn:hover * {
    color: var(--white) !important;
}

.login-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3), 0 1px 4px rgba(255, 107, 53, 0.2);
}

.logout-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* User Menu Dropdown */
.user-menu {
    position: relative;
    z-index: 10001;
    display: inline-block;
    overflow: visible;
    border: none;
    outline: none;
}

.user-menu:hover {
    border: none;
    outline: none;
}

.user-menu-dropdown {
    position: absolute;
    top: calc(100% + 2px);
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25), 0 4px 16px rgba(0, 0, 0, 0.15);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.15s ease-out,
                visibility 0.15s ease-out,
                transform 0.15s ease-out;
    transition-delay: 0.2s;
    z-index: 10003;
    pointer-events: none;
    border: none;
    margin-top: 0;
    overflow: visible;
    /* Добавляем невидимую область сверху для плавного перехода курсора */
    padding-top: 6px;
    margin-top: -6px;
}

/* Убираем задержку при наведении */
.user-menu:hover .user-menu-dropdown,
.user-menu .user-avatar-link:hover ~ .user-menu-dropdown,
.user-menu-dropdown:hover {
    transition-delay: 0s;
}

/* Показываем меню при наведении на user-menu */
.user-menu:hover .user-menu-dropdown {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
    transition-delay: 0s;
}

/* Задержка перед скрытием меню при уходе курсора */
.user-menu .user-menu-dropdown {
    transition-delay: 0.15s;
}

.user-menu:hover .user-menu-dropdown {
    transition-delay: 0s;
}

/* Показываем меню при наведении на аватар */
.user-menu .user-avatar-link:hover ~ .user-menu-dropdown {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
}

/* Показываем меню при наведении на кнопку выхода */
.user-menu .logout-btn:hover ~ .user-menu-dropdown {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
}

/* Показываем меню при наведении на само меню (чтобы не исчезало при движении мыши) */
.user-menu-dropdown:hover {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
}

.user-menu:hover .logout-btn,
.user-menu .logout-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.user-menu-dropdown.active {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
}

.user-menu-item {
    display: block;
    padding: 12px 16px;
    color: var(--dark-gray);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

/* B2B Switcher in User Menu */
.user-menu-b2b-switcher {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background 0.2s ease;
}

.user-menu-b2b-switcher:hover {
    background: #f5f5f5;
}

.user-menu-b2b-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--dark-gray);
    flex: 1;
}

.user-menu-b2b-toggle-container {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.user-menu-b2b-toggle {
    width: 40px;
    height: 20px;
    background: #ccc;
    border-radius: 10px;
    position: relative;
    transition: background 0.3s ease;
    flex-shrink: 0;
}

.user-menu-b2b-toggle::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.user-menu-b2b-toggle.active {
    background: var(--primary-orange);
}

.user-menu-b2b-toggle.active::before {
    transform: translateX(20px);
}

.user-menu-logout {
    color: #e74c3c !important;
    border-top: 1px solid #e0e0e0;
    margin-top: 4px;
    padding-top: 12px;
}

.user-menu-logout:hover {
    background: rgba(231, 76, 60, 0.1) !important;
    color: #c0392b !important;
}

.user-menu-item:first-child {
    border-radius: 8px 8px 0 0;
}

.user-menu-item:last-child {
    border-radius: 0 0 8px 8px;
}

.user-menu-item:hover {
    background: #f5f5f5;
    color: var(--primary-orange);
}

.user-menu-item.logout-action {
    border-top: 1px solid #eee;
    color: #e74c3c;
}

.user-menu-item.logout-action:hover {
    background: #fee;
    color: #c0392b;
}

/* Login Modal */
.login-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.login-modal-content {
    position: relative;
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
    z-index: 1;
}

.login-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--light-gray);
    transition: color 0.3s ease;
}

.login-modal-close:hover {
    color: var(--primary-orange);
}

.login-modal-content h2 {
    margin-bottom: 1.5rem;
    color: var(--dark-gray);
}

.login-modal-content .form-group {
    margin-bottom: 1.5rem;
}

.login-modal-content label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--dark-gray);
    font-weight: 600;
}

.login-modal-content input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--light-gray);
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.login-modal-content input:focus {
    outline: none;
    border-color: var(--primary-orange);
}

.login-modal-content .btn-primary {
    width: 100%;
    padding: 0.75rem;
    margin-top: 1rem;
}

.login-modal-content .error-message {
    background: #ffebee;
    color: #c62828;
    padding: 0.75rem;
    border-radius: 6px;
    margin-top: 1rem;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .user-auth {
        margin-right: 0.5rem;
    }
    
    .login-btn, .logout-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}

/* Бургер-меню */
.burger {
    display: none; /* Скрыт на десктопе по умолчанию */
    position: relative;
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    cursor: pointer;
    z-index: 1001;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    border: none;
    outline: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, border 0.3s ease;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-left: 0.75rem;
    padding: 0;
}

/* Скрываем бургер на десктопе */
@media (min-width: 769px) {
    .burger {
        display: none !important;
    }
}

/* Показываем бургер только на мобильных */
@media (max-width: 768px) {
    .burger {
        display: flex !important;
    }
}

.burger span {
    width: 24px;
    height: 2px;
    background: var(--white);
    display: block;
    border-radius: 999px;
    transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
}

@media (max-width: 768px) {
    .burger span {
        width: 18px !important;
        height: 2px !important;
    }
    
    .burger.active span:nth-child(1) {
        transform: rotate(45deg) translateY(5px) !important;
    }
    
    .burger.active span:nth-child(3) {
        transform: rotate(-45deg) translateY(-5px) !important;
    }
}

.burger:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.45);
    transform: translateY(-2px);
}

.burger.active span:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
}

.burger.active {
    background: rgba(255, 107, 53, 0.25);
    border-color: rgba(255, 107, 53, 0.6);
    box-shadow: 0 18px 32px rgba(255, 107, 53, 0.35);
}

/* Кнопка закрытия меню - скрыта на десктопе */
.menu-close-btn-container {
    display: none;
    width: 100%;
    padding: 1rem;
    text-align: right;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1004;
}

/* На десктопе скрываем кнопку закрытия и затемнение */
@media (min-width: 769px) {
    .menu-close-btn-container {
        display: none !important;
    }
    
    .menu-overlay {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
        width: 0 !important;
        height: 0 !important;
    }
    
    .nav-menu {
        position: static !important;
        left: auto !important;
        top: auto !important;
        bottom: auto !important;
        width: auto !important;
        max-width: none !important;
        height: auto !important;
        flex-direction: row !important;
        background: transparent !important;
        box-shadow: none !important;
        padding: 0 !important;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }
}

.menu-close-btn {
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 2.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin-left: auto;
    position: relative;
    z-index: 1005;
}

.menu-close-btn:hover {
    background: rgba(255, 107, 53, 0.2);
    color: var(--primary-orange);
    transform: scale(1.1);
}

.language-switcher {
    position: relative;
    flex-shrink: 0;
}

.lang-dropdown {
    position: relative;
}

.lang-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 60px;
    min-height: 32px;
    letter-spacing: 0.5px;
}

.lang-dropdown-btn:hover {
    border-color: var(--primary-orange);
    color: var(--primary-orange);
    background: rgba(255, 107, 53, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.lang-dropdown-btn svg {
    transition: transform 0.3s ease;
}

.lang-dropdown.active .lang-dropdown-btn svg {
    transform: rotate(180deg);
}

.lang-dropdown.active .lang-dropdown-btn {
    border-color: var(--primary-orange);
    color: var(--primary-orange);
}

.lang-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: var(--dark-gray);
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    list-style: none;
    padding: 0.4rem 0;
    margin: 0;
    min-width: 140px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.lang-dropdown.active .lang-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown-menu li {
    margin: 0;
}

.lang-option {
    width: 100%;
    padding: 0.6rem 1rem;
    background: transparent;
    border: none;
    color: var(--white);
    text-align: left;
    cursor: pointer;
    font-size: 0.7rem;
    transition: all 0.2s ease;
    display: block;
}

.lang-option:hover {
    background: rgba(255, 107, 53, 0.1);
    color: var(--primary-orange);
}

.lang-option.active {
    background: rgba(255, 107, 53, 0.2);
    color: var(--primary-orange);
    font-weight: 600;
}

/* B2B Mode Switcher - скрыт на десктопе, теперь в меню пользователя */
.b2b-switcher {
    position: relative;
    flex-shrink: 0;
    display: none !important; /* Всегда скрыт на десктопе, переключатель теперь в меню пользователя */
    visibility: hidden !important;
    opacity: 0 !important;
}

/* Mobile B2B elements - ALWAYS HIDDEN (removed from menu) */
.mobile-b2b-switcher,
.mobile-profile-link {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    position: absolute !important;
    left: -9999px !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* На мобильных переключатель B2B должен быть виден в меню */
@media (max-width: 768px) {
    /* Переключатель B2B показывается только через JavaScript для авторизованных B2B пользователей */
    .nav-menu .mobile-b2b-switcher {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
    
    /* Показываем только если явно установлено через JavaScript */
    .nav-menu .mobile-b2b-switcher[data-visible="true"] {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        position: relative !important;
        left: auto !important;
        width: auto !important;
        height: auto !important;
        overflow: visible !important;
    }
}

.b2b-switcher-container {
    display: flex;
    align-items: center;
    gap: 0; /* Убираем gap, так как надпись скрыта */
    padding: 0.35rem 0.6rem; /* Увеличиваем padding */
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 24px;
}

.b2b-switcher-container:hover {
    border-color: var(--primary-orange);
    background: rgba(255, 107, 53, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.b2b-switcher-label {
    display: none; /* Скрываем надпись "Режим" на десктопе */
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.b2b-switcher-toggle {
    position: relative;
    width: 27px;
    height: 14px;
    background: var(--light-gray);
    border-radius: 7px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 27px;
    min-height: 13px;
}

.b2b-switcher-toggle.active {
    background: var(--primary-orange);
}

.b2b-switcher-toggle::before {
    content: '';
    position: absolute;
    top: 1.5px;
    left: 1.5px;
    width: 11px;
    height: 11px;
    background: var(--white);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.b2b-switcher-toggle.active::before {
    left: 14.5px;
}

.b2b-price {
    font-size: 0.95rem;
    color: var(--medium-gray);
    margin-top: 0.25rem;
}

.b2b-price.active {
    color: var(--primary-orange);
    font-weight: 600;
}

@media (max-width: 768px) {
    .b2b-switcher {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
        position: absolute !important;
        left: -9999px !important;
        margin: 0 !important;
    }
    
    .b2b-switcher-container {
        display: none !important;
    }
    
    .b2b-switcher-label {
        display: none;
    }
    
    .b2b-switcher-toggle {
        width: 38px;
        height: 18px;
    }
    
    .b2b-switcher-toggle::before {
        width: 14px;
        height: 14px;
    }
    
    .b2b-switcher-toggle.active::before {
        left: 22px;
    }
}

/* Бургер-меню стили перенесены выше */

/* Герой секция */
.hero {
    position: relative;
    min-height: 700px;
    height: 95vh;
    margin-top: 0;
    padding-top: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) center top/cover no-repeat;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 1;
}

/* Убираем отступ сверху для hero, чтобы картинка начиналась сразу после шапки */
/* Hero должен начинаться сразу после navbar (который фиксирован с top: 20px) */
@media (min-width: 769px) {
    .hero {
        margin-top: calc(0.425rem * 2 + 20px + 0.9rem * 2 + 40px); /* disclaimer banner height (padding top + bottom) + navbar top + navbar padding (top + bottom) + navbar content height */
        padding-top: 0;
    }
}

@media (max-width: 1200px) {
    .hero {
        height: 70vh;
        min-height: 600px;
    }
}

@media (max-width: 768px) {
    html {
        scroll-padding-top: 140px; /* Отступ для якорных ссылок на мобильных */
    }
    
    .hero {
        height: 60vh;
        min-height: 500px;
        margin-top: 0;
        padding-top: 0;
    }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(44, 62, 80, 0.8) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.highlight {
    color: var(--primary-orange);
    position: relative;
}

.hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--very-light-gray);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-orange);
    color: var(--white);
    border-color: var(--primary-orange);
}

.btn-primary:hover {
    background: var(--secondary-orange);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--dark-gray);
    transform: translateY(-3px);
}

.btn-tertiary {
    background: var(--primary-orange);
    color: var(--white);
    border-color: var(--primary-orange);
}

.btn-tertiary:hover {
    background: var(--secondary-orange);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.3);
}

.btn-small {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
}

/* Индикатор прокрутки */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-indicator span {
    font-size: 2rem;
    color: var(--primary-orange);
}

/* Заголовки секций */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h1,
.section-header h2 {
    font-size: 3.34rem;
    color: var(--dark-gray);
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.47rem;
    color: var(--medium-gray);
}

.divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-orange), var(--secondary-orange));
    margin: 1rem auto;
    border-radius: 2px;
}

/* О нас */
.about {
    padding: 8rem 0 2rem;
    background: var(--white);
    position: relative;
    z-index: 10;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.about-text h3 {
    font-size: 2rem;
    color: var(--dark-gray);
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 20px;
}

.about-text h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 100%;
    background: var(--primary-orange);
    border-radius: 3px;
}

.about-text p {
    margin-bottom: 0.75rem;
    color: var(--medium-gray);
    line-height: 1.8;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--very-light-gray);
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-item h4 {
    font-size: 2.5rem;
    color: var(--primary-orange);
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--medium-gray);
    margin: 0;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 20px 60px var(--shadow);
}

/* Карусель брендов */
.brands {
    padding: 0;
    background: var(--white);
    position: relative;
    z-index: 10;
}

/* Скрываем scrollbar для секции брендов на десктопе */
@media (min-width: 769px) {
    /* Скрываем scrollbar для всех элементов секции брендов */
    .brands,
    .brands *,
    .brands .container,
    .brands .container *,
    .brands-carousel-container,
    .brands-carousel-container *,
    .brands-carousel,
    .brands-carousel *,
    .brands-carousel-track,
    .brands-carousel-track *,
    .brands-grid,
    .brands-grid * {
        scrollbar-width: none !important; /* Firefox */
        -ms-overflow-style: none !important; /* IE и Edge */
    }
    
    /* Скрываем scrollbar в WebKit браузерах */
    .brands::-webkit-scrollbar,
    .brands *::-webkit-scrollbar,
    .brands .container::-webkit-scrollbar,
    .brands .container *::-webkit-scrollbar,
    .brands-carousel-container::-webkit-scrollbar,
    .brands-carousel-container *::-webkit-scrollbar,
    .brands-carousel::-webkit-scrollbar,
    .brands-carousel *::-webkit-scrollbar,
    .brands-carousel-track::-webkit-scrollbar,
    .brands-carousel-track *::-webkit-scrollbar,
    .brands-grid::-webkit-scrollbar,
    .brands-grid *::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
        background: transparent !important;
    }
    
    /* Скрываем scrollbar при hover на любом элементе */
    .brands:hover,
    .brands:hover *,
    .brands .container:hover,
    .brands .container:hover *,
    .brands-carousel-container:hover,
    .brands-carousel-container:hover *,
    .brands-carousel:hover,
    .brands-carousel:hover *,
    .brands-carousel-track:hover,
    .brands-carousel-track:hover *,
    .brands-grid:hover,
    .brands-grid:hover * {
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
    }
    
    .brands:hover::-webkit-scrollbar,
    .brands:hover *::-webkit-scrollbar,
    .brands .container:hover::-webkit-scrollbar,
    .brands .container:hover *::-webkit-scrollbar,
    .brands-carousel-container:hover::-webkit-scrollbar,
    .brands-carousel-container:hover *::-webkit-scrollbar,
    .brands-carousel:hover::-webkit-scrollbar,
    .brands-carousel:hover *::-webkit-scrollbar,
    .brands-carousel-track:hover::-webkit-scrollbar,
    .brands-carousel-track:hover *::-webkit-scrollbar,
    .brands-grid:hover::-webkit-scrollbar,
    .brands-grid:hover *::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
        background: transparent !important;
    }
    
    /* Убираем overflow, который может вызывать scrollbar только в элементах секции брендов */
    .brands,
    .brands .container,
    .brands-carousel-container,
    .brands-carousel,
    .brands-carousel-track {
        overflow-x: hidden !important;
        overflow-y: hidden !important;
    }
}

/* Grid layout для брендов */
.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1.5rem;
    row-gap: 1.5rem;
    column-gap: 1.5rem;
    margin: 0 auto 3rem;
    margin-top: 1.5rem;
    padding: 0 20px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
    justify-content: center;
}

/* На десктопе отступ от шапки до первой строчки равен расстоянию между строчками (row-gap) */
@media (min-width: 769px) {
    /* Добавляем отступ для секции брендов, чтобы не залезала под шапку */
    section.brands {
        padding-top: 100px !important; /* Отступ от шапки (disclaimer banner + navbar) */
        margin-top: 0 !important;
    }
    
    /* Гарантируем отступ от шапки до первой строчки брендов - равен row-gap */
    section.brands .brands-grid,
    .brands .brands-grid,
    #brandsGrid,
    .brands-grid {
        margin-top: 1.5rem !important; /* Равен row-gap (1.5rem) - отступ от шапки до первой строчки */
        margin-bottom: 3rem;
        padding-top: 0 !important;
    }
    
    /* На десктопе все бренды всегда отображаются, без ограничений */
    section.brands .brands-grid,
    .brands .brands-grid,
    #brandsGrid,
    .brands-grid {
        max-height: none !important;
        overflow: visible !important;
    }
    
    /* Скрываем кнопку "Показать все бренды" на десктопе */
    .show-all-brands-btn {
        display: none !important;
    }
}

.brands-grid.expanded {
    max-height: none !important;
}

.brands .container {
    max-width: 100%;
    padding: 0;
    margin: 0;
    width: 100%;
}

/* Кнопка "Показать все бренды" - скрыта по умолчанию */
.show-all-brands-btn {
    display: none;
    margin: 1rem auto 0;
    padding: 0.75rem 2rem;
    background: var(--primary-orange);
    color: var(--white);
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    z-index: 10;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
}

.show-all-brands-btn:hover {
    background: var(--secondary-orange);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

@media (max-width: 768px) {
    .brands {
        margin-top: 0;
        padding: 0;
        overflow-x: hidden;
    }
    
    .brands-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.75rem;
        row-gap: 0.75rem;
        column-gap: 0.75rem;
        margin: 0.75rem auto 0;
        padding: 0 10px;
        width: calc(100% - 20px);
        max-width: calc(100% - 20px);
        box-sizing: border-box;
        max-height: calc((60px + 0.75rem) * 2);
        overflow: hidden;
        transition: max-height 0.3s ease;
        justify-content: center;
    }
    
    .brands-grid.expanded {
        max-height: none !important;
    }
    
    .show-all-brands-btn {
        margin: 1rem auto 0;
        padding: 0.75rem 2rem;
        font-size: 0.9rem;
        position: relative;
        z-index: 10;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
        pointer-events: auto !important;
    }
}

@media (max-width: 480px) {
    .brands {
        margin-top: 0;
        padding: 0;
        overflow-x: hidden;
    }
    
    .brands-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.5rem;
        row-gap: 0.5rem;
        column-gap: 0.5rem;
        margin: 0.5rem auto 0;
        padding: 0 10px;
        width: calc(100% - 20px);
        max-width: calc(100% - 20px);
        box-sizing: border-box;
        max-height: calc((55px + 0.5rem) * 2);
        overflow: hidden;
        transition: max-height 0.3s ease;
        justify-content: center;
    }
    
    .brands-grid.expanded {
        max-height: none !important;
    }
    
    .show-all-brands-btn {
        margin: 0.75rem auto 0;
        padding: 0.6rem 1.5rem;
        font-size: 0.8rem;
        position: relative;
        z-index: 10;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
        pointer-events: auto !important;
    }
}

.brands-carousel-container {
    position: relative;
    max-width: 100%;
    margin: 2.5rem -20px 3rem; /* Отрицательные margin компенсируют padding родителя */
    padding: 0 35px; /* Отступы для кнопок */
    overflow: visible; /* Разрешаем видимость кнопок за пределами */
    overflow-y: hidden !important; /* Скрываем вертикальный scrollbar */
    overflow-x: hidden !important; /* Скрываем горизонтальный scrollbar */
}

.brands-carousel {
    overflow: hidden;
    overflow-y: hidden !important;
    overflow-x: hidden !important;
    position: relative;
}

.brands-carousel-track {
    display: flex;
    gap: 1rem;
    transition: transform 0.5s ease-in-out;
    overflow: hidden !important;
    overflow-y: hidden !important;
    overflow-x: hidden !important;
}

.brand-slide {
    flex: 0 0 auto;
    width: 100%;
    min-width: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    background: var(--white);
    border: 1px solid var(--very-light-gray);
    border-radius: 8px;
    padding: 0.5rem;
    transition: all 0.3s ease;
    aspect-ratio: 1;
}

/* Уменьшаем плитки брендов в 1.5 раза на десктопе */
@media (min-width: 769px) {
    .brand-slide {
        min-width: 46.67px;
        padding: 0.333rem;
        gap: 0.167rem;
        border-radius: 5.33px;
    }
    
    .brand-logo {
        height: 20px;
    }
    
    .brand-logo img {
        max-height: 20px;
    }
    
    .brand-label {
        font-size: 0.5rem;
        margin-top: 0.333rem;
    }
}

.brand-slide:hover {
    border-color: var(--primary-orange);
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.brand-logo {
    width: 100%;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.brand-logo img {
    max-width: 100%;
    max-height: 30px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.brand-slide:hover .brand-logo img {
    filter: grayscale(0%);
    opacity: 1;
}

.brand-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--medium-gray);
    text-align: center;
    line-height: 1.2;
    transition: color 0.3s ease;
    margin-top: 0.5rem;
}

.brand-slide:hover .brand-label {
    color: var(--primary-orange);
    font-weight: 600;
}

/* Кнопки карусели брендов */
.brands-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--white);
    border: 1px solid var(--primary-orange);
    color: var(--primary-orange);
    width: 25px;
    height: 25px;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    line-height: 1;
    padding: 0;
    margin: 0;
}

.brands-carousel-btn * {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brands-carousel-btn:hover {
    background: var(--primary-orange);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.brands-carousel-btn:hover * {
    transform: none;
}

.brands-carousel-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.brands-carousel-btn:active * {
    transform: none;
}

.brands-carousel-btn-prev {
    left: 5px;
}

.brands-carousel-btn-next {
    right: 5px;
}

/* Featured Products (Популярные товары) */
.featured-products {
    padding: 6rem 0;
    background: white;
    position: relative;
    z-index: 10;
    display: none; /* Скрыта по умолчанию, показывается JS если есть товары */
}

.featured-products .container {
    max-width: 100%;
    padding: 0 20px;
    margin: 0;
}

.featured-products .section-header {
    padding: 0 20px;
    margin-bottom: 2rem;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
    width: 100%;
    box-sizing: border-box;
    padding: 0 20px;
}

/* Desktop: 6 columns for featured products */
@media (min-width: 769px) {
    .featured-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 1.5rem;
    }
}

/* Responsive grid for featured products */
@media (max-width: 900px) {
    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.4rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    .featured-product-card {
        border-radius: 5px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        min-width: 0;
        overflow: hidden;
    }
    
    .featured-product-card:hover {
        transform: none;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    }
    
    .featured-product-card:hover .featured-product-image img {
        transform: none;
    }
    
    .featured-product-image {
        height: 50px;
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
        border-radius: 5px 5px 0 0;
        box-sizing: border-box !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #ffffff !important;
    }
    
    .featured-product-image img {
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        max-height: 100% !important;
        min-width: 0 !important;
        min-height: 0 !important;
        object-fit: contain !important;
        object-position: center !important;
        display: block !important;
        box-sizing: border-box !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
    }
    
    .featured-product-info {
        padding: 0.3rem;
    }
    
    .featured-product-name {
        font-size: 0.6rem;
        line-height: 1.1;
        margin-bottom: 0.2rem;
        font-weight: 500;
        -webkit-line-clamp: unset;
        display: block;
        overflow: visible;
    }
    
    .featured-product-brand {
        font-size: 0.5rem;
        margin-bottom: 0.1rem;
    }
    
    .featured-product-price {
        font-size: 0.65rem;
        font-weight: 600;
    }
    
    .featured-product-price .old-price {
        font-size: 0.55rem !important;
    }
    
    .featured-product-price .new-price {
        font-size: 0.65rem !important;
    }
    
    .featured-product-footer .b2b-price {
        font-size: 0.5rem !important;
        margin-top: 0.2rem !important;
    }
    
    .featured-badge {
        font-size: 0.25rem;
        padding: 0.1rem 0.15rem;
        top: 2px;
        right: 2px;
        border-radius: 8px;
        line-height: 1.2;
    }
}

/* For very small screens, keep 2 columns but reduce gap further */
@media (max-width: 400px) {
    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.3rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    .featured-product-card {
        border-radius: 4px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        min-width: 0 !important;
        overflow: hidden !important;
        position: relative;
    }
    
    .featured-product-image {
        height: 45px;
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
        border-radius: 4px 4px 0 0;
        box-sizing: border-box !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #ffffff !important;
    }
    
    .featured-product-image img {
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        max-height: 100% !important;
        min-width: 0 !important;
        min-height: 0 !important;
        object-fit: contain !important;
        object-position: center !important;
        display: block !important;
        box-sizing: border-box !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
    }
}

/* Используем те же стили что и для product-card */
.featured-product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    min-width: 0;
    position: relative;
}

.featured-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.featured-product-image {
    position: relative;
    height: 220px;
    overflow: hidden !important;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    max-width: 100% !important;
    flex-shrink: 0;
    border-radius: 12px 12px 0 0;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 !important;
    min-width: 0 !important;
}

.featured-product-image img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    object-fit: contain !important;
    object-position: center !important;
    transition: transform 0.3s ease;
    display: block !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    vertical-align: top;
}

.featured-product-card:hover .featured-product-image img {
    transform: scale(1.05);
}

/* Используем те же стили что и для product-card */
.featured-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary-orange);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.featured-badge.out-of-stock {
    background: #999;
}

.featured-product-info {
    padding: 0.75rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-width: 0;
    overflow: hidden;
}

.featured-product-brand {
    color: var(--primary-orange);
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
}

.featured-product-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 0.4rem;
    line-height: 1.3;
}

.featured-product-description {
    display: none !important;
}

.featured-product-footer {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
    width: 100%;
}

.featured-product-footer .b2b-price {
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.featured-product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-orange);
}

.featured-product-price .old-price {
    font-size: 1rem;
    color: #9aa3a7;
    text-decoration: line-through;
    margin-right: 8px;
    font-weight: 400;
}

.featured-product-price .new-price {
    color: #27ae60;
    font-weight: 600;
}

.featured-product-btn {
    display: none;
}

.loading-placeholder {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: #999;
    font-size: 1.1rem;
}

.no-featured-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: #666;
}

.no-featured-products-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.no-featured-products h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 0.5rem;
}

/* Товары/Велосипеды */
/* Products CTA Section */
.products-cta {
    padding: 4rem 0;
    background: #f5f5f5;
    position: relative;
    z-index: 10;
}

.cta-content {
    text-align: center;
    color: #333;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-content .btn-primary {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--primary-orange);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-content .btn-primary:hover {
    background: #e65a2e;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Products Section (All Products) */
.products-section {
    padding: 0 0 6rem 0;
    background: #f8f9fa;
    position: relative;
    z-index: 10;
}

.products-section .container {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
}

.products-section .section-header {
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 3rem;
}

/* Products Layout */
.products-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    margin-top: 2rem;
    padding-left: 20px;
    padding-right: 20px;
}

body.filters-open {
    overflow: hidden;
}

.filters-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1000;
}

.filters-overlay.active {
    display: block;
}

/* Filters Sidebar */
.filters-sidebar {
    background: var(--white);
    border-radius: 0;
    padding: 1.5rem;
    box-shadow: none;
    height: fit-content;
    max-height: none;
    overflow-y: visible;
    position: sticky;
    top: 100px;
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
}

.filters-sidebar::-webkit-scrollbar {
    width: 6px;
}

.filters-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.filters-sidebar::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.filters-sidebar::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-top: 100px;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.sidebar-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin: 0;
}

.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    color: #666;
    transition: all 0.3s ease;
}

.sidebar-toggle:hover {
    background: #f5f5f5;
    color: var(--primary-orange);
}

/* Filter Sections */
.filter-section {
    margin-bottom: 0.1rem;
}

.filter-section:last-child {
    margin-bottom: 0;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.filter-group label {
    font-size: 0.63rem;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.1rem;
}

.filter-input,
.filter-select {
    padding: 0.5rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.675rem;
    transition: all 0.3s ease;
    background: white;
    width: 100%;
    box-sizing: border-box;
    color: #333;
    line-height: 1.2;
    min-height: 2.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.filter-input::placeholder {
    font-size: 0.85rem;
    color: #999;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.filter-select option {
    font-size: 0.4725rem;
    padding: 0.5rem;
}

.filter-select {
    font-size: 0.675rem;
}

.filter-input:focus,
.filter-select:focus {
    outline: none;
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 2px rgba(255, 107, 53, 0.1);
}

/* Price Filter */
.price-filter {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 0.1rem;
}

.price-input {
    flex: 1;
    padding: 0.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 0.9rem;
    text-align: center;
}

.price-input:focus {
    outline: none;
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.price-separator {
    color: #666;
    font-weight: 500;
}

.price-slider-container {
    position: relative;
    display: flex;
    align-items: center;
    height: 40px;
    margin: 0.5rem 0;
}

.price-slider {
    position: absolute;
    width: 100%;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    isolation: isolate;
}

.price-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: var(--primary-orange);
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
    margin-top: -6px;
}

.price-slider::-webkit-slider-thumb:hover {
    background: var(--secondary-orange);
    transform: scale(1.1);
    margin-top: -6px;
}

.price-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: var(--primary-orange);
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.price-slider::-moz-range-thumb:hover {
    background: var(--secondary-orange);
    transform: scale(1.1);
}

.price-slider:first-of-type {
    z-index: 10;
    background: transparent;
}

.price-slider:first-of-type::-webkit-slider-runnable-track {
    background: transparent;
}

.price-slider:first-of-type::-moz-range-track {
    background: transparent;
}

.price-slider:first-of-type::-webkit-slider-thumb {
    margin-top: -6px;
    transform: translateZ(0);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.price-slider:first-of-type::-moz-range-thumb {
    transform: translateZ(0);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.price-slider:last-of-type {
    z-index: 1;
    pointer-events: auto;
}

.price-slider:last-of-type::-webkit-slider-thumb {
    margin-top: -6px;
    transform: translateZ(0);
}

.price-slider:last-of-type::-moz-range-thumb {
    transform: translateZ(0);
}

.price-display {
    text-align: center;
    font-size: 0.9rem;
    font-weight: 500;
    color: #666;
    padding: 0.25rem 0;
}

/* Categories Tree */
.categories-tree {
    /* Убрали ограничение высоты - прокрутка теперь на уровне filters-sidebar */
    overflow: visible;
}

.category-item {
    margin-bottom: 0.25rem;
}

.category-toggle {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.5rem 0.75rem;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    color: #333;
    transition: all 0.3s ease;
    border-radius: 6px;
}

.category-toggle span:last-child {
    flex: 1;
    cursor: pointer;
}

.category-toggle:hover {
    background: #f5f5f5;
    color: var(--primary-orange);
}

.category-toggle.active {
    background: #fff5f0;
    color: var(--primary-orange);
}

.category-toggle-icon {
    margin-right: 0.5rem;
    font-size: 0.665rem;
    transition: transform 0.3s ease;
    width: 10px;
    text-align: center;
}

.category-toggle.expanded .category-toggle-icon {
    transform: rotate(90deg);
}

.category-subitems {
    margin-left: 0.5rem;
    margin-top: 0.25rem;
    display: none;
    overflow: visible;
}

.category-subitems.expanded {
    display: block;
    overflow: visible;
}

.category-subitem {
    display: block;
    padding: 0.4rem 0.75rem;
    color: #666;
    text-decoration: none;
    font-size: 0.71rem;
    transition: all 0.3s ease;
    border-radius: 4px;
    margin-bottom: 0.1rem;
}

.category-subitem:hover {
    background: #f8f8f8;
    color: var(--primary-orange);
}

.category-subitem.active {
    background: #fff5f0;
    color: var(--primary-orange);
    font-weight: 600;
}

/* Характеристики - размер как у групп и подгрупп */
label.category-subitem,
label.category-subitem span {
    font-size: 0.75rem;
}

label.category-subitem input[type="checkbox"] {
    width: 0.5rem;
    height: 0.5rem;
    margin-right: 0.5rem;
}

.no-categories {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 2rem 1rem;
}

/* Products Main */
.products-main {
    min-height: 500px;
    position: relative;
}

.products-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.33rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.products-header h2 {
    font-size: 0.375rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin: 0 0 0.33rem 0;
}

.products-count {
    font-size: 0.23775rem;
    color: #666;
    margin: 0;
}

.products-count strong {
    color: var(--primary-orange);
    font-weight: 700;
}

/* Сортировка */
#sortSelect,
label[for="sortSelect"] {
    font-size: 5.25px !important;
}

#sortSelect {
    padding: 3px 5.625px !important;
    border-radius: 3px !important;
}

label[for="sortSelect"] {
    font-weight: 500 !important;
}

/* Увеличение для мобильных устройств в 2 раза */
@media (max-width: 768px) {
    .products-header h2 {
        font-size: 0.75rem !important; /* 0.375rem * 2 */
    }
    
    .products-count {
        font-size: 0.4755rem !important; /* 0.23775rem * 2 */
    }
    
    #sortSelect,
    label[for="sortSelect"] {
        font-size: 10.5px !important; /* 5.25px * 2 */
    }
    
    #sortSelect {
        padding: 6px 11.25px !important; /* 3px * 2, 5.625px * 2 */
        border-radius: 6px !important; /* 3px * 2 */
    }
}

/* Уменьшение для десктопа в 2 раза */
@media (min-width: 769px) {
    .products-top-bar {
        padding: 0.5rem !important;
        margin-bottom: 0.665rem !important;
    }
    
    .products-header h2 {
        font-size: 1.125rem !important;
    }
    
    .products-count {
        font-size: 0.7125rem !important;
    }
    
    #sortSelect,
    label[for="sortSelect"] {
        font-size: 10.5px !important;
    }
    
    #sortSelect {
        padding: 3.9975px 7.5px !important;
        border-radius: 4px !important;
    }
    
    /* Фильтры - увеличение в 2 раза */
    .filters-sidebar {
        padding: 3rem !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }
    
    /* Фильтры - увеличение ширины для десктопа */
    .products-layout {
        grid-template-columns: 300px 1fr !important;
    }
    
    .filter-section {
        margin-bottom: 0.1rem !important;
    }
    
    .filter-group {
        gap: 0.1rem !important;
    }
    
    .filter-group label {
        font-size: 1.27rem !important;
        gap: 0.1rem !important;
    }
    
    .filter-input,
    .filter-select {
        padding: 0.75rem 2rem !important;
        border: 1px solid #e0e0e0 !important;
        border-radius: 16px !important;
        font-size: 0.75rem !important;
        box-sizing: border-box !important;
        color: #333 !important;
        line-height: 1.2 !important;
        min-height: 3rem !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    
    .filter-input::placeholder {
        font-size: 0.95rem !important;
        color: #999 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    
    .filter-select option {
        font-size: 0.9525rem !important;
        padding: 1rem !important;
    }
    
    .filter-input:focus,
    .filter-select:focus {
        box-shadow: 0 0 0 2px rgba(255, 107, 53, 0.1) !important;
    }
    
    .price-filter {
        gap: 0.1rem !important;
    }
    
    .filter-section h3 {
        font-size: 1.5rem !important;
        margin-bottom: 0.1rem !important;
    }
    
    .price-input {
        padding: 1rem !important;
        border: 4px solid #e0e0e0 !important;
        border-radius: 12px !important;
        font-size: 1.8rem !important;
    }
    
    .price-input:focus {
        box-shadow: 0 0 0 6px rgba(255, 107, 53, 0.1) !important;
    }
    
    .price-separator {
        font-size: 1.8rem !important;
    }
    
    .price-inputs {
        gap: 0.1rem !important;
    }
    
    .btn-reset-filters {
        padding: 0.5rem 0.67rem !important;
        font-size: 1.2rem !important;
        border: 1px solid #e0e0e0 !important;
        border-radius: 16px !important;
    }
    
    .price-slider {
        height: 12px !important;
    }
    
    .price-slider-container {
        height: 80px !important;
        margin: 1rem 0 !important;
    }
}

.mobile-filters-toggle {
    display: none;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.5rem;
    background: var(--primary-orange);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.45rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-filters-toggle:hover {
    background: var(--secondary-orange);
    transform: translateY(-1px);
}

/* Reset Filters Button */
.btn-reset-filters {
    width: 100%;
    padding: 0.25rem 0.33rem;
    background: #f8f9fa;
    color: #666;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-reset-filters:hover {
    background: #e9ecef;
    border-color: #ccc;
    color: #333;
}

/* Уменьшаем кнопку сброса фильтров в 1.3 раза на десктопе */
@media (min-width: 769px) {
    .btn-reset-filters {
        padding: 0.1923rem 0.2538rem !important; /* 0.25rem/1.3 и 0.33rem/1.3 */
        font-size: 0.923rem !important; /* 1.2rem/1.3 */
        border-radius: 6.15px !important; /* 8px/1.3 */
    }
}

.btn-reset-filters:active {
    transform: translateY(1px);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
    width: 100%;
    box-sizing: border-box;
}

/* Responsive grid for products */
@media (max-width: 1600px) {
    .products-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

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

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

@media (max-width: 600px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.4rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    .product-card {
        border-radius: 5px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        min-width: 0;
        overflow: hidden;
    }
    
    .product-card:hover {
        transform: none;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    }
    
    .product-card:hover .product-image img {
        transform: none;
    }
    
    .product-image {
        height: 50px;
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
        border-radius: 5px 5px 0 0;
        box-sizing: border-box !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #ffffff !important;
    }
    
    .product-image img {
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        max-height: 100% !important;
        min-width: 0 !important;
        min-height: 0 !important;
        object-fit: contain !important;
        object-position: center !important;
        display: block !important;
        box-sizing: border-box !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
    }
    
    .product-info {
        padding: 0.3rem;
    }
    
    .product-name {
        font-size: 0.6rem;
        line-height: 1.1;
        margin-bottom: 0.2rem;
        font-weight: 500;
        -webkit-line-clamp: unset;
        display: block;
        overflow: visible;
    }
    
    .product-description {
        display: none; /* Скрываем описание на мобильных для экономии места */
    }
    
    .product-price {
        font-size: 0.65rem;
        font-weight: 600;
    }
    
    .product-brand {
        font-size: 0.5rem;
        margin-bottom: 0.1rem;
    }
    
    .product-footer {
        flex-direction: column;
        gap: 0.25rem;
        align-items: stretch;
        margin-top: auto;
        padding-top: 0.3rem;
        border-top: 1px solid #f0f0f0;
    }
    
    .btn-add-to-cart {
        padding: 3px 8px !important;
        font-size: 0.6rem !important;
        width: 100%;
        white-space: nowrap;
        margin-top: 0.3rem;
    }
    
    .product-badge {
        font-size: 0.25rem;
        padding: 0.1rem 0.15rem;
        top: 2px;
        right: 2px;
        border-radius: 8px;
        line-height: 1.2;
    }
    
    .b2b-price {
        font-size: 0.5rem !important;
        margin-top: 0.2rem !important;
    }
    
    .old-price {
        font-size: 0.55rem !important;
    }
    
    .new-price {
        font-size: 0.65rem !important;
    }
    
    .section-header p {
        font-size: 0.55rem !important;
    }
}

/* For very small screens, keep 2 columns but reduce gap further */
@media (max-width: 400px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.3rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    .product-card {
        border-radius: 4px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        min-width: 0 !important;
        overflow: hidden !important;
        position: relative;
    }
    
    .product-image {
        height: 45px;
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
        border-radius: 4px 4px 0 0;
        box-sizing: border-box !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #ffffff !important;
    }
    
    .product-image img {
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        max-height: 100% !important;
        min-width: 0 !important;
        min-height: 0 !important;
        object-fit: contain !important;
        object-position: center !important;
        display: block !important;
        box-sizing: border-box !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
    }
    
    .product-info {
        padding: 0.25rem;
    }
    
    .product-name {
        font-size: 0.55rem;
        line-height: 1.05;
        margin-bottom: 0.15rem;
        -webkit-line-clamp: unset;
        display: block;
        overflow: visible;
    }
    
    .product-description {
        display: none;
    }
    
    .product-price {
        font-size: 0.6rem;
    }
    
    .product-brand {
        font-size: 0.45rem;
        margin-bottom: 0.08rem;
    }
    
    .product-footer {
        margin-top: auto;
        padding-top: 0.25rem;
        gap: 0.2rem;
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-add-to-cart {
        padding: 3px 6px !important;
        font-size: 0.55rem !important;
        width: 100%;
        margin-top: 0.3rem;
    }
    
    .product-badge {
        font-size: 0.22rem;
        padding: 0.08rem 0.12rem;
        top: 2px;
        right: 2px;
        border-radius: 6px;
        line-height: 1.2;
    }
    
    .b2b-price {
        font-size: 0.45rem !important;
        margin-top: 0.15rem !important;
    }
    
    .brand-slide {
        width: 45px;
        padding: 0.2rem 0.25rem;
        gap: 0.125rem;
    }
    
    .brand-logo {
        height: 8px;
    }
    
    .brand-logo img {
        max-height: 8px;
    }
    
    .brand-label {
        font-size: 0.2rem;
    }
    
    .brands-carousel-track {
        gap: 0.6rem;
    }
    
    .brands-carousel-container {
        margin: 1.5rem 0 2rem;
    }
    
    .section-header h1 {
        font-size: 1.66rem !important;
    }
    
    .section-header h2 {
        font-size: 1.66rem !important;
    }
    
    .section-header p {
        font-size: 0.55rem !important;
    }
    
    .old-price {
        font-size: 0.5rem !important;
    }
    
    .new-price {
        font-size: 0.6rem !important;
    }
}

/* Load More Products Button */
.load-more-trigger {
    margin-top: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    padding: 2rem 0;
}

.load-more-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.load-more-btn {
    background: linear-gradient(135deg, var(--primary-orange), var(--secondary-orange));
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
    background: linear-gradient(135deg, var(--secondary-orange), var(--primary-orange));
}

.load-more-btn:active {
    transform: translateY(0);
}

.load-more-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--very-light-gray);
    border-top-color: var(--primary-orange);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Product Group Section */
.product-group-section {
    margin-bottom: 3rem;
}

.product-group-section.collapsed-group {
    margin-bottom: 2.5rem;
}

.product-group-header {
    margin-bottom: 1rem;
}

.product-group-title {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 600;
    color: #333;
}

/* Single row grid for collapsed groups */
.products-grid-single-row {
    display: grid;
    grid-template-rows: 1fr;
    overflow: hidden;
    margin-bottom: 1rem;
}

/* Limit to one row based on screen size */
.products-grid-single-row {
    grid-template-columns: repeat(5, 1fr);
}

@media (max-width: 1600px) {
    .products-grid-single-row {
        grid-template-columns: repeat(4, 1fr);
    }
}

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

@media (max-width: 900px) {
    .products-grid-single-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .products-grid-single-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Limit to one row - hide products beyond first row */
.products-grid-single-row {
    max-height: fit-content;
    overflow: hidden;
}

/* Hide products beyond first row using CSS */
.products-grid-single-row .product-card:nth-child(n+6) {
    display: none;
}

@media (max-width: 1600px) {
    .products-grid-single-row .product-card:nth-child(n+5) {
        display: none;
    }
}

@media (max-width: 1200px) {
    .products-grid-single-row .product-card:nth-child(n+4) {
        display: none;
    }
}

@media (max-width: 900px) {
    .products-grid-single-row .product-card:nth-child(n+3) {
        display: none;
    }
}

@media (max-width: 600px) {
    .products-grid-single-row .product-card:nth-child(n+3) {
        display: none;
    }
}

/* Product group footer with button */
.product-group-footer {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
    padding-top: 1rem;
}

.btn-view-all-products {
    padding: 0.75rem 1.5rem;
    background: var(--primary-orange);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-view-all-products:hover {
    background: var(--secondary-orange);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.btn-view-all-products:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .product-group-title {
        font-size: 1.5rem;
    }
    
    .btn-view-all-products {
        width: 100%;
        max-width: 300px;
    }
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    min-width: 0;
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.product-image {
    position: relative;
    height: 220px;
    overflow: hidden !important;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    max-width: 100% !important;
    flex-shrink: 0;
    border-radius: 12px 12px 0 0;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 !important;
    min-width: 0 !important;
}

.product-image img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    object-fit: contain !important;
    object-position: center !important;
    transition: transform 0.3s ease;
    display: block !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    vertical-align: top;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

/* Strict image constraints - prevent any overflow */
.product-card * {
    max-width: 100%;
    box-sizing: border-box;
}

.product-card .product-image img {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    display: block !important;
    min-width: 0 !important;
}


.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary-orange);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.product-badge.out-of-stock {
    background: #999;
}

.product-info {
    padding: 0.75rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-width: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-brand {
    color: var(--primary-orange);
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
}

.product-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 0.4rem;
    line-height: 1.3;
}

.product-description {
    display: none !important;
}

.product-footer {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.6rem;
    border-top: 1px solid #f0f0f0;
}

.btn-add-to-cart {
    transition: all 0.3s ease;
    padding: 4px 12px !important;
    font-size: 0.7rem !important;
    width: 100%;
    margin-top: 0;
}

.btn-add-to-cart:hover:not(:disabled) {
    background: var(--secondary-orange) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.btn-add-to-cart:disabled {
    background: #ccc !important;
    cursor: not-allowed;
    opacity: 0.6;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-orange);
}

/* Product Sizes */
.product-sizes {
    margin-top: 20px;
    margin-bottom: 20px;
}

.sizes-label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    font-size: 16px;
    color: var(--dark-gray);
}

.sizes-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.size-option {
    padding: 12px 20px;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 80px;
    justify-content: center;
    font-weight: 500;
}

.size-option:hover {
    border-color: var(--primary-orange);
    background: #fff5f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 107, 53, 0.2);
}

.size-option.selected {
    border-color: var(--primary-orange);
    background: var(--primary-orange);
    color: white;
}

.size-option.selected .size-barcode,
.size-option.selected .size-stock {
    color: rgba(255, 255, 255, 0.9);
}

.size-option.size-unavailable {
    opacity: 0.6;
    cursor: not-allowed;
}

.size-option.size-unavailable:hover {
    border-color: #ddd;
    background: #f5f5f5;
    transform: none;
    box-shadow: none;
}

.size-stock {
    font-size: 12px;
    margin-left: 8px;
    font-weight: 500;
}

.size-in-stock {
    color: #27ae60;
}

.size-out-of-stock {
    color: #e74c3c;
}

.size-name {
    font-weight: 600;
}

.size-barcode {
    font-size: 12px;
    color: #999;
    font-weight: normal;
}

.product-btn {
    background: var(--primary-orange);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.product-btn:hover {
    background: #e65a2e;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-size: 1.5rem;
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: #666;
}

.loading-placeholder {
    text-align: center;
    padding: 3rem;
    color: #666;
    font-size: 1.1rem;
}

/* Products Loading Screen */
.products-loading-screen {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 4rem 2rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    z-index: 100;
    min-height: 500px;
}

.loading-spinner-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(255, 107, 53, 0.1);
    border-top-color: var(--primary-orange);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.2);
}

.loading-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-gray);
    margin: 0;
    letter-spacing: 0.5px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 768px) {
    .products-loading-screen {
        min-height: 400px;
        padding: 3rem 1.5rem;
    }
    
    .loading-spinner {
        width: 50px;
        height: 50px;
        border-width: 4px;
    }
    
    .loading-text {
        font-size: 1rem;
    }
}

/* Old static bikes section */
.bikes {
    padding: 6rem 0;
    background: var(--very-light-gray);
    position: relative;
    z-index: 10;
}

.bikes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.bike-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bike-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.bike-image {
    position: relative;
    overflow: hidden;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--very-light-gray);
}

.bike-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.bike-card:hover .bike-image img {
    transform: scale(1.05);
}

.bike-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-orange);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.bike-info {
    padding: 1.5rem;
}

.bike-info h3 {
    font-size: 1.5rem;
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
}

.bike-category {
    color: var(--primary-orange);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.bike-description {
    color: var(--medium-gray);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.bike-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.bike-features li {
    padding: 0.5rem 0;
    color: var(--medium-gray);
    position: relative;
    padding-left: 25px;
}

.bike-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-orange);
    font-weight: bold;
}

.bike-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 2px solid var(--very-light-gray);
}

.bike-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark-gray);
}

/* Галерея (Карусель) */
.gallery {
    display: none !important;
    padding: 6rem 0;
    background: var(--white);
}

.carousel-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.carousel {
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 20px 60px var(--shadow);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 107, 53, 0.9);
    color: var(--white);
    border: none;
    font-size: 2rem;
    padding: 1rem 1.5rem;
    cursor: pointer;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-btn:hover {
    background: var(--secondary-orange);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn-prev {
    left: 20px;
}

.carousel-btn-next {
    right: 20px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 2rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--light-gray);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--primary-orange);
    width: 35px;
    border-radius: 6px;
}

/* Контакты */
.contact {
    padding: 6rem 0;
    background: var(--very-light-gray);
}

.contact-content {
    display: flex;
    justify-content: center;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 800px;
    width: 100%;
}

.info-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 20px var(--shadow);
    transition: transform 0.3s ease;
}

.info-item:hover {
    transform: translateX(10px);
}

.info-icon {
    font-size: 2rem;
    color: var(--primary-orange);
}

.info-text h4 {
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.info-text p {
    color: var(--medium-gray);
    margin: 0;
}

.address-link {
    color: var(--medium-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.address-link:hover {
    color: var(--primary-orange);
    text-decoration: underline;
}

.contact-form {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 40px var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--very-light-gray);
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-orange);
}

.form-group textarea {
    resize: vertical;
}

/* Кнопка наверх */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgba(255, 107, 53, 0.7);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: rgba(255, 107, 53, 0.9);
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.scroll-to-top span {
    display: block;
    line-height: 1;
}

/* Cookie Consent Banner */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--dark-gray);
    color: var(--white);
    padding: 20px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    animation: slideUp 0.5s ease-out;
    border-top: 3px solid var(--primary-orange);
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-consent-text {
    flex: 1;
    min-width: 250px;
}

.cookie-consent-text p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--white);
}

.cookie-consent-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cookie-btn-accept {
    background: var(--primary-orange);
    color: var(--white);
}

.cookie-btn-accept:hover {
    background: var(--secondary-orange);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
}

.cookie-btn-decline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.cookie-btn-decline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--light-gray);
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .cookie-consent-banner {
        padding: 15px;
    }
    
    .cookie-consent-content {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .cookie-consent-text {
        min-width: 100%;
    }
    
    .cookie-consent-buttons {
        width: 100%;
        flex-direction: column;
    }
    
    .cookie-btn {
        width: 100%;
        padding: 12px 24px;
    }
}

/* Футер */
.footer {
    background: var(--dark-gray);
    color: var(--white);
    padding: 3rem 0 1.5rem;
    width: 100%;
    margin: 0;
    box-sizing: border-box;
}

.footer-content,
.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--primary-orange);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.footer-section h4 {
    color: var(--primary-orange);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section p {
    color: var(--light-gray);
    margin: 0;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a,
.footer-section a {
    color: var(--light-gray);
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-section ul li a:hover,
.footer-section a:hover {
    color: var(--primary-orange);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: var(--medium-gray);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary-orange);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--medium-gray);
    color: var(--light-gray);
}

/* Анимации отключены для стабильности */

/* Адаптивность */
@media (max-width: 968px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .footer-content,
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer {
        width: 100%;
        margin: 0;
        padding-left: 0;
        padding-right: 0;
    }
    
    .footer .container {
        padding: 0 20px;
    }

    .carousel-slide img {
        height: 400px;
    }
}

/* Скрыть мобильный переключатель на desktop */
.mobile-lang-switcher {
    display: none;
}

/* Desktop: hide mobile search, show desktop search */
@media (min-width: 769px) {
    .header-search-mobile {
        display: none !important;
    }
    
    .header-search-desktop {
        display: flex !important;
    }
}

@media (max-width: 768px) {
    .language-switcher {
        display: none !important;
    }
    
    .mobile-lang-switcher {
        display: none;
    }
    
    /* Скрываем десктопный поиск в шапке на мобильных */
    .header-search-desktop {
        display: none !important;
    }
    
    /* Делаем navbar flexbox с колонками для мобильных */
    .navbar {
        display: flex !important;
        flex-direction: column !important;
        border-bottom: none !important;
    }
    
    /* Контейнер с шапкой должен быть первым */
    .navbar > .container {
        order: 1 !important;
    }
    
    /* Показываем мобильный поиск под шапкой */
    .header-search-mobile {
        display: flex !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0.75rem 0 !important;
        background: linear-gradient(135deg, rgba(44, 62, 80, 0.98) 0%, rgba(52, 73, 94, 0.98) 100%);
        border-top: 1px solid rgba(255, 107, 53, 0.2);
        position: relative !important;
        box-sizing: border-box !important;
        order: 2 !important;
        flex-shrink: 0 !important;
    }
    
    .header-search-mobile .container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 20px !important;
        box-sizing: border-box !important;
    }
    
    .header-search-mobile .header-search-input {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0.75rem 1rem !important;
        font-size: 1rem !important;
        border-radius: 8px !important;
        box-sizing: border-box !important;
    }
    
    /* Мобильная навигация: бургер слева, логотип рядом, кнопки справа */
    .navbar {
        position: relative !important;
        overflow: visible !important;
        padding: 0.6rem 0 !important;
    }
    
    .nav-wrapper {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        align-items: center !important;
        gap: 0 !important;
        padding: 0.444rem 10px !important;
        position: relative !important;
        min-height: auto !important;
    }
    
    /* Используем gap только между нужными элементами через margin */
    .nav-wrapper > .burger {
        margin-right: 0.533rem !important;
    }
    
    .nav-wrapper > .logo {
        margin-right: 0.667rem !important;
    }
    
    .nav-wrapper > .language-switcher {
        margin-right: 0.667rem !important;
    }
    
    /* Переопределяем десктопные стили, которые блокируют margin на мобильных */
    .nav-wrapper > .language-switcher {
        margin-left: 0 !important;
        margin-right: 0.667rem !important;
        position: absolute !important;
        right: 50px !important;
        left: auto !important;
        transform: none !important;
    }
    
    .nav-wrapper > .cart-icon-container {
        margin-left: 0 !important;
        margin-right: 0 !important;
        position: absolute !important;
        right: 10px !important;
        left: auto !important;
        transform: none !important;
    }
    
    .nav-wrapper > .logo {
        margin-right: 0 !important;
    }
    
    /* Логотип по центру шапки */
    .logo {
        order: 1 !important;
        flex: 0 1 auto !important;
        text-align: center !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        margin-left: auto !important;
        margin-right: 0 !important;
        width: auto !important;
        max-width: none !important;
        position: absolute !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
    }
    
    .logo-img {
        height: 33.75px !important;
        max-width: 135px !important;
        margin: 0 !important;
    }
    
    /* Отступ от логотипа до переключателя языков */
    .language-switcher {
        margin-left: 0.667rem !important;
        margin-right: 0.667rem !important;
    }
    
    /* Отступ между переключателем языков и корзиной */
    .cart-icon-container {
        margin-left: 0.667rem !important;
    }
    
    /* Контейнер для элементов управления - в одну строку под логотипом */
    .user-auth {
        order: 2 !important;
        margin: 0 !important;
        flex-shrink: 0 !important;
    }
    
    .language-switcher {
        order: 2 !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        margin-left: 0 !important;
        margin-right: 0.667rem !important;
        flex-shrink: 0 !important;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: absolute !important;
        right: 50px !important;
        left: auto !important;
        transform: none !important;
    }
    
    .cart-icon-container {
        order: 3 !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        flex-shrink: 0 !important;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: absolute !important;
        right: 10px !important;
        left: auto !important;
        transform: none !important;
    }
    
    .b2b-switcher {
        order: 2 !important;
        margin: 0 !important;
        flex-shrink: 0 !important;
    }
    
    /* Скрываем десктопный поиск на мобильных */
    .header-search-desktop {
        display: none !important;
    }
    
    /* Переопределяем десктопные position: absolute для мобильных */
    .nav-wrapper > .header-search,
    .nav-wrapper > .language-switcher,
    .nav-wrapper > .user-auth,
    .nav-wrapper > .b2b-switcher,
    .nav-wrapper > .cart-icon-container {
        position: relative !important;
        left: auto !important;
        transform: none !important;
        z-index: auto !important;
    }
    
    /* Дополнительное переопределение для гарантии применения margin */
    /* Переопределяем все возможные комбинации селекторов */
    .navbar .nav-wrapper > .language-switcher,
    .nav-wrapper > .header-search + .language-switcher,
    .nav-wrapper > .language-switcher {
        margin-left: 0 !important;
        margin-right: 0.667rem !important;
        position: absolute !important;
        right: 50px !important;
        left: auto !important;
        transform: none !important;
    }
    
    .navbar .nav-wrapper > .cart-icon-container,
    .nav-wrapper > .b2b-switcher + .cart-icon-container,
    .nav-wrapper > .user-auth + .cart-icon-container,
    .nav-wrapper > .language-switcher + .cart-icon-container,
    .nav-wrapper > .cart-icon-container {
        margin-left: 0 !important;
        margin-right: 0 !important;
        position: absolute !important;
        right: 10px !important;
        left: auto !important;
        transform: none !important;
    }
    
    .navbar .nav-wrapper > .logo,
    .nav-wrapper > .logo {
        margin-left: auto !important;
        margin-right: 0 !important;
        position: absolute !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
    }
    
    .burger {
        order: 0 !important;
        margin: 0 !important;
        margin-right: 0.667rem !important;
        flex-shrink: 0 !important;
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Улучшенные стили для кнопок на мобильных */
    .user-auth .login-btn,
    .user-auth .logout-btn {
        padding: 0.6rem 1.2rem !important;
        font-size: 0.85rem !important;
        min-height: 40px !important;
        white-space: nowrap !important;
        border-radius: 8px !important;
        font-weight: 600 !important;
    }
    
    /* Корзина на мобильных */
    .cart-icon {
        width: 29.33px !important;
        height: 29.33px !important;
        min-width: 29.33px !important;
        min-height: 29.33px !important;
        border-radius: 5.33px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    /* B2B переключатель на мобильных */
    .b2b-switcher-container {
        padding: 0.5rem 0.8rem !important;
        border-radius: 8px !important;
        display: flex !important;
        align-items: center !important;
        gap: 0.6rem !important;
    }
    
    /* Бургер меню на мобильных */
    .burger {
        width: 29.33px !important;
        height: 29.33px !important;
        padding: 0 !important;
        border-radius: 5.33px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: rgba(255, 255, 255, 0.05) !important;
        transition: all 0.3s ease !important;
    }
    
    .burger:hover {
        background: rgba(255, 107, 53, 0.2) !important;
    }
    
    /* Выравнивание всех элементов управления */
    .cart-icon-container,
    .burger,
    .language-switcher {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Переключатель языков на мобильных */
    .language-switcher .lang-dropdown-btn {
        width: 29.33px !important;
        height: 29.33px !important;
        min-width: 29.33px !important;
        min-height: 29.33px !important;
        padding: 0 !important;
        border-radius: 5.33px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        visibility: visible !important;
        opacity: 1 !important;
        font-size: 0.5rem !important;
    }
    
    .language-switcher .lang-dropdown-btn .current-lang {
        font-size: 0.5rem !important;
    }
    
    .language-switcher .lang-dropdown-btn svg {
        display: none !important;
    }
    
    /* Убеждаемся, что корзина видна */
    .cart-icon-container .cart-icon {
        visibility: visible !important;
        opacity: 1 !important;
        display: flex !important;
    }
    
    /* Скрываем кнопку входа и переключатель B2B на мобильных - они в меню */
    .user-auth,
    .b2b-switcher {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
        position: absolute !important;
        left: -9999px !important;
    }
    
    /* Скрыть кнопки карусели на мобильных */
    .brands-carousel-container {
        margin: 5rem 0 6rem; /* Убираем отрицательные margin на мобильных */
        padding: 0; /* Убираем боковые отступы на мобильных */
    }
    
    .brands-carousel-btn-prev,
    .brands-carousel-btn-next {
        display: none !important;
    }
    
    /* Затемнение фона при открытом меню */
    .menu-overlay {
        display: none !important;
        visibility: hidden !important;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        z-index: 10001 !important;
        opacity: 0 !important;
        transition: opacity 0.3s ease;
        pointer-events: none !important;
        width: 0 !important;
        height: 0 !important;
    }

    .menu-overlay.active {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        width: 100% !important;
        height: 100vh !important;
    }
    
    /* Скрываем результаты поиска при открытом меню */
    .menu-overlay.active ~ * .search-results-dropdown,
    .nav-menu.active ~ * .search-results-dropdown,
    .nav-menu.active + * .search-results-dropdown,
    body:has(.nav-menu.active) .search-results-dropdown,
    body:has(.menu-overlay.active) .search-results-dropdown {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }

    /* Мобильное меню (выпадающее под шапкой) */
    .navbar .nav-menu,
    .nav-menu {
        order: 999 !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        transform: translateY(-100%) !important;
        flex-direction: column !important;
        background: var(--dark-gray) !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 100vh !important;
        max-height: 100vh !important;
        text-align: left !important;
        padding: 0 !important;
        margin: 0 !important;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
        overflow-x: hidden !important;
        overflow-y: hidden !important;
        z-index: 10002 !important;
        /* Полностью скрываем меню, когда оно не активно */
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: none !important;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease !important;
        justify-content: flex-start !important;
    }

    .navbar .nav-menu.active,
    .nav-menu.active {
        transform: translateY(0) !important;
        pointer-events: auto !important;
    }
    
    .navbar .nav-menu:not(.active),
    .nav-menu:not(.active) {
        transform: translateY(-100%) !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
        max-height: 0 !important;
        overflow: hidden !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    /* Показываем кнопку закрытия в мобильном меню */
    .nav-menu .menu-close-btn-container {
        display: block !important;
        position: sticky !important;
        top: 0 !important;
        background: var(--dark-gray) !important;
        z-index: 10 !important;
        padding: 0.75rem 1.125rem !important; /* 0.5rem * 1.5, 0.75rem * 1.5 */
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
        flex-shrink: 0 !important;
    }
    
    /* Увеличиваем все элементы мобильного меню в 1.5 раза */
    .nav-menu .menu-close-btn {
        font-size: 3.75rem !important; /* 2.5rem * 1.5 */
        width: 60px !important; /* 40px * 1.5 */
        height: 60px !important; /* 40px * 1.5 */
    }
    
    .nav-menu li:not(.menu-close-btn-container) {
        padding: 0.375rem 1.125rem !important; /* 0.25rem * 1.5, 0.75rem * 1.5 */
    }
    
    .nav-menu li a {
        padding: 0.375rem 0 !important; /* 0.25rem * 1.5 */
        font-size: 1.05rem !important; /* 0.7rem * 1.5 */
        line-height: 1.8 !important; /* 1.2 * 1.5 */
    }
    
    .nav-menu li a:hover {
        padding-left: 0.375rem !important; /* 0.25rem * 1.5 */
    }
    
    .nav-menu::after {
        margin: 0.6rem auto !important; /* 0.4rem * 1.5 */
    }
    
    .mobile-lang-switcher {
        padding: 0.45rem 0 !important; /* 0.3rem * 1.5 */
    }
    
    .mobile-lang-buttons {
        gap: 0.75rem !important; /* 1.125rem / 1.5 */
        padding: 0 1rem !important; /* 1.5rem / 1.5 */
    }
    
    .mobile-lang-btn {
        padding: 0.6rem 1rem !important; /* Уменьшено: было 0.9rem 1.5rem */
        font-size: 0.75rem !important; /* Уменьшено: было 1.125rem */
        border-radius: 8px !important; /* Уменьшено: было 12px */
        max-width: 80px !important; /* Уменьшено: было 120px */
        border-width: 1.33px !important; /* Уменьшено: было 2px */
    }
    
    .nav-menu .mobile-user-auth {
        padding: 0.45rem 1.125rem !important; /* 0.3rem * 1.5, 0.75rem * 1.5 */
    }
    
    .mobile-login-btn {
        padding: 0.6375rem 1.35rem !important; /* 0.425rem * 1.5, 0.9rem * 1.5 */
        font-size: 0.75rem !important; /* 0.5rem * 1.5 */
        border-radius: 18px !important; /* 12px * 1.5 */
    }
    
    .mobile-user-menu {
        gap: 0.75rem !important; /* 0.5rem * 1.5 */
        margin-top: 0.75rem !important; /* 0.5rem * 1.5 */
    }
    
    .mobile-user-menu-item {
        padding: 1.125rem 1.5rem !important; /* 0.75rem * 1.5, 1rem * 1.5 */
        font-size: 1.425rem !important; /* 0.95rem * 1.5 */
        border-radius: 9px !important; /* 6px * 1.5 */
    }
    
    .mobile-logout-btn {
        padding: 1rem 1.34rem !important; /* Увеличено в 2 раза: было 0.5rem 0.67rem */
        padding-top: 1rem !important; /* Увеличено в 2 раза: было 0.5rem */
        margin-top: 0.66rem !important; /* Увеличено в 2 раза: было 0.33rem */
        font-size: 1.26rem !important; /* Увеличено в 2 раза: было 0.63rem */
    }
    
    .nav-menu .mobile-b2b-switcher {
        padding: 0.45rem 1.125rem !important; /* 0.3rem * 1.5, 0.75rem * 1.5 */
    }
    
    .mobile-b2b-switcher-container {
        gap: 0.6rem !important; /* 0.4rem * 1.5 */
        padding: 0.45rem 0.75rem !important; /* 0.3rem * 1.5, 0.5rem * 1.5 */
        border-radius: 12px !important; /* 8px * 1.5 */
        max-width: 300px !important; /* 200px * 1.5 */
    }
    
    .mobile-b2b-switcher-label {
        font-size: 0.675rem !important; /* 0.45rem * 1.5 */
    }
    
    .mobile-b2b-switcher-toggle {
        width: 63px !important; /* 42px * 1.5 */
        height: 30px !important; /* 20px * 1.5 */
        border-radius: 15px !important; /* 10px * 1.5 */
    }
    
    .mobile-b2b-switcher-toggle::before {
        top: 3px !important; /* 2px * 1.5 */
        left: 3px !important; /* 2px * 1.5 */
        width: 24px !important; /* 16px * 1.5 */
        height: 24px !important; /* 16px * 1.5 */
    }
    
    .mobile-b2b-switcher-toggle.active::before {
        left: 36px !important; /* 24px * 1.5 */
    }
    
    .nav-menu .mobile-search {
        padding: 0.45rem 1.125rem !important; /* 0.3rem * 1.5, 0.75rem * 1.5 */
    }
    
    .mobile-search-input {
        padding: 1.125rem 1.5rem !important; /* 0.75rem * 1.5, 1rem * 1.5 */
        border-radius: 12px !important; /* 8px * 1.5 */
        font-size: 1.35rem !important; /* 0.9rem * 1.5 */
    }
    
    .mobile-search-input::placeholder {
        font-size: 1.35rem !important; /* 0.9rem * 1.5 */
    }
    
    /* Скрыть элементы меню когда закрыто, кроме кнопки закрытия */
    .nav-menu:not(.active) li:not(.menu-close-btn-container) {
        opacity: 0;
        pointer-events: none;
    }
    
    .nav-menu.active li:not(.menu-close-btn-container) {
        opacity: 1;
        pointer-events: auto;
        transition: opacity 0.3s ease 0.1s;
    }
    
    .nav-menu li {
        display: block;
        width: 100%;
        list-style: none;
        padding: 0 0.75rem;
    }
    
    .nav-menu li:not(.menu-close-btn-container) {
        padding: 0.25rem 0.75rem;
        flex-shrink: 0;
    }
    
    .nav-menu li a {
        display: block !important;
        width: 100%;
        padding: 0.25rem 0;
        color: var(--white) !important;
        text-decoration: none !important;
        font-weight: 600;
        font-size: 0.7rem;
        transition: all 0.3s ease;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        cursor: pointer;
        position: relative;
        z-index: 1;
        line-height: 1.2;
    }
    
    .nav-menu li a:hover {
        color: var(--primary-orange) !important;
        padding-left: 0.25rem;
    }
    
    /* Убеждаемся, что ссылки кликабельны */
    .nav-menu.active li a {
        pointer-events: auto !important;
        opacity: 1 !important;
    }
    
    .nav-menu::after {
        content: '';
        display: block;
        width: 80%;
        height: 1px;
        background: var(--light-gray);
        margin: 0.4rem auto;
        flex-shrink: 0;
    }
    
    .mobile-lang-switcher {
        display: none;
        justify-content: center;
        padding: 0.3rem 0;
        flex-shrink: 0;
        width: 100%;
    }
    
    .nav-menu.active .mobile-lang-switcher {
        display: flex;
    }
    
    /* Контейнер для кнопок языков в ряд */
    .mobile-lang-buttons {
        display: flex;
        gap: 0.75rem;
        justify-content: center;
        align-items: center;
        width: 100%;
        padding: 0 1rem;
    }
    
    /* Кнопки языков */
    .mobile-lang-btn {
        flex: 1;
        max-width: 80px; /* Уменьшено: было 120px */
        padding: 0.6rem 1rem; /* Уменьшено: было 0.9rem 1.5rem */
        background: rgba(255, 255, 255, 0.1);
        border: 1.33px solid rgba(255, 255, 255, 0.3); /* Уменьшено: было 2px */
        color: var(--white);
        border-radius: 8px; /* Уменьшено: было 12px */
        cursor: pointer;
        font-size: 0.75rem; /* Уменьшено: было 1.125rem */
        font-weight: 600;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        text-align: center;
        letter-spacing: 0.5px;
    }
    
    .mobile-lang-btn:hover {
        background: rgba(255, 255, 255, 0.2);
        border-color: rgba(255, 255, 255, 0.5);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
    }
    
    .mobile-lang-btn.active,
    .mobile-lang-btn[data-lang="ru"].active,
    .mobile-lang-btn[data-lang="en"].active,
    .mobile-lang-btn[data-lang="ge"].active {
        background: var(--primary-orange);
        border-color: var(--primary-orange);
        color: var(--white);
        box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
    }
    
    .mobile-lang-btn:active {
        transform: translateY(0);
    }
    
    /* Mobile User Auth в меню */
    .nav-menu .mobile-user-auth {
        display: block !important;
        width: 100%;
        padding: 0.3rem 0.75rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        margin-top: auto;
        flex-shrink: 0;
    }
    
    /* По умолчанию скрываем оба профиля, показываем только нужный через JS */
    .mobile-user-menu #mobileCustomerProfileLink,
    .mobile-user-menu #mobileB2bProfileLink {
        display: none;
    }
    
    /* Показываем только если явно установлен display: block через inline стиль */
    .mobile-user-menu #mobileCustomerProfileLink[style*="display: block"],
    .mobile-user-menu #mobileCustomerProfileLink[style*="display:block"],
    .mobile-user-menu #mobileB2bProfileLink[style*="display: block"],
    .mobile-user-menu #mobileB2bProfileLink[style*="display:block"] {
        display: block !important;
    }
    
    .mobile-login-btn {
        width: 100%;
        padding: 0.425rem 0.9rem;
        background: var(--white);
        border: none;
        color: var(--dark-grey);
        border-radius: 12px;
        cursor: pointer;
        font-size: 0.5rem;
        font-weight: 600;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        text-transform: none;
        letter-spacing: 0.3px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.1);
        position: relative;
    }
    
    .mobile-login-btn:hover {
        background: linear-gradient(135deg, var(--primary-orange), #ff8c5a);
        color: var(--white) !important;
        border-color: transparent;
        box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4), 0 2px 8px rgba(255, 107, 53, 0.3);
        transform: translateY(-2px);
    }
    
    .mobile-login-btn:hover * {
        color: var(--white) !important;
    }
    
    .mobile-login-btn:active {
        transform: translateY(0);
        box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3), 0 1px 4px rgba(255, 107, 53, 0.2);
    }
    
    .mobile-user-menu {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        margin-top: 0.5rem;
    }
    
    /* Mobile User Info - аватар и имя пользователя */
    .mobile-user-info {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        margin-bottom: 8px;
    }
    
    .mobile-user-avatar-link {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 48px;
        height: 48px;
        border-radius: 50%;
        background: rgba(255, 107, 53, 0.2);
        flex-shrink: 0;
        text-decoration: none;
        overflow: hidden;
    }
    
    .mobile-user-avatar-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 50%;
    }
    
    .mobile-user-avatar-initials {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
        font-size: 18px;
        font-weight: 600;
        color: var(--white);
        background: var(--primary-orange);
        border-radius: 50%;
    }
    
    .mobile-user-name {
        flex: 1;
        font-size: 16px;
        font-weight: 600;
        color: var(--white);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .mobile-user-menu-item {
        display: block;
        padding: 0.75rem 1rem;
        color: var(--white);
        text-decoration: none;
        font-size: 0.95rem;
        font-weight: 500;
        transition: all 0.3s ease;
        border-radius: 6px;
        text-align: left;
        background: transparent;
        border: none;
        cursor: pointer;
        width: 100%;
    }
    
    /* Скрываем профили по умолчанию, показываем только нужный через JS */
    .mobile-user-menu-item[style*="display: none"],
    .mobile-user-menu-item[style*="display:none"] {
        display: none !important;
    }
    
    .mobile-user-menu-item:hover {
        background: rgba(255, 107, 53, 0.2);
        color: var(--primary-orange);
    }
    
    .mobile-logout-btn {
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding: 1rem 1.34rem !important; /* Увеличено в 2 раза: было 0.5rem 0.67rem */
        padding-top: 1rem !important; /* Увеличено в 2 раза: было 0.5rem */
        margin-top: 0.66rem !important; /* Увеличено в 2 раза: было 0.33rem */
        color: #e74c3c;
        font-size: 1.26rem !important; /* Увеличено в 2 раза: было 0.63rem */
    }
    
    .mobile-logout-btn:hover {
        background: rgba(231, 76, 60, 0.2);
        color: #c0392b;
    }
    
    /* Mobile B2B Switcher в меню */
    /* Переключатель B2B показывается только через JavaScript для авторизованных B2B пользователей */
    .nav-menu .mobile-b2b-switcher {
        display: none !important;
        width: 100%;
        padding: 0.3rem 0.75rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        margin-top: 0;
        flex-shrink: 0;
    }
    
    /* Показываем только если явно установлено через JavaScript */
    .nav-menu .mobile-b2b-switcher[data-visible="true"] {
        display: block !important;
    }
    
    .mobile-b2b-switcher-container {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.4rem;
        padding: 0.3rem 0.5rem;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 8px;
        cursor: pointer;
        transition: all 0.3s ease;
        margin: 0 auto;
        max-width: 200px;
    }
    
    .mobile-b2b-switcher-container:hover {
        background: rgba(255, 255, 255, 0.15);
        border-color: var(--primary-orange);
    }
    
    .mobile-b2b-switcher-label {
        font-size: 0.45rem;
        font-weight: 600;
        color: var(--white);
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .mobile-b2b-switcher-toggle {
        position: relative;
        width: 42px;
        height: 20px;
        background: var(--light-gray);
        border-radius: 10px;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .mobile-b2b-switcher-toggle.active {
        background: var(--primary-orange);
    }
    
    .mobile-b2b-switcher-toggle::before {
        content: '';
        position: absolute;
        top: 2px;
        left: 2px;
        width: 16px;
        height: 16px;
        background: var(--white);
        border-radius: 50%;
        transition: all 0.3s ease;
    }
    
    .mobile-b2b-switcher-toggle.active::before {
        left: 24px;
    }
    
    /* Mobile Profile Link - ALWAYS HIDDEN (deprecated, use mobileUserMenu instead) */
    .nav-menu .mobile-profile-link {
        display: none !important;
        visibility: hidden !important;
        padding: 0 !important;
        border: none !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
    
    /* Force hide even if JavaScript tries to show it */
    .nav-menu .mobile-profile-link[style*="display: block"],
    .nav-menu .mobile-profile-link[style*="display:block"],
    .nav-menu .mobile-profile-link[style*="display: flex"],
    .nav-menu .mobile-profile-link[style*="display:flex"] {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
    
    .mobile-profile-link a {
        display: block;
        padding: 0.8rem 1rem;
        color: var(--white);
        text-decoration: none;
        font-weight: 500;
        text-align: center;
        transition: all 0.3s ease;
        border-radius: 6px;
        margin: 0 1rem;
    }
    
    .mobile-profile-link a:hover {
        background: rgba(255, 107, 53, 0.2);
        color: var(--primary-orange);
    }
    
    /* Mobile Search */
    .nav-menu .mobile-search {
        display: block !important;
        width: 100%;
        padding: 0.3rem 0.75rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        margin-top: 0;
        flex-shrink: 0;
    }
    
    .mobile-search-input {
        width: 100%;
        padding: 0.75rem 1rem;
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.1);
        color: var(--white);
        font-size: 0.9rem;
        transition: all 0.3s ease;
    }
    
    .mobile-search-input:focus {
        outline: none;
        border-color: var(--primary-orange);
        background: rgba(255, 255, 255, 0.15);
        box-shadow: 0 0 0 2px rgba(255, 107, 53, 0.2);
    }
    
    .mobile-search-input::placeholder {
        color: rgba(255, 255, 255, 0.6);
    }

    .burger {
        display: flex;
        z-index: 1001;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .brand-slide {
        width: 50px;
        padding: 0.25rem 0.3rem;
        gap: 0.15rem;
    }
    
    .brand-logo {
        height: 10px;
    }
    
    .brand-logo img {
        max-height: 10px;
    }
    
    .brand-label {
        font-size: 0.25rem;
    }
    
    .brands-carousel-track {
        gap: 0.75rem;
    }
    
    .brands-carousel-container {
        margin: 2rem 0 3rem;
    }
    
    .section-header h1 {
        font-size: 1.66rem !important;
    }
    
    .section-header h2 {
        font-size: 1.66rem !important;
    }
    
    .section-header p {
        font-size: 0.55rem !important;
    }

    .brands-carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .brands-carousel-btn-prev,
    .brands-carousel-btn-next {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }

    .bikes-grid {
        grid-template-columns: 1fr;
    }

    .carousel-slide img {
        height: 300px;
    }

    .carousel-btn {
        width: 45px;
        height: 45px;
        font-size: 1.5rem;
        padding: 0.5rem;
    }

    .carousel-btn-prev {
        left: 10px;
    }

    .carousel-btn-next {
        right: 10px;
    }
    
    /* Products Categories Tablet */
    .categories-scroll-container {
        padding: 0 2rem;
    }
    
    .categories-scroll-btn-prev {
        left: 0.25rem;
    }
    
    .categories-scroll-btn-next {
        right: 0.25rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-header h2 {
        font-size: 4rem;
    }

    .contact-form {
        padding: 1.5rem;
    }
    
    /* Products Layout Mobile */
    .products-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .filters-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 300px;
        height: 100vh;
        max-height: none;
        z-index: 1001;
        transition: left 0.3s ease;
        overflow-y: auto;
        padding-top: 120px;
    }
    
    .sidebar-header {
        padding-top: 20px;
    }
    
    .filters-sidebar.active {
        left: 0;
    }
    
    .sidebar-toggle {
        display: block;
    }
    
    .mobile-filters-toggle {
        display: flex;
    }
    
    .products-top-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .products-header {
        text-align: center;
    }
}

/* B2B Profile Page Styles */
.b2b-profile-section {
    padding: 160px 0 50px;
    min-height: calc(100vh - 200px);
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    margin-top: 0;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    overflow-x: hidden;
    position: relative;
}

.b2b-profile-container {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.profile-sidebar {
    background: white;
    border-radius: 16px;
    padding: 35px;
    height: fit-content;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
    position: sticky;
    top: 180px;
    transition: all 0.3s ease;
}

.profile-sidebar:hover {
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
}

.profile-header {
    text-align: center;
    padding-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 30px;
    position: relative;
}

.profile-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-orange), transparent);
}

.profile-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto 25px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--secondary-orange) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 700;
    color: white;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    border: 4px solid white;
}

.profile-avatar:hover {
    transform: scale(1.08) rotate(5deg);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.profile-avatar input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    top: 0;
    left: 0;
    z-index: 10;
}

.avatar-upload-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.85) 0%, rgba(255, 140, 0, 0.85) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50%;
    color: white;
    font-size: 0.85rem;
    text-align: center;
    padding: 10px;
    font-weight: 600;
    z-index: 5;
}

.profile-avatar:hover .avatar-upload-overlay,
.profile-avatar:active .avatar-upload-overlay {
    opacity: 1;
}

/* Show overlay on mobile devices */
@media (max-width: 768px) {
    .avatar-upload-overlay {
        opacity: 0.7;
    }
    
    .profile-avatar:active .avatar-upload-overlay {
        opacity: 1;
    }
}

.profile-header h2 {
    font-size: 1.6rem;
    margin-bottom: 8px;
    color: var(--dark-gray);
    font-weight: 700;
    letter-spacing: -0.5px;
}

.profile-header p {
    color: var(--medium-gray);
    font-size: 0.95rem;
    word-break: break-word;
}

.profile-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-nav-btn {
    padding: 16px 22px;
    background: transparent;
    border: 2px solid #f0f0f0;
    border-radius: 10px;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1rem;
    color: var(--dark-gray);
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.profile-nav-btn::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: var(--primary-orange);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.profile-nav-btn:hover {
    border-color: var(--primary-orange);
    background: linear-gradient(90deg, rgba(255, 107, 53, 0.08) 0%, rgba(255, 107, 53, 0.03) 100%);
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.15);
}

.profile-nav-btn:hover::before {
    transform: scaleY(1);
}

.profile-nav-btn.active {
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--secondary-orange) 100%);
    color: white;
    border-color: var(--primary-orange);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
    transform: translateX(0);
}

.profile-nav-btn.active::before {
    transform: scaleY(1);
    width: 4px;
    background: white;
}

.profile-content {
    background: white;
    border-radius: 16px;
    padding: 45px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
    transition: all 0.3s ease;
}

.profile-content:hover {
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
}

.profile-section {
    display: none;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-section.active {
    display: block;
}

.profile-section h2 {
    font-size: 2.2rem;
    margin-bottom: 35px;
    color: var(--dark-gray);
    font-weight: 700;
    letter-spacing: -0.5px;
    position: relative;
    padding-bottom: 15px;
}

.profile-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-orange), var(--secondary-orange));
    border-radius: 2px;
}

.profile-form {
    max-width: 650px;
}

.profile-form .form-group {
    margin-bottom: 28px;
}

.profile-form label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--dark-gray);
    font-size: 0.95rem;
    letter-spacing: 0.2px;
}

.profile-form input,
.profile-form textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fafafa;
    font-family: inherit;
}

.profile-form input:focus,
.profile-form textarea:focus {
    outline: none;
    border-color: var(--primary-orange);
    background: white;
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.1);
    transform: translateY(-1px);
}

.profile-form textarea {
    resize: vertical;
    min-height: 110px;
    font-family: inherit;
}

.form-actions {
    margin-top: 35px;
    padding-top: 25px;
    border-top: 2px solid #f0f0f0;
}

.form-actions .btn-primary {
    padding: 14px 35px;
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--secondary-orange) 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    letter-spacing: 0.3px;
}

.form-actions .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.form-actions .btn-primary:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(255, 107, 53, 0.3);
}

.orders-list {
    padding: 20px 0;
}

.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--medium-gray);
}

.empty-state p {
    font-size: 1.15rem;
    font-weight: 500;
}

@media (max-width: 968px) {
    .b2b-profile-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .profile-sidebar {
        order: 1;
        position: relative;
        top: auto;
        padding: 25px;
    }
    
    .profile-content {
        order: 2;
        padding: 30px;
    }
    
    .profile-nav {
        flex-direction: row;
        overflow-x: auto;
        gap: 10px;
        padding-bottom: 8px;
        padding-right: 0;
        margin-left: 0;
        margin-right: 0;
        -webkit-overflow-scrolling: touch;
        width: 100%;
        box-sizing: border-box;
    }
    
    .profile-nav::-webkit-scrollbar {
        height: 5px;
    }
    
    .profile-nav::-webkit-scrollbar-thumb {
        background: var(--primary-orange);
        border-radius: 3px;
    }
    
    .profile-nav::-webkit-scrollbar-track {
        background: #f0f0f0;
        border-radius: 3px;
    }
    
    .profile-nav-btn {
        white-space: nowrap;
        min-width: 150px;
        padding: 14px 18px;
        font-size: 0.9rem;
        transform: none;
    }
    
    .profile-nav-btn:hover {
        transform: translateY(-2px);
    }
    
    .profile-nav-btn::before {
        width: 100%;
        height: 3px;
        top: auto;
        bottom: 0;
        transform: scaleX(0);
    }
    
    .profile-nav-btn:hover::before,
    .profile-nav-btn.active::before {
        transform: scaleX(1);
    }
}

@media (max-width: 768px) {
    .b2b-profile-section {
        padding: 140px 0 20px;
        background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    }
    
    .b2b-profile-section .container {
        padding: 0 10px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin: 0 auto;
        overflow-x: hidden;
    }
    
    .b2b-profile-container {
        gap: 15px;
        padding: 0;
        margin: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    .profile-sidebar {
        padding: 25px 20px;
        border-radius: 12px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin: 0;
        overflow-x: hidden;
        position: relative;
        top: auto;
    }
    
    .profile-content {
        overflow-x: hidden;
        padding: 25px 20px;
        border-radius: 12px;
    }
    
    .profile-header {
        padding-bottom: 25px;
        margin-bottom: 25px;
    }
    
    .profile-avatar {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
        margin-bottom: 20px;
        border-width: 3px;
    }
    
    .avatar-upload-overlay {
        font-size: 0.75rem;
        padding: 8px;
    }
    
    .profile-header h2 {
        font-size: 1.4rem;
        margin-bottom: 8px;
    }
    
    .profile-header p {
        font-size: 0.9rem;
    }
    
    .profile-nav {
        gap: 8px;
        width: 100%;
        box-sizing: border-box;
        margin-left: 0;
        margin-right: 0;
        padding-left: 0;
        padding-right: 0;
    }
    
    .profile-nav-btn {
        min-width: 130px;
        padding: 12px 16px;
        font-size: 0.9rem;
        border-radius: 8px;
    }
    
    .profile-content {
        padding: 25px 20px;
        border-radius: 12px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin: 0;
    }
    
    .profile-section h2 {
        font-size: 1.6rem;
        margin-bottom: 25px;
        padding-bottom: 12px;
    }
    
    .profile-section h2::after {
        width: 50px;
        height: 3px;
    }
    
    .profile-form {
        max-width: 100%;
    }
    
    .profile-form .form-group {
        margin-bottom: 22px;
    }
    
    .profile-form label {
        font-size: 0.95rem;
        margin-bottom: 8px;
    }
    
    .profile-form input,
    .profile-form textarea {
        padding: 12px 15px;
        font-size: 0.95rem;
        border-radius: 8px;
        border-width: 2px;
        -webkit-appearance: none;
        appearance: none;
        min-height: 48px;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .profile-form textarea {
        min-height: 100px;
        resize: vertical;
    }
    
    .form-actions {
        margin-top: 30px;
        padding-top: 20px;
    }
    
    .form-actions .btn-primary {
        width: 100%;
        padding: 15px 25px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .b2b-profile-section {
        padding: 140px 0 15px;
    }
    
    .b2b-profile-section .container {
        padding: 0 8px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin: 0 auto;
        overflow-x: hidden;
    }
    
    .b2b-profile-container {
        padding: 0;
        margin: 0;
        gap: 12px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    .profile-sidebar {
        padding: 20px 15px;
        border-radius: 10px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin: 0;
        overflow-x: hidden;
    }
    
    .profile-content {
        padding: 20px 15px;
        border-radius: 10px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin: 0;
        overflow-x: hidden;
    }
    
    .profile-avatar {
        width: 90px;
        height: 90px;
        font-size: 2.2rem;
    }
    
    .profile-header h2 {
        font-size: 1.3rem;
    }
    
    .profile-section h2 {
        font-size: 1.4rem;
    }
    
    .profile-nav-btn {
        min-width: 120px;
        padding: 11px 14px;
        font-size: 0.85rem;
    }
}

/* Extra small devices (320px and below) */
@media (max-width: 320px) {
    .b2b-profile-section {
        padding: 145px 0 10px;
    }
    
    .b2b-profile-section .container {
        padding: 0 6px;
    }
    
    .profile-sidebar {
        padding: 18px 12px;
    }
    
    .profile-content {
        padding: 12px 8px;
    }
    
    .profile-nav-btn {
        min-width: 100px;
        padding: 8px 10px;
        font-size: 0.75rem;
    }
    
    .profile-form input,
    .profile-form textarea {
        padding: 8px 10px;
        font-size: 0.85rem;
    }
    
    .profile-avatar {
        width: 65px;
        height: 65px;
        font-size: 1.6rem;
    }
    
    .avatar-upload-overlay {
        font-size: 0.6rem;
        padding: 5px;
    }
    
    .profile-header h2 {
        font-size: 1rem;
    }
    
    .profile-header p {
        font-size: 0.75rem;
    }
    
    .profile-nav-btn {
        min-width: 100px;
        padding: 8px 10px;
        font-size: 0.75rem;
    }
    
    .profile-content {
        padding: 12px 8px;
    }
    
    .profile-section h2 {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
    
    .profile-form .form-group {
        margin-bottom: 15px;
    }
    
    .profile-form label {
        font-size: 0.8rem;
    }
    
    .profile-form input,
    .profile-form textarea {
        padding: 8px 10px;
        font-size: 0.85rem;
        min-height: 44px;
        max-width: 100%;
        box-sizing: border-box;
    }
}

