
@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@1,900&display=swap');

*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}


body{
    font-family: 'Lato', sans-serif;
    position: relative;
    overflow-x: hidden;
    min-height: 100vh;
}

body::-webkit-scrollbar{
    width: 10px;
}

body::-webkit-scrollbar-thumb
{
    background-color: rgb(155, 148, 148);
    border-radius: 5px;
}
body::-webkit-scrollbar-track{
    background-color: rgb(211, 199, 199);
    height: 100px;
}

.sidebar::-webkit-scrollbar{
    width: .6rem;
}

.sidebar::-webkit-scrollbar-thumb{
    background-color:rgb(180, 95, 95);
    border-radius: .5rem;
    border: 2px solid rgb(39, 36, 36);
}


.logo_name{
    text-transform: capitalize;
    color: blueviolet;
}
.head{
    position: sticky;
    top: 0;
    z-index:1;
    box-shadow: 1px 2px 10px .5px;
    background-color: white;
}

.head .alter{
    border-radius: 5px;
    margin-bottom: 2rem;
    margin: .2rem .5rem;
    display: none;
}

#alt:focus{
    background-color: rgb(184, 179, 179);
}

#alt{
    padding: .7rem;
    margin-bottom: .5rem;
    border-radius: 5px;
}


.home_title{
    display: flex;
    justify-content: space-between;
    padding: 1rem;
}

.search{
    display: flex;
    align-items: center;
    border-radius: 8px;
    width: 30%;
    justify-content: space-between;
    
}

.text-search{
    height: 100%;
    display: flex;
    flex-grow: 1;
    
}

.search_icon{
    display: flex;
    height: 100%;
    padding: .6rem;
    align-items: center;
    cursor: pointer;
}

.search_icon:hover{
    background-color:white;
}


input{
    border: none;
    outline: none;
    height: 100%;
    width: 100%;
    font-size: 1rem;
    font-family: 'Lato', sans-serif;
    font-weight: .3rem;
    letter-spacing: .1rem;
    padding: 0 .5rem;
}

input:focus{
    background-color: rgba(192,192,192,.3);

}


.search:hover,input:hover{
    background-color: rgba(192,192,192,.3);
}

.cart_icon{
    position: relative;
    display: flex;
    align-items: center;
    margin: .8rem;
}

.inner i{
    cursor: pointer;
    font-size: 1.3rem;
}

.cart_icon p{
    position: absolute;
    top: -1rem;
    right: -.4rem;
    border-radius: 30%;
    background-color: orange;
    padding: .05rem .2rem;
    margin: -.4rem;

}

.increase > i{
    color: rgb(197, 138, 9);
    cursor: pointer;
}

.sidebar{
    position: fixed;
    background-color: #cfa782;
    top: 79px;
    right: 0;
    bottom: 0;
    z-index: 2;
    overflow-y: auto;
    width: 40%;
    text-align: center;
    transform: translateX(100%);
    height:0%;
    transition: all .8s ease;
}

.origin{
    transform: translateX(0%);
    height: 95%;
}
.pro_img img{
    width: 70px;
    height: 70px;
}

hr{
    width: 85%;
    margin: 3rem auto;

}

.total{
    font-size: 1rem;
    text-transform: capitalize;
    margin: 3rem;
    color: rgb(59, 53, 102);
    display: flex;
    flex-direction: column;
    align-items: center;
}
.total button{
    background-color: rgb(214, 151, 34);
    padding: 1rem;
    border: none;
    border-radius: .5rem;
    width: 80%;
    text-transform: capitalize;
    margin: 1rem;
}

.fa-trash{
    color:  rgb(145, 39, 39);
    cursor: pointer;
}

button:focus,button:hover{
    border: none;
    outline: none;
    cursor: pointer;
}

.sidebar h1{
    padding: 1.5rem;
    text-transform: capitalize;
}

.cart_content {
    display: flex;
    justify-content: space-around;
    margin-bottom: 2rem;
}

.detail,.detail h4 {
    text-transform: capitalize;
    display:flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
}

.main_home{
    margin-top: 1rem;
    background-image: url("images/homepage.jpeg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}
.home_image {
    background-image: url("images/homepage.jpeg");
    background-position: center;
    background-repeat: no-repeat;
    height: 80vh;
    opacity: 0.9;
    display: flex;
    align-items: center;
    justify-content: center;
    image-rendering:auto;
    image-resolution: auto;

}

.main_logo{
    text-align: center;
    background-color: rgba(255,255,255,0.6);
    text-transform:capitalize;
    height: 10vh;
    display: flex;
    align-items: center;
    border-radius: 10px;
    padding: 1rem;
}

.starting{
    text-align: center;
    text-transform: capitalize;
    margin: 4rem;
}

.products{
    display: grid;
    grid-template-columns:repeat(auto-fill,minmax(250px,1fr));
    grid-gap:1.5rem;
    margin: 1rem;
}

.product{
    position:relative;
    overflow:hidden;
}

.product img{
    width: 100%;
    height:18rem;
    border-radius: .2rem;
}

.product:hover{
    opacity: .8;
    transition: all 0.5s ease;
}

.product img:hover{
    cursor: pointer;
}

.bag_info{
    display:flex;
    position: absolute;
    top: 50%;
    right: 0;
    background-color: rgb(202, 141, 26);
    text-transform: capitalize;
    transform: translateX(101%);
    transition: all .5s ease;
}
.bag_info p,.bag_info span{
    padding: .3rem;
    cursor: pointer;
}

.price_info,.price_info p{
    text-align: center;
    padding: .3rem;
    text-transform: capitalize;
    font-size: 1.3rem;
}

.price{
    color: rgb(204, 138, 17);
}

.product:hover > .bag_info{
    transform: translateX(0%);
}

.demo{
    padding: .5rem 1rem;
    pointer-events: none;
}


.last{
    width: 100%;
    position: fixed;
    top: 0%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
}

.last_con{
    text-transform: capitalize;
    color: white;
    background-color: rgb(52, 155, 52);
    padding : .8rem 1rem;
    border-radius: .5rem;
    font-size: .8rem;
   
}

.add{
    top:20%;
    opacity: 1;
    transition: all .7s ease;
}

.hide{
    display: none;
}


@media screen and (max-width:305px){
    .sidebar{
        top: 112px;
    }
}

@media screen and (max-width:600px){
    .search{
        display: none;
    }
    .alter{
        display:block;
    }
    .sidebar{
        top: 132px;
        width: 90%;
    }

    .head .alter{
        display: block;
    }
    .origin{
        height: 90%;
    }
}

@media screen and (min-width:600px){

    .sidebar{
        width: 70%;
    }
}

@media screen and (min-width:768px){
    .sidebar{
        width: 50%;
    }
}

@media screen and (min-width:1000px){
    .sidebar{
        width: 30%;
    }
}












