/*
Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
Click nbfs://nbhost/SystemFileSystem/Templates/Other/CascadeStyleSheet.css to edit this template
*/
/* 
    Created on : Aug 30, 2026, 10:55:37 AM
    Author     : VERMAJI
*/

*{
    margin:0;
    padding:0;
    box-sizing:border-box
}
body{
    font-family:Arial,Helvetica,sans-serif;
    background:#f7f7f7;
    color:#222
}
button,input,textarea{
    font-family:inherit
}
button{
    cursor:pointer
}
.header{
    background:#fff;
    border-bottom:1px solid #eee;
    position:sticky;
    top:0;
    z-index:100
}
.header-inner{
    max-width:1200px;
    margin:auto;
    height:70px;
    padding:0 20px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px
}
.restaurant-name{
    font-size:23px;
    font-weight:700;
    color:#d35400;
    white-space:nowrap
}
.restaurant-name span{
    color:#222
}
.cart-button{
    border:none;
    background:#d35400;
    color:#fff;
    padding:11px 18px;
    border-radius:8px;
    font-size:15px;
    font-weight:600;
    display:flex;
    align-items:center;
    gap:8px
}
.cart-count{
    background:#fff;
    color:#d35400;
    min-width:22px;
    height:22px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:12px;
    font-weight:bold
}
.hero{
    background:linear-gradient(rgba(0,0,0,.55),rgba(0,0,0,.55)),
        url("../imgs/restaurant-banner.jpeg");
    background-size:cover;
    background-position:center;
    background-repeat: no-repeat;
    min-height:330px;
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
    color:#fff
}
.hero-content{
    padding:30px 20px
}
.hero h1{
    font-size:44px;
    margin-bottom:12px
}
.hero p{
    font-size:17px;
    opacity:.95
}
.restaurant-info{
    margin-top:18px;
    display:flex;
    justify-content:center;
    gap:20px;
    flex-wrap:wrap;
    font-size:14px
}
.container{
    max-width:1200px;
    margin:auto;
    padding:30px 20px 80px
}
.search-box{
    margin-bottom:25px
}
.search-box input{
    width:100%;
    height:48px;
    border:1px solid #ddd;
    border-radius:8px;
    padding:0 16px;
    font-size:15px;
    outline:none;
    background:#fff
}
.search-box input:focus{
    border-color:#d35400
}
.categories{
    display:flex;
    gap:10px;
    overflow-x:auto;
    padding-bottom:8px;
    margin-bottom:30px;
    scrollbar-width:thin
}
.category-btn{
    border:1px solid #ddd;
    background:#fff;
    padding:9px 17px;
    border-radius:20px;
    white-space:nowrap;
    font-size:14px;
    color:#444
}
.category-btn.active{
    background:#d35400;
    border-color:#d35400;
    color:#fff
}
.section-title{
    margin-bottom:20px
}
.section-title h2{
    font-size:25px
}
.section-title p{
    margin-top:5px;
    color:#777;
    font-size:14px
}
/* ==========================================
   Menu Section
========================================== */

.section-title{
    text-align:center;
    margin-bottom:35px;
}

.section-title h2{
    font-size:32px;
    font-weight:800;
    margin:0 0 8px;
    color:#222;
    letter-spacing:-.5px;
}

.section-title h2::after{
    content:"";
    display:block;
    width:55px;
    height:4px;
    background:#d35400;
    border-radius:10px;
    margin:12px auto 0;
}

.section-title p{
    color:#777;
    font-size:15px;
    margin:12px 0 0;
}


/* ==========================================
   Menu Grid
========================================== */

.menu-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:22px;
}


/* ==========================================
   Menu Card
========================================== */

.menu-card{
    position:relative;
    background:#fff;
    border-radius:16px;
    padding:22px;
    border:1px solid #ececec;
    box-shadow:0 4px 18px rgba(0,0,0,.05);
    transition:.25s ease;
    overflow:hidden;
}

.menu-card::before{
    content:"";
    position:absolute;
    top:0;
    left:0;
    width:5px;
    height:100%;
    background:#d35400;
    opacity:.9;
}

.menu-card:hover{
    transform:translateY(-5px);
    box-shadow:0 12px 30px rgba(0,0,0,.10);
}


/* ==========================================
   Menu Header
========================================== */

