.catalog-page {
    position: relative;
    width: 100%;
    padding-bottom: 70px;
}

.catalog-popular {
    margin: 20px 0 32px 0;
}

.toggle-info {
    background: transparent;
    padding: 0 23px 0 0;
    color: var(--Neutral-500);
    position: relative;
}

.toggle-info:before {
    content: "";
    width: 22px;
    height: 19px;
    background: url("../img/icons/arrow-bottom.svg") no-repeat right center / 100%;
    position: absolute;
    right: 0;
    transition: .4s;
}

.toggle-info.active:before {
    transform: rotate(180deg);
    top: 2px;
}

.catalog-layout.flex {
    gap: 24px;
    align-items: flex-start;
    flex-wrap: nowrap;
    padding-top: 32px;    
}
@media screen and (max-width: 600px) {
    .catalog-layout.flex {
        padding-top: 6.25vw; 
    }
}
.catalog-layout.blur {
    opacity: .8;
    pointer-events: none
}
.catalog-header {
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    position: relative;
}
@media screen and (max-width: 600px) {
    .catalog-header.flex {
        gap: 2vw;
        margin-bottom: 2vw;
    }
}
.catalog-view-switch {
    display: flex;
    box-shadow: 0px 4px 16px 0px rgba(62, 59, 52, 0);
}
@media screen and (max-width: 600px) {
    .catalog-view-switch .h4 {
        font-size: 4.6875vw;
    }
}
.switch-btn {
    padding: 12px;
    width: 240px;
    cursor: pointer;
    border: none;
    color: var(--Neutral-600);
    background-color: var(--Neutral-100);
    box-shadow: 0px 4px 16px 0px rgba(62, 59, 52, 0);
}

.switch-btn.active {
    background-color: var(--Neutral-1000);
    color: var(--Neutral-0);
}

.catalog-filter-and-sort {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
@media screen and (max-width: 1740px) {
    .catalog-filter-and-sort {
        margin-top: 24px;
    }
}
@media screen and (max-width: 1740px) {
    .catalog-filter-and-sort {
        margin-top: 0;
        gap: 10px;
    }
}
.filter-toggle {
    display: none;
    align-items: center;
    background: var(--Primary-100);
    padding: 10px 16px 10px 14px;
    gap: 8px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
}
@media (max-width: 1440px) {
    .filter-toggle {
        display: flex;
    }
}
@media (max-width: 600px) {
    .filter-toggle {
        font-size: 4.0625vw;
        font-weight: 500;
        padding: 2vw 4vw;
        gap: 2vw;
        border-radius: 0.5vw;
    }
}
.sort-dropdown__toggle {
    display: none;
}
@media (max-width: 1750px) {
    .sort-dropdown__toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 6px 16px 6px 12px;
        background: var(--Primary-100);
        gap: 8px;
        border-radius: 4px;
        cursor: pointer;
    }
}
@media (max-width: 600px) {
    .sort-dropdown__toggle.text-1 {
        font-size: 4.0625vw;
        padding: 1.906vw 4vw;
        gap: 2vw;
        border-radius: 0.5vw;
    }
}
.catalog-sort {
    display: flex;
    align-items: center;
    gap: 16px;
    position: absolute;
    top: 0;
    right: 0;
}
@media screen and (max-width: 1740px) {
    .catalog-sort {
        position: static;
    }
}
@media screen and (max-width: 1750px) {
    .catalog-sort {
        align-items: center;
        gap: 5px;
    }
}
.catalog-sort .sort-options {
    gap: 12px;
}
@media screen and (max-width: 1750px) {
    .sort-dropdown.is-open .sort-options {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        -webkit-box-shadow: 4px 4px 8px 0px rgba(34, 60, 80, 0.2);
        -moz-box-shadow: 4px 4px 8px 0px rgba(34, 60, 80, 0.2);
        box-shadow: 4px 4px 8px 0px rgba(34, 60, 80, 0.2);
    }
    .sort-options {
        position: absolute;
        top: calc(100% + 4px);
        right: -1px;
        z-index: 10;
        width: 285px;
        flex-direction: column;
        background: #fff;
        border: 1px solid var(--Primary-100);
        border-radius: 4px;
        padding: 5px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-6px);
        transition: .2s ease;
    }
}
@media screen and (max-width: 600px) {
    .catalog-sort .sort-options {
            gap: 1vw;
            top: calc(100% + 1.25vw);
            right: -1px;
            width: 71.4375vw;
            border-radius: 1.25vw;
            padding: 1vw;
        transform: translateY(-1.875vw);
    }
}
.sort-item {
    padding: 6px 12px;
    border-radius: 4px;
    background: var(--Primary-100);
    color: var(--Neutral-600);
    align-items: center;
    gap: 6px;
    border: 1px solid var(--Primary-100)
}
@media screen and (max-width: 1750px) {
    .sort-item {
        width: 100%;
        color: var(--Neutral-500);
        font-size: 16px;
        font-weight: 400;
        padding: 12px 16px;
        background-color: transparent;
        transition: background-color .2s ease;
    }
}


