/* ===================================================================
   Public menu — per-tenant themed (var(--brand) injected in layout)
   =================================================================== */
:root { --paper: #faf7f3; --ink: #211c17; --muted: #8a8178; --line: #ece5db; }

.menu-body {
    background: var(--menu-bg, var(--paper));
    color: var(--menu-text, var(--ink));
    font-family: var(--menu-font, "Cairo", "Segoe UI", system-ui, Tahoma, sans-serif);
    padding-bottom: 96px;
    -webkit-font-smoothing: antialiased;
}

/* ===== Menu theme variants (data-menutheme) ===== */
.menu-body[data-menutheme="midnight"] { --menu-bg:#17140f; --menu-text:#f4efe6; --menu-card:#221d17; --menu-bar:#1c1812; --muted:#a99f92; --line:#2c261e; }
.menu-body[data-menutheme="minimal"] { --menu-bg:#ffffff; --menu-card:#ffffff; --menu-bar:rgba(255,255,255,.95); --menu-radius:10px; --line:#eee; }
.menu-body[data-menutheme="elegant"] { --menu-bg:#f7f2e9; --menu-card:#fffdf8; --menu-bar:rgba(247,242,233,.95); --menu-radius:4px; --menu-font:Georgia,"Times New Roman",serif; --line:#e6ddcb; }
.menu-body[data-menutheme="vibrant"] { --menu-bg:#fff7f0; --menu-card:#ffffff; --menu-bar:rgba(255,247,240,.95); --menu-radius:24px; }
.menu-body[data-menutheme="coffee"] { --menu-bg:#efe6db; --menu-card:#fbf5ec; --menu-bar:rgba(239,230,219,.95); --menu-radius:16px; --line:#e2d4c2; }
.menu-body[data-menutheme="elegant"] .menu-title { font-weight: 700; letter-spacing: .01em; }
.menu-body[data-menutheme="midnight"] .menu-tab { border-color: #33291e; }

/* Language toggle */
.menu-lang { position: fixed; top: 14px; inset-inline-end: 14px; z-index: 20; }
.menu-lang-btn {
    background: rgba(0,0,0,.4); color: #fff; padding: 7px 14px;
    border-radius: 999px; text-decoration: none; font-size: .85rem; font-weight: 700;
    backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.2);
}

/* Header */
.menu-header {
    background: var(--brand);
    background-size: cover; background-position: center;
    color: #fff; padding: 60px 16px 52px; text-align: center; position: relative;
}
.menu-header::after {
    content: ""; position: absolute; bottom: -1px; left: 0; right: 0; height: 30px;
    background: var(--paper); border-radius: 30px 30px 0 0;
}
.menu-header-inner { max-width: 700px; margin: 0 auto; position: relative; z-index: 1; }
.menu-logo { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; border: 4px solid rgba(255,255,255,.9); margin-bottom: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.menu-title { font-size: 2.1rem; font-weight: 900; letter-spacing: -.02em; margin: 0; }
.menu-desc { opacity: .92; margin-top: 8px; font-weight: 500; }
.menu-table-badge {
    display: inline-flex; align-items: center; gap: 7px; margin-top: 16px;
    background: rgba(255,255,255,.22); padding: 7px 18px; border-radius: 999px;
    font-weight: 700; border: 1px solid rgba(255,255,255,.25);
}

/* Category tabs */
.menu-tabs {
    position: sticky; top: 0; z-index: 15;
    background: var(--menu-bar, rgba(250,247,243,.92)); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.menu-tabs .container::-webkit-scrollbar { display: none; }
.menu-tab {
    flex: 0 0 auto; text-decoration: none; color: var(--ink);
    padding: 8px 18px; border-radius: 999px; background: var(--menu-card, #fff); color: var(--menu-text, var(--ink)); font-weight: 700;
    white-space: nowrap; border: 1px solid var(--line); font-size: .92rem; transition: .15s;
}
.menu-tab:hover, .menu-tab:active { background: var(--brand); color: #fff; border-color: var(--brand); }

/* Menu list */
.menu-list { margin-top: 26px; max-width: 860px; }
.menu-cat { margin-bottom: 38px; }
.menu-cat-title {
    font-size: 1.5rem; font-weight: 900; margin-bottom: 18px; letter-spacing: -.01em;
    display: inline-flex; align-items: center; gap: 10px;
}
.menu-cat-title::before { content: ""; width: 6px; height: 26px; background: var(--brand); border-radius: 6px; }

.menu-item-card {
    display: flex; gap: 14px; background: var(--menu-card, #fff); border-radius: var(--menu-radius, 18px);
    overflow: hidden; box-shadow: 0 2px 10px rgba(28,23,18,.05); height: 100%;
    border: 1px solid var(--line); transition: transform .15s, box-shadow .15s;
}
.menu-item-card:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(28,23,18,.10); }
.menu-item-img { width: 108px; height: auto; min-height: 108px; object-fit: cover; flex: 0 0 auto; align-self: stretch; }
.menu-item-body { padding: 14px 16px; flex: 1; display: flex; flex-direction: column; }
.menu-item-name { font-size: 1.06rem; font-weight: 800; margin: 0; }
.menu-item-price { color: var(--brand); font-weight: 900; white-space: nowrap; font-size: 1.02rem; }
.menu-item-desc { color: var(--muted); font-size: .88rem; margin: 6px 0 10px; flex: 1; line-height: 1.5; }
.btn-add {
    align-self: flex-start; border: none; background: var(--brand); color: #fff;
    padding: 7px 18px; border-radius: 999px; font-weight: 700; font-size: .86rem;
    box-shadow: 0 4px 12px color-mix(in srgb, var(--brand) 40%, transparent); transition: .15s;
}
.btn-add:hover { filter: brightness(.94); transform: translateY(-1px); }

/* Cart FAB */
.cart-fab {
    position: fixed; bottom: 20px; inset-inline: 18px; z-index: 25; max-width: 820px; margin: 0 auto;
    background: var(--brand); color: #fff; border: none; border-radius: 18px;
    padding: 15px 22px; display: flex; align-items: center; gap: 14px;
    font-weight: 800; box-shadow: 0 12px 30px rgba(0,0,0,.28); font-size: 1.06rem;
}
.cart-fab .cart-count {
    background: #fff; color: var(--brand); border-radius: 999px;
    min-width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; font-weight: 900;
}
.cart-fab .cart-total { margin-inline-start: auto; }

/* Cart modal */
.modal-content { border: none; border-radius: 22px; overflow: hidden; }
.modal-header { border-bottom: 1px solid var(--line); }
.modal-title { font-weight: 900; }
.cart-line { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #f2ede6; }
.cart-line .qty { display: flex; align-items: center; gap: 12px; }
.cart-line .qty button {
    width: 32px; height: 32px; border-radius: 10px; border: 1px solid var(--line);
    background: #fff; font-size: 1.15rem; line-height: 1; font-weight: 700; color: var(--brand);
}
.btn-checkout {
    border: none; background: var(--brand); color: #fff; padding: 14px;
    border-radius: 14px; font-weight: 800; font-size: 1.02rem;
    box-shadow: 0 8px 20px color-mix(in srgb, var(--brand) 35%, transparent);
}
.btn-checkout:disabled { opacity: .45; box-shadow: none; }

/* Loyalty earn banner */
.loyalty-earn {
    display: flex; align-items: center; gap: 14px; background: #fff7ed; color: #9a3412;
    border: 1px solid #fed7aa; border-radius: 16px; padding: 16px 18px;
}
.loyalty-earn i { font-size: 1.7rem; color: #ea580c; }
.loyalty-earn a { color: #ea580c; font-weight: 800; }

.menu-reserve-link { display: inline-flex; align-items: center; gap: 7px; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.28); color: #fff; padding: 7px 16px; border-radius: 999px; font-weight: 700; text-decoration: none; }
.menu-reserve-link:hover { background: rgba(255,255,255,.28); color: #fff; }

/* rating badge in header */
.menu-rating { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; background: rgba(255,255,255,.2); padding: 5px 14px; border-radius: 999px; font-weight: 800; }
.menu-rating i { color: #ffd25a; }
.menu-rating span { opacity: .85; font-weight: 600; }

/* options modal */
.opt-group { margin-bottom: 16px; }
.opt-group-title { font-weight: 800; margin-bottom: 8px; }
.opt-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; cursor: pointer; }
.opt-row input { width: 20px; height: 20px; accent-color: var(--brand); }

/* waiter call button */
.waiter-btn { position: fixed; bottom: 92px; inset-inline-end: 18px; z-index: 24; width: 54px; height: 54px; border-radius: 50%; border: none; background: #fff; color: var(--brand); font-size: 1.5rem; box-shadow: 0 8px 22px rgba(0,0,0,.22); }
.waiter-btn:active { transform: scale(.94); }

/* rating stars input */
.rate-stars { font-size: 2rem; color: #ffc94d; display: flex; gap: 8px; justify-content: center; }
.rate-stars i { cursor: pointer; }

/* Order status check */
.order-check {
    width: 80px; height: 80px; border-radius: 50%; background: var(--brand); color: #fff;
    display: inline-flex; align-items: center; justify-content: center; font-size: 2.6rem;
    box-shadow: 0 12px 30px color-mix(in srgb, var(--brand) 40%, transparent);
}