.menu-top{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:15px;
}

.menu-name{
    font-size:19px;
    font-weight:750;
    color:#222;
    line-height:1.4;
    padding-left:6px;
}

.menu-price{
    background:#fff4ed;
    color:#d35400;
    font-size:16px;
    font-weight:800;
    padding:7px 12px;
    border-radius:20px;
    white-space:nowrap;
}


/* ==========================================
   Description
========================================== */

.menu-description{
    color:#777;
    font-size:14px;
    line-height:1.6;
    margin:14px 0 18px;
    min-height:44px;
    padding-left:6px;
}


/* ==========================================
   Bottom Area
========================================== */

.menu-footer{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding-top:15px;
    border-top:1px dashed #e5e5e5;
}


/* ==========================================
   Veg / Non-Veg Badge
========================================== */

.food-type{
    display:inline-flex;
    align-items:center;
    gap:6px;
    font-size:12px;
    font-weight:600;
    color:#666;
}

.food-type::before{
    content:"";
    width:9px;
    height:9px;
    border-radius:50%;
    background:#2e9b4b;
}

.food-type.non-veg::before{
    background:#d63031;
}


/* ==========================================
   Add Button
========================================== */

.add-btn{
    width:100%;
    height:44px;
    border:none;
    background:#d35400;
    color:#fff;
    border-radius:9px;
    font-weight:700;
    font-size:14px;
    cursor:pointer;
    transition:.2s;
}

.add-btn:hover{
    background:#b84400;
    transform:translateY(-1px);
}


/* ==========================================
   Quantity Control
========================================== */

.quantity-control{
    display:flex;
    align-items:center;
    justify-content:space-between;
    border:1px solid #e8c3ad;
    border-radius:9px;
    height:44px;
    overflow:hidden;
    background:#fff;
}

.quantity-control button{
    width:44px;
    height:100%;
    border:none;
    background:#fff4ed;
    color:#d35400;
    font-size:21px;
    cursor:pointer;
    transition:.2s;
}

.quantity-control button:hover{
    background:#fbe3d5;
}

.quantity-control span{
    flex:1;
    text-align:center;
    font-weight:800;
    color:#333;
}


/* ==========================================
   Empty Menu
========================================== */

.empty-menu{
    grid-column:1 / -1;
    text-align:center;
    padding:60px 20px;
    color:#777;
}


/* ==========================================
   Responsive
========================================== */

@media(max-width:900px){

    .menu-grid{
        grid-template-columns:repeat(2,1fr);
        gap:16px;
    }

}


