.grid{}
.grid .bx_content_section{
    margin-bottom: 15px;
}
.grid .bx_sidebar{
    margin-bottom: 15px;
}

/* grid2x1 */
.grid2x1{}
.grid2x1 .bx_content_section{
    float: left;
    width: 66%;
    margin-bottom: 15px;
}
.grid2x1 .bx_sidebar{
    float: right;
    width: 33%;
    margin-bottom: 15px;
    padding-left: 5%;
    -webkit-box-sizing:border-box;
    -moz-box-sizing:border-box;
    box-sizing:border-box;
}
@media (max-width:960px){
    .grid2x1 .bx_sidebar{
        padding-left: 4%;
    }
}
@media (max-width:640px) {
    .grid2x1 .bx_content_section,
    .grid2x1 .bx_sidebar{
        width: 100%;
        float: none;
    }
    .grid2x1 .bx_sidebar{
        padding-left: 3%;
    }
}
@media (max-width:479px){
    .grid2x1 .bx_sidebar{
        padding-left: 1%;
    }
}

.catalog-block-header{
    font-size:14px;
    font-weight: bold;
    text-align: left;
    margin:5px 0;
    padding:5px 15px;
    border-bottom: 2px solid #d9dee6;
    color: #000;
}

body.bx-theme-blue .catalog-block-header{border-color:#006cc0;}
body.bx-theme-green .catalog-block-header{border-color:#63aa28;}
body.bx-theme-red .catalog-block-header{border-color:#da3737;}
body.bx-theme-yellow .catalog-block-header{border-color:#f4b236;}

/* --- Фиксированная ширина левой колонки --- */
@media (min-width: 1400px) {
    .sidebar-column {
        flex: 0 0 280px !important;
        max-width: 280px !important;
        width: 280px !important;
    }
}
@media (min-width: 992px) and (max-width: 1399px) {
    .sidebar-column {
        flex: 0 0 280px !important;
        max-width: 280px !important;
        width: 280px !important;
    }
}

/* --- ОПИСАНИЕ РАЗДЕЛА --- */
.section-description {
    color: #292A2A;
    font-size: 16px;
    line-height: 1.5;
}

/* --- ПАНЕЛЬ СОРТИРОВКИ И ВИДА (TOOLBAR) --- */
.catalog-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem; /* mb-3 или mb-4 */
}

/* Сортировка */
.sort-dropdown-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sort-label {
    color: #878D91;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
}

.sort-dropdown {
    position: relative;
    cursor: pointer;
}

.sort-current {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #00B1BA;
    font-weight: 500;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
}

.sort-arrow {
    display: flex;
    align-items: center;
    transition: transform 0.2s;
}

.sort-dropdown.open .sort-arrow {
    transform: rotate(180deg);
}

.sort-list {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 50;
    min-width: 200px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 8px 0;
    margin-top: 5px;
    display: none;
}

.sort-dropdown.open .sort-list {
    display: block;
}

.sort-option {
    display: block;
    padding: 8px 16px;
    color: #292A2A;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.2s;
}

.sort-option:hover {
    background: #F3F4F5;
    color: #00B1BA;
}

.sort-option.active {
    color: #00B1BA;
    font-weight: 500;
}

/* Мобильный Select */
.sort-mobile-select {
    background: #f5f5f5;
    border: 0;
    text-align: right;
    color: #848484;
    border-radius: 4px;
    padding: 5px;
}

/* --- ПЕРЕКЛЮЧАТЕЛЬ ВИДА --- */
.view-switcher {
    display: flex;
    align-items: center;
    gap: 4px;
}

.view-btn {
    padding: 8px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: all 0.2s;
    background: transparent;
}

/* Иконки по умолчанию (Серые) */
.view-btn svg {
    width: 24px; /* Размер контейнера */
    height: 24px;
    color: #878D91; /* currentColor */
    fill: #878D91;
}

/* Hover и Active (Зеленые с фоном) */
.view-btn:hover,
.view-btn.active {
    background: rgba(0, 177, 186, 0.1);
}

.view-btn:hover svg,
.view-btn.active svg {
    color: #00B1BA;
    fill: #00B1BA;
}

/* Удаляем старые стили сортировки, если они мешали */
.desctop_sort {
    display: none; /* Старая сортировка скрыта */
}