/* Filter Styles */

/* Стили для заголовка с фильтрами */
.filter-header {
    display: flex;
    align-items: center;
    justify-content: left;
    padding: 20px;
    cursor: pointer;
    background-color: var(--bg-light);
    border-radius: 10px;
    margin-bottom: 20px;
}

.filter-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--text-dark);
}

.filter-toggle-icon {
    transition: transform 0.3s ease;
}

.filter-toggle-icon.rotated {
    transform: rotate(180deg);
}

/* Стили для скрытия/показа блока фильтров */
.brands-sidebar.collapsed {
    display: none;
}

/* Абсолютное позиционирование для мобильных устройств */
@media (max-width: 1300px) {
    .brands-sidebar.mobile-open {
        position: absolute;
        top: -1%;
        left: 0;
        right: 0;
        background: white;
        z-index: 1000;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        border: 1px solid #eee;
        border-radius: 10px;
        padding: 20px;
        margin: 10px;
    }
    
    .brands-sidebar {
        display: none;
    }
}
.brands-layout {
    position: relative !important;
}
/* Плавный переход для скрытия/показа */
.brands-sidebar {
    transition: all 0.3s ease;
}

/* Более аккуратное поведение открытых фильтров на десктопе */
@media (min-width: 1301px) {
    .brands-layout .brands-sidebar:not(.collapsed) {
        position: sticky;
        top: 16px;
        max-height: calc(100vh - 32px);
        overflow-y: auto;
        overscroll-behavior: contain;
    }
}

/* Стили для кнопки "Показать все" */
.show-more-link, .show-less-link {
    text-decoration: none;
    color: var(--brand-accent);
    font-weight: 600;
}

.show-more-link:hover, .show-less-link:hover {
    text-decoration: underline;
}
@media (max-width:1300px){
   .brands-sidebar.mobile-open {
      display: block !important;
      position: absolute;
      z-index: 1;
      max-width: 300px;
   } 
}
span.filter_lable {
    color: #666666;
    padding-right: 5px;
    text-decoration: underline;
}
.filter-header i {
    font-size: 12px;
    color: #666666;
}
span.filter-toggle-icon.rotated i:before {
    position: relative;
    top: -3px;
}