/* =========================================================
   PROPERA — PRODUCT CARD
========================================================= */

.propera-product-card {

    width: 100%;
    overflow: hidden;

    background: #fff;

    border: 1px solid #e1e7e9;
    border-radius: 18px;

    box-shadow: 0 4px 18px rgba(6, 63, 99, 0.05);

    color: #111;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


.propera-product-card:hover {

    transform: translateY(-2px);

    box-shadow: 0 8px 24px rgba(6, 63, 99, 0.09);
}


/* =========================================================
   IMAGE
========================================================= */

.propera-product-card__image-link {

    display: block !important;

    margin: 0 !important;
    padding: 0 !important;

    text-decoration: none !important;
}


.propera-product-card__image {

    position: relative;

    width: 100%;

    aspect-ratio: 1 / 1;

    overflow: hidden;

    background: #f5f6f6;
}


.propera-product-card__image img {

    display: block !important;

    width: 100% !important;
    height: 100% !important;

    max-width: none !important;

    margin: 0 !important;
    padding: 0 !important;

    object-fit: cover;

    transition: transform 0.35s ease;
}







/* =========================================================
   CONTENT
========================================================= */

.propera-product-card__content {

    padding: 13px 16px 16px !important;

}


/* =========================================================
   TITLE
========================================================= */

.propera-product-card__title {
    display: block !important;

    margin: 0 !important;
    padding: 0 !important;

    font-family: inherit !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;

    color: #151515 !important;
    letter-spacing: -0.1px !important;
}


.propera-product-card__title:hover {

    color: #063f63 !important;
}





/* =========================================================
   PRICE
========================================================= */

.propera-product-card__price {
    display: block !important;

    margin: 16px 0 0 !important;
    padding: 0 !important;

    font-family: inherit !important;
    font-size: 21px !important;
    font-weight: 700 !important;
    line-height: 1 !important;

    color: #7B287D !important;

    letter-spacing: -0.3px !important;
}


.propera-product-card__price del {

    margin-right: 6px;

    font-size: 12px;

    font-weight: 400;

    color: #999999;
}


.propera-product-card__price ins {

    text-decoration: none !important;
}




/* =========================================================
   STOCK STATUS
========================================================= */

.propera-product-card__stock {
    display: block !important;

    margin: 9px 0 0 !important;
    padding: 0 !important;

    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 18px !important;

    color: #4C9A62 !important;
}


/* Нет в наличии */

.propera-product-card__stock.is-out-of-stock {
    color: #999999 !important;
}


/* Если dot всё ещё выводится HTML-классом */

.propera-product-card__stock-dot {
    display: none !important;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .propera-product-card__stock {
        margin-top: 7px !important;
        font-size: 16px !important;
        line-height: 16px !important;
    }

}






/* =========================================================
   BUTTON
========================================================= */

.propera-product-card__button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: auto !important;
    height: 38px !important;
    min-height: 38px !important;

    margin: 12px 0 0 !important;
    padding: 0 16px !important;

    box-sizing: border-box !important;

    border: 0 !important;
    border-radius: 999px !important;

    background: #8B2C83 !important;
    color: #ffffff !important;

    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1 !important;

    text-decoration: none !important;
    white-space: nowrap !important;

    transition:
        background-color 0.2s ease,
        transform 0.2s ease !important;
}


/* Убираем переносы строк из HTML */
.propera-product-card__button br {
    display: none !important;
}


/* Убираем старую стрелку */
.propera-product-card__button span {
    display: none !important;
}


/* Добавляем свою стрелку */
.propera-product-card__button::after {
    content: "→" !important;

    display: inline-block !important;

    margin-left: 8px !important;

    color: #ffffff !important;

    font-family: Arial, sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;

    line-height: 1 !important;

    position: relative !important;
    top: 0 !important;
}


/* Hover */

.propera-product-card__button:hover {
    background: #70216A !important;
    color: #ffffff !important;
}


.propera-product-card__button:visited,
.propera-product-card__button:focus,
.propera-product-card__button:active {
    color: #ffffff !important;
    text-decoration: none !important;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .propera-product-card__button {
        height: 34px !important;
        min-height: 34px !important;

        margin-top: 8px !important;
        padding: 0 13px !important;

        font-size: 14px !important;
    }

    .propera-product-card__button::after {
        margin-left: 6px !important;
        font-size: 12px !important;
    }
}











/* =========================================================
   POPULAR PRODUCTS
========================================================= */

.propera-home__popular {
    padding: 90px 0;
    background: #fff;
}

.propera-home__popular .propera-home__container {
    max-width: 1180px;
    margin: 0 auto;
}


/* =========================================================
   HEADING
========================================================= */

.propera-home__popular-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    margin-bottom: 35px;
}

.propera-home__popular .propera-home__section-title {
    margin: 0 !important;

    color: #151515 !important;

    font-size: 36px !important;
    font-weight: 600 !important;
    line-height: 1.1 !important;
}

.propera-home__popular .propera-home__section-description {
    margin: 10px 0 0 !important;

    color: #777 !important;

    font-size: 16px !important;
    line-height: 1.4 !important;
}


/* =========================================================
   CONTROLS
========================================================= */

.propera-home__popular-controls {
    display: flex;
    gap: 10px;
}

.propera-home__popular-arrow {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 44px !important;
    height: 44px !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 1px solid #8B2C83 !important;
    border-radius: 50% !important;

    background: #fff !important;
    color: #8B2C83 !important;

    font-family: inherit !important;
    font-size: 18px !important;
    line-height: 1 !important;

    cursor: pointer;
}

