:root {
    --primary: #17211c;
    --accent: #d7a84f;
    --paper: #f7f1e7;
    --surface: #fffdf8;
    --ink: #171717;
    --muted: #726b61;
    --line: #e8ddca;
    --restaurant-primary: var(--primary);
    --restaurant-secondary: var(--accent);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    background: var(--paper);
    color: var(--ink);
}
a { color: inherit; }
img { display: block; max-width: 100%; }
input, textarea, select, button { font: inherit; }
textarea { min-height: 100px; resize: vertical; }
svg { width: 22px; height: 22px; fill: currentColor; }

.btn, button {
    border: 0;
    border-radius: 12px;
    padding: 12px 16px;
    min-height: 44px;
    font-weight: 850;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}
.btn.primary, button.primary { background: var(--accent); color: #16120b; }
.btn.ghost { border: 1px solid rgba(255,255,255,.45); color: #fff; }
.danger { background: #fee2e2; color: #991b1b; }
.flash, .mini-toast {
    position: fixed;
    z-index: 40;
    padding: 12px 16px;
    border-radius: 14px;
    box-shadow: 0 18px 50px rgba(0,0,0,.16);
    font-weight: 800;
}
.flash {
    top: 14px;
    right: 14px;
    background: #ecfdf5;
    color: #065f46;
}
.flash.error { background: #fef2f2; color: #991b1b; }
.mini-toast {
    left: 50%;
    bottom: 84px;
    transform: translate(-50%, 12px);
    opacity: 0;
    pointer-events: none;
    color: #fff;
    background: var(--restaurant-primary);
    transition: .2s ease;
}
.mini-toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

.hero {
    min-height: 100svh;
    display: grid;
    gap: 28px;
    align-items: center;
    padding: 34px 18px;
    background: linear-gradient(125deg, rgba(23,33,28,.96), rgba(78,64,41,.82)), url("../images/hero-pattern.svg");
    color: #fff;
}
.landing-page main {
    background: var(--paper);
}
.hero h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(42px, 14vw, 78px);
    line-height: .96;
    letter-spacing: 0;
}
.hero p {
    max-width: 650px;
    color: #eee3ce;
    font-size: 17px;
    line-height: 1.65;
}
.eyebrow {
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0;
    font-weight: 900;
    color: var(--accent);
}
.hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 22px;
}
.contact-strip,
.contact-lines {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-top: 16px;
    font-weight: 850;
}
.contact-strip a,
.contact-lines a {
    color: inherit;
    overflow-wrap: anywhere;
}
.contact-strip {
    color: #f8ead1;
}
.contact-lines {
    color: var(--muted);
    line-height: 1.5;
}
.phone-preview {
    min-height: 420px;
    border: 8px solid rgba(255,255,255,.18);
    border-radius: 30px;
    padding: 16px;
    background: #111;
    position: relative;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,.35);
}
.cover-strip {
    height: 240px;
    border-radius: 22px;
    background: linear-gradient(140deg, #d7a84f, #284232);
}
.preview-card {
    margin: -38px 8px 0;
    padding: 16px;
    border-radius: 14px;
    background: #fff;
    color: var(--ink);
    box-shadow: 0 16px 40px rgba(0,0,0,.24);
}
.preview-card.second { margin-top: 12px; }
.preview-card span {
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 900;
}
.preview-card strong, .preview-card small {
    display: block;
    margin-top: 6px;
}
.landing-section {
    padding: 42px 18px;
    max-width: 1180px;
    margin: 0 auto;
}
.landing-section h2 {
    margin: 0;
    max-width: 720px;
    font-size: clamp(28px, 6vw, 46px);
    line-height: 1.04;
}
.benefit-grid {
    display: grid;
    gap: 12px;
    margin-top: 22px;
}
.benefit-grid article {
    min-height: 138px;
    display: grid;
    gap: 8px;
    align-content: start;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 12px 32px rgba(45,34,18,.06);
}
.benefit-grid strong {
    font-size: 18px;
}
.benefit-grid span,
.split-cta p {
    color: var(--muted);
    line-height: 1.55;
}
.split-cta {
    display: grid;
    gap: 18px;
    align-items: center;
    padding-bottom: 56px;
}
.split-cta > div {
    display: grid;
    gap: 10px;
}
.split-cta .btn {
    justify-self: start;
}
.unavailable-hero {
    min-height: 82svh;
}
.unavailable-preview .cover-strip {
    background: linear-gradient(140deg, #6c6152, #17211c);
}

.menu-page {
    background: var(--paper);
    padding-bottom: 112px;
}
.menu-hero {
    position: relative;
    min-height: 300px;
    margin: 10px 10px 0;
    border-radius: 28px;
    overflow: hidden;
    display: grid;
    place-items: end center;
    padding: 18px 16px 28px;
    color: #fff;
    box-shadow: 0 20px 46px rgba(41,31,18,.18);
}
.cover-slider, .cover-slide {
    position: absolute;
    inset: 0;
}
.cover-slide {
    opacity: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.035);
    animation: coverFade 15s infinite;
}
.cover-slide.slide-2 { animation-delay: 5s; }
.cover-slide.slide-3 { animation-delay: 10s; }
@keyframes coverFade {
    0%, 29% { opacity: 1; transform: scale(1); }
    38%, 100% { opacity: 0; transform: scale(1.045); }
}
.menu-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.78));
}
.menu-hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: center;
    text-align: center;
    gap: 10px;
}
.restaurant-logo {
    width: 78px;
    height: 78px;
    object-fit: cover;
    border-radius: 22px;
    border: 3px solid rgba(255,255,255,.86);
    background: #fff;
    box-shadow: 0 14px 34px rgba(0,0,0,.3);
}
.logo-fallback {
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(145deg, var(--restaurant-primary), var(--restaurant-secondary));
    font-size: 36px;
    font-weight: 900;
}
.menu-hero h1 {
    margin: 0;
    font-size: clamp(30px, 10vw, 46px);
    line-height: 1;
    letter-spacing: 0;
    text-shadow: 0 10px 30px rgba(0,0,0,.38);
}
.language-switch {
    display: flex;
    gap: 3px;
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.35);
    padding: 3px;
    border-radius: 999px;
    backdrop-filter: blur(14px);
}
.language-switch a {
    min-width: 40px;
    text-align: center;
    text-decoration: none;
    font-weight: 900;
    font-size: 13px;
    padding: 7px 10px;
    border-radius: 999px;
}
.language-switch a.active {
    background: #fff;
    color: var(--restaurant-primary);
}
.menu-shell {
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 10px;
}
.restaurant-info-card {
    margin: 10px 0 0;
    background: rgba(255,253,248,.94);
    border: 1px solid rgba(232,221,202,.9);
    border-radius: 22px;
    padding: 12px;
    display: grid;
    gap: 12px;
    box-shadow: 0 14px 34px rgba(45,34,18,.1);
    backdrop-filter: blur(14px);
}
.restaurant-info-card span {
    color: var(--muted);
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 900;
}
.restaurant-info-card p {
    margin: 3px 0 0;
    line-height: 1.38;
    font-size: 14px;
    font-weight: 750;
}
.restaurant-info-card small {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-weight: 750;
}
.restaurant-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(54px, 1fr));
    gap: 10px;
}
.icon-btn {
    min-height: 54px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    color: #fff;
    background: var(--restaurant-primary);
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(0,0,0,.14);
}
.menu-tools {
    position: sticky;
    top: 0;
    z-index: 20;
    margin: 10px -2px 0;
    padding: 8px;
    background: rgba(247,241,231,.86);
    border: 1px solid rgba(255,255,255,.7);
    border-radius: 22px;
    backdrop-filter: blur(18px);
    box-shadow: 0 12px 30px rgba(45,34,18,.12);
}
.menu-tools input {
    width: 100%;
    min-height: 46px;
    border: 1px solid rgba(215,168,79,.36);
    border-radius: 17px;
    padding: 12px 14px;
    background: #fff;
    outline: none;
}
.category-tabs {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
}
.category-tabs::-webkit-scrollbar { display: none; }
.category-tabs a {
    white-space: nowrap;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    background: #fff;
    color: #332c20;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 13px;
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
}
.category-tabs a.active {
    background: var(--restaurant-primary);
    color: #fff;
    border-color: var(--restaurant-primary);
}
.menu-sections {
    display: grid;
    gap: 22px;
    margin-top: 16px;
}
.no-results {
    display: none;
    margin: 14px 0 0;
    padding: 18px;
    border: 1px dashed var(--line);
    border-radius: 18px;
    background: rgba(255,255,255,.72);
    color: var(--muted);
    text-align: center;
    font-weight: 850;
}
.no-results.show {
    display: block;
}
.category-section {
    scroll-margin-top: 112px;
}
.category-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 12px;
    margin: 0 2px 9px;
}
.category-heading h2 {
    margin: 0;
    font-size: 22px;
    line-height: 1;
}
.category-heading span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 850;
}
.menu-grid {
    display: grid;
    gap: 9px;
}
.menu-item {
    min-height: 112px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 22px rgba(45,34,18,.065);
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
}
.menu-item > img {
    width: 100%;
    height: 100%;
    min-height: 112px;
    object-fit: cover;
    background: #eadfc9;
}
.item-content {
    padding: 10px;
    display: grid;
    gap: 6px;
}
.item-title-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: start;
}
.item-title-row h3 {
    margin: 0;
    font-size: 15px;
    line-height: 1.18;
}
.item-title-row strong {
    color: var(--restaurant-primary);
    white-space: nowrap;
    font-size: 14px;
}
.item-content p {
    margin: 0;
    color: var(--muted);
    line-height: 1.32;
    font-size: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.badges, .thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.badges span {
    padding: 3px 6px;
    border-radius: 999px;
    background: #f4ead8;
    color: #614714;
    font-size: 10px;
    font-weight: 850;
}
.thumbs { display: none; }
.thumbs img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: cover;
    cursor: pointer;
}
.add-to-cart {
    justify-self: stretch;
    min-height: 38px;
    padding: 8px 10px;
    border-radius: 12px;
    background: var(--restaurant-secondary);
    color: #16120a;
}
.item-option-select {
    position: relative;
    display: grid;
    min-width: 0;
    width: clamp(112px, 38vw, 170px);
    max-width: 100%;
}
.item-option-select::after {
    content: "▾";
    position: absolute;
    top: 7px;
    right: 9px;
    color: var(--restaurant-primary);
    font-size: 12px;
    pointer-events: none;
}
[dir="rtl"] .item-option-select::after {
    right: auto;
    left: 9px;
}
.item-option-select select {
    appearance: none;
    width: 100%;
    min-width: 0;
    min-height: 32px;
    padding: 4px 24px 4px 7px;
    border: 1px solid var(--line);
    border-color: color-mix(in srgb, var(--restaurant-primary) 24%, var(--line));
    border-radius: 8px;
    background: #fff;
    background: color-mix(in srgb, var(--restaurant-primary) 4%, #fff);
    color: var(--restaurant-primary);
    font: inherit;
    font-size: 12px;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    cursor: pointer;
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
[dir="rtl"] .item-option-select select {
    padding-right: 7px;
    padding-left: 24px;
}
.item-option-select select:hover {
    border-color: color-mix(in srgb, var(--restaurant-primary) 48%, var(--line));
}
.item-option-select select:focus {
    outline: none;
    border-color: var(--restaurant-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--restaurant-primary) 16%, transparent);
    background: #fff;
}
.item-option-select select:invalid { color: var(--muted); }
.item-option-select select.is-required {
    border-color: #c2413b;
    box-shadow: 0 0 0 3px rgba(194,65,59,.14);
    animation: option-required-pulse .3s ease;
}
.item-option-select select.is-added {
    border-color: #168a55;
    background: #ecfdf3;
    box-shadow: 0 0 0 3px rgba(22,138,85,.16);
}
.item-option-select:has(select.is-added)::after {
    content: "✓";
    color: #168a55;
    font-weight: 950;
}
.option-validation-message {
    margin-top: 3px;
    color: #a8322d;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.2;
}
.option-validation-message[hidden] { display: none; }
@keyframes option-required-pulse {
    50% { transform: translateX(2px); }
}
.item-price { transition: opacity .15s ease; }

.layout-list .menu-hero {
    min-height: 250px;
    border-radius: 0 0 28px 28px;
    margin: 0;
}
.layout-list .restaurant-info-card {
    border-radius: 16px;
}
.layout-list .category-heading {
    padding: 8px 10px;
    border-left: 4px solid var(--restaurant-secondary);
    background: rgba(255,255,255,.55);
    border-radius: 12px;
}
.layout-list .menu-grid {
    gap: 6px;
}
.layout-list .menu-item {
    grid-template-columns: 58px minmax(0, 1fr);
    min-height: 82px;
    border-radius: 12px;
    box-shadow: none;
}
.layout-list .menu-item > img {
    min-height: 82px;
}
.layout-list .item-content {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 4px 8px;
}
.layout-list .item-title-row {
    grid-column: 1 / -1;
}
.layout-list .item-content p,
.layout-list .badges,
.layout-list .thumbs {
    display: none;
}
.layout-list .add-to-cart {
    grid-column: 2;
    min-width: 70px;
    min-height: 34px;
    padding: 6px 9px;
}
.layout-list .item-option-select { width: clamp(110px, 34vw, 160px); }

.layout-showcase {
    background: #151713;
    color: #f8efe0;
}
.layout-showcase .menu-hero {
    min-height: 345px;
    margin: 0;
    border-radius: 0 0 34px 34px;
}
.layout-showcase .menu-shell {
    padding: 0 12px;
}
.layout-showcase .restaurant-info-card,
.layout-showcase .menu-tools,
.layout-showcase .menu-item {
    background: #fff8ed;
    color: #171717;
}
.layout-showcase .category-heading {
    align-items: center;
    padding-top: 8px;
    border-top: 1px solid rgba(215,168,79,.35);
}
.layout-showcase .category-heading h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 27px;
    font-weight: 700;
}
.layout-showcase .menu-grid {
    gap: 14px;
}
.layout-showcase .menu-item {
    display: block;
    border-radius: 22px;
}
.layout-showcase .menu-item > img {
    width: 100%;
    height: 180px;
    min-height: 0;
}
.layout-showcase .item-content {
    padding: 13px;
}
.layout-showcase .thumbs {
    display: flex;
}
.layout-showcase .developer-footer {
    border: 1px solid rgba(215,168,79,.3);
}

