html {
    scroll-behavior: smooth;
}


a{
    text-decoration: none;
}

:root{
    --main-red:crimson;
    --main-blue:rgb(0, 140, 255);
}

body{
    background-color: rgb(240, 243, 246);
    margin: 0;
    font-family: "Ubuntu", sans-serif;
}

#prenav{
    padding: 5px;
    background:  var(--main-red);
    font-size: 14px;
    text-align: center;
    color: white;
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}
nav{
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    padding: 10px 10%;
    position: fixed;
    top: 27px;
    left: 0;
    width: 80%;
    /* box-shadow: 2px 2px 10px lightgray; */
    border-bottom: 1px solid lightgray;
    z-index: 20;
}

nav img{
    width: 120px;
}

.flex{
    display: flex;
    justify-content: left;
    align-items: center;
}

#links{
    margin-left: 15px;
    margin-right: 15px;
}
#links a{
    color: rgb(84, 84, 84);
    transition: 0.3s;
    margin-left: 20px;
}
#ulinks a{
    color: rgb(84, 84, 84);
    transition: 0.3s;
}
#links a:hover, #ulinks a:hover{
    color: crimson;
    transition: 0.3s;
}

#ulinks{
    position: fixed;
    z-index: 20;

    top: 65px;
    left: 0;
    width: 100%;
    padding: 10px 0px;
    background-color: white;
    display: none;
}
#ulinks a{
    display: block;
    padding: 15px;
    border-bottom: 1px solid lightgray;
    box-sizing: border-box;
    font-size: 18px;
}


#banner{
    background-position: center;
    background-size: cover;
    height: 450px;
}

#banner div{
    max-width: 800px;
    margin: auto;
    padding: 120px 15px 15px;
    color: white;
}

.bars {
    font-size: 18px;
    display: none;
}
.bars:hover {
    text-shadow: 2px 2px 5px rgba(220, 20, 60, 0.612);
    cursor: pointer;
}

#banner a{
    padding: 10px;
    font-size: 20px;
    color: white;
    border: 1px solid white;
    border-radius: 50px;
    display: block;
    margin-top: 30px;
    transition: 0.2s;
    width: fit-content;
}
#banner a:hover{
    background-color: crimson;
    color: white;
    transition: 0.2s;
}

#search-bar-form{
    max-width: 800px;;
    background-color: aquamarine;
    border-radius: 50px;
    /* padding-right: ; */
    margin: -20px auto 50px;
    position: relative;
    border: 2px solid crimson;
}

#search-bar-form input{
    border: none;
    padding: 12px;
    padding-left: 50px;
    width: 100%;
    box-sizing: border-box;
    border-radius: 50px;
}
#cart {
    color: rgb(82, 82, 82);
}
#cart span{
    background-color: crimson;
    color: white;
    padding: 5px;
    border-radius: 3px;
}

#search-bar-form button{
    border: none;
    font-size: 22px;
    color: white;
    background-color: crimson;
    position: absolute;
    top: 2px;
    border-radius: 50%;
    padding: 5px 8px;
    left: 3px;
    transition: 0.3s;
}
#search-bar-form button:hover{
    background-color: rgb(199, 18, 54);
    cursor: pointer;
    transition: 0.3s;
}

.container{
    max-width: 1000px;
    padding: 10px;
    margin: 50px auto;
}

/* our categories */
.our-category{
    padding: 50px 10px;
    width: 45%;
 
    display: inline-block;
    margin: 10px 10px 10px 0px;
    border-radius: 10px;
    box-shadow: 3px 3px 10px rgb(231, 231, 231);
    background-position: center;
    background-size: cover;
    text-align: center;
}

.our-category h3{
    color: white;
}

.voirplus{
    background-color: rgb(41, 133, 246);
    color: white;
    box-shadow: 3px 3px 10px rgb(177, 177, 177);
    font-size: 20px;
    display: block;
    margin: 50px auto;
    width: fit-content;
    padding: 10px 15px;
    border-radius: 10px;
}
.ara .title{
    position: relative;
    text-align: right !important;
    /* width: 100%; */
    width: fit-content;
    margin: auto;
}
.ara .title div{
    position: absolute;
    right:0px ;
    /* box-sizing: border-box; */
}
.title{
    margin-top: 60px;
    font-size: 26px;
    width: fit-content;
    color: crimson;
    padding: 8px 10px;
    border-radius: 5px;
}
.first-div, .second-div{
    width: 50px;
    padding: 2px;
    border-radius: 10px;
    background-color: crimson;
    margin: 5px;
}
.second-div{
    width: 30px;
}

.news-item{
    width: 220px;
    display: inline-block;
    margin: 10px 10px 10px 0px;
    border: 1px solid lightgray;
    border-radius: 5px;
    background-color: white;
    position: relative;
    overflow: hidden;
}

