/* Body -------------------- */
#nm-shop {
    background-color: #ffffff !important;
}
/* ------------- Body */
/*----------------- category price ---------------------*/
.price_category {
    display: inline-block;
    width: auto;
    cursor: pointer;
}

.price_category div {
    display: flex;
    align-items: center;
    gap: 5px;
    justify-content: flex-end;
}

.price_category div img {
    height: 35px;
}

/*----------------- end category price ---------------------*/
/* ------------- category -------------------- */
nav.woocommerce-breadcrumb {
    padding: 0 !important;
    margin-bottom: 35px !important;
    margin-top: 0px !important;
}

.woocommerce-breadcrumb span {
    display: inline-grid !important;
    margin: 0 10px;
}

nav.woocommerce-breadcrumb a {
    color: #4B4350 !important;
}

nav.woocommerce-breadcrumb a:hover {
    color: #CD0040 !important;
}

.nm-shop-results-bar a {
    border-color: #CD0040;
}

li.product-category.product a {
    background-color: #fff;
    box-shadow: 1px 3px 10px 5px rgba(31, 31, 31, 0.09);
    border-radius: 20px;
    overflow: hidden;
    display: block;
    position: relative;
    height: 100%;
}

ul.nm-products.products {
    /* gap: 20px; */
}

li.product-category.product a img {
    height: 200px;
    object-fit: cover;
    transition: .3s all;
}

.nm-products h2.woocommerce-loop-category__title {
    text-align: center;
    padding: 0 10px 12px;
}

.nm-products h2.woocommerce-loop-category__title mark {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 212, 212, 0.7);
    border-radius: 20px;
    padding: 3px 15px;
    color: #CD0040;
    font-weight: 600;
    margin: 0;
}

li.product-category.product a h2:hover {
    color: #CD0040;
}

/* ------------- end category --------------------- */
/* Фильтры --------------------- */
.nm-shop-sidebar-header #nm-shop-sidebar{
    -webkit-transition: opacity 0.1s ease;
    transition: opacity 0.1s ease;
}
[class*="block-grid-"] {
    margin: 0 !important;
}

ul#nm-shop-filter-menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}
.nm-shop-header {
    padding: 0;
}
.nm-shop-filter-btn-wrap img {
    width: 20px;
}
.nm-shop-filter-btn-wrap a {
    display: flex;
    align-items: center;
}
.nm-shop-sidebar-header #nm-shop-sidebar .widget {
    padding: 0;
}
.nm_widget_product_sorting {
    flex-grow: 0;
}
#nm_woocommerce_widget_product_sorting-2 .nm-shop-widget-col {
    width: max-content;
}
#nm_woocommerce_widget_product_sorting-2 h3.nm-widget-title {
    display: block;
    font-weight: 700;
}
li#premmerce_filter_filter_widget-7 {
    flex-grow: 1;
}

.filter_list {
    display: flex;
    gap: 40px;
}
.filter__item- {
    margin: 0;
    width: calc(33.3333% - 27px);
    margin-right: 40px;
}
.filter__item:nth-child(3n) {
    margin-right: 0;
}

.filter__title {
    line-height: 18px;
    font-weight: 700;
    font-size: 16px;
}

.filter.filter--style-default.premmerce-filter-body {
    display: flex;
    row-gap: 40px;
    position: unset;
    flex-wrap: wrap;
}

.nm-shop-widgets-ul-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}
.filter__checkgroup-control {
    display: none;
}

label.filter__checkgroup-title:before {
    display: flex;
    flex-shrink: 0;
    content: "";
    background-color: #fff;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    margin-right: 5px;
    transition: 0.25s ease;
    box-shadow: inset 0 0 0 2px #CD0040;
}

input.filter__checkgroup-control:checked+label+label.filter__checkgroup-title:before {
    box-shadow: inset 0 0 0 5px #CD0040;
}

