*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Arial, sans-serif;
}

body{
    background:#f5f5f5;
}

/* HEADER */

header{
    background:white;
    padding:20px;
    text-align:center;
    box-shadow:0 2px 10px rgba(0,0,0,0.1);
}

header h1{
    margin-bottom:15px;
    color:#ff5722;
}

#searchInput{
    width:350px;
    max-width:90%;
    padding:12px;
    border-radius:8px;
    border:1px solid #ccc;
    outline:none;
    font-size:16px;
}

.filters{
    margin-top:15px;
}

.filter-btn{
    padding:10px 18px;
    border:none;
    background:#ddd;
    margin:5px;
    border-radius:20px;
    cursor:pointer;
    transition:.3s;
}

.filter-btn:hover{
    background:#bbb;
}

.filter-btn.active{
    background:#ff5722;
    color:white;
}

/* MAIN */

main{
    display:flex;
    gap:20px;
    padding:20px;
}

.menu-section{
    flex:3;
}

.cart-section{
    flex:1;
    background:white;
    padding:20px;
    border-radius:12px;
    height:fit-content;
    box-shadow:0 3px 10px rgba(0,0,0,0.1);
}

.cart-section h2{
    margin-bottom:20px;
}

/* MENU */

.menu-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
    gap:20px;
}

/* CARD */

.card{
    background:white;
    border-radius:15px;
    overflow:hidden;
    box-shadow:0 3px 12px rgba(0,0,0,0.1);
    transition:0.3s;
}

.card:hover{
    transform:translateY(-6px);
}

.card img{
    width:100%;
    height:180px;
    object-fit:cover;
}

.card-content{
    padding:15px;
}

.card-content h3{
    margin:10px 0;
}

/* BADGE */

.badge{
    display:inline-block;
    background:#ff5722;
    color:white;
    padding:5px 10px;
    border-radius:20px;
    font-size:12px;
    margin-bottom:10px;
}

/* RATING */

.rating{
    color:#ff9800;
    font-weight:bold;
    margin-bottom:10px;
}

/* PRICE */

.price{
    color:#ff5722;
    font-size:18px;
    font-weight:bold;
    margin:12px 0;
}

/* BUTTONS */

.add-btn{
    width:100%;
    padding:10px;
    border:none;
    background:#ff5722;
    color:white;
    border-radius:8px;
    cursor:pointer;
    transition:.3s;
}

.add-btn:hover{
    background:#e64a19;
}

.details-btn{
    width:100%;
    padding:10px;
    margin-top:8px;
    border:none;
    background:#333;
    color:white;
    border-radius:8px;
    cursor:pointer;
    transition:.3s;
}

.details-btn:hover{
    background:#111;
}

/* CART */

.cart-item{
    border-bottom:1px solid #ddd;
    padding-bottom:10px;
    margin-bottom:15px;
}

.cart-item h4{
    margin-bottom:5px;
}

.cart-controls{
    display:flex;
    align-items:center;
    gap:10px;
    margin-top:10px;
}

.cart-controls button{
    width:28px;
    height:28px;
    border:none;
    border-radius:50%;
    background:#ff5722;
    color:white;
    cursor:pointer;
}

.cart-footer{
    margin-top:20px;
    border-top:1px solid #ddd;
    padding-top:15px;
}

/* PLACE ORDER BUTTON */

.place-order-btn{
    width:100%;
    padding:12px;
    margin-top:15px;
    border:none;
    background:#28a745;
    color:white;
    border-radius:8px;
    cursor:pointer;
    font-size:16px;
    transition:.3s;
}

.place-order-btn:hover{
    background:#218838;
}

/* TOAST */

.toast{
    position:fixed;
    top:20px;
    right:20px;
    background:#333;
    color:white;
    padding:12px 20px;
    border-radius:8px;
    opacity:0;
    pointer-events:none;
    transition:0.4s;
    z-index:1000;
}

.toast.show{
    opacity:1;
}

/* MODAL */

.modal{
    display:none;
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.55);
    justify-content:center;
    align-items:center;
    z-index:1000;
}

.modal-content{
    background:white;
    width:90%;
    max-width:450px;
    padding:20px;
    border-radius:15px;
    text-align:center;
    position:relative;
    animation:popup .3s ease;
}

@keyframes popup{
    from{
        transform:scale(.8);
        opacity:0;
    }
    to{
        transform:scale(1);
        opacity:1;
    }
}

.modal-content img{
    width:100%;
    height:250px;
    object-fit:cover;
    border-radius:10px;
    margin-bottom:15px;
}

.close-btn{
    position:absolute;
    top:10px;
    right:15px;
    font-size:30px;
    cursor:pointer;
}

/* ORDER SUMMARY */

#orderSummary{
    text-align:left;
    margin:15px 0;
}

#orderSummary p{
    margin:8px 0;
}

/* TRACKING */

#trackingStatus{
    margin-top:20px;
    text-align:left;
}

#trackingStatus p{
    margin:15px 0;
    font-size:18px;
    padding:10px;
    border-radius:8px;
    background:#f8f8f8;
}

/* MOBILE */

@media(max-width:768px){

    main{
        flex-direction:column;
    }

    .cart-section{
        width:100%;
    }

    #searchInput{
        width:100%;
    }

    .modal-content{
        width:95%;
    }

}

.dark{
    background:#121212;
    color:white;
}

.dark header,
.dark .card,
.dark .cart-section,
.dark .modal-content{
    background:#000000;
    color:white;
}