.category__title {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 40px 40px 70px 40px;
    border-radius: 4px;
    margin-top: 30px;
    overflow: hidden;
    min-height: 200px;
}

.category__title-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 0% 25%;
    z-index: 1;
}


.category__title-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, #EAEFE9 25%, transparent 100%);
    z-index: 2; 
    pointer-events: none;
}




.category__title h1 {
    color: #0c0605;
    font-weight: 700;
    font-size: 36px;
    line-height: 100%;
    text-transform: none;
}

.category__title h1,
.category__title .category__back {
    position: relative;
    z-index: 3;
}


.category__title .category__back {
    color: #0a3426;
    font-size: 16px;
    font-weight: 400;
    padding-left: 22px;
    position: relative;
}

.category__title .category__back::before {
    content: "";
    position: absolute;
    display: block;
    width: 8px;
    height: 8px;
    border-left: 2px solid #0a3426;
    border-bottom: 2px solid #0a3426;
    left: 8px;
    top: 9px;
    transform: rotate(45deg);
}


.category__links {
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px
}


.category__links-item.hidden-link {
    display: none;
}

.category__links-item {
    border-radius: 4px;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 70px;
    background-color: #e6ebe5;
    color: #020d09;
    transition: all .3s ease-in
}

.category__links-item:hover {
    background-color: #518048;
    color: #f5f5f5
}

.category__links-item.active {
    background-color: #518048;
    color: #f5f5f5
}


.filter-hint {
    /* background: linear-gradient(to right, #f5f9f4, #edf3ea); */
    padding: 14px 18px;
    margin: 20px 0 25px 0;
    border-radius: 12px;
    border-left: 2px solid #8cea6f;
    font-size: 14px;
    color: #1a3a2a;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    transition: all 0.2s ease;
}

.filter-hint:hover {
    background: #f0f7ee;
    box-shadow: 0 6px 12px rgba(140, 234, 111, 0.15);
}