.sort-item.mobile-only {
    display: none;
    text-align: left;
}


.sort-item.mobile-only.active {
    background-color: #FAF5F5;
}

.sort-item.active {
    color: var(--Neutral-1000);
    border: 1px solid var(--Neutral-1000);
    transition: 0s;
}
.sort-item.mobile-only {}
@media (max-width: 1750px) {
    .sort-item.mobile-only {
        display: block;
        color: #9B9B9B;
    }
}
@media (max-width: 600px) {
    .sort-item.mobile-only {
        font-size: 4.0625vw;
    }
}
.sort-item svg {
    transition: transform 0.2s;
}
@media (max-width: 1750px) {
    .sort-item svg {
        display: none;
    }
}
.sort-item.asc svg {
    transform: rotate(0deg);
}

.sort-item.asc svg path, .sort-item.desc svg path {
    fill: var(--Neutral-1000);
}

.sort-item.desc svg {
    transform: rotate(180deg) scaleX(-1);
}

.catalog-count {
    margin-bottom: 20px;
    color: var(--Neutral-500);
}
@media screen and (max-width: 600px) {
    .catalog-count {
        font-size: 4.0625vw;
        margin: 0;
    }
}
.catalog-active-filters {
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
@media screen and (max-width: 600px) {
    .catalog-active-filters {
        gap: 1.5625vw;
        padding-top: 3.125vw;
    }
}
.active-filter {
    background-color: var(--Primary-1000);
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 100px;
    padding: 4px 4px 4px 20px;
    color: var(--Neutral-0);
    font-size: 14px;
    cursor: pointer;
}
@media screen and (max-width: 600px) {
    .active-filter {
        gap: 1.5625vw;
        padding: 2vw 2vw 2vw 5vw;
        font-size: 4.0625vw;
    }
}
.active-filter .remove {
    background-color: rgba(255, 255, 255, 0.0);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}
@media screen and (max-width: 600px) {
    .active-filter .remove {
        width: 4vw;
        height: 4vw;
    }
}
.active-filter .remove img {
    position: relative;
    left: 0.25px;
    width: 16px;
    height: 16px;
}
@media screen and (max-width: 600px) {
    .active-filter .remove img {
        width: 100%;
        height: 100%;
    }
}
.active-filter:hover .remove {
    background-color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
}


.clear-filters.text-1 {
    background: transparent;
    border: none;
    font-size: 16px;
    color: var(--Neutral-500);
    cursor: pointer;
    display: none;
}
@media screen and (max-width: 600px) {
    .clear-filters.text-1 {
        font-size: 4.0625vw;
    }
}
.catalog-views {
    width: 100%;
    position: relative;
}

/* Сетка */
.catalog-grid {
    display: grid;
    margin-top: 40px;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-flow: dense;
    gap: 20px;
    margin-bottom: 40px;
}
@media screen and (max-width: 600px) {
    .catalog-grid {
        margin-top: 6.25vw;
        gap: 6.25vw;
        margin-bottom: 6.25vw;
    }
}
.catalog-view {
    opacity: 0;
    pointer-events: none;
    position: absolute;
    inset: 0;
    transition: opacity .7s ease-in-out;
}

.catalog-view.active {
    opacity: 1;
    pointer-events: auto;
    position: relative;
}

.card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.card__top {
    position: relative;
    min-height: 112px;
    max-height: 343px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card__slider {
    position: relative;
    flex: 1 0 auto;
    min-height: 112px;
    max-height: 295px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
}

.card__slider .swiper-slide img {
    object-fit: contain;
    width: 100%;
}
.collections-catalog .card__slider .swiper-slide img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

/* Плавный fade */
.card__slider .swiper-slide {
    display: flex;
    align-items: flex-end;
    opacity: 0 !important;
    transition: opacity .6s ease;
}

.card__slider .swiper-slide.swiper-slide-active {
    opacity: 1 !important;
}

.card__slider .swiper-pagination {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    z-index: 10;
    pointer-events: none;
}

.card__slider .swiper-pagination-bullet {
    position: relative;
    width: 100%; /* длина линии */
    height: 3px; /* толщина линии */
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.45); /* тусклые линии */
    opacity: 1 !important; /* отключаем fade Swiper */
    margin: 0 !important;
}

.card__slider .swiper-pagination-bullet-active {
    background: #fff; /* активная линия белая */
}

.card__hover-zones {
    position: absolute;
    inset: 0;
    display: flex;
    z-index: 5;
}

.card__hover-zone {
    flex: 1 1 0;
}

.card__fav {
    position: absolute;
    z-index: 1000;
}

.card__labels {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 3;
    align-items: flex-start;
    max-width: calc(100% - 20px);
}

.card__label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    font-weight: 600;
    font-size: 17px;
    color: var(--Neutral-0);
    border-radius: 4px;
}