.news-item .img-container{
    width: 100%;
    height: 220px;
    overflow: hidden;
}
.news-item img{
    transition: 0.3s;
    width: 220px;
}
.news-title{
    padding: 0px;
    margin: 10px 0px;
    color: gray;
}
.gold{
    color: rgb(255, 225, 0);
}
.news-price{
    background-color: rgb(30, 216, 132);
    color: white;
    padding: 5px;
    width: fit-content;
    border-radius: 5px;
    margin: 5px 0px;
}

.news-item .status {
    background-color: rgba(220, 20, 60, 0.584);
    font-size: 10px;
    color: white;
    position: absolute;
    top: 5px;
    left: 5px;
    width: fit-content;
    padding: 2px 5px;
    border-radius: 10px;
}

.news-item .acht{
    padding: 10px 12px;
    text-align: center;
    display: block;
    width: 100%;
    box-sizing: border-box;
    color: rgb(0, 140, 255);
    border: 1px solid rgb(0, 140, 255);
    margin: 10px 0px;
    border-radius: 10px;
    font-size: 14px;
    transition: 0.2s;
}
.news-item .acht:hover{
    color: white;
    background-color: rgb(0, 140, 255);
    transition: 0.2s;
}
.news-item img:hover{
    transform: scale(1.4);
    transition: 0.5s;
    cursor: pointer;
}


#wall{
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url("../imgs/wall.jpg");
    background-position: center;
    background-size: cover;
    height: 450px;
    background-attachment: fixed;

}

#wall div{
    padding: 30px;
    padding-top: 80px;
    max-width: 600px;
    
    margin: auto;
    color: white;
}
#wall div h1{
    color: crimson;
    text-shadow: 6px 6px 10px rgb(41, 41, 41);
}



footer{
    padding: 20px;
    background-color: rgb(240, 240, 240);
    display: flex;
    justify-content: space-evenly;
    align-items: flex-start;
    flex-wrap: wrap;
}

footer div{
    max-width: 300px;
}
footer img{
    width: 160px;
    margin-top:30px ;
}
footer a{
    color: rgb(89, 89, 89);
    display: block;
    margin: 10px 0px;
}


footer small{
    color: rgb(157, 157, 157);
}
footer div i{
    margin-right: 10px;
}



/* article page */
#semi-banner{
    height: 300px;
    background-image: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.5)), url("../imgs/city.jpg");
    background-position: center;
    background-size: cover;
    /* border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px; */
}
#semi-banner div{
    margin: auto;
    padding: 60px 30px 10px ;
    color: white;
}


#search-article{
    margin: -50px 20px 30px;
    padding: 5px;
}

#search-article select{
    padding: 10px;
    border: 1px solid lightgray;
    width: 48%;
    border-radius: 50px;
}

#search-article input {
    padding: 10px;
    border: 1px solid lightgray;
    width: 100%;
    border-radius: 50px;
    padding-left: 45px;
    box-sizing: border-box;
    margin-bottom:50px ;
}

#search-article button{
    position: absolute;
    left: 5px;
    top: -5px;
    color: white;
    background-color: crimson;
    border-radius: 50%;
    padding: 5px 8px;
    font-size: 16px;
    border: none;
}








.animation{
    padding: 100px 10px;
    display: flex;
    justify-content: center;
}
.products{
    margin-top: 50px;
}

.product-item {
    width: 200px;
    padding: 10px;
    border: 1px solid lightgray;
    background-color: white;
    border-radius: 15px;
    margin: 10px;
    display: inline-block;
    position: relative;
}

.container-img{
    width: 240px;
    /* height: 200px; */
    height: auto;
    overflow: hidden;
}

.item-cart select{
    margin: 10px;
}


.nv{
    position: absolute;
    top: 230px;
    right: 5%;
    background-color: rgba(255, 0, 136, 0.768);
    color: white;
    border-radius: 10px;
    font-size: 10px;
    padding: 2px 5px;
}

.product-item .container-img{
    width: 200px;
    height: 230px;
}
.product-item img{
    width: 200px;
    transition: 0.5s;
}

.product-item img:hover{
    transform: scale(1.5) ;
    transition: 0.5s;
}
.info-stock{
    padding: 10px;
    border: 1px solid rgb(46, 139, 245);
    color: rgb(39, 73, 125);
    background-color: rgb(184, 220, 246);
    border-radius: 10px;
    margin: 10px 0px;
    display: none;
}
.info-s{
    padding: 15px;
    border: 1px solid rgb(99, 170, 251);
    color: rgb(38, 101, 196);
    background-color: rgb(214, 233, 247);
    border-radius: 10px;
    margin: 10px 0px;
    display: none;
}
.info-s i{
    margin: 0px 15px;
}
.info-s{
    display: flex;
}
.info-s.ara{
    justify-content: right;
}
.product-item .info{
    padding: 10px;
}
.prom{
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(255, 166, 0, 0.764);
    color: white;
    border-radius: 10px;
    font-size: 10px;
    padding: 2px 5px;
}

