#filterSidebar {
            position: fixed;
            top: 0;
            right: -370px;
            width: 370px;
            height: 100vh;
            background: white;
            box-shadow: -2px 0 5px rgba(0,0,0,0.2);
            transition: right 0.3s ease-in-out;
            padding: 0;
            z-index: 1050;
            overflow: hidden;
            display: flex;
            flex-direction: column;
        }
        .filter-sidebar-header {
            flex-shrink: 0;
            padding: 20px 20px 0;
        }
        .filter-sidebar-body {
            flex: 1 1 auto;
            min-height: 0;
            overflow-y: auto;
            padding: 0 20px 16px;
        }
        .filter-open {
            right: 0 !important;
        }
        main.main.shop-page {
            padding: 20px 60px;
        }

        #mainContent {
            transition: margin-right 0.3s ease-in-out;
        }
        .collapsed-content {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s ease-in-out;
        }
        .item-filter.is-open .collapsed-content {
            max-height: 2000px;
            padding-top: 6px;
        }
        .filter-accordion-toggle {
            display: flex;
            align-items: center;
            justify-content: space-between;
            width: 100%;
            background: none;
            border: none;
            padding: 0;
            cursor: pointer;
            color: inherit;
            text-align: right;
            box-shadow: none;
            -webkit-tap-highlight-color: transparent;
        }
        .filter-accordion-toggle .form-label {
            margin-bottom: 0;
            cursor: pointer;
        }
        .filter-accordion-toggle:focus,
        .filter-accordion-toggle:focus-visible,
        .filter-accordion-toggle:active {
            outline: 0 !important;
            box-shadow: none !important;
        }
        .expanded {
            max-height: 300px;
        }
        .collapsed-items {
            display: none;
        }
        .toggle-btn {
            background: none;
            border: none;
            cursor: pointer;
        }
        #filterSidebar .color-group-grid {
            display: grid;
            grid-template-columns: repeat(4, 50px);
            gap: 12px 8px;
            justify-content: start;
        }
        #filterSidebar .color-group-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
            width: 50px;
            margin: 0;
            padding: 0;
            border: 0;
            background: transparent;
            cursor: pointer;
            color: #81858b;
        }
        #filterSidebar .color-group-frame {
            width: 50px;
            height: 50px;
            box-sizing: border-box;
            border: 1px solid #e0e0e2;
            border-radius: 10px;
            background: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        #filterSidebar .color-group-item.selected .color-group-frame {
            border-color: #19bfd3;
            box-shadow: 0 0 0 1px #19bfd3;
        }
        #filterSidebar .color-group-swatch {
            display: block;
            width: 36px;
            height: 36px;
            border-radius: 8px;
        }
        #filterSidebar .color-group-title {
            font-size: 10px;
            line-height: 1.4;
            font-weight: 400;
            text-align: center;
            color: #81858b;
        }
        .item-sort {
            display: block;
            width: 100%;
            border: 1px solid #e9e7e7;
            margin: 0px 0;
            text-align: right;
            padding: 5px 15px;
            border-radius: 5px;
            font-size: 14px;
            background: #fff;
            color: #111;
            cursor: pointer;
            appearance: none;
            -webkit-appearance: none;
        }
        label.item-sort {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
        }
        label.item-sort input.category-item {
            flex-shrink: 0;
        }

        .item-filter{
            border-bottom: 6px solid #e9e9e9;
            padding-bottom: 25px;

        }
        .item-filter.lastchild{
            border-bottom: 0;


        }
        .filter-btn .btn {
            padding: 17px;
        }
        .filter-btn {
            position: relative;
            flex-shrink: 0;
            width: 100% !important;
            padding: 15px;
            background: #e9e9e9;
            margin: auto;
            left: auto;
            right: auto;
            bottom: auto;
        }

    .filter-btn-cat {
      margin: 5px;
      border-radius: 20px;
    }
    .filter-btn-cat {
        border-radius: 20px;
        background: #ddd;
        color: #000;
        border-radius: 0;
        padding: 5px 10px;
        border: 0;
    }

    .filter-btn.active {
      background-color: black;
      color: white;
    }
    .product-categrory {
      display: none;

    }
    .product-categrory.active-cat {
      display: block;

    }

    .filter-btn-cat.active {
        background:var(--dark-color);
        color: var(--white-color);
    }


@media (max-width: 768px) {
.filter-btn-box .filter-btn-cat {width:100%;}

}

#filterSidebar .size-item.selected,
#filterSidebar .sort-item.selected,
#filterSidebar .item-sort.selected {
    border: 1px solid #111;
    background: #111;
    color: #fff;
}
#filterSidebar .item-sort.selected label {
    color: #fff;
}
.active-filters {
    border-bottom: 6px solid #e9e9e9;
    padding-bottom: 18px;
    margin-bottom: 18px;
}
.active-filters-label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    text-align: right;
}
.active-filters-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.active-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #111;
    background: #f4f4f4;
    color: #111;
    border-radius: 5px;
    padding: 5px 10px;
    font-size: 13px;
    line-height: 1.4;
    cursor: pointer;
}
.active-filter-chip:hover {
    background: #e9e9e9;
}
.active-filter-chip .active-filter-remove {
    font-size: 16px;
    line-height: 1;
}

.price-filter-container { direction: rtl; width: 300px;  }
.price-display { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.price-row { display: flex; justify-content: space-between; border-bottom: 1px solid #eee; padding: 5px 0; }

.range-slider { position: relative; height: 5px; background: #ddd; margin: 20px 0; }
.track { position: absolute; height: 100%; background: #007bff; }

.range-slider input {
    position: absolute; width: 100%; top: -7px; background: none; appearance: none; pointer-events: none;
}
.range-slider input::-webkit-slider-thumb {
    pointer-events: auto; appearance: none; height: 18px; width: 18px;
    border-radius: 50%; background: #007bff; cursor: pointer;
}
.range-labels { display: flex; justify-content: space-between; font-size: 12px; color: #888; }

.filter-toggle-btn.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.active-filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: #fff;
    color: #111;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}
.active-filter-count[hidden] {
    display: none !important;
}