.label-new {
    background: linear-gradient(to bottom, #7CC4A3 50%, #6DBD99 50%);
}

.label-sale {
    background: linear-gradient(to bottom, #E0CB74 50%, #DDC564 50%);
}

.label-discount {
    background: linear-gradient(to bottom, #DD5E5D 50%, #D94C4B 50%);
}

.card__fav {
    width: 52px;
    height: 52px;
    display: flex;
    background-color: var(--Primary-100);
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    top: 16px;
    right: 16px;
    z-index: 2;
    cursor: pointer;

    opacity: 0;
    transform: scale(.85);
    transition:
            opacity .25s ease,
            transform .25s ease,
            background-color .25s ease;
}

.card:hover .card__fav {
    opacity: 1;
    transform: scale(1);
}

.card__fav img {
    position: absolute;
    transition: opacity .25s ease;
}

.card__fav.active {
    opacity: 1;
    transform: scale(1);
}

.card__fav .fav {
    opacity: 1;
}

.card__fav .fav-active {
    opacity: 0;
}

.card__fav.active .fav {
    opacity: 0;
}

.card__fav.active .fav-active {
    opacity: 1;
}


.card__body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-grow: 1;
}
@media screen and (max-width: 600px) {
    .card__body {
        padding: 3.75vw;
        gap: 3.125vw;
    }
}
/* Верхний блок: только название */
.card__top-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.card__bottom-info {
    display: flex;
    flex-direction: column;
    margin-top: auto;
}



.card__title {
    font-size: 20px;
    font-weight: 400;
    text-decoration: none;
    color: var(--Neutral-1000);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    overflow: hidden;
    -webkit-box-orient: vertical;
    min-height: calc(1em * 1.35);
    max-height: calc(1em * 1.35 * 3);
}
@media screen and (max-width: 600px) {
    .card__title {
        font-size: 5.3125vw;
        min-height: unset;
        max-height: unset;
    }
}

.card--product .card__colors {
    display: flex;
    gap: 6px;
}

.card__colors {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
}

.color-item {
    width: 46px;
    height: 46px;
    padding: 6px;
    border: 1px solid var(--Neutral-200);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--Neutral-500);
    font-weight: 300;
    font-size: 16px;
    text-decoration: none;
    cursor: pointer;
}

.color-item:hover {
    border-color: var(--Primary-1000);
}

.color-item__circle {
    width: 100%;
    height: 100%;
    border-radius: 4px;
}

.card__brand {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}
@media screen and (max-width: 600px) {
    .card__brand {
        gap: 1.875vw;
        margin-bottom: 1.5625vw;
    }
}
.card__brand img {
    width: 24px;
    height: 24px;
}
.brand-name {
    margin: 0;
    text-decoration: 0;
    font-weight: 400;
    font-size: 16px;
    color: var(--Neutral-600);
    text-decoration: none;
}
@media screen and (max-width: 600px) {
    .brand-name {
        font-size: 4.0625vw;
    }
}
.card__sizes {
    font-size: 16px;
    font-weight: 400;
    color: var(--Neutral-600);
    margin-bottom: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
@media screen and (max-width: 600px) {
    .card__sizes {
        font-size: 4.0625vw;
        margin-bottom: 3.125vw;
    }
}
.card__price-block {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.card__price-block {

}
.price-new {
    font-size: 24px;
    font-weight: 400;
}
@media screen and (max-width: 600px) {
    .price-new {
        font-size: 6.25vw;
    }
}
.price-new small {
    font-size: 18px;
}

.price-old {
    font-size: 16px;
    color: #9B9B9B;
    font-weight: 400;
    text-decoration: line-through;
}

.card__discount-badge {
    padding: 4px 8px;
    font-weight: 600;
    font-size: 16px;
    color: var(--Neutral-0);
    background-color: var(--Primary-700);
    border-radius: 4px;
}

.card__thumbs {
    display: flex;
    gap: 3px;
    position: relative;
    padding-top: 12px;
}
@media screen and (max-width: 600px) {
    .card__thumbs {
        padding-top: 3.75vw;
    }
}
.card__thumbs::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--Neutral-200);
}

.card__thumb {
    width: 48px;
    height: 48px;
    overflow: hidden;
    flex-shrink: 0;
}

.card__thumb img {
    object-fit: contain;
    height: 100%;
}

.card__thumb--more {
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--Neutral-500);
    font-size: 16px;
    font-weight: 600;
}

