﻿body {
    background: #f5f5f5;
    font-family: Segoe UI;
}

/* ===== HEADER ===== */
.rest-header {
    background: linear-gradient(120deg,#ff6b00,#ff9800);
    color: white;
    padding: 25px;
    border-radius: 18px;
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 20px;
}

    .rest-header img {
        width: 110px;
        height: 110px;
        border-radius: 15px;
        object-fit: cover;
        background: white;
    }

/* ===== CATEGORY BAR ===== */
.categories {
    position: sticky;
    top: 10px;
    z-index: 10;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px;
    background: white;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,.08);
}

    .categories button {
        border: none;
        background: #fff3e0;
        padding: 8px 14px;
        border-radius: 20px;
        cursor: pointer;
        font-weight: 600;
    }

        .categories button.active {
            background: #ff5722;
            color: white;
        }

/* ===== MENU LAYOUT ===== */
.menu-layout {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 20px;
}

/* ITEMS SCROLL ONLY */
.menu-items {
    height: calc(100vh - 220px);
    overflow-y: auto;
    padding-right: 10px;
}

/* ===== CATEGORY TITLE ===== */
.cat-title {
    margin: 15px 0;
    font-weight: 700;
    color: #ff5722;
}

/* ===== ITEM CARD ===== */
.item-card {
    display: flex;
    gap: 15px;
    padding: 12px;
    background: white;
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,.06);
}

    .item-card img {
        width: 80px;
        height: 80px;
        border-radius: 10px;
        object-fit: cover;
    }

.item-info {
    flex: 1;
}

.qty-box button {
    background: #ff5722;
    color: white;
    border: none;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
}

/* ===== CART ===== */
.cart-box {
    background: white;
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,.1);
    position: sticky;
    top: 120px;
    height: fit-content;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

.checkout-btn {
    width: 100%;
    background: #28a745;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 10px;
    margin-top: 10px;
    font-weight: 700;
}

/* ===== FLOATING CART ===== */
.floating-cart {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #28a745;
    color: white;
    padding: 14px 28px;
    border-radius: 40px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,.2);
}

/* ===== MOBILE ===== */
@media(max-width:992px) {
    .menu-layout {
        grid-template-columns: 1fr;
    }

    .cart-box {
        position: static;
    }

    .menu-items {
        height: auto;
    }
}
