main section{
    margin-bottom: 120px;
}

.qualities, .shop-navigation, .shop-product-rating, .deal-title,
.deal-inner, .deal-countdown, .newsletter-inner form, .blog-data-subtitle, .blogs-inner,
.review-rating, .inner-reviews{
    display: flex;
    flex-direction: row;
}

.qualities-element, .shop-product, .shop-product-data, .buttons-on-hover, .countdown-element,
.deal-data, .newsletter-inner, .review, .review p {
    display: flex;
    flex-direction: column;
}


.slideshow {
    position: relative;
}

.slide {
    height: 633px;
    background-image: url("../img/fonds/soap-slider-1.jpg");
    background-color: transparent;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 50% 50%;
    position: relative;
}

.slide-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.slide-inner h2{
    z-index: 10;
    text-transform: capitalize;
    cursor: pointer;
    text-align: center;
    line-height: 40px;
    letter-spacing: 5px;
    font: 500 40px "Dancing Script";
    padding: 14px 0px 0px;
    color: rgb(255, 255, 255);
    width: 576px;
    margin: 0 auto;
}

.slide-inner h1 {
    font-family: Skranji;
    cursor: pointer;
    visibility: visible;
    text-align: center;
    line-height: 87px;
    letter-spacing: 0px;
    font-weight: 400;
    font-size: 87px;    
    color: #fff;
    width: max-content;
    margin: 25px auto;
}

.slide-inner h4 {
    z-index: 9;
    cursor: pointer;
    text-align: center;
    line-height: 32px;
    letter-spacing: 0px;
    font: 400 32px "Ubuntu";
    padding: 0px 0px 24px;
    color: rgb(255, 255, 255);
    white-space: nowrap;
}

.slide-inner a {
    z-index: 11;
    background-color: rgba(57, 108, 242, 0);
    text-transform: capitalize;
    box-sizing: border-box;
    text-align: center;
    line-height: 50px;
    font: 400 16px "Josefin Sans";
    border: 2px solid #fff;
    padding: 20px 30px;
    color: rgb(255, 255, 255);
    white-space: nowrap;
    text-align: center;
    display: block;
    margin: auto;
    width: max-content;
}


.qualities, .shop-products, .deal-inner, .blogs {
    width: 94%;
    padding: 0 15px;
    margin-left: auto;
    margin-right: auto;
    justify-content: space-between;
}

.qualities-element{
    align-items: center;
    padding: 0 15px;
    width: 33%;
}

.qualities-element i { 
    color: #AF9666;
    font-size: 60px;
    margin-bottom: 25px;
}

.qualities-element-title { 
    font-size: 28px;
    line-height: 30px;
    font-weight: bold;
    margin: 0 !important;
    margin-bottom: 10px !important;
    color: #222222;
    font-family: "Dancing Script";
    font-style: normal;
}

.qualities-element-desc{ 
    font-size: 16px;
    line-height: 26px;
    padding: 0 20px;
    max-width: 360px;
    margin: 0 auto;
    font-weight: normal;
    text-align: center;
}



.shop {
    margin-bottom: 50px;
}
.shop-navigation{
    width: max-content;
    margin: auto;
    margin-top: 20px;
    margin-bottom: 40px;
}


.shop-navigation-element{ 
    cursor: pointer;
    color: #333;
    font-size: 16px;
    line-height: 36px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0 0 8px !important;
    margin: 0 25px;
}

.shop-navigation-element-current, .shop-navigation-element:hover{ 
    border-bottom: 2px solid #AF9666;
}


.shop-products{
    display: flex;
    flex-wrap: wrap;
}

.shop-product {
    align-items: center;
    justify-content: center;
    padding-right: 30px;
    width: 25%;
}

.shop-product-name{
    text-transform: capitalize;
    color: #333;
    font-size: 15px;
    width: 100%;
    float: left;
    line-height: 20px;
    font-weight: 500;
    font-family: Roboto Slab, sans-serif;
    text-align: center;
}

.shop-product-name:hover{
    color: #AF9666;
    transition: all 0.4s ease-in-out;
}

.shop-product-price{
    font-size: 16px;
    color: #C61932;
    line-height: 24px;
    font-weight: bold;
    text-align: center;
}

.shop-product-rating{ 
    color: #111;
}

.shop-product-data { 
    padding: 15px 0;
    align-items: center;
}

.shop-product-display { 
    position: relative;
    overflow: hidden;
}

