*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:Arial, Helvetica, sans-serif;
    background:#fff8f2;
    color:#222;
}

header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:20px 8%;
    background:#111;
    position:fixed;
    width:100%;
    z-index:1000;
}

.logo h1{
    color:#ff6600;
    font-size:28px;
}

nav a{
    color:white;
    text-decoration:none;
    margin-left:20px;
    transition:0.3s;
}

nav a:hover{
    color:#ff6600;
}

.hero{
    height:100vh;
    background:url('../images/restaurant.jpg');
    background-size:cover;
    background-position:center;
    display:flex;
    justify-content:center;
    align-items:center;
}
.menu-container{

    padding:120px 8%;

}

.menu-container h1{

    text-align:center;
    margin-bottom:50px;
    font-size:45px;
    color:#ff6600;

}

.products{

    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(280px,1fr));
    gap:30px;

}

.product-card{

    background:white;
    border-radius:20px;
    overflow:hidden;
    box-shadow:0 5px 20px rgba(0,0,0,0.1);
    transition:0.3s;

}

.product-card:hover{

    transform:translateY(-10px);

}

.product-card img{

    width:100%;
    height:250px;
    object-fit:cover;

}

.product-card h2{

    padding:15px;

}

.product-card p{

    padding:0 15px;
    color:#555;

}

.product-card h3{

    padding:15px;
    color:#ff6600;

}

.product-card button{

    margin:15px;
    width:calc(100% - 30px);

}
.cart-item{

    display:flex;
    align-items:center;
    gap:20px;
    background:white;
    padding:20px;
    margin-bottom:20px;
    border-radius:15px;
    box-shadow:0 5px 15px rgba(0,0,0,0.1);

}

.cart-item img{

    width:120px;
    height:120px;
    object-fit:cover;
    border-radius:15px;

}
.commande-container{

    padding:120px 8%;
    max-width:700px;
    margin:auto;

}

form{

    display:flex;
    flex-direction:column;
    gap:20px;
    background:white;
    padding:40px;
    border-radius:20px;
    box-shadow:0 5px 20px rgba(0,0,0,0.1);

}

input,
textarea,
select{

    padding:15px;
    border:1px solid #ddd;
    border-radius:10px;
    font-size:16px;

}

.success{

    background:#27ae60;
    color:white;
    padding:15px;
    border-radius:10px;
    margin-bottom:20px;

}
.dashboard{

    padding:120px 5%;

}

table{

    width:100%;
    border-collapse:collapse;
    background:white;
    box-shadow:0 5px 20px rgba(0,0,0,0.1);

}

table th{

    background:#ff6600;
    color:white;
    padding:15px;

}

table td{

    padding:15px;
    border-bottom:1px solid #ddd;

}

table tr:hover{

    background:#f5f5f5;

}
table select{

    padding:10px;
    border-radius:8px;
    border:1px solid #ddd;

}

table button{

    padding:10px 15px;
    margin-top:10px;

}
.error{

    background:#e74c3c;
    color:white;
    padding:15px;
    border-radius:10px;
    margin-bottom:20px;

}
.stats{

    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(220px,1fr));
    gap:20px;
    margin:40px 0;

}

.stat-card{

    background:white;
    padding:30px;
    border-radius:20px;
    text-align:center;
    box-shadow:0 5px 20px rgba(0,0,0,0.1);
    transition:0.3s;

}

.stat-card:hover{

    transform:translateY(-10px);

}

.stat-card h2{

    color:#ff6600;
    margin-bottom:15px;

}

.stat-card h3{

    font-size:35px;

}
.search-form{

    display:flex;
    justify-content:center;
    gap:15px;
    margin-bottom:40px;

}

.search-form input{

    width:350px;
    padding:15px;
    border-radius:40px;
    border:1px solid #ddd;
    font-size:16px;

}

.search-form button{

    padding:15px 25px;

}
#darkModeBtn{

    background:#ff6600;
    color:white;
    border:none;
    padding:12px 18px;
    border-radius:50%;
    cursor:pointer;
    font-size:18px;
    margin-left:20px;

}

.dark-mode{

    background:#111;
    color:white;

}

.dark-mode .card,
.dark-mode .product-card,
.dark-mode .stat-card,
.dark-mode form,
.dark-mode table{

    background:#1e1e1e;
    color:white;

}

.dark-mode p{

    color:#ddd;

}

