/*
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("https://images.unsplash.com/photo-1517248135467-4c7edcad34c4?auto=format&fit=crop&w=1600&q=80");background-size:cover;background-position:center;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-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
        .menu-card{background:#fff;border-radius:12px;overflow:hidden;border:1px solid #eee;transition:.2s}
        .menu-card:hover{transform:translateY(-3px);box-shadow:0 8px 25px rgba(0,0,0,.08)}
        .menu-image{width:100%;height:190px;object-fit:cover;display:block}
        .menu-content{padding:17px}.menu-top{display:flex;justify-content:space-between;gap:10px}.menu-name{font-size:17px;font-weight:700}.menu-price{color:#d35400;font-weight:700;white-space:nowrap}
        .menu-description{color:#777;font-size:13px;line-height:1.5;margin:9px 0 15px;min-height:39px}
        .add-btn{width:100%;height:40px;background:#fff;border:1px solid #d35400;color:#d35400;border-radius:7px;font-weight:600;font-size:14px}
        .add-btn:hover{background:#d35400;color:#fff}
        .quantity-control{display:flex;align-items:center;justify-content:space-between;border:1px solid #d35400;border-radius:7px;height:40px;overflow:hidden}
        .quantity-control button{width:40px;height:100%;border:none;background:#fff4ed;color:#d35400;font-size:20px}.quantity-control span{font-weight:700}
        .empty-menu{text-align:center;padding:50px 20px;color:#777;display:none}
        .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;

    }

}
