<!--ФОРМИРУЕМ ГИБКИЕ ФИЛЬТРЫ-->
<script>
$( document ).ready(function() {

//Дожидаемся загрузки каталога
$('.js-store-grid-cont').on('tStoreRendered', function() {
    createPreParts();
});


//При нажатии на мэйн-фильтр
$(document).on('click', '.t-store__filter__item_checkbox .t-store__filter__item-title', function(){
    let elem = $(this);
    elem.closest('.t-store__filter__item_checkbox').toggleClass('open-filter-block');
   
});


//Функция создания подразделов
function createPreParts(){
    
    let filterBoxes = $('.t-store__filter__item_checkbox');
    

    if(filterBoxes.length>0){
        
        
        $('.t-store__filter__item_checkbox').each(function(){
            
            let el = $(this);
            
            if( el.find('input:checked').length ){
                    el.addClass('open-filter-block');
                }else{
                    el.removeClass('open-filter-block');
                };

        });
        
 
    };

    
};

});
    
</script>


<style>


.part-title .t-store__filter__item-title[data-filter-name="storepartuid"] {
    font-size: 16px;
    margin-bottom: -5px;
}



.part-title {
    font-size: 16px;
    margin-top: 0px;
    margin-bottom: 10px;
    font-weight: 600;
    cursor: pointer;
}

.main-part {
    margin: 15px 0;
}



.part-content {
    padding-left: 0px;
}    

.part-title .t-store__filter__item-title[data-filter-name="storepartuid"]+.t-store__filter__item-controls-wrap .t-store__filter__item-controls-container>label {
    padding-left: 0px;
}


.part-title .t-store__filter__item-title {
    font-size: 16px;
}

.part-title .js-store-filter-mob-btn.t-store__filter__opts-mob-btn {
    opacity: 1;
    font-size: 16px;
}


.part-title .js-store-parts-switcher.t-store__parts-switch-btn:not(:first-child) {
    display: none;
}

.part-title .js-store-parts-switcher.t-store__parts-switch-btn:first-child {
    opacity: 1;
    font-size: 0;
}

.part-title .js-store-parts-switcher.t-store__parts-switch-btn:first-child:after {
    content: "Все товары";
    font-size: 16px;
}





.t-store__filter__item_checkbox .t-store__filter__item-title:after {
    content: "";
    background-image: url(https://static.tildacdn.com/tild3837-6431-4465-b265-383663343966/arrow_down_icon_1842.svg);
    width: 19px;
    height: 19px;
    display: inline-block;
    background-size: contain;
    background-repeat: no-repeat;
    margin-left: 8px;
    margin-bottom: -5px;
    transition: all 0.3s ease-in-out;
    position: static;
    border: none;
    transform: rotate(0deg);
}

.t-store__filter__item-title.js-store-filter-item-title {
    cursor: pointer;
}

.t951__sidebar .t-store__filter__item {
    margin-bottom: 10px;
}



.open-filter-block.t-store__filter__item_checkbox .t-store__filter__item-title:after {
    transform: rotate(180deg);
}




.t-store__filter__item_checkbox .t-store__filter__item-controls-wrap {
    display: none  !important;
    padding-left: 15px;
}


.open-filter-block.t-store__filter__item_checkbox .t-store__filter__item-controls-wrap{
    display: block  !important;
}

</style>
1. На первый заказ: промокод "ПЕРВЫЙ" - Запечённый ролл с курицей и спайси 2. Бонус: за каждую 1000 руб 1000 рублей в корзине: - Запечённый ролл с курицей и овощами 2000 рублей в корзине: - Холодный ролл с курицей и ореховым соусом 3. День рождения, промокод "Happy": - Сладкий ролл с ананасом и бананом 4. Победитель в вк, промокод "Winner" : - Запечённый ролл Калифорния 5. За отзыв, промокод "Лайк": - Холодный ролл тортилья с курицей и спайси
Made on
Tilda