:root {
    --side-bar: 330px;
}
@media (min-width: 1441px) {
    :root {
        --products-in-col: 5;
    }
}
@media (min-width: 1280px) and (max-width: 1440px) {
    :root {
        --products-in-col: 4;
    }
}
@media (max-width: 1279px) {
    :root {
        --side-bar: 375px;
    }
}

/* Sub Category List - Start */
section.category-subs {
    padding-top: 0px;
    padding-bottom: 40px;
}
.subcategories-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}
.subcategory-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px 10px 15px;
    background: #f0f0f3;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.subcategory-item:hover,
.subcategory-item.active {
    background: #fff1d5;
}
/* .subcategory-item.active {
    order: -1;
} */
.subcategory-item span {
    font-family: var(--font-family-1);
    font-size: 16px;
    line-height: 19px;
    font-weight: 600;
    transition: all 0.3s ease;
}
.subcategory-item:hover span,
.subcategory-item.active span {
    color: var(--black);
}
.subcategory-item img {
    max-height: 40px;
}
/* Скрыть "Без категории" */
.subcategory-item.category-15 {
    display: none !important;
}
@media (max-width: 1440px) {
    section.category-subs {
        padding-top: 10px;
        padding-bottom: 40px;
    }
    .subcategory-item img {
        max-height: 45px;
    }
    .subcategory-item span {
        font-size: 18px;
        line-height: 24px;
    }
}
@media (max-width: 1279px) {
    section.category-subs {
        padding-top: 15px;
        padding-bottom: 30px;
    }
    section.category-subs .container {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding-left: 15px;
    }
    .subcategories-list {
        flex-wrap: nowrap;
        width: fit-content;
        overflow: auto;
        padding-right: 15px;
    }
    .subcategory-item {
        min-width: max-content;
    }
}
/* Sub Category List - End */

/* Category Top - Start */
body.post-type-archive.woocommerce-shop .woocommerce-breadcrumb a:last-child {
    color: #121212 !important;
}
.woocommerce-category-header {
    padding: 10px 0 20px 0;
    overflow: visible;
}
.woocommerce-category-header h1.page-title {
    max-width: calc(var(--side-bar) + var(--blocks-indent));
}
.woocommerce-category-header .woocommerce-notices-wrapper {
    display: none;
}
.woocommerce-result-count {
    position: absolute;
    top: 12px;
    left: calc(var(--side-bar) + var(--blocks-indent));
    color: #a5a5a5;
}
.filter-sort {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: fit-content;
}
.sorting-pc {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}
.sorting-pc > span {
    color: #d7d7d7;
}
.current-sort {
    display: flex;
    align-items: center;
    gap: 8px;
}
.current-sort img {
    width: 12px;
    height: 12px;
    object-fit: contain;
    transition: all 0.3s ease;
    transform: rotate(90deg);
}
.current-sort.active img {
    transform: rotate(-90deg);
}
.sorting-dropdown {
    position: absolute;
    top: 30px;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: #fff;
    width: fit-content;
    padding: 10px;
    color: #000;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 2;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.sorting-dropdown.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}
.sorting-dropdown a {
    display: flex;
    justify-content: space-between;
    gap: 5px;
}
.sorting-dropdown a.active {
    font-weight: 600;
}
@media (max-width: 1279px) {
    .woocommerce-category-header {
        position: sticky;
        top: var(--header-height);
        z-index: 3;
        background: #fff;
    }
    .woocommerce-category-header {
        padding: 15px 0 15px 0;
    }
    .woocommerce-category-header .container {
        align-items: center;
    }
    h1.page-title {
        position: relative;
        top: 0px;
        font-size: 23px;
        line-height: 32px;
    }
    .woocommerce-result-count {
        position: relative;
        left: 0;
        top: 0;
        margin-top: 0px;
        margin-bottom: 10px;
    }
    .filter-sort {
        width: 100%;
    }
    img.filter-mob.mob {
        object-fit: contain;
    }
    .mob-sorting-wrapper {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        padding: 0;
        z-index: 100;
        pointer-events: none;
    }
    .mob-sorting-wrapper.active {
        pointer-events: all;
    }
    .mob-sorting-wrapper .mob-sorting-box {
        position: relative;
        top: var(--header-height);
        right: -130vw;
        display: flex;
        flex-direction: column;
        width: 100%;
        height: auto;
        padding: 0;
        background: var(--white);
        box-shadow: 0px 0px 24px 0px #1a1a1a14;
        transition: all 0.7s ease;
        z-index: 100;
    }
    .mob-sorting-wrapper.active .mob-sorting-box {
        right: 0;
    }
    .mob-sorting-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 20px 20px 20px 20px;
        background: var(--light-gray);
    }
    .mob-sorting-header .h4 {
        font-family: var(--font-family-1);
        font-weight: 500;
        font-size: 16px;
        line-height: 19px;
        color: #383838;
    }
    .mob-sorting-header .close-sorting {
        cursor: pointer;
        padding: 10px;
    }
    .mob-sorting-header .close-sorting img {
        cursor: pointer;
        object-fit: contain;
    }
    .mob-sorting.mob {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 25px;
    }
    .mob-sorting.mob .active {
        font-weight: 600;
    }
}
@media (max-width: 768px) {
    .woocommerce-category-header .container {
        align-items: center;
        gap: 10px;
    }
}
@media (max-width: 480px) {
    .woocommerce-category-header .container {
        gap: 10px;
    }
    h1.page-title {
        font-size: 23px;
        line-height: 32px;
        max-width: calc(100%);
        width: 100%;
    }
}
/* Category Top - End */

