.products-container {
    display: flex;
    flex-flow: row wrap;
    width: 79vw;
    margin-right: auto;
    justify-content: center;
}

.filtering-mobile {
    display: none;
}

.discount-percent {
    padding: .01rem 0.15rem !important;
    background-color: var(--primary-color);
    margin-left: 0.2rem;
    margin-bottom: .25rem;
}

.save-filter {
    display: block;
    flex-flow: row wrap;
    margin-top: 1rem;
    align-items: center;
    width: 90%;
    background-color: var(--primary-transparent);
    padding: .5rem 0;
    border-radius: 4px;
    justify-content: center;
    border: 2px solid var(--primary-color);
    text-align: center;
    color: #000;
    cursor: pointer;
    transition: all 150ms ease-in-out;
}

.save-filter:hover {
    color: #fff;
    background-color: var(--primary-hover);
}

.save-filter:active {
    background-color: var(--primary-color);
}

.main-category_name-mobile {
    display: none;
}

.sort {
    display: flex;
    flex-flow: row wrap;
    position: relative;
    justify-content: space-between;
    align-items: center;
    width: 74vw;
    margin-right: auto;
    padding-left: 3rem !important;
    padding: 4rem 0;
    padding-bottom: 1.75rem !important;
}

.sort-modal.hidden {
    visibility: hidden;
    opacity: 0;
}

.sort-modal {
    position: absolute;
    left: 4rem;
    top: 6.5rem;
    width: 9rem;
    background-color: #fff;
    border: 1px solid #cfcfcf;
    align-items: flex-start;
    padding: 1rem;
    box-shadow: 0 0 15px #cacaca;
    border-radius: 4px;
    z-index: 9999;
    visibility: visible;
    opacity: 1;
    transition: all 250ms ease-in-out;
}

.sort-list {
    display: flex;
    flex-flow: column wrap;
    align-items: flex-start;
    list-style-type: none;
    gap: .75rem;
}

.sort-list a {
    text-decoration: none;
    color: #000;
    width: 100%;
    padding: 4px 8px;
    transition: all 190ms ease-in-out;
    border-radius: 4px;
}

.sort-list a:hover {
    background-color: #3e3e3e13;
}

.sort h3 {
    font-weight: bold;
    font-size: 18px;
}

.sort span {
    font-weight: normal;
    color: #575757c4;
}

.sort-button {
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    background-color: transparent;
    gap: .5rem;
    color: var(--primary-color);
    font-weight: bold;
    cursor: pointer;
}

.products {
    display: flex;
    flex-flow: column wrap;
    width: 233px;
    justify-content: center;
    padding-bottom: 1.5rem;
    padding-right: 1rem;
    padding-left: 1rem;
    position: relative;
    border: 1px solid #80808020;
    gap: .25rem;
}

.products-brand {
    font-size: 14px;
    margin-left: auto;
    margin-bottom: 4rem;
    color: #474747;
}

.products-img {
    margin-bottom: auto !important;
    display: flex;
    align-items: center;
    align-self: center;
    justify-content: center;
    height: 180px;
    margin: 0 auto !important;
    width: 10rem !important;
    padding: .2rem;
    object-fit: cover !important;
}

.products-name {
    position: absolute;
    color: #000000;
    font-size: 15px;
    padding-bottom: .1rem;
    text-align: right;
    width: 90%;
    bottom: 8rem;
    display: -webkit-box;
    line-clamp: 1;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
}

.products-pricing {
    display: flex;
    flex-flow: column wrap;
    align-items: flex-start;
    justify-content: center;
    margin: 0 auto;
    padding: .5rem 0;
}

.products-real_price {
    font-weight: 100;
    text-decoration: line-through;
    color: #868686b1;
    font-size: 15px;
}

.products-final_price {
    font-weight: normal;
}


.products-price-row {
    display: flex;
    flex-flow: row wrap;
}

#toman {
    object-fit: contain;
    width: 1.85rem;
}

.pages {
    list-style-type: none;
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    justify-content: center;
    gap: .25rem;
    margin-top: 1.5rem;
}

.page a {
    font-family: "num";
    text-decoration: none;
    color: #6f6f6f;
    padding: 2px 10px;
    border-radius: 8px;
}

