/* ================================================================
   حلال فور يو — ELECTRONIC MENU STYLESHEET
   ----------------------------------------------------------------
   Design language: warm ivory paper, deep pomegranate red and
   brushed brass gold — inspired by Cairo's spice markets and
   mashrabiya woodwork rather than generic "food app" defaults.
   ================================================================ */

/* ---------------------------------------------------------------
   1. DESIGN TOKENS
   --------------------------------------------------------------- */
:root {
    /* Color */
    --ink: #1B1512;
    --ink-soft: #4A3E33;
    --bg: #FBF7EF;
    --surface: #ffffff;
    --primary: #7A1F2B;
    --primary-dark: #5A1620;
    --primary-tint: #F3E4E1;
    --gold: #C89B3C;
    --gold-light: #E4C878;
    --muted: #8A7960;
    --border: #E8DFCF;
    --whatsapp: #1F8A5D;
    --whatsapp-dark: #16694A;
    --danger: #B5342B;
    --danger-tint: #FBE9E7;

    /* Typography */
    --font-display: 'Lalezar', 'Tajawal', sans-serif;
    --font-body: 'Tajawal', system-ui, sans-serif;

    /* Layout */
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow-card: 0 4px 16px rgba(27, 21, 18, 0.08);
    --shadow-lift: 0 10px 30px rgba(27, 21, 18, 0.16);
    --header-h: 128px;
    --nav-h: 56px;
    --content-max: 1160px;

    color-scheme: light;
}

/* ---------------------------------------------------------------
   2. RESET & BASE
   --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--ink);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
button { font-family: inherit; }
input, textarea { font-family: inherit; font-size: 16px; }

a { color: inherit; }

::selection { background: var(--gold-light); color: var(--ink); }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
    html { scroll-behavior: auto; }
}

/* Visible keyboard focus */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
}

/* ---------------------------------------------------------------
   3. HEADER
   --------------------------------------------------------------- */
.site-header {
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 16px 16px 14px;
    position: sticky;
    top: 0;
    z-index: 30;
    box-shadow: 0 4px 18px rgba(27, 21, 18, 0.18);
}

.header-top {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: var(--content-max);
    margin: 0 auto;
}