/* Category Content - Start */
.woocommerce-category-content {
    padding-bottom: 50px;
}
/* Category Side - Start */
.category-side {
    width: var(--side-bar);
    padding-right: 20px;
}
.category-side .h4 {
    font-size: 25px !important;
    line-height: 30px !important;
    margin-bottom: 20px;
}
@media (min-width: 1280px) {
    .mob-filter-call {
        display: none !important;
    }
    .mob-sort-call {
        display: none !important;
    }
}
@media (max-width: 1279px) {
    .category-side {
        position: fixed;
        top: var(--header-height);
        left: -130vw;
        display: flex;
        flex-direction: column;
        width: var(--side-bar);
        height: calc(100vh - var(--header-height));
        padding: 0;
        background: var(--white);
        box-shadow: 0px 0px 24px 0px #1a1a1a14;
        transition: all 0.7s ease;
        z-index: 100;
    }
    .category-side.active {
        left: 0;
    }
    .mob-filter-call {
        display: flex;
        align-items: center;
        gap: 10px;
    }
    .mob-filter-call img {
        width: 36px;
    }
    .mob-filter-call span {
        font-family: var(--font-family-1);
        font-size: 16px;
        line-height: 16px;
        font-weight: 600;
        color: var(--black);
    }
    .mob-sort-call {
        display: flex;
        align-items: center;
        gap: 10px;
    }
    .mob-sort-call img {
        width: 22px;
    }
    .mob-sort-call span {
        font-family: var(--font-family-1);
        font-size: 16px;
        line-height: 16px;
        font-weight: 500;
        color: #a3a3a3;
    }
    .mob-filter-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 20px 20px 20px 20px;
        background: var(--light-gray);
    }
    .mob-filter-header .h4 {
        font-family: var(--font-family-1);
        font-weight: 500;
        font-size: 16px;
        line-height: 19px;
        color: #383838;
    }
    .mob-filter-header .close-filter {
        cursor: pointer;
        padding: 10px;
    }
    .mob-filter-header .close-sorting img {
        cursor: pointer;
        object-fit: contain;
    }
}
@media (max-width: 768px) {
    .category-side {
        width: 100vw;
    }
    #woo-filter-wrapper {
        overflow: auto;
        padding-bottom: 30px;
    }
    .reset-filters,
    .submit-filter-call {
        margin-top: 15px;
        margin-left: 25px;
    }
}
/* Category Side - End */