.propera-home__popular-arrow:hover {
    background: #8B2C83 !important;
    color: #fff !important;
}


/* =========================================================
   SLIDER
========================================================= */

.propera-home__popular-slider {
    width: 100%;
    overflow: hidden;
}

.propera-home__popular-track {
    display: flex;
    gap: 18px;

    transition: transform 0.45s ease;
}

.propera-home__popular-slide {
    flex: 0 0 calc((100% - 54px) / 4);
    min-width: 0;
}


/* =========================================================
   BOTTOM LINK
========================================================= */

.propera-home__popular-bottom {
    display: flex;
    justify-content: center;

    margin-top: 40px;
}

.propera-home__popular-catalog-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    color: #8B2C83 !important;

    font-size: 15px;
    font-weight: 600;

    text-decoration: none !important;
}

.propera-home__popular-catalog-link:hover {
    color: #70216A !important;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

    .propera-home__popular {
        padding: 70px 0;
    }

    .propera-home__popular-slide {
        flex: 0 0 calc((100% - 18px) / 2);
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .propera-home__popular {
        padding: 55px 0;
    }

    .propera-home__popular-heading {
        align-items: flex-start;
    }

    .propera-home__popular .propera-home__section-title {
        font-size: 28px !important;
    }

    .propera-home__popular .propera-home__section-description {
        font-size: 14px !important;
    }

    .propera-home__popular-arrow {
        width: 38px !important;
        height: 38px !important;

        font-size: 16px !important;
    }

    .propera-home__popular-slide {
        flex: 0 0 100%;
    }

    .propera-home__popular-track {
        gap: 12px;
    }

}





/* =========================================================
   POPULAR PRODUCT CARDS
========================================================= */

.propera-home__popular-slide {
    display: flex;
    flex: 0 0 calc((100% - 54px) / 4);
    min-width: 0;
}


.propera-home__popular-slide > .propera-product-card {
    width: 100%;
    height: 100%;

    display: flex;
    flex-direction: column;
}


/* =========================================================
   FULL PRODUCT IMAGE
========================================================= */

.propera-home__popular
.propera-product-card__image img {

    object-fit: contain !important;

    background: #fff;
}


/* =========================================================
   CARD CONTENT
========================================================= */

.propera-home__popular
.propera-product-card__content {

    flex: 1;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

    .propera-home__popular-slide {
        flex: 0 0 calc((100% - 18px) / 2);
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .propera-home__popular-slide {
        flex: 0 0 100%;
    }

}




/* =========================================================
   POPULAR PRODUCTS
========================================================= */

.propera-popular-products {
    width: 100%;
    padding: 80px 0;
    background: #fff;
}

.propera-popular-products__container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}


/* =========================================================
   HEADER
========================================================= */

.propera-popular-products__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    margin-bottom: 32px;
}

.propera-popular-products__title {
    margin: 0 !important;
    padding: 0 !important;

    color: #111 !important;

    font-size: 34px !important;
    font-weight: 700 !important;
    line-height: 1.1 !important;
}

.propera-popular-products__description {
    margin: 10px 0 0 !important;
    padding: 0 !important;

    color: #777 !important;

    font-size: 15px !important;
    line-height: 1.4 !important;
}


/* =========================================================
   NAVIGATION
========================================================= */

.propera-popular-products__navigation {
    display: flex;
    gap: 10px;
}

.propera-popular-products__arrow {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 40px !important;
    height: 40px !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 1px solid #8B2C83 !important;
    border-radius: 50% !important;

    background: #fff !important;
    color: #8B2C83 !important;

    font-family: Arial, sans-serif !important;
    font-size: 18px !important;
    line-height: 1 !important;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease !important;
}

.propera-popular-products__arrow:hover {
    background: #8B2C83 !important;
    color: #fff !important;

    transform: translateY(-1px);
}


/* =========================================================
   SLIDER
========================================================= */

.propera-popular-products__slider {
    width: 100%;
    overflow: hidden;
}

.propera-popular-products__track {
    display: flex;

    gap: 16px;

    transition: transform 0.35s ease;
}

.propera-popular-products__item {
    flex: 0 0 calc((100% - 48px) / 4);

    min-width: 0;

    display: flex;
}

.propera-popular-products__item .propera-product-card {
    width: 100%;
}


/* =========================================================
   CATALOG LINK
========================================================= */

.propera-popular-products__footer {
    display: flex;
    justify-content: center;

    margin-top: 36px;
}

.propera-popular-products__catalog-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    color: #8B2C83 !important;

    font-size: 14px !important;
    font-weight: 600 !important;

    text-decoration: none !important;

    transition: opacity 0.2s ease;
}

.propera-popular-products__catalog-link:hover {
    opacity: 0.7;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

    .propera-popular-products__item {
        flex: 0 0 calc((100% - 16px) / 2);
    }

    .propera-popular-products__title {
        font-size: 30px !important;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .propera-popular-products {
        padding: 55px 0;
    }

    .propera-popular-products__container {
        width: calc(100% - 28px);
    }

    .propera-popular-products__header {
        align-items: center;
        margin-bottom: 24px;
    }

    .propera-popular-products__title {
        font-size: 25px !important;
    }

    .propera-popular-products__description {
        margin-top: 7px !important;
        font-size: 13px !important;
    }

    .propera-popular-products__navigation {
        gap: 6px;
    }

    .propera-popular-products__arrow {
        width: 34px !important;
        height: 34px !important;

        font-size: 15px !important;
    }

    .propera-popular-products__item {
        flex: 0 0 100%;
    }
}