


/* =====================================================
   AK Hakka Ordering System
   menu.css
====================================================== */

:root{

    --primary:#dc3545;
    --primary-dark:#dc3545;
    --secondary:#ffffff;
    --dark:#222222;
    --gray:#666666;
    --light:#f7fbfd;
    --border:#e5e5e5;
    --danger:#dc3545;
    --success:#198754;

    --radius:15px;

    --shadow:
        0 10px 30px rgba(0,0,0,.08);

    --transition:.3s ease;
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{

    font-family:'Poppins',sans-serif;

    color:var(--dark);

    background:var(--light);

    overflow-x:hidden;

    line-height:1.6;

}

/* ===========================
Header
=========================== */

.main-header{

    background:#fff;

    position:sticky;

    top:0;

    z-index:999;

}

.navbar{

    padding:15px 0;

}

.navbar-brand img{

    max-height:60px;

}

.nav-link{

    color:var(--dark);

    font-weight:500;

    margin-left:18px;

    transition:var(--transition);

}

.nav-link:hover{

    color:var(--primary);

}

.nav-link.active{

    color:var(--primary);

}

.btn-primary{

    background:var(--primary);

    border:none;

    border-radius:10px;

    padding:10px 18px;

}

.btn-primary:hover{

    background:var(--primary-dark);

}

/* ===========================
Page Banner
=========================== */

.page-banner{

    /* background:linear-gradient(135deg,#20A7D8,#8bd7f3); */
    background: linear-gradient(135deg, #ed1c24, #011b22);

    color:#fff;

    padding:60px 20px;

}

.page-banner h1{

    font-weight:700;

    font-size:42px;

}

.page-banner p{

    margin-top:10px;

    opacity:.95;

}

/* ===========================
Search
=========================== */

.search-section{

    padding:35px 0;

}

.search-box{

    position:relative;

}

.search-box i{

    position:absolute;

    top:17px;

    left:18px;

    color:#888;

}

.search-box input{

    padding-left:48px;

    height:55px;

    border-radius:30px;

    border:1px solid var(--border);

    box-shadow:var(--shadow);

}

.search-box input:focus{

    border-color:var(--primary);

    box-shadow:0 0 0 .2rem rgba(32,167,216,.15);

}

/* ===========================
Category Bar
=========================== */

.category-bar{

    background:#fff;

    padding:15px 0;

    z-index:100;

    box-shadow:0 3px 10px rgba(0,0,0,.05);

}

.category-scroll{

    display:flex;

    gap:12px;

    overflow-x:auto;

    white-space:nowrap;

    scrollbar-width:none;

}

.category-scroll::-webkit-scrollbar{

    display:none;

}

.category-btn{

    border:none;

    padding:10px 20px;

    border-radius:25px;

    background:#eef8fc;

    color:var(--dark);

    font-weight:500;

    transition:var(--transition);

}

.category-btn:hover{

    background:var(--primary);

    color:#fff;

}

.category-btn.active{

    background:var(--primary);

    color:#fff;

}

/* ===========================
Menu Section
=========================== */

.menu-section{

    padding:60px 0;

}
/* =====================================================
   Menu Card
====================================================== */

.menu-card{

    background:#fff;

    border-radius:18px;

    overflow:hidden;

    box-shadow:var(--shadow);

    transition:var(--transition);

    height:100%;

    position:relative;

}

.menu-card:hover{

    transform:translateY(-8px);

    box-shadow:0 20px 40px rgba(0,0,0,.15);

}

.menu-image{

    position:relative;

    overflow:hidden;

}

.menu-image img{

    width:100%;

    height:230px;

    object-fit:cover;

    transition:.4s;

}

.menu-card:hover .menu-image img{

    transform:scale(1.08);

}

.badge-popular{

    position:absolute;

    top:15px;

    left:15px;

    /* background:#ff9800; */

    color:#fff;

    padding:6px 12px;

    border-radius:30px;

    font-size:12px;

    font-weight:600;

}

.badge-veg,
.badge-nonveg{

    position:absolute;

    top:15px;

    right:15px;

    width:26px;

    height:26px;

    border-radius:50%;

}

.badge-veg{

    background:#28a745;

}

.badge-nonveg{

    background:#dc3545;

}

/* =====================================================
   Card Body
====================================================== */

.menu-content{

    padding:20px;

}

.menu-title{

    font-size:18px;

    font-weight:600;

    margin-bottom:8px;

}

.menu-description{

    color:var(--gray);

    font-size:14px;

    min-height:50px;

    margin-bottom:15px;

}

.menu-footer{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:18px;

}

.menu-price{

    color:var(--primary);

    font-size:24px;

    font-weight:700;

}

/* =====================================================
   Quantity Selector
====================================================== */

.quantity-box{

    display:flex;

    align-items:center;

    border:1px solid var(--border);

    border-radius:30px;

    overflow:hidden;

}

.qty-btn{

    width:38px;

    height:38px;

    border:none;

    background:#f3f3f3;

    font-size:18px;

    cursor:pointer;

    transition:var(--transition);

}

.qty-btn:hover{

    background:var(--primary);

    color:#fff;

}

.qty-value{

    width:45px;

    text-align:center;

    font-weight:600;

}

/* =====================================================
   Add To Cart
====================================================== */

.add-cart-btn{

    width:100%;

    border:none;

    background:var(--primary);

    color:#fff;

    border-radius:12px;

    padding:12px;

    font-size:16px;

    font-weight:600;

    transition:var(--transition);

}

.add-cart-btn:hover{

    background:var(--primary-dark);

    transform:translateY(-2px);

}

.add-cart-btn i{

    margin-right:8px;

}

/* =====================================================
   Floating Cart
====================================================== */

.floating-cart{

    position:fixed;

    right:25px;

    bottom:25px;

    width:65px;

    height:65px;

    border-radius:50%;

    background:var(--primary);

    color:#fff;

    display:flex;

    align-items:center;

    justify-content:center;

    text-decoration:none;

    font-size:26px;

    box-shadow:0 15px 30px rgba(0,0,0,.25);

    z-index:999;

}

.floating-cart span{

    position:absolute;

    top:-6px;

    right:-4px;

    background:red;

    color:#fff;

    width:24px;

    height:24px;

    border-radius:50%;

    display:flex;

    justify-content:center;

    align-items:center;

    font-size:12px;

    font-weight:600;

}

/* =====================================================
   Back To Top
====================================================== */

.back-top{

    position:fixed;

    left:25px;

    bottom:25px;

    width:55px;

    height:55px;

    border:none;

    border-radius:50%;

    background:#222;

    color:#fff;

    cursor:pointer;

    display:none;

    z-index:999;

}

.back-top:hover{

    background:var(--primary);

}

/* =====================================================
   Food Modal
====================================================== */

.modal-content{
    border:none;
    border-radius:20px;
    overflow:hidden;
}

.modal-header{
    border-bottom:1px solid var(--border);
    padding:18px 25px;
}

.modal-body{
    padding:25px;
}

#modalImage{
    width:100%;
    border-radius:15px;
    object-fit:cover;
}

#modalTitle{
    font-size:28px;
    font-weight:700;
    margin-bottom:15px;
}

