.catalog-section {
    display: grid;
    grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
    gap: 15px;
}

.catalog-sidebar {
    position: sticky;
    top: 85px;
}

.page-search .catalog-sidebar{
    top: 15px;
}

.catalog-sidebar-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.catalog-sidebar-item {
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    display: block;
    overflow: hidden;
    padding: 10px 20px;
    cursor: pointer;
    text-decoration: none;
    text-overflow: ellipsis;
    color: #313FA0;
    border-right: 3px solid transparent;
    border-radius: 0;
    background-color: #EFF5FF;
}

.catalog-sidebar-item--active {
    border-right-color: #212D82;
}

.catalog-section-header {
    font-size: 23px;
    line-height: 34px;
    display: flex;
    overflow: hidden;
    width: 100%;
    padding: 0 15px;
    text-align: left;
    text-decoration: none;
    text-overflow: ellipsis;
    pointer-events: none;
    color: #313FA0;
    border: none;
    border-radius: 0;
    background-color: transparent;
}

.dropdown-menu.catalog-filter-form {
    -webkit-transform: none !important;
    -ms-transform: none !important;
    transform: none !important;
    border-radius: 0;
    -webkit-box-shadow: 8px 24px 62px rgba(8, 24, 62, 0.17);
    box-shadow: 8px 24px 62px rgba(8, 24, 62, 0.17);
    border: 0;
    padding: 0;
}

.catalog-filter-form__checkbox {
    margin-bottom: 12px;
    padding: 5px 3px 5px 27px;
    width: 33%;
}

.catalog-filter-form__checkbox label {
    word-wrap: break-word;
}

.catalog-filter-form__title {
    font-size: 15px;
    font-weight: 500;
    line-height: 20px;
    margin-bottom: 14px;
    padding: 15px 15px 0
}

.catalog-filter-form__variants {
    padding: 0 10px;
    display: flex;
    flex-wrap: wrap;
    width: 375px;
}

.catalog-filter-form__variants::-webkit-scrollbar {
    width: 5px
}

.catalog-filter-form__variants::-webkit-scrollbar-thumb {
    border-radius: 34px;
    background: #313fa0
}

.catalog-filter-form__variants::-webkit-scrollbar-track {
    background-color: #ececec;
    border-radius: 34px
}

.catalog-filter-form__footer {
    padding: 15px;
    text-align: center;
}

.catalog-filter-form__footer .btn-blue {
    width: 100%;
    max-width: 100px;
}

.catalog-products .hide {
    display: none;
}

.catalog-body .catalog-category-wrap .catalog-category-content .card-catalog-category .card-catalog-category-body .table tr th.catalog-products__head-cell {
    background-color: #EFF5FF;
    color: #313FA0;
    padding: 10px;
    width: 140px;
    height: 55px;
    position: relative;
}

.catalog-body .catalog-category-wrap .catalog-category-content .card-catalog-category .card-catalog-category-body .table tr th.catalog-products__head-cell .link-sort {
    color: #313FA0;
    font-weight: 500;
    font-size: 15px;
    display: block;
    padding-right: 15px !important;
}

.catalog-body .catalog-category-wrap .catalog-category-content .card-catalog-category .card-catalog-category-body .table tr th.catalog-products__head-cell:first-child {
    padding-left: 10px;
}

.catalog-body .catalog-category-wrap .catalog-category-content .card-catalog-category .card-catalog-category-body .table.has-parts tr th:first-child {
    width: 15px;
}

.table-filter__btn {
    position: relative;
    padding: 0 !important;
}