.dark-mode input,
.dark-mode textarea,
.dark-mode select{

    background:#222;
    color:white;
    border:1px solid #444;

}

.dark-mode table td{

    border-color:#333;

}

.dark-mode nav{

    background:#000;

}

.dark-mode footer{

    background:#000;

}
.review-card{

    background:white;
    padding:25px;
    border-radius:20px;
    margin-bottom:20px;
    box-shadow:0 5px 15px rgba(0,0,0,0.1);

}

.review-card h3{

    color:#ff6600;
    margin-bottom:10px;

}

.review-card h4{

    margin-top:15px;

}
.menu-toggle{

    display:none;
    font-size:30px;
    color:white;
    cursor:pointer;

}

@media(max-width:768px){

    .menu-toggle{

        display:block;

    }

    nav{

        position:absolute;
        top:80px;
        right:0;
        background:#111;
        width:250px;
        display:flex;
        flex-direction:column;
        padding:20px;
        transform:translateX(100%);
        transition:0.3s;

    }

    nav a{

        margin:15px 0;

    }

    .show-menu{

        transform:translateX(0);

    }

}
.chart-container{

    background:white;
    padding:30px;
    border-radius:20px;
    margin-top:40px;
    box-shadow:0 5px 20px rgba(0,0,0,0.1);

}

.dashboard{

    padding:120px 5%;

}

.top-bar{

    display:flex;
    justify-content:space-between;
    align-items:center;
    flex-wrap:wrap;
    gap:20px;

}

.admin-buttons{

    display:flex;
    gap:15px;
    flex-wrap:wrap;

}

.stats{

    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(220px,1fr));
    gap:20px;
    margin:40px 0;

}

.stat-card{

    background:white;
    padding:30px;
    border-radius:20px;
    text-align:center;
    box-shadow:0 5px 20px rgba(0,0,0,0.1);
    transition:0.3s;

}

.stat-card:hover{

    transform:translateY(-10px);

}

.stat-card h2{

    color:#ff6600;
    margin-bottom:15px;

}

.stat-card h3{

    font-size:35px;

}

.chart-container{

    background:white;
    padding:30px;
    border-radius:20px;
    margin-bottom:40px;
    box-shadow:0 5px 20px rgba(0,0,0,0.1);

}

.table-container{

    overflow-x:auto;

}

table{

    width:100%;
    border-collapse:collapse;
    background:white;
    border-radius:20px;
    overflow:hidden;
    box-shadow:0 5px 20px rgba(0,0,0,0.1);

}

table th{

    background:#ff6600;
    color:white;
    padding:15px;

}

table td{

    padding:15px;
    border-bottom:1px solid #ddd;

}

table tr:hover{

    background:#f9f9f9;

}

table select{

    padding:10px;
    border-radius:10px;
    border:1px solid #ddd;

}

.btn-primary{

    background:#ff6600;
    color:white;
    border:none;
    padding:14px 20px;
    border-radius:12px;
    cursor:pointer;

}

.btn-danger{

    background:#e74c3c;
    color:white;
    border:none;
    padding:14px 20px;
    border-radius:12px;
    cursor:pointer;

}

.btn-small{

    margin-top:10px;
    padding:10px 15px;
    border:none;
    border-radius:10px;
    background:#ff6600;
    color:white;
    cursor:pointer;

}

@media(max-width:768px){

    .top-bar{

        flex-direction:column;
        align-items:flex-start;

    }

    .admin-buttons{

        width:100%;

    }

    .admin-buttons a{

        width:100%;

    }

    .admin-buttons button{

        width:100%;

    }

}

.whatsapp-btn{

    position:fixed;
    bottom:25px;
    right:25px;
    width:70px;
    height:70px;
    background:#25D366;
    color:white;
    border-radius:50%;
    display:flex;
    justify-content:center;
    align-items:center;
    font-size:35px;
    text-decoration:none;
    box-shadow:0 5px 20px rgba(0,0,0,0.3);
    z-index:999;

}
.chatbot{

    position:fixed;
    bottom:110px;
    right:25px;
    width:320px;
    background:white;
    border-radius:20px;
    overflow:hidden;
    box-shadow:0 5px 20px rgba(0,0,0,0.2);
    z-index:999;

}

.chat-header{

    background:#ff6600;
    color:white;
    padding:15px;
    font-weight:bold;

}

