/* ===== Page header ===== */
.page-head{
    max-width:1300px;
    margin:0 auto;
    padding:36px 28px 0;
}

.page-head h1{
    font-size:2.1rem;
    color:var(--dark);
    font-weight:400;
    position:relative;
    display:inline-block;
    padding-bottom:14px;
}

.order-type-badge {
    display: inline-block;
    background: var(--gold);
    color: var(--dark);
    font-weight: 800;
    font-size: .75rem;
    letter-spacing: .5px;
    text-transform: uppercase;
    padding: 8px 16px;
    border-radius: 20px;
    margin-left: 12px;
    vertical-align: middle;
}

.page-head h1::after{
    content:"";
    position:absolute;
    left:0;
    bottom:0;
    width:56px;
    height:3px;
    background:var(--red);
    border-radius:2px;
}

/* ===== Layout ===== */
.menu-layout{
    max-width:1300px;
    margin:0 auto;
    padding:26px 28px 60px;
    display:grid;
    grid-template-columns:270px 1fr;
    gap:26px;
    align-items:start;
}

/* ---- Sidebar (desktop) ---- */
.sidebar{
    display:flex;
    flex-direction:column;
    gap:18px;
    position:sticky;
    top:96px;
}

.cat-card{
    background:var(--paper);
    border:1px solid var(--line);
    border-radius:12px;
    padding:20px;
    box-shadow:var(--shadow-sm);
}

.cat-card h3{
    color:var(--dark);
    font-size:.85rem;
    letter-spacing:1.2px;
    font-weight:800;
    margin-bottom:14px;
}

.cat-list{
    display:flex;
    flex-direction:column;
    gap:6px;
}

.cat-item{
    display:flex;
    align-items:center;
    gap:12px;
    padding:10px 10px;
    border-radius:8px;
    cursor:pointer;
    transition:background .15s ease;
    border:1px solid transparent;
}

.cat-item:hover{
    background:var(--cream);
}

.cat-item.active{
    background:#fff6e0;
    border-color:#f5d896;
}

.cat-ico{
    width:36px;
    height:36px;
    border-radius:8px;
    flex:none;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:15px;
    background:var(--cream);
    color:var(--red);
    overflow:hidden;
}

.cat-item.active .cat-ico{
    background:var(--red);
    color:#fff;
}

.cat-img{
    width:100%;
    height:100%;
    object-fit:cover;
    border-radius:8px;
}

.cat-name{
    flex:1;
    font-weight:700;
    font-size:.88rem;
    color:var(--text);
}

.cat-item.active .cat-name{
    color:var(--red);
}

.cat-count{
    font-size:.78rem;
    color:var(--muted);
    font-weight:600;
}

.combo-promo{
    background:linear-gradient(160deg,#fff3d6,#ffe6b0);
    border-radius:12px;
    padding:22px;
    position:relative;
    overflow:hidden;
    border:1px solid #f5d896;
}

.combo-promo .eyebrow{
    color:var(--red);
    font-weight:800;
    font-size:.8rem;
    letter-spacing:.5px;
    text-transform:uppercase;
    display:block;
}

.combo-promo h4{
    font-size:1.15rem;
    color:var(--dark);
    font-weight:400;
    margin:4px 0 6px;
    line-height:1.15;
}

.combo-promo p{
    font-size:.82rem;
    color:var(--muted);
    margin-bottom:16px;
}

.combo-promo img{
    position:absolute;
    right:-10px;
    bottom:-6px;
    width:110px;
    height:110px;
    object-fit:cover;
    border-radius:12px;
    box-shadow:var(--shadow-md);
}

.combo-promo .btn{
    padding:10px 18px;
    font-size:.72rem;
}

/* ---- Tablet/mobile category rail ---- */
.cat-rail{
    display:none;
}

.cat-dropdown{
    display:none;
}

.category-section {
    margin-bottom: 40px;
}
/* ---- Products ---- */
.cat-heading{
    display:flex;
    align-items:baseline;
    gap:12px;
    margin-bottom:20px;
}

.cat-heading h2{
    font-size:1.5rem;
    color:var(--dark);
    font-weight:400;
}

.cat-heading span{
    color:var(--muted);
    font-size:.9rem;
    font-weight:600;
}

.product-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:22px;
}

.food-card{
    background:var(--paper);
    border-radius:12px;
    overflow:hidden;
    box-shadow:var(--shadow-sm);
    border:1px solid var(--line);
    transition:box-shadow .2s ease, transform .2s ease;
}

.food-card:hover{
    box-shadow:var(--shadow-md);
    transform:translateY(-3px);
}

.food-card img{
    height:190px;
    width:100%;
    object-fit:cover;
}

.food-card .fc-body{
    padding:16px 18px 20px;
}

.food-card h4{
    font-family:'Inter';
    font-weight:800;
    font-size:1rem;
    margin-bottom:6px;
    text-transform:none;
}

.food-card p{
    font-size:.83rem;
    color:var(--muted);
    margin-bottom:14px;
    line-height:1.45;
    min-height:38px;
}

