/* suggest topics */
.suggest_product {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Центрирование по горизонтали */
    align-items: center; /* Центрирование по вертикали */
}
.suggest_artic {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Центрирование по горизонтали */
    align-items: center; /* Центрирование по вертикали */
}

.line-suggest-topics {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}
.topic {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    justify-content: flex-start;
    padding-block: 30px;
    border-radius: 15px;
    height: fit-content;
}
.topic p {
    margin-bottom: 0px;
}
.topic:hover {
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}
.topic:hover img {
    filter: brightness(90%);
}
.topic:hover p {
    /* text-decoration: underline; */
    color: var(--primary);
}
.title_line .title_center {
    margin-bottom: 0px;
    padding: 0px;
    text-align: left;
}
.mask-group {
    align-self: stretch;
    flex: 1;
    height: 228px;
    position: relative;
    overflow: visible;
}
form {
    height: 100%;
}
@media screen and (max-width: 480px) {
    .title_line .title_center {
        font-size: 17px;
        margin-bottom: 0px;
        padding: 0px;
        text-align: left;
    }
    .line-suggest-topics {
        grid-template-columns: repeat(3, minmax(50px, 1fr));
    }
    .topic {
        padding-block: 0px;
    }
    .topic img {
        max-height: 110px !important;
        height: 103px;
    }
    .topic p {
        font-size: 16px;
    }
    .mask-group {
        align-self: stretch;
        flex: 1;
        position: relative;
        overflow: visible;
    }
    .suggest_product {
        padding-bottom: 10px;
    }
    .sugest_artic {
        width: 100%;
        padding-block: 30px;
        /* display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-block: 60px; */
    }
}

/* product_card */
.featured-products,
.featured-products * {
    box-sizing: border-box;
}
.featured-products {
    display: block;
    width: 220px;
    height: 380px;
    position: relative;
    transition: 0.01s;
}
/* .featured-products:hover p {
    color: var(--primary);
} */
.featured-products:hover .favorite {
    color: var(--primary);
    display: block;
}
.featured-products:hover .price {
    color: var(--primary);
}

.featured-products:hover img {
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.08);
    border: none;
}
.price {
    padding-inline: 10px;
    color: var(--color-gray-1, #3a3a3a);
    text-align: left;
    font-family: "Poppins-SemiBold", sans-serif;
    letter-spacing: -0.01em;
    font-size: 21px;
    line-height: 24px;
    font-weight: 700;
    position: relative;
}
/* .product-name {
  width: ;
  position: static;
} */
.product-name2 {
    display: -webkit-box;
    -webkit-line-clamp: 2; /* ограничить до 2 строк */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 2px 7px;
    color: var(--color-gray-1, #3a3a3a);
    text-align: left;
    font-family: "Poppins-SemiBold", sans-serif;
    font-size: 18px;
    font-weight: 600;
}
.sort-description {
    color: var(--color-gray-3, #898989);
    text-align: left;
    font-family: "Poppins-Medium", sans-serif;
    font-size: 16px;
    font-weight: 500;
}
.image-wrapper {
    background-color: white;
    position: relative;
    width: 220px;
    height: 290px;
    overflow: hidden;
    border-radius: 10px;
    background-color: #f3f3f3;
}
.image-placeholder {
    position: absolute;
    inset: 0;
    background-color: #e0e0e0;
    animation: pulse 1.5s infinite;
    z-index: 0;
}

.image-wrapper img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    z-index: 1;
    transition: opacity 0.4s ease;
}
.carousel > .image-wrapper {
    position: relative;
    width: 100%;
    max-height: 70vh;
    min-height: 400px;
    height: 100%;
    overflow: hidden;
    border-radius: 10px;
    background-color: #f3f3f3;
    cursor: pointer;
}
.carousel-thumbs .image-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    overflow: hidden;
    border-radius: 10px;
    background-color: #f3f3f3;
    cursor: pointer;
}

.carousel > .image-wrapper img {
    position: absolute;
    inset: 0;
    width: 100%;
    max-height: 70vh;
    min-height: 400px;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    z-index: 1;
    transition: opacity 0.4s ease;
}
.carousel-thumbs .image-wrapper img {
    position: absolute;
    inset: 0;
    width: 120px;
    height: 120px;
    object-fit: cover;
    opacity: 0;
    z-index: 1;
    transition: opacity 0.4s ease;
}

/* Анимация пульсации */
@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
    100% {
        opacity: 1;
    }
}
/* .product_image {
    width: 100%;
    height: 300px;
    border-radius: 10px;
    background-color: #f3f3f3;
    object-fit: cover;
} */

.product_line {
    display: grid; /* Включаем flex-контейнер */
    grid-template-columns: repeat(
        6,
        minmax(220px, 1fr)
    ); /* Выравнивание элементов по горизонтали */
    gap: 20px 50px;
    width: 100%;
}
.title_line {
    position: relative;
    margin-bottom: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: fit-content;
}
.empty-state {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
@media screen and (max-width: 480px) {
    .image-wrapper {
        width: 165px;
        height: 220px;
        border-radius: 10px;
    }
    .image-wrapper img {
        width: 165px;
        height: 220px;
    }

    .featured-products {
        display: block;
        width: 160px;
        height: 300px;
    }
    .featured-products a {
        display: flex;
        flex-direction: column;
        justify-content: baseline;
        align-items: baseline;
    }
    .price {
        font-size: 19px;
    }
    .product-name2 {
        margin-left: 0px;
        font-size: 16px;
        width: 100%;
    }
    .sort-description {
        font-size: 12px;
        width: 100%;
    }
    .product_line {
        grid-template-columns: repeat(
            2,
            minmax(100px, 1fr)
        ); /* Выравнивание элементов по горизонтали */
        gap: 20px;
        margin-bottom: 20px;
        text-align: center;
        justify-items: center; /* Centers items horizontally in their grid areas */
        align-items: center; /* Centers items vertically in their grid areas */
    }
    .carousel > .image-wrapper {
        aspect-ratio: 3 / 4;
        height: auto;
    }
    .carousel-thumbs {
        display: none;
    }
    .carousel-thumbs .image-wrapper {
        width: 75px;
        height: 75px;
    }

    .carousel > .image-wrapper img {
        width: 100%;
        max-height: 70vh;
        min-height: 400px;
        height: 100%;
    }
    .carousel-thumbs .image-wrapper img {
        width: 75px;
        height: 75px;
    }
}
