.FilterBody .check-moding {
    max-height: 30rem;
    overflow-y: auto;
}

.ShopFilter {
    margin-bottom: 0.9rem;
    padding: 0.6rem;
    border-radius: 0.5rem;
    overflow: hidden;
    color: var(--button-color);
    background-color: var(--LightGray1);

    .FilteredTitle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        font-size: 1rem;
        margin-bottom: 1rem;

        #clearfilters {
            color: var(--accent-color);
        }
    }

    .fancytree-icon {
        display: none !important;
    }

    .FilterBody {
        max-height: 30vh;
    }

    .search-products {
        position: relative;

        input {
            width: 100%;
            height: 3rem;
            border: solid 1px var(--accent-color);
            border-radius: 0.4rem;
            padding-right: 2rem;
            font-weight: bold;
            outline: none !important;
        }

        .icon {
            position: absolute;
            right: 0.5rem;
            top: 0.5rem;
            width: 1rem;
            fill: var(--gray2);
            cursor: pointer;
        }
    }
}

/**********************OnlyActiveAndDiscounted************************/
.only-active-check-label::after,
.only-dis-check-label::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    transition: all .2s;
    border-radius: 50%;
    background: var(--White);
    top: calc(50% - 6px);
    left: -1px;
}

.only-active-check-label::before,
.only-dis-check-label::before {
    content: '';
    position: absolute;
    left: -0.3rem;
    top: calc(50% - 8px);
    border-radius: calc(var(--b-radius) * 4);
    transition: background-color .2s;
    width: 31px;
    height: 16px;
    background: #d1d1d6;
    display: inline-block;
    transition: all 0.4s;
    -webkit-border-radius: calc(var(--b-radius) * 4);
    -moz-border-radius: calc(var(--b-radius) * 4);
    -ms-border-radius: calc(var(--b-radius) * 4);
    -o-border-radius: calc(var(--b-radius) * 4);
}

.only-active-check:checked+label::after,
.only-dis-check:checked+label::after {
    left: 13px;
    background: #fff;
}

.only-active-check:checked+label::before,
.only-dis-check:checked+label::before {
    background-color: var(--accent-color);
}



.productstabinfo .SideBar.active {
    right: 0
}

.productstabinfo :where(select, input) {
    border-color: transparent;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    list-style: none;
}

.pagination .page-item {
    margin: 0px 2px;
}

.pagination .page-item .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background-color: #fff;
    border: solid 1px #EBEBEB;
    border-radius: 5px;
    font-size: 13px;
    color: #484848;
    font-family: 'Arial';
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -ms-border-radius: 5px;
    -o-border-radius: 5px;

    span {
        display: block;
        line-height: 0;
    }
}

.pagination .page-item.active .page-link,
.pagination .page-item:hover .page-link {
    background-color: var(--accent-color);
    border: solid 1px var(--accent-color);
    color: #fff;
}


.check-moding select {
    width: 100%;
}

@media(min-width:768px) {
    .p-lg-relative {
        position: relative;
    }
}

@media screen and (min-width:960px) {
    .col-lg-25 {
        flex: 0 0 auto;
        width: 20%;
    }
}

.ShopFilter ul.fancytree-container {
    background: unset;
    border: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.accordion-panel {
    .acc-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.2rem 0;
        cursor: pointer;

        .icon {
            position: relative;
            width: 10px;
            height: 10px;
            transition: all 0.3s ease;
        }

        .title {
            font-size: 1rem;
        }
    }

    .acc-body {
        padding: 0;
        border-top: solid 1px var(--accent-color);

        .desc {
            font-size: 1rem;
        }

        &.open {
            display: block;
        }
    }

    &.open {
        .acc-head {
            .icon {
                transform: rotate(180deg);
                -webkit-transform: rotate(180deg);
                -moz-transform: rotate(180deg);
                -ms-transform: rotate(180deg);
                -o-transform: rotate(180deg);
            }
        }

        .acc-body {}
    }
}

.ShopFilter .FilterHead strong {
    font-size: 14px;
    color: #000;
}


