@import 'reset.css';
@import './fonts.css';
@import './components/cta.css';
@import './global.css';

.products {
    padding: 90px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.products .container {
    width: 100%;
    max-width: 1200px;
    padding: 0 16px;
}

.products__title {
    text-align: center;
}

.products__subtitle {
    font-family: "Epilogue", sans-serif;
    font-size: 48px;
    line-height: 100%;
    text-align: center;
    color: var(--color-primary);
}

.products__slider {
    display: flex;
    align-items: center;
    gap: 30px;
    margin: 40px auto 32px !important;
    width: calc(100% - 32px) !important;
    max-width: 1460px;
}

.products__slider.slider--no-arrows {
    padding-left: 80px;
    padding-right: 80px;
    box-sizing: border-box;
}

.products__swiper {
    width: 100%;
    overflow: hidden;
    flex: 1;
    min-width: 0;
}

.swiper--no-arrows {
    margin-left: 0;
    margin-right: 0;
}

.products__swiper .swiper-slide {
    box-sizing: border-box;
    height: auto;
}



.products__swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.collection {
    padding: 56px 0;
    text-align: center;
}

.collection__title {
    font-family: "Epilogue", sans-serif;
    font-weight: 700;
    font-size: 48px;
    color: #2d532d;
    margin-bottom: 8px;
}

.collection__text {
    font-family: "Poppins", sans-serif;
    max-width: 753px;
    margin: 0 auto 28px;
    color: var(--color-text-dark);
    font-size: 20px;
}

.collection__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 65px;
    gap: 24px;
    margin-top: 24px;
}

.collection__card {
    flex: 1 1 260px;
    max-width: 420px;
    overflow: hidden;
    background: #ffffff;
    padding: 14px;
}

.collection__card img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.products-page-cta {
    padding: 70px 16px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    justify-content: center;
}

.products-page-cta__content {
    width: 60%;
    padding: 24px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    text-align: center;

}

.products-page-cta__content h3 {
    margin: 0 0 24px;
    font-family: "Epilogue", sans-serif;
    font-weight: 700;
    font-size: 32px;
    color: #2d532d;
}

.products-page-cta__content p {
    margin: 0 0 42px;
    font-size: 20px;
    color: #171200;
}


@media (max-width: 600px) {


    /* .products__swiper .swiper-slide {
        margin-right: 0 !important;
    } */
}

@media (max-width: 800px) {
    .logo {
        width: 100%;
    }
    .collection {
        padding: 30px 0;
    }

    .collection__title {
        font-size: 32px;
        line-height: 40px;
        letter-spacing: 1px;
    }

    .collection__text {
        font-size: 14px;
        line-height: 28px;
        font-weight: 400;
        letter-spacing: 0;
        padding: 0 16px;
    }

    .collection__grid {
        padding: 0 16px;
        align-items: center;
    }
    .collection__card {
        width: 100%;
        max-width: 520px;
    }
    .collection__card img {
        object-fit: contain;
    }
    /* .products__swiper .swiper-slide img {
        object-fit: contain;
    } */
    .products__subtitle {
        font-size: 32px;
    }

    /* .products__slider.slider--no-arrows {
        padding-left: 0;
        padding-right: 0;
    } */
    .products__slider.slider--no-arrows {
        padding-left: 70px !important;
        padding-right: 70px !important; 
        box-sizing: border-box;
    }
}

@media (max-width: 1024px) {
    .products__slider.slider--no-arrows .products__swiper .swiper-slide:last-child {
        margin-right: 0 !important;
    }
}

@media (max-width: 1200px) {
    .products-page-cta {
        justify-content: center;
        align-items: center;
        flex-direction: column;

        .products-page-cta__content {
            width: 100%;
        }
    }
    .page--products {
        section {
            flex-direction: column;
        }

    }
}

@media (min-width: 1420px) and (max-width: 1460px){
    .products__swiper .swiper-slide,
    .swiper--no-arrows .swiper-slide {
        width: 242px !important;
        height: 404px !important;
        margin-right: 78px !important;
    }

    .products .container {
        max-width: 100%;
    }

}



@media (min-width: 1460px) {
    
    .products .container {
        max-width: 1460px;
    }
}