/* ==========================================================================
   Taste Haven QR menu
   Design language: refined editorial-modern. Cool slate neutrals, one rust
   accent, Outfit (display) + Geist (body) + Cairo (Arabic).
   Shape rule: controls are full-pill, cards 22px, inner media 16px, tiles 14px.
   Logical properties (inline-start/end) handle RTL; only transforms need a flip.
   ========================================================================== */

:root {
    color-scheme: light dark;

    --font-display: 'Outfit', 'Cairo', system-ui, sans-serif;
    --font-body: 'Geist', 'Cairo', system-ui, sans-serif;
    --track-display: -0.03em;

    --ink: #12161c;
    --bg: #f3f4f6;
    --surface: #ffffff;
    --surface-2: #eceef1;
    --text: #171c23;
    --muted: #5b6470;
    --line: rgba(18, 22, 28, 0.09);

    --accent: #b4472a;
    --accent-strong: #983820;
    --accent-soft: rgba(180, 71, 42, 0.1);
    --on-accent: #ffffff;
    --accent-on-dark: #e9886a;

    --wa: #0f7d4e;
    --wa-strong: #0b6740;

    --glass: rgba(255, 255, 255, 0.82);
    --pill-bg: #12161c;
    --pill-fg: #ffffff;
    --toggle-off: #cdd2d9;
    --shadow-rgb: 18 24 33;

    --r-card: 22px;
    --r-media: 16px;
    --r-tile: 14px;
    --r-pill: 999px;

    --shadow-card: 0 1px 2px rgb(var(--shadow-rgb) / 0.05), 0 16px 34px -20px rgb(var(--shadow-rgb) / 0.3);
    --shadow-lift: 0 2px 4px rgb(var(--shadow-rgb) / 0.06), 0 26px 44px -22px rgb(var(--shadow-rgb) / 0.4);
    --shadow-float: 0 24px 60px -20px rgb(var(--shadow-rgb) / 0.45);

    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --transition: 0.3s var(--ease);

    --topbar-h: 36px;
    --header-h: 64px;
    --catnav-h: 60px;
    --sticky-offset: calc(var(--topbar-h) + var(--header-h) + var(--catnav-h));

    --z-fab: 500;
    --z-controls: 850;
    --z-catnav: 900;
    --z-header: 1000;
    --z-topbar: 1100;
    --z-menu: 1200;
    --z-modal: 2000;
    --z-cart: 2001;
    --z-popup: 2100;   /* dish options + nutrition: above the cart, because "edit" opens them from inside the cart */
    --z-lightbox: 3000;

    --sx: 1;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0d1014;
        --surface: #161a21;
        --surface-2: #1e232b;
        --text: #e9ecef;
        --muted: #98a2ae;
        --line: rgba(255, 255, 255, 0.09);

        --accent: #ea8a6c;
        --accent-strong: #f2a085;
        --accent-soft: rgba(234, 138, 108, 0.14);
        --on-accent: #1b0d07;

        --glass: rgba(13, 16, 20, 0.8);
        --pill-bg: #e9ecef;
        --pill-fg: #0d1014;
        --toggle-off: #39414c;
        --shadow-rgb: 0 0 0;
    }
}

[dir="rtl"] { direction: rtl; --sx: -1; }
[lang="ar"] {
    --font-display: 'Cairo', system-ui, sans-serif;
    --font-body: 'Cairo', system-ui, sans-serif;
    --track-display: 0em;
}

/* ---------- Base ---------- */

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img { max-width: 100%; }
ul { list-style: none; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* Fine grain, fixed and non-interactive so it never repaints with scroll. */
body::after {
    content: '';
    position: fixed; inset: 0;
    pointer-events: none;
    z-index: 4000;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: var(--track-display);
    text-wrap: balance;
}

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
    position: fixed; top: 8px; inset-inline-start: 8px;
    z-index: 5000; padding: 10px 18px;
    background: var(--pill-bg); color: var(--pill-fg);
    border-radius: var(--r-pill); font-weight: 600; font-size: 0.85rem;
    transform: translateY(-200%);
    transition: transform 0.2s;
}
.skip-link:focus { transform: translateY(0); }

/* ---------- Top bar ---------- */

.top-bar {
    position: fixed; top: 0; inset-inline: 0;
    height: var(--topbar-h);
    background: #0c0f13;
    color: rgba(255, 255, 255, 0.72);
    z-index: var(--z-topbar);
    display: flex; align-items: center;
    font-size: 0.72rem; letter-spacing: 0.04em;
}
.top-bar .container {
    width: 100%;
    display: flex; justify-content: space-between; align-items: center;
}
.topbar-info { display: flex; align-items: center; gap: 12px; }
.topbar-info a { display: flex; align-items: center; gap: 7px; transition: color 0.2s; }
.topbar-info a:hover { color: #fff; }
.topbar-info i { font-size: 0.72rem; color: var(--accent-on-dark); }
.topbar-social { display: flex; align-items: center; gap: 4px; }
.topbar-social a { color: rgba(255,255,255,0.78); font-size: 0.7rem; padding: 6px; transition: color 0.2s, transform 0.3s var(--ease); }
.topbar-social a:hover { color: #fff; transform: translateY(-2px); }
@media (max-width: 640px) { .topbar-info span { display: none; } }

/* ---------- Header ---------- */

.top-header {
    position: fixed; top: var(--topbar-h); inset-inline: 0;
    height: var(--header-h);
    background: var(--glass);
    backdrop-filter: blur(22px) saturate(1.6);
    -webkit-backdrop-filter: blur(22px) saturate(1.6);
    z-index: var(--z-header);
    display: flex; align-items: center;
    box-shadow: 0 1px 0 color-mix(in srgb, var(--text) 7%, transparent);
}
.top-header .container {
    width: 100%;
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
}
.brand { display: flex; align-items: center; justify-content: center; }
.brand-logo { width: 44px; height: 44px; border-radius: 13px; display: block; object-fit: cover; }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }

.hamburger {
    width: 42px; height: 42px; padding: 0; border: none; cursor: pointer;
    border-radius: 50%; background: var(--surface-2); justify-self: start;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    transition: background 0.25s;
}
.hamburger:hover { background: color-mix(in srgb, var(--accent) 14%, var(--surface-2)); }
.hamburger span {
    display: block; width: 17px; height: 1.8px;
    background: var(--text); border-radius: 2px;
    transition: transform 0.35s var(--ease), opacity 0.2s, width 0.3s var(--ease);
    transform-origin: center;
}
.hamburger span:nth-child(2) { width: 11px; align-self: center; }
.hamburger:hover span:nth-child(2) { width: 17px; }
.hamburger.active span:nth-child(1) { transform: translateY(5.8px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-5.8px) rotate(-45deg); }

.lang-switcher { position: relative; }
.lang-btn {
    height: 38px; padding: 0 15px; border: none; border-radius: var(--r-pill);
    background: var(--surface-2); color: var(--text); cursor: pointer;
    font-size: 0.74rem; font-weight: 600; letter-spacing: 0.14em;
    display: flex; align-items: center;
    transition: background 0.25s, color 0.25s;
}
.lang-btn:hover { background: color-mix(in srgb, var(--accent) 14%, var(--surface-2)); color: var(--accent-strong); }
.lang-dropdown {
    position: absolute; top: calc(100% + 10px); inset-inline-end: 0;
    background: var(--surface); border-radius: var(--r-tile);
    box-shadow: var(--shadow-float); padding: 6px;
    min-width: 150px; opacity: 0; visibility: hidden;
    transform: translateY(-8px) scale(0.98); transition: var(--transition);
    z-index: 1001;
}
.lang-dropdown.open { opacity: 1; visibility: visible; transform: none; }
.lang-dropdown li {
    padding: 10px 14px; font-size: 0.92rem; cursor: pointer;
    border-radius: 10px; transition: background 0.2s;
}
.lang-dropdown li:hover { background: var(--surface-2); }
.lang-dropdown li.active { color: var(--accent); font-weight: 600; }

.cart-trigger {
    position: relative; border: none; padding: 0; cursor: pointer;
    width: 42px; height: 42px; border-radius: 50%;
    background: color-mix(in srgb, var(--accent) 12%, transparent);
    display: flex; align-items: center; justify-content: center;
    color: var(--accent); font-size: 1.05rem;
    transition: transform 0.3s var(--ease), background 0.25s;
}
.cart-trigger:hover { background: color-mix(in srgb, var(--accent) 22%, transparent); }
.cart-trigger:active { transform: scale(0.94); }
.cart-badge {
    position: absolute; top: -3px; inset-inline-end: -3px;
    min-width: 18px; height: 18px; padding: 0 5px;
    background: var(--text); color: var(--bg);
    font-size: 0.64rem; font-weight: 700; line-height: 1;
    border-radius: var(--r-pill);
    display: flex; align-items: center; justify-content: center;
}
.cart-badge.bump { animation: bump 0.45s var(--ease); }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }

