.filters-wrapper {
    
    padding: 20px 0;
}
.btn-check:focus+.btn, .btn:focus {
    box-shadow: none!important;
}
.dropdown-menu.show {
    display: block;
    padding: 10px;
}
.dropdown-menu.show .p-2 {
    max-height: 300px;
    overflow-y: scroll;
}
/* --- ОБНОВЛЕННЫЕ СТИЛИ КНОПОК --- */
.filter-btn {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 6px 12px;
    height: 56px;
    background: #FFFFFF;
    border-radius: 20px;
    border: 2px solid transparent; /* Исходная рамка */
    color: #212529;
    margin: 5px;
    font-size: 0.9rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    transition: all 0.2s ease-in-out;
    white-space: nowrap;
    position: relative;
    font-weight: 500;
    font-size: 18px;
    line-height: 120%;
}

/* Состояние при наведении, фокусе или когда фильтр выбран */
.filter-btn:hover,
.filter-btn:focus,
.filter-btn.selected {
     border: 2px solid rgba(240, 69, 8, 1);
     box-shadow: none;
}



.filter-btn.selected.show {
    border-color: rgba(240, 69, 8, 1);
}

.dropdown-toggle::after {
    margin-left: 0.5em;
}

/* Стилизация выпадающих меню */
.dropdown-menu {
    padding: 5px;
    width: 280px;
    background: #FFFFFF;
    box-shadow: 0px 5px 20px rgba(0, 0, 0, 0.1);
    border-radius: 32px;
}

.dropdown-item {
    display: flex;
    max-width: 100%;
    width: auto;
    height: 50px;
    align-items: center;
    justify-content: space-between;
    border-radius: 32px;
    padding: 8px 21px;
    margin: 3px 0;
    font-weight: 500;
    font-size: 18px;
    line-height: 120%;

}
.dropdown-item.active, .dropdown-item:active {
    background: rgba(236, 236, 236, 1);
    color: #000;
}
.dropdown-item.active::after {
    content: url('data:image/svg+xml,<svg width="15" height="12" viewBox="0 0 15 12" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M14.2073 2.93298L6.18235 10.958C5.99483 11.1454 5.74058 11.2506 5.47547 11.2506C5.21037 11.2506 4.95612 11.1454 4.7686 10.958L0.292349 6.45798C0.105146 6.27048 0 6.01636 0 5.75141C0 5.48646 0.105146 5.23234 0.292349 5.04485L1.54235 3.79485C1.72976 3.60822 1.98348 3.50344 2.24797 3.50344C2.51247 3.50344 2.76618 3.60822 2.9536 3.79485L5.50047 6.26485L11.548 0.291726C11.7354 0.104904 11.9893 0 12.2539 0C12.5186 0 12.7724 0.104904 12.9598 0.291726L14.2067 1.51298C14.3005 1.6059 14.3749 1.71647 14.4258 1.8383C14.4766 1.96014 14.5028 2.09083 14.5028 2.22285C14.5029 2.35486 14.4768 2.48557 14.4261 2.60746C14.3754 2.72934 14.301 2.83997 14.2073 2.93298Z" fill="%23F04508"/></svg>');
    color: #fd7e14;
    font-weight: bold;
}

/* Стили для чекбоксов */
.filter-checkbox {
    display: flex;
    align-items: center;
    padding: 16px 0;
    cursor: pointer;
}
.filter-checkbox:last-child {
    margin-bottom: 0;
}
.filter-checkbox input[type="checkbox"] {
    display: none;
}
.filter-checkbox label {
    padding-left: 30px; 
    position: relative;
    cursor: pointer;
    width: 100%;
}
.filter-checkbox label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border-radius: 8px;
    background-color: rgba(236, 236, 236, 1);
    transition: all 0.2s;
}
.filter-checkbox input[type="checkbox"]:checked + label::before {
    background-color: rgba(240, 69, 8, 1);
}
.filter-checkbox input[type="checkbox"]:checked + label::after {
    content: '✓';
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-weight: bold;
    font-size: 14px;
}