.layout-luxury {
    background: #0f1115;
    color: #f8efe0;
}
.layout-luxury .menu-hero {
    min-height: 360px;
    margin: 0;
    border-radius: 0;
}
.layout-luxury .restaurant-logo {
    border-color: rgba(216,165,72,.85);
    box-shadow: 0 18px 40px rgba(0,0,0,.36);
}
.layout-luxury .menu-hero h1,
.layout-luxury .category-heading h2 {
    font-family: Georgia, "Times New Roman", serif;
    letter-spacing: 0;
}
.layout-luxury .menu-shell {
    padding-top: 18px;
}
.layout-luxury .restaurant-info-card,
.layout-luxury .menu-tools,
.layout-luxury .menu-item {
    background: #f9f3e8;
    color: #171512;
    border: 1px solid rgba(216,165,72,.28);
    box-shadow: 0 20px 60px rgba(0,0,0,.28);
}
.layout-luxury .menu-item {
    border-radius: 6px;
}
.layout-luxury .menu-item > img {
    min-height: 158px;
}
.layout-luxury .badges span {
    background: #181512;
    color: #f8efe0;
}
.layout-luxury .add-to-cart {
    background: #171512;
    color: #f8efe0;
}
.layout-luxury .developer-footer {
    border: 1px solid rgba(216,165,72,.28);
}

.layout-comfort {
    background: #f4f7f2;
    color: #243025;
}
.layout-comfort .menu-hero {
    min-height: 285px;
    margin: 0 10px;
    border-radius: 0 0 18px 18px;
}
.layout-comfort .restaurant-info-card,
.layout-comfort .menu-tools,
.layout-comfort .menu-item {
    background: #fffef9;
    color: #243025;
    border: 1px solid #dbe7d7;
    box-shadow: 0 8px 24px rgba(55,76,56,.08);
}
.layout-comfort .menu-shell {
    gap: 14px;
}
.layout-comfort .menu-grid {
    gap: 10px;
}
.layout-comfort .menu-item {
    border-radius: 14px;
}
.layout-comfort .menu-item > img {
    min-height: 118px;
}
.layout-comfort .item-title-row h3,
.layout-comfort .category-heading h2 {
    color: #243025;
}
.layout-comfort .item-content p {
    color: #5b675c;
    line-height: 1.65;
}
.layout-comfort .badges span {
    background: #e8f0e4;
    color: #345039;
}
.layout-comfort .add-to-cart {
    background: #47704d;
    color: #fffef9;
}