/* Category Product List - Start */
.category-product-list {
    display: flex;
    flex-wrap: wrap;
    width: calc(100% - var(--side-bar) - var(--blocks-indent));
    align-content: flex-start;
}
.category-product-list .woocommerce-result-count {
    display: none !important;
}
.category-product-list .product-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--products-indent-h) var(--products-indent-w);
    width: 100%;
}
.category-product-list .product-list .product-card {
    display: flex !important;
    width: calc(
        (100vw - var(--container-indent) - var(--side-bar) - var(--blocks-indent) - var(--scroll-bar)) /
            var(--products-in-col) - var(--products-indent-w) * (var(--products-in-col) - 1) / var(--products-in-col)
    );
}
.category-product-list .product-list .product-card img {
    height: calc(
        (100vw - var(--container-indent) - var(--side-bar) - var(--blocks-indent) - var(--scroll-bar)) /
            var(--products-in-col) - var(--products-indent-w) * (var(--products-in-col) - 1) / var(--products-in-col)
    );
}
.banner-in-product-list {
    padding: 20px 0;
}
.filter-chips {
    display: flex !important;
}
@media (max-width: 1279px) {
    .category-product-list {
        width: 100%;
    }
    .category-product-list .product-list .product-card {
        width: calc(
            (100vw - var(--container-indent)) / var(--products-in-col) - var(--products-indent-w) *
                (var(--products-in-col) - 1) / var(--products-in-col)
        );
    }
    .category-product-list .product-list .product-card img {
        height: calc(
            (100vw - var(--container-indent)) / var(--products-in-col) - var(--products-indent-w) *
                (var(--products-in-col) - 1) / var(--products-in-col)
        );
    }
    @media (pointer: fine) {
        .category-product-list .product-list .product-card {
            width: calc(
                (100vw - var(--scroll-bar) - var(--container-indent)) / var(--products-in-col) -
                    var(--products-indent-w) * (var(--products-in-col) - 1) / var(--products-in-col)
            );
        }
        .category-product-list .product-list .product-card img {
            height: calc(
                (100vw - var(--scroll-bar) - var(--container-indent)) / var(--products-in-col) -
                    var(--products-indent-w) * (var(--products-in-col) - 1) / var(--products-in-col)
            );
        }
    }
}
/* Category Product List - End */

/* Pagination - Start */
.loadmore-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 40px auto 0 auto;
}
.woocommerce-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 0 0 0;
    margin: 0 auto;
}
#loadmore + .woocommerce-pagination {
    padding: 30px 0 0 0;
}
.woocommerce-pagination .page-numbers {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 11px;
}
.woocommerce-pagination .page-numbers li a.page-numbers,
.woocommerce-pagination .page-numbers li .current {
    width: 50px;
    height: 50px;
    padding-top: 0px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 3px;
    transition: all 0.3s ease;
}
.woocommerce-pagination .page-numbers li a.page-numbers.prev {
    padding-top: 0px;
    transform: rotate(180deg);
}
.woocommerce-pagination .page-numbers li a.page-numbers.next {
    padding-top: 0px;
}
.woocommerce-pagination .page-numbers li span.dots {
    padding: 0 15px;
    font-size: 22px;
}
.woocommerce-pagination .page-numbers li .current,
.woocommerce-pagination .page-numbers li a:hover {
    background: var(--primary);
    border: 1px solid var(--primary);
    color: var(--primary-match);
}
.woocommerce-pagination .page-numbers img {
    width: 8px;
    transition: all 0.3s ease;
}
.woocommerce-pagination ul li .page-numbers:hover img {
    filter: url(#primary-color-match);
}
@media (max-width: 667px) {
    .woocommerce-pagination .page-numbers {
        gap: 7px;
    }
    .woocommerce-pagination .page-numbers li a.page-numbers,
    .woocommerce-pagination .page-numbers li .current {
        width: 40px;
        height: 40px;
        padding-top: 2px;
    }
    .woocommerce-pagination .page-numbers li span.dots {
        padding: 0 10px;
        font-size: 18px;
    }
}
/* Pagination - End */

/* Category Content - End */

/* Category Description - Start */
section.woocommerce-category-footer {
    margin-top: var(--header-height);
}
.bottom-seo-text {
    padding-bottom: 100px;
    padding-left: calc(var(--side-bar) + var(--blocks-indent));
}
.bottom-seo-text .h2 {
    max-width: 570px;
    margin-bottom: 15px;
}
.bottom-seo-text p {
    color: #8b8b8b;
}
@media (max-width: 1279px) {
    .bottom-seo-text {
        padding-left: calc(0px);
    }
}
/* Category Description - End */
