

/* Start:/local/components/zeecar/catalog.sort/templates/.default/style.css?17576782875060*/
.hidden {
    display: none;
}
input[type="radio"] {
    -webkit-appearance: none; /* Для браузеров на WebKit (Chrome, Safari) */
    -moz-appearance: none;    /* Для Firefox */
    appearance: none;         /* Для современных браузеров */
    width: 1rem;              /* Ширина круга */
    height: 1rem;             /* Высота круга */
    border: 2px solid #ccc;  /* Цвет обводки */
    border-radius: 50%;       /* Сделать круг */
    cursor: pointer;
    transition: all 0.3s ease; /* Плавные анимации */
}

input[type="radio"]:checked {
    background-color: #50a15f; /* Зеленый фон для выбранного */
    border-color: #50a15f;     /* Зеленая обводка */
}

/* Общий контейнер каталога */
.catalog_filter {
    display: grid;
    grid-template-columns: 220px 1fr;
    grid-gap: 2.4rem;
    align-items: start;
}

/* Фильтр (левая панель) */
.catalog__filters {
    overflow-y: auto;
    position: sticky;
    top: 20px;
}

.filter-group {
    margin-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 1rem;
}

button, .filter-title {
    -webkit-appearance: none; /* Safari и старые версии iOS */
    -moz-appearance: none;    /* Firefox */
    appearance: none;         /* Стандарт */
    background: none;         /* Убираем фон */
    border: none;             /* Убираем рамку */
    color: inherit;           /* Наследуем цвет текста */
    font: inherit;            /* Наследуем шрифт */
    cursor: pointer;          /* Курсор при наведении */
    outline: none;            /* Убираем контур фокуса */
}

.filter-title {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    padding: 1rem 0;
}

.filter-arrow {
    display: inline-block;
    width: 0.5rem;
    height: 0.5rem;
    margin-left: 1rem;
    border-right: 1px solid #000;
    border-bottom: 1px solid #000;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
}

.filter-title:hover .filter-arrow{
    border-right: 1px solid #50a15f;
    border-bottom: 1px solid #50a15f;
}

.filter-title:hover {
    color: #50a15f;
}

.filter-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out, opacity 0.3s ease-in-out;
    opacity: 0;
}

.filter-content label {
    display: block;
    margin: 1rem 0;
    font-size: 15px;
    color: #555;
    cursor: pointer;
}

.filter-content label:hover {
    color: black;
}

.filter-content input {
    margin-right: 5px;
}

.filter-group.active .filter-arrow {
    transform: rotate(-135deg);
}


.filter-group.active .filter-content {
    max-height: fit-content;
    opacity: 1;
}

/* Кнопка сброса */
#reset-filters {
    color: #fff;
    background-color: #50a15f;
    padding: 1rem 1.5rem;
    font-size: 1.4rem;
    font-weight: 700;
    border-radius: .8rem;
    cursor: pointer;
    width: 100%;
    margin-top: 1rem;
    transition-duration: .3s;
    transition-property: color, background, border;
}

#reset-filters:hover {
    background-color: #3f7e4a;
}

.mobile-filter-toggle,
.mobile-filter-close {
    display: none;
}

/* Адаптация для планшетов */
@media (max-width: 1024px) {
    .catalog_filter {
        grid-template-columns: 200px 1fr; /* Уже фильтр на планшетах */
    }
}

/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
    .catalog_filter {
        display: block;
    }

    .catalog__filters {
        position: static; /* Убираем фиксированное положение */
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease-in-out, opacity 0.3s ease-in-out;
        opacity: 0;
        margin-bottom: 2rem;
    }
    
    .catalog__filters.active {
        max-height: fit-content; /* Высота для полного раскрытия */
        opacity: 1;
        padding: 1rem;
    }
    
    .mobile-filter-close {
        background-color: #d9534f;
        color: #fff;
        display: none;
        width: 100%;
        padding: 1rem;
        font-size: 1.4rem;
        font-weight: 700;
        text-align: center;
        cursor: pointer;
        border: none;
        border-radius: .8rem;
        margin-bottom: 1rem;
        transition: background-color 0.5s ease;
    }
    
    .mobile-filter-toggle {
        background-color: #50a15f;
        color: #fff;
        display: block;
        width: 100%;
        padding: 1rem;
        font-size: 1.4rem;
        font-weight: 700;
        text-align: center;
        cursor: pointer;
        border: none;
        border-radius: .8rem;
        margin-bottom: 1rem;
        transition: background-color 0.5s ease;
    }
}
/* End */
/* /local/components/zeecar/catalog.sort/templates/.default/style.css?17576782875060 */
