.filter_menu_wrpr {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter_menu_wrpr_mobile,
.selected_filter_value_wrpr,
.filter_sort_cls_btn {
    display: none;
}

.filter_menu_btn,
.filter_sort_btn_wrap {
    display: flex;
    align-items: center;
    column-gap: 8px;
    cursor: pointer;
    padding: 12px 16px;
    text-align: left;
    position: relative;
    justify-content: space-between;
}

.filter_menu_btn svg,
.filter_sort_btn svg {
    flex: 0 0 auto;
    width: 24px;
    aspect-ratio: 1;
}

.filter_sort_btn {
    flex: 0 1 335px;
    position: relative;
}

.filter_sort_btn_arrow_icon {
    transition: transform 300ms ease-in-out;
}

.filter_sort_btn.active .filter_sort_btn_arrow_icon {
    transform: rotate(180deg);
}

.filter_sorted_value::before {
    content: 'Sort By : ';
}

.filter_sorted_value {
    width: 100%;
    max-width: 250px;
    -webkit-line-clamp: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
}

.filter_sort_btn.active .filter_sort_list {
    display: block;
}

.filter_sort_list {
    list-style-type: none;
    border-radius: 0;
    border: 1px solid #777777;
    border-top: 1px solid #d9d9d9;
    background: #fff;
    overflow: hidden;
    display: none;
    position: absolute;
    width: calc(100% + 2px);
    top: 100%;
    left: -1px;
    z-index: 11;
}

.filter_sort_list_item {
    color: #777;
    font-size: 18px;
    font-weight: 400;
    padding: 16px;
    border-bottom: 1px solid #D9D9D9;
    cursor: pointer;
    text-align: left;
}

.filter_sort_list_item:hover,
.filter_sort_list_item.active_filter_btn:hover {
    background-color: #333333;
    color: #ffffff;
}

.filter_sort_list_item.active_filter_btn {
    color: #333333;
    background-color: #e5e5e5;
}

.filter_sort_list_item:last-child {
    border: none;
}

.desktopFilter {
    align-items: stretch;
    justify-content: start;
}

.desktopFilter .popup_containers_wrap {
    max-width: 468px;
    height: 100%;
}

.desktopFilter .popup_containers_content {
    height: 100%;
    padding: 24px;
    scrollbar-width: auto;
    overflow: hidden scroll;
}

.desktopFilter .popup_containers_content::-webkit-scrollbar,
.mobileFilter .popup_containers_content ul::-webkit-scrollbar {
    display: block;
}

.desktopFilter .popup_containers_footer {
    gap: 16px;
    padding: 10px;
    box-shadow: 0px -4px 8px 0 rgba(0, 0, 0, .06);
}

.desktopFilter .popup_containers_footer button {
    height: 50px;
    flex: 0 1 50%;
    cursor: pointer;
}

.prod_filter_wrap {
    padding: 0;
    margin: 0;
    height: 100%;
}

.prod_filter_card {
    list-style: none;
    padding-bottom: 14px;
}

.prod_filter_card:not(:first-child) {
    border-top: 1px solid #9c9c9c;
    padding-top: 20px;
}

.prod_filter_header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.prod_filter_dropdown_arrow {
    max-width: 24px;
    width: 100%;
    aspect-ratio: 1;
    transition: transform 300ms linear;
}

.drop_listig_show .prod_filter_dropdown_arrow {
    transform: rotate(180deg);
}

.prod_filter_heading {
    color: #282c3f;
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: 1;
    text-transform: uppercase;
}

.prod_filter_value {
    display: none;
    margin-top: 20px;
    opacity: 1;
}

.prod_filter_value label {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 12px;
    cursor: pointer;
}

.prod_filter_value input[type="checkbox"] {
    width: 24px;
    aspect-ratio: 1;
    border-radius: 0;
    cursor: pointer;
    accent-color: #333333 !important;
}

.prod_filter_value_name {
    color: #282c3f;
    font-size: 18px;
    font-weight: 400;
    line-height: 1;
    text-transform: capitalize;
}

.prod_filter_range_wrap {
    width: 90%;
    margin: 0px auto 30px;
    padding-top: 4px;
}

.prod_filter_category_value .prod_filter_range_wrap {
    width: 100%;
    margin-top: 40px;
}

.range-input {
    position: relative;
}

.range-input input {
    position: absolute;
    width: 100%;
    height: 4px;
    top: -5px;
    right: 1%;
    background: none;
    pointer-events: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.range-min {
    margin-right: 10px !important;
}

input[type="range"]::-moz-range-thumb {
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffffff;
    pointer-events: auto;
    border: 1px solid #333333;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    cursor: pointer;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffffff;
    pointer-events: auto;
    border: 1px solid #333333;
}

.f_slider {
    height: 4px;
    position: relative;
    background: #ddd;
    border-radius: 2px;
}

.f_slider .f_progress,
.f_slider .m_f_progress {
    height: 100%;
    position: absolute;
    left: 0;
    right: 0;
    background: #333333;
}

.price-input {
    display: flex;
    align-items: center;
    gap: 10px;
}

.f_field {
    display: flex;
    flex: 0 1 130px;
    color: #000000;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    border-radius: 50px;
    overflow: hidden;
}

.prod_filter_category_value .price-input {
    flex-direction: column;
}

.prod_filter_category_value .f_field {
    flex: unset;
}

.rps__sign {
    flex: 0 0 36px;
    aspect-ratio: 1;
    font-size: 20px;
    font-family: system-ui;
    display: grid;
    place-items: center;
    background-color: #efefef;
}

.price-input input {
    width: 100%;
    padding-left: 5px;
    font: inherit;
    border: none;
    outline: none;
    background: #f4f4f4;
}

.price-input input::placeholder {
    opacity: 0.4;
}

.mobileFilter {
    align-items: end;
}

.mobileFilter .popup_containers_wrap {
    height: 80%;
}

.mobileFilter .popup_containers_content {
    width: 100%;
    height: 100%;
    display: flex;
}

.mobileFilter .popup_containers_content ul {
    height: 100%;
    scrollbar-width: auto;
    overflow: hidden scroll;
}

.mobileFilter .popup_containers_footer button {
    height: 50px;
    flex: 0 1 50%;
    cursor: pointer;
}

.mobileFilterLeft {
    flex: 0 1 60%;
    overflow-y: scroll;
}

.mobileFilterRight {
    flex: 0 1 40%;
    overflow-y: scroll;
}

.prod_filter_category_name {
    list-style: none;
    margin-top: 16px;
    background-color: #F4F4F4;
    padding: 14px 12px;
    width: 100%;
    max-width: 350px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px auto;
    cursor: pointer;
    color: #777777;
    font-weight: 400;
    font-size: 14px;
    text-transform: capitalize;
}

.prod_filter_category_name.active {
    background-color: #333333;
    color: #FFFFFF;
}

.prod_filter_category_value {
    list-style: none;
    display: none;
    margin: 20px;
}

.prod_filter_category_value label {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 10px;
    cursor: pointer;
}

.prod_filter_category_value input[type=checkbox] {
    flex: 0 0 auto;
    width: 20px;
    aspect-ratio: 1;
    border-radius: 0px;
    cursor: pointer;
    accent-color: #333333 !important;
}

.prod_filter_value__checkbox {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.prod_filter_value__box {
    width: 34px;
    height: 34px;
    cursor: pointer;
    position: relative;
    border: 2px solid #ddd;
    transition: transform 0.2s ease, border 0.2s ease;
}

.prod_filter_value__box:nth-child(1) {
    background: red;
}

.prod_filter_value__box:nth-child(2) {
    background: blue;
}

.prod_filter_value__box:nth-child(3) {
    background: green;
}

.prod_filter_value__box:nth-child(4) {
    background: orange;
}

.prod_filter_value__box:nth-child(5) {
    background: purple;
}

.prod_filter_value__box:nth-child(6) {
    background: teal;
}

.prod_filter_value__box:hover {
    transform: scale(1.05);
    border-color: #333;
}

.prod_filter_value__box input[type="checkbox"] {
    display: none;
}

.prod_filter_value__box .checkmark {
    position: absolute;
    font-size: 22px;
    color: white;
    top: 30%;
    left: 25%;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

.prod_filter_value__box .checkmark img {
    filter: drop-shadow(0px 0px 4px black)
}

.prod_filter_value__box input[type="checkbox"]:checked+.checkmark {
    opacity: 1;
}

.prod_filter_value__box::after {
    content: attr(data-label);
    position: absolute;
    bottom: 98%;
    left: 50%;
    height: auto;
    line-height: 1.5;
    transform: translateX(-50%);
    background: #333;
    color: white;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 12px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease-in-out;
}

.prod_filter_value__box::before {
    content: "";
    position: absolute;
    bottom: 60%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

.prod_filter_value__box:hover::after,
.prod_filter_value__box:hover::before {
    opacity: 1;
}

@media screen and (max-width: 767px) {
    .color_filter_mbl_view {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .prod_filter_value__box {
        width: 24px;
        height: 24px;
    }

    .prod_filter_value_name {
        font-size: 16px;
    }

     .selected_filter_value_wrpr {
        display: flex;
        flex-wrap: wrap;
        column-gap: 1.33%;
        row-gap: 10px
    }

    .selected_filter_value_list {
        flex: 0 0 24%;
        background: #7777771a;
        display: flex;
        justify-content: space-between;
        padding: 10px 12px
    }

    .selected_filter_value_list span {
        font-size: 10.093px;
        color: #333;
        text-overflow: ellipsis;
        overflow: hidden;
        white-space: nowrap
    }
    
    .filter_menu_wrpr {
        position: fixed;
        left: 0px;
        bottom: 0px;
        width: 100%;
        z-index: 11;
        gap: 5px;
        background: #ffffff;
        box-shadow: 0 0 10px 0 #00000040;
    }

    .filter_menu_wrpr_mobile {
        display: flex;
    }

    .filter_menu_wrpr:has(.filter_sort_btn.active) {
        z-index: 999;
    }

    .filter_sort_btn.active {
        position: fixed;
        width: 100%;
        height: 100%;
        z-index: 12;
        top: 0;
        left: 0;
        background-color: #00000080;
        display: flex;
        flex-direction: column;
        justify-content: end;
    }

    .filter_sort_btn.active .filter_sort_btn_wrap {
        background: white;
        justify-content: start;
        font-size: 16px;
        padding: 16px;
        font-weight: 600;
    }

    .filter_sort_btn.active .filter_sort_btn_arrow_icon {
        display: none;
    }

    .filter_sort_btn.active .filter_sort_cls_btn {
        display: block;
        width: 24px;
        margin-left: auto;
    }

    .filter_sort_btn.active .filter_sort_list {
        position: unset;
        text-align: start;
    }

    .filter_menu_btn,
    .filter_sort_btn {
        border: none;
        flex: 0 0 50%;
        justify-content: center;
        background-color: #f4f4f4;
        position: unset;
    }

    .filter_menu_btn svg,
    .filter_sort_btn svg {
        width: 18px;
    }

    .filter_sort_list {
        bottom: 100%;
        top: unset;
    }

    .filter_sort_list_item {
        font-size: 16px;
        padding: 16px 24px;
    }

    .filter_sorted_value {
        max-width: 160px;
    }

    .mobileFilterLeft {
        flex: 0 1 40%;
    }

    .mobileFilterRight {
        flex: 0 1 60%;
    }

    .prod_filter_category_name {
        max-width: 125px;
    }
}

@media screen and (max-width: 425px) {
    .prod_filter_value__box {
        width: 30px;
        height: 30px;
    }

    .prod_filter_value__box .checkmark img {
        width: 13px;
    }

    .prod_filter_value__box .checkmark {
        top: 27%;
        left: 24%;
    }
}

@media screen and (max-width: 359px) {
    .filter_sort_btn.active .filter_sort_btn_wrap {
        padding: 12px;
    }

    .filter_menu_btn,
    .filter_sort_btn {
        font-size: 12px;
    }

    .filter_sort_list_item {
        padding: 16px 20px;
    }

    .prod_filter_value_name {
        font-size: 14px;
    }

    .prod_filter_category_value {
        margin: 16px;
    }

    .prod_filter_category_value input[type=checkbox] {
        width: 16px;
    }

    .filter_sorted_value {
        max-width: 110px;
    }
}