.b-shaddow-1 {
    box-shadow: 0px 0px 5px -3px #000;
}

.toggle-filter {
    background: var(--accent-color);
    padding: 0.4rem;
    border-radius: 0.4rem;
    margin-left: 1rem;

    span {
        color: var(--White);
    }

    svg {
        display: block;
        stroke: var(--White);
        width: 1.8rem;
        height: 1.8rem;
    }
}

.sort-row {

    .sort-side {
        position: relative;
        z-index: 100;
        cursor: pointer;
        font-size: 1.1rem;
        font-weight: 500;
        background: var(--LightGray1);
        padding: 0.4rem;
        border-radius: 0.4rem;
        white-space: nowrap;

        .toggle-arrow {
            width: 0.8rem;
            height: 0.8rem;
            transition: all 0.3s ease;

            &.rotate {
                transform: rotate(180deg);
                -webkit-transform: rotate(180deg);
                -moz-transform: rotate(180deg);
                -ms-transform: rotate(180deg);
                -o-transform: rotate(180deg);
            }
        }

        .sort-icon {
            width: 1.4rem;
        }

        .sort-list {
            display: none;
            position: absolute;
            top: 102%;
            right: 0;
            left: 0;
            padding: 0.3rem 0;
            border: solid 1px var(--accent-color);
            border-radius: 0.5rem;
            background-color: #fff;

            .sort-item {
                background: none;
                border: none;
                padding: 0.2rem 0.5rem;
                cursor: pointer;
                font-size: 1rem;
                width: 100%;
                text-align: right;

                &:disabled {
                    color: black !important;
                    font-weight: bold;
                }
            }
        }
    }

    @media (min-width: 960px) {
        width: auto;
    }
}

.checkbox {
    label {
        display: flex;
    }
}

.product-list-page {
    .product-list {
        min-height: 60vh;
        border-radius: 10px;

        .item-grid {
            display: flex;
            flex-direction: column;
            height: 100%;
            border-radius: 0.5rem;

            .img-box {
                a {
                    aspect-ratio: 1;

                    img {
                        width: 100%;
                        height: 100%;
                        object-fit: cover;
                    }
                }
            }

            .content-box {
                height: 100%;
                background: var(--LightGray1);
                border-radius: 0 0 0.5rem 0.5rem;

                .name {
                    min-height: 4rem;
                    font-size: 1.1rem;
                    font-weight: bold;
                    margin: 0 0 0.5rem;
                }

                .author {
                    font-size: 1rem;
                    margin: 0 0 0.5rem;
                    width: 100%;
                    text-overflow: ellipsis;
                    overflow: hidden;
                    white-space: nowrap;
                }

                .price-box {
                    margin-top: 0.9rem;

                    strike {
                        font-size: 1rem;
                    }
                }

                .field-row {
                    .field-item {
                        border-left: solid 1px var(--gray3);
                        padding: 0.2rem 0 0.2rem 0.6rem;
                        margin-left: 0.6rem;
                        gap: 0.2rem
                    }

                    svg {
                        display: block;
                        width: 1.1rem;
                        height: 1.1rem;
                    }

                    span {
                        font-size: 0.8rem;
                    }
                }

                .discount {
                    min-width: 3.14rem;
                    background-color: var(--Warning);
                    font-size: 1.1rem;
                    font-weight: bold;
                    color: #fff;
                    border-radius: 0.3rem;
                    -webkit-border-radius: 0.3rem;
                    -moz-border-radius: 0.3rem;
                    -ms-border-radius: 0.3rem;
                    -o-border-radius: 0.3rem;
                }
            }

        }
    }
}

.SideBar {
    position: -webkit-sticky;
    position: sticky;
    top: 100px;
    height: fit-content;

    .form-check {
        display: flex;
        align-items: center;
        margin: 0.4rem 0;
    }

    @media(max-width:960px) {
        position: relative;
        top: auto;
        height: auto;

        #listfilters {
            display: none;
            height: auto;
            margin-bottom: 1rem;
        }
    }
}