body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: white;
}

/* VIDEO BACKGROUND */
.video-bg {
    position: fixed;
    inset: 0;
    z-index: -2;
}
.video-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.video-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
}

/* CART ICON */
.cart-icon {
    position: fixed;
    top: 20px;
    right: 25px;
    font-size: 28px;
    cursor: pointer;
    z-index: 999;
}
.cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: red;
    color: white;
    font-size: 13px;
    padding: 3px 7px;
    border-radius: 50%;
}

/* LAYOUT */
.page-content {
    padding: 20px;
}
h1 {
    text-align: center;
}
.container {
    display: flex;
    gap: 30px;
    max-width: 1200px;
    margin: auto;
}
.menu {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 20px;
    flex: 3;
}
.item {
    background: rgba(255,255,255,0.9);
    color: black;
    padding: 12px;
    border-radius: 16px;
}
.item img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 12px;
}
.item button {
    width: 100%;
    padding: 8px;
    background: green;
    color: white;
    border: none;
    border-radius: 8px;
}

/* CART */
.cart {
    background: rgba(255,255,255,0.95);
    color: black;
    padding: 20px;
    border-radius: 16px;
    flex: 1;
}
.cart-table {
    width: 100%;
    border-collapse: collapse;
}
.cart-table th,
.cart-table td {
    padding: 8px;
    text-align: center;
}
.cart-table button {
    padding: 4px 8px;
}
.clear {
    background: red;
    color: white;
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 8px;
    margin-top: 10px;
}
.submit-cart {
    width: 100%;
    margin-top: 10px;
    padding: 12px;
    background: #ff9800;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
}
.table-number-box {
    display: flex;
    align-items: center;
    gap: 3px;              /* 👈 controls distance */
    padding: 12px 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
}

.table-number-box label {
    font-size: 14px;
    font-weight: 800;
}

#tableno {
    font-size: 18px;
    font-weight: bold;
    color: #e65100;
}

/* =========================
   MOBILE RESPONSIVE FIX
   ========================= */

@media screen and (max-width: 768px) {

    /* Stack menu & cart vertically */
    .container {
        flex-direction: column;
        gap: 20px;
    }

    /* Menu becomes single column */
    .menu {
        grid-template-columns: 1fr;
    }

    /* Menu cards full width */
    .item {
        width: 100%;
    }

    /* Cart full width and below menu */
    .cart {
        width: 100%;
        position: static;
        margin-top: 10px;
    }

    /* Make cart table scrollable */
    .cart-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    /* Buttons full width */
    .item button,
    .clear,
    .submit-cart {
        width: 100%;
    }

    /* Cart icon size adjustment */
    .cart-icon {
        font-size: 24px;
        top: 15px;
        right: 15px;
    }

    /* Reduce padding for mobile */
    .page-content {
        padding: 10px;
    }

    /* Table number box cleaner */
    .table-number-box {
        font-size: 14px;
        padding: 10px;
    }
    .menu .item img {
        height: auto !important;
        aspect-ratio: 16 / 9;
        object-fit: cover;
        object-position: center;
        max-height: 200px;
    }
}