/* ---------- Mobile menu ---------- */

.mobile-menu-overlay {
    position: fixed; inset: 0;
    background: rgba(8, 10, 13, 0.5); backdrop-filter: blur(6px);
    z-index: var(--z-menu); opacity: 0; visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}
.mobile-menu-overlay.open { opacity: 1; visibility: visible; }
.mobile-menu-panel {
    position: fixed; top: 0; bottom: 0; inset-inline-start: 0;
    width: 88%; max-width: 360px; background: var(--surface);
    z-index: calc(var(--z-menu) + 1);
    transform: translateX(calc(-100% * var(--sx)));
    transition: transform 0.45s var(--ease);
    display: flex; flex-direction: column;
    padding-top: 88px;
}
.mobile-menu-panel.open { transform: translateX(0); }
.mobile-menu-close {
    position: absolute; top: 22px; inset-inline-end: 20px;
    width: 38px; height: 38px; background: none; border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem; color: var(--text); transition: color 0.2s, transform 0.3s var(--ease);
}
.mobile-menu-close:hover { color: var(--accent); transform: rotate(90deg); }
.mobile-menu-nav { padding: 8px 0 20px; flex: 1; overflow-y: auto; }
.mobile-menu-nav li a {
    display: flex; align-items: center; gap: 16px;
    padding: 14px 28px;
    font-family: var(--font-display); font-size: 1.6rem; font-weight: 500;
    letter-spacing: var(--track-display);
    color: var(--text);
    transition: color 0.2s, padding 0.3s var(--ease);
}
.mobile-menu-nav li a i { width: 26px; color: var(--accent); font-size: 1.1rem; text-align: center; }
.mobile-menu-nav li a:hover, .mobile-menu-nav li a.active { color: var(--accent); padding-inline-start: 36px; }
.mobile-menu-footer { padding: 24px 28px 32px; background: var(--bg); }
.mobile-menu-footer .menu-phone {
    display: flex; align-items: center; gap: 10px;
    font-weight: 600; color: var(--text); margin-bottom: 16px;
}
.mobile-menu-footer .menu-phone i { color: var(--accent); }
.mobile-menu-footer .menu-social { display: flex; gap: 18px; }
.mobile-menu-footer .menu-social a { color: var(--accent); font-size: 1rem; transition: transform 0.3s var(--ease); }
.mobile-menu-footer .menu-social a:hover { transform: translateY(-2px); }

/* ---------- Hero ---------- */

.hero {
    margin-top: calc(var(--topbar-h) + var(--header-h));
    position: relative; isolation: isolate; overflow: hidden;
    min-height: clamp(460px, 74dvh, 660px);
    display: flex; align-items: flex-end;
    background: var(--ink); color: #fff;
}
.hero-img {
    position: absolute; inset: 0; z-index: -2;
    width: 100%; height: 100%; object-fit: cover;
    transform: scale(1.04);
    animation: heroSettle 1.6s var(--ease) forwards;
}
@keyframes heroSettle { to { transform: scale(1); } }
.hero::after {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background:
        linear-gradient(180deg, rgba(10, 12, 16, 0.28) 0%, rgba(10, 12, 16, 0.1) 30%, rgba(10, 12, 16, 0.9) 100%),
        linear-gradient(90deg, rgba(10, 12, 16, 0.5) 0%, transparent 72%);
}
.hero-content { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px 44px; }
.hero h1 {
    font-size: clamp(2.3rem, 8vw, 4.2rem);
    line-height: 1.04; font-weight: 600;
    max-width: 18ch; color: #fff;
}
.hero p {
    max-width: 38ch; margin: 14px 0 28px;
    font-size: clamp(1rem, 2.6vw, 1.2rem); font-weight: 300;
    color: rgba(255, 255, 255, 0.84); line-height: 1.55;
}
.btn-hero {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 15px 28px; border-radius: var(--r-pill);
    background: var(--accent); color: var(--on-accent);
    font-weight: 600; font-size: 0.98rem; white-space: nowrap;
    transition: transform 0.3s var(--ease), background 0.2s;
}
.btn-hero i { font-size: 0.85rem; transition: transform 0.3s var(--ease); }
.btn-hero:hover { background: var(--accent-strong); transform: translateY(-2px); }
.btn-hero:hover i { transform: translateY(2px); }
.btn-hero:active { transform: scale(0.97); }

.hero-content > * { animation: riseIn 0.9s var(--ease) both; }
.hero-content > :nth-child(2) { animation-delay: 0.1s; }
.hero-content > :nth-child(3) { animation-delay: 0.2s; }
@keyframes riseIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* ---------- Daily specials ---------- */

.daily-section { padding: 64px 0 20px; }
.section-title { font-size: clamp(1.9rem, 5.4vw, 2.7rem); line-height: 1.08; }
.section-subtitle { color: var(--muted); margin: 8px 0 28px; max-width: 46ch; }
.daily-carousel {
    display: flex; gap: 16px;
    overflow-x: auto; scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 4px 20px 30px; scroll-padding-inline: 20px; scrollbar-width: none;
}
.daily-carousel::-webkit-scrollbar { display: none; }
@media (min-width: 1240px) {
    .daily-carousel { padding-inline: calc((100vw - 1200px) / 2 + 20px); scroll-padding-inline: calc((100vw - 1200px) / 2 + 20px); }
}
.daily-card {
    position: relative; flex: 0 0 min(78vw, 330px);
    aspect-ratio: 4 / 5; scroll-snap-align: start;
    border-radius: var(--r-card); overflow: hidden;
    background: var(--ink); color: #fff;
    box-shadow: var(--shadow-card);
    transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.daily-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }
.daily-card .img-wrap { position: absolute; inset: 0; }
.daily-card-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.9s var(--ease); }
.daily-card:hover .daily-card-img { transform: scale(1.05); }
.daily-card-body {
    position: absolute; inset-inline: 0; bottom: 0;
    padding: 72px 18px 18px;
    background: linear-gradient(to top, rgba(8, 10, 13, 0.94) 0%, rgba(8, 10, 13, 0.72) 55%, transparent 100%);
}
.daily-card-body h3 { font-size: 1.4rem; line-height: 1.15; color: #fff; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; }
.daily-card-body p {
    color: rgba(255, 255, 255, 0.8); font-size: 0.9rem; line-height: 1.5; margin: 6px 0 16px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.daily-card-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.daily-price { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; color: #fff; font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }

.img-wrap { position: relative; overflow: hidden; }
.img-zoom-btn {
    position: absolute; top: 12px; inset-inline-end: 12px; z-index: 2;
    width: 34px; height: 34px; border: none; padding: 0; cursor: pointer;
    border-radius: var(--r-pill);
    background: rgba(12, 15, 19, 0.38); color: #fff;
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center; font-size: 0.78rem;
    transition: background 0.2s, transform 0.3s var(--ease);
}
.img-zoom-btn:hover { background: rgba(12, 15, 19, 0.6); transform: scale(1.08); }

/* ---------- Category navigation ---------- */

.cat-nav {
    position: sticky; top: calc(var(--topbar-h) + var(--header-h));
    height: var(--catnav-h);
    display: flex; align-items: center;
    background: var(--glass);
    backdrop-filter: blur(18px) saturate(1.5);
    -webkit-backdrop-filter: blur(18px) saturate(1.5);
    box-shadow: 0 1px 0 var(--line);
    z-index: var(--z-catnav);
}
.cat-nav .container { width: 100%; overflow-x: auto; scrollbar-width: none; }
.cat-nav .container::-webkit-scrollbar { display: none; }
.cat-list { display: flex; gap: 6px; }
.cat-list a {
    display: block; padding: 10px 20px; border-radius: var(--r-pill);
    font-size: 0.9rem; font-weight: 500; color: var(--muted); white-space: nowrap;
    transition: background 0.3s var(--ease), color 0.3s;
}
.cat-list a:hover { color: var(--text); }
.cat-list a.active { background: var(--pill-bg); color: var(--pill-fg); font-weight: 600; }

/* ---------- Menu sections ---------- */

.menu-section { padding: 52px 20px 8px; max-width: 1200px; margin: 0 auto; scroll-margin-top: var(--sticky-offset); }
.menu-section h2 {
    font-size: clamp(2rem, 5.6vw, 2.9rem); line-height: 1.05; margin-bottom: 22px;
    opacity: 0; transform: translateY(26px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.menu-section.in-view h2 { opacity: 1; transform: none; }

.section-controls {
    position: sticky; top: calc(var(--sticky-offset) + 8px);
    z-index: var(--z-controls);
    display: flex; align-items: center; gap: 8px;
    margin-bottom: 30px; padding: 6px;
    border-radius: var(--r-pill);
    background: var(--glass);
    backdrop-filter: blur(16px) saturate(1.5);
    -webkit-backdrop-filter: blur(16px) saturate(1.5);
    box-shadow: 0 1px 2px rgb(var(--shadow-rgb) / 0.06), 0 12px 26px -16px rgb(var(--shadow-rgb) / 0.4);
    opacity: 0; transform: translateY(26px);
    transition: opacity 0.8s var(--ease) 0.1s, transform 0.8s var(--ease) 0.1s;
}
.menu-section.in-view .section-controls { opacity: 1; transform: none; }
/* Items fade out under the bar instead of being cut off by it. */
.section-controls::after {
    content: ''; position: absolute; inset-inline: 12px; top: 100%;
    height: 14px; pointer-events: none;
    background: linear-gradient(var(--bg), transparent);
}

.sub-cat-row {
    display: flex; gap: 6px; flex: 1; min-width: 0;
    overflow-x: auto; scrollbar-width: none;
}
.sub-cat-row::-webkit-scrollbar { display: none; }
.sub-cat-btn {
    padding: 9px 18px; border: none; border-radius: var(--r-pill);
    background: transparent; color: var(--muted);
    font-size: 0.86rem; font-weight: 500; white-space: nowrap; cursor: pointer;
    transition: background 0.3s var(--ease), color 0.2s;
}
.sub-cat-btn:hover { color: var(--text); }
.sub-cat-btn.active { background: var(--accent); color: var(--on-accent); font-weight: 600; }
.sub-cat-btn:active { transform: scale(0.96); }

.view-toggle { display: flex; gap: 2px; flex-shrink: 0; padding: 3px; border-radius: var(--r-pill); background: var(--surface-2); }
.view-btn {
    width: 34px; height: 34px; border: none; background: none; padding: 0; cursor: pointer;
    border-radius: var(--r-pill); color: var(--muted); font-size: 0.82rem;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.3s var(--ease), color 0.2s;
}
.view-btn:hover { color: var(--text); }
.view-btn.active { background: var(--pill-bg); color: var(--pill-fg); }

/* ---------- Dish grid and cards ---------- */

.menu-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 640px) { .menu-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
@media (min-width: 1024px) { .menu-grid { grid-template-columns: repeat(3, 1fr); gap: 28px; } }

.menu-grid.view-stack {
    display: flex; flex-wrap: nowrap; gap: 16px;
    overflow-x: auto; overflow-y: visible;
    padding: 10px 20px 40px;
    scroll-snap-type: x mandatory; scrollbar-width: thin;
}
.menu-grid.view-stack .dish-card {
    flex: 0 0 78%; max-width: 310px; scroll-snap-align: center;
    transform: scale(0.96); opacity: 0.72;
    transition: transform 0.35s var(--ease), opacity 0.35s;
}
.menu-grid.view-stack .dish-card.stacked-active,
.menu-grid.view-stack .dish-card:focus-within { transform: scale(1); opacity: 1; }
@media (min-width: 640px) { .menu-grid.view-stack .dish-card { flex-basis: 45%; } }
@media (min-width: 1024px) { .menu-grid.view-stack .dish-card { flex-basis: 30%; } }

.dish-card {
    background: var(--surface); border-radius: var(--r-card); overflow: hidden;
    display: flex; flex-direction: column;
    box-shadow: var(--shadow-card);
    transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.dish-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }
.dish-img-wrap { position: relative; overflow: hidden; aspect-ratio: 5 / 4; background: var(--surface-2); }
.dish-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.9s var(--ease); }
.dish-card:hover .dish-img { transform: scale(1.06); }

.dish-body { padding: 18px 20px 20px; flex: 1; display: flex; flex-direction: column; }
.dish-name {
    font-size: 1.22rem; line-height: 1.2; margin-bottom: 6px;
    display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px;
}
.dietary-icons { display: inline-flex; align-items: center; gap: 7px; font-size: 0.74rem; }
.dish-desc {
    font-size: 0.92rem; color: var(--muted); line-height: 1.55; margin-bottom: 12px;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.dish-meta { margin-bottom: 18px; }
.dish-tag { font-size: 0.78rem; color: var(--muted); font-weight: 500; opacity: 0.85; }
.dish-footer { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dish-price {
    font-family: var(--font-display); font-size: 1.4rem; font-weight: 600;
    font-variant-numeric: tabular-nums; flex-shrink: 0; direction: ltr; unicode-bidi: isolate;
}
.dish-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* ---------- Buttons ---------- */

.btn-add-cart, .btn-primary {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    border: none; border-radius: var(--r-pill); cursor: pointer;
    background: var(--accent); color: var(--on-accent);
    padding: 11px 20px; font-size: 0.88rem; font-weight: 600; white-space: nowrap;
    transition: background 0.2s, transform 0.3s var(--ease);
}
.btn-add-cart i, .btn-primary i { font-size: 0.85rem; }
.btn-add-cart:hover, .btn-primary:hover { background: var(--accent-strong); transform: translateY(-2px); }
.btn-add-cart:active, .btn-primary:active, .btn-checkout:active { transform: scale(0.97); }

.quantity-pill { display: flex; align-items: center; background: var(--surface-2); border-radius: var(--r-pill); direction: ltr; }
.qty-btn {
    width: 38px; height: 38px; border: none; background: transparent; padding: 0; cursor: pointer;
    border-radius: var(--r-pill); font-size: 1.1rem; font-weight: 500;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s, color 0.2s;
}
.qty-btn:hover { background: var(--accent-soft); color: var(--accent); }
.qty-btn:active { transform: scale(0.9); }
.qty-value { min-width: 24px; text-align: center; font-size: 0.95rem; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- Ingredient sheet ---------- */

.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(8, 10, 13, 0.55); backdrop-filter: blur(6px);
    z-index: var(--z-popup); opacity: 0; visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    display: flex; align-items: flex-end; justify-content: center;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal-content {
    position: relative;
    background: var(--surface); width: 100%; max-width: 500px; max-height: 88dvh;
    border-radius: 28px 28px 0 0; overflow: hidden;
    display: flex; flex-direction: column;
    transform: translateY(100%); transition: transform 0.5s var(--ease);
}
.modal-overlay.open .modal-content { transform: none; }
@media (min-width: 640px) {
    .modal-overlay { align-items: center; }
    .modal-content { border-radius: 28px; max-height: 84dvh; transform: translateY(24px) scale(0.96); }
    .modal-overlay.open .modal-content { transform: none; }
}
.modal-header { position: relative; height: 220px; flex-shrink: 0; overflow: hidden; background: var(--ink); }
.modal-header img { width: 100%; height: 100%; object-fit: cover; display: block; }
.modal-header::after {
    content: ''; position: absolute; inset: 0;
    background:
        linear-gradient(to bottom, rgba(8, 10, 13, 0.5), transparent 38%),
        linear-gradient(to top, rgba(8, 10, 13, 0.82), transparent 62%);
}
.modal-close {
    position: absolute; top: 14px; inset-inline-end: 14px; z-index: 2;
    width: 38px; height: 38px; padding: 0; border: none; background: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.25rem; transition: transform 0.3s var(--ease);
}
.modal-close:hover { transform: rotate(90deg); }
.modal-title-wrap { position: absolute; bottom: 18px; inset-inline: 22px; z-index: 2; color: #fff; }
.modal-title-wrap h3 { font-size: 1.7rem; line-height: 1.1; margin-bottom: 4px; }
.modal-title-wrap .modal-price { font-family: var(--font-display); font-size: 1.25rem; font-weight: 500; font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }
.modal-body { padding: 22px 20px 8px; overflow-y: auto; flex: 1; }
.modal-section-title { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; margin-bottom: 14px; }
#modal-ingredients-list { display: grid; gap: 8px; }
.ingredient-row {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px 16px; border-radius: var(--r-tile); background: var(--surface-2);
}
.ingredient-name { font-size: 0.97rem; font-weight: 500; }
.ingredient-price { font-size: 0.8rem; color: var(--muted); margin-top: 1px; }
.toggle-switch { position: relative; width: 48px; height: 28px; flex-shrink: 0; }
.toggle-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.toggle-slider { position: absolute; inset: 0; cursor: pointer; background: var(--toggle-off); border-radius: var(--r-pill); transition: background 0.3s var(--ease); }
.toggle-slider::before {
    content: ''; position: absolute; width: 22px; height: 22px; top: 3px; inset-inline-start: 3px;
    background: #fff; border-radius: 50%; transition: transform 0.35s var(--ease);
}
.toggle-switch input:checked + .toggle-slider { background: var(--accent); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(calc(20px * var(--sx))); }
.toggle-switch input:focus-visible + .toggle-slider { outline: 2px solid var(--accent); outline-offset: 3px; }
.modal-footer { padding: 16px 20px calc(24px + env(safe-area-inset-bottom, 0px)); display: flex; gap: 10px; }
.modal-footer .btn-primary { flex: 1.6; padding: 15px; font-size: 1rem; }
.modal-footer .btn-secondary {
    flex: 1; border: none; border-radius: var(--r-pill); cursor: pointer;
    background: var(--surface-2); color: var(--text);
    padding: 15px; font-size: 1rem; font-weight: 600;
    transition: background 0.2s, transform 0.3s var(--ease);
}
.modal-footer .btn-secondary:hover { background: var(--line); }
.modal-footer .btn-secondary:active { transform: scale(0.97); }

/* ---------- Cart drawer ---------- */

.cart-overlay {
    position: fixed; inset: 0;
    background: rgba(8, 10, 13, 0.5); backdrop-filter: blur(6px);
    z-index: var(--z-modal); opacity: 0; visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}
.cart-overlay.open { opacity: 1; visibility: visible; }
.cart-panel {
    position: fixed; top: 0; bottom: 0; inset-inline-end: 0;
    width: 100%; max-width: 430px; background: var(--bg);
    z-index: var(--z-cart);
    transform: translateX(calc(100% * var(--sx)));
    transition: transform 0.5s var(--ease);
    display: flex; flex-direction: column;
}
.cart-panel.open { transform: translateX(0); }
.cart-header { padding: 22px 20px 14px; display: flex; align-items: center; justify-content: space-between; }
.cart-header h2 { font-size: 1.7rem; }
.cart-close {
    width: 38px; height: 38px; padding: 0; background: none; border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem; transition: color 0.2s, transform 0.3s var(--ease);
}
.cart-close:hover { color: var(--accent); transform: rotate(90deg); }
.cart-items { flex: 1; overflow-y: auto; padding: 6px 16px 16px; }
.cart-empty { text-align: center; padding: 72px 24px; color: var(--muted); }
.cart-empty i { font-size: 2.6rem; margin-bottom: 18px; color: var(--accent); opacity: 0.55; }
.cart-empty p { font-family: var(--font-display); font-size: 1.15rem; color: var(--text); }
.cart-item {
    display: flex; align-items: center; gap: 12px;
    padding: 12px; margin-bottom: 10px;
    background: var(--surface); border-radius: 18px;
}
.cart-item-img { width: 68px; height: 68px; border-radius: var(--r-media); object-fit: cover; flex-shrink: 0; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-item-custom { font-size: 0.76rem; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.cart-item-price { font-family: var(--font-display); font-weight: 600; margin-top: 4px; font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }
.cart-item-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.cart-item-actions .quantity-pill .qty-btn { width: 32px; height: 32px; }
.cart-item-edit, .cart-item-delete {
    background: none; border: none; padding: 4px; cursor: pointer;
    color: var(--muted); font-size: 0.85rem; transition: color 0.2s, transform 0.3s var(--ease);
}
.cart-item-tools { display: flex; align-items: center; gap: 6px; }
.cart-item-edit:hover, .cart-item-delete:hover { color: var(--accent); transform: scale(1.12); }
.cart-footer { padding: 18px 20px 24px; background: var(--surface); border-radius: 26px 26px 0 0; }
.cart-subtotal-row { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 0.92rem; color: var(--muted); }
.cart-total-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px; font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; }
.cart-total-row span:last-child, .cart-subtotal-row span:last-child { font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }
.btn-checkout {
    width: 100%; border: none; cursor: pointer;
    background: var(--wa); color: #fff;
    padding: 16px; border-radius: var(--r-pill);
    font-size: 1rem; font-weight: 600;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    transition: background 0.2s, transform 0.3s var(--ease);
}
.btn-checkout i { font-size: 1.25rem; }
.btn-checkout:hover { background: var(--wa-strong); transform: translateY(-2px); }

/* ---------- Footer ---------- */

.main-footer { background: var(--ink); color: rgba(255, 255, 255, 0.7); padding: 64px 20px 30px; margin-top: 72px; }
.footer-grid { max-width: 1200px; margin: 0 auto 44px; display: grid; grid-template-columns: 1fr; gap: 36px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 56px; } }
.footer-col h4 { color: #fff; font-size: 1.15rem; margin-bottom: 16px; }
.footer-col p { font-size: 0.95rem; line-height: 1.8; margin-bottom: 6px; max-width: 42ch; }
.footer-col i { color: var(--accent-on-dark); width: 22px; }
.social-row { display: flex; gap: 20px; margin-top: 4px; }
.social-row a { color: var(--accent-on-dark); font-size: 1.1rem; transition: color 0.2s, transform 0.3s var(--ease); }
.social-row a:hover { color: #fff; transform: translateY(-3px); }
.footer-bottom { max-width: 1200px; margin: 0 auto; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.85rem; }

/* ---------- Floating actions ---------- */

.floating-buttons { position: fixed; bottom: 22px; inset-inline-end: 20px; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; z-index: var(--z-fab); }
.float-btn {
    width: 52px; height: 52px; border-radius: 50%; border: none; padding: 0; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; color: #fff;
    transition: transform 0.3s var(--ease), opacity 0.3s, visibility 0.3s;
}
.float-btn:hover { transform: translateY(-4px); }
.float-wa {
    position: relative; width: auto; min-width: 52px; border-radius: var(--r-pill);
    background: var(--wa); justify-content: flex-start;
}
.float-wa::before {
    content: ''; position: absolute; inset: 0; border-radius: var(--r-pill);
    background: var(--wa); z-index: -1;
    animation: pulse 2.8s ease-out infinite;
}
.float-wa i { width: 52px; height: 52px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 1.55rem; }
.float-wa span {
    max-width: 0; overflow: hidden; white-space: nowrap;
    font-size: 0.9rem; font-weight: 600;
    transition: max-width 0.4s var(--ease), padding 0.4s var(--ease);
}
.float-wa:hover span, .float-wa:focus-visible span { max-width: 170px; padding-inline-end: 20px; }
@keyframes pulse { 0% { transform: scale(1); opacity: 0.45; } 100% { transform: scale(1.4); opacity: 0; } }
.float-top { background: var(--pill-bg); color: var(--pill-fg); opacity: 0; visibility: hidden; transform: translateY(16px); }
.float-top.visible { opacity: 1; visibility: visible; transform: none; }
.float-top.visible:hover { transform: translateY(-4px); }

/* ---------- Lightbox ---------- */

.lightbox-overlay {
    position: fixed; inset: 0; background: rgba(8, 10, 13, 0.94);
    z-index: var(--z-lightbox); display: flex; align-items: center; justify-content: center;
    padding: 56px 20px 40px;
    opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s;
}
.lightbox-overlay.open { opacity: 1; visibility: visible; }
.lightbox-overlay img {
    max-width: 100%; max-height: 100%; border-radius: var(--r-media); object-fit: contain;
    transform: scale(0.94); transition: transform 0.45s var(--ease);
}
.lightbox-overlay.open img { transform: none; }
.lightbox-close {
    position: absolute; top: 16px; inset-inline-end: 20px;
    width: 42px; height: 42px; padding: 0; border: none; background: none; cursor: pointer;
    color: #fff; font-size: 1.4rem;
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.3s var(--ease);
}
.lightbox-close:hover { transform: rotate(90deg); }

/* ---------- Entry animation and scrollbars ---------- */

@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.animate-in { animation: fadeInUp 0.7s var(--ease) forwards; opacity: 0; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 10px; }

/* ---------- Accessibility fallbacks ---------- */

@media (prefers-reduced-transparency: reduce) {
    .top-header, .cat-nav, .section-controls { background: var(--surface); backdrop-filter: none; -webkit-backdrop-filter: none; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
    .animate-in, .hero-content > * { opacity: 1; animation: none; }
    .menu-section h2, .section-controls { opacity: 1; transform: none; }
    .hero-img { transform: none; }
    .float-wa::before { display: none; }
}

/* ---------- Rows (list) view: default for long menus ---------- */

.menu-grid.view-list { grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 960px) { .menu-grid.view-list { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
.menu-grid.view-list .dish-card { flex-direction: row; align-items: stretch; border-radius: 18px; }
.menu-grid.view-list .dish-card:hover { transform: none; }
.menu-grid.view-list .dish-img-wrap { flex: 0 0 112px; aspect-ratio: auto; min-height: 112px; border-radius: 0; }
.menu-grid.view-list .img-zoom-btn { width: 26px; height: 26px; top: 6px; inset-inline-end: 6px; font-size: 0.6rem; }
.menu-grid.view-list .dish-body { padding: 12px 14px; min-width: 0; }
.menu-grid.view-list .dish-name { font-size: 1.02rem; margin-bottom: 3px; }
.menu-grid.view-list .dish-desc { font-size: 0.84rem; line-height: 1.45; margin-bottom: 8px; -webkit-line-clamp: 2; }
.menu-grid.view-list .dish-meta { display: none; }
.menu-grid.view-list .dish-price { font-size: 1.1rem; }
.menu-grid.view-list .btn-add-cart { padding: 8px 14px; font-size: 0.8rem; }
@media (min-width: 640px) { .menu-grid.view-list .dish-img-wrap { flex-basis: 150px; } .menu-grid.view-list .dish-body { padding: 16px 18px; } }

/* ---------- Cart remarks ---------- */

.cart-remarks { margin-bottom: 14px; }
.cart-remarks label { display: block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.cart-remarks textarea {
    width: 100%; resize: none; border: none; outline: none;
    background: var(--surface-2); color: var(--text);
    border-radius: 14px; padding: 11px 14px;
    font: inherit; font-size: 0.9rem; line-height: 1.45;
    transition: background 0.2s, box-shadow 0.2s;
}
.cart-remarks textarea:focus { box-shadow: 0 0 0 2px var(--accent); }
.cart-remarks textarea::placeholder { color: var(--muted); opacity: 0.75; }

/* ---------- Final fixes ---------- */

/* Mobile floating buttons: WhatsApp at the end corner, back-to-top at the start corner, both compact */
@media (max-width: 640px) {
    .floating-buttons { inset: auto 0 14px 0; flex-direction: row-reverse; justify-content: space-between; align-items: center; gap: 0; padding-inline: 14px; pointer-events: none; }
    .floating-buttons .float-btn { pointer-events: auto; width: 44px; height: 44px; min-width: 44px; font-size: 1.05rem; }
    .float-wa i { width: 44px; height: 44px; font-size: 1.35rem; }
    .float-wa span { display: none; }
}

/* Top bar: smaller social icons, tighter spacing */
.topbar-social { gap: 4px; }
.topbar-social a { font-size: 0.68rem; padding: 4px 5px; }
.topbar-info { gap: 12px; }
.topbar-info i { font-size: 0.66rem; }

/* Rows: fixed square image that fills the whole card height */
.menu-grid.view-list .dish-card { height: 112px; }
.menu-grid.view-list .dish-img-wrap { flex: 0 0 112px; width: 112px; height: 112px; min-height: 0; aspect-ratio: 1 / 1; }
.menu-grid.view-list .dish-body { padding: 10px 12px; justify-content: space-between; overflow: hidden; }
.menu-grid.view-list .dish-name { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; font-size: 1rem; margin-bottom: 2px; }
.menu-grid.view-list .dish-desc { margin-bottom: 0; font-size: 0.82rem; line-height: 1.4; }
.menu-grid.view-list .dish-footer { margin-top: 0; }
.menu-grid.view-list .btn-add-cart { padding: 7px 13px; }
.menu-grid.view-list .quantity-pill { transform: scale(0.92); }
@media (min-width: 640px) {
    .menu-grid.view-list .dish-card { height: 136px; }
    .menu-grid.view-list .dish-img-wrap { flex-basis: 136px; width: 136px; height: 136px; }
    .menu-grid.view-list .dish-body { padding: 14px 16px; }
}


/* ---------- Size options (multi-price) ---------- */

.size-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 8px; margin-bottom: 22px; }
.size-opt { cursor: pointer; display: block; }
.size-opt input { position: absolute; opacity: 0; pointer-events: none; }
.size-card {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: 12px 8px; border-radius: var(--r-tile);
    background: var(--surface-2); color: var(--text);
    transition: background 0.2s, color 0.2s, transform 0.25s var(--ease);
}
.size-name { font-size: 0.86rem; font-weight: 600; }
.size-price { font-size: 0.8rem; opacity: 0.75; font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }
.size-opt:hover .size-card { transform: translateY(-2px); }
.size-opt input:checked + .size-card { background: var(--accent); color: var(--on-accent); }
.size-opt input:checked + .size-card .size-price { opacity: 0.92; }
.size-opt input:focus-visible + .size-card { outline: 2px solid var(--accent); outline-offset: 2px; }

.dish-price-wrap { display: flex; align-items: baseline; gap: 6px; flex-shrink: 0; }
.price-from { font-size: 0.7rem; font-weight: 500; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }
.menu-grid.view-list .price-from { font-size: 0.62rem; }


/* ---------- View-only mode (CONFIG.ordering = false) ---------- */

.no-ordering .cart-trigger,
.no-ordering .cart-panel,
.no-ordering .cart-overlay,
.no-ordering .modal-overlay:not(.nutri-overlay),
.no-ordering .btn-add-cart,
.no-ordering .dish-actions,
.no-ordering .daily-card .btn-primary,
.no-ordering .daily-card .quantity-pill { display: none !important; }

.size-prices { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.size-chip {
    display: inline-flex; align-items: baseline; gap: 6px;
    padding: 5px 11px; border-radius: var(--r-pill);
    background: var(--surface-2); line-height: 1.2;
}
.size-chip-name { font-size: 0.72rem; font-weight: 500; color: var(--muted); }
.size-chip-price { font-size: 0.9rem; font-weight: 600; font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }
.menu-grid.view-list .size-chip { padding: 3px 9px; }
.menu-grid.view-list .size-chip-price { font-size: 0.8rem; }
.menu-grid.view-list .size-chip-name { font-size: 0.66rem; }

/* Rows: size-price cards keep the same fixed square image; content is compacted to fit */
.menu-grid.view-list .dish-card:has(.size-prices) .dish-desc { -webkit-line-clamp: 1; }
.menu-grid.view-list .dish-card:has(.size-prices) .dish-footer { align-items: flex-end; }
.menu-grid.view-list .size-prices { gap: 4px; }
.menu-grid.view-list .size-chip { padding: 3px 8px; gap: 4px; }
@media (max-width: 639px) {
    .menu-grid.view-list .dish-card:has(.size-prices) .dish-desc { display: none; }
    .menu-grid.view-list .dish-card:has(.size-prices) .dish-body { justify-content: flex-start; gap: 8px; }
}
.menu-grid.view-list .dish-name { flex-shrink: 0; }
.menu-grid.view-list .size-prices { flex: 1 1 100%; width: 100%; }
.menu-grid.view-list .size-chip { white-space: nowrap; }
@media (max-width: 639px) {
    .menu-grid.view-list .size-chip { padding: 3px 7px; gap: 3px; }
    .menu-grid.view-list .size-chip-name { font-size: 0.6rem; }
    .menu-grid.view-list .size-chip-price { font-size: 0.74rem; }
}

/* ---------- Branch landing page + menu branch switch ---------- */

.landing-header {
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
    height: var(--header-h); padding: 0 20px; background: var(--surface);
    position: relative; z-index: 3;
}
.landing-header .lang-switcher { justify-self: end; }
.landing-hero { background: var(--ink); color: #fff; padding: 56px 0 120px; }
.landing-hero h1 { font-size: clamp(2rem, 6vw, 3.4rem); line-height: 1.05; font-weight: 600; margin-bottom: 12px; }
.landing-hero p { color: rgba(255,255,255,0.72); font-size: 1.05rem; max-width: 46ch; }
.landing-main { margin-top: -72px; position: relative; z-index: 2; padding-bottom: 56px; }
.landing-tools { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.branch-search {
    flex: 1; min-width: 0; height: 48px; padding: 0 20px; border: none; outline: none;
    border-radius: var(--r-pill); background: var(--surface); color: var(--text);
    font: inherit; font-size: 0.95rem; box-shadow: var(--shadow-card);
}
.branch-search:focus { box-shadow: 0 0 0 2px var(--accent); }
.landing-tools .view-toggle { margin-inline-start: auto; background: var(--surface); box-shadow: var(--shadow-card); }

.branch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.branch-card {
    background: var(--surface); border-radius: var(--r-card); overflow: hidden;
    box-shadow: var(--shadow-card); display: flex; flex-direction: column;
    transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.branch-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.branch-media {
    position: relative; aspect-ratio: 16 / 10; display: grid; place-items: center; overflow: hidden;
    background: linear-gradient(135deg, hsl(var(--h) 46% 40%), hsl(calc(var(--h) + 28) 52% 22%));
    color: rgba(255,255,255,0.85); font-size: 2.2rem;
}
.branch-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.branch-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.branch-name { font-size: 1.35rem; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.branch-tag { font-family: var(--font-body, inherit); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 9px; border-radius: var(--r-pill); background: var(--surface-2); color: var(--muted); }
.branch-line { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); font-size: 0.9rem; line-height: 1.45; }
.branch-line i { color: var(--accent); font-size: 0.85rem; margin-top: 3px; width: 14px; text-align: center; flex-shrink: 0; }
.branch-actions { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 14px; }
.branch-open { flex: 1; text-decoration: none; }
.branch-icon {
    width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent);
    font-size: 1rem; transition: background 0.2s, transform 0.3s var(--ease);
}
.branch-icon:hover { background: color-mix(in srgb, var(--accent) 22%, transparent); transform: translateY(-2px); }
.branch-icon.wa { background: color-mix(in srgb, var(--wa) 13%, transparent); color: var(--wa); }
.branch-empty { text-align: center; color: var(--muted); padding: 40px 0; }
.landing-footer { text-align: center; color: var(--muted); font-size: 0.82rem; padding: 0 20px 32px; }

/* list (rows) variant */
.branch-grid.view-list { grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 960px) { .branch-grid.view-list { grid-template-columns: repeat(2, 1fr); } }
.branch-grid.view-list .branch-card { flex-direction: row; border-radius: 18px; min-height: 124px; }
.branch-grid.view-list .branch-card:hover { transform: none; }
.branch-grid.view-list .branch-media { aspect-ratio: auto; flex: 0 0 112px; font-size: 1.5rem; }
.branch-grid.view-list .branch-body { padding: 12px 14px; gap: 3px; min-width: 0; }
.branch-grid.view-list .branch-name { font-size: 1.05rem; margin-bottom: 0; }
.branch-grid.view-list .branch-hours { display: none; }
.branch-grid.view-list .branch-actions { padding-top: 8px; }
.branch-grid.view-list .branch-open { padding: 8px 14px; font-size: 0.82rem; }
.branch-grid.view-list .branch-icon { width: 38px; height: 38px; font-size: 0.9rem; }

/* "Change branch" on the menu pages */
.branch-switch { align-items: center; gap: 8px; text-decoration: none; }
.branch-switch i { color: var(--accent); }
.branch-switch em { font-style: normal; opacity: 0.7; }
.branch-switch em::before { content: '\00b7'; margin-inline-end: 8px; }
.hero-branch {
    display: inline-flex; margin-bottom: 18px; padding: 8px 14px;
    border-radius: var(--r-pill); font-size: 0.82rem; font-weight: 500; color: #fff;
    background: rgba(255,255,255,0.14);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.hero-branch i { color: var(--accent-on-dark); }
.mobile-menu-panel .branch-switch {
    display: flex; margin: 8px 20px 4px; padding: 12px 14px; border-radius: var(--r-tile);
    background: var(--surface-2); font-size: 0.9rem; font-weight: 600;
}
@media (max-width: 479px) {
    .branch-grid.view-list .branch-open i { display: none; }
    .branch-grid.view-list .branch-dir { display: none; }
    .branch-grid.view-list .branch-actions { gap: 6px; }
}

.dish-desc:empty { display: none; }

/* Items without a photo show the restaurant logo, contained on a soft tile instead of cropped */
.is-logo { object-fit: contain !important; padding: 14%; background: var(--surface-2); }
.cart-item-img.is-logo { padding: 6px; }
.dish-card:hover .dish-img.is-logo, .daily-card:hover .daily-card-img.is-logo { transform: none; }

.powered-by { margin-top: 8px; font-size: 0.8rem; opacity: .75; }
.powered-by a { color: var(--accent-on-dark); font-weight: 600; text-decoration: none; }
.powered-by a:hover { text-decoration: underline; color: #fff; }

/* category bar: arrows + drag on desktop */
.cat-nav .cat-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--text); display: grid; place-items: center; cursor: pointer; z-index: 3; box-shadow: 0 4px 14px rgba(0,0,0,.12); font-size: .8rem; }
.cat-nav .cat-arrow[hidden] { display: none; }
.cat-nav .cat-arrow.prev { inset-inline-start: 6px; } .cat-nav .cat-arrow.next { inset-inline-end: 6px; }
.cat-nav .cat-arrow.prev i, .cat-nav .cat-arrow.next i { transition: none; } [dir="rtl"] .cat-arrow i { transform: scaleX(-1); }
.cat-nav .cat-arrow:hover { background: var(--pill-bg); color: var(--pill-fg); border-color: transparent; }
@media (hover: none) { .cat-nav .cat-arrow { display: none; } }
@media (hover: hover) { .cat-nav .container { cursor: grab; } .cat-nav .container.dragging { cursor: grabbing; user-select: none; } .cat-nav .container.dragging a { pointer-events: none; } }
/* photos at the end of a category */
.cat-gallery { display: grid; gap: 14px; margin: 22px 0 6px; }
.cat-gallery.n2 { grid-template-columns: 1fr 1fr; }
.cat-gallery img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r-lg, 18px); box-shadow: var(--shadow, 0 6px 22px rgba(0,0,0,.12)); background: var(--surface-2, #eee); }
.cat-gallery.n1 img { max-height: 380px; }
@media (max-width: 640px) { .cat-gallery.n2 { grid-template-columns: 1fr; } }

/* toast after "add to cart" (the cart no longer pops open) */
.ml-toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 24px); opacity: 0; pointer-events: none; z-index: 9999;
    display: flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 999px; background: var(--accent); color: var(--on-accent, #fff);
    font-weight: 600; font-size: .92rem; box-shadow: 0 10px 30px rgba(0,0,0,.22); transition: opacity .25s, transform .3s var(--ease); }
.ml-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* customer details in the cart */
.cart-footer { max-height: 78vh; overflow-y: auto; }
.cart-customer { margin-bottom: 14px; display: grid; gap: 8px; }
.cart-customer .cc-title { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.cart-customer .cc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cart-customer input, .cart-customer textarea { width: 100%; border: 0; border-radius: 14px; background: var(--surface-2); color: var(--text); padding: 11px 14px; font: inherit; font-size: 0.9rem; outline: none; resize: none; }
.cart-customer input:focus, .cart-customer textarea:focus { box-shadow: 0 0 0 2px var(--accent); }
.cart-customer ::placeholder { color: var(--muted); opacity: .75; }
.btn-location { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1.5px dashed var(--accent); color: var(--accent); background: transparent; border-radius: 14px; padding: 10px 14px; font: inherit; font-weight: 600; font-size: .88rem; cursor: pointer; }
.btn-location:hover { background: var(--surface-2); } .btn-location[hidden] { display: none; } .btn-location:disabled { opacity: .6; cursor: wait; }
.loc-status { display: flex; align-items: center; gap: 8px; font-size: .88rem; padding: 9px 12px; border-radius: 12px; background: var(--surface-2); }
.loc-status[hidden] { display: none; } .loc-status i { color: var(--accent); } .loc-status a { color: var(--accent); font-weight: 600; }
.loc-status .loc-remove { margin-inline-start: auto; border: 0; background: none; color: var(--muted); font: inherit; font-size: .82rem; cursor: pointer; text-decoration: underline; }
.loc-status .loc-err { color: #b91c1c; }
@media (max-width: 380px) { .cart-customer .cc-row { grid-template-columns: 1fr; } }

/* rows view: the card grows to show the whole name and description (no "...") */
.menu-grid.view-list .dish-card { height: auto; min-height: 112px; align-items: stretch; }
.menu-grid.view-list .dish-img-wrap { height: auto; min-height: 112px; align-self: stretch; aspect-ratio: auto; }
.menu-grid.view-list .dish-img-wrap { position: relative; }
.menu-grid.view-list .dish-img-wrap > img { position: absolute; inset: 0; width: 100%; height: 100%; }
.menu-grid.view-list .dish-body { overflow: visible; justify-content: flex-start; gap: 6px; }
.menu-grid.view-list .dish-name,
.menu-grid.view-list .dish-desc,
.menu-grid.view-list .dish-card:has(.size-prices) .dish-desc { display: block; -webkit-line-clamp: unset; overflow: visible; }
.menu-grid.view-list .dish-desc:empty { display: none; }
.menu-grid.view-list .dish-footer { margin-top: auto; }
@media (min-width: 640px) { .menu-grid.view-list .dish-card, .menu-grid.view-list .dish-img-wrap { min-height: 136px; } }
.dish-desc, .dish-name { overflow-wrap: anywhere; }

/* footer address as map link (v21) */
.map-link{color:inherit;text-decoration:underline;text-decoration-style:dotted;text-underline-offset:3px}
.map-link:hover{color:var(--accent,inherit)}

/* "New" dish badge (tag new). Accent colour so it follows each client's brand. */
.tag-new{display:inline-block;vertical-align:middle;margin-inline-start:6px;padding:2px 8px;border-radius:999px;background:var(--accent,#e4572e);color:#fff;font-size:.62rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;line-height:1.5}
[dir=rtl] .tag-new{letter-spacing:0}

/* Quantity control on dish cards (v25): only a "+" until the dish is added, then − qty +.
   The footer may wrap, so on narrow phones with long prices (1,350,000 L.L.) the control drops
   under the price instead of being squeezed over it. */
.dish-footer { flex-wrap: wrap; row-gap: 6px; }
.dish-footer .dish-actions { margin-inline-start: auto; }
.quantity-pill.is-empty { background: transparent; }
.quantity-pill.is-empty .qty-minus, .quantity-pill.is-empty .qty-value { display: none; }
.quantity-pill.is-empty .qty-plus { background: var(--accent); color: var(--on-accent); font-weight: 600; }
.quantity-pill.is-empty .qty-plus:hover { background: var(--accent-strong); color: var(--on-accent); }
.dish-card .quantity-pill:not(.is-empty) { animation: qtyPillIn 0.25s var(--ease); }
@keyframes qtyPillIn { from { transform: scale(0.85); opacity: 0.4; } }
.menu-grid.view-list .quantity-pill { transform: none; }          /* was scale(0.92): shrank the look, not the space it takes */
.menu-grid.view-list .qty-btn { width: 34px; height: 34px; }

/* ---------- Nutrition facts (v26) ---------- */
.dish-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.menu-grid.view-list .dish-meta { display: none; }
.menu-grid.view-list .dish-meta:has(.nutri-pill) { display: flex; margin-bottom: 10px; }
.menu-grid.view-list .dish-meta .dish-tag { display: none; }
.nutri-pill {
    display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 8px;
    border: none; border-radius: var(--r-pill, 999px); cursor: pointer;
    background: var(--accent-soft); color: var(--accent);
    font: 600 0.74rem/1.2 var(--font-body, inherit); letter-spacing: 0.01em; font-variant-numeric: tabular-nums;
    transition: background 0.2s, transform 0.2s var(--ease);
}
.nutri-pill i { font-size: 0.8em; }
.nutri-pill:hover { background: color-mix(in srgb, var(--accent) 20%, transparent); }
.nutri-pill:active { transform: scale(0.96); }
.nutri-pill:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.nutri-table { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 22px; }
.nutri-sheet .nutri-table { margin-bottom: 8px; }
.nutri-row {
    display: flex; justify-content: space-between; align-items: baseline; gap: 8px;
    padding: 10px 12px; border-radius: 14px; background: var(--surface-2); font-size: 0.86rem; color: var(--muted);
}
.nutri-row b { color: var(--text, inherit); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.nutri-row b small { font-weight: 500; color: var(--muted); font-size: 0.78em; }
.nutri-row.is-key { background: var(--accent-soft); color: var(--accent); font-weight: 600; flex-direction: column; align-items: flex-start; gap: 2px; }
.nutri-row.is-key b { color: var(--accent); font-size: 1.3rem; line-height: 1.1; }
.nutri-row.is-solo { grid-column: 1 / -1; flex-direction: row; align-items: baseline; }
.modal-section-title small { font-family: var(--font-body, inherit); font-size: 0.72rem; font-weight: 500; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; margin-inline-start: 6px; }

.nutri-sheet {
    position: relative; background: var(--surface); width: 100%; max-width: 420px;
    border-radius: 28px 28px 0 0; padding: 22px 20px calc(14px + env(safe-area-inset-bottom, 0px));
    max-height: calc(100dvh - 40px); overflow-y: auto; overscroll-behavior: contain;
    transform: translateY(100%); transition: transform 0.45s var(--ease);
}
.nutri-overlay.open .nutri-sheet { transform: none; }
@media (min-width: 640px) {
    .nutri-sheet { border-radius: 28px; transform: translateY(24px) scale(0.96); }
    .nutri-overlay.open .nutri-sheet { transform: none; }
}
.nutri-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.nutri-head h3 { font-size: 1.35rem; line-height: 1.15; margin: 2px 0 0; }
.nutri-kicker { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.nutri-close { position: static; color: var(--muted); flex-shrink: 0; margin: -6px -6px 0 0; }

/* All prices on a menu with a cart (v29, setting price_display = all): each size chip is a button that
   opens the add popup with that size chosen. The chips take the row; the Add button sits after them. */
.size-chip-btn { border: 0; font: inherit; color: inherit; cursor: pointer; transition: background .15s ease, color .15s ease; -webkit-tap-highlight-color: transparent; }
.size-chip-btn:hover, .size-chip-btn:focus-visible { background: var(--accent); color: var(--on-accent); outline: none; }
.size-chip-btn:hover .size-chip-name, .size-chip-btn:focus-visible .size-chip-name { color: inherit; opacity: .85; }
.dish-footer .size-prices { flex: 1 1 auto; }
.daily-card-footer:has(.size-prices) { flex-wrap: wrap; row-gap: 10px; }
.daily-card .size-chip { background: rgba(255,255,255,.14); color: #fff; }
.daily-card .size-chip-name { color: rgba(255,255,255,.75); }
.daily-card .size-chip-btn:hover, .daily-card .size-chip-btn:focus-visible { background: #fff; color: var(--ink, #111); }
.daily-card-footer:has(.size-prices) .btn-primary { margin-inline-start: auto; }

/* Category without subcategories (v30): no empty full-width bar, only the three view buttons, kept at the end of the row. */
.section-controls.no-subs { width: fit-content; margin-inline-start: auto; }
.section-controls.no-subs .sub-cat-row,
.section-controls.no-subs::after { display: none; }

/* ---------- Today's dishes / This week (Daily dishes add-on, master19) ---------- */
.today-section { padding: 56px 0 8px; }
.today-section[hidden] { display: none; }
.today-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; margin-bottom: 18px; }
.today-head .section-subtitle { margin-bottom: 0; }
.today-tabs { display: inline-flex; background: var(--accent-soft); border-radius: 999px; padding: 4px; }
.today-tabs button { border: 0; background: transparent; color: var(--text, inherit); font: inherit; font-weight: 600; padding: 9px 18px; border-radius: 999px; cursor: pointer; min-height: 40px; }
.today-tabs button.on { background: var(--accent); color: #fff; }
.today-none { color: var(--muted); margin: 0; }
.avail-title { font-family: var(--font-display); font-size: 1.3rem; margin: 26px 0 12px; }
.dlabels { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 6px; }
.dlabel { display: inline-block; font-size: .72rem; font-weight: 700; line-height: 1.5; padding: 2px 10px; border-radius: 999px; white-space: nowrap; }
.dish-note { font-size: .85rem; font-style: italic; color: var(--muted); margin: 4px 0 0; }
.old-price { color: var(--muted); font-size: .85em; margin-inline-end: 6px; direction: ltr; unicode-bidi: isolate; }
.dish-card.is-sold { opacity: .6; }
.dish-card.is-sold .size-chip-btn { pointer-events: none; }
.sold-out-pill { display: inline-block; font-size: .8rem; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: #fde3e3; color: #8f1d1d; }
.week-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.week-list li { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: baseline; padding: 14px 16px; border-radius: 14px; background: var(--accent-soft); }
.week-list li.is-today { box-shadow: inset 0 0 0 2px var(--accent); }
.week-list li.is-past { opacity: .55; }
.wk-day { font-family: var(--font-display); font-weight: 600; min-width: 9.5em; }
.wk-dishes { display: flex; flex-wrap: wrap; gap: 6px 14px; flex: 1; }
.wk-dish { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.wk-dish.is-sold { text-decoration: line-through; opacity: .7; }
.wk-empty { color: var(--muted); }

/* ---------- Closed day banner (every client, master21) ---------- */
.closed-banner { display: flex; align-items: flex-start; gap: 12px; padding: 12px max(16px, calc((100vw - 1200px) / 2 + 20px)); font-size: .95rem; line-height: 1.45; }
.closed-banner[hidden] { display: none; }
/* the header is fixed and the hero normally clears it; when the banner shows, the banner clears it and the hero follows */
.closed-banner { margin-top: calc(var(--topbar-h) + var(--header-h)); }
.closed-banner:not([hidden]) ~ .hero { margin-top: 0; }
.closed-banner i { margin-top: 3px; font-size: 1.05rem; }
.closed-banner span { display: block; }
.closed-banner.is-closed { background: #fde3e3; color: #7a1616; }
.closed-banner.is-next { background: #fff3d6; color: #6b4700; }
.wk-closed { color: #8f1d1d; font-weight: 600; }
.branch-tag.is-closed { background: #fde3e3; color: #8f1d1d; }

/* ---------- This week: day cards (designer pass, master24) ---------- */
.today-section { scroll-margin-top: calc(var(--topbar-h) + var(--header-h) + 8px); }
.week-board { display: flex; flex-direction: column; gap: 14px; }
.week-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; align-items: start; }
.wk-card { background: var(--surface); border-radius: var(--r-card); box-shadow: var(--shadow-card); padding: 20px 22px 14px; display: flex; flex-direction: column; gap: 6px; }
.wk-card.is-today { box-shadow: inset 0 0 0 2px var(--accent), var(--shadow-card); }
.wk-card.is-past { opacity: .6; }
.wk-head { display: flex; align-items: baseline; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); margin-bottom: 2px; }
.wk-dayname { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; letter-spacing: var(--track-display); }
.wk-card.is-today .wk-dayname { color: var(--accent); }
.wk-date { color: var(--muted); font-size: .88rem; }
.wk-today { margin-inline-start: auto; background: var(--accent); color: var(--on-accent); font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 3px 10px; border-radius: var(--r-pill); }
.wk-items { list-style: none; margin: 0; padding: 0; }
.wk-item { display: flex; gap: 14px; align-items: flex-start; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.wk-item:last-child { border-bottom: 0; }
.wk-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.wk-name { font-weight: 600; line-height: 1.3; }
.wk-desc { color: var(--muted); font-size: .84rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.wk-main .dlabels { margin: 3px 0 0; }
.wk-price { font-weight: 700; color: var(--accent); white-space: nowrap; direction: ltr; unicode-bidi: isolate; padding-top: 1px; }
.wk-price s { color: var(--muted); font-weight: 500; font-size: .85em; }
.wk-item.is-sold .wk-name { text-decoration: line-through; color: var(--muted); }
.wk-sold { background: #fde3e3; color: #8f1d1d; }
.wk-card .wk-closed { display: flex; align-items: center; gap: 8px; margin: 6px 0; }
.wk-earlier { align-self: flex-start; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-weight: 600; font-size: .9rem; padding: 9px 16px; border-radius: var(--r-pill); cursor: pointer; min-height: 40px; }
.wk-earlier:hover { border-color: var(--accent); }
.cat-list a.cat-today i { margin-inline-end: 4px; }
@media (max-width: 640px) { .week-grid { grid-template-columns: 1fr; } .wk-card { padding: 16px 16px 10px; } }