.developer-footer {
    max-width: 1040px;
    margin: 28px 10px 0;
    padding: 18px 14px 20px;
    color: #f7efd9;
    background: #171b18;
    border-radius: 22px 22px 0 0;
    text-align: center;
}
.developer-footer p {
    margin: 0 0 8px;
    color: #d8cfbd;
    font-size: 14px;
    line-height: 1.45;
}
.developer-footer div {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 14px;
    font-size: 13px;
}
.developer-footer a {
    font-weight: 900;
    text-decoration: none;
    color: var(--restaurant-secondary);
    overflow-wrap: anywhere;
}
.cart-fab {
    position: fixed;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    z-index: 24;
    min-width: min(92vw, 360px);
    min-height: 54px;
    border-radius: 999px;
    background: var(--restaurant-primary);
    color: #fff;
    box-shadow: 0 16px 42px rgba(0,0,0,.26);
}
.cart-fab span {
    background: var(--restaurant-secondary);
    color: #111;
    border-radius: 999px;
    padding: 2px 8px;
}
.cart-panel {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 78px;
    max-height: min(72vh, 520px);
    overflow: auto;
    transform: translateY(16px);
    opacity: 0;
    pointer-events: none;
    transition: .2s ease;
    z-index: 23;
    background: #fff;
    border-radius: 24px;
    border: 1px solid var(--line);
    padding: 16px;
    box-shadow: 0 24px 70px rgba(0,0,0,.24);
}
.cart-panel.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}
.cart-panel h2 {
    margin: 0 0 8px;
}
.cart-line {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}
.qty {
    display: flex;
    gap: 6px;
    align-items: center;
}
.qty button {
    width: 34px;
    height: 34px;
    min-height: 34px;
    padding: 0;
    background: #eee5d7;
}
.cart-panel textarea {
    width: 100%;
    margin-top: 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 10px;
}
.cart-total {
    display: flex;
    justify-content: space-between;
    padding: 14px 0;
    font-size: 18px;
}
.empty-cart {
    margin: 8px 0;
    color: var(--muted);
    font-weight: 800;
}
.cart-line-total {
    color: var(--restaurant-primary);
    font-weight: 800;
}
.currency-settings {
    border-top: 1px solid var(--line);
    padding-top: 12px;
}
.currency-settings > p {
    margin: 0 0 10px;
    color: var(--muted);
}
.currency-rate-grid,
.option-rows {
    display: grid;
    gap: 10px;
}
.currency-rate-row,
.option-admin-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 9px;
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}
.option-label-en,
.option-label-ar {
    grid-column: 1 / -1;
}
.option-price { grid-column: 1; }
.option-currency { grid-column: 2; min-width: 96px; }
.option-admin-row .default-option { grid-column: 1; }
.option-admin-row .remove-option { grid-column: 2; }
.currency-enable,
.options-toggle,
.default-option {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 8px;
    font-weight: 850;
}
.currency-enable input,
.options-toggle input,
.default-option input {
    width: auto;
    margin: 0;
}
.item-options-editor {
    display: grid;
    gap: 10px;
    padding: 12px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.item-options-editor [hidden] { display: none; }
.options-editor-heading {
    display: grid;
    gap: 2px;
}
.options-editor-heading small { color: var(--muted); }
.add-option {
    justify-self: start;
    min-height: 34px;
    padding: 6px 10px;
}
.remove-option {
    align-self: end;
    width: 36px;
    min-height: 36px;
    padding: 0;
    font-size: 20px;
    line-height: 1;
}
[dir="rtl"] .item-title-row,
[dir="rtl"] .category-heading,
[dir="rtl"] .cart-total {
    direction: rtl;
}
[dir="rtl"] .layout-list .category-heading {
    border-left: 0;
    border-right: 4px solid var(--restaurant-secondary);
}

.login-page, .admin-body { background: #f5f2ec; }
.login-card {
    width: min(420px, calc(100vw - 32px));
    margin: 12vh auto;
    padding: 28px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 18px 50px rgba(0,0,0,.08);
}
label {
    display: grid;
    gap: 7px;
    font-weight: 800;
    color: #332d25;
}
label input, label textarea, label select, .inline-form input, .row-form input {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 11px 12px;
    background: #fff;
}
label small {
    color: var(--muted);
    font-weight: 700;
    line-height: 1.35;
}
.ltr-input {
    direction: ltr;
    text-align: left;
}
.rtl-input {
    direction: rtl;
    text-align: right;
}
.login-card label { margin: 14px 0; }
.login-warning {
    margin: 0 0 14px;
    padding: 11px 12px;
    border-radius: 10px;
    background: #fff7ed;
    color: #9a3412;
    line-height: 1.45;
    font-size: 14px;
    font-weight: 800;
}
.admin-sidebar {
    background: #171b18;
    color: #fff;
    padding: 18px;
    display: grid;
    gap: 18px;
}
.admin-sidebar span {
    display: block;
    color: #c6bda9;
    margin-top: 6px;
}
.admin-sidebar nav {
    display: grid;
    gap: 8px;
}
.admin-sidebar a {
    color: #fff;
    text-decoration: none;
    padding: 11px 12px;
    border-radius: 10px;
    background: rgba(255,255,255,.06);
}
.admin-main {
    padding: 18px;
    max-width: 1180px;
}
.panel, .stat-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 12px 30px rgba(0,0,0,.05);
}
.dashboard-grid {
    display: grid;
    gap: 12px;
}
.admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}
.stat-card {
    display: grid;
    gap: 8px;
    text-decoration: none;
}
.stat-card span { color: var(--muted); }
.stat-card strong { font-size: 22px; }
.form-grid {
    display: grid;
    gap: 14px;
}
.wide { grid-column: 1 / -1; }
.form-note {
    color: var(--muted);
    margin: 0;
    line-height: 1.55;
}
.form-section-title {
    margin: 8px 0 0;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    color: var(--primary);
    font-size: 18px;
}
.layout-preview-grid {
    display: grid;
    gap: 10px;
}
.layout-preview {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px;
    background: #fffaf0;
}
.layout-preview strong {
    display: block;
    margin-bottom: 4px;
}
.layout-preview span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
}
.preview-lines {
    display: flex;
    gap: 5px;
    margin-top: 10px;
}
.preview-lines i {
    display: block;
    height: 22px;
    border-radius: 7px;
    background: var(--restaurant-secondary);
}
.preview-lines i:nth-child(1) { width: 42%; }
.preview-lines i:nth-child(2) { width: 28%; opacity: .72; }
.preview-lines i:nth-child(3) { width: 18%; opacity: .5; }
.qr-admin-panel {
    display: grid;
    gap: 18px;
}
.qr-link-row {
    display: grid;
    gap: 10px;
}
.qr-link-row input {
    font-size: 14px;
}
.qr-preview-grid {
    display: grid;
    gap: 16px;
}
.qr-preview-grid article {
    display: grid;
    gap: 12px;
    align-content: start;
}
.qr-preview-grid canvas {
    width: 100%;
    max-width: 420px;
    height: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}
