/* Скрытые товары в каталоге */
.tile-box {
    display: none;
}

.catalog {
    padding-top: 20px;
}

.detail-nav {
    overflow-x: hidden;
}

@media (max-width: 1279px) {
    .wrapper {
        overflow: unset;
    }

    .header.sticky {
        top: 0;
        position: sticky;
    }

    .catalog-bc.sticky {
        top: 70px;
        position: sticky;
        z-index: 14;
    }

    .catalog {
        overflow-x: hidden;
    }

    .bc_block {
        display: block;
        flex: 1 0 45%;
    }
}

.loader-wrapper {
    height: 75px;
}

.catalog__container .bc_header {
    margin-right: -25px;
    padding: 15px 20px 10px 0;
}

.bc_block {
    display: block;
}

.bc_block__active ~ .bc_block:not(.bc_block__active) .bc_select {
    border: 1px solid rgba(255, 255, 255, 0.5);
    pointer-events: none;
    color: var(--dark-gray);
    background: rgba(255, 255, 255, 0.5) url('../images/icons/arrow-down_gray.svg') no-repeat;
    background-position: right 15px top 50%;
}

#bc3:not(.bc_block__active) .search-detail,
.bc_block__active ~ .bc_block:not(.bc_block__active) {
    display: none;
}

.catalog__sort {
    margin-bottom: 20px;
}

.catalog__subcat > a {
    display: block;
    margin-bottom: 20px;
}

.goods-sort-options a:not(.active) {
    display: none;
}

.sort-open {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    position: absolute;
    width: 100%;
    z-index: 102;
    height: 45px;
}

.sort-open.active {
    top: 0;
    transform: translateX(-50%);
}

.goods-sort-options a:first-of-type {
    position: relative;
    display: block;
}

.goods-sort-options {
    position: relative;
    padding: 14px 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 5;
    width: 100%;
    transition: all 0.2s ease;
}

.goods-sort-options::after {
    position: absolute;
    content: '';
    width: 14px;
    height: 14px;
    top: 15px;
    right: 15px;
    background: url(../images/icons/sort-arrow.svg) center no-repeat;
    transition: transform 0.2s ease;
}

.goods-sort-options.open::after {
    transform: rotate(-180deg);
}

.goods-sort {
    position: relative;
    height: 45px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 160px;
    border: 1px solid var(--gray-dissabled);
    border-radius: 8px;
    transition: opacity var(--anim);
}

.goods-sort * {
    font-weight: 400;
    font-size: 13px;
    line-height: 130%;
    color: var(--black);
}

.goods-sort-options.open {
    position: absolute;
    top: 0;
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    background: var(--white);
}

.goods-sort-options a.open {
    display: block;
}

.catalog__view {
    display: none;
}

.catalog__list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.good-item {
    max-width: 100%;
    background: var(--white);
    width: 100%;
}

.good-code {
    width: 100%;
    text-align: center;
    color: var(--dark-gray);
    font-weight: 500;
    font-size: 13px;
    line-height: 120%;
    margin-bottom: 5px;
}

.good-item__header {
    position: relative;
    margin-bottom: 10px;
}

.good-item__gallery {
    display: block;
    height: 235px;
    max-width: 100%;
    width: 100%;
    overflow: hidden;
}

.subCatsWithImages {
    columns: 3;
}

.detail-groups {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 10px;
}

.good-item__name {
    display: block;
    margin-bottom: 10px;
}

.seo-words {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-weight: 500;
    font-size: 13px;
    line-height: 120%;
    color: var(--dark-gray);
    margin-bottom: 10px;
}

.list-view .seo-words {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: flex-start;
}

.seo-words li:not(.seo-words__type) {
    word-break: break-all;
    max-width: 500px;
}

.seo-words a,
.seo-words span {
    margin-left: 4px;
    color: var(--black);
    text-transform: uppercase;
}

.seo-words li a {
    text-decoration: underline;
}