@media(max-width:600px){

    .section-title h2{
        font-size:27px;
    }

    .menu-grid{
        grid-template-columns:1fr;
        gap:14px;
    }

    .menu-card{
        padding:18px;
        border-radius:14px;
    }

    .menu-name{
        font-size:17px;
    }

    .menu-price{
        font-size:14px;
        padding:6px 10px;
    }

}
.overlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.55);
    z-index:200;
    display:none
}
.overlay.show{
    display:block
}
.cart-drawer{
    position:fixed;
    top:0;
    right:-450px;
    width:430px;
    max-width:100%;
    height:100vh;
    background:#fff;
    z-index:300;
    display:flex;
    flex-direction:column;
    transition:right .3s ease
}
.cart-drawer.show{
    right:0
}
.cart-header{
    height:70px;
    border-bottom:1px solid #eee;
    padding:0 20px;
    display:flex;
    align-items:center;
    justify-content:space-between
}
.cart-header h2{
    font-size:20px
}
.close-cart,.close-modal{
    border:none;
    background:transparent;
    font-size:28px;
    color:#555
}
.cart-body{
    flex:1;
    overflow-y:auto;
    padding:20px
}
.cart-empty{
    text-align:center;
    padding:70px 20px;
    color:#777
}
.cart-item{
    display:flex;
    gap:12px;
    padding:15px 0;
    border-bottom:1px solid #eee
}
.cart-item-image{
    width:70px;
    height:70px;
    border-radius:8px;
    object-fit:cover
}
.cart-item-info{
    flex:1
}
.cart-item-name{
    font-size:15px;
    font-weight:700;
    margin-bottom:5px
}
.cart-item-price{
    color:#777;
    font-size:13px
}
.cart-item-bottom{
    margin-top:10px;
    display:flex;
    align-items:center;
    justify-content:space-between
}
.mini-quantity{
    display:flex;
    align-items:center;
    border:1px solid #ddd;
    border-radius:6px;
    overflow:hidden
}
.mini-quantity button{
    width:28px;
    height:28px;
    border:none;
    background:#f7f7f7;
    font-size:17px
}
.mini-quantity span{
    width:30px;
    text-align:center;
    font-size:13px;
    font-weight:700
}
.cart-item-total{
    font-weight:700;
    color:#d35400
}
.remove-item{
    border:none;
    background:transparent;
    color:#c0392b;
    font-size:12px;
    margin-top:5px
}
.cart-footer{
    border-top:1px solid #eee;
    padding:20px
}
.summary-row{
    display:flex;
    justify-content:space-between;
    margin-bottom:10px;
    font-size:14px
}
.summary-total{
    font-size:20px;
    font-weight:700;
    margin-top:14px;
    padding-top:14px;
    border-top:1px dashed #ddd
}
.checkout-btn{
    width:100%;
    height:48px;
    margin-top:18px;
    border:none;
    border-radius:8px;
    background:#d35400;
    color:#fff;
    font-size:15px;
    font-weight:700
}
.checkout-btn:disabled{
    background:#ccc;
    cursor:not-allowed
}
.modal-overlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.55);
    z-index:500;
    display:none;
    align-items:center;
    justify-content:center;
    padding:20px
}
.modal-overlay.show{
    display:flex
}
.modal{
    width:520px;
    max-width:100%;
    max-height:90vh;
    overflow-y:auto;
    background:#fff;
    border-radius:12px;
    padding:25px
}
.modal-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-bottom:22px
}
.modal-header h2{
    font-size:21px
}
.form-group{
    margin-bottom:16px
}
.form-group label{
    display:block;
    font-size:13px;
    font-weight:600;
    margin-bottom:6px
}
.form-group input,.form-group textarea{
    width:100%;
    border:1px solid #ddd;
    border-radius:7px;
    padding:11px;
    font-size:14px;
    outline:none
}
.form-group input:focus,.form-group textarea:focus{
    border-color:#d35400
}
.form-group textarea{
    resize:vertical;
    min-height:85px
}
.checkout-summary{
    background:#f8f8f8;
    border-radius:8px;
    padding:15px;
    margin:20px 0
}
.checkout-summary-row{
    display:flex;
    justify-content:space-between;
    margin-bottom:8px;
    font-size:14px
}
.pay-btn{
    width:100%;
    height:48px;
    border:none;
    border-radius:8px;
    background:#2d8a46;
    color:#fff;
    font-size:15px;
    font-weight:700
}
.payment-box{
    text-align:center
}
.razorpay-logo{
    font-size:25px;
    font-weight:800;
    color:#3395ff;
    margin-bottom:10px
}
.payment-amount{
    font-size:27px;
    font-weight:700;
    margin:15px 0
}
.payment-note{
    color:#777;
    font-size:13px;
    margin-bottom:20px
}
.dummy-payment-buttons{
    display:grid;
    gap:10px
}
.dummy-success,.dummy-failure{
    height:45px;
    border:none;
    border-radius:7px;
    font-weight:600
}
.dummy-success{
    background:#2d8a46;
    color:#fff
}
.dummy-failure{
    background:#f4f4f4;
    color:#c0392b
}
.success-box{
    text-align:center;
    padding:20px 10px
}
.success-icon{
    width:70px;
    height:70px;
    margin:0 auto 18px;
    border-radius:50%;
    background:#e8f7ed;
    color:#2d8a46;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:35px;
    font-weight:bold
}
.success-box h2{
    margin-bottom:10px
}
.success-box p{
    color:#777;
    font-size:14px;
    line-height:1.6
}
.order-number{
    margin:18px 0;
    background:#f7f7f7;
    border-radius:7px;
    padding:13px;
    font-weight:700
}
.done-btn{
    width:100%;
    height:45px;
    border:none;
    border-radius:7px;
    background:#d35400;
    color:#fff;
    font-weight:700
}
.toast{
    position:fixed;
    left:50%;
    bottom:25px;
    transform:translate(-50%,100px);
    background:#222;
    color:#fff;
    padding:12px 18px;
    border-radius:7px;
    font-size:14px;
    z-index:1000;
    opacity:0;
    transition:.3s
}
.toast.show{
    transform:translate(-50%,0);
    opacity:1
}
.footer{
    text-align:center;
    padding:25px 20px;
    background:#222;
    color:#aaa;
    font-size:13px
}
@media(max-width:900px){
    .menu-grid{
        grid-template-columns:repeat(2,1fr)
    }
}
@media(max-width:600px){
    .header-inner{
        height:62px;
        padding:0 14px
    }
    .restaurant-name{
        font-size:19px
    }
    .cart-button{
        padding:9px 13px
    }
    .hero{
        min-height:270px
    }
    .hero h1{
        font-size:32px
    }
    .hero p{
        font-size:14px
    }
    .container{
        padding:22px 14px 60px
    }
    .menu-grid{
        grid-template-columns:1fr
    }
    .menu-image{
        height:210px
    }
    .cart-drawer{
        width:100%
    }
    .modal{
        padding:20px
    }
}

        /* =========================
   ADMIN THREE DOT MENU
========================= */