.card__btn {
    color: #fff;
    width: 100%;
    padding: 12px;
    border-radius: 6px;
}

.card--banner {
    grid-column: -2 / -1;
    display: flex;
    flex-direction: column;
    gap: 20px;

    background: var(--Primary-100);
    border: 1px solid #CEC3AE80;
    padding: 20px;
    position: relative;
}

.banner-black {
    color: var(--Neutral-1000);
}

.banner-brown {
    color: var(--Primary-1000);
}

.card--banner .banner-title {
    font-size: 32px;
}

.card--banner .banner-text {
    font-size: 24px;
}

.banner-discount {
    font-size: 100px;
    position: absolute;
    color: var(--Primary-700);
    bottom: -15px;
    font-weight: 300;
    left: 10px;
    opacity: 0.4;
}

.banner-icon {
    position: absolute;
    bottom: -20px;
    right: -20px;
}

.banner-discount b {
    font-size: 150px;
}

.catalog-more {
    box-shadow: 4px 5px 27px 0 rgba(76, 76, 76, 0.08);
    width: 306px;
    margin: 0 auto;
    text-align: center;
}

/* ОСНОВНОЙ КОНТЕЙНЕР */
.material-info__content {
    position: relative;

    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;

    overflow: hidden;
    transition: all 0.4s ease;
    text-overflow: ellipsis;
}

/* СВОРАЧИВАНИЕ */

.material-info__content[data-collapsed="true"] .material-text-hide {
    display: none;
}

.material-info__content[data-collapsed="false"] .material-text-hide {
    display: block;
}

.material-info__content[data-collapsed="false"] {
    grid-template-columns: 1fr;
}

/* ЗАПРЕТ РАЗРЫВОВ */
.material-text-block,
.pei-table,
table {
    break-inside: avoid;
    page-break-inside: avoid;
}

/* ТИПОГРАФИКА */
.material-text-block {
    margin-bottom: 16px;
    font-size: 14px;
    color: var(--Neutral-500);
    font-weight: 300;
}

.material-text-block h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--Neutral-500);
    font-weight: 400;
}

.material-text-block p {
    color: var(--Neutral-500);
    margin-bottom: 8px;
    font-size: 14px;
}

.material-text-block strong {
    font-weight: 400;
}

.material-text-block ul li {
    padding-left: 18px;
    position: relative;
    color: var(--Neutral-500);
    margin-bottom: 6px;
    font-size: 14px;
}

.material-text-block ul li:before {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--Neutral-500);
    border-radius: 50%;
    left: 7px;
    top: 7px;
}

/* ТАБЛИЦА */
.pei-table table {
}

.pei-table th,
.pei-table td {
    border: 1px solid #ccc;
    padding: 10px;
    vertical-align: middle;
    text-align: left;
    box-sizing: border-box;
}

.pei-table td:first-child {
    min-width: 80px;
}

.pei-table tr td:nth-child(2) {
    width: 127px;
}

.pei-table tr td:last-child {
    width: 302px;
}

.pei-table tr td:first-child, .pei-table th {
    font-weight: 400;
}

/* КНОПКА */
.text-toggle {
    margin-top: 22px;
    cursor: pointer;
    font-size: 16px;
}

.texxt-toggle:before {
    content: "";
    width: 22px;
    height: 19px;
    background: url("../img/icons/arrow-bottom.svg") no-repeat right center / 100%;
    position: absolute;
    right: 0;
    transition: .4s;
}

.text-toggle.active:before {
    transform: rotate(180deg);
    top: 2px;
}



#qwiz-block .wrp {
    margin-left: 0;
    margin-right: 0;
}

@media screen and (max-width: 1980px) {
    .catalog-grid {
        grid-template-columns: repeat(3, 1fr);
    }

}



@media screen and (max-width: 1600px) {
    .card__colors .color-item {
        width: 44px;
        height: 44px;
    }

    .card__thumb {
        width: 43px;
        height: 43px;
    }
}




@media screen and (max-width: 1750px) {
    .sort-item.desktop-only {
        display: none;
    }
    .catalog-sort__label {
        display: none;
    }
    .sort-dropdown {
        position: relative;
        width: 100%;
        max-width: 280px;
    }
    .sort-item:hover, .sort-item.active {
        color: var(--Neutral-1000);
    }
}





@media screen and (max-width: 1023px) {
    .catalog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .material-info__content[data-collapsed="true"] {
        grid-template-columns: 1fr;
    }

}

@media screen and (max-width: 767px) {
    .catalog-view-switch {
        width: 100%;
    }

    .switch-btn {
        width: 50%;
    }

    .catalog-grid {
        grid-template-columns: 1fr;
    }

    .card--banner {
        min-height: 400px;
    }
}

.pre-h1 {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}