.fc-foot{
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.fc-foot .price{
    color:var(--red);
    font-weight:800;
    font-size:1rem;
}

.next-cat-wrap{
    display:flex;
    justify-content:center;
    margin-top:36px;
}

.next-cat-wrap .btn{
    background:#fff;
    color:var(--red);
    border:1.5px solid var(--red);
    box-shadow:none;
}

.next-cat-wrap .btn:hover{
    background:var(--red);
    color:#fff;
}

/* ===== Mobile bottom nav ===== */
.bottom-nav{
    display:none;
    position:sticky;
    bottom:0;
    left:0;
    right:0;
    background:var(--dark);
    border-top:1px solid rgba(255,255,255,.08);
    padding:10px 6px 12px;
    z-index:60;
}

.bottom-nav ul{
    display:flex;
    justify-content:space-around;
}

.bottom-nav li{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:4px;
    color:#c9bcb6;
    font-size:.62rem;
    font-weight:700;
    letter-spacing:.3px;
    position:relative;
}

.bottom-nav li.active{
    color:var(--red);
}

.bottom-nav li i{
    font-size:1.15rem;
}

.cart-badge{
    position:absolute;
    top:-6px;
    right:-10px;
    background:var(--red);
    color:#fff;
    font-size:.6rem;
    font-weight:800;
    width:16px;
    height:16px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
}

/* ===== Responsive ===== */
@media (max-width:980px){
    nav.mainnav{
        display:none;
    }
    
    header.main .btn.cta-desktop{
        display:none;
    }
    
    .menu-toggle{
        display:flex;
    }

    .menu-layout{
        grid-template-columns:1fr;
    }
    
    .sidebar{
        display:none;
    }
    
    .cat-rail{
        display:flex;
        gap:14px;
        overflow-x:auto;
        padding:4px 2px 10px;
        -ms-overflow-style:none;
        scrollbar-width:none;
    }
    
    .cat-rail::-webkit-scrollbar{
        display:none;
    }
    
    .cat-rail .cat-pill{
        flex:none;
        display:flex;
        flex-direction:column;
        align-items:center;
        gap:6px;
        padding:8px;
        border-radius:10px;
        cursor:pointer;
    }
    
    .cat-rail .cat-pill .cat-ico{
        width:52px;
        height:52px;
        border-radius:50%;
        font-size:18px;
        background:var(--paper);
        border:1px solid var(--line);
        box-shadow:var(--shadow-sm);
        overflow:hidden;
    }
    
    .cat-rail .cat-pill .cat-img{
        width:100%;
        height:100%;
        object-fit:cover;
        border-radius:50%;
    }
    
    .cat-rail .cat-pill.active .cat-ico{
        background:var(--red);
        color:#fff;
        border-color:var(--red);
    }
    
    .cat-rail .cat-pill span{
        font-size:.72rem;
        font-weight:700;
        color:var(--muted);
    }
    
    .cat-rail .cat-pill.active span{
        color:var(--red);
    }

    .cat-dropdown{
        display:flex;
        align-items:center;
        justify-content:space-between;
        background:var(--paper);
        border:1px solid var(--line);
        border-radius:8px;
        padding:14px 16px;
        margin-bottom:20px;
        font-weight:800;
        letter-spacing:.5px;
        box-shadow:var(--shadow-sm);
        cursor:pointer;
        color:var(--dark);
    }

    .product-grid{
        grid-template-columns:repeat(2,1fr);
    }
    
    .combo-promo{
        margin-top:6px;
    }
}

@media (max-width:560px){
    .topbar{
        font-size:.66rem;
        padding:8px 16px;
    }
    
    .topbar .tagline{
        display:none;
    }
    
    header.main{
        padding:14px 16px;
    }
    
    .callus{
        display:none;
    }
    
    .page-head{
        padding:24px 16px 0;
    }
    
    .page-head h1{
        font-size:1.6rem;
    }
    
    .menu-layout{
        padding:18px 16px 20px;
    }
    
    .product-grid{
        grid-template-columns:repeat(2,1fr);
        gap:14px;
    }
    
    .food-card img{
        height:120px;
    }
    
    .food-card .fc-body{
        padding:12px 12px 14px;
    }
    
    .food-card h4{
        font-size:.85rem;
    }
    
    .food-card p{
        font-size:.72rem;
        min-height:30px;
        margin-bottom:10px;
    }
    
    /* Mobile: Stack price and button vertically */
    .fc-foot{
        flex-direction:column;
        gap:8px;
        align-items:stretch;
    }
    
    .fc-foot .price{
        font-size:.95rem;
        font-weight:800;
        color:var(--red);
    }
    
    /* Full-width button on mobile */
    .fc-foot .btn.sm{
        width:100%;
        padding:10px 12px;
        font-size:.75rem;
        justify-content:center;
        transition:all .2s ease;
    }
    
    /* Button loading state */
    .fc-foot .btn.sm.loading{
        opacity:.7;
        pointer-events:none;
    }
    
    /* Button success state */
    .fc-foot .btn.sm.added{
        background:var(--green) !important;
        border-color:var(--green) !important;
        color:#fff !important;
    }
    
    /* Button error state */
    .fc-foot .btn.sm.error{
        background:var(--red) !important;
        border-color:var(--red) !important;
        color:#fff !important;
    }
    
    /* Cat rail mobile */
    .cat-rail{
        gap:8px;
        padding:4px 2px 8px;
    }
    
    .cat-rail .cat-pill{
        padding:6px;
    }
    
    .cat-rail .cat-pill .cat-ico{
        width:44px;
        height:44px;
        font-size:16px;
    }
    
    .cat-rail .cat-pill span{
        font-size:.65rem;
    }
    
    /* Ingredients on mobile */
    .ingredients small{
        font-size:.65rem;
        line-height:1.2;
    }
    
    /* Combo items on mobile */
    .combo-item{
        font-size:.7rem;
    }
    
    /* Savings badge */
    .savings{
        font-size:.68rem;
    }
    
    .foot-grid{
        flex-direction:column;
    }
    
    footer{
        padding-bottom:90px;
    }
    
    .bottom-nav{
        display:block;
    }
}

/* ===== Image placeholder ===== */
.img-placeholder {
    height:190px;
    width:100%;
    display:flex;
    align-items:center;
    justify-content:center;
    background:var(--cream);
    color:var(--muted);
}

.img-placeholder .icon {
    font-size:48px;
}

/* ===== Combo ===== */
.savings {
    display:block;
    color:var(--green);
    font-weight:800;
    font-size:0.75rem;
    margin-top:2px;
}

.combo-items {
    margin-bottom:12px;
}

.combo-items small {
    display:block;
    font-weight:700;
    color:var(--muted);
    margin-bottom:4px;
}

.combo-item {
    font-size:0.8rem;
    color:var(--text);
    padding:2px 0;
}

/* ===== Ingredients ===== */
.ingredients {
    margin-bottom:12px;
}

.ingredients small {
    display:block;
    font-size:0.72rem;
    color:var(--muted);
    line-height:1.3;
}

/* ============================================
   MEAL CARD
   ============================================ */

.meal-portions {
    margin-bottom: 12px;
}

.meal-portions small {
    display: block;
    font-size: 0.72rem;
    color: var(--muted);
    margin-bottom: 4px;
}

.meal-portion {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text);
    padding: 2px 0;
}