.manage-info {
    padding: 10px;
    background: #f4f4f4;
    border-radius: 8px;
    display: flex;
    flex-wrap: wrap;
}

.manage-info * {
    font-weight: 500;
    font-size: 13px;
    line-height: 120%;
}

.manage-info li {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    color: var(--dark-gray);
}

.manage-info li:not(:last-of-type) {
    flex: 0 0 49%;
}

.manage-info li:last-of-type {
    margin-top: 10px;
    flex: 0 0 100%;
}

.manage-info span {
    flex: 0 0 100%;
    margin-top: 4px;
}

.manage-info span:not(.txt-red) {
    color: var(--black);
}

.good-item__description input {
    appearance: none;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.good-item__description {
    color: var(--dark-gray);
    font-size: 13px;
    line-height: 120%;
    /* margin-bottom: 15px; */
}

.item-catalog__action .button {
    margin-top: 15px;
}

.good-item__description label {
    display: flex;
    align-items: center;
    font-weight: 500;
    height: 21px;
    cursor: pointer;
}

.good-item__description label svg {
    height: 21px;
    margin-left: 2px;
    transition: transform 0.2s ease;
}

.good__params {
    font-weight: 400;
    display: block;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.good-item__description input:checked + label + .good__params {
    max-height: 100px;
    overflow: visible;
    margin-top: 7.5px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
}

.good-item__description input:checked + label svg {
    transform: rotate(-180deg);
}

.item-catalog__action .good-item__prices {
    display: none;
}

.good-item__prices {
    gap: 10px;
}

.good__discount {
    margin-left: 0;
}

.good-item__pre-price {
    flex: 0 0 auto;
}

.good-item .availability button {
    display: none;
}

.pagination {
    display: flex;
    justify-content: flex-end;
}

.details-groups,
.search-by-detail,
.catalog {
    padding-bottom: 50px;
}

.details-groups h1 {
    font-weight: 700;
    font-size: 21px;
    line-height: 120%;
    color: var(--black);
    margin-bottom: 15px;
}

@media (min-width: 768px) {
    .catalog__list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        align-items: flex-start;
        gap: 40px 20px;
    }

    .detail-groups {
        grid-template-columns: repeat(3, 1fr);
    }

    #bc3:not(.bc_block__active) .bc_select,
    #bc3:not(.bc_block__active) .search-detail {
        flex: 0 0 100%;
    }
}