.qr-preview-grid #qrPosterCanvas {
    max-width: 360px;
}
.upload-preview {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px;
    background: #fffaf0;
}
.upload-preview > strong {
    display: block;
    margin-bottom: 10px;
}
.preview-image-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.preview-image-grid figure {
    margin: 0;
    display: grid;
    gap: 6px;
}
.preview-image-grid img,
.image-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: linear-gradient(145deg, #fff7e6, #e8d8bd);
}
.image-placeholder {
    display: grid;
    place-items: center;
    color: #6f5b35;
    font-size: 13px;
    font-weight: 850;
    text-align: center;
    padding: 8px;
}
.image-placeholder.small {
    width: 110px;
    min-height: 90px;
    aspect-ratio: auto;
}
.preview-image-grid figcaption {
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
}
.inline-form, .row-form {
    display: grid;
    gap: 10px;
    align-items: end;
}
.table-list {
    display: grid;
    gap: 10px;
}
.table-list > div, .row-form, details {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 12px;
}
.table-list > div {
    display: grid;
    gap: 10px;
    align-items: center;
}
.restaurant-admin-row form,
.reset-password-form {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.restaurant-summary {
    display: grid;
    gap: 5px;
}
.restaurant-summary strong {
    font-size: 18px;
}
.restaurant-summary small {
    color: var(--muted);
    font-weight: 750;
    overflow-wrap: anywhere;
}
.restaurant-actions-admin {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.status-badge {
    width: fit-content;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}
.status-badge.active {
    background: #dcfce7;
    color: #166534;
}
.status-badge.inactive {
    background: #fee2e2;
    color: #991b1b;
}
.reset-password-form input {
    min-width: 180px;
}
.checks {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    grid-column: 1 / -1;
}
.checks label {
    display: flex;
    gap: 6px;
    align-items: center;
    font-weight: 700;
}
details summary {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    gap: 12px;
}
details .form-grid { margin-top: 14px; }
.image-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}
.image-strip form { width: 110px; }
.image-strip img {
    width: 110px;
    height: 90px;
    object-fit: cover;
    border-radius: 10px;
}
.image-strip button {
    width: 100%;
    padding: 7px;
    margin-top: 5px;
    background: #fee2e2;
    color: #991b1b;
}
.qr-panel { text-align: center; }
.qr-panel img {
    width: 260px;
    margin: 0 auto 16px;
}
.empty-state {
    min-height: 80vh;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 24px;
}

@media (min-width: 720px) {
    .currency-rate-row {
        grid-template-columns: minmax(100px, .7fr) repeat(2, minmax(140px, 1fr));
        align-items: end;
    }
    .option-admin-row {
        grid-template-columns: minmax(120px, 1fr) minmax(120px, 1fr) minmax(105px, .65fr) minmax(90px, .5fr) auto 36px;
        align-items: end;
    }
    .option-label-en,
    .option-label-ar,
    .option-price,
    .option-currency,
    .option-admin-row .default-option,
    .option-admin-row .remove-option {
        grid-column: auto;
    }
    .hero {
        grid-template-columns: minmax(0, 1fr) 380px;
        gap: 60px;
        padding: 48px max(24px, calc((100vw - 1180px) / 2));
    }
    .phone-preview { min-height: 620px; }
    .cover-strip { height: 330px; }
    .menu-page { padding-bottom: 120px; }
    .menu-hero {
        min-height: 420px;
        margin: 16px auto 0;
        max-width: 1120px;
        border-radius: 34px;
    }
    .restaurant-logo {
        width: 96px;
        height: 96px;
    }
    .menu-shell {
        padding: 0 18px;
    }
    .restaurant-info-card {
        grid-template-columns: 1fr auto;
        align-items: center;
        margin-top: 14px;
    }
    .restaurant-actions {
        display: flex;
    }
    .icon-btn {
        width: 54px;
    }
    .menu-tools {
        padding: 10px;
    }
    .menu-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
    .layout-list .menu-grid {
        grid-template-columns: 1fr;
    }
    .layout-list .menu-item {
        grid-template-columns: 86px minmax(0, 1fr);
        min-height: 94px;
    }
    .layout-list .menu-item > img {
        min-height: 94px;
    }
    .layout-showcase .menu-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
    .layout-showcase .menu-hero {
        max-width: none;
        min-height: 480px;
        border-radius: 0 0 42px 42px;
    }
    .layout-showcase .menu-item > img {
        height: 230px;
    }
    .developer-footer {
        margin-left: auto;
        margin-right: auto;
    }
    .cart-panel {
        left: auto;
        right: 18px;
        width: 380px;
    }
    [dir="rtl"] .cart-panel {
        right: auto;
        left: 18px;
    }
    .cart-fab {
        min-width: 220px;
    }
    .admin-sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        width: 250px;
        padding: 22px;
        display: flex;
        flex-direction: column;
        gap: 30px;
    }
    .admin-main {
        margin-left: 250px;
        padding: 28px;
    }
    .dashboard-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
    }
    .benefit-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .split-cta {
        grid-template-columns: minmax(0, 1fr) auto;
    }
    .form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .layout-preview-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .qr-link-row {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: end;
    }
    .qr-preview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .preview-image-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .inline-form.simple {
        grid-template-columns: 1fr auto;
    }
    .inline-form.bilingual-category {
        grid-template-columns: 1fr 1fr auto;
    }
    .row-form.category-row {
        grid-template-columns: 1fr 1fr auto auto auto;
    }
    .table-list > div {
        grid-template-columns: 1fr 1fr auto;
    }
    .table-list > div.restaurant-admin-row {
        grid-template-columns: minmax(220px, 1.2fr) minmax(260px, 1fr);
        align-items: start;
    }
    .restaurant-admin-row .reset-password-form {
        grid-column: 1 / -1;
    }
}

@media (max-width: 380px) {
    .menu-hero {
        min-height: 280px;
        margin-inline: 8px;
    }
    .menu-item {
        grid-template-columns: 84px minmax(0, 1fr);
    }
    .layout-list .menu-item {
        grid-template-columns: 52px minmax(0, 1fr);
    }
    .badges {
        display: none;
    }
    .item-title-row h3 {
        font-size: 14px;
    }
}

.table-list > .sortable-list,
.sortable-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    min-width: 0;
    padding: 0;
    border: 0;
}
.sortable-row {
    min-width: 0;
    transition: border-color .15s ease, background .15s ease, opacity .15s ease, transform .15s ease;
}
.sortable-row.is-dragging {
    z-index: 2;
    opacity: .72;
    border-color: var(--accent);
    background: #fff9e9;
    transform: scale(.995);
}
.sortable-row.is-order-selected {
    border-color: var(--accent);
    background: #fffaf0;
}
.drag-handle,
.move-order {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    flex: 0 0 44px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f7f2e9;
    color: var(--muted);
    font-size: 18px;
    touch-action: none;
    user-select: none;
    cursor: grab;
}
.drag-handle.is-active { cursor: grabbing; color: var(--text); }
.move-order {
    cursor: pointer;
    touch-action: manipulation;
}
.sortable-actions,
.summary-order-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.summary-order-actions { margin-left: auto; }
.duplicate-action {
    background: #eee7d9;
    color: var(--text);
}
.save-order-form {
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
}
.category-row.sortable-row {
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
}
.category-row.sortable-row > .sortable-actions { grid-column: 1 / -1; }
.item-sortable details summary {
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
}
.item-sortable details summary strong {
    min-width: 0;
    overflow-wrap: anywhere;
}
.item-sortable details summary > span:not(.summary-order-actions) { white-space: nowrap; }

@media (min-width: 900px) {
    .category-row.sortable-row {
        grid-template-columns: 44px minmax(150px, 1fr) minmax(150px, 1fr) auto;
    }
    .category-row.sortable-row > .sortable-actions { grid-column: auto; }
}

@media (max-width: 719px) {
    .category-row.sortable-row > input:not([type="hidden"]) { grid-column: 2; }
    .sortable-actions { grid-column: 1 / -1; }
    .sortable-actions .btn,
    .sortable-actions button:not(.move-order) { flex: 1 1 auto; }
    .item-sortable details summary { flex-wrap: wrap; }
    .summary-order-actions { width: 100%; justify-content: flex-end; }
}

/* Compact admin sorting cards. */
.sortable-list {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 9px;
    padding: 0 !important;
    border: 0 !important;
}
.category-row.sortable-row,
.item-admin-row.sortable-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
    min-width: 0;
    padding: 11px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(34,28,18,.045);
}
.sortable-row-main {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
}
.sortable-handle {
    display: inline-grid;
    place-items: center;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    min-height: 48px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #f6f1e8;
    color: #76694f;
    font-size: 20px;
    cursor: grab;
    touch-action: none;
    user-select: none;
    transition: background .15s ease, color .15s ease, transform .15s ease;
}
.sortable-handle:hover,
.sortable-handle:focus-visible,
.sortable-handle.is-pressed {
    background: #eee4d2;
    color: var(--text);
}
.sortable-handle.is-pressed { transform: scale(.96); }
.sortable-row-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
    flex: 1 1 auto;
}
.sortable-row-copy strong {
    overflow-wrap: anywhere;
    font-size: 15px;
}
.sortable-row-copy span,
.sortable-row-copy small {
    color: var(--muted);
    font-size: 12px;
}
.sortable-row-price {
    flex: 0 0 auto;
    color: var(--text);
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
}
.sortable-row-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 6px;
    padding-left: 59px;
}
.sortable-row-actions > form { margin: 0; }
.sortable-row-actions .btn,
.sortable-row-actions button,
.sortable-row-actions summary {
    min-height: 36px;
    padding: 7px 10px;
    font-size: 12px;
}
.sortable-row .inline-edit {
    flex: 0 1 auto;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}
