/* Современный дизайн сайдбара для категорий */

.category_alter {
    display: flex;
    gap: 2rem;
}

/* Современный сайдбар */
.modern-sidebar {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    padding: 0;
    position: static;
    border: 1px solid #e2e8f0;
}

/* Убираем скролбары */
.modern-sidebar::-webkit-scrollbar {
    display: none;
}

/* Заголовки секций */
.sidebar-section {
    border-bottom: 1px solid #e2e8f0;
}

.sidebar-section:last-child {
    border-bottom: none;
}

.sidebar-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    padding: 1.25rem 1.5rem 0.75rem 1.5rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-title i {
    color: #6976DF;
    font-size: 1rem;
}

/* Список категорий */
.category-list {
    padding: 0 0 1rem 0;
}

.category-g {
    margin: 0;
}

.category-g a {
    display: flex;
    align-items: center;
    padding: 0.5rem 1.5rem;
    color: #475569;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    font-weight: 500;
    border-left: 3px solid transparent;
    position: relative;
}

.category-g a:hover {
    background: linear-gradient(135deg, #f3f4ff 0%, #e5e7ff 100%);
    color: #6976DF;
    border-left-color: #6976DF;
    transform: translateX(2px);
}

.category-g a:before {
    content: '';
    width: 6px;
    height: 6px;
    background: #cbd5e1;
    border-radius: 50%;
    margin-right: 0.5rem;
    transition: all 0.2s ease;
}

.category-g a:hover:before {
    background: #6976DF;
    transform: scale(1.2);
}

/* Скелетон для загрузки категорий */
.skeleton-category {
    padding: 1.5rem;
}

.skeleton-category-item {
    height: 20px;
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 10px;
    margin-bottom: 0.75rem;
}

.skeleton-category-item:last-child {
    margin-bottom: 0;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Фильтры */
.filter-options {
    padding: 0 0 1rem 0;
}

.filter-group {
    margin-bottom: 1.25rem;
    padding: 0 1.5rem;
}

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

.filter-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

/* Поля ввода */
.filter-input,
.filter-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 0.875rem;
    background: white;
    transition: all 0.2s ease;
    color: #374151;
}

.filter-input:focus,
.filter-select:focus {
    outline: none;
    border-color: #6976DF;
    box-shadow: 0 0 0 3px rgba(105, 118, 223, 0.1);
    transform: translateY(-1px);
}

.filter-input::placeholder {
    color: #9ca3af;
}

/* Группа полей цены */
.price-range-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.price-input-wrapper {
    position: relative;
}

.price-input-wrapper .filter-input {
    padding-left: 2rem;
}

.price-input-wrapper:before {
    content: '₽';
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Кнопки фильтров */
.filter-buttons {
    padding: 1.25rem 1.5rem;
    display: flex;
    gap: 0.75rem;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
    border-radius: 0 0 16px 16px;
}

.filter-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: none;
}

.filter-btn-primary {
    background: linear-gradient(135deg, #6976DF 0%, #5a67d8 100%);
    color: white;
}

.filter-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(105, 118, 223, 0.4);
}

.filter-btn-secondary {
    background: white;
    color: #6b7280;
    border: 2px solid #e5e7eb;
}

.filter-btn-secondary:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    color: #374151;
}

/* Адаптивные стили */
@media (max-width: 1024px) {
    .category_alter {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .modern-sidebar {
        position: static;
        max-height: none;
    }
}

@media (max-width: 768px) {
    .modern-sidebar {
        border-radius: 12px;
        margin-bottom: 1.5rem;
    }
    
    .sidebar-title {
        font-size: 1rem;
        padding: 1.25rem 1.25rem 0.75rem 1.25rem;
    }
    
    .category-g a {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }
    
    .filter-group {
        padding: 0 1.25rem;
        margin-bottom: 1.25rem;
    }
    
    .filter-buttons {
        padding: 1.25rem;
        flex-direction: column;
    }
    
    .filter-btn {
        padding: 0.875rem 1rem;
    }
}

/* Состояния загрузки */
.loading .category-list {
    pointer-events: none;
    opacity: 0.6;
}

.loading .filter-options {
    pointer-events: none;
    opacity: 0.6;
}

/* Убираем скролбары для Firefox */
.modern-sidebar {
    scrollbar-width: none;
}

/* Улучшенные состояния для селектов */
.filter-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.25rem 1.25rem;
    padding-right: 2.5rem;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Статус "Нет результатов" */
.no-categories {
    padding: 2rem 1.5rem;
    text-align: center;
    color: #6b7280;
}

.no-categories i {
    font-size: 2rem;
    color: #d1d5db;
    margin-bottom: 0.5rem;
    display: block;
}

.no-categories p {
    margin: 0;
    font-size: 0.875rem;
} 