.filter-hint p {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-hint p::before {
    content: "💡";
    margin-right: 5px;
    font-size: 18px;
}



.category__links-more {
    margin-top: 20px;
    display: inline-block;
}

.category__links-more>span {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    color: #0a3426;
    padding: 6px 0;
    transition: all 0.2s ease;
    border-bottom: 1px solid transparent;
}

.category__links-more>span::after {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    border-right: 2px solid #0a3426;
    border-bottom: 2px solid #0a3426;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}

.category__links-more.is-expanded>span::after {
    transform: rotate(-135deg);
}

.category__links-more>span:hover {
    color: #0f4d38;
    border-bottom-color: #0a3426;
    opacity: 1;
}

.category__links-more>span:active {
    opacity: 0.7;
}



.category__aside-filters--title.mobile {
    display: none
}

.category__general {
    display: grid;
    grid-template-columns: 340px auto;
    gap: 30px;
    margin-top: 40px
}

.category__aside-filters {
    border: 1px solid #e6ebe5;
    border-radius: 4px;
    padding: 10px
}

.category__aside-filters--title {
    font-weight: 700;
    font-size: 16px;
    line-height: 100%;
    color: #0c0605;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #518048;
    padding: 10px 0
}

.category__aside-filters .filters__search-input {
    padding: 5px 8px
}

.category__aside-filter {
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-top: 1px solid #e6ebe5
}

.category__aside-filter--reset {
    font-weight: 500;
    font-size: 14px;
    line-height: 100%;
    color: #0c0605;
    display: flex;
    flex-direction: column;
    text-align: center;
    text-decoration: underline;
    border-top: 1px solid #e6ebe5;
    padding-top: 15px;
    padding-bottom: 5px
}

.category__aside-filter--caption {
    font-weight: 600;
    font-size: 14px;
    line-height: 100%;
    color: #0c0605;
    cursor: pointer;
    position: relative;
    color: #0a3426;
    display: flex;
    align-items: center;
    min-height: 18px;
    padding: 15px 0;
    margin: 0;
    padding-right: 20px;
    overflow: hidden
}

.category__aside-filter--caption::after {
    content: "";
    position: absolute;
    display: block;
    width: 10px;
    height: 10px;
    border-left: 1px solid #0a3426;
    border-bottom: 1px solid #0a3426;
    right: 5px;
    top: 12px;
    transform: rotate(-45deg)
}

.category__aside-filter--caption.active::after {
    transform: rotate(135deg);
    top: 14px
}

.category__aside-filter--content {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
    display: flex;
    flex-direction: column;
    gap: 16px
}

.category__aside-filter--content label {
    display: flex;
    gap: 5px;
    position: relative;
    padding-left: 26px;
    cursor: pointer
}

.category__aside-filter--content label:last-child {
    padding-bottom: 10px
}

.category__aside-filter--content label input[type=checkbox] {
    position: absolute;
    opacity: 0;
    inset: 0 auto auto 0;
    width: 1px;
    height: 1px
}

.category__aside-filter--content label span {
    position: relative;
    display: inline-block;
    line-height: 1.35
}

.category__aside-filter--content label span::before {
    content: "";
    position: absolute;
    left: -26px;
    top: 0;
    width: 18px;
    height: 18px;
    border: 1px solid #9499a5;
    border-radius: 2px;
    background: rgba(0, 0, 0, 0);
    box-sizing: border-box
}

.category__aside-filter--content label span::after {
    content: "";
    position: absolute;
    left: -20px;
    top: 6px;
    width: 8px;
    height: 5px;
    border-left: 2px solid rgba(0, 0, 0, 0);
    border-bottom: 2px solid rgba(0, 0, 0, 0);
    transform: rotate(-45deg);
    opacity: 0
}

.category__aside-filter--content label input[type=checkbox]:checked+span::before {
    background: #c9ed5f;
    border-color: #c9ed5f
}

.category__aside-filter--content label input[type=checkbox]:checked+span::after {
    border-left-color: #0a3426;
    border-bottom-color: #0a3426;
    opacity: 1
}

.category__aside-filter--content label input[type=checkbox]:focus-visible+span::before {
    outline: 2px solid rgba(0, 0, 0, .25);
    outline-offset: 2px
}

.category__aside-form {
    padding: 30px 20px;
    background-color: #e6ebe5;
    border-radius: 4px;
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px
}

.category__aside-form--title {
    font-weight: 700;
    font-size: 18px;
    line-height: 100%;
    color: #0c0605
}

.category__aside-form--input {
    font-weight: 400;
    font-size: 16px;
    line-height: 100%;
    color: #0c0605;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #000;
    outline: none;
    background-color: rgba(0, 0, 0, 0)
}

.category__aside-form #aside_form-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 26px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0);
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease, box-shadow .2s ease, border-color .2s ease, transform .1s ease;
    background-color: #c9ed5f;
    font-weight: 700;
    font-size: 16px;
    border: none;
    box-shadow: none
}

.category__aside-form #aside_form-btn:disabled {
    background-color: gray;
    border: none
}

.category__aside-form #aside_form-btn:disabled:hover {
    background-color: gray;
    border: none;
    box-shadow: none;
    text-shadow: none
}

.category__aside-form #aside_form-btn:hover {
    background: #518048;
    border-color: #518048;
    box-shadow: 0 1px 8px rgba(12, 6, 5, .3);
    text-shadow: 0 0 .8px currentColor;
    color: #fff;
    box-shadow: none;
    text-shadow: none
}

.category__products-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px
}

.category__products-list .product {
    display: grid;
    grid-template-areas: "image title title title price ." "image chars chars chars counter btn";
    padding: 20px;
    border-radius: 4px;
    column-gap: 16px;
    border: 1px solid #dfe4f3;
    grid-template-columns: 125px 1fr 1fr 1fr 150px 45px;
    transition: all .3s ease
}

.category__products-list .product__img {
    grid-area: image;
    width: 100%;
    height: 135px;
    overflow: hidden;
    border-radius: 2px
}

.category__products-list .product__img img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.category__products-list .product__title {
    grid-area: title;
    font-size: 18px;
    font-weight: 700
}