#modalDescription{
    color:var(--gray);
    margin-bottom:20px;
}

/* =====================================================
   Toast
====================================================== */

.toast{
    border-radius:12px;
    box-shadow:var(--shadow);
}

/* =====================================================
   Footer
====================================================== */

.footer{
    background:#1f2937;
    color:#fff;
    margin-top:60px;
}

.footer h4,
.footer h5{
    margin-bottom:18px;
    font-weight:600;
}

.footer p{
    color:#d1d5db;
    margin-bottom:10px;
}

.footer ul{
    padding-left:0;
}

.footer ul li{
    list-style:none;
    margin-bottom:10px;
}

.footer ul li a{
    color:#d1d5db;
    text-decoration:none;
    transition:var(--transition);
}

.footer ul li a:hover{
    color:#fff;
    padding-left:5px;
}

.footer hr{
    border-color:rgba(255,255,255,.15);
    margin:30px 0 20px;
}

/* =====================================================
   Utility
====================================================== */

.hidden{
    display:none !important;
}

.cursor-pointer{
    cursor:pointer;
}

.text-primary{
    color:var(--primary)!important;
}

/* =====================================================
   Responsive
====================================================== */

@media (max-width:991px){

    .navbar-nav{
        margin-top:15px;
    }

    .nav-link{
        margin-left:0;
        padding:10px 0;
    }

    .page-banner{
        padding:45px 15px;
    }

    .page-banner h1{
        font-size:34px;
    }

    .menu-image img{
        height:220px;
    }

}

@media (max-width:767px){

    .page-banner h1{
        font-size:28px;
    }

    .page-banner p{
        font-size:14px;
    }

    .search-box input{
        height:50px;
    }

    .menu-title{
        font-size:20px;
    }

    .menu-price{
        font-size:22px;
    }

    .floating-cart{
        width:58px;
        height:58px;
        font-size:22px;
        right:18px;
        bottom:18px;
    }

    .back-top{
        width:50px;
        height:50px;
        left:18px;
        bottom:18px;
    }

}

@media (max-width:576px){

    .menu-image img{
        height:200px;
    }

    .menu-content{
        padding:16px;
    }

    .menu-description{
        min-height:auto;
    }

    .quantity-box{
        width:120px;
    }

    .qty-btn{
        width:36px;
        height:36px;
    }

    .qty-value{
        width:40px;
    }

    .add-cart-btn{
        font-size:15px;
        padding:10px;
    }

}

/* =========================
CART DRAWER
========================= */

.cart-overlay{

position:fixed;
top:0;
left:0;

width:100%;
height:100%;

background:rgba(0,0,0,.45);

opacity:0;
visibility:hidden;

transition:.3s;

z-index:999;

}

.cart-overlay.active{

opacity:1;
visibility:visible;

}

.cart-drawer{

position:fixed;

top:0;
right:-420px;

width:400px;
max-width:100%;

height:100vh;

background:#fff;

box-shadow:-5px 0 20px rgba(0,0,0,.2);

transition:.35s;

display:flex;

flex-direction:column;

z-index:1000;

}

.cart-drawer.active{

right:0;

}

.cart-item{

display:flex;

align-items:center;

gap:12px;

padding:15px 0;

border-bottom:1px solid #eee;

}

.cart-item img{

width:70px;

height:70px;

object-fit:cover;

border-radius:10px;

}

.cart-info{

flex:1;

}

.cart-info h5{

margin:0;

font-size:15px;

font-weight:600;

}

.cart-price{

margin-top:5px;

color:#777;

}
.cart-qty{

display:flex;

align-items:center;

gap:8px;

}

.cart-qty button{

width:30px;

height:30px;

border:none;

border-radius:6px;

cursor:pointer;

background:#f3f3f3;

}

.cart-subtotal{

width:70px;

text-align:right;

font-weight:700;

}

.remove-item{

border:none;

background:none;

cursor:pointer;

color:#d32f2f;

font-size:16px;

}