.brand-logo {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.brand-text { flex: 1; min-width: 0; }

.brand-name {
    font-family: var(--font-display);
    font-size: 26px;
    line-height: 1.1;
    margin: 0;
    letter-spacing: 0.5px;
    color: var(--gold-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand-slogan {
    margin: 2px 0 0;
    font-size: 13.5px;
    color: rgba(255,255,255,0.82);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.info-btn {
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s ease;
}
.info-btn:hover { background: rgba(255,255,255,0.24); }

.search-wrap {
    position: relative;
    max-width: var(--content-max);
    margin: 14px auto 0;
}

.search-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    pointer-events: none;
}

.search-input {
    width: 100%;
    height: 46px;
    border-radius: var(--radius-md);
    border: none;
    background: #fff;
    padding: 0 44px 0 40px;
    font-size: 15px;
    color: var(--ink);
    box-shadow: 0 2px 10px rgba(0,0,0,0.12);
}
.search-input::placeholder { color: var(--muted); }

.search-clear {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: none;
    background: var(--border);
    color: var(--ink-soft);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---------------------------------------------------------------
   4. CATEGORY NAV
   --------------------------------------------------------------- */
.category-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 10px 16px;
    background: var(--bg);
    position: sticky;
    top: var(--header-actual-h, 0px);
    z-index: 20;
    border-bottom: 1px solid var(--border);
    max-width: var(--content-max);
    margin: 0 auto;
}
.category-nav::-webkit-scrollbar { display: none; }

.category-chip {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    border-radius: 999px;
    border: 1.5px solid var(--border);
    background: var(--surface);
    color: var(--ink-soft);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.category-chip .chip-icon { font-size: 15px; }

.category-chip:hover { border-color: var(--gold); }

.category-chip.is-active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}
.category-chip.is-active:active { transform: scale(0.97); }

/* ---------------------------------------------------------------
   5. PRODUCT GRID & CARDS
   --------------------------------------------------------------- */
.main-content {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 18px 16px 120px;
}

.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.product-card {
    background: var(--surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.product-card:hover { box-shadow: var(--shadow-lift); }
.product-card:active { transform: scale(0.99); }

.product-card.is-unavailable { opacity: 0.55; }

.card-image-wrap {
    position: relative;
    aspect-ratio: 4 / 3;
    background: var(--primary-tint);
    overflow: hidden;
}

.card-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--gold);
    color: var(--ink);
    font-size: 12px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 999px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.card-unavailable-badge {
    position: absolute;
    inset: 0;
    background: rgba(27,21,18,0.55);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.card-body {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.card-name {
    font-size: 16.5px;
    font-weight: 700;
    margin: 0;
    color: var(--ink);
}

.card-description {
    font-size: 13px;
    color: var(--muted);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-price {
    font-weight: 900;
    font-size: 16px;
    color: var(--primary);
}

.card-add-btn {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease;
}
.card-add-btn:hover { background: var(--primary-dark); }
.card-add-btn:active { transform: scale(0.94); }

/* Category section heading (shown when "الكل" is selected) */
.category-heading {
    font-family: var(--font-display);
    font-size: 20px;
    color: var(--primary);
    margin: 22px 2px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.category-heading:first-child { margin-top: 4px; }

/* ---------------------------------------------------------------
   6. EMPTY STATES
   --------------------------------------------------------------- */
.empty-state, .cart-empty-state {
    text-align: center;
    padding: 56px 20px;
    color: var(--muted);
}
.empty-state-icon { font-size: 46px; margin-bottom: 10px; }
.empty-state-title {
    font-family: var(--font-display);
    font-size: 19px;
    color: var(--ink);
    margin: 0 0 6px;
}
.empty-state-text { margin: 0; font-size: 14px; }

/* ---------------------------------------------------------------
   7. FLOATING CART BAR
   --------------------------------------------------------------- */
.cart-bar {
    position: fixed;
    bottom: 16px;
    left: 16px;
    right: 16px;
    max-width: 520px;
    margin: 0 auto;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 26px rgba(122, 31, 43, 0.4);
    cursor: pointer;
    z-index: 25;
    animation: cart-bar-in 0.25s ease;
}

@keyframes cart-bar-in {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.cart-bar-icon {
    position: relative;
    font-size: 20px;
    display: flex;
}

.cart-bar-count {
    position: absolute;
    top: -8px;
    left: -10px;
    background: var(--gold);
    color: var(--ink);
    font-size: 11px;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.cart-bar-label {
    flex: 1;
    text-align: right;
    font-weight: 700;
    font-size: 15px;
}

.cart-bar-total {
    font-weight: 900;
    font-size: 15px;
    background: rgba(255,255,255,0.15);
    padding: 5px 10px;
    border-radius: 999px;
}

/* ---------------------------------------------------------------
   8. BOTTOM SHEETS (product / cart / checkout / info)
   --------------------------------------------------------------- */
.sheet-overlay {
    position: fixed;
    inset: 0;
    background: rgba(27, 21, 18, 0.5);
    z-index: 40;
    animation: overlay-in 0.2s ease;
}
@keyframes overlay-in { from { opacity: 0; } to { opacity: 1; } }

.bottom-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    max-width: 560px;
    margin: 0 auto;
    background: var(--surface);
    border-radius: 22px 22px 0 0;
    z-index: 41;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.25);
    animation: sheet-in 0.28s cubic-bezier(0.32, 0.72, 0, 1);
}

@keyframes sheet-in {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.bottom-sheet-small { max-height: 60vh; }

/* .bottom-sheet sets display:flex above, which (at equal selector
   specificity) would otherwise override the browser's own
   [hidden] { display: none } rule and leave every sheet visible
   at all times. This rule wins on specificity and keeps [hidden]
   sheets and overlays actually hidden. */
.bottom-sheet[hidden],
.sheet-overlay[hidden] {
    display: none;
}

.sheet-handle {
    width: 40px;
    height: 4px;
    background: var(--border);
    border-radius: 999px;
    margin: 10px auto 0;
    flex-shrink: 0;
}

.sheet-close {
    position: absolute;
    top: 12px;
    left: 14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--bg);
    color: var(--ink-soft);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.sheet-scroll {
    overflow-y: auto;
    flex: 1;
    -webkit-overflow-scrolling: touch;
}

.sheet-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px 4px;
}

.sheet-title {
    font-family: var(--font-display);
    font-size: 21px;
    color: var(--primary);
    margin: 0;
}

.link-btn {
    background: none;
    border: none;
    color: var(--danger);
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    padding: 6px;
}

.sheet-body { padding: 16px 20px 8px; }

.sheet-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    background: var(--primary-tint);
}

.sheet-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.sheet-name {
    font-size: 21px;
    font-weight: 800;
    margin: 0;
}

.sheet-price {
    font-weight: 900;
    font-size: 18px;
    color: var(--primary);
    white-space: nowrap;
    margin: 0;
}

.sheet-description {
    color: var(--muted);
    font-size: 14px;
    margin: 8px 0 0;
}

.sheet-extras { margin-top: 18px; display: flex; flex-direction: column; gap: 18px; }

.extra-group-title {
    font-weight: 700;
    font-size: 15px;
    margin: 0 0 10px;
}

.extra-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 4px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
}
.extra-option:last-child { border-bottom: none; }

.extra-option-left {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14.5px;
}

.extra-option-price {
    color: var(--muted);
    font-size: 13.5px;
}

.extra-option input[type="checkbox"],
.extra-option input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
    cursor: pointer;
}

.sheet-quantity {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.sheet-quantity-label { font-weight: 700; font-size: 15px; }

.qty-control {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--bg);
    border-radius: 999px;
    padding: 4px;
    border: 1px solid var(--border);
}

.qty-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: var(--surface);
    color: var(--primary);
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}
.qty-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.qty-value { min-width: 22px; text-align: center; font-weight: 800; font-size: 15px; }

.sheet-footer {
    padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--border);
    flex-shrink: 0;
    background: var(--surface);
}

/* ---------------------------------------------------------------
   9. BUTTONS
   --------------------------------------------------------------- */
.btn {
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 800;
    font-size: 15.5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 18px;
    transition: background 0.15s ease, transform 0.1s ease;
}
.btn-block { width: 100%; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-primary:active { transform: scale(0.98); }
.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn-whatsapp:hover { background: var(--whatsapp-dark); }
.btn-whatsapp:active { transform: scale(0.98); }

/* ---------------------------------------------------------------
   10. CART ITEMS LIST
   --------------------------------------------------------------- */
.cart-items-list { padding: 6px 20px 0; display: flex; flex-direction: column; gap: 14px; }

.cart-item {
    display: flex;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.cart-item-image {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
    background: var(--primary-tint);
}

.cart-item-body { flex: 1; min-width: 0; }

.cart-item-name {
    font-weight: 700;
    font-size: 14.5px;
    margin: 0 0 2px;
}

.cart-item-extras {
    font-size: 12.5px;
    color: var(--muted);
    margin: 0 0 6px;
}

.cart-item-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-item-price { font-weight: 800; color: var(--primary); font-size: 14px; }

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-item-qty .qty-btn { width: 28px; height: 28px; font-size: 15px; }

.cart-item-remove {
    background: none;
    border: none;
    color: var(--danger);
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    padding: 4px;
    flex-shrink: 0;
}

.cart-summary { padding: 14px 20px 4px; }

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--ink-soft);
    padding: 6px 0;
}

.summary-total {
    font-weight: 900;
    font-size: 17px;
    color: var(--ink);
    border-top: 1px solid var(--border);
    margin-top: 4px;
    padding-top: 10px;
}

/* ---------------------------------------------------------------
   11. CHECKOUT FORM
   --------------------------------------------------------------- */
.checkout-form { padding: 8px 20px 0; display: flex; flex-direction: column; gap: 16px; }

.field { display: flex; flex-direction: column; gap: 6px; }

.field label, .field-label {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--ink-soft);
}

.field input, .field textarea {
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    background: var(--bg);
    color: var(--ink);
    resize: vertical;
}
.field input:focus, .field textarea:focus {
    border-color: var(--primary);
    outline: none;
    background: var(--surface);
}

.field select.area-select {
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 40px 12px 14px;
    background: var(--bg);
    color: var(--ink);
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%238A7960' stroke-width='2'><polyline points='6 9 12 15 18 9'/></svg>");
    background-repeat: no-repeat;
    background-position: left 12px center;
    cursor: pointer;
}
.field select.area-select:focus {
    border-color: var(--primary);
    outline: none;
    background-color: var(--surface);
}
.field select.area-select:invalid {
    color: var(--muted);
}

.field.has-error input, .field.has-error textarea {
    border-color: var(--danger);
    background: var(--danger-tint);
}

.field-error {
    color: var(--danger);
    font-size: 12.5px;
    font-weight: 600;
}

.order-type-toggle {
    display: flex;
    gap: 8px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    padding: 4px;
    border: 1px solid var(--border);
}

.toggle-option {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--ink-soft);
    padding: 10px 8px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13.5px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}
.toggle-option.is-active { background: var(--primary); color: #fff; }

.delivery-fields { display: flex; flex-direction: column; gap: 16px; }

.info-list { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-direction: column; gap: 12px; font-size: 14.5px; }
.info-list li { display: flex; justify-content: space-between; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.info-list li:last-child { border-bottom: none; }

/* ---------------------------------------------------------------
   12. TOASTS
   --------------------------------------------------------------- */
.toast-container {
    position: fixed;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 60;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: calc(100% - 32px);
    max-width: 420px;
    pointer-events: none;
}

.toast {
    background: var(--ink);
    color: #fff;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    gap: 8px;
    animation: toast-in 0.22s ease, toast-out 0.25s ease 2.6s forwards;
}

.toast.toast-success { background: var(--whatsapp-dark); }
.toast.toast-error { background: var(--danger); }

@keyframes toast-in {
    from { transform: translateY(-14px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
@keyframes toast-out {
    to { transform: translateY(-14px); opacity: 0; }
}

/* ---------------------------------------------------------------
   13. RESPONSIVE — tablet & desktop
   --------------------------------------------------------------- */
@media (min-width: 640px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .cart-bar { max-width: 420px; }
}

@media (min-width: 900px) {
    .site-header { padding: 20px 24px 16px; }
    .brand-name { font-size: 30px; }
    .main-content { padding: 26px 24px 60px; }
    .products-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
    .category-nav { padding: 12px 24px; }

    .bottom-sheet {
        left: auto;
        right: 24px;
        bottom: 24px;
        border-radius: var(--radius-lg);
        max-height: 82vh;
        box-shadow: var(--shadow-lift);
    }
    .cart-bar { left: auto; right: 24px; bottom: 24px; }
}

@media (min-width: 1200px) {
    .products-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Desktop: sheets behave like centered dialogs instead of edge-pinned */
@media (min-width: 900px) and (min-height: 700px) {
    .bottom-sheet { top: 6vh; max-height: 88vh; bottom: auto; }
}

/* ---------------------------------------------------------------
   PWA INSTALL BUTTON + iOS HELP
   --------------------------------------------------------------- */
.pwa-install-btn {
    width: 100%;
    margin-top: 10px;
    border: 0;
    border-radius: 12px;
    padding: 11px 14px;
    background: var(--ink, #171717);
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.pwa-install-btn[hidden] { display: none !important; }

.pwa-help-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: end center;
    padding: 16px;
    background: rgba(0,0,0,.55);
}

.pwa-help-overlay[hidden] { display: none !important; }

.pwa-help-card {
    position: relative;
    width: min(520px, 100%);
    padding: 24px 20px 20px;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 18px 60px rgba(0,0,0,.28);
    text-align: center;
}

.pwa-help-icon { font-size: 42px; margin-bottom: 4px; }
.pwa-help-card h2 { margin: 0 0 8px; font-size: 22px; }
.pwa-help-card p { margin: 0 0 14px; color: #555; line-height: 1.7; }
.pwa-help-card ol { margin: 0 0 18px; padding-right: 24px; text-align: right; line-height: 2; color: #222; }
.pwa-help-close { position: absolute; top: 10px; left: 12px; width: 34px; height: 34px; border: 0; background: transparent; font-size: 28px; cursor: pointer; color: #555; }

@media (min-width: 640px) {
    .pwa-install-btn { width: auto; margin-right: auto; margin-left: auto; display: block; }
}

/* ---------------------------------------------------------------
   MENU UPDATE BANNER
   Shown when a customer has the menu open/installed and the
   restaurant has changed prices or products since it was loaded.
   --------------------------------------------------------------- */
.menu-update-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 10px 16px calc(10px + env(safe-area-inset-top));
    background: var(--primary, #7A1F2B);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
    animation: menu-update-banner-in 0.25s ease;
}

@keyframes menu-update-banner-in {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

.menu-update-banner button {
    background: var(--gold, #C89B3C);
    color: var(--ink, #1B1512);
    border: none;
    border-radius: 999px;
    padding: 7px 16px;
    font-weight: 800;
    font-size: 13.5px;
    cursor: pointer;
}
.menu-update-banner button:hover { filter: brightness(1.05); }