.category__products-list .product__chars {
    grid-area: chars;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 20px;
    row-gap: 4px
}

.category__products-list .product__chars .char {
    font-size: 14px;
    font-weight: 500
}

.category__products-list .product__price {
    grid-area: price;
    font-size: 16px
}

.category__products-list .product__price span:first-child {
    font-size: 14px;
    font-weight: 400
}


.category__products-list .product__chars .char span:last-child {
    color: #518048;
    font-weight: 600
}

.category__products-list .product__price .store {
    font-size: 14px;
    font-weight: 500;
    color: #518048;
    margin-top: 10px
}

.category__products-list .product__counter {
    grid-area: counter;
    display: flex;
    gap: 2px;
    align-self: end
}

.category__products-list .product__counter .minus,
.category__products-list .product__counter .plus {
    background-color: #e6ebe5;
    width: 40px;
    height: 35px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer
}

.category__products-list .product__counter input {
    width: 50px;
    height: 35px;
    border: none;
    outline: none;
    background-color: #e6ebe5;
    padding: 5px;
    text-align: center
}

.category__products-list .product .addtocart {
    grid-area: btn;
    width: 44px;
    height: 44px;
    border: none;
    outline: none;
    background-color: #0a3426;
    padding: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    position: relative;
    cursor: pointer;
    color: #8cea6f;
    align-self: end
}

.category__products-list .product .addtocart::after {
    content: "";
    position: absolute;
    right: -4px;
    top: -5px;
    width: 20px;
    height: 20px;
    background-color: #8cea6f;
    border-radius: 50%;
    z-index: 2;
    display: none
}

.category__products-list .product .addtocart::before {
    content: "";
    position: absolute;
    right: 2px;
    top: -1px;
    width: 7px;
    height: 10px;
    border-bottom: 2px solid #0a3426;
    border-right: 2px solid #0a3426;
    z-index: 3;
    transform: rotate(45deg);
    display: none
}

.modal_filters {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    border-radius: 0;
    padding: 20px 16px
}

.modal_filters .modal__wrapper {
    height: 100%
}

.modal_filters .modal_filters__body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding-right: 4px
}

@media screen and (max-width: 1080px) {
    .category__links {
        grid-template-columns: repeat(4, 1fr)
    }
    .category__aside-filters--title.mobile {
        display: flex;
        align-items: center;
        gap: 10px;
        cursor: pointer;
        margin-top: 40px
    }
    .category__general {
        grid-template-columns: 100%
    }
    .category__aside {
        display: none
    }
}

@media screen and (max-width: 992px) {
    .category__links {
        grid-template-columns: repeat(3, 1fr)
    }
    .category__links.is-collapsed .category__links-item:nth-child(n+7) {
        display: none
    }
    .category__products-list .product {
        grid-template-areas: "image title title price price " "image chars chars counter counter" ". chars chars . btn";
        grid-template-columns: 125px 1fr 1fr auto 45px
    }
    .category__products-list .product__counter {
        justify-self: center;
        align-self: flex-start
    }
    .category__products-list .product__counter input {
        width: 84px
    }
    .category__general {
        margin-top: 20px
    }
}

@media screen and (max-width: 692px) {
    .category__links {
        grid-template-columns: 100%
    }
    .category__links.is-collapsed .category__links-item:nth-child(n+4) {
        display: none
    }
    .category__products-list .product {
        grid-template-areas: "image ." "title title" "chars chars" "price price" "counter btn";
        grid-template-columns: 1fr 1fr;
        row-gap: 10px
    }
    .category__products-list .product__img {
        width: 80%
    }
    .category__products-list .product__price {
        display: flex;
        align-items: center;
        justify-content: space-between
    }
    .category__products-list .product__counter {
        justify-self: start
    }
    .category__products-list .product .addtocart {
        justify-self: end
    }
    .category__products-list .product__price .store {
        margin-top: 0
    }
    .category__products-list .product__title {
        font-size: 16px
    }
    .category__links-more {
        display: block;
        width: fit-content;
        margin: 16px auto 0
    }
}