*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    font-family: sans-serif;
    width: 100%;
}

.container{
    width: 80%;
    margin: auto;
}

a{
    text-decoration: none;
}

.lg{
    padding: 80px  0;
}

/*headr*/

header{
    padding: 30px 0;
}

header .header-content{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-content ul li{   
    display: inline-block;
}

.list-unstyled  {
     list-style: none;
}

header img{
    width: 170px;
}

.header-content ul li a{
    color: #333;
    padding: 10px ;
    font-weight: bold;
    display: inline-block;
    position: relative;
}

.header-content ul li .last::before{
    content: "";
    position: absolute;
    border-width: 0 2px;
    border-color: brown;
    border-style: solid;
    width: 97%;
    height: 100%;
    top: 0px;
    left: 0px;
    transition: transform 0.2s;
    transform: scaleY(0)
}

.header-content ul li .last:hover:before{
    transform: scaleY(1);
}

.header-content ul li .last::after{
    content: "";
    position: absolute;
    border-width: 2px 0px;
    border-color: brown;
    border-style: solid;
    width: 100%;
    height: 90%;
    top: 0;
    left: 0;
    transition: transform 0.2s;
    transform: scaleX(0);
    transform-origin: center;
    transition-delay: 0.3s;
}

 .header-content ul li .last:hover:after{
    transform: scaleX(1);
}

.header-content .login ul li {
    padding: 10px;
    font-weight: bold;
} 

.icon {
    position: relative
}

.icon::after{
    content: "0";
    position: absolute;
    background-color: brown;
    font-size: 13px;
    color: #fff;
    bottom: -10px;
    right: -8px;
    border-radius: 50%;
    padding: 1.5px;
}

section.slider img{
    width: 100%;
}

.drop-down{
    position: relative;
}

.drop-down-menu{
    position: absolute;
    width: auto;
    background-color: #fff;
    border: 2px solid brown;
    padding: 5px;
    margin: 30px 0;
    transform: scale(0);
    transition: transform 0.5s;
}

.drop-down-menu ul{
    display: table-cell;
}

.drop-down-menu ul li a{
    font-weight: 500;
    margin: 5px 10px;
}

.drop-down-menu ul li:first-child a{
    border-bottom:1px dotted brown;
}

.drop-down:hover .drop-down-menu{
    transform: scale(1);
}

.mobile ,
#close{
    display: none;
}


/*category*/


.title{
    text-align: center;
    margin-bottom: 30px;
}

