:root {
            --bg: #f8fafc;
            --card: #ffffff;
            --surface: #f1f5f9;
            --border: #e2e8f0;
            --text: #0f172a;
            --body: #334155;
            --muted: #64748b;
            --orange: #126743;
            --orange-soft: #eaf7f0;
            --green: #059669;
            --green-soft: #ecfdf5;
            --amber: #d97706;
        }
        * { box-sizing:border-box; margin:0; padding:0; font-family:'Plus Jakarta Sans',sans-serif; }
        body { background:var(--bg); color:var(--text); padding-bottom:104px; line-height:1.55; }

        /* Hero / Restaurant Header */
        .hero {
            background: var(--card);
            padding: 18px 18px 24px;
            text-align: center;
            border-bottom: 1px solid var(--border);
            position: relative;
        }
        .top-bar {
            max-width: 1180px;
            margin: 0 auto 16px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 8px;
            flex-wrap: wrap;
        }
        .top-bar-right { display:flex; align-items:center; gap:8px; flex-wrap:wrap; justify-content:flex-end; }
        .slug-pill {
            background: var(--orange-soft);
            color: var(--orange);
            border: 1px solid rgba(18,103,67,.28);
            font-size: .75rem;
            font-weight: 800;
            padding: 5px 12px;
            border-radius: 999px;
            text-decoration: none;
        }
        .history-btn {
            background: var(--surface);
            border: 1px solid var(--border);
            color: var(--text);
            font-size: .78rem;
            font-weight: 700;
            padding: 6px 13px;
            border-radius: 999px;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            transition: .15s;
        }
        .history-btn:hover { border-color: var(--orange); color: var(--orange); background: var(--orange-soft); }
        .history-count {
            background: var(--orange);
            color: #fff;
            font-size: .7rem;
            font-weight: 800;
            padding: 1px 7px;
            border-radius: 999px;
        }
        .hero h1 { font-size: clamp(1.55rem, 4vw, 2.05rem); font-weight: 800; color: var(--text); margin-bottom: 6px; letter-spacing: -.02em; }
        .hero p { color: var(--muted); font-size: .94rem; max-width: 560px; margin: 0 auto; }

        /* Optional Contact & Location Pills Below Slogan */
        .shop-contact-bar { display:flex; flex-wrap:wrap; justify-content:center; gap:8px; max-width:760px; margin:14px auto 0; }
        .contact-pill {
            background: var(--surface);
            border: 1px solid var(--border);
            color: var(--body);
            font-size: .78rem;
            font-weight: 600;
            padding: 5px 12px;
            border-radius: 999px;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 5px;
            transition: .15s;
        }
        a.contact-pill:hover { border-color: var(--orange); color: var(--orange); background: var(--orange-soft); }
        .contact-pill-gps {
            background: var(--orange-soft);
            border-color: rgba(18,103,67,.32);
            color: var(--orange);
            font-weight: 700;
        }
        .contact-pill-gps:hover { background: var(--orange); color: #fff; }

        /* Sticky Category Bar */
        .cat-bar {
            position: sticky;
            top: 0;
            z-index: 20;
            background: rgba(248,250,252,.92);
            backdrop-filter: blur(10px);
            border-bottom: 1px solid var(--border);
            padding: 12px 16px;
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 8px;
            box-shadow: 0 2px 8px rgba(15,23,42,.03);
        }
        .pill-btn {
            background: var(--card);
            color: var(--body);
            border: 1px solid var(--border);
            padding: 7px 15px;
            border-radius: 999px;
            font-size: .82rem;
            font-weight: 700;
            cursor: pointer;
            white-space: nowrap;
            transition: .15s;
        }
        .pill-btn:hover { border-color: var(--orange); color: var(--orange); }
        .pill-btn.active {
            background: var(--orange);
            color: #fff;
            border-color: var(--orange);
            box-shadow: 0 2px 6px rgba(18,103,67,.25);
        }

        /* Responsive Menu Grid */
        .container { max-width:1180px; margin:20px auto; padding:0 16px; display:grid; grid-template-columns:1fr; gap:14px; }
        @media(min-width:680px){ .container { grid-template-columns:repeat(2, minmax(0, 1fr)); gap:16px; } }
        @media(min-width:1024px){ .container { grid-template-columns:repeat(3, minmax(0, 1fr)); gap:18px; } }

        .item-card {
            background: var(--card);
            border: 1px solid var(--border);
            border-radius: 16px;
            padding: 15px;
            display: flex;
            gap: 14px;
            align-items: flex-start;
            height: 100%;
            box-shadow: 0 2px 10px rgba(15,23,42,.03);
            transition: border-color .15s, transform .15s, box-shadow .15s;
        }
        .item-card:hover {
            border-color: rgba(18,103,67,.45);
            box-shadow: 0 6px 18px rgba(15,23,42,.06);
        }
        .item-img {
            width: 88px;
            height: 88px;
            border-radius: 12px;
            object-fit: cover;
            background: var(--surface);
            border: 1px solid var(--border);
            flex-shrink: 0;
        }
        .item-body { flex:1; min-width:0; display:flex; flex-direction:column; height:100%; }
        .item-body h3 { font-size:1.02rem; font-weight:800; color:var(--text); margin-bottom:4px; }
        .item-body p { font-size:.83rem; color:var(--muted); line-height:1.45; margin-bottom:8px; }
        .price-tag { color:var(--orange); font-weight:800; font-size:.98rem; }
        .price-unit { color:var(--muted); font-weight:600; font-size:.78rem; }

        .controls { display:flex; align-items:center; gap:8px; margin-top:auto; padding-top:10px; flex-wrap:wrap; }
        .stepper {
            display: inline-flex;
            align-items: center;
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: 8px;
            overflow: hidden;
        }
        .stepper button {
            background: transparent;
            border: none;
            color: var(--text);
            width: 30px;
            height: 32px;
            font-size: 1rem;
            font-weight: 800;
            cursor: pointer;
        }
        .stepper button:hover { background: #e2e8f0; }
        .stepper span { padding: 0 10px; font-size: .88rem; font-weight: 800; color: var(--text); }
        .btn-action {
            background: var(--orange);
            color: #fff;
            border: none;
            padding: 8px 14px;
            border-radius: 8px;
            font-size: .83rem;
            font-weight: 700;
            cursor: pointer;
            box-shadow: 0 2px 6px rgba(18,103,67,.22);
            transition: .15s;
        }
        .btn-action:hover { filter: brightness(1.05); }
        .btn-action.in-cart {
            background: var(--green);
            color: #fff;
            box-shadow: 0 2px 6px rgba(5,150,105,.25);
        }

        .floating-cart {
            position: fixed;
            bottom: 16px;
            left: 50%;
            transform: translateX(-50%);
            width: calc(100% - 32px);
            max-width: 708px;
            background: var(--orange);
            color: #fff;
            padding: 14px 20px;
            border-radius: 14px;
            display: none;
            justify-content: space-between;
            align-items: center;
            font-weight: 800;
            box-shadow: 0 10px 28px rgba(18,103,67,.38);
            cursor: pointer;
            z-index: 30;
        }

        /* Modals */
        .modal-bg { position:fixed; inset:0; background:rgba(15,23,42,.55); backdrop-filter:blur(3px); display:none; align-items:flex-end; justify-content:center; z-index:50; }
        @media(min-width:640px){ .modal-bg { align-items:center; } }
        .modal {
            background: var(--card);
            border: 1px solid var(--border);
            color: var(--text);
            width: 100%;
            max-width: 520px;
            border-radius: 20px 20px 0 0;
            padding: 24px;
            max-height: 92vh;
            overflow-y: auto;
            box-shadow: 0 20px 50px rgba(15,23,42,.18);
        }
        @media(min-width:640px){ .modal { border-radius:18px; } }
        .cart-line { display:flex; justify-content:space-between; align-items:center; padding:10px 0; border-bottom:1px solid var(--border); font-size:.9rem; }
        input[type="text"], input[type="tel"], input[type="email"], textarea, select {
            width: 100%;
            background: var(--surface);
            border: 1px solid #cbd5e1;
            color: var(--text);
            padding: 11px 12px;
            border-radius: 9px;
            margin-top: 6px;
            margin-bottom: 12px;
            outline: none;
            font-size: .94rem;
        }
        input:focus, textarea:focus, select:focus {
            border-color: var(--orange);
            background: var(--card);
            box-shadow: 0 0 0 3px rgba(18,103,67,.12);
        }
        .btn-submit {
            width: 100%;
            background: var(--green);
            color: #fff;
            border: none;
            padding: 14px;
            border-radius: 10px;
            font-weight: 800;
            font-size: 1rem;
            cursor: pointer;
            box-shadow: 0 4px 12px rgba(5,150,105,.25);
        }
        .btn-submit:disabled { opacity:.6; cursor:not-allowed; }

        /* Dine-In / Takeaway Switcher */
        .type-toggle { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-top:6px; margin-bottom:14px; }
        .type-btn {
            background: var(--surface);
            border: 1px solid var(--border);
            color: var(--body);
            padding: 11px 10px;
            border-radius: 10px;
            font-size: .88rem;
            font-weight: 800;
            cursor: pointer;
            transition: .15s;
            text-align: center;
        }
        .type-btn.active {
            background: var(--orange-soft);
            border-color: var(--orange);
            color: var(--orange);
            box-shadow: 0 0 0 1px var(--orange);
        }

        /* Invoice Card Styling */
        .invoice-box {
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: 14px;
            padding: 18px;
            margin-bottom: 16px;
        }
        .inv-header { display:flex; justify-content:space-between; align-items:flex-start; gap:10px; border-bottom:1px dashed #cbd5e1; padding-bottom:12px; margin-bottom:12px; }
        .inv-ref { font-size:1.15rem; font-weight:800; color:var(--orange); letter-spacing:.5px; }
        .inv-badges { display:flex; flex-direction:column; align-items:flex-end; gap:5px; }
        .inv-badge-unpaid { background:#fffbeb; color:#b45309; border:1px solid #fde68a; font-size:.7rem; font-weight:800; padding:3px 9px; border-radius:6px; }
        .inv-badge-paid { background:var(--green-soft); color:#065f46; border:1px solid #a7f3d0; font-size:.7rem; font-weight:800; padding:3px 9px; border-radius:6px; }

        /* Kitchen Status Pills on Customer Invoice */
        .kit-badge { font-size:.7rem; font-weight:800; padding:3px 9px; border-radius:6px; letter-spacing:.3px; }
        .kit-new { background:#e2e8f0; color:#334155; border:1px solid #cbd5e1; }
        .kit-preparing { background:#eff6ff; color:#1d4ed8; border:1px solid #bfdbfe; }
        .kit-ready { background:#ecfdf5; color:#059669; border:1px solid #6ee7b7; }
        .kit-completed { background:var(--green-soft); color:#065f46; border:1px solid #a7f3d0; }
        .kit-cancelled { background:#fef2f2; color:#b91c1c; border:1px solid #fecaca; }

        .inv-item { display:flex; justify-content:space-between; font-size:.88rem; padding:6px 0; color:var(--text); }
        .inv-status-row { display:flex; justify-content:space-between; font-size:.82rem; color:var(--muted); margin-top:8px; padding-top:8px; border-top:1px dashed #cbd5e1; }
        .inv-total { display:flex; justify-content:space-between; border-top:1px solid #cbd5e1; margin-top:8px; padding-top:10px; font-size:1.1rem; font-weight:800; color:var(--text); }
        .counter-warning { background:#fffbeb; border:1.5px solid #f59e0b; color:#92400e; padding:13px; border-radius:11px; text-align:center; font-size:.9rem; font-weight:700; line-height:1.45; margin-top:14px; }
        .counter-preparing { background:#eff6ff; border:1.5px solid #3b82f6; color:#1e40af; padding:13px; border-radius:11px; text-align:center; font-size:.9rem; font-weight:700; line-height:1.45; margin-top:14px; }
        .counter-confirmed { background:var(--green-soft); border:1.5px solid var(--green); color:#065f46; padding:13px; border-radius:11px; text-align:center; font-size:.9rem; font-weight:700; line-height:1.45; margin-top:14px; }

        /* Completed & Paid Official Receipt Actions */
        .receipt-actions { margin-top:12px; padding-top:12px; border-top:1px dashed #cbd5e1; }
        .btn-receipt-dl { width:100%; background:#2563eb; color:#fff; border:none; padding:11px; border-radius:9px; font-weight:800; font-size:.88rem; cursor:pointer; display:flex; align-items:center; justify-content:center; gap:6px; }
        .email-row { display:flex; gap:8px; margin-top:8px; }
        .email-row input { margin:0; flex:1; padding:10px 12px; font-size:.86rem; background:var(--card); }
        .btn-receipt-email { background:var(--card); border:1px solid #cbd5e1; color:var(--text); padding:0 14px; border-radius:9px; font-weight:700; font-size:.83rem; cursor:pointer; white-space:nowrap; }
        .btn-receipt-email:hover { border-color:var(--orange); color:var(--orange); }

/* V3.7 customer payment fee disclosure */
.gateway-menu-notice {max-width:1180px;margin:12px auto;padding:12px 16px;background:#fff7ed;border:1px solid #fed7aa;border-radius:10px;color:#78350f;font-size:.83rem;line-height:1.5;display:flex;flex-wrap:wrap;gap:4px 12px;}
.gateway-menu-notice strong,.gateway-checkout-notice strong {font-weight:800;}
.gateway-checkout-notice {margin:8px 0 14px;padding:12px;background:#fff7ed;border:1px solid #fed7aa;border-radius:9px;color:#78350f;font-size:.82rem;line-height:1.5;}
.gateway-checkout-notice span {display:block;margin-top:4px;}
.gateway-checkout-notice[hidden] {display:none!important;}
.gateway-receipt-note {margin:10px 0;padding:9px 12px;border:1px solid #e2e8f0;border-radius:8px;color:#334155;font-size:.82rem;line-height:1.6;}
@media(max-width:1212px){.gateway-menu-notice {margin-left:16px;margin-right:16px;}}

/* V3.9: customer-facing menu layout only. Keep checkout and invoice styles intact. */
:root { --bg:#f5f7f4; --text:#152c24; --body:#34483f; --muted:#586d62; --border:#dce6de; --surface:#f1f6f2; --green:#126743; }
body { padding-bottom: calc(104px + env(safe-area-inset-bottom)); }
.hero { background:transparent; border:0; padding:0 20px; text-align:left; }
.top-bar { max-width:1120px; margin:0 auto; padding:12px 0; min-height:66px; gap:12px; }
.menu-brand { display:inline-flex; align-items:center; gap:9px; color:#28473a; text-decoration:none; font-size:.9rem; font-weight:600; }
.menu-brand img { border:1px solid #dce6de; border-radius:8px; background:white; }
.menu-brand strong { color:#126743; font-weight:800; }
.history-btn { background:white; padding:8px 12px; min-height:38px; border-radius:10px; max-width:100%; }
#guestGreeting { overflow-wrap:anywhere; }
.restaurant-banner { max-width:1120px; margin:0 auto; padding:30px 36px; background:linear-gradient(120deg,#105638,#126743); border-radius:20px; color:white; position:relative; overflow:hidden; display:flex; align-items:center; justify-content:space-between; gap:12px; }
.restaurant-content { position:relative; z-index:1; min-width:0; flex:1; }
.restaurant-kicker { display:flex; align-items:center; gap:7px; color:#cce9d7; font-size:.72rem; font-weight:800; letter-spacing:.12em; text-transform:uppercase; margin-bottom:8px; }
.restaurant-kicker span { width:7px; height:7px; border-radius:50%; background:#a9e8bf; }
.hero h1 { color:white; font-size:clamp(1.8rem,4vw,2.7rem); line-height:1.15; margin:0 0 7px; overflow-wrap:anywhere; }
.hero p { color:#e3f1e8; margin:0; font-size:.88rem; max-width:580px; }
.restaurant-art { flex:0 0 126px; color:#a8d6b8; opacity:.5; }
.restaurant-art svg { width:100%; display:block; }
.shop-contact-bar { justify-content:flex-start; margin:14px 0 0; max-width:100%; }
.contact-pill,.contact-pill-gps { color:#fff; background:#ffffff15; border-color:#ffffff55; overflow-wrap:anywhere; max-width:100%; }
.contact-pill:hover,.contact-pill-gps:hover { background:white; color:#126743; }
.gateway-menu-notice { max-width:1120px; margin:12px auto 0; padding:9px 13px; font-size:.77rem; border-radius:9px; gap:3px 7px; }
@media(max-width:1160px){ .gateway-menu-notice { margin-left:20px; margin-right:20px; } }
.menu-heading { max-width:1160px; margin:0 auto; padding:24px 20px 12px; display:flex; justify-content:space-between; align-items:flex-end; gap:16px; }
.menu-eyebrow { font-size:.65rem; letter-spacing:.12em; color:#126743; font-weight:800; }
.menu-heading h2 { font-size:1.65rem; letter-spacing:-.045em; line-height:1.25; margin:3px 0; }
.menu-heading p { font-size:.78rem; color:var(--muted); }
.menu-search { display:flex; align-items:center; gap:8px; background:white; border:1px solid var(--border); border-radius:11px; padding:0 12px; color:var(--muted); width:min(100%,290px); min-height:44px; }
.menu-search input { background:transparent; border:0; min-width:0; width:100%; font-size:16px; color:var(--text); outline:none; padding:10px 0; }
.menu-search:focus-within { outline:2px solid #126743; outline-offset:1px; }
.cat-bar { padding:0; border:0; background:rgba(245,247,244,.96); box-shadow:none; display:block; }
.cat-inner { max-width:1160px; margin:auto; padding:7px 20px 12px; display:flex; align-items:center; gap:8px; overflow-x:auto; scrollbar-width:thin; }
.pill-btn { flex-shrink:0; min-height:39px; padding:8px 17px; box-shadow:none; }
.pill-btn.active { box-shadow:none; }
#menuContainer { max-width:1160px; margin:4px auto 0; padding:0 20px; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; align-items:stretch; }
#menuContainer .item-card { display:flex; flex-direction:column; align-items:stretch; gap:0; padding:0; border-radius:15px; overflow:hidden; min-width:0; height:auto; box-shadow:0 3px 12px #163c2d08; }
#menuContainer .item-card[hidden], .item-img[hidden], #menuNoResults[hidden] { display:none!important; }
.item-media { position:relative; aspect-ratio:4/3; background:#eaf3eb; overflow:hidden; }
.item-placeholder { position:absolute; inset:0; display:grid; place-items:center; color:#8bb6a0; }
.item-placeholder svg { width:40%; max-width:80px; }
.item-media .item-img { position:absolute; inset:0; display:block; width:100%; height:100%; border:0; border-radius:0; object-fit:cover; background:#eaf3eb; }
#menuContainer .item-body { padding:13px; height:auto; flex:1; }
.item-category { font-size:.65rem; font-weight:800; color:#126743; text-transform:uppercase; letter-spacing:.07em; overflow-wrap:anywhere; }
.item-body h3 { font-size:1.02rem; line-height:1.35; margin:5px 0; overflow-wrap:anywhere; }
.item-body p { font-size:.77rem; margin:0 0 8px; overflow-wrap:anywhere; }
.item-pricing { margin:4px 0 2px; overflow-wrap:anywhere; }
.item-pricing small { display:block; color:var(--muted); font-size:.72rem; }
.price-tag { font-size:1.1rem; }
.price-unit { font-size:.7rem; }
#menuContainer .controls { margin-top:auto; padding-top:11px; flex-wrap:wrap; gap:7px; }
#menuContainer .stepper { border-radius:9px; }
#menuContainer .stepper button { width:32px; height:38px; }
#menuContainer .stepper span { padding:0 8px; }
#menuContainer .btn-action { min-height:40px; flex:1 1 112px; border-radius:9px; padding:8px; font-size:.78rem; box-shadow:none; }
#menuContainer .btn-action.in-cart { background:#eaf7f0; color:#105638; border:1px solid #b9d9c6; }
.menu-no-results { max-width:1120px; margin:20px auto; padding:20px; text-align:center; color:var(--muted); }
.menu-footer { text-align:center; padding:28px 16px 12px; font-size:.72rem; }
.menu-footer a { color:var(--muted); text-decoration:none; }
.floating-cart { border:0; background:#105638; bottom:calc(14px + env(safe-area-inset-bottom)); width:calc(100% - 28px); max-width:600px; padding:11px 15px; border-radius:13px; text-align:left; font-size:.88rem; gap:8px; box-shadow:0 8px 24px #10563845; }
.cart-summary { display:flex; align-items:center; gap:10px; }
.cart-icon { display:grid; place-items:center; background:#ffffff20; border-radius:9px; width:38px; height:38px; }
.cart-summary #floatCount { display:block; font-size:.7rem; font-weight:600; color:#d9f0e1; }
.cart-summary #floatTotal { display:block; font-size:1rem; }
button:focus-visible,a:focus-visible { outline:3px solid #2a9263; outline-offset:3px; }
@media(min-width:680px){ #menuContainer { grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; } #menuContainer .item-body { padding:16px; } }
@media(min-width:1000px){ #menuContainer { grid-template-columns:repeat(4,minmax(0,1fr)); } }
@media(max-width:600px){
 .hero { padding:0 14px; } .top-bar { padding:10px 0; min-height:0; gap:8px; }
 .top-bar-right { justify-content:flex-start; gap:7px; } .menu-brand { font-size:.83rem; }
 .restaurant-banner { padding:21px 18px; border-radius:15px; } .restaurant-art { flex-basis:66px; opacity:.36; }
 .hero h1 { font-size:1.75rem; } .hero p { font-size:.78rem; }
 .gateway-menu-notice { margin:10px 14px 0; font-size:.73rem; }
 .menu-heading { padding:17px 14px 9px; gap:10px; align-items:center; flex-wrap:wrap; }
 .menu-heading h2 { font-size:1.4rem; } .menu-search { width:100%; }
 .cat-inner { padding:6px 14px 10px; } #menuContainer { padding:0 14px; gap:10px; }
 #menuContainer .item-body { padding:10px; } .item-body h3 { font-size:.92rem; }
 #menuContainer .btn-action { flex:1 1 100%; } .price-tag { font-size:1rem; }
}
@media(max-width:340px){ #menuContainer { grid-template-columns:1fr; } .restaurant-art{display:none;} }