/* Стили для слайдера цен */
.price-select { padding: 10px; }
.price-select .ui-widget.ui-widget-content {
    margin: 0 10px;
}
.btn-apply-price {
    display: flex;
    margin-top: 24px;
    width: 100%;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 0px;
    height: 64px;
    background: #F04508;
    border-radius: 24px;
    font-weight: 500;
    font-size: 18px;
    color: #fff;
}
.btn-apply-price:hover { opacity:.9;color:#fff }

/* --- ОБНОВЛЕННЫЕ СТИЛИ СЧЕТЧИКА --- */
.filter-badge {
    background: #F04508;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px; /* Отступ от текста */
}


/* Кнопка сброса */
.btn-reset {
    color: rgba(240, 69, 8, 1);
    font-family: Wix Madefor Display;
    font-weight: 500;
    font-size: 16px;
    line-height: 120%;

    background: none;
    border: none;
    outline: none!important;
    box-shadow: none!important;
    white-space: nowrap;
    display: flex;
    align-items: center;
}
.btn-reset:hover {
    color: rgba(240, 69, 8, 1);
}
.btn-reset svg {
    margin-right: 5px;
}

/* Мобильное модальное окно */
.modal.fade .modal-dialog.modal-dialog-bottom { transform: translateY(100%); transition: transform 0.3s ease-out; }
.modal.show .modal-dialog.modal-dialog-bottom { transform: translateY(0); }
.modal-dialog-bottom { position: fixed; bottom: 0; right: 0; left: 0; margin: 0; max-width: 100%; }
.modal-content-bottom { border-radius: 20px 20px 0 0; border: none; }
.modal-header-bottom { border-bottom: none; padding: 1.5rem 1.5rem 0.5rem; }
.modal-title { font-weight: 600; }
.modal-body-bottom { padding: 0 1.5rem 1.5rem; max-height: 60vh; overflow-y: auto; }
@media(max-width: 768px) {
    #sort-filter-btn.dropdown-toggle::after {
        display: none;
    }
}



.header .menu {
    background: transparent;
    padding: 15px 0;
}
.header .menu .tabs3 .tab-nav-wrapper {
    width: 380px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    gap: 32px;
    background: #FFFFFF;
    box-shadow: 0px 5px 20px rgba(0, 0, 0, 0.1);
    border-radius: 32px;
}
.header .menu .tabs3 .tabNavigation {
    width: 100%;
    padding-bottom: 0;
    border-right: none;
    padding-right: 3px;
}
.header .menu .tabs3 .tabNavigation li a {
    padding: 8px;
    border: 2px solid transparent;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-right: 25px;
    font-size: 17px;
}
.header .menu .tabs3 .tabNavigation li a.selected {
    border: 2px solid #F04508;
    
}
.nav-toggler {
    display: none;
}
.header .menu .tabs3 .tabNavigation li a:hover .nav-toggler,
.header .menu .tabs3 .tabNavigation li a.selected .nav-toggler{
    display: flex;
}
.header .menu .tabs3 .tabNavigation li a.selected:before {
    display: none;
}
.header .menu .tabs3 .tabNavigation img {
    width: 40px;
    height: 40px;
    margin-right: 12px;
    border-radius: 16px;
}
.header .menu .tabs3 .tab-content {
    width: calc(100% - 410px);
    padding: 40px;
    gap: 32px;
    background: #FFFFFF;
    box-shadow: 0px 5px 20px rgba(0, 0, 0, 0.1);
    border-radius: 32px;
}
.header .menu .tabs3 .tab-content p {
    color: #000;
    font-weight: 600;
    font-size: 18px;

}
.header .menu .tabs3 .tab-content ul li a {
    font-weight: 500;
    font-size: 18px;
    color: rgba(112, 112, 112, 1);
}
.tabNavigation__name {

}
@media(max-width: 1200px) {
    .header .menu .tabs3 .tab-nav-wrapper {
        width: 300px;
    }
    .header .menu .tabs3 .tab-content {
        width: calc(100% - 310px);
    }
}
@media(max-width: 992px) {
    .header .menu .tabs3 .tab-nav-wrapper {
        width: 200px;
    }
    .header .menu .tabs3 .tab-content {
        width: calc(100% - 210px);
    }
}
.main-mobile-menu ul:first-child {
    padding-bottom: 0;
    margin-bottom: 0;
}
.main-mobile-menu ul li,
.mobile-menu ul li {
    border-bottom: 1px solid rgba(228, 228, 228, 1);
}
.main-mobile-menu ul li:last-child,
.mobile-menu ul li:last-child {
    border-bottom: none;
}
.main-mobile-menu ul li a,
.mobile-menu ul li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
}
.main-mobile-menu li img,
.mobile-menu li img {
    width: 48px;
    height: 48px;
    margin-right: 12px;
    border-radius: 16px;
}
.main-mobile-menu li a,
.mobile-menu li a{
    font-weight: 500;
    font-size: 18px;
}
.main-mobile-menu li a .nav-toggler,
.mobile-menu li a .nav-toggler {
    display: flex;
}