.buttons-on-hover{ 
    position: absolute;
    bottom: 20px;
    right: -50px;
    transition: all 0.4s ease-in-out;
}

.buttons-on-hover i { 
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    background-color: #333;
    color: #fff;
    margin-bottom: 5px;
    height: 50px;
    width: 48px;
}

.shop-product-display:hover .buttons-on-hover { 
    right: 20px;
    transition: all 0.4 ease-in-out;
}

.buttons-on-hover i:hover {
    background-color: #AF9666;
}

.etiquette {
    background-color: #C61932;
    height: 48px;
    width: 48px;
    color: #fff;
    position: absolute;
    top: 20px;
    left: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}


.deal {
    margin-bottom: 120px;
    background-color: #f4ede7 ;
}

.deal-inner{
    padding: 100px 0;
    justify-content: center;
}

.deal-inner-display {
    width:50%;
}

.deal-image {
    display: block;
    margin-left: 0;
}

.deal-data{
    width: 50%;
}

.deal-title {
    margin: 10px 0 20px;
    display: flex;
    align-items: center;
    width: 100%;
    font-size: 42px;
    line-height: 1;
    letter-spacing: 2px;
    text-transform: capitalize;
    font-family: Roboto Slab, sans-serif;
    color: #333;
}

.deal-title h3{
    margin: 0;
}

.deal-desc {
    margin-bottom: 35px;
    font-weight: 300;
    max-width: 450px;
}

.deal-countdown{
    margin-bottom: 30px;
}

.shop-now {
    background: #333;
    border: none;
    color: #fff;
    margin-top: 10px;
    line-height: 50px;
    height: 50px;
    padding: 0 45px;
    border-radius: 25px;
    letter-spacing: 1.5px;
    display: inline-block;
    font-size: 14px;
    font-weight: bold;
    text-shadow: none;
    text-transform: uppercase;
    transition: all 0.3s ease;
    text-align: center;
    overflow: hidden;
    width: max-content;
}

.countdown-element{
    width: 60px;
    height: 60px;
    margin: 0 10px;
    align-items: center;
    justify-content: center;
}

.countdown-unite {
    color: #000;
    font-size: 12px;
    padding: 0 18px;
    margin-top: 10px;
    text-transform: uppercase;
}

.countdown-value {
    background: #f4ede7;
    color: #000;
    display: block;
    font-size: 35px;
}

.newsletter{
    background: #f4ede7;
    padding: 100px 0;
}

.newsletter-desc {
    text-align: center;
    font-size: 14px;
    color: #868686;
    margin-bottom: 25px;
}

.email-input {
    display: block;
    width: 100%;
    float: left;
    margin: 0;
    padding: 0 !important;
    font-size: 13px;
    color: #868686;
    background: none !important;
    border: none !important;
    height: 40px !important;
    border-radius: 0 !important;
    box-shadow: none;
    font-weight: normal;
    letter-spacing: 0.5px;
    font-family: Roboto Slab, sans-serif;
    margin: auto;
}

.email-input:active{ 
    outline: none;
    border: none;
}

.newsletter-inner form {
    width: 600px;
    margin:auto;
    border-bottom: 2px solid #000;
    justify-content: space-between;
}

.newsletter-inner button {
    height: 40px;
    line-height: 40px;
    padding: 0;
    display: inline-block;
    box-shadow: none;
    color: #000;
    font-weight: 500;
    text-transform: uppercase;
    margin: 0;
    font-size: 12px;
    letter-spacing: 2px;
    min-width: max-content;
    font-family: Roboto Slab, sans-serif;  
    background: none;  
}


.blog {
    width: 33%;
    padding-right: 30px;
}

.black {
    color: #000;
}

.author {
    margin-right: 15px;
    padding-right: 15px;
    border-right: 1px solid #e5e5e5;
}

.blog-data {
    padding-top: 30px;
}