.sortable-row .inline-edit > summary {
    display: inline-flex;
    width: auto;
    list-style: none;
}
.sortable-row .inline-edit > summary::-webkit-details-marker { display: none; }
.sortable-row .inline-edit[open] {
    flex: 1 0 100%;
    order: 10;
}
.sortable-row .inline-edit-form,
.sortable-row .inline-edit[open] > .item-editor {
    display: grid;
    gap: 9px;
    margin-top: 9px;
    padding: 11px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #faf8f4;
}
.sortable-row.is-dragging {
    opacity: .96;
    border-color: var(--accent);
    box-shadow: 0 18px 42px rgba(31,25,16,.2);
    transform: scale(1.015);
}
.sortable-placeholder {
    box-sizing: border-box;
    min-height: 58px;
    border: 2px dashed color-mix(in srgb, var(--accent) 55%, var(--line));
    border-radius: 10px;
    background: color-mix(in srgb, var(--accent) 6%, transparent);
}
.sortable-drag-active {
    overflow: hidden;
    cursor: grabbing;
}
.save-order-bar {
    position: sticky;
    bottom: 10px;
    z-index: 8;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    padding: 9px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 10px 28px rgba(31,25,16,.1);
}
.save-order-bar .order-dirty {
    color: #8a5a05;
    font-size: 13px;
    font-weight: 850;
}
.save-order-bar button:disabled {
    opacity: .45;
    cursor: default;
}
.save-order-bar.has-changes {
    border-color: color-mix(in srgb, var(--accent) 50%, var(--line));
}

@media (max-width: 719px) {
    .category-row.sortable-row,
    .item-admin-row.sortable-row { padding: 9px; }
    .sortable-row-actions {
        padding-left: 0;
    }
    .sortable-row-actions > a,
    .sortable-row-actions > form,
    .sortable-row-actions > .inline-edit:not([open]) {
        flex: 1 1 auto;
    }
    .sortable-row-actions > form > button,
    .sortable-row-actions > a,
    .sortable-row-actions > .inline-edit:not([open]) > summary {
        width: 100%;
        justify-content: center;
    }
    .sortable-row-price { font-size: 12px; }
    .save-order-bar { bottom: 6px; }
}