.product-item h4{
    color: rgb(22, 124, 192);
    margin: 10px 0px;
    font-size: 13px;
}



.addToCart{
    border: 1px solid rgb(22, 124, 192);
    color: rgb(22, 124, 192);
    border-radius: 5px;
    display: block;
    text-align: center;
    padding: 8px 0px;
    width: 100%;
    transition: 0.3s;
    margin-top: 15px;
    background-color: transparent;
}
.addToCart:hover{
    background-color: rgb(22, 124, 192);
    color: white;
    transition: 0.3s;
    cursor: pointer;
}

.product-item small{
    text-decoration: line-through;
    color: gray;
    font-size: 12px;
}

.addToCart i, .removeFromCart i{
    margin-right: 10px;
}

#about section{
    display: flex;
    justify-content: space-between;
    /* align-items: flex-start; */
    flex-wrap: wrap;
}
#about section div{
    width: 30%;
    min-width: 260px;
    padding: 10px;
    border-radius: 5px;
    margin: 10px 5px 10px 0px;
    box-shadow: 3px 3px 10px lightgray;
    background-color: white;
}
.removeFromCart{
    border: 1px solid rgb(192, 62, 22);
    color: rgb(192, 62, 22);
    border-radius: 5px;
    display: block;
    text-align: center;
    padding: 8px 0px;
    width: 100%;
    transition: 0.3s;
    margin-top: 15px;
    background-color: transparent;
}

.removeFromCart:hover{
    background-color: rgb(192, 62, 22);
    color: white;
    transition: 0.3s;
    cursor: pointer;
}


.ara {
    text-align: right;
    font-family: 'Tajawal', sans-serif;
}
.lang-select{
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 100px;
    padding: 10px;
    border: 1px solid lightgray;
    border-radius: 5px;
    z-index: 25;
}
.search-err{
    background-color: lightcoral;
    color: rgb(238, 238, 238);
    padding: 5px;
    font-size: 14px;
    border-radius: 5px;
    position: absolute;
    top: -35px;
    left: 30px;
    display: none;
}

.price{
    font-size: 14px;
    color: rgb(244, 245, 245);
    font-weight: bold;
    background-color: rgb(25, 181, 124);
    border-radius: 5px;
    padding: 4px;
}

hr{
    border: 1px solid rgb(234, 234, 234);
}
.product-item .flex{
    justify-content: space-between;
}



.success{
    padding: 15px 0px;
    text-align: center;
    background-color: rgb(184, 240, 184);
    color: rgb(5, 49, 5);
    margin: 10px 0px;
    border: 1px solid rgb(5, 49, 5);
    border-radius: 5px;
}
.err{
    padding: 15px 0px;
    text-align: center;
    background-color: rgb(243, 204, 204);
    color: rgb(49, 5, 5);
    margin: 10px 0px;
    border: 1px solid rgb(49, 5, 5);
    border-radius: 5px;
}

.detailzone{
    margin: 120px auto 20px;
    padding: 10px;
    background-color: white;
    border-radius: 10px;
}

.pprix{
    background-color: rgb(229, 252, 229);
    color: green;
    padding: 10px;
    border-radius: 5px;
    font-size: 22px;
}


#offre{
    padding: 15px;
    border-radius: 10px;
    color: white;
    border: rgb(0, 102, 255);
    background-color: rgb(96, 200, 241);
    color: rgb(22, 22, 51);
}
#offre h3{
    font-size: 30px;
    font-style: italic;
    padding: 0;
    margin: 0;
    /* margin-top: -40px; */
}
.shadow{
    box-shadow: 1px 1px 10px lightgray;
    border-bottom: none;
}


.enstock{
    color: rgb(17, 97, 17);
    padding: 10px;
    font-size: 12px;
    text-align: right;
    font-style: italic;
}
.outstock{
    font-style: italic;
    padding: 10px;
    font-size: 12px;
    text-align: right;
    color: rgb(170, 170, 170);
}

.disabled{
    opacity: 0.3 !important;
}




#sugges{
    justify-content: left;
}
.sugges{
    display: inline-block;
    width: 120px;
    margin: 10px;
    text-align: center;
    background-color: white;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 3px 3px 10px rgb(233, 233, 233);
}
.sugges .container-img{
    width: 120px !important;
}
.sugges a{
    padding: 5px;
    background-color: orange;
    color: white;
    border-radius: 10px;
    display: block;
    text-align: center;
    margin: 8px 0px;
}
.container-img {
    width: 240px;
    /* height: 200px; */
    height: auto;
    overflow: hidden;
}
.sugges h2 {
    font-size: 14px;
}

