.catalog__wrapper > .catalog__category {
    flex: 0 0 300px;
    width: 300px;
    padding: 0 24px 0 0;
    box-sizing: border-box;
}

.catalog__wrapper > .catalog__product {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
}

.catalog__category .catalog-tree,
.catalog__category .catalog-tree div {
    padding-right: 0;
}

.catalog__category .catalog-tree .catalog-tree__list,
.catalog__category .catalog-tree .catalog-tree__children {
    margin: 0;
    padding: 0;
}

.catalog__category .catalog-tree .catalog-tree__children > .catalog-tree__item::before {
    content: none;
}

.catalog-tree {
    width: 100%;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e4ece8;
    border-radius: 13px;
    box-shadow: 0 8px 28px rgba(18, 52, 36, 0.07);
}

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

.catalog-tree__children {
    margin: 0;
    padding: 0;
    background: #f8fbf9;
    border-top: 1px solid #e8efeb;
}

.catalog-tree__children[hidden] {
    display: none !important;
}

.catalog-tree__item {
    position: relative;
    margin: 0;
    padding: 0;
}

.catalog-tree > .catalog-tree__list > .catalog-tree__item + .catalog-tree__item {
    border-top: 1px solid #e8efeb;
}

.catalog-tree__children > .catalog-tree__item + .catalog-tree__item {
    border-top: 1px solid rgba(228, 236, 232, 0.82);
}

.catalog-tree__row {
    display: flex;
    align-items: stretch;
    min-width: 0;
    padding: 0;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.catalog-tree__link {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    min-width: 0;
    min-height: 48px;
    margin: 0;
    padding: 12px 8px 12px var(--catalog-tree-indent, 15px);
    color: #25322b;
    background: transparent;
    border: 0;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.35;
    text-align: left;
    text-decoration: none;
    box-sizing: border-box;
    transition: color 0.2s ease;
}

.catalog-tree__children .catalog-tree__link {
    min-height: 44px;
    font-size: 14px;
}

.catalog-tree__parent-trigger {
    width: 100%;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -webkit-tap-highlight-color: transparent;
}

.catalog-tree__name {
    min-width: 0;
    overflow-wrap: anywhere;
}

.catalog-tree__count {
    flex: 0 0 auto;
    margin-left: 7px;
    color: #87938c;
    font-size: 12px;
}

.catalog-tree__toggle {
    display: inline-flex;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    width: 44px;
    min-height: 44px;
    margin: 2px 3px 2px 0;
    padding: 0;
    color: #5c6861;
    background: transparent;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.catalog-tree__toggle svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.2s ease;
}

.catalog-tree__toggle[aria-expanded="true"] svg {
    transform: rotate(90deg);
}

.catalog-tree__row:hover {
    background: rgba(0, 177, 93, 0.08);
}

.catalog-tree__row:hover .catalog-tree__link,
.catalog-tree__link:focus-visible,
.catalog-tree__item.is-open > .catalog-tree__row .catalog-tree__link {
    color: #008f4b;
}

.catalog-tree__toggle:hover {
    color: #008f4b;
    background: rgba(0, 177, 93, 0.14);
}

.catalog-tree__link:focus-visible,
.catalog-tree__toggle:focus-visible {
    position: relative;
    z-index: 1;
    outline: 2px solid #00b15d;
    outline-offset: -2px;
}

.catalog-tree__item.is-current > .catalog-tree__row {
    background: rgba(0, 177, 93, 0.12);
    box-shadow: inset 3px 0 0 #00b15d;
}

.catalog-tree__item.is-current > .catalog-tree__row .catalog-tree__link {
    color: #007e42;
    font-weight: 700;
}

@media (max-width: 992px) {
    .catalog__wrapper > .catalog__category {
        flex: 0 0 100%;
        width: 100%;
        padding: 0 0 24px;
    }

    .catalog__wrapper > .catalog__product {
        flex-basis: 100%;
        width: 100%;
    }
}

@media (max-width: 575px) {
    .catalog-tree {
        border-radius: 11px;
        box-shadow: 0 5px 20px rgba(18, 52, 36, 0.06);
    }

    .catalog-tree__link {
        min-height: 50px;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .catalog-tree__children .catalog-tree__link {
        min-height: 46px;
    }

    .catalog-tree__toggle {
        flex-basis: 48px;
        width: 48px;
        min-height: 48px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .catalog-tree__row,
    .catalog-tree__link,
    .catalog-tree__toggle,
    .catalog-tree__toggle svg {
        transition: none;
    }
}