/* Item availability */
.availability-toggle {
    align-items: start;
}
.toggle-control {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    cursor: pointer;
}
.toggle-control input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}
.toggle-control i {
    position: relative;
    width: 46px;
    height: 26px;
    flex: 0 0 46px;
    border-radius: 999px;
    background: #a8a29e;
    transition: background .18s ease;
}
.toggle-control i::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,.25);
    transition: transform .18s ease;
}
.toggle-control input:checked + i { background: #198754; }
.toggle-control input:checked + i::after { transform: translateX(20px); }
.toggle-control input:focus-visible + i { outline: 3px solid rgba(25,135,84,.25); outline-offset: 2px; }
.toggle-control strong { font-size: 14px; }
.toggle-unavailable { display: inline; color: #9f1239; }
.toggle-available { display: none; color: #166534; }
.toggle-control input:checked ~ strong .toggle-unavailable { display: none; }
.toggle-control input:checked ~ strong .toggle-available { display: inline; }
.admin-unavailable-badge {
    width: fit-content;
    margin-top: 2px;
    padding: 2px 6px;
    border-radius: 5px;
    background: #fff1f2;
    color: #9f1239 !important;
    font-weight: 850;
}
.menu-item.is-unavailable { border-color: color-mix(in srgb, #9f1239 25%, var(--line)); }
.menu-item.is-unavailable > img { opacity: .72; filter: saturate(.72); }
.badges .unavailable-badge { background: #fff1f2; color: #9f1239; }
.add-to-cart:disabled,
.add-to-cart[aria-disabled="true"] {
    background: #ddd8cf;
    color: #6b655c;
    cursor: not-allowed;
    opacity: .82;
}

/* Public item image gallery */
.item-gallery-trigger { cursor: zoom-in; }
.item-gallery-trigger:focus-visible { outline: 3px solid var(--restaurant-secondary); outline-offset: -3px; }
.menu-gallery-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
    background: rgba(10,10,10,.88);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    opacity: 0;
    transition: opacity .18s ease;
}
.menu-gallery-overlay[hidden] { display: none; }
.menu-gallery-overlay.is-open { opacity: 1; }
.menu-gallery-stage {
    position: relative;
    width: min(1080px, 100%);
    height: min(86vh, 820px);
    display: grid;
    place-items: center;
}
.menu-gallery-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    user-select: none;
    touch-action: pan-y;
    cursor: zoom-out;
    transform: scale(.985);
    opacity: .86;
    transition: transform .18s ease, opacity .18s ease;
}
.menu-gallery-overlay.is-open .menu-gallery-image { transform: scale(1); opacity: 1; }
.menu-gallery-close,
.menu-gallery-nav {
    position: absolute;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255,255,255,.32);
    border-radius: 50%;
    background: rgba(0,0,0,.62);
    color: #fff;
    line-height: 1;
}
.menu-gallery-close { top: 0; right: 0; font-size: 30px; }
.menu-gallery-nav { top: 50%; transform: translateY(-50%); font-size: 38px; }
.menu-gallery-previous { left: 0; }
.menu-gallery-next { right: 0; }
.menu-gallery-nav[hidden] { display: none; }
.menu-gallery-counter {
    position: absolute;
    bottom: 31px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 9px;
    border-radius: 6px;
    background: rgba(0,0,0,.66);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}
.menu-gallery-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    display: flex;
    gap: 7px;
    transform: translateX(-50%);
}
.menu-gallery-dots button {
    width: 8px;
    height: 8px;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,.48);
}
.menu-gallery-dots button[aria-current="true"] { background: #fff; transform: scale(1.25); }
[dir="rtl"] .menu-gallery-close { right: auto; left: 0; }

@media (max-width: 719px) {
    .menu-gallery-stage { height: calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); }
    .menu-gallery-nav { top: auto; bottom: 4px; transform: none; }
    .menu-gallery-counter { bottom: 14px; }
    .menu-gallery-dots { bottom: 3px; }
}

@media (prefers-reduced-motion: reduce) {
    .menu-gallery-overlay,
    .menu-gallery-image { transition: none; }
}

.admin-promotion-thumb { width: 76px; height: 76px; object-fit: cover; border-radius: 12px; }
.combo-editor { max-width: 980px; }
.combo-info-card, .combo-groups { border: 1px solid var(--line); border-radius: 18px; padding: 20px; background: #fffdf9; }
.combo-section-heading { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.combo-section-heading > span, .combo-group-number { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 900; }
.combo-section-heading h3, .combo-section-heading p { margin: 0; }
.combo-section-heading p { margin-top: 3px; color: var(--muted); font-size: 14px; }
.combo-info-grid, .combo-group-fields, .combo-advanced-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.combo-price-fields { display: grid; grid-template-columns: minmax(0, 1fr) 92px; gap: 8px; }
.combo-toggles { padding-top: 5px; }
.combo-example { max-width: 520px; padding: 10px 12px; margin-bottom: 16px; border-radius: 12px; background: #f6f2e9; color: var(--muted); font-size: 14px; }
.combo-example p { margin: 9px 0 2px; line-height: 1.6; }
.combo-group-admin { border: 1px solid var(--line); border-radius: 16px; padding: 16px; margin: 14px 0; background: #fff; }
.combo-group-admin.is-invalid { border-color: #dc2626; box-shadow: 0 0 0 2px rgba(220,38,38,.1); }
.combo-group-admin > header { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.combo-group-admin > header strong { font-size: 18px; }
.combo-delete-group { min-height: 40px; padding: 8px 10px; margin-left: auto; background: transparent; color: var(--muted); font-size: 13px; }
.combo-choice-label { margin: 18px 0 8px; color: var(--muted); font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.combo-choice-row { margin: 8px 0; border: 1px solid var(--line); border-radius: 13px; overflow: hidden; background: #fffdf8; }
.combo-choice-summary { display: grid; grid-template-columns: minmax(0,1fr) auto 44px; align-items: center; gap: 10px; min-height: 54px; padding-left: 14px; }
.combo-choice-summary > span { color: #166534; font-size: 13px; font-weight: 850; }
.combo-icon-button { width: 44px; min-height: 44px; padding: 0; background: transparent; color: #7f1d1d; font-size: 24px; }
.combo-choice-advanced { padding: 0 14px 12px; border-top: 1px solid #eee5d7; }
.combo-choice-advanced summary { padding: 10px 0 0; color: var(--muted); font-size: 13px; font-weight: 800; }
.combo-choice-advanced small { display: block; margin-top: 5px; color: var(--muted); line-height: 1.4; }
.combo-advanced-grid { padding-top: 12px; }
.combo-item-picker { margin-top: 12px; }
.combo-item-picker label, .combo-item-picker select { display: block; width: 100%; }
.combo-add-item, .combo-add-group { border: 1px dashed #c8b999; background: #fffaf0; color: var(--primary); }
.combo-add-group { width: 100%; margin-top: 8px; }
.combo-field-error { margin: 8px 0 0; color: #b91c1c; font-weight: 750; }
.combo-save-bar { display: flex; justify-content: flex-end; position: sticky; bottom: 8px; z-index: 5; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.94); box-shadow: 0 10px 28px rgba(0,0,0,.1); backdrop-filter: blur(8px); }
.combo-save { min-width: 180px; }
.promotion-open, .combo-open { overflow: hidden; }
.promotion-overlay, .combo-overlay { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 18px; background: rgba(2,6,23,.72); backdrop-filter: blur(8px); }
.promotion-card { position: relative; width: min(92vw, 560px); max-height: 90dvh; border-radius: 24px; overflow: hidden; background: #fff; box-shadow: 0 28px 90px rgba(0,0,0,.4); touch-action: pan-y; }
.promotion-image { display: block; width: 100%; max-height: 72dvh; object-fit: contain; background: #0f172a; }
.promotion-text { margin: 0; padding: 16px 20px 20px; text-align: center; white-space: pre-line; }
.promotion-close, .combo-close { position: absolute; top: 10px; right: 10px; z-index: 2; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(15,23,42,.78); color: #fff; font-size: 28px; cursor: pointer; }
[dir="rtl"] .promotion-close, [dir="rtl"] .combo-close { right: auto; left: 10px; }
.promotion-counter { display: block; padding: 2px 12px 5px; color: #475569; font-size: 12px; font-weight: 700; text-align: center; }
.promotion-dots { display: flex; justify-content: center; gap: 7px; padding: 0 12px 12px; }
.promotion-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: #cbd5e1; }
.promotion-dots button[aria-current="true"] { background: var(--restaurant-primary); transform: scale(1.3); }
.combo-sheet { position: relative; width: min(94vw, 620px); max-height: 90dvh; display: flex; flex-direction: column; border-radius: 24px; background: #fff; box-shadow: 0 28px 90px rgba(0,0,0,.4); overflow: hidden; }
.combo-sheet > h2 { padding: 22px 64px 16px 22px; margin: 0; }
.combo-sheet-body { overflow-y: auto; padding: 0 22px 18px; }
.combo-sheet fieldset { border: 0; border-top: 1px solid #e5e7eb; padding: 16px 0 4px; }
.combo-sheet legend { font-weight: 800; padding-top: 14px; }
.combo-public-choice { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 11px; border-radius: 12px; background: #f8fafc; margin: 8px 0; }
.combo-public-choice:has(input:checked) { outline: 2px solid var(--restaurant-secondary); }
.combo-public-choice:has(input:disabled) { opacity: .45; }
.combo-validation { color: #b91c1c; padding: 0 22px; }
.combo-sheet footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 22px; border-top: 1px solid #e5e7eb; }
.cart-summary > div { display: flex; justify-content: space-between; gap: 16px; margin: 8px 0; }
.combo-cart-selection { display: inline-block; margin-top: 3px; }
@media (max-width: 719px) {
    .combo-overlay { align-items: end; padding: 0; }
    .combo-sheet { width: 100%; max-height: 92dvh; border-radius: 24px 24px 0 0; }
    .combo-info-card, .combo-groups { padding: 15px; }
    .combo-info-grid, .combo-group-fields, .combo-advanced-grid { grid-template-columns: 1fr; }
    .combo-group-admin { padding: 13px; }
    .combo-delete-group { font-size: 0; }
    .combo-delete-group::after { content: "Delete"; font-size: 13px; }
    .combo-save-bar, .combo-save { width: 100%; }
}

/* Public menu descriptions */
.item-description-wrap {
    min-width: 0;
}
.item-description-wrap .item-description {
    margin: 0;
}
.item-description-wrap.is-expanded .item-description {
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
    -webkit-box-orient: initial;
}
.description-toggle {
    width: fit-content;
    min-height: 30px;
    margin-top: 2px;
    padding: 3px 0;
    border-radius: 6px;
    background: transparent;
    color: var(--restaurant-primary);
    font-size: 11px;
    font-weight: 850;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.description-toggle:hover { text-decoration-thickness: 2px; }
.description-toggle:focus-visible {
    outline: 2px solid var(--restaurant-secondary);
    outline-offset: 2px;
}
.description-toggle[hidden] { display: none; }
.layout-list .item-description-wrap {
    grid-column: 1;
    min-width: 0;
}
.layout-list .item-content .item-description {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.layout-list .item-description-wrap.is-expanded .item-description { display: block; }

/* Add success feedback */
.mini-toast {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    max-width: min(88vw, 360px);
    bottom: calc(84px + env(safe-area-inset-bottom));
    padding: 11px 15px;
    color: #fff;
    background: #17211c;
    transform: translate(-50%, 16px) scale(.96);
    transition: opacity .2s ease, transform .24s cubic-bezier(.2,.8,.2,1);
    text-align: start;
}
.mini-toast.show { transform: translate(-50%, 0) scale(1); }
.mini-toast-icon {
    display: none;
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    place-items: center;
    border-radius: 50%;
    background: #dcfce7;
    color: #166534;
    font-size: 14px;
    line-height: 1;
}
.mini-toast.is-success .mini-toast-icon { display: grid; }
.add-to-cart {
    transition: transform .14s ease, background-color .18s ease, color .18s ease, box-shadow .18s ease;
}
.add-to-cart:active { transform: scale(.97); }
.add-to-cart.is-added {
    transform: scale(.98);
    background: #168a55;
    color: #fff;
    box-shadow: 0 7px 18px rgba(22,138,85,.22);
}
.cart-fab.is-pulsing { animation: cart-success-pulse .48s cubic-bezier(.2,.8,.2,1); }
@keyframes cart-success-pulse {
    0%, 100% { transform: translateX(-50%) scale(1); }
    45% { transform: translateX(-50%) scale(1.045); }
}

/* Checkout-owned design tokens keep the order panel consistent across layouts. */
.cart-panel {
    --checkout-surface: #ffffff;
    --checkout-surface-soft: #f7f8fa;
    --checkout-text: #172033;
    --checkout-muted: #667085;
    --checkout-line: #e4e7ec;
    --checkout-control: #f2f4f7;
    --checkout-action: #168a55;
    --checkout-action-hover: #117346;
    bottom: calc(82px + env(safe-area-inset-bottom));
    max-height: min(72dvh, 620px);
    padding: 18px 18px calc(18px + env(safe-area-inset-bottom));
    border: 1px solid var(--checkout-line);
    border-radius: 24px;
    background: var(--checkout-surface);
    color: var(--checkout-text);
    box-shadow: 0 24px 70px rgba(15,23,42,.24);
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    visibility: hidden;
}
.cart-panel.open { visibility: visible; }
.cart-panel h2 {
    margin: 0 0 12px;
    color: var(--checkout-text);
    font-size: 22px;
    line-height: 1.2;
    font-weight: 900;
}
.cart-items { border-top: 1px solid var(--checkout-line); }
.cart-line {
    gap: 12px;
    padding: 13px 0;
    border-bottom-color: var(--checkout-line);
    color: var(--checkout-text);
}
.cart-line > div:first-child { min-width: 0; }
.cart-line strong {
    color: var(--checkout-text);
    font-weight: 900;
}
.cart-line small {
    color: var(--checkout-muted);
    line-height: 1.45;
}
.cart-line .cart-line-total {
    color: #344054;
    font-weight: 850;
}
.combo-cart-selection { color: var(--checkout-muted); }
.qty { gap: 5px; }
.qty span {
    min-width: 22px;
    color: var(--checkout-text);
    text-align: center;
    font-weight: 850;
}
.qty button {
    width: 40px;
    height: 40px;
    min-height: 40px;
    border: 1px solid var(--checkout-line);
    border-radius: 11px;
    background: var(--checkout-control);
    color: var(--checkout-text);
    font-size: 19px;
}
.qty button:hover { background: #e7eaf0; }
.qty button:focus-visible,
.cart-panel textarea:focus-visible,
.cart-checkout:focus-visible {
    outline: 3px solid rgba(22,138,85,.24);
    outline-offset: 2px;
}
.cart-field { margin-top: 14px; }
.cart-field[hidden] { display: none; }
.cart-field label {
    display: block;
    margin-bottom: 6px;
    color: #344054;
    font-size: 13px;
    font-weight: 850;
}
.cart-panel textarea {
    min-height: 74px;
    margin: 0;
    border-color: var(--checkout-line);
    background: var(--checkout-surface-soft);
    color: var(--checkout-text);
    caret-color: var(--checkout-text);
}
.cart-panel textarea::placeholder { color: #98a2b3; opacity: 1; }
.cart-summary {
    margin-top: 16px;
    padding: 11px 13px;
    border: 1px solid var(--checkout-line);
    border-radius: 16px;
    background: var(--checkout-surface-soft);
    color: var(--checkout-text);
}
.cart-summary > div {
    color: var(--checkout-muted);
    font-size: 14px;
}
.cart-summary > div strong { color: var(--checkout-text); }
.cart-summary .cart-total {
    margin-top: 10px;
    padding: 12px 0 2px;
    border-top: 1px solid var(--checkout-line);
    color: var(--checkout-text);
    font-size: 19px;
    font-weight: 900;
}
.empty-cart { color: var(--checkout-muted); }
.cart-panel .cart-checkout {
    width: 100%;
    min-height: 48px;
    margin-top: 14px;
    background: var(--checkout-action);
    color: #fff;
    box-shadow: 0 10px 22px rgba(22,138,85,.2);
}
.cart-panel .cart-checkout:hover { background: var(--checkout-action-hover); }
.cart-fab {
    bottom: calc(14px + env(safe-area-inset-bottom));
    background: #172033;
    color: #fff;
    overflow-wrap: anywhere;
}
.cart-fab span { background: #f6c453; color: #172033; }

/* Shared architecture for the three new image-first layouts. */
.layout-grid-modern .menu-grid,
.layout-grid-dark .menu-grid,
.layout-grid-compact-3 .menu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
}
.layout-grid-modern .menu-item,
.layout-grid-dark .menu-item,
.layout-grid-compact-3 .menu-item {
    display: flex;
    min-width: 0;
    min-height: 0;
    flex-direction: column;
    border-radius: 18px;
}
.layout-grid-modern .menu-item > img,
.layout-grid-dark .menu-item > img,
.layout-grid-compact-3 .menu-item > img {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}
.layout-grid-modern .item-content,
.layout-grid-dark .item-content,
.layout-grid-compact-3 .item-content {
    display: flex;
    min-width: 0;
    height: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 11px;
}
.layout-grid-modern .item-title-row,
.layout-grid-dark .item-title-row,
.layout-grid-compact-3 .item-title-row {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 6px;
}
.layout-grid-modern .item-title-row h3,
.layout-grid-dark .item-title-row h3,
.layout-grid-compact-3 .item-title-row h3 {
    min-width: 0;
    overflow-wrap: anywhere;
}
.layout-grid-modern .item-price,
.layout-grid-dark .item-price,
.layout-grid-compact-3 .item-price {
    white-space: normal;
    overflow-wrap: anywhere;
}
.layout-grid-modern .item-option-select,
.layout-grid-dark .item-option-select,
.layout-grid-compact-3 .item-option-select { width: 100%; }
.layout-grid-modern .badges,
.layout-grid-dark .badges,
.layout-grid-compact-3 .badges { margin-bottom: 2px; }
.layout-grid-modern .add-to-cart,
.layout-grid-dark .add-to-cart,
.layout-grid-compact-3 .add-to-cart {
    width: 100%;
    min-height: 42px;
    margin-top: auto;
}
.layout-grid-modern .menu-item.is-unavailable,
.layout-grid-dark .menu-item.is-unavailable,
.layout-grid-compact-3 .menu-item.is-unavailable { opacity: .72; }

/* Modern Grid */
.layout-grid-modern { background: #f5f4f1; }
.layout-grid-modern .menu-item {
    background: #fff;
    border-color: #e8e4dc;
    box-shadow: 0 10px 28px rgba(35,31,24,.08);
}
.layout-grid-modern .item-title-row h3 { font-size: 15px; }
.layout-grid-modern .item-content p { font-size: 12px; line-height: 1.4; }
.layout-grid-modern .item-price { color: var(--restaurant-primary); font-weight: 900; }

/* Premium Dark Grid */
.layout-grid-dark {
    background: #0d1117;
    color: #f5f7fa;
}
.layout-grid-dark .menu-shell { color: #f5f7fa; }
.layout-grid-dark .restaurant-info-card,
.layout-grid-dark .menu-tools {
    border: 1px solid #29313c;
    background: #171d25;
    color: #f5f7fa;
    box-shadow: 0 12px 32px rgba(0,0,0,.25);
}
.layout-grid-dark .restaurant-info-card span,
.layout-grid-dark .restaurant-info-card small,
.layout-grid-dark .category-heading span { color: #aeb8c6; }
.layout-grid-dark .menu-tools input {
    border-color: #343e4b;
    background: #0f151d;
    color: #f5f7fa;
}
.layout-grid-dark .menu-tools input::placeholder { color: #8f9aaa; }
.layout-grid-dark .category-tabs a {
    border-color: #35404e;
    background: #1b232d;
    color: #dce3ec;
}
.layout-grid-dark .category-tabs a.active {
    border-color: var(--restaurant-secondary);
    background: var(--restaurant-secondary);
    color: #111827;
}
.layout-grid-dark .menu-item {
    border-color: #29313c;
    background: #171d25;
    color: #f5f7fa;
    box-shadow: 0 14px 34px rgba(0,0,0,.24);
}
.layout-grid-dark .item-title-row h3 { color: #f8fafc; }
.layout-grid-dark .item-title-row strong { color: #f6c961; }
.layout-grid-dark .item-content p { color: #aeb8c6; }
.layout-grid-dark .description-toggle { color: #e9c46a; }
.layout-grid-dark .item-option-select select {
    border-color: #3b4654;
    background: #10161e;
    color: #f1f5f9;
}
.layout-grid-dark .item-option-select select:invalid { color: #aeb8c6; }
.layout-grid-dark .badges span { background: #293341; color: #e7edf5; }
.layout-grid-dark .badges .unavailable-badge { background: #592c32; color: #ffd8dc; }
.layout-grid-dark .add-to-cart {
    background: color-mix(in srgb, var(--restaurant-secondary) 55%, #f6c961);
    color: #111827;
}
.layout-grid-dark .no-results { border-color: #343e4b; background: #171d25; color: #aeb8c6; }

/* Compact three-column grid */
.layout-grid-compact-3 .menu-grid { gap: 8px; }
.layout-grid-compact-3 .menu-item { border-radius: 14px; }
.layout-grid-compact-3 .item-content { gap: 4px; padding: 8px; }
.layout-grid-compact-3 .item-title-row { gap: 4px; }
.layout-grid-compact-3 .item-title-row h3 {
    display: -webkit-box;
    min-height: 2.32em;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 13px;
    line-height: 1.16;
}
.layout-grid-compact-3 .item-title-row strong { font-size: 11px; line-height: 1.25; }
.layout-grid-compact-3 .item-content .item-description {
    -webkit-line-clamp: 1;
    font-size: 10px;
    line-height: 1.3;
}
.layout-grid-compact-3 .item-description-wrap.is-expanded .item-description { display: block; }
.layout-grid-compact-3 .description-toggle { min-height: 26px; font-size: 10px; }
.layout-grid-compact-3 .badges { gap: 3px; }
.layout-grid-compact-3 .badges span { padding: 2px 4px; font-size: 9px; }
.layout-grid-compact-3 .item-option-select select { min-height: 34px; font-size: 10px; }
.layout-grid-compact-3 .add-to-cart { min-height: 38px; padding: 7px 5px; font-size: 12px; }

@media (min-width: 390px) {
    .layout-grid-compact-3 .menu-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 720px) {
    .layout-grid-modern .menu-grid,
    .layout-grid-dark .menu-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .layout-grid-compact-3 .menu-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 389px) {
    .layout-grid-modern .menu-shell,
    .layout-grid-dark .menu-shell,
    .layout-grid-compact-3 .menu-shell { padding-inline: 8px; }
}
@media (prefers-reduced-motion: reduce) {
    .mini-toast,
    .add-to-cart,
    .item-option-select select { transition: none; }
    .cart-fab.is-pulsing { animation: none; }
}

/* 2026-09 visual refinement: only the three opt-in grid layouts. */
.layout-grid-modern .menu-sections,
.layout-grid-dark .menu-sections,
.layout-grid-compact-3 .menu-sections { gap: 17px; }
.layout-grid-modern .category-heading,
.layout-grid-dark .category-heading,
.layout-grid-compact-3 .category-heading { margin-bottom: 6px; }
.layout-grid-modern .menu-grid,
.layout-grid-dark .menu-grid,
.layout-grid-compact-3 .menu-grid { align-items: start; }

/* Modern Grid: light, image-led delivery-app cards with natural height. */
.layout-grid-modern .menu-grid { gap: 10px; }
.layout-grid-modern .menu-item {
    align-self: start;
    border: 0;
    border-radius: 17px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 5px 18px rgba(35,31,24,.075);
}
.layout-grid-modern .menu-item > img {
    aspect-ratio: 4 / 3;
    border-radius: 17px 17px 12px 12px;
}
.layout-grid-modern .item-content {
    height: auto;
    gap: 5px;
    padding: 9px;
}
.layout-grid-modern .item-title-row { gap: 4px; }
.layout-grid-modern .item-title-row h3 {
    font-size: clamp(15px, 4vw, 16px);
    line-height: 1.18;
}
.layout-grid-modern .item-title-row strong {
    font-size: 13px;
    line-height: 1.25;
    font-weight: 950;
}
.layout-grid-modern .item-content p {
    color: #777168;
    font-size: 11px;
    line-height: 1.35;
}
.layout-grid-modern .description-toggle {
    min-height: 25px;
    margin-top: 0;
    font-size: 10px;
}
.layout-grid-modern .badges { gap: 3px; margin: 0; }
.layout-grid-modern .badges span {
    padding: 2px 5px;
    font-size: 9px;
}
.layout-grid-modern .item-option-select select {
    min-height: 34px;
    padding-block: 3px;
    border-radius: 9px;
    font-size: 11px;
}
.layout-grid-modern .add-to-cart {
    min-height: 39px;
    margin-top: 3px;
    padding: 7px 9px;
    border-radius: 10px;
    font-size: 12px;
}
.layout-grid-modern .menu-item.is-unavailable { opacity: .82; }
.layout-grid-modern .menu-item.is-unavailable > img { filter: saturate(.72); }
.layout-grid-modern .badges .unavailable-badge {
    background: #f5e5e3;
    color: #8f2924;
}

/* Dark Grid: border-light, media-first tiles rather than recolored light cards. */
.layout-grid-dark { background: #090c11; }
.layout-grid-dark .menu-sections { gap: 20px; }
.layout-grid-dark .category-heading { margin-inline: 3px; }
.layout-grid-dark .category-heading h2 {
    color: #f1f3f6;
    font-size: 20px;
    letter-spacing: -.01em;
}
.layout-grid-dark .menu-grid { gap: 13px 10px; }
.layout-grid-dark .menu-item {
    align-self: start;
    border: 0;
    border-radius: 16px;
    background: #131820;
    box-shadow: 0 9px 26px rgba(0,0,0,.27);
}
.layout-grid-dark .menu-item > img {
    aspect-ratio: 1 / 1;
    border-radius: 16px 16px 10px 10px;
}
.layout-grid-dark .item-content {
    height: auto;
    gap: 5px;
    padding: 9px;
}
.layout-grid-dark .item-title-row { gap: 4px; }
.layout-grid-dark .item-title-row h3 {
    color: #f2f4f7;
    font-size: 15px;
    line-height: 1.18;
}
.layout-grid-dark .item-title-row strong {
    color: color-mix(in srgb, var(--restaurant-secondary) 42%, #f4c66a);
    font-size: 13px;
    font-weight: 950;
}
.layout-grid-dark .item-content p {
    color: #939eac;
    font-size: 11px;
    line-height: 1.35;
}
.layout-grid-dark .description-toggle {
    min-height: 25px;
    margin-top: 0;
    color: #c9a95f;
    font-size: 10px;
}
.layout-grid-dark .badges { gap: 3px; margin: 0; }
.layout-grid-dark .badges span {
    padding: 2px 5px;
    background: #202731;
    color: #aeb8c5;
    font-size: 9px;
}
.layout-grid-dark .item-option-select select {
    min-height: 34px;
    padding-block: 3px;
    border: 1px solid #323b47;
    border-radius: 9px;
    background: #0d1218;
    color: #e8ecf1;
    font-size: 11px;
}
.layout-grid-dark .add-to-cart {
    min-height: 38px;
    margin-top: 3px;
    padding: 7px 9px;
    border: 1px solid #343e4a;
    border-radius: 10px;
    background: #202832;
    color: #f1f4f7;
    box-shadow: none;
    font-size: 12px;
}
.layout-grid-dark .add-to-cart:hover {
    border-color: #4b5969;
    background: #293440;
}
.layout-grid-dark .add-to-cart.is-added {
    border-color: #168a55;
    background: #168a55;
    color: #fff;
}
.layout-grid-dark .restaurant-info-card,
.layout-grid-dark .menu-tools {
    border-color: rgba(255,255,255,.08);
    background: #121820;
    box-shadow: 0 10px 28px rgba(0,0,0,.22);
}
.layout-grid-dark .menu-tools input {
    border-color: #2b3541;
    border-radius: 13px;
    background: #0b1016;
}
.layout-grid-dark .category-tabs { gap: 6px; }
.layout-grid-dark .category-tabs a {
    border-color: transparent;
    background: #181f28;
    color: #9ba6b4;
}
.layout-grid-dark .category-tabs a.active {
    border-color: #414d5c;
    background: #2a3440;
    color: #fff;
}
.layout-grid-dark .menu-item.is-unavailable { opacity: .7; }
.layout-grid-dark .menu-item.is-unavailable > img { filter: saturate(.55) brightness(.82); }

/* Compact Grid: scanning tiles—image, name, price, and a small action only. */
.layout-grid-compact-3 .menu-sections { gap: 14px; }
.layout-grid-compact-3 .category-heading h2 { font-size: 19px; }
.layout-grid-compact-3 .menu-grid { gap: 8px; }
.layout-grid-compact-3 .menu-item {
    align-self: start;
    border: 0;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(35,31,24,.075);
}
.layout-grid-compact-3 .menu-item > img {
    aspect-ratio: 1 / 1;
    border-radius: 13px 13px 8px 8px;
}
.layout-grid-compact-3 .item-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 30px;
    gap: 5px;
    align-items: end;
    height: auto;
    padding: 7px;
}
.layout-grid-compact-3 .item-title-row {
    grid-column: 1;
    display: flex;
    gap: 3px;
    align-self: stretch;
}
.layout-grid-compact-3 .item-title-row h3 {
    min-height: 2.25em;
    font-size: 12px;
    line-height: 1.13;
}
.layout-grid-compact-3 .item-title-row strong {
    font-size: 10px;
    line-height: 1.2;
    font-weight: 950;
}
.layout-grid-compact-3 .item-description-wrap,
.layout-grid-compact-3 .badges,
.layout-grid-compact-3 .thumbs { display: none; }
.layout-grid-compact-3 .add-to-cart {
    grid-column: 2;
    align-self: end;
    width: 30px;
    min-width: 30px;
    min-height: 30px;
    height: 30px;
    margin: 0;
    padding: 0;
    border-radius: 50%;
    background: var(--restaurant-secondary);
    color: #16120a;
    font-size: 0;
    line-height: 1;
    box-shadow: none;
}
.layout-grid-compact-3 .add-to-cart::before {
    content: "+";
    font-size: 20px;
    font-weight: 700;
}
.layout-grid-compact-3 .add-to-cart.is-added::before { content: "✓"; font-size: 15px; }
.layout-grid-compact-3 .menu-item.is-unavailable { opacity: .68; }
.layout-grid-compact-3 .menu-item.is-unavailable .add-to-cart::before {
    content: "×";
    font-size: 17px;
}
.layout-grid-compact-3 .item-option-select {
    width: 100%;
    min-width: 0;
    margin-top: 2px;
}
.layout-grid-compact-3 .item-option-select select {
    width: 100%;
    min-width: 0;
    min-height: 32px;
    padding: 2px 20px 2px 5px;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}
[dir="rtl"] .layout-grid-compact-3 .item-option-select select {
    padding-right: 5px;
    padding-left: 20px;
}
.layout-grid-compact-3 .item-option-select .option-validation-message { font-size: 9px; }
.layout-grid-compact-3 .menu-item:has(.item-option-price-select) .item-title-row {
    grid-column: 1 / -1;
}
.layout-grid-compact-3 .menu-item:has(.item-option-price-select) .add-to-cart {
    grid-column: 2;
}

@media (min-width: 390px) and (max-width: 719px) {
    .layout-grid-compact-3 .menu-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 389px) {
    .layout-grid-compact-3 .menu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