label.filter__checkgroup-title {
    display: flex;
    align-items: center;
}
#nm-product-sorting li.active {
    background-color: #FFD4D4;
    padding: 5px 10px;
    border-radius: 20px;
    margin-left: -10px;
    width: fit-content;
    margin-bottom: 10px !important;
    margin-top: -5px;
}
.filter__properties-item--active .filter__checkgroup {
    background-color: #FFD4D4;
    padding: 0 10px;
    border-radius: 20px;
    margin-left: -10px;
    width: fit-content;
    margin-bottom: 10px !important;
}
ul#nm-shop-widgets-ul {
    position: fixed;
    padding: 25px 30px 89px 30px;
    background: #fff;
    z-index: 9999;
    width: 80%;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    border-radius: 20px;
    box-shadow: 1px 3px 10px 5px rgb(31 31 31 / 9%);
    overflow-y: auto;
    max-height: 70%;
}

.nm-shop-sidebar-bg {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    opacity: 0.3;
    z-index: 9999;
}
.nm-shop-sidebar-bg.active_filter{
    display: block;
}

span.filter_cross {
    cursor: pointer;
    color: #9f1641;
    font-weight: 700;
    font-size: 16px;
}

.nm-shop-widgets-ul-title h3 {
    font-weight: 700;
}

.button.button-filter-submit {
    border-radius: 20px;
    background-color: #CD0040;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    padding: 14px 30px;
}
.button.button-filter-submit:hover,
.button.button-filter-submit:focus {
    color: #fff;
    background-color: #9f1641;
    opacity: 1;
}
.filter__item.filter__item--type-submit-button {
    position: absolute;
    bottom: 25px;
    right: 30px;
    margin: 0;
}
/*пагинация*/
#nm-shop ul.page-numbers li span.current {
    height: 25px;
    width: 25px;
    background-color: #FFD4D4;
    border-radius: 50%;
    display: block;
    border-bottom: none !important;
    margin: 0px 5px !important;
}

#nm-shop ul.page-numbers li a {
    line-height: 26px;
    font-size: 14px;
    display: block;
    margin: 0px 5px !important;
    height: 25px;
    width: 25px;
}

ul.page-numbers li {
    line-height: 26px;
    font-size: 14px;
}

[class*="block-grid-"] {
    margin: 0 -8px !important;
    padding: 0;
}

@media (max-width: 991px) {
    .filter_list {
        flex-wrap: wrap;
    }
    .filter__inner {
        margin-top: 15px;
    }
    #nm-shop-sidebar .widget .nm-shop-widget-col:last-child {
        height:auto;
        overflow: unset;
    }
    
    #nm-shop-sidebar .widget .nm-shop-widget-col:last-child > * {
        border-top: none !important;
    }
    .filter_list {
        gap: 0;
    }
    
    .filter__item- {
        width: calc(50% - 20px);
    }
    .filter__item:nth-child(3n) {
            margin-right: 40px;
    }
    .filter__item:nth-child(2n) {
        margin-right: 0;
    }
    .filter__item.filter__item--type-submit-button {
        bottom: -64px;
        left: 0px;
    }
    
    h3.nm-widget-title {
        padding: 0 !important;
    }
    ul#nm-product-sorting {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
        width: 100%;
        align-items: center;
        position: relative;
        display: grid;
        grid-template-columns: auto auto auto;
        row-gap: 5px !important;
    }
    #nm-shop-sidebar .widget .nm-widget-title:after {
        display: none;
    }
    
    label.filter__checkgroup-title {
        padding-left: 0;
    }
    
    .nm-shop-widget-col {
        width: 100% !important;
    }
    
    #nm-product-sorting li {
        margin: 0 !important;
    }
    #nm-product-sorting li.active {
        margin-bottom: 0 !important;
    }
}

@media (max-width: 768px) {
    ul#nm-product-sorting {
        grid-template-columns: auto auto;
    }
}
@media (max-width: 599px) {
    ul#nm-shop-filter-menu {
        margin-bottom: 20px;
    }
    ul#nm-product-sorting {
        grid-template-columns: auto;
    }
    .filter__item- {
        width: 100%;
    }
    ul#nm-shop-widgets-ul {
        width: 90%;
        max-height: 90%;
    }
}
@media (max-width: 520px) {
    nav.woocommerce-breadcrumb {
        margin-top: 40px !important;
    }
}
/* --------------------- Фильтры */