.sugges img{
    /* width: 240px; */
    width: 100%;
    object-fit: cover;
}
.popprice{
    font-weight: bold;
    margin: 10px 0px;
}
#valider-commande-form{
    /* text-align: center; */
    text-align: left !important;
    margin: 20px 0px;
    background-color: white;
    border-radius: 20px;
    padding: 10px;
    border: 3px solid orange;
    /* width: 100%; */
}

#valider-commande-form label{
    font-style: italic;
    color: gray;
}
#valider-commande-form button{
    padding: 10px 0px;
    border: none;
    background-color: orange;
    color: white;
    font-size: 20px;
    border-radius: 10px;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
    margin-top: 20px;
    
}
#valider-commande-form button:hover{
    cursor: pointer;
    transition: 0.3s;
    background-color: rgb(213, 127, 28);
}



.champ{
    margin: 10px 0px;
}


.show-img{
    display: flex;
    justify-content: left;
    align-items: flex-start;
    flex-wrap: wrap;
    margin: 50px 0px;
}

.show-img main{
    max-width: 400px;
    padding: 10px;
}

.show-img main img{
    width: 100%;
    display: block;

}

.show-img .others{
    padding: 10px;
    max-width: 400px;
    /* background-color: aqua; */
}
.show-img .others img{
    width: 120px;
    margin: 5px;
    /* border: 1px solid lightgray; */
    /* height: 120px; */
    display: inline-block;
}


._types{
    width: 100px;
    padding: 5px;
    border: 1px solid lightgray;
    border-radius: 5px;
}
.current-img{
    border: 5px solid lightblue;
    border-radius: 5px;
}


#detail-form{
    background-color: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 2px 2px 10px lightgray;
    margin: 50px 0px ;

}

.champs{
    margin: 20px 0px;
}

#detail-form textarea{
    height: 200px ;
}


.detailform .flex input, .detailform .flex select {
    display: block !important;
    width: 200px;
    border: 1px solid lightgray;
    border-radius: 5px;
    margin: 5px;
    padding: 10px;
    
    
}


#info-user-form input{
    border: 1px solid lightgray;
    border-radius: 5px;
    padding: 15px;
    /* width: 94%; */
    width: 100%;
    box-sizing: border-box;
    /* width: ; */
    margin: 10px 0px;
    /* display: block; */
    

}

#info-user-form .ara{
    text-align: right;
    display: block;
}
#info-user-form button .ara {
    text-align: center ;
}




.item-cart{
    padding: 15px;
    /* border: 1px solid lightgray; */
    box-shadow: 3px 3px 10px rgb(232, 232, 232);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin: 10px 10px;
    position: relative;
    border-radius: 20px;
    background-color: white;
}
.item-cart  *{
    margin: 0px 10px;

}
.item-cart .flex{
    flex-wrap: wrap;
}
.item-cart input{
    width: 50px;
    padding: 10px;
    border: 1px solid lightgray;
    border-radius: 5px;
}
.item-cart img{
    width: 80px;
}
.item-cart .fa-trash{
    background-color: brown;
    color: white;
    font-size: 18px;
    padding: 5px 8px;
    border-radius: 5px;
    cursor: pointer;
    
}

#total{
    color: rgb(247, 247, 247);
    background: linear-gradient(to right, rgb(151, 24, 49), crimson);
    text-align: right;
    /* padding-top: 10px; */
    /* border-top: 1px solid green; */
    /* border: 1px solid rgb(1,20,46); */
    margin: 10px;
    font-style: italic;
    padding: 15px;
    font-weight: bold;
    font-size: 35px;
    border-radius: 10px;
}
#total span{
    margin-right: 10px;
}
.item-cart select{
    width: 100px;
    border: 1px solid lightgray;
    border-radius: 5px;
    padding: 8px;
}

.item-cart select{
    margin: 10px;
}
#best-seller{
    padding: 30px 20px 80px ;
    background: linear-gradient(to bottom, rgb(255, 83, 118), rgb(146, 8, 35));
}

#best-seller .title{
    color: white;
    text-align: center;
    margin: auto;
}
#best-seller .title div{
    background-color:white ;
}

#best-seller section{
    text-align: center;
}

.best-s{
    display: inline-block;
    width: 200px;
    box-shadow: 2px 2px 10px rgb(95, 4, 4);
    padding: 10px;
    border-radius: 10px;
    background-color: white;
    margin: 10px;
    text-align: center;
}
.best-s img{
    width: 100%;
}
.best-s p{
    color: white;
    background: linear-gradient(to right, rgb(254, 92, 124), rgb(146, 2, 31));
    box-shadow: 2px 2px 4px lightgray;
    padding: 8px;
    border-radius: 5px;
}