.chat-body{

    height:250px;
    padding:15px;
    overflow-y:auto;

}

.chat-input{

    display:flex;

}

.chat-input input{

    flex:1;
    border:none;
    padding:15px;

}

.chat-input button{

    border:none;
    background:#ff6600;
    color:white;
    padding:15px;
    cursor:pointer;

}
.tracking-card{

    background:white;
    padding:30px;
    border-radius:20px;
    margin-top:30px;
    box-shadow:0 5px 20px rgba(0,0,0,0.1);

}

.tracking-status{

    display:flex;
    justify-content:space-between;
    margin-top:30px;
    gap:15px;

}

.step{

    flex:1;
    padding:20px;
    text-align:center;
    background:#eee;
    border-radius:15px;
    font-weight:bold;
    opacity:0.5;

}

.step.active{

    background:#ff6600;
    color:white;
    opacity:1;

}
.card,
.product-card,
.stat-card,
.review-card,
.tracking-card{

    animation:fadeUp 0.8s ease;

}

@keyframes fadeUp{

    from{

        opacity:0;
        transform:translateY(30px);

    }

    to{

        opacity:1;
        transform:translateY(0);

    }

}

.btn-primary,
.btn-secondary{

    transition:0.3s;

}

.btn-primary:hover,
.btn-secondary:hover{

    transform:scale(1.05);

}

.product-card img{

    transition:0.4s;

}

.product-card:hover img{

    transform:scale(1.08);

}
.resume-panier{

    background:white;
    padding:30px;
    border-radius:20px;
    margin-bottom:30px;
    box-shadow:0 5px 20px rgba(0,0,0,0.1);

}

.resume-item{

    border-bottom:1px solid #ddd;
    padding:20px 0;

}

.total-price{

    margin-top:20px;
    color:#ff6600;

}
.cart-item{

    display:flex;
    gap:20px;
    background:white;
    padding:20px;
    border-radius:20px;
    margin-bottom:20px;
    box-shadow:0 5px 20px rgba(0,0,0,0.1);

}

.cart-item img{

    width:140px;
    height:140px;
    object-fit:cover;
    border-radius:15px;

}

.cart-info{

    flex:1;

}

.quantity-form{

    margin-top:15px;

}

.quantity-form input{

    width:80px;
    padding:10px;
    margin-right:10px;

}

.cart-total{

    background:white;
    padding:30px;
    border-radius:20px;
    margin-top:30px;
    text-align:center;
    box-shadow:0 5px 20px rgba(0,0,0,0.1);

}

.empty-cart{

    text-align:center;
    margin-top:50px;

}


/* ========================= */
/* GLOBAL */
/* ========================= */

html{

    scroll-behavior:smooth;

}

body{

    overflow-x:hidden;

}

/* ========================= */
/* HERO PREMIUM */
/* ========================= */

.overlay{

    background:rgba(0,0,0,0.55);
    padding:60px;
    border-radius:25px;
    text-align:center;
    color:white;
    max-width:800px;
    backdrop-filter:blur(4px);

}

.hero h2{

    font-size:55px;
    margin-bottom:25px;
    line-height:1.2;

}

.hero p{

    font-size:22px;
    margin-bottom:35px;

}

/* ========================= */
/* BUTTONS */
/* ========================= */

.btn-primary,
.btn-secondary{

    padding:15px 30px;
    border:none;
    border-radius:14px;
    cursor:pointer;
    font-size:16px;
    font-weight:bold;

}

.btn-primary{

    background:#ff6600;
    color:white;

}

.btn-secondary{

    background:white;
    color:#111;

}

.btn-primary:hover,
.btn-secondary:hover{

    transform:translateY(-5px);
    box-shadow:0 10px 20px rgba(0,0,0,0.2);

}

/* ========================= */
/* SERVICES */
/* ========================= */

.services{

    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:30px;
    padding:80px 8%;

}

.card{

    background:white;
    padding:35px;
    border-radius:20px;
    text-align:center;
    box-shadow:0 5px 20px rgba(0,0,0,0.08);
    transition:0.3s;

}

.card:hover{

    transform:translateY(-10px);

}

/* ========================= */
/* FOOTER */
/* ========================= */

footer{

    background:#111;
    color:white;
    padding:50px 8%;
    text-align:center;
    margin-top:80px;

}

footer h3{

    margin-bottom:20px;
    color:#ff6600;

}

footer p{

    margin:10px 0;

}

