/**
 * Step Fields Above Products Styles
 *
 * Uses Swiper slider library
 *
 * @package Matat_Pandora
 */

.steps-wrap .step-each {
    margin-top: 5%;
    text-align: center;
}

.steps-wrap .step-each:not(:first-child) {
    margin-top: 5%;
}

.steps-wrap .step-each p:last-child {
    margin-bottom: 0;
}

.steps-wrap .step-each .sfbp-small-title {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    margin: 0;
    margin-bottom: 10px;
    overflow-wrap: break-word;
    text-align: center;
    word-break: normal;
    color: var(--wp--preset--color--primary, #27251f);
    text-transform: uppercase;
}

.steps-wrap .step-each .sfbp-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    margin: 0;
    overflow-wrap: break-word;
    word-break: normal;
    color: var(--wp--preset--color--primary, #27251f);
    text-transform: uppercase;
}

.steps-wrap .step-each .sfbp-desc {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    margin: 10px 0 0;
    overflow-wrap: break-word;
    word-break: normal;
}

.steps-wrap .step-each .sfbp-texts {
    max-width: 587px;
    margin: 0 auto;
}

.steps-wrap {
    width: 100%;
    background: #fff;
    padding: 0 0 40px;
}

.steps-wrap .step-each .sfbp-carousel-wrap {
    margin: 1% auto 0;
    max-width: 1410px;
    position: relative;
}

.steps-wrap .step-each .sfbp-carousel-wrap .sfbp-carousel {
    max-width: 100%;
    padding-inline: 70px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

.steps-wrap .step-each .sfbp-carousel-wrap .sfbp-carousel:not(.swiper-initialized) {
    display: flex;
    gap: 30px;
}

.steps-wrap .step-each .sfbp-carousel-wrap .sfbp-carousel::before,
.steps-wrap .step-each .sfbp-carousel-wrap .sfbp-carousel::after {
    content: "";
    background: #fff;
    width: 70px;
    height: 100%;
    z-index: 9;
    position: absolute;
    top: 0;
}

.steps-wrap .step-each .sfbp-carousel-wrap .sfbp-carousel::before {
    right: 0;
}

.steps-wrap .step-each .sfbp-carousel-wrap .sfbp-carousel::after {
    left: 0;
}

/* Swiper specific styles */
.steps-wrap .sfbp-carousel .swiper-wrapper {
    display: flex;
}

.steps-wrap .sfbp-carousel .swiper-slide {
    height: auto;
}

.steps-wrap .step-each .sfbp-carousel-wrap .product-wrapper {
    border: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    height: auto;
    box-sizing: border-box;
}

.archive .site-main .step-each .product-wrapper .product-info {
    margin-top: -20px;
    padding-top: 0;
    padding-bottom: 0;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.steps-wrap .step-each .sfbp-carousel-wrap .product-wrapper .thumb-wrapper {
    padding: 0;
    background: #f7f7f7;
}

.steps-wrap .step-each .sfbp-carousel-wrap .thumb-wrapper a {
    height: 100%;
    display: block;
}

.steps-wrap .step-each .sfbp-carousel-wrap .product-wrapper .thumb-wrapper img:not(.category-label) {
    width: 100%;
}

.sfbp-carousel-wrap .matat_media_wrapper {
    height: 0;
    overflow: hidden;
    position: relative;
    padding-top: 107.18%;
}

.sfbp-carousel-wrap .matat_media_wrapper img:not(.category-label) {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    object-fit: cover;
}

.steps-wrap .step-each .sfbp-carousel-wrap .product-wrapper .title {
    padding-top: 40px;
    min-height: auto;
    margin-bottom: 0.625rem;
    flex: initial;
    font-size: 14px;
    font-weight: 400 !important;
    text-transform: none;
}

.steps-wrap .step-each .sfbp-carousel-wrap .product-wrapper .title a {
    color: inherit;
    text-decoration: none;
}

.archive .site-main .step-each .product-info .btn-holder {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    flex: 1;
}

.archive .site-main .step-each .product-info .btn-holder a,
.steps-wrap .step-each .product-info .btn-holder a {
    background: var(--wp--preset--color--primary, #27251f);
    position: relative;
    z-index: 1;
    border: none;
    border-radius: 0;
    color: #fff;
    min-width: 135px;
    min-height: 40px;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 15px;
    padding: 5px 15px;
    text-decoration: none;
}

.archive .site-main .step-each .product-info .btn-holder a:hover,
.steps-wrap .step-each .product-info .btn-holder a:hover {
    background: var(--wp--preset--color--primary, #27251f);
}

.archive .site-main .step-each .product-info .btn-holder a::after,
.steps-wrap .step-each .product-info .btn-holder a::after {
    content: "";
    position: absolute;
    top: 0;
    inset-inline-start: 0px;
    z-index: -1;
    height: 0px;
    width: 100%;
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 0.3s;
    transition-timing-function: cubic-bezier(0.3, 0, 0.7, 1);
    background-color: #ff93a0;
}

.archive .site-main .step-each .product-info .btn-holder a:hover::after,
.steps-wrap .step-each .product-info .btn-holder a:hover::after {
    top: auto;
    bottom: 0;
    height: 100%;
}

/* Swiper Navigation */
.steps-wrap .sfbp-carousel .swiper-button-prev,
.steps-wrap .sfbp-carousel .swiper-button-next {
    position: absolute;
    top: 35%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 100%;
    background: #fff;
    border: 2px solid #e7e7e7;
    z-index: 10;
    cursor: pointer;
}

.steps-wrap .sfbp-carousel .swiper-button-prev::after,
.steps-wrap .sfbp-carousel .swiper-button-next::after {
    font-size: 14px;
    font-weight: bold;
    color: var(--wp--preset--color--primary, #27251f);
}

.steps-wrap .sfbp-carousel .swiper-button-next {
    right: auto;
    left: 0;
}

.steps-wrap .sfbp-carousel .swiper-button-prev {
    right: 0;
    left: auto;
}

.steps-wrap .sfbp-carousel .swiper-button-disabled {
    opacity: 0.35;
    cursor: auto;
}

/* Swiper Pagination */
.steps-wrap .sfbp-carousel .swiper-pagination {
    position: static;
    margin: 25px 0 0;
}

.steps-wrap .sfbp-carousel .swiper-pagination-bullet {
    width: 6px;
    height: 6px;
    background: #b7b8b9;
    opacity: 1;
}

.steps-wrap .sfbp-carousel .swiper-pagination-bullet-active {
    background: #000;
}

/* Progress bar */
.progress-bar {
    margin: 20px auto 0;
    background: #d6d6d6;
    height: 5px;
    border-radius: 0;
    max-width: 83.3333333333%;
    width: 100%;
    float: none;
    position: relative;
}

.progress-bar .each-bar {
    position: absolute;
    top: 0;
    left: 0;
    width: 30px;
    background: #000;
    height: 100%;
    transition: transform ease 0.3s;
}

.rtl .progress-bar .each-bar {
    left: auto;
    right: 0;
}

@media (min-width: 641px) {
    .progress-bar {
        display: none;
    }
}

@media (min-width: 992px) {

    .steps-wrap .step-each .sfbp-carousel-wrap .sfbp-carousel {
        padding-inline: 100px;
    }

    .steps-wrap .step-each .sfbp-carousel-wrap .sfbp-carousel::before,
    .steps-wrap .step-each .sfbp-carousel-wrap .sfbp-carousel::after {
        width: 100px;
    }

    .steps-wrap .step-each .sfbp-carousel-wrap .sfbp-carousel:not(.swiper-initialized) .product-wrapper {
        flex-basis: calc(33.33% - 15px);
        max-width: calc(33.33% - 15px);
    }

    .steps-wrap .step-each .sfbp-carousel-wrap .sfbp-carousel:not(.swiper-initialized) .product-wrapper:nth-child(3)~.product-wrapper {
        display: none;
    }

    .steps-wrap .sfbp-carousel .swiper-button-prev,
    .steps-wrap .sfbp-carousel .swiper-button-next {
        width: 60px;
        height: 60px;
    }

    .steps-wrap .sfbp-carousel .swiper-button-prev::after,
    .steps-wrap .sfbp-carousel .swiper-button-next::after {
        font-size: 18px;
    }
}

@media (max-width: 991px) {
    .steps-wrap .step-each .sfbp-carousel-wrap .sfbp-carousel:not(.swiper-initialized) .product-wrapper {
        flex-basis: calc(50% - 15px);
        max-width: calc(50% - 15px);
    }

    .steps-wrap .step-each .sfbp-carousel-wrap .sfbp-carousel:not(.swiper-initialized) .product-wrapper:nth-child(2)~.product-wrapper {
        display: none;
    }
}

@media (max-width: 767px) {
    .steps-wrap .step-each .sfbp-title {
        font-size: 19px;
    }
}

@media (max-width: 640px) {
    .steps-wrap {
        padding-top: 40px;
    }

    .steps-wrap .step-each {
        margin-top: 0;
    }

    .steps-wrap .step-each .sfbp-carousel-wrap {
        margin-top: 15%;
    }

    .steps-wrap .step-each .sfbp-carousel-wrap .sfbp-carousel {
        padding-inline: 0;
    }

    .steps-wrap .step-each .sfbp-carousel-wrap .sfbp-carousel::before,
    .steps-wrap .step-each .sfbp-carousel-wrap .sfbp-carousel::after {
        display: none;
    }

    .steps-wrap .step-each .sfbp-carousel-wrap .sfbp-carousel:not(.swiper-initialized) .product-wrapper {
        flex-basis: 100%;
        max-width: 100%;
    }

    .steps-wrap .step-each .sfbp-carousel-wrap .sfbp-carousel:not(.swiper-initialized) .product-wrapper:first-child~.product-wrapper {
        display: none;
    }

    .steps-wrap .sfbp-carousel .swiper-pagination {
        margin-top: 10px;
        display: none;
    }

    .steps-wrap .step-each:not(:first-child) {
        margin-top: 50px;
    }

    .steps-wrap .step-each .sfbp-texts {
        padding-left: 20px;
        padding-right: 20px;
    }

    .steps-wrap .step-each .sfbp-carousel-wrap .product-wrapper .thumb-wrapper {
        flex: initial;
    }

    .steps-wrap .step-each .sfbp-carousel-wrap .thumb-wrapper a {
        height: auto;
    }

    .steps-wrap .sfbp-carousel .swiper-button-prev,
    .steps-wrap .sfbp-carousel .swiper-button-next {
        display: none;
    }
}