@media (min-width: 1280px) {
    .mpn_wrap {
        gap: 25px;
    }

    .catalog__subcat {
        margin-top: 15px;
    }

    .detail-groups,
    .catalog-models {
        padding-bottom: 60px;
    }

    .bc_block {
        flex-grow: 1;
    }

    .catalog__list {
        opacity: 0;
        grid-template-columns: repeat(4, 1fr);
        transition: opacity var(--anim);
    }

    .details-groups,
    .search-by-detail,
    .catalog {
        padding-bottom: 100px;
    }

    .details-groups h1 {
        font-size: 32px;
        margin-bottom: 40px;
    }

    .title + .detail-groups {
        padding-top: 25px;
    }

    #bc3 .bc__inp_wrp.shown {
        position: relative;
        min-width: 49%;
    }

    #bc3 .bc__inp_wrp.shown .bc__input {
        margin: 0;
    }

    .bc_block__active ~ .bc_block:not(.bc_block__active) {
        display: block;
    }

    #bc3:not(.bc_block__active) .bc__inp_wrp.shown {
        min-width: 100%;
        width: 100%;
    }

    .catalog__list.list-view {
        grid-template-columns: 1fr;
    }

    .list-view .good-item {
        flex-direction: row;
        min-height: 230px;
    }

    .catalog__list:not(.list-view) .good-item {
        max-width: 320px;
    }

    .list-view .good-item__gallery {
        position: relative;
    }

    .good-item .swiper-pagination {
        opacity: 0;
        transition: opacity var(--anim);
    }

    .good-item:hover .swiper-pagination {
        opacity: 1;
    }

    .list-view .good-item__info {
        padding: 20px 40px;
    }

    .list-view .good-item__name {
        font-weight: 500;
        font-size: 19px;
        margin-bottom: 5px;
    }

    .list-view .manage-info {
        width: 320px;
        margin-bottom: 10px;
    }

    .list-view .good-item__description {
        margin-bottom: 0;
    }

    .list-view .good-item__description label {
        display: none;
    }

    .list-view .good-item__description input {
        display: none;
    }

    .list-view .good__params {
        max-height: 100px;
        overflow: visible;
        font-weight: 400;
        font-size: 15px;
        line-height: 140%;
        color: var(--black);
    }

    .list-view .item-catalog__action .good-item__prices {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .catalog__list .good-item__prices {
        gap: 10px;
    }

    .catalog__list .good-item__prices .good-item__pre-price {
        margin: 0;
    }

    .list-view .good-item__info .good-item__prices {
        display: none;
    }

    .list-view .good-item__header,
    .list-view .item-catalog__action {
        flex: 0 0 260px;
    }

    .list-view .item-catalog__action {
        margin-top: 20px;
    }

    .list-view .good-item__prices {
        margin-bottom: 15px;
    }

    .list-view .availability {
        margin-bottom: 15px;
    }

    .catalog-header,
    .catalog-bc {
        background: #fafbfe;
    }

    .bc_wrapper .bc_content {
        border-radius: 12px;
    }

    .catalog__header {
        padding: 20px 0 40px;
    }

    .catalog__header .title {
        font-size: 32px;
        margin-bottom: 0;
    }

    .catalog__container .bc_header {
        padding: 15px 0 0;
        margin: 0;
        gap: 40px;
        background: transparent;
    }

    .catalog__list {
        gap: 20px;
        align-items: stretch;
    }

    .catalog__sort {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        gap: 40px;
        margin-bottom: 40px;
        opacity: 0;
        transition: opacity 0.2s ease;
    }

    .catalog__view {
        flex: 0 0 90px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: var(--gray-bg);
        border-radius: 8px;
        padding: 5px;
    }

    .catalog__view input {
        display: none;
        appearance: none;
        visibility: hidden;
        opacity: 0;
    }

    .catalog__view label {
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 35px;
        height: 35px;
        border-radius: 8px;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .catalog__view input:checked + label {
        background: var(--white);
    }

    .catalog__view input:checked + label svg * {
        fill: var(--blue);
    }

    .goods-sort {
        width: 190px;
        border: none;
        background: var(--gray-bg);
    }

    .goods-sort-options {
        padding: 13px 18px;
    }

    .goods-sort-options::after {
        width: 24px;
        height: 21px;
        top: 13px;
        background: url(../images/icons/sort-arrow_desk.svg) center no-repeat;
    }

    .goods-sort * {
        font-size: 15px;
        line-height: 130%;
    }

    .good-item {
        display: flex;
        flex-direction: column;
    }

    .good-item__gallery {
        height: 210px;
    }

    .item-catalog__action {
        margin-top: auto;
    }

    .subCatsWithImages {
        columns: 5;
    }

    .subCatsWithImages li {
        width: 340px;
        min-height: 22px;
        padding-bottom: 6px !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .subCatsWithImages li a {
        font-weight: 400;
        font-size: 15px;
        line-height: 120%;
        color: #4c73e3;
    }

    .subCatsWithImages li img {
        width: 32px;
        height: 32px;
    }

    .detail-groups {
        grid-template-columns: repeat(4, 1fr);
    }

    .section-modals .title,
    .details-groups .title {
        margin-bottom: 40px;
    }

    .loader-wrapper {
        height: 100px;
    }
}

@media (min-width: 1440px) {
    .catalog__list {
        gap: 40px;
    }
}