/* ========================= */
/* CHATBOT */
/* ========================= */

.chat-header{

    display:flex;
    justify-content:space-between;
    align-items:center;

}

#closeChat{

    cursor:pointer;
    font-size:18px;

}

.user-msg{

    background:#ff6600;
    color:white;
    padding:12px;
    border-radius:12px;
    margin-bottom:10px;

}

.bot-msg{

    background:#f1f1f1;
    padding:12px;
    border-radius:12px;
    margin-bottom:10px;

}

/* ========================= */
/* DARK MODE */
/* ========================= */

.dark-mode{

    background:#111;
    color:white;

}

.dark-mode header{

    background:#000;

}

.dark-mode .card,
.dark-mode .product-card,
.dark-mode .review-card,
.dark-mode .tracking-card,
.dark-mode .resume-panier,
.dark-mode .cart-item,
.dark-mode .cart-total,
.dark-mode form,
.dark-mode table,
.dark-mode .chart-container{

    background:#1e1e1e;
    color:white;

}

.dark-mode p{

    color:#ddd;

}

.dark-mode input,
.dark-mode textarea,
.dark-mode select{

    background:#222;
    color:white;
    border:1px solid #444;

}

.dark-mode .bot-msg{

    background:#333;
    color:white;

}

.dark-mode footer{

    background:#000;

}

/* ========================= */
/* SCROLLBAR */
/* ========================= */

::-webkit-scrollbar{

    width:10px;

}

::-webkit-scrollbar-track{

    background:#f1f1f1;

}

::-webkit-scrollbar-thumb{

    background:#ff6600;
    border-radius:20px;

}

/* ========================= */
/* RESPONSIVE */
/* ========================= */

@media(max-width:768px){

    header{

        padding:20px;

    }

    .hero h2{

        font-size:35px;

    }

    .hero p{

        font-size:18px;

    }

    .overlay{

        padding:30px;

    }

    .products{

        grid-template-columns:1fr;

    }

    .cart-item{

        flex-direction:column;

    }

    .chatbot{

        width:90%;
        right:5%;

    }

    .tracking-status{

        flex-direction:column;

    }

    table{

        font-size:14px;

    }

}
.admin-product-img{

    width:100px;
    height:100px;
    object-fit:cover;
    border-radius:15px;

}

.table-container{

    overflow-x:auto;

}

table{

    min-width:700px;

}
.preview-image{

    width:100%;
    max-height:300px;
    object-fit:cover;
    border-radius:20px;
    margin-top:20px;
    box-shadow:0 5px 20px rgba(0,0,0,0.1);

}
.rating-summary{

    background:white;
    padding:30px;
    border-radius:20px;
    text-align:center;
    margin-bottom:30px;
    box-shadow:0 5px 20px rgba(0,0,0,0.1);

}

.rating-summary h2{

    font-size:45px;
    color:#ff6600;

}

.review-title{

    margin:40px 0 20px;

}

.reviews-grid{

    display:grid;
    grid-template-columns:
    repeat(auto-fit,minmax(300px,1fr));
    gap:25px;

}

.review-top{

    display:flex;
    align-items:center;
    gap:15px;
    margin-bottom:15px;

}

.avatar{

    width:60px;
    height:60px;
    background:#ff6600;
    color:white;
    border-radius:50%;
    display:flex;
    justify-content:center;
    align-items:center;
    font-size:24px;
    font-weight:bold;

}
.login-container{

    min-height:100vh;
    display:flex;
    justify-content:center;
    align-items:center;
    padding:120px 20px;
    background:#fff8f2;

}

.login-card{

    background:white;
    width:100%;
    max-width:450px;
    padding:50px;
    border-radius:25px;
    box-shadow:0 5px 25px rgba(0,0,0,0.1);
    text-align:center;
    animation:fadeUp 0.8s ease;

}

.login-card h1{

    margin-bottom:15px;
    color:#ff6600;

}

.login-card p{

    margin-bottom:30px;
    color:#777;

}

.login-card form{

    box-shadow:none;
    padding:0;

}
.tracking-info{

    margin-top:25px;

}

.tracking-info p{

    margin-bottom:12px;
    font-size:18px;

}

.tracking-message{

    margin-top:30px;
    background:#fff3e8;
    padding:20px;
    border-radius:15px;
    font-weight:bold;
    text-align:center;
    color:#ff6600;

}