.admin-menu {
    position: relative;
}


.admin-menu-btn {
    width: 40px;
    height: 40px;

    border: none;

    background: transparent;

    color: #333;

    font-size: 28px;

    cursor: pointer;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;
}


.admin-menu-btn:hover {
    background: rgba(0, 0, 0, 0.08);
}


/* Dropdown */

.admin-dropdown {
    display: none;

    position: absolute;

    top: 45px;
    right: 0;

    min-width: 170px;

    background: #fff;

    border-radius: 10px;

    overflow: hidden;

    box-shadow:
        0 8px 25px
        rgba(0, 0, 0, 0.15);

    z-index: 9999;
}


.admin-dropdown.show {
    display: block;
}


/* Items */

.admin-dropdown-item {
    width: 100%;

    display: block;

    padding: 12px 16px;

    border: none;

    background: #fff;

    color: #333;

    text-decoration: none;

    text-align: left;

    font-size: 14px;

    cursor: pointer;
}


.admin-dropdown-item:hover {
    background: #f5f5f5;
}


.logout-item {
    color: #c0392b;
}


.admin-dropdown form {
    margin: 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}


.restaurant-name {
    flex: 1;
    min-width: 0;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


.header-actions {
    display: flex;
    align-items: center;

    gap: 8px;

    flex-shrink: 0;
}

@media (max-width: 600px) {

    .header-inner {
        gap: 10px;
    }

    .header-actions {
        gap: 6px;
    }

}
.cart-drawer {
    position: fixed;

    top: 0;
    right: 0;

    width: 420px;
    max-width: 100%;

    height: 100dvh;

    background: #fff;

    z-index: 9999;

    display: flex;
    flex-direction: column;

    transform: translateX(100%);
    transition: transform 0.3s ease;
}


.cart-drawer.show {
    transform: translateX(0);
}


/* =========================
   CART HEADER
========================= */

.cart-header {
    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 18px;

    border-bottom: 1px solid #eee;
}


/* =========================
   CART BODY
   ONLY THIS AREA SCROLLS
========================= */

.cart-body {
    flex: 1;

    overflow-y: auto;

    min-height: 0;

    padding: 15px;

    -webkit-overflow-scrolling: touch;
}


/* =========================
   CART FOOTER
   ALWAYS VISIBLE
========================= */

.cart-footer {
    flex-shrink: 0;

    padding: 15px;

    background: #fff;

    border-top: 1px solid #eee;

    padding-bottom:
        calc(
            15px +
            env(safe-area-inset-bottom)
        );
}


/* =========================
   MOBILE
========================= */

@media (max-width: 600px) {

    .cart-drawer {

        width: 100%;

        height: 100dvh;

    }

}

.payment-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 20px;
}

.pay-btn {
    border: none;
    padding: 14px 10px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.online-payment-btn {
    background: #2563eb;
    color: #fff;
}

.online-payment-btn:hover {
    background: #1d4ed8;
}

.cod-payment-btn {
    background: #16a34a;
    color: #fff;
}

.cod-payment-btn:hover {
    background: #15803d;
}

@media (max-width: 500px) {

    .payment-buttons {
        grid-template-columns: 1fr;
    }

}