.table-filter__btn:after {
    content: '';
    width: 10px;
    height: 10px;
    display: block;
    background-image: url(./img/dropdown-orange.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transition: all 0.3s;
    opacity: 0.3;
    position: absolute;
    right: 0;
    top: 7px;
}

.table-filter__btn:hover:after {
    opacity: 1;
}

.table-filter__btn-active:after {
    opacity: 1;
}

.catalog-category-filter-minmax .form-control {
    min-width: 90px;
}

.catalog-products__thead {
    position: sticky;
    top: -1px;
}

@media (max-width: 768px) {
    .catalog-products__thead {
        position: relative;
    }

    .catalog-products.js-table-products .measure-column {
        display: none !important;
    }
}

.aim_text {
    padding: 4px 15px 4px 15px;
}

.hide-price-cats-button {
    display: none;
}

.show-all-price-wrapper {
    display: none;
    min-width: 100px;
    white-space: nowrap;
    min-height: 35px;
    height: 35px;
    width: 100%;
    margin: 10px 0px;
    justify-content: flex-end;
}

.show-all-price-wrapper a {
    background: #313FA0;
    width: 250px;
    display: block;
    height: 100%;
    color: #fff !important;
    text-decoration: none;
    text-align: center;
    line-height: 2.5em;
}

.show-all-price-wrapper.mobile {
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100%;
    padding: 0px 0px 0px 0px;
    margin: 0px 0px 0px;
    z-index: 100;
}

.show-all-price-wrapper.mobile a {
    width: 100%;
}

.show-all-price-hidden {
    display: none;
}

.custom-filter-form {
    padding: 5px 15px;
    margin-bottom: 15px;
}

.custom-filter-block-desktop {
    display: flex;
}

.custom-filter-block__line {
    display: flex;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.custom-filter-block__selector {
    padding: 10px 15px;
    margin-right: 10px;
    margin-top: 10px;
    cursor: pointer;
}

.custom-filter-block__selector a {
    text-decoration: none;
}

.custom-filter-block__selector.block-selected {
    background: #EFF5FF;
    display: flex;
    padding-left: 5px;
    cursor: pointer;
}

.custom-filter-block__selector.block-selected:before {
    content: ' ';
    background-image: url(/local/templates/staltorg/images/icons/close-blue.svg);
    display: block;
    width: 20px;
    height: 20px;
    margin-right: 5px;
    background-size: contain;
}

.custom-filter-form .hide-filter {
    display: none;
}

.filter-show-button {
    padding: 10px 15px;
    background-color: #313FA0;
    margin-right: 10px;
    max-height: 40px;
    margin-top: 10px;
}

.filter-show-button a {
    text-decoration: none;
    color: #fff;
}

.filter-show-button a:hover {
    color: #fff;
}

.custom-filter-form-modal {
    background: #fff;
    display: block;
    width: 50%;
    position: fixed;
    height: 100%;
    right: 0px;
    border-left: #eee;
    box-shadow: 8px 24px 62px rgba(8, 24, 62, .17);
    top: 0px;
    z-index: 1050;
}

.custom-filter-form-modal.hide-modal-filter {
    display: none;
}

.custom-filter-form-modal__title {
    padding: 10px 15px;
    display: flex;
    border-bottom: 1px solid #b5b5b5;
    margin-bottom: 15px;
}

.custom-filter-form-modal__title__name {
    width: 95%;
    padding: 10px 0px;
    font-weight: 600;
    font-size: 16px;
}

.custom-filter-form-modal__title__btns {
    width: 5%;
    padding: 10px 0px;
    font-weight: 600;
    cursor: pointer;
}

.custom-filter-form-modal__title__btns span {
    background-image: url(/local/templates/staltorg/images/icons/close-grey.svg);
    width: 25px;
    height: 25px;
    background-size: contain;
    display: block;
}

.custom-filter-block__selector-clear {
    background: #EFF5FF;
    display: flex;
    padding: 10px 15px;
}

.custom-filter-block-modal__line {
    min-height: 35px;
    padding-left: 15px;
}

.custom-filter-block-modal__line__selector-name {
    width: 100%;
    margin-top: 5px;
}

.custom-filter-block-modal__line__selector-name span {
    font-weight: 600;
}

.custom-filter-block-modal__line__selector {
    padding: 10px 15px;
    margin-right: 10px;
    margin-bottom: 10px;
}

.custom-filter-block-modal__line__selector.block-selected {
    background: #EFF5FF;
    display: flex;
    padding-left: 5px;
    cursor: pointer;
}

.custom-filter-block-modal__line__selector.block-selected:before {
    content: ' ';
    background-image: url(/local/templates/staltorg/images/icons/close-blue.svg);
    display: block;
    width: 20px;
    height: 20px;
    margin-right: 5px;
    background-size: contain;
}

.custom-filter-block-modal__line__selector a {
    text-decoration: none;
}

.filter-buttons-mobile-wrapper {
    display: flex;
    flex-flow: column;
    min-width: 150px;
}

.show-all-price {
    padding: 10px 15px;
    background-color: #313FA0;
    margin-right: 10px;
    max-height: 75px;
    margin-top: 10px;
}

.show-all-price a,
.show-all-price a:hover {
    color: #fff;
    text-decoration: none;
}

.filter-buttons-mobile-wrapper .filter-show-button,
.filter-buttons-mobile-wrapper .show-all-price {
    text-align: center;
}

.custom-filter-block-mobile__selector-clear {
    text-align: center;
    justify-content: center;
    color: #313FA0;
}

.custom-filter-form-mobile.filter-fixed {
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100%;
    margin: 0px 0px 0px;
    z-index: 100;
    background: #fff;
    padding: 10px;
}

.custom-filter-form-mobile .filter-show-button {
    margin: 5px 0px 0px 0px;
}

.custom-filter-form-mobile .show-all-price {
    margin: 0px 0px 5px 0px;
}

.custom-filter-form-mobile .custom-filter-block-mobile__selector-clear.custom-filter-block__selector-clear {
    padding: 10px;
    margin-right: 0px;
}

.custom-filter-form-mobile .custom-filter-block__selector {
    padding: 3px 10px;
    margin-top: 5px;
    margin-right: 8px;
}

.custom-filter-block-modal__line-body {
    border-bottom: 1px solid #e5e5e5;
}

.custom-filter-form-modal .custom-filter-block__selector-clear {
    background: #313FA0;
}

.custom-filter-form-modal .custom-filter-block__selector-clear a {
    color: #fff;
}

.custom-filter-block-mobile__selector-clear-sidepanel {
    color: #fff;
}

.custom-filter-block-modal__line__selector {
    cursor: pointer;
}

.custom-filter-block__buttons {
    display: flex;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .catalog-body .catalog-category-wrap .catalog-category-content .card-catalog-category .card-catalog-category-body .table-responsive .measure-column {
        display: none;
    }

    .catalog-body .catalog-category-wrap .catalog-category-content .card-catalog-category .card-catalog-category-body .table-responsive tr th.measure-column:nth-child(2),
    .catalog-body .catalog-category-wrap .catalog-category-content .card-catalog-category .card-catalog-category-body .table-responsive tr th.measure-column:nth-child(3),
    .catalog-body .catalog-category-wrap .catalog-category-content .card-catalog-category .card-catalog-category-body .table-responsive tr td.measure-column:nth-child(2),
    .catalog-body .catalog-category-wrap .catalog-category-content .card-catalog-category .card-catalog-category-body .table-responsive tr td.measure-column:nth-child(3) {
        display: table-cell;
    }

    .show-all-price-wrapper {
        display: flex;
    }

    .catalog-body .catalog-category-wrap .catalog-category-content .card-catalog-category .card-catalog-category-body .table tr th:last-child {
        padding: 2px;
    }

    .show-all-price-wrapper-pinned {
        display: block;
    }

    .catalog-products .hidden-price {
        display: none;
    }

    .custom-filter-form .hide-filter {
        display: flex;
        flex-flow: column;
    }

    .custom-filter-form .custom-filter-block-desktop {
        display: none;
    }

    .custom-filter-form-modal {
        width: 100%;
    }
}

.hide-price-cats-button {
    display: none;
}

.show-all-price-wrapper {
    display: none;
    min-width: 100px;
    white-space: nowrap;
    min-height: 35px;
    height: 35px;
    width: 100%;
    margin: 10px 0px;
    justify-content: flex-end;
}

.show-all-price-wrapper a {
    background: #313FA0;
    width: 250px;
    display: block;
    height: 100%;
    color: #fff !important;
    text-decoration: none;
    text-align: center;
    line-height: 2.5em;
}

.show-all-price-wrapper.mobile {
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100%;
    padding: 0px 0px 0px 0px;
    margin: 0px 0px 0px;
    z-index: 100;
}

.show-all-price-wrapper.mobile a {
    width: 100%;
}

.show-all-price-hidden {
    display: none;
}

@media (max-width: 768px) {
    .table-responsive .measure-column-hidden {
        display: none;
    }

    .show-all-price-wrapper {
        display: flex;
    }

    .catalog-body .catalog-category-wrap .catalog-category-content .card-catalog-category .card-catalog-category-body .table tr th:last-child {
        padding: 2px;
    }

    .show-all-price-wrapper-pinned {
        display: block;
    }

    .catalog-products .hidden-price {
        display: none;
    }
}

.collapse.mobile {
    margin-top: 100px;
}

/* Части изделий - START */
.card-catalog-category-body .table .product-is-part {
    display: none;
}

.card-catalog-category-body .table .product-is-part.show-parts:not(.hide),
.card-catalog-category-body .table .product-is-part.show-filter.show-parts,
.card-catalog-category-body .table .product-has-parts.show-parts:not(.hide) {
    display: table-row;
}

.button-show-parts {
    border-radius: 50%;
    width: 25px;
    height: 25px;
    background: transparent;
    border: 2px solid #32389c;
    color: #32389c;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    font-size: 16px;
}

.button-show-parts:hover {
    background: #32389c;
    color: #fff;
    cursor: pointer;
}

.card-catalog-category-body .table .product-has-parts .button-show-parts svg path {
    display: none;
}

.card-catalog-category-body .table .product-has-parts.show-parts .button-show-parts svg .icon-btn-close,
.card-catalog-category-body .table .product-has-parts:not(.show-parts) .button-show-parts svg .icon-btn-open {
    display: inline;
}

.card-catalog-category-body .table .product-is-part,
.card-catalog-category-body .table .product-has-parts.show-parts td {
    background: #f8f9fb;
}

/* Части изделий - END */

@media (min-width: 993px) {
    .catalog-section .catalog-section-detail.collapse {
        display: block;
    }
}

@media (max-width: 992px) {
    .catalog-section {
        display: block;
    }

    .catalog-section__sidebar {
        display: none;
    }

    .catalog-section-header {
        font-size: 23px;
        line-height: 34px;
        display: flex;
        overflow: hidden;
        width: 100%;
        padding: 20px 50px 20px 30px;
        cursor: pointer;
        text-align: left;
        text-decoration: none;
        text-overflow: ellipsis;
        pointer-events: auto;
        color: #313FA0;
        border: none;
        border-radius: 0;
        background-color: #EFF5FF;
        position: relative;
        background-image: none !important;
    }

    .catalog-section-header::after {
        content: '';
        position: absolute;
        right: 20px;
        top: 50%;
        width: 20px;
        height: 20px;
        margin-top: -10px;
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;
        background-image: url(/local/templates/staltorg/images/icons/dropdown-black-up.svg);
    }

    .catalog-section-header.collapsed::after {
        background-image: url(/local/templates/staltorg/images/icons/dropdown-black.svg);
    }
}


/* Стили для сворачивания фильтров - START */
.custom-filter-block-desktop {
    display: flex;
    width: 100%;
    overflow: hidden;
}

.custom-filter-block-desktop .custom-filter-block__wrapper {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.custom-filter-block-desktop .custom-filter-block__line {
    display: flex;
    flex-wrap: nowrap !important;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    align-items: center;
}

.custom-filter-block-desktop .custom-filter-block__selector {
    flex-shrink: 0;
    white-space: nowrap;
    margin-top: 5px !important;
    margin-bottom: 5px !important;
}

.custom-filter-more-btn {
    display: none;
    justify-content: center;
    align-items: center;
    min-width: 40px;
    font-weight: bold;
    color: #313FA0;
    background: #EFF5FF;
}

.custom-filter-more-btn:hover {
    background: #dce9ff;
}
/* Стили для сворачивания фильтров  - END */

.catalog-section-detail {
    position: relative;
}

.section-units-mobile,
.section-units-desktop {
    display: flex;
    align-items: center;
    font-size: 23px;
    text-wrap: nowrap;
    color: #313FA0;
}

.section-units-mobile {
    margin: 10px 0;
    display: none;
}

@media screen and (max-width: 992px) {
    .section-units-desktop {
        display: none;
    }

    .section-units-mobile {
        display: flex;
    }
}

.catalog-products span[data-measure] {
    display: none;
}

.section-units {
    display: flex;
    align-items: center;
    border: 1px solid #3238A5;
    border-radius: 5px;
    width: fit-content;
    color: #313FA0;

    input {
        display: none;

        &:checked + label {
            background: #3238A5;
            color: #fff;
        }
    }

    label {
        margin: 0;
        font-size: 14px;
        line-height: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 8px 18px;
        text-transform: uppercase;
        color: #313FA0;

        &:not(:last-child) {
            border-right: 1px solid #3238A5;
        }

        &:hover {
            cursor: pointer;
        }
    }
}

.card-header__row {
    display: flex;
    align-items: center;
    justify-content: center;
}