/* ============================================
   MOBILE MENU - FULLSCREEN ПРОСТОЙ ДИЗАЙН
   В стиле основного сайта
   ============================================ */

/* Overlay - полупрозрачный фон */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Menu Container - на весь экран */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #fff;
    z-index: 9999;
    display: none;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
}

.mobile-menu.active {
    display: flex;
}

/* Header меню - с крестиком слева */
.mobile-menu-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Кнопка закрытия - слева */
.menu-close {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: none;
    background: #f3f4f6;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #000;
    transition: all 0.2s;
    flex-shrink: 0;
}

.menu-close:hover {
    background: #e5e7eb;
}

/* Логотип - справа от крестика */
.mobile-menu-logo {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.mobile-menu-logo strong {
    font-size: 1.25rem;
    font-weight: 900;
    color: #000;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.mobile-menu-logo small {
    font-size: 0.6875rem;
    font-weight: 500;
    color: #666;
    letter-spacing: 0.3px;
}

/* Content - контент меню */
.mobile-menu-content {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

/* Quick Filters - быстрые фильтры (ПРОДАКШЕН) */
.mobile-quick-filters {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem 0;
    margin-bottom: 1rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.mobile-quick-filters::-webkit-scrollbar {
    display: none;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
    color: #374151;
    transition: all 0.2s;
}

.filter-chip i {
    font-size: 0.875rem;
}

.filter-chip:hover,
.filter-chip:active {
    background: #10b981;
    color: #fff;
    border-color: #10b981;
    transform: translateY(-1px);
}

/* Quick Actions - компактные иконки */
.mobile-quick-actions {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.mobile-action-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
    padding: 0.75rem 0.5rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    text-decoration: none;
    color: #000;
    transition: all 0.2s;
    position: relative;
}

.mobile-action-btn:hover,
.mobile-action-btn:active {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.mobile-action-btn i {
    font-size: 1.125rem;
}

.mobile-action-btn .action-label {
    font-size: 0.6875rem;
    font-weight: 600;
}

.mobile-action-btn .action-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: #ef4444;
    color: #fff;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 0.625rem;
    font-weight: 700;
}

.mobile-action-btn .action-badge:not(:empty) {
    display: flex;
}

/* Search - поиск */
.mobile-search {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.mobile-search:focus-within {
    background: #fff;
    border-color: #000;
}

.mobile-search i {
    color: #666;
    font-size: 1rem;
}

.mobile-search input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 0.9375rem;
    outline: none;
    color: #000;
}

.mobile-search input::placeholder {
    color: #999;
}

/* Navigation Sections - разделы */
.mobile-nav-section {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.mobile-nav-section:first-of-type {
    margin-top: 0;
}

.mobile-nav-section-title {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #666;
    padding: 0.5rem 0;
}

/* Navigation - навигация */
.mobile-nav {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav-item {
    border-bottom: 1px solid #f3f4f6;
}

.mobile-nav-item:last-child {
    border-bottom: none;
}

.mobile-nav-item > a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 0;
    color: #000;
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: color 0.2s;
}

.mobile-nav-item > a:hover {
    color: #666;
}

.mobile-nav-item > a i {
    font-size: 1.125rem;
    width: 20px;
    text-align: center;
}

/* Submenu - подменю (УЛУЧШЕННОЕ ДЛЯ ПРОДАКШЕНА) */
.mobile-nav-item.has-submenu > a {
    position: relative;
}

.mobile-nav-item.has-submenu > a .chevron {
    margin-left: auto;
    font-size: 0.75rem;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav-item.has-submenu.open > a .chevron {
    transform: rotate(180deg);
}

.mobile-nav-item.has-submenu.active > a .chevron {
    transform: rotate(180deg);
}

.mobile-submenu {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s ease;
}

.mobile-nav-item.open .mobile-submenu,
.mobile-nav-item.active .mobile-submenu {
    max-height: 600px;
    opacity: 1;
}

.mobile-submenu li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0 0.75rem 2.5rem;
    color: #666;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.mobile-submenu li a:hover {
    color: #10b981;
    padding-left: 2.75rem;
}

/* Счетчик товаров */
.item-count {
    margin-left: auto;
    font-size: 0.6875rem;
    color: #9ca3af;
    background: #f3f4f6;
    padding: 0.125rem 0.5rem;
    border-radius: 10px;
    font-weight: 600;
    min-width: 28px;
    text-align: center;
}

/* Brands Grid - сетка брендов */
.mobile-brands-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.625rem;
    margin-top: 0.75rem;
}

.mobile-brand-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0.875rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    text-decoration: none;
    color: #000;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
}

.mobile-brand-link:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.mobile-brand-link .brand-name {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-brand-link .brand-count {
    font-size: 0.6875rem;
    color: #666;
    background: #fff;
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    font-weight: 600;
    min-width: 24px;
    text-align: center;
}

/* Contact Button - улучшенная кнопка звонка */
.mobile-contact-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.125rem 1.25rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 12px;
    margin-top: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.mobile-contact-btn:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

.mobile-contact-btn i {
    font-size: 1.25rem;
}

/* Scrollbar */
.mobile-menu::-webkit-scrollbar {
    width: 4px;
}

.mobile-menu::-webkit-scrollbar-track {
    background: transparent;
}

.mobile-menu::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.mobile-menu::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Улучшенные featured пункты - Новинки */
.mobile-nav-item.featured-new > a {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.08) 0%, transparent 100%);
    border-left: 3px solid #3b82f6;
    padding-left: 1rem;
    margin-left: -1rem;
    margin-right: -1rem;
    padding-right: 1rem;
    font-weight: 600;
    color: #1e40af;
}

.mobile-nav-item.featured-new > a i {
    color: #3b82f6;
}

.mobile-nav-item.featured-new > a:hover {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.12) 0%, transparent 100%);
}

/* Улучшенные featured пункты - Распродажа */
.mobile-nav-item.featured-sale > a {
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.08) 0%, transparent 100%);
    border-left: 3px solid #ef4444;
    padding-left: 1rem;
    margin-left: -1rem;
    margin-right: -1rem;
    padding-right: 1rem;
    font-weight: 600;
    color: #dc2626;
}

.mobile-nav-item.featured-sale > a i {
    color: #ef4444;
    animation: fireGlow 2s ease-in-out infinite;
}

@keyframes fireGlow {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.mobile-nav-item.featured-sale > a:hover {
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.12) 0%, transparent 100%);
}

/* Улучшенные пункты информации */
.mobile-nav-info .mobile-nav-item > a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: #374151;
}

.mobile-nav-info .mobile-nav-item > a:hover {
    color: #10b981;
}

.mobile-nav-info .mobile-nav-item > a i {
    color: #6b7280;
}

/* Анимация появления */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.mobile-menu.active {
    animation: fadeIn 0.2s ease;
}