.title h2{
    font-size: 30px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.title span{
    width: 100px;
    height: 2px;
    background-color: brown;
    margin: auto;
    display: block;
    transition: 0.5s;
}

.title:hover span{
    width : 170px;
}

.category-items{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.category-item{
    position: relative;
    width: 21%;
    min-width: 200px
}

.category-item img{
    width: 100%;
    margin-bottom: 25px;
}

.category-item h4{
    color: gray;
    font-weight: 600;
}

.category-item i{
    width: 30px;
    height: 30px;
    color: #fff;
    background-color: brown;
    text-align: center;
    line-height: 30px;
    position: absolute;
    bottom: 0;
    right: 0;
    opacity: 0;
    transition: opacity 0.5s;
}

.category-item:hover i{
    opacity: 1;
}

/*discount*/

.discount{
    margin: 100px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.desc{
    width: 50%;
    background: #f7f3ef;
    padding: 20px;
    line-height: 28px;
}

.desc .top{
    position: relative;
    padding-left: 50px;
    margin-bottom: 20px;
}

.desc .top i{
    position: absolute;
    left: 0px;
    top: 10px;
    font-size: 50px;
    color: brown;
}

.items{
    display: flex;
    justify-content: space-between;
    width: 45%;
    gap: 10px;
}

.item{
    width: 100%;
    height: 100%;
}

.item:nth-child(1){
   background-image: url(images/cms-banner-1.jpg);
   background-size: cover;
   background-position: center;
}

.item:nth-child(2){
    background-image: url(images/cms-banner-2.jpg);
    background-size: cover;
    background-position: center;
}

.discount .item-info{
    padding : 20px 15px;
}

.discount .item-info h3{
     font-weight: normal;
     color: brown;
}

.discount .item-info h2{
     font-size: 20px;
}


 /*sprites*/


.sprites{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.sprite-item{
    text-align: center;
}

.sprite-info h3{
    font-size: 17px;
}

.sprite-info span{
    color: gray;
    font-size: 15px;
}

.sprite-icon{
    background-image: url(images/service-icon.png);
    height: 55px;
    background-repeat: no-repeat;
}

.sprite-icon-1{
    background-position:center 5px;
    transition: all 0.5s;
}

.sprite-icon-2{
    background-position: center -180px;
    transition: all 0.5s;
}

.sprite-icon-3{
    background-position: center -366px;
    transition: all 0.5s;
}

.sprite-icon-4{
    background-position: center -549px;
    transition: all 0.5s;
}

.sprite-icon-5{
    background-position: center -734px;
    transition: all 0.5s;
}

.sprite-item:hover .sprite-icon-1{
    background-position: center -86px;
}
.sprite-item:hover .sprite-icon-2{
    background-position: center -273px;
}
.sprite-item:hover .sprite-icon-3{
    background-position: center -455px;
}
.sprite-item:hover .sprite-icon-4{
    background-position: center -639px;
}
.sprite-item:hover .sprite-icon-5{
    background-position: center -825px;
}

hr{
    margin-top: 55px;
}

/*products*/

.product .list-product {
    display: flex;
    justify-content: center;
    align-items: center;
}

.product .list-product li{
    margin:  10px ;
    font-size: 20px;
    text-transform: capitalize;
}

.product-items{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin: 30px 0;
}

.product-item{
    position: relative;
    margin-bottom: 20px;
    width: 30%;
    min-width: 170px;
}

.product-overlay{
    position: absolute;
    top: 0;
    left: 0;
    transform: scalex(0);
    transition: 0.3s;
}

.product-overlay ul{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50% , -50%);
}

.product-overlay ul li{
    width: 30px;
    height: 40px;
    background-color: brown;
    display: inline-block;
    text-align: center;
    line-height: 40px;
    margin: 5px;
}

.product-overlay ul li i{
    color: #fff;
}

.product-item:hover .product-overlay{
    transform: scaleX(1);
}

.product .product-item i.active{
    color: yellow;
}

.product-info i{
    margin-bottom: 10px 0 ;
}

.product-info span{
    display: block;
    margin: 5px 0;
}

.product-item img{
    width: 100%;
}

/*discount*/

.discount-2{
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

 .discount-imgs{
    position: relative;
    width: 40%;
} 

.discount-2 .discount-imgs img{
    width: 100%; 
    height: 100%;
    background-size: cover;
}

.discount-imgs .img-2{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50% , -50%) ;
}

.discount-description{
     width: 55%;
     background-color: #f7f3ef;
     padding: 20px;
     line-height: 25px;
     position: relative;
}

.discount-description .top{
    position: relative;
    padding-left: 140px;
    margin-bottom: 70px;
}

.discount-description .date{
    position: absolute;
    top: 0;
    left: 20px;
    color: brown;
}

.discount-description .date h1{
    font-size: 30px;
}

/*imgs*/

.imgs-line{
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 100%;
}

/*footer*/

footer{
    background-color: black;
    color: #fff;
}

.footer-content{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    padding: 50px 20px;
}

.row{
    margin: 20px;
}

.row:nth-of-type(1){
    flex: 1;
}

.row:nth-of-type(2){
    flex: 0.5;
}

.row:nth-of-type(3){
    flex: 0.5;
}

.row:nth-of-type(4){
    flex: 0.5;
}

.row img{
    width: 150px;
    margin-bottom :30px;
}

.row p{
    color: gray;
    line-height: 25px;
}

.row li{
    color: gray;
    line-height: 30px;
}

.row h3{
    color: #fff;
}

.footer_imgs{
    text-align: center;
} 

.footer_imgs img{
    padding: 0 50px;
}

.last{
    color: grey;
    text-align: left;
    padding: 20px;
}

.last span{
    text-decoration: underline;
}

hr{
    color: gray;
}

@media screen and (max-width:1200px) {
    .drop-down-menu{
        display: none;
    }

    .nav ul{
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        align-items: flex-start;
        position: fixed;
        top: 0;
        right: -200px;
        background-color: #fff;
        width: 200px;
        height: 60vh;
        padding: 60px 15px 20px 15px;
    }

    .login{
        display: none;
    }

    .mobile{
        display: inline;
        color: #333;
        font-size: 30px;
        cursor: pointer;
    }

    #close{
        display: inline;
        position: absolute;
        top: 20px;
        left: 15px;
        font-size: 25px;
        color: #333;
        cursor: pointer;
    }

}

@media screen and (max-width:799px) {

    .discount .desc{
        width: 100%;
    }

    .discount .items{
        width: 100%;
    }

    .discount .items .item{
        height: 40vh;
    }

    .discount-2 .discount-description{
        width: 100%;
    }

    .discount-2 .discount-imgs{
        width: 100%;
        height: 40vh;
    }

    .discount-2 .discount-imgs img:nth-of-type(1){
        object-fit: cover;
    }

    .imgs-line{
        justify-content: center;
    }

    .product .list-product li{
        margin: 15px 10px;
    }

}


@media screen and (max-width:477px) {

    .product-overlay ul{
        width: 90%;
    }

    .product-overlay ul li{
        margin: 4px;
    }

    .category-item{
        width: 80%;
    }

}