.page a.active {
    background-color: var(--primary-transparent);
    border: 1px solid var(--primary-color);
    color: #6c6c6c;
}

.location {
    display: flex;
    position: absolute;
    flex-flow: row wrap;
    align-items: center;
    padding-top: 1.75rem;
    padding-right: 4rem;
    font-size: 14px;
    gap: .25rem;
}

.location a {
    text-decoration: none;
    color: #6d6d6d;
}

.colors-count {
    position: absolute;
    left: 1rem;
    bottom: 5rem;
    font-size: 12px;
    font-weight: normal;
    color: #808080;
}

.right-side_container {
    display: flex;
    position: absolute;
    align-items: center;
    flex-flow: column wrap;
    width: 20vw;
    margin-top: 4.75rem;
    margin-right: 1.5rem;
}

.categories-box {
    display: flex;
    flex-flow: column wrap;
    align-items: flex-start;
    gap: 1rem;
}

.category-child_name {
    font-size: 15px;
    font-weight: bold;
}

.categories-box a {
    text-decoration: none;
    font-size: 16px;
    color: #4c4c4c;
}

.categories-box span {
    color: #838383;
    font-weight: normal;
    font-size: 14px;
}

.filter-container::-webkit-scrollbar {
    width: 3px;
}

.filter-container::-webkit-scrollbar-track {
    background: #e8e8e8;
    border-radius: 4px;
}

.filter-container::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.filter-container {
    display: flex;
    flex-flow: column wrap;
    align-items: center;
    padding: 30px;
    /* height: 20rem; */
    height: auto;
    overflow-y: auto;
    overflow-x: hidden;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: all 450ms ease-in;
    direction: ltr;
    margin-top: 2rem;
}

.filters-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.empty {
    margin: 10rem auto;
    background-color: var(--primary-transparent);
    border: 2px solid var(--primary-color);
    width: 60%;
    padding: 2rem 1rem;
    border-radius: 4px;
    text-align: center;
}

footer {
    margin-top: 3.5rem !important;
}

.filters-list {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 17.5vw;
    direction: rtl;
}

.filter-item {
    border-bottom: 1px solid #ccc;
    margin-bottom: 10px;
    overflow: hidden;
    width: 100%;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    cursor: pointer;
    user-select: none;
    direction: rtl;
}

.filters {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 10px;
}

.filters.show {
    max-height: 500px;
    padding: 10px;
}

.filters-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    flex-flow: row-reverse;
    justify-content: flex-end;
    direction: rtl;
}

.filter-container svg {
    width: 18px;
    transform: rotate(0deg);
    height: 18px;
    transition: all 250ms ease-in-out;
}

.filtercon-title {
    display: none;
}

.close-filter {
    display: none;
}

.filter-container.hidden {
    visibility: hidden;
    opacity: 0;
    transform: translateY(100%);
}

.delete-filters {
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    background-color: transparent;
    width: 7rem;
    gap: 8px;
    color: var(--primary-color);
    cursor: pointer;
    margin-left: 14rem;
}

.delete-filters svg {
    width: 20px;
    height: 20px;
    color: var(--primary-color);
}

.filterdel-row {
    max-width: 450px;
    display: flex;
    margin-left: auto;
    position: relative;
    flex-flow: row wrap;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    margin-bottom: 1.5rem;
}

.filter-boxes-del {
    border: 1px solid #3737374d;
    background-color: #8080800a;
    border-radius: 2px;
    padding: 2px 6px;
}

.filter-boxes-del p {
    font-size: 14px;
    color: #262626;
}

.delcolumn-filter {
    max-width: 450px;
    right: -6rem;
    display: flex;
    margin-right: auto;
    margin-left: auto;
    position: relative;
    flex-flow: column wrap;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 1rem;
    margin-bottom: -4rem !important;
    padding: 0;
}

.filter-container svg.rotated {
    transform: rotate(180deg) !important;
}

footer {
    z-index: 3000 !important;
}

.range-input {
    padding: .5rem 1.25rem;
    border-radius: 4px;
    direction: ltr;
    border: 1px solid var(--primary-color);
}