.blog-data-date{
    color: #333;
    letter-spacing: 3px;
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.blog-data-title { 
    color: #333;
    margin: 0 0 5px;
    font-size: 24px;
    font-weight: 500;
    line-height: 1.4;
    position: relative;
    display: inline-block;
    width: 100%;
    text-transform: capitalize;
    font-family: Roboto Slab, sans-serif;
}

.reviews {
    position: relative;
    padding: 150px 0;
    background-image: url("../img/fonds/soap-bg-testimonials.jpg");
}

.slide-top{
    position: absolute;
    top: 0;
    left: 0;
    opacity: 1;
}

.review {
    width: 50%;
}

.review-rating {
    color: white;
    align-items: center;
    justify-content: center;
}

.review h4 {
    font-size: 28px;
    font-weight: 400;
    line-height: 40px;
    position: relative;
    padding: 0;
    color: #fff;
    margin-bottom: 40px !important;
    margin-top: 10px !important;
    text-align: center;
    display: flex;
    flex-direction: column;
    max-width: 450px;
    margin: 0 auto;
    font-family: "Dancing Script";
}

.profil-pic{
    height: 100px; 
    width: 100px;
    border-radius: 50%;
    display: block;
    margin: auto;
}

.review p {
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
}

.review-name{
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    text-transform: capitalize;
    line-height: 36px;
    letter-spacing: 3px;
    font-family: Dancing Script, sans-serif;
}

.instagram-pics {
    display: flex;
    flex-wrap: wrap;
    padding: 0 15px;
}

.instagram-pics img {
    padding: 15px;
    width: 20%;
}


.shop-products{
    justify-content: flex-start;
}

.shop-product {
    margin: 0 auto;
    padding: 0 15px;
}

@media only screen and (max-width: 1024px),
    screen and (max-device-width: 1024px){

        .slide {
            height: 418px;
        }

        .slide-inner h1 { 
            font-size: 57px;
            margin: 0; 
            padding-bottom: 16px;
        }
        
        .slide-inner h2 { 
            font-size: 26px;
            margin: 0; 
            padding-bottom: 16px;
        }
        
        .slide-inner h4 {
            margin: 0; 
            padding-bottom: 16px;
            font-size: 21px;
         }

        .qualities, .deal-inner {
            flex-direction: column;
        }

        .qualities-element{
            width: 100%;
        }
        
        .deal-data, .deal-data {
            align-items: center;
            width: 100%;
            text-align: center;
        }
        
        .deal-title{
            justify-content: center;
        }

        .deal-image, .deal-inner-display{
            margin: 0 auto 30px auto;
            width: auto;
            display: block;
        }


        .qualities{
            align-items: center;
        }
        
        .qualities-element{
            padding: 15px 0;
        }

        .qualities-element-title {
            white-space: nowrap;
        }

        .blogs-inner {
            overflow: hidden;
        }

        .blog {
            min-width: 50.01%;
        }

        .shop-product {
            min-width: 33%;
        }

        .shop-product:nth-child(n+7){
            display: none;
        }

    }

@media only screen 
    and (max-device-width: 768px), 
    only screen and (max-device-width: 768px), 
    only screen and (max-width: 768px){


        main {
            max-width: 100vw;
        }

        article {
            max-width: 100%;
        }

        section:not(.slideshow) {
            padding: 0 15px;
        }

        .slide {
            height: 310px;
        }

        .slide-inner h1 { 
            font-size: 37px;
            margin: 0 auto; 
            padding-bottom: 16px;
            width: max-content;
        }
        
        .slide-inner h2 { 
            width: max-content;
            font-size: 20px;
            margin: 0 auto; 
            padding-bottom: 16px;
        }
        
        .slide-inner h4 {
            width: max-content;
            margin: 0 auto; 
            padding-bottom: 16px;
            font-size: 15px;
        }

        .slide-inner a {
            font-size: 12px;
            padding: 10px 15px;
        }

        .shop-navigation{
            padding: 0; 
            max-width: 100%;
            flex-wrap: wrap;
            text-align: center;
            justify-content: center;
        }

        .deal-title{
            font-size: 30px;
            line-height: 40px;
            font-weight: 400;
        }

        .deal-title img  {
            display: none;
        }

        .newsletter-inner{
            padding: 100px 0;
        }

        .email-input, .newsletter-inner form{
            max-width: 100%;
        }

        .blog, .review {
            min-width: 100%;
        }

        .reviews{
            max-width: 100%;
            overflow: hidden;
        }

        .inner-reviews{
            padding: 150px 0;
            max-width: 100%;
            overflow: hidden;
        }

        .review {
            overflow: hidden;
        }

        .review h4{
            max-width: 100%;
        }

        .instagram-pics img {
            min-width: 50%;
        }

        .buttons-on-hover i { 
            height: 40px;
            width: 40px;   
            font-size: 20px;
        }

        
        .shop-product:nth-child(n+5){
            display: none;
        }
    
        .shop-product {
            min-width: 50%;
            margin: 0 auto;
            padding: 0 15px;
        }

        .trending{
            padding: 0 !important;
        }
    }