.meal-portion span:last-child {
    font-weight: 700;
    color: var(--red);
}

/* ============================================
   MEAL MODAL
   ============================================ */

.meal-modal {
    position: fixed;
    inset: 0;
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
}

.meal-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
}

.meal-modal-panel {
    position: relative;
    background: #fff;
    border-radius: 14px;
    width: min(560px, 94vw);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

.meal-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: transparent;
    border: none;
    font-size: 1.1rem;
    color: var(--muted);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
}

.meal-modal-close:hover {
    background: var(--cream);
    color: var(--dark);
}

.meal-modal-head {
    padding: 24px 24px 12px;
    border-bottom: 1px solid var(--line);
}

.meal-modal-head h2 {
    font-size: 1.3rem;
    color: var(--dark);
    margin-bottom: 4px;
}

.meal-modal-head p {
    font-size: 0.85rem;
    color: var(--muted);
    margin: 0;
}

.meal-modal-body {
    padding: 18px 24px;
    overflow-y: auto;
    flex: 1;
}

.meal-section {
    margin-bottom: 22px;
}

.meal-section h3 {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.meal-hint {
    font-weight: 600;
    color: var(--muted);
    font-size: 0.72rem;
    text-transform: none;
    letter-spacing: 0;
    margin-left: 6px;
}

.meal-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.meal-options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.meal-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.meal-option:hover {
    border-color: var(--red);
    background: #fff6f6;
}

.meal-option input {
    accent-color: var(--red);
}

.meal-option-text {
    flex: 1;
    font-size: 0.88rem;
    color: var(--text);
    font-weight: 600;
}

.meal-option-price {
    font-size: 0.82rem;
    color: var(--red);
    font-weight: 700;
}

#mealNotes {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 12px;
    font-family: inherit;
    font-size: 0.85rem;
    resize: vertical;
}

.meal-modal-foot {
    padding: 16px 24px;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--paper);
}

.meal-modal-total {
    font-size: 0.9rem;
    color: var(--muted);
    font-weight: 600;
}

.meal-modal-total strong {
    color: var(--red);
    font-size: 1.1rem;
    margin-left: 6px;
}

.meal-modal-foot .btn {
    padding: 12px 22px;
}

.meal-blocked-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    background: #fff6e0;
    border: 1px solid #f5d896;
    border-radius: 8px;
    font-size: 0.82rem;
    color: #5c4f49;
    line-height: 1.4;
    margin-bottom: 8px;
}

.meal-blocked-note i {
    color: #e6a200;
    font-size: 0.95rem;
    flex: none;
    margin-top: 1px;
}
