@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600;700;800&display=swap');
*{
    font-family: 'poppins',sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.nav{
    max-width: 1200px;
    margin: auto;
    width: 100%;
    height: 89px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo{
    font-size: 1.1rem;
    font-weight: 500;
    text-decoration: none;
    text-transform: uppercase;
    color: #ffff;
}
.box{
    color: white;
    width: 30px;
    height: 30px;
    text-align: center;
   
}
.cart-count{
    position: absolute;
    background-color: #3abb12;
    color:white;
    display: flex !important;
    justify-content: center;
    align-items: center;
    top: 27px;
    initial-value: 0;
    right: 121px;
    width: 20px;
    line-height: 20px;
    border-radius: 50%;
    z-index: 99;
    
}
#cart-icon{
    font-size: 2.5rem;
    cursor: pointer;
    color:#000000;
    margin-bottom:-12px;
    padding-top: 10px;
}


h2.title{
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: white;
}
.shop-content{
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(300px,auto));
    gap: 1.5rem;
    justify-content: center;
    align-content: center;
}
.food-box{
    position: relative;
    background-color: white;
    padding: 10px;
    box-shadow: 0 1px 4px rgba(40,37,37,0.1);
    border-radius: 3px;
}
.pic{
    overflow: hidden;

}
.pic:hover img{
    transform:scale(1.5);
}
.food-img{
    transition: 0.2s;
    aspect-ratio:1/1;
    object-fit:cover;
    width: 17.5rem;

}
.food-title{
    font-size: 1rem;
    font-weight:600;
    color: #000000;
}
.price-strick {
    color: rgb(228, 28, 28);
    display:flex;
}
.actual-price {
    color:green;
}
.view-eye {
    position: absolute;
    bottom: 0;
    left: 46%;
    background-color: rgb(233 9 114);
    color: white;
    padding: 10px 32px;
    font-size:1.1rem;
    cursor: pointer;
    transition: 0.5s ease-in-out;
}
.view-eye:hover {
    background-color: rgba(2, 81, 184, 0.786);
}
.food-price{
    font-weight:500;
}
.add-cart{
    position: absolute;
    bottom: 0;
    right: 0;
    background-color: green;
    color: white;
    padding: 10px 32px;
    font-size:1.1rem;
    cursor: pointer;
    transition: 0.5s;
}
.add-cart:hover{
    background-color: rgba(255,0,0,0.786);
}
.cart{
    position: fixed;
    top: 0;
    right: -100%;
    width: 400px;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px;
    background-color: white;
    box-shadow: 0 1px 4px rgba(40,37,37,0.1);
    z-index: 100;
}
.cart-active{
    right: 0;
    transition: 0.5s;
}
.cart-title{
    text-align: center;
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
    border-bottom:1px solid rgba(0,0,0,0.1);
}
.cart-box{
    display: grid;
    grid-template-columns: 32% 50% 18%;
    align-items: center;
    gap:1rem;
    margin-top: 1rem;
    border-bottom:1px solid rgba(0,0,0,0.1);
    padding-bottom: 20px;
    padding-bottom: 10px;
}
.cart-img{
    width: 75px;
    height: 75px;
    object-fit: cover;
    border: 2px solid rgba(0,0,0,0.1);
    padding: 5px;
}
.detail-box{
    display: grid;
    row-gap: 0.5rem;
   
}
.price-box{
    display: flex;
    justify-content: space-between;
}
.cart-food-title{
    font-size: 1rem;
    text-transform: uppercase;
    color: #4b9d00;
    font-weight: 500;
}
.cart-price{
    font-weight: 500;
}
.cart-quantity{
    border: 1px solid rgba(0,0,0,0.1);
    outline: none;
    width: 2.4rem;
    text-align: center;
    font-size: 1rem;
}
.cart-remove{
    font-size: 24px;
    color: red;
    cursor:pointer;
}
.total{
    display: flex;
    justify-content: flex-end;
    margin-top: 1.5rem;

}
.total-title{
    font-size:1rem ;
    font-weight:600 ;

}
.total-price{
    margin-left: 0.5rem;

}
.btn-buy{
 padding: 12px 20px;
background-color: #2f3542;
color: #fff;
border: none;
font-size: 1rem;
font-weight: 500;
cursor: pointer;

}
#cart-close{
    position: absolute;

    top: 1rem;
    
    right: 0.8rem;
    
    font-size :2rem;
    
    cursor:pointer;
}