* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Neutral until tenant theme loads — avoid sky-blue flash */
  --primary: #2b2b2b;
  --primary-dark: #1e1e1e;
  --accent: #f37021;
  --action: #d35400;
  --header-from: #2b2b2b;
  --header-to: #1e1e1e;
  --bg: #fafafa;
  --card: #ffffff;
  --text: #1a1a1a;
  --muted: #6b7280;
  --border: #e8e8e8;
  --danger: #ef4444;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.08);
  --radius: 24px;
  --radius-sm: 16px;
  --font-display: 'Noto Naskh Arabic', 'Segoe UI', system-ui, Tahoma, Arial, sans-serif;
}

body {
  font-family: 'Noto Naskh Arabic', 'Segoe UI', system-ui, Tahoma, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  direction: rtl;
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  background: linear-gradient(135deg, var(--header-from) 0%, var(--header-to) 100%);
  color: #fff;
  padding: 1.1rem 1rem 1.65rem;
  border-radius: 0 0 28px 28px;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 120;
}

.header-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  flex: 1;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
  flex: 1;
}

.brand-fallback {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.brand-fallback.hidden { display: none; }

.header-meta {
  text-align: left;
  min-width: 0;
}

.mobile-nav {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 110;
  box-shadow: var(--shadow);
}

.mobile-nav-title {
  font-weight: 700;
  font-size: 0.95rem;
  flex: 1;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-icon {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  font-size: 1.1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  color: var(--text);
}

.page-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1rem 130px;
}

.screen-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 1.25rem 0 0.35rem;
}

.screen-sub {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* ——— Restaurant / branch picker ——— */
.picker-screen {
  max-width: 720px;
  padding-top: 0.5rem;
}

.picker-hero {
  text-align: center;
  padding: 1.5rem 1rem 1.25rem;
  margin: 0 -0.25rem 1rem;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--primary) 12%, transparent), transparent 58%),
    linear-gradient(180deg, var(--card) 0%, color-mix(in srgb, var(--card) 70%, var(--bg)) 100%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.picker-hero--branch {
  background:
    radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 58%),
    linear-gradient(180deg, var(--card) 0%, color-mix(in srgb, var(--card) 70%, var(--bg)) 100%);
}

.picker-hero-badge {
  width: 56px;
  height: 56px;
  margin: 0 auto 0.75rem;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.65rem;
  background: color-mix(in srgb, var(--primary) 14%, #fff);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--primary) 18%, transparent);
}

.picker-hero--branch .picker-hero-badge {
  background: color-mix(in srgb, var(--accent) 12%, #fff);
  box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 14%, transparent);
}

.picker-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
  letter-spacing: 0.01em;
}

.picker-sub {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
  max-width: 28rem;
  margin: 0 auto;
}

.picker-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.4rem 0.5rem 0.4rem 0.85rem;
  box-shadow: var(--shadow-lg);
  margin-bottom: 0.75rem;
  position: sticky;
  top: 0.5rem;
  z-index: 100;
}

.picker-search-icon {
  flex-shrink: 0;
  font-size: 1rem;
  opacity: 0.55;
  line-height: 1;
}

.picker-search input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 0.7rem 0.25rem;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
}

.picker-search input:focus { outline: none; }
.picker-search input::placeholder { color: #9aa8b8; }

.picker-search input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.picker-search-clear {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: color-mix(in srgb, var(--muted) 12%, transparent);
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.picker-search-clear:hover {
  background: color-mix(in srgb, var(--muted) 20%, transparent);
  color: var(--text);
}

.picker-meta {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0 0.5rem 0.85rem;
  font-weight: 600;
}

.picker-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  padding-bottom: 2rem;
}

@media (min-width: 640px) {
  .picker-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
  }
}

.picker-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card);
  box-shadow: var(--shadow);
  cursor: pointer;
  font-family: inherit;
  text-align: right;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.picker-card:hover,
.picker-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px color-mix(in srgb, var(--primary) 12%, transparent);
  border-color: color-mix(in srgb, var(--primary) 28%, var(--border));
  outline: none;
}

.picker-card-media {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  overflow: hidden;
  background: color-mix(in srgb, var(--bg) 80%, #fff);
  display: flex;
  align-items: center;
  justify-content: center;
}

.picker-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 4px;
}

.picker-card-placeholder {
  font-size: 1.5rem;
  line-height: 1;
}

.picker-card-body {
  flex: 1;
  min-width: 0;
}

.picker-card-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
  line-height: 1.35;
}

.picker-card-badge {
  display: inline-block;
  margin-inline-start: 0.35rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  vertical-align: middle;
}

.picker-card-meta {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.4;
  white-space: pre-line;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

.picker-card-meta + .picker-card-meta { margin-top: 0.1rem; }

.picker-card-arrow {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 10%, transparent);
}

.picker-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2.5rem 1rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--card) 90%, var(--bg));
}

.picker-empty-icon {
  font-size: 2rem;
  margin-bottom: 0.65rem;
  opacity: 0.7;
}

.picker-empty-title {
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.picker-empty-hint {
  font-size: 0.85rem;
  color: var(--muted);
}

.skeleton-picker-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .skeleton-picker-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.skeleton-picker-card {
  height: 76px;
  border-radius: var(--radius-sm);
}

.restaurant-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.85rem;
  padding-bottom: 2rem;
}

.restaurant-card {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  text-align: right;
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.15s, box-shadow 0.15s;
}

.restaurant-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.1);
}

.restaurant-logo {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  object-fit: contain;
  object-position: center;
  flex-shrink: 0;
  background: #f8fafc;
  padding: 4px;
}

.restaurant-logo.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
}

.restaurant-info { flex: 1; min-width: 0; }
.restaurant-info h3 { font-size: 1rem; margin-bottom: 0.25rem; }
.restaurant-info p { font-size: 0.8rem; color: var(--muted); line-height: 1.4; }
.restaurant-info p.muted { font-size: 0.75rem; }

.category-picker-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  padding-top: 0.25rem;
}

@media (min-width: 768px) {
  .category-picker-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem;
  }
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: right;
  width: 100%;
  padding: 0;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--card);
  box-shadow: var(--shadow);
  cursor: pointer;
  font-family: inherit;
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.15s;
  position: relative;
}

.category-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.category-card-media {
  aspect-ratio: 4 / 3;
  background: linear-gradient(145deg, #eef8fd, #f5fbff);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

.category-card-icon {
  font-size: 3rem;
}

.category-card-body {
  padding: 0.85rem 1rem 1rem;
}

.category-card-body h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.category-card-emoji { font-size: 1rem; }

.category-card-meta {
  font-size: 0.78rem;
  color: var(--muted);
}

.category-card-chevron {
  display: none;
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 1.25rem;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.65rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.btn-back:hover { background: #f8fafc; }


.business-logo {
  display: block;
  width: auto;
  max-width: min(280px, 88vw);
  height: auto;
  max-height: 72px;
  border-radius: 0;
  object-fit: contain;
  object-position: center;
  background: transparent;
  padding: 0;
  box-shadow: none;
  flex-shrink: 0;
}

.brand-block--has-logo {
  justify-content: center;
}

.brand-block--has-logo .business-logo {
  max-width: min(320px, 92vw);
  max-height: 80px;
}

.brand-block--has-logo .brand-fallback {
  display: none;
}

.business-logo.hidden { display: none; }

.site-header h1 {
  font-size: clamp(1.05rem, 3.8vw, 1.3rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin: 0;
  text-wrap: balance;
}

.header-tagline {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.35;
  opacity: 0.9;
  text-wrap: balance;
}

.header-tagline.hidden { display: none; }

.header-hours-mobile {
  margin: 0.15rem 0 0;
  font-size: 0.76rem;
  line-height: 1.4;
  opacity: 0.92;
  text-wrap: balance;
}

.header-hours-mobile.hidden { display: none; }

@media (min-width: 768px) {
  .header-hours-mobile { display: none !important; }
}

.customer-hours-note {
  margin: 0 0 0.55rem;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  background: color-mix(in srgb, var(--primary) 8%, var(--card));
  border: 1px solid color-mix(in srgb, var(--primary) 14%, var(--border));
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--text);
  text-wrap: balance;
}

.customer-hours-note.hidden { display: none; }

.customer-hours-note::before {
  content: '🕐 ';
}

.customer-hours-note-text {
  margin: 0;
}

.customer-hours-table {
  width: 100%;
  margin-top: 0.45rem;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.customer-hours-table th,
.customer-hours-table td {
  padding: 0.28rem 0.35rem;
  text-align: right;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
}

.customer-hours-table th {
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  width: 38%;
}

.customer-hours-table td {
  color: var(--text-muted, var(--text));
}

.customer-hours-table tr.is-closed td,
.customer-hours-table tr.is-closed th {
  opacity: 0.65;
}

.site-hours-public .customer-hours-table {
  margin-top: 0.35rem;
}

.site-hours-public .customer-hours-note-text {
  margin: 0;
  line-height: 1.5;
}

.site-header p {
  font-size: 0.82rem;
  opacity: 0.95;
}

.header-address {
  margin-top: 0.15rem;
  font-size: 0.75rem !important;
  opacity: 0.85 !important;
  white-space: pre-line;
}

.hero-search-wrap {
  margin: -1.1rem 0 0.75rem;
  position: relative;
  z-index: 2;
}

.menu-sticky-tools {
  position: relative;
  z-index: 2;
  margin-bottom: 0.35rem;
}

.menu-sticky-tools .hero-search-wrap {
  margin: 0 0 0.65rem;
}

body.menu-items-view #menuTopDock {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 125;
  max-width: 960px;
  margin: 0 auto;
  padding: 0.35rem 1rem 0.45rem;
  background: color-mix(in srgb, var(--bg) 94%, white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(8px);
}

body.menu-items-view #menuTopDock .hero-search-wrap {
  margin-bottom: 0.5rem;
}

body.menu-items-view #menuTopDock .category-nav:not(.hidden) {
  margin-bottom: 0;
  padding-bottom: 0.35rem;
}

body.cart-visible .page-wrap {
  padding-bottom: calc(5.75rem + env(safe-area-inset-bottom, 0px));
}

.menu-top-dock-spacer {
  display: none;
  height: 0;
}

.menu-top-dock-spacer:not(.hidden) {
  display: block;
}

.category-nav {
  display: block;
  margin-bottom: 0.35rem;
  padding: 0 0 0.35rem;
  max-width: 100%;
}

.category-nav-shell {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.category-nav-hint {
  margin: 0;
  padding: 0 0.15rem;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--primary-dark, var(--primary));
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.category-nav-hint-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 6px;
  background: color-mix(in srgb, var(--primary) 14%, white);
  color: var(--primary);
  font-size: 0.72rem;
  line-height: 1;
}

.category-nav-scroll {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.55rem;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  padding: 0.2rem 0.1rem 0.45rem;
  margin-inline: -0.15rem;
  padding-inline: 0.15rem;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--primary) 45%, transparent) transparent;
}

.category-nav-scroll::-webkit-scrollbar {
  height: 4px;
}

.category-nav-scroll::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--primary) 40%, transparent);
  border-radius: 999px;
}

.category-nav.hidden { display: none; }

.category-nav .category-chip {
  scroll-snap-align: start;
  flex: 0 0 auto;
}

.hero-search {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
  background: var(--card);
  border-radius: 999px;
  padding: 0.35rem 0.35rem 0.35rem 0.5rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 0.75rem 0.85rem;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
}

.hero-search input:focus { outline: none; }

.hero-search input::placeholder { color: #9aa8b8; }

.btn-search {
  flex-shrink: 0;
  border: none;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.65rem 1.15rem;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--primary) 35%, transparent);
}

.btn-search:hover { background: var(--primary-dark); }

.menu-design-root {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.menu-custom-shell:empty {
  display: none;
}

body.menu-design-custom .menu-custom-shell:not(.hidden) {
  margin-bottom: 0.25rem;
}

body.menu-no-pictures .items-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow);
}

body.menu-no-pictures .popular-grid.items-grid {
  gap: 0;
}

body.menu-no-pictures .item-card--text {
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid var(--border);
  box-shadow: none;
  background: transparent;
}

body.menu-no-pictures .item-card--text:last-child {
  border-bottom: none;
}

body.menu-no-pictures .item-card--text:hover {
  transform: none;
  background: color-mix(in srgb, var(--primary) 5%, var(--card));
}

body.menu-no-pictures .item-card--text.in-cart {
  background: color-mix(in srgb, var(--primary) 7%, var(--card));
  box-shadow: inset 3px 0 0 var(--primary);
}

body.menu-no-pictures .item-text-body {
  flex: 1;
  min-width: 0;
  cursor: pointer;
}

body.menu-no-pictures .item-text-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin-bottom: 0.2rem;
}

body.menu-no-pictures .item-text-head h3 {
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.35;
}

body.menu-no-pictures .item-text-head .item-badges {
  margin: 0;
}

body.menu-no-pictures .item-text-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.65rem;
}

body.menu-no-pictures .item-card--text .item-category {
  margin: 0 0 0.2rem;
  font-size: 0.74rem;
}

body.menu-no-pictures .item-card--text .item-desc,
.item-card .item-desc {
  margin: 0.15rem 0 0.35rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--muted, #6b7280);
  white-space: normal;
}

body.menu-no-pictures .item-card--text .qty-controls {
  margin-top: 0;
  flex-shrink: 0;
}

body.menu-no-pictures .category-picker-grid {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

body.menu-no-pictures .category-card--text {
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  text-align: right;
}

body.menu-no-pictures .category-card--text .category-card-leading {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 14px;
  background: color-mix(in srgb, var(--primary) 10%, white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

body.menu-no-pictures .category-card--text .category-card-body {
  flex: 1;
  min-width: 0;
  padding: 0;
}

body.menu-no-pictures .category-card--text .category-card-body h3 {
  margin-bottom: 0.15rem;
}

body.menu-no-pictures .category-card--text .category-card-chevron {
  display: block;
  position: static;
  transform: none;
  color: var(--muted);
  font-size: 1.15rem;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  body.menu-no-pictures .category-picker-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }
}

.categories-head { margin-top: 0.5rem; }

.whatsapp-menu-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1rem;
  margin-bottom: 1rem;
  background: var(--card);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  border: 1px solid color-mix(in srgb, var(--primary) 28%, var(--border));
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s, box-shadow 0.15s;
}

.whatsapp-menu-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.whatsapp-menu-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--primary) 14%, white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.whatsapp-menu-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  text-align: right;
}

.whatsapp-menu-text strong {
  font-size: 0.95rem;
  color: var(--text);
}

.whatsapp-menu-text span:last-child {
  font-size: 0.78rem;
  color: var(--muted);
}

.whatsapp-menu-arrow {
  color: var(--primary);
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.category-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.85rem 0.4rem 0.4rem;
  min-height: 2.65rem;
  border-radius: 999px;
  border: 2px solid color-mix(in srgb, var(--primary) 18%, var(--border));
  background: var(--card);
  color: var(--text);
  font-size: 0.82rem;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s, background 0.15s, border-color 0.15s, box-shadow 0.15s;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.chip-thumb,
.chip-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
}

.chip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--primary) 10%, white);
  font-size: 1rem;
  line-height: 1;
}

.chip-label {
  max-width: 9.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.category-chip:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--primary) 35%, var(--border));
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.1);
}

.category-chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--primary) 45%, transparent);
}

.category-chip.active .chip-icon {
  background: rgba(255, 255, 255, 0.22);
}

.category-chip.active .chip-thumb {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85);
}

.menu-section { margin-top: 1.25rem; }

.menu-section h2 {
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.menu-section h2 img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  object-fit: cover;
}

.items-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

@media (min-width: 768px) {
  .items-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.75rem;
  }
}

.item-card {
  background: var(--card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  padding: 0.85rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: transform 0.15s, box-shadow 0.15s;
}

.item-card--clickable {
  cursor: pointer;
}

.item-card--clickable:focus-visible {
  outline: 2px solid var(--primary, #c45c26);
  outline-offset: 2px;
}

.item-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.1);
}

.item-thumb {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
  background: #f8fafc;
}

.item-card h3 {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
}

.item-price {
  color: var(--primary-dark);
  font-weight: 800;
  font-size: 0.95rem;
}

.qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  margin-top: auto;
}

.qty-btn {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 10px;
  background: color-mix(in srgb, var(--primary) 12%, white);
  color: var(--primary-dark);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
}

.qty-btn:active { transform: scale(0.95); }

.qty-num {
  min-width: 1.5rem;
  text-align: center;
  font-weight: 700;
}

.cart-dock {
  position: fixed;
  bottom: max(0.85rem, env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 1.5rem);
  max-width: 560px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.cart-dock.hidden { display: none; }

.cart-dock-inner {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
  background: #fff;
  border: 2px solid color-mix(in srgb, var(--primary) 38%, var(--border));
  border-radius: 999px;
  padding: 0.45rem 0.45rem 0.45rem 0.6rem;
  box-shadow:
    0 10px 28px rgba(15, 23, 42, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.9);
}

.cart-dock-inner.cart-bar-pulse {
  animation: cart-dock-pulse 0.72s cubic-bezier(0.34, 1.2, 0.64, 1);
}

@keyframes cart-dock-pulse {
  0% { transform: scale(1); box-shadow: 0 10px 28px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.9); }
  35% { transform: scale(1.04); box-shadow: 0 14px 36px color-mix(in srgb, var(--primary) 35%, rgba(15, 23, 42, 0.22)), 0 0 0 3px color-mix(in srgb, var(--primary) 28%, transparent); }
  100% { transform: scale(1); box-shadow: 0 10px 28px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.9); }
}

.cart-dock-cart {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  text-align: right;
  padding: 0.35rem 0.5rem;
  min-width: 0;
}

.cart-dock-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--primary) 14%, white);
  border: 1px solid color-mix(in srgb, var(--primary) 22%, var(--border));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  flex-shrink: 0;
}

.cart-dock-meta {
  display: flex;
  flex-direction: column;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  min-width: 0;
  line-height: 1.25;
}

.cart-dock-meta span:last-child {
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--primary-dark, var(--text));
}

.cart-dock-checkout {
  flex-shrink: 0;
  border: none;
  border-radius: 999px;
  background: var(--action);
  color: #fff;
  padding: 0.75rem 1.1rem;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  box-shadow: 0 4px 16px rgba(0, 51, 102, 0.28);
}

.cart-dock-checkout:hover { filter: brightness(1.06); }

.cart-dock-checkout.is-disabled,
.cart-dock-checkout:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}


.cart-min-warning,
.modal-min-warning {
  font-size: 0.8rem;
  font-weight: 600;
  color: #c2410c;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 10px;
  padding: 0.45rem 0.65rem;
  text-align: center;
  margin: 0;
}

.modal-min-warning {
  margin-bottom: 0.85rem;
}

.btn-checkout.is-disabled,
.btn-checkout:disabled,
.cart-dock-checkout.is-disabled,
.cart-dock-checkout:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.cart-bar.hidden { display: none; }

.cart-summary {
  display: flex;
  flex-direction: column;
  font-size: 0.85rem;
  color: var(--muted);
}

.cart-summary span:last-child {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
}

.btn-checkout {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 0.75rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 16px color-mix(in srgb, var(--primary) 35%, transparent);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  display: none;
  align-items: flex-end;
  justify-content: center;
  z-index: 300;
  padding: max(1rem, env(safe-area-inset-top, 0px)) max(1rem, env(safe-area-inset-right, 0px)) max(1rem, env(safe-area-inset-bottom, 0px)) max(1rem, env(safe-area-inset-left, 0px));
}

.modal-overlay.open { display: flex; }

.modal {
  background: var(--card);
  border-radius: 20px 20px 16px 16px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.modal-header h2 { flex: 1; font-size: 1.1rem; }

.btn-close {
  border: none;
  background: #f1f5f9;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
}

.cart-items-list {
  list-style: none;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.checkout-cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.checkout-cart-count {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
}

.checkout-clear-btn {
  border: none;
  background: #fef2f2;
  color: #dc2626;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  cursor: pointer;
}

.checkout-clear-btn:hover:not(:disabled) {
  background: #fee2e2;
}

.checkout-clear-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.cart-items-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.checkout-cart-row {
  flex-direction: column;
  align-items: stretch;
  gap: 0.55rem;
  padding: 0.75rem 0.85rem !important;
}

.checkout-cart-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.checkout-cart-name {
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.35;
}

.checkout-cart-unit {
  font-size: 0.78rem;
  color: var(--muted);
}

.checkout-cart-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.checkout-qty-controls {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.checkout-qty-controls .btn-minus,
.checkout-qty-controls .btn-plus {
  width: 32px;
  height: 32px;
  font-size: 1rem;
}

.checkout-qty-value {
  min-width: 1.5rem;
  text-align: center;
  font-weight: 800;
}

.checkout-remove-btn {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 10px;
  background: #fef2f2;
  color: #dc2626;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

.checkout-remove-btn:hover {
  background: #fee2e2;
}

.checkout-cart-line-total {
  font-weight: 800;
  color: var(--primary-dark);
  font-size: 0.9rem;
  text-align: left;
}

.checkout-cart-empty {
  justify-content: center;
  color: var(--muted);
  padding: 1.25rem !important;
}

.cart-items-list li:last-child { border-bottom: none; }

.form-group { margin-bottom: 0.85rem; }

.web-fulfillment-picker {
  margin-bottom: 1rem;
}

.web-fulfillment-label {
  margin: 0 0 0.5rem;
  font-size: 0.88rem;
  font-weight: 700;
}

.web-fulfillment-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.web-fulfillment-btn {
  appearance: none;
  border: 1.5px solid var(--border, #e5e7eb);
  background: var(--card, #fff);
  color: var(--text, #1a1a1a);
  border-radius: 12px;
  padding: 0.7rem 0.45rem;
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
}

.web-fulfillment-btn.is-active {
  border-color: var(--primary, #f37021);
  background: color-mix(in srgb, var(--primary, #f37021) 14%, #fff);
  color: var(--primary-dark, #d35400);
}

.address-detailed-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.address-detailed .input,
.delivery-zone-field .input {
  width: 100%;
  margin-bottom: 0.5rem;
}

.delivery-location-field {
  margin-top: 0.75rem;
  padding: 0.75rem;
  border-radius: 12px;
  border: 1px solid var(--border, #e5e7eb);
  background: #fafafa;
}

.delivery-location-label {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text, #1a1a1a);
}

.delivery-location-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.delivery-location-btn {
  flex: 1 1 auto;
  min-width: 10rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--primary, #f37021);
  background: var(--primary, #f37021);
  font-weight: 800;
  cursor: pointer;
  color: #fff;
  font-family: inherit;
  font-size: 0.92rem;
}

.delivery-location-btn.is-set {
  background: #fff;
  color: var(--primary-dark, #d35400);
}

.delivery-location-btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

.delivery-location-map-link {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--border, #d1d5db);
  background: #fff;
  color: var(--primary-dark, #d35400);
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
}

.delivery-location-clear {
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--muted, #6b7280);
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

#deliveryLocationStatus {
  margin: 0.45rem 0 0;
  min-height: 1.2em;
}

#deliveryLocationStatus.is-error {
  color: #b91c1c;
}

#deliveryLocationStatus.is-ok {
  color: #15803d;
}

.delivery-location-preview {
  margin-top: 0.65rem;
}

.delivery-location-map {
  width: 100%;
  height: 240px;
  border-radius: 12px;
  overflow: hidden;
  background: #e5e7eb;
  z-index: 1;
}

.delivery-location-map .leaflet-container {
  width: 100%;
  height: 100%;
  font: inherit;
}

.delivery-location-preview-hint {
  margin: 0.45rem 0 0.35rem;
  font-size: 0.8rem;
  color: var(--muted, #6b7280);
  font-weight: 600;
}

.delivery-location-confirm-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text, #1a1a1a);
  cursor: pointer;
}

.delivery-location-confirm-row input {
  margin-top: 0.2rem;
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
}

@media (max-width: 520px) {
  .address-detailed-grid {
    grid-template-columns: 1fr;
  }
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.7rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
}

.btn-submit {
  width: 100%;
  padding: 0.9rem;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--action), color-mix(in srgb, var(--action) 85%, #000));
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  margin-top: 0.5rem;
}

.modal-total-line {
  text-align: center;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.item-addon-hint { display: block; font-size: 0.78rem; color: var(--accent, #6366f1); margin-top: 0.15rem; }
.addon-picker-list { display: flex; flex-direction: column; gap: 0.65rem; margin: 0.75rem 0; }
.addon-picker-list.hidden { display: none; }
.addon-picker-desc {
  margin: 0.35rem 0 0.15rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface-alt, #f5f5f5) 88%, var(--primary, #c62828) 12%);
  color: var(--text, #1f1f1f);
  font-size: 0.9rem;
  line-height: 1.55;
  white-space: pre-wrap;
}
.addon-picker-desc.hidden { display: none; }
.addon-picker-qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0.35rem 0 0.65rem;
}
.addon-picker-qty-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.addon-picker-qty-controls #addonPickerQtyValue {
  min-width: 1.5rem;
  text-align: center;
  font-weight: 800;
}
.addon-picker-notes-card {
  margin: 0.5rem 0 0.85rem;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

.addon-picker-notes-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.addon-picker-notes-icon {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--primary) 12%, white);
  font-size: 0.95rem;
  line-height: 1;
  flex-shrink: 0;
}

.addon-picker-notes-copy {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.4rem;
  min-width: 0;
}

.addon-picker-notes-copy strong {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text);
}

.addon-picker-notes-copy span {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.35;
}

.addon-picker-notes-card textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.5;
  resize: none;
  min-height: 6.25rem;
  background: #fff;
  color: var(--text);
  -webkit-text-size-adjust: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.addon-picker-notes-card textarea::placeholder {
  font-size: 16px;
  color: color-mix(in srgb, var(--muted) 75%, transparent);
}

.addon-picker-notes-card textarea:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--primary) 45%, var(--border));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 16%, transparent);
}

.addon-picker-actions--single { grid-template-columns: 1fr; }

.checkout-cart-notes {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.35rem;
  margin-top: 0.3rem;
  max-width: 100%;
  padding: 0.35rem 0.55rem;
  border-radius: 8px;
  background: color-mix(in srgb, var(--primary) 7%, white);
  border: 1px solid color-mix(in srgb, var(--primary) 12%, var(--border));
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--text);
}

.checkout-cart-notes-icon {
  flex-shrink: 0;
  opacity: 0.85;
}
.addon-picker-group { display: flex; flex-direction: column; gap: 0.45rem; }
.addon-picker-group-label { margin: 0; font-size: 0.82rem; font-weight: 700; color: var(--muted); }
.addon-picker-option { display: flex; align-items: center; gap: 0.65rem; padding: 0.65rem 0.75rem; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; }
.addon-picker-option input { width: 1rem; height: 1rem; }
.addon-picker-option-text { display: flex; justify-content: space-between; gap: 0.75rem; flex: 1; }
.addon-picker-total-line { text-align: center; font-weight: 700; margin: 0.75rem 0; }
.addon-picker-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.addon-picker-error { color: var(--danger, #c62828) !important; font-weight: 700; }
.addon-picker-actions .btn-outline { background: transparent; border: 1px solid var(--border); border-radius: 12px; padding: 0.75rem; font-weight: 700; cursor: pointer; }

.customer-summary {
  background: #f8fafc;
  border-radius: 12px;
  padding: 0.85rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
}

.saved-address-picker {
  margin: 0.35rem 0 0.85rem;
}

.saved-address-picker-title {
  margin: 0 0 0.45rem;
  font-size: 0.85rem;
  font-weight: 700;
}

.saved-address-list {
  display: grid;
  gap: 0.45rem;
}

.saved-address-option {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}

.saved-address-option:has(input:checked) {
  border-color: var(--primary);
  background: color-mix(in srgb, var(--primary) 8%, #fff);
}

.saved-address-option input {
  margin-top: 0.15rem;
}

.saved-address-option span {
  font-size: 0.88rem;
  line-height: 1.4;
}

.saved-address-option--new {
  border-style: dashed;
}

.summary-title { font-weight: 700; margin-bottom: 0.5rem; font-size: 0.9rem; }
.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  padding: 0.25rem 0;
}

.success-screen {
  display: block;
  text-align: center;
  padding: 3rem 1rem 5rem;
}

.success-screen.hidden {
  display: none !important;
}

.success-screen .icon { font-size: 3rem; margin-bottom: 1rem; }

.success-note {
  margin-top: 1rem;
  color: var(--muted);
}

.btn-new-order {
  margin-top: 1.5rem;
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--primary);
  background: transparent;
  color: var(--primary-dark);
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.btn-new-order:hover {
  background: color-mix(in srgb, var(--primary) 10%, white);
}

/* Reorder bar */
.reorder-bar {
  margin: 0.75rem 0 0;
}

.reorder-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 15%, white), color-mix(in srgb, var(--primary) 10%, white));
  border: 1px solid color-mix(in srgb, var(--primary) 25%, var(--border));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.reorder-bar-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.85rem;
}

.reorder-bar-text strong { font-size: 0.95rem; }

.btn-reorder {
  border: none;
  background: var(--primary);
  color: #fff;
  padding: 0.55rem 1rem;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  font-size: 0.85rem;
}

/* Customer WhatsApp auth */
.btn-customer-auth {
  margin-top: 0.5rem;
  border: 1px solid color-mix(in srgb, var(--primary) 35%, transparent);
  background: color-mix(in srgb, var(--primary) 8%, var(--surface));
  color: var(--primary);
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.customer-auth-modal .customer-auth-lead {
  color: var(--text-muted);
  margin: 0 0 1rem;
  line-height: 1.6;
}

.customer-auth-code {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-align: center;
  margin: 0.5rem 0 1rem;
  color: var(--primary);
}

.customer-auth-wa {
  display: block;
  text-align: center;
  text-decoration: none;
  margin-bottom: 0.75rem;
}

.customer-auth-wait {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0.75rem 0;
}

.customer-auth-orders {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 320px;
  overflow: auto;
  margin-bottom: 1rem;
}

.customer-auth-order {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem;
  background: var(--surface-alt, #fafafa);
}

.customer-auth-order-head {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.customer-auth-status {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: var(--surface-alt, #f1f5f9);
  color: var(--text-muted);
  white-space: nowrap;
}

.customer-auth-status--new,
.customer-auth-status--pending_approval {
  background: #dbeafe;
  color: #1d4ed8;
}

.customer-auth-status--preparing {
  background: #fef3c7;
  color: #b45309;
}

.customer-auth-status--ready,
.customer-auth-status--served {
  background: #d1fae5;
  color: #047857;
}

.customer-auth-status--delivering {
  background: color-mix(in srgb, var(--primary) 12%, white);
  color: var(--primary-dark);
}

.customer-auth-status--done {
  background: #d4edda;
  color: #1e7e34;
}

.customer-auth-status--cancelled {
  background: #fdecea;
  color: #c62828;
}

.customer-auth-items-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  width: 100%;
  margin: 0 0 0.5rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-alt, #fafafa);
  font-family: inherit;
  text-align: right;
  cursor: pointer;
}

.customer-auth-items-preview {
  flex: 1;
  min-width: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-auth-items-hint {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
}

.customer-order-items-body {
  max-height: min(60vh, 24rem);
  overflow-y: auto;
}

.customer-order-items-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.customer-order-items-list li {
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-alt, #fafafa);
  font-size: 0.9rem;
  line-height: 1.55;
  word-break: break-word;
}

.customer-order-items-empty {
  margin: 0;
  text-align: center;
  color: var(--text-muted);
  padding: 1rem 0;
}

.customer-auth-order-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

.btn-sm {
  padding: 0.35rem 0.65rem;
  font-size: 0.8rem;
}

.customer-auth-loading,
.customer-auth-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 1rem 0;
}

/* Order tracker */
.order-tracker {
  margin: 1.5rem auto;
  max-width: 360px;
}

.tracker-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  text-align: right;
}

.tracker-step {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0;
  position: relative;
  opacity: 0.45;
  transition: opacity 0.25s ease;
}

.tracker-step::before {
  content: '';
  position: absolute;
  right: 1.05rem;
  top: 2.2rem;
  bottom: -0.65rem;
  width: 2px;
  background: var(--border);
}

.tracker-step:last-child::before { display: none; }

.tracker-step.done,
.tracker-step.active {
  opacity: 1;
}

.tracker-step.done .tracker-icon {
  background: var(--primary);
  color: #fff;
}

.tracker-step.active .tracker-icon {
  background: var(--accent);
  color: #fff;
  animation: tracker-pulse 1.5s ease infinite;
}

.tracker-icon {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e2e8f0;
  font-size: 1rem;
  flex-shrink: 0;
  z-index: 1;
}

.tracker-label {
  font-weight: 600;
  font-size: 0.9rem;
}

.tracker-cancelled {
  color: var(--danger);
  font-weight: 600;
  padding: 0.75rem;
  background: #fef2f2;
  border-radius: 12px;
}

@keyframes tracker-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.order-tracker.tracker-highlight {
  outline: 2px solid var(--primary);
  outline-offset: 6px;
  border-radius: 12px;
  transition: outline-color 0.2s ease;
}

.track-follow-cta {
  margin: 1.25rem auto 0;
  max-width: 420px;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid var(--border);
  text-align: center;
}

.track-follow-lead {
  margin: 0 0 0.75rem;
  font-weight: 600;
  color: var(--text);
}

.btn-track-site {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.btn-track-site:hover {
  filter: brightness(1.05);
}

.track-wa-block {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--border);
}

.track-wa-hint {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.track-wa-code {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--primary);
  direction: ltr;
}

.btn-track-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: #25d366;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.btn-track-wa:hover {
  filter: brightness(1.05);
}

/* Item badges */
.item-thumb-wrap {
  position: relative;
  flex-shrink: 0;
}

.item-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.35rem;
}

.item-thumb-wrap .item-badges {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  left: 0.35rem;
  margin: 0;
  z-index: 2;
  pointer-events: none;
}

.item-badge {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  line-height: 1.3;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15);
  backdrop-filter: blur(4px);
}

.item-badge.popular {
  background: color-mix(in srgb, #f97316 92%, white);
  color: #fff;
}

.item-badge.new {
  background: color-mix(in srgb, var(--primary) 92%, white);
  color: #fff;
}

.popular-section {
  margin-bottom: 0.5rem;
}

.popular-grid .item-card {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
}

.item-card.item-added {
  animation: item-pop 0.35s ease;
}

@keyframes item-pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.03); }
  100% { transform: scale(1); }
}

.loading {
  text-align: center;
  padding: 2rem;
  color: var(--muted);
}

.hidden { display: none !important; }

.empty-search {
  text-align: center;
  padding: 2rem;
  color: var(--muted);
}

@media (min-width: 768px) {
  .modal-overlay { align-items: center; }
  .modal { border-radius: var(--radius); }
}

/* item cards (order.js markup) */
.category-section { margin-top: 1rem; scroll-margin-top: 7.5rem; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.section-head h2 { font-size: 1.05rem; font-weight: 800; }
.section-meta { font-size: 0.8rem; color: var(--muted); }

.item-card .item-main {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  cursor: pointer;
}

.item-card .item-thumb {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}

.item-card .item-info { flex: 1; min-width: 0; }
.item-card .item-info h3 { font-size: 0.92rem; margin-bottom: 0.25rem; }
.item-card .price, .item-price { color: var(--primary-dark); font-weight: 800; }

.item-category {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.qty-controls, .qty-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.btn-minus, .btn-plus, .qty-btn {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 10px;
  background: color-mix(in srgb, var(--primary) 12%, white);
  color: var(--primary-dark);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
}

.item-card.in-cart {
  border-color: color-mix(in srgb, var(--primary) 45%, var(--border));
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 15%, transparent);
}

.chip-count {
  background: rgba(255,255,255,0.2);
  padding: 0.1rem 0.35rem;
  border-radius: 6px;
  font-size: 0.7rem;
  margin-right: 0.25rem;
}

.category-chip:not(.active) .chip-count {
  background: #f1f5f9;
  color: var(--muted);
}

.empty-state { text-align: center; padding: 2rem; color: var(--muted); }

/* Skeleton loaders */
.skeleton-wrap { padding: 0; }

.skeleton-block {
  position: relative;
  overflow: hidden;
  background: #e2e8f0;
  border-radius: 12px;
}

.skeleton-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.55) 50%,
    transparent 100%
  );
  animation: skeleton-shimmer 1.2s ease-in-out infinite;
}

@keyframes skeleton-shimmer {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

.skeleton-restaurant-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.85rem;
}

.skeleton-restaurant {
  height: 88px;
  border-radius: var(--radius);
}

.skeleton-menu { padding-top: 0.25rem; }

.skeleton-search {
  height: 52px;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.skeleton-categories {
  margin-top: 0.5rem;
}

.skeleton-category-card {
  height: 200px;
  border-radius: var(--radius-sm);
}

.skeleton-items-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

@media (min-width: 768px) {
  .skeleton-items-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.75rem;
  }
}

.skeleton-item-card {
  height: 148px;
  border-radius: var(--radius);
}

/* Fly to cart */
.fly-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 600;
}

.fly-dot {
  position: fixed;
  width: 42px;
  height: 42px;
  margin: -21px 0 0 -21px;
  border-radius: 50%;
  background: var(--action, var(--primary));
  color: #fff;
  font-size: 0.82rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 8px 22px color-mix(in srgb, var(--action, var(--primary)) 55%, transparent),
    0 0 0 4px rgba(255, 255, 255, 0.92);
  animation: fly-to-cart 0.72s cubic-bezier(0.22, 0.85, 0.28, 1) forwards;
  z-index: 601;
}

@keyframes fly-to-cart {
  0% { transform: translate(0, 0) scale(1); opacity: 1; }
  55% { opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) scale(0.45); opacity: 0.2; }
}

/* Empty-cart suggestions */
.suggest-bar {
  margin: 0.75rem 0 0.25rem;
  padding: 0.85rem 1rem;
  background: var(--card);
  border: 1px dashed color-mix(in srgb, var(--primary) 35%, var(--border));
  border-radius: var(--radius);
}

.suggest-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.suggest-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.suggest-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #f8fafc;
  font-family: inherit;
  font-size: 0.82rem;
  cursor: pointer;
  transition: transform 0.12s, border-color 0.12s, background 0.12s;
}

.suggest-chip:hover {
  transform: translateY(-1px);
  border-color: var(--primary);
  background: color-mix(in srgb, var(--primary) 8%, white);
}

.suggest-chip strong {
  color: var(--primary-dark);
  font-size: 0.78rem;
}

.suggest-qty-modal {
  text-align: center;
}

.suggest-qty-price {
  color: var(--muted);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.suggest-qty-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.suggest-qty-controls #suggestQtyValue {
  font-size: 1.5rem;
  font-weight: 800;
  min-width: 2rem;
}

@media (max-width: 767px) {
  .mobile-nav:not(.hidden) { display: flex; }

  body.mobile-items-view .site-header { display: none; }

  body.mobile-items-view .hero-search-wrap { margin-top: 0.85rem; }

  body.mobile-items-view #menuTopDock .category-nav:not(.hidden) {
    padding-bottom: 0.5rem;
  }

  .category-chip {
    gap: 0.4rem;
    padding: 0.35rem 0.7rem 0.35rem 0.35rem;
    min-height: 2.85rem;
    font-size: 0.8rem;
  }

  .chip-icon {
    width: 34px;
    height: 34px;
    font-size: 1.15rem;
    background: color-mix(in srgb, var(--primary) 12%, #fff7f0);
  }

  .category-chip.active .chip-icon {
    background: rgba(255, 255, 255, 0.28);
  }

  .chip-label {
    max-width: 7.5rem;
    font-weight: 700;
  }

  .chip-count {
    margin-right: 0;
    min-width: 1.35rem;
    text-align: center;
    font-weight: 800;
  }

  .qty-btn,
  .btn-minus,
  .btn-plus,
  .checkout-qty-controls .btn-minus,
  .checkout-qty-controls .btn-plus,
  .suggest-qty-controls .btn-minus,
  .suggest-qty-controls .btn-plus {
    width: 44px;
    height: 44px;
    min-width: 44px;
    font-size: 1.15rem;
  }

  .category-card-body {
    padding: 0.65rem 0.5rem 0.75rem;
  }

  .category-card-body h3 {
    font-size: 0.82rem;
  }

  .category-card-meta {
    font-size: 0.72rem;
  }

  .category-card-icon {
    font-size: 2rem;
  }

  .item-card .item-main {
    flex-direction: column;
  }

  body.menu-no-pictures .item-card--text {
    flex-direction: row;
    align-items: center;
    padding: 0.8rem 0.9rem;
  }

  body.menu-no-pictures .item-card--text .qty-controls {
    margin-top: 0;
  }

  .item-card .item-thumb,
  .item-card .item-thumb-wrap .item-thumb {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
  }

  .item-card .item-info h3 {
    font-size: 0.82rem;
  }

  .item-card .price,
  .item-card .item-price {
    font-size: 0.85rem;
  }

  .hero-search-wrap { margin-top: 0.85rem; }

  .site-header { border-radius: 0 0 22px 22px; padding-bottom: 1.35rem; }

  .header-meta { display: none; }

  .brand-block { flex: 1; justify-content: center; flex-wrap: wrap; row-gap: 0.4rem; }

  .brand-text { flex: 1 1 100%; text-align: center; align-items: center; }

  .site-header h1,
  .header-tagline { text-align: center; max-width: 100%; }

  .business-logo:not(.hidden) {
    max-width: min(320px, calc(100vw - 2rem));
    max-height: 84px;
  }

  .brand-block--has-logo {
    flex-direction: column;
    align-items: center;
  }

  .brand-block--has-logo .brand-text {
    flex: 0 1 auto;
    width: 100%;
  }

  .header-inner { justify-content: center; }

  .cart-dock {
    bottom: max(0.65rem, env(safe-area-inset-bottom, 0px));
    width: calc(100% - 1rem);
  }

  .modal {
    max-height: min(90vh, calc(100dvh - 2rem - env(safe-area-inset-bottom, 0px)));
  }

  .btn-submit,
  .cart-dock-checkout {
    min-height: 44px;
  }

  .form-group input,
  .form-group textarea,
  .hero-search input,
  .addon-picker-notes-card textarea {
    font-size: 16px;
  }
}

@media (min-width: 768px) {
  .category-card-chevron { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .site-panel {
    animation: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fly-dot,
  .skeleton-shimmer,
  .item-card.item-added,
  .cart-dock-inner.cart-bar-pulse {
    animation: none !important;
  }
}

/* ——— Brand boot splash (tenant theme loading) ——— */
html.brand-booting {
  overflow: hidden;
}

html.brand-booting #brandBootSplash {
  display: flex !important;
}

.brand-boot-splash {
  --boot-from: var(--header-from, #2d4739);
  --boot-to: var(--header-to, #1a2f26);
  --boot-bg: var(--bg, #f5f2eb);
  --boot-primary: var(--primary, #2d4739);
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, color-mix(in srgb, var(--boot-primary) 18%, transparent), transparent 70%),
    linear-gradient(165deg, var(--boot-bg) 0%, color-mix(in srgb, var(--boot-bg) 88%, var(--boot-to)) 100%);
  transition: opacity 0.32s ease, visibility 0.32s ease;
}

.brand-boot-splash.brand-boot-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.brand-boot-splash__glow {
  position: absolute;
  width: min(420px, 90vw);
  height: min(420px, 90vw);
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--boot-primary) 22%, transparent) 0%, transparent 68%);
  animation: brand-boot-glow 2.4s ease-in-out infinite;
  pointer-events: none;
}

.brand-boot-splash__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  text-align: center;
  max-width: min(320px, 92vw);
  animation: brand-boot-rise 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.brand-boot-splash__logo {
  width: auto;
  max-width: min(300px, 88vw);
  min-height: 4.5rem;
  max-height: 6.5rem;
  padding: 0.35rem 0.5rem;
  border-radius: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  background: linear-gradient(145deg, var(--boot-from), var(--boot-to));
  color: #fff;
  box-shadow:
    0 16px 40px color-mix(in srgb, var(--boot-to) 35%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  overflow: visible;
}

.brand-boot-splash__logo img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 5.75rem;
  object-fit: contain;
  object-position: center;
  display: block;
}

.brand-boot-splash__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
}

.brand-boot-splash__hint {
  font-size: 0.92rem;
  color: var(--muted);
  margin-top: -0.35rem;
}

.brand-boot-splash__spinner {
  width: 2.25rem;
  height: 2.25rem;
  margin-top: 0.35rem;
  border-radius: 50%;
  border: 3px solid color-mix(in srgb, var(--boot-primary) 18%, transparent);
  border-top-color: var(--boot-primary);
  animation: brand-boot-spin 0.85s linear infinite;
}

@keyframes brand-boot-spin {
  to { transform: rotate(360deg); }
}

@keyframes brand-boot-glow {
  0%, 100% { transform: scale(0.96); opacity: 0.75; }
  50% { transform: scale(1.04); opacity: 1; }
}

@keyframes brand-boot-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .brand-boot-splash__glow,
  .brand-boot-splash__spinner,
  .brand-boot-splash__inner {
    animation: none !important;
  }
}

/* ——— Restaurant site SPA (home + contact) ——— */
#siteScreen {
  flex: 1;
  width: 100%;
  padding: 0 1rem;
}

.site-panel {
  animation: sitePanelIn 0.28s ease-out;
}

.site-panel.hidden {
  display: none !important;
}

@keyframes sitePanelIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.site-nav-link {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: background 0.15s ease, transform 0.15s ease;
}

.site-nav-link:hover,
.site-nav-link.active {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.site-nav-link--page.active {
  background: color-mix(in srgb, var(--accent) 75%, white);
  border-color: transparent;
}

/* Hero — inspired by terrace café layouts */
.site-hero {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: min(52vh, 420px);
  margin: 0 auto 1.5rem;
  max-width: 960px;
  box-shadow: 0 20px 50px color-mix(in srgb, var(--text) 14%, transparent);
}

.site-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-hero-bg--fallback {
  background:
    radial-gradient(circle at 85% 20%, color-mix(in srgb, var(--accent) 35%, transparent), transparent 45%),
    linear-gradient(135deg, var(--header-from), var(--header-to));
}

.site-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--header-to) 25%, transparent) 0%,
    color-mix(in srgb, var(--header-to) 78%, transparent) 100%
  );
}

.site-hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: min(52vh, 420px);
  padding: 1.5rem 1.25rem 1.35rem;
  color: #fff;
}

.site-hero-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 0.35rem;
}

.site-hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  line-height: 1.15;
  margin-bottom: 0.4rem;
}

.site-hero-tagline {
  font-size: 1rem;
  opacity: 0.92;
  max-width: 28rem;
  margin-bottom: 1.1rem;
  line-height: 1.55;
}

.site-hero-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.site-hero-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  padding: 0.85rem 0.95rem;
  border-radius: calc(var(--radius-sm) - 2px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  text-align: right;
  transition: transform 0.18s ease, background 0.18s ease;
}

.site-hero-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.2);
}

.site-hero-card-script {
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1;
  opacity: 0.9;
}

.site-hero-card-label {
  font-weight: 700;
  font-size: 0.95rem;
}

.site-hero-card-cta {
  font-size: 0.75rem;
  opacity: 0.85;
  margin-top: 0.15rem;
}

.site-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
  max-width: 960px;
  margin: 0 auto 1.25rem;
  padding: 0 0.25rem;
}

.site-info-card {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 1rem 1.05rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}

.site-info-icon {
  font-size: 1.35rem;
  line-height: 1;
}

.site-info-card h3 {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.site-info-card p {
  font-size: 0.95rem;
  line-height: 1.45;
}

.site-address-multiline {
  white-space: pre-line;
}

.site-info-card a {
  color: var(--primary-dark);
  text-decoration: none;
  font-weight: 600;
}

.site-section-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 0.65rem;
  color: var(--text);
}

.site-about-teaser,
.site-social-section {
  max-width: 960px;
  margin: 0 auto 1.25rem;
  padding: 1.1rem 1.15rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}

.site-about-teaser p {
  color: var(--muted);
  line-height: 1.65;
}

.site-text-link {
  margin-top: 0.65rem;
  border: none;
  background: none;
  color: var(--primary-dark);
  font-weight: 700;
  cursor: pointer;
  font-size: 0.92rem;
  padding: 0;
}

.site-sticky-cta {
  position: sticky;
  bottom: 0.75rem;
  max-width: 960px;
  margin: 1.5rem auto 0;
  padding: 0 0.25rem;
  z-index: 40;
}

.btn-site-order {
  display: block;
  width: 100%;
  padding: 1rem 1.25rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  text-align: center;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.05rem;
  box-shadow: 0 12px 32px color-mix(in srgb, var(--primary) 35%, transparent);
}

.site-contact-head {
  max-width: 960px;
  margin: 0 auto 1rem;
  padding: 0.25rem;
}

.site-back-link {
  border: none;
  background: none;
  color: var(--primary-dark);
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 0.75rem;
  padding: 0;
  font-size: 0.92rem;
}

.site-contact-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin-bottom: 0.25rem;
}

.site-contact-sub {
  color: var(--muted);
}

.site-contact-block {
  max-width: 960px;
  margin: 0 auto 1rem;
  padding: 1.1rem 1.15rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}

.site-contact-block h3 {
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
}

#siteHomePanel,
#siteContactPanel {
  padding: 0 0 2rem;
}

.home-page,
.contact-page {
  padding: 1.25rem 0 2rem;
}

.home-hero-image {
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow);
}

.home-hero-image img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  display: block;
}

.home-title {
  font-size: 1.65rem;
  margin-bottom: 0.35rem;
}

.home-tagline {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.home-tagline--muted {
  opacity: 0.85;
}

.home-info {
  background: var(--card);
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
}

.home-info-row {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-size: 0.95rem;
  margin-bottom: 0.45rem;
}

.home-info-row:last-child {
  margin-bottom: 0;
}

.btn-home-cta {
  display: block;
  width: 100%;
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  border: none;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
}

.site-link-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.site-link-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.85rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  text-decoration: none;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: var(--shadow);
}

.site-link-chip:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
}

.contact-section {
  background: var(--card);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.15rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
}

.contact-section h3 {
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
}

.contact-about {
  color: var(--muted);
  line-height: 1.65;
  white-space: pre-wrap;
}

.contact-row {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
}

.contact-row:last-child {
  border-bottom: none;
}

.contact-row-label {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
}

.contact-row a {
  color: var(--primary-dark);
  text-decoration: none;
  font-weight: 600;
}

.contact-empty {
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer {
  margin-top: auto;
  padding: 1.5rem 1rem 2rem;
  text-align: center;
  border-top: 1px solid var(--border);
  background: var(--card);
}

.site-footer-links {
  display: flex;
  justify-content: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.site-footer-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
  text-decoration: none;
  font-size: 1.15rem;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.site-footer-icon:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
}

.site-powered {
  font-size: 0.78rem;
  color: var(--muted);
}

#siteFooterHost {
  margin-top: auto;
}

@media (max-width: 767px) {
  .site-hero-actions {
    grid-template-columns: 1fr;
  }

  .site-hero {
    min-height: 46vh;
    border-radius: var(--radius-sm);
  }

  .site-hero-content {
    min-height: 46vh;
  }
}

@media (max-width: 767px) {
  .header-meta {
    display: none;
  }

  .site-nav {
    margin-top: 0.85rem;
  }

  .site-nav-link {
    font-size: 0.82rem;
    padding: 0.4rem 0.7rem;
  }
}

/* ——— Café / restaurant theme presets & polish ——— */
.brand-block h1,
.home-title,
.screen-title,
.category-card-body h3 {
  font-family: var(--font-display);
  letter-spacing: 0.01em;
}

.site-header {
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.12), transparent 42%),
    linear-gradient(135deg, var(--header-from) 0%, var(--header-to) 100%);
}

.category-card,
.item-card,
.home-info,
.contact-card,
.restaurant-card {
  background: var(--card);
  border-color: var(--border);
}

.category-card {
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--text) 6%, transparent);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.category-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px color-mix(in srgb, var(--primary) 14%, transparent);
}

.item-card {
  border-radius: calc(var(--radius-sm) - 2px);
}

.home-hero-image {
  position: relative;
  border-radius: var(--radius);
  box-shadow: 0 16px 40px color-mix(in srgb, var(--text) 12%, transparent);
}

.home-hero-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, color-mix(in srgb, var(--header-to) 35%, transparent));
  pointer-events: none;
}

.home-title {
  color: var(--text);
  font-size: clamp(1.5rem, 4vw, 2rem);
}

.home-tagline {
  font-size: 1.05rem;
  max-width: 36rem;
}

.home-info {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  background: color-mix(in srgb, var(--card) 92%, var(--primary) 8%);
}

.site-link-chip {
  border-color: var(--border);
  background: var(--card);
}

.btn-home-cta {
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 28px color-mix(in srgb, var(--primary) 32%, transparent);
}

html[data-theme-preset='garden-terrace'] body {
  background:
    radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--accent) 12%, var(--bg)), transparent 38%),
    var(--bg);
}

html[data-theme-preset='artisan-roast'] body {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 8%, var(--bg)), var(--bg) 240px),
    var(--bg);
}

html[data-theme-preset='midnight-bistro'] .site-header {
  box-shadow: 0 12px 36px rgba(15, 22, 40, 0.28);
}

html[data-theme-preset='midnight-bistro'] .category-card-body h3,
html[data-theme-preset='midnight-bistro'] .home-title {
  letter-spacing: 0.03em;
}

html[data-theme-preset='sunset-brunch'] body {
  background:
    radial-gradient(circle at 100% 10%, color-mix(in srgb, var(--accent) 16%, var(--bg)), transparent 34%),
    var(--bg);
}

html[data-theme-preset='fresh-matcha'] .site-header {
  border-radius: 0 0 32px 32px;
}

html[data-theme-preset='fresh-matcha'] .category-card,
html[data-theme-preset='fresh-matcha'] .item-card {
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--border));
}

/* Crunchy Munchy — white header for logo, soft brand-tinted body */
html[data-theme-preset='crunchy-munchy'] body {
  background:
    radial-gradient(ellipse 110% 55% at 50% -8%, color-mix(in srgb, var(--primary) 5%, #ffffff), transparent 58%),
    radial-gradient(ellipse 70% 45% at 100% 100%, color-mix(in srgb, var(--accent) 7%, var(--bg)), transparent 52%),
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--primary) 3.5%, var(--bg)) 0%,
      var(--bg) 220px,
      var(--bg) 100%
    );
}

html[data-theme-preset='crunchy-munchy'] .site-header {
  background: #ffffff;
  color: var(--text);
  border-radius: 0 0 24px 24px;
  padding-bottom: 1.35rem;
  border-bottom: 1px solid color-mix(in srgb, var(--primary) 10%, var(--border));
  box-shadow: 0 8px 28px color-mix(in srgb, var(--primary) 7%, transparent);
}

html[data-theme-preset='crunchy-munchy'] .site-header h1,
html[data-theme-preset='crunchy-munchy'] .site-header p,
html[data-theme-preset='crunchy-munchy'] .header-address,
html[data-theme-preset='crunchy-munchy'] .header-tagline {
  color: var(--text);
  opacity: 1;
}

html[data-theme-preset='crunchy-munchy'] .business-logo {
  width: auto;
  max-width: min(320px, 92vw);
  height: auto;
  max-height: 80px;
  border-radius: 0;
  object-fit: contain;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

html[data-theme-preset='crunchy-munchy'] .brand-fallback {
  background: color-mix(in srgb, var(--primary) 10%, #ffffff);
}

html[data-theme-preset='crunchy-munchy'] .site-nav-link {
  color: var(--muted);
  border-color: color-mix(in srgb, var(--primary) 16%, var(--border));
}

html[data-theme-preset='crunchy-munchy'] .site-nav-link:hover,
html[data-theme-preset='crunchy-munchy'] .site-nav-link.active {
  background: color-mix(in srgb, var(--primary) 9%, #ffffff);
  color: var(--primary-dark);
  border-color: color-mix(in srgb, var(--primary) 22%, var(--border));
}

html[data-theme-preset='crunchy-munchy'] .brand-block h1 {
  font-size: clamp(1.35rem, 4.5vw, 1.75rem);
  font-weight: 700;
  color: var(--primary-dark);
}

html[data-theme-preset='crunchy-munchy'] .site-nav-link--page.active {
  background: color-mix(in srgb, var(--primary) 12%, #ffffff);
  color: var(--primary-dark);
  border-color: color-mix(in srgb, var(--primary) 28%, var(--border));
  box-shadow: 0 2px 10px color-mix(in srgb, var(--primary) 10%, transparent);
}

html[data-theme-preset='crunchy-munchy'] .hero-search-wrap {
  margin-top: -0.25rem;
}

html[data-theme-preset='crunchy-munchy'] .hero-search {
  border: 1px solid color-mix(in srgb, var(--border) 80%, white);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--primary) 12%, transparent);
}

html[data-theme-preset='crunchy-munchy'] .suggest-bar {
  border-radius: var(--radius-sm);
  border-style: dashed;
  border-color: color-mix(in srgb, var(--primary) 28%, var(--border));
}

html[data-theme-preset='crunchy-munchy'] .suggest-chip strong {
  color: var(--primary);
}

html[data-theme-preset='crunchy-munchy'] body.menu-no-pictures .category-picker-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

html[data-theme-preset='crunchy-munchy'] body.menu-no-pictures .category-card--text {
  position: relative;
  flex-direction: column;
  align-items: stretch;
  padding: 0.85rem 1rem 1rem;
  min-height: 6.25rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 6px 20px color-mix(in srgb, var(--text) 5%, transparent);
}

html[data-theme-preset='crunchy-munchy'] body.menu-no-pictures .category-card--text .category-card-leading {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 12px;
  font-size: 1.15rem;
  background: color-mix(in srgb, var(--primary) 10%, white);
}

html[data-theme-preset='crunchy-munchy'] body.menu-no-pictures .category-card--text .category-card-body {
  flex: 1;
  padding: 0;
  padding-inline-end: 2.35rem;
}

html[data-theme-preset='crunchy-munchy'] body.menu-no-pictures .category-card--text .category-card-body h3 {
  font-size: 0.88rem;
  line-height: 1.35;
}

html[data-theme-preset='crunchy-munchy'] body.menu-no-pictures .category-card--text .category-card-meta {
  font-size: 0.74rem;
}

html[data-theme-preset='crunchy-munchy'] body.menu-no-pictures .category-card--text .category-card-chevron {
  display: none;
}

@media (min-width: 768px) {
  html[data-theme-preset='crunchy-munchy'] body.menu-no-pictures .category-picker-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }
}

.table-session-banner {
  background: color-mix(in srgb, var(--accent) 12%, var(--card));
  border-bottom: 1px solid var(--border);
  padding: 0.65rem 1rem;
  text-align: center;
  font-weight: 600;
}

/* —— Table QR hub (cafe theme) —— */
body.table-hub-mode {
  overflow-x: hidden;
}

body.table-hub-mode .site-header,
body.table-hub-mode #siteFooterHost,
body.table-hub-mode .mobile-nav {
  display: none !important;
}

.table-hub {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 1.25rem 1rem 2rem;
  box-sizing: border-box;
}

.table-hub-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 120% 80% at 50% -20%, color-mix(in srgb, var(--primary) 28%, transparent), transparent 55%),
    radial-gradient(circle at 100% 100%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 45%),
    linear-gradient(165deg, color-mix(in srgb, var(--bg) 92%, #3d2914) 0%, var(--bg) 45%, color-mix(in srgb, var(--card) 88%, #2c1810) 100%);
  pointer-events: none;
}

.table-hub-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.table-hub-inner {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: auto;
}

.table-hub-brand {
  text-align: center;
  padding-top: 0.5rem;
}

.table-hub-logo-wrap {
  width: 72px;
  height: 72px;
  margin: 0 auto 0.65rem;
  border-radius: 50%;
  background: var(--card);
  box-shadow: 0 8px 28px color-mix(in srgb, var(--accent) 18%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 3px solid color-mix(in srgb, var(--primary) 35%, var(--card));
}

.table-hub-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.table-hub-logo-fallback {
  font-size: 2rem;
  line-height: 1;
}

.table-hub-cafe-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.01em;
}

.table-hub-card {
  background: color-mix(in srgb, var(--card) 94%, transparent);
  backdrop-filter: blur(12px);
  border-radius: calc(var(--radius) * 1.1);
  border: 1px solid color-mix(in srgb, var(--border) 80%, var(--primary) 20%);
  box-shadow:
    0 20px 50px color-mix(in srgb, var(--accent) 14%, transparent),
    0 2px 0 color-mix(in srgb, var(--primary) 25%, transparent) inset;
  padding: 1.75rem 1.35rem 1.5rem;
  text-align: center;
}

.table-hub-welcome {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 500;
}

.table-hub-number-ring {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 7.5rem;
  height: 7.5rem;
  margin: 0 auto 0.5rem;
  border-radius: 50%;
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--primary) 22%, var(--card)),
    color-mix(in srgb, var(--accent) 10%, var(--card))
  );
  border: 2px solid color-mix(in srgb, var(--primary) 40%, var(--border));
  box-shadow: 0 6px 20px color-mix(in srgb, var(--primary) 20%, transparent);
}

.table-hub-number-label {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.table-hub-number {
  font-family: var(--font-display);
  font-size: 2.35rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--accent);
}

.table-hub-floor {
  margin: 0 0 1.1rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.table-hub-floor:empty {
  display: none;
}

.table-hub-prompt {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}

.table-hub-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.table-hub-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.95rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 1.05rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.table-hub-btn:active:not(:disabled) {
  transform: scale(0.98);
}

.table-hub-btn--primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark, var(--primary)));
  color: #fff;
  box-shadow: 0 8px 22px color-mix(in srgb, var(--primary) 35%, transparent);
}

.table-hub-btn--secondary {
  background: var(--card);
  color: var(--accent);
  border: 2px solid color-mix(in srgb, var(--accent) 25%, var(--border));
}

.table-hub-btn:disabled {
  opacity: 0.65;
  cursor: default;
}

.table-hub-btn-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.table-hub-message {
  margin: 1rem 0 0;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--primary) 12%, var(--card));
  color: var(--accent);
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.5;
}

.table-hub-error {
  margin: 1rem 0 0;
  color: #c0392b;
  font-weight: 600;
  font-size: 0.9rem;
}

.table-hub-social {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid color-mix(in srgb, var(--border, #e5e7eb) 80%, transparent);
  text-align: center;
}

.table-hub-social-title {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--muted, #64748b) 85%, var(--text, #0f172a));
}

.table-hub-social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
}

.table-hub-social-link {
  width: 2.55rem;
  height: 2.55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: color-mix(in srgb, var(--card, #fff) 70%, #0f172a 8%);
  border: 1px solid color-mix(in srgb, var(--border, #e5e7eb) 90%, transparent);
  color: var(--text, #0f172a);
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.table-hub-social-link svg {
  width: 1.15rem;
  height: 1.15rem;
  display: block;
}

.table-hub-social-link:active {
  transform: scale(0.94);
}

.table-hub-social-link--instagram {
  color: #e1306c;
}

.table-hub-social-link--facebook {
  color: #1877f2;
}

.table-hub-social-link--tiktok {
  color: #111827;
}

.table-hub-social-link--website {
  color: var(--primary, #0f766e);
}

/* ——— Masrawy branded full landing (landingMode=full) ——— */
body.landing-full {
  --mlx-orange: #f37021;
  --mlx-orange-dark: #d35400;
  --mlx-orange-soft: #ff8a3d;
  --mlx-ink: #1a1a1a;
  --mlx-charcoal: #2b2b2b;
  --mlx-charcoal-deep: #1e1e1e;
  --mlx-muted: #6b7280;
  --mlx-radius: 12px;
  /* Swapped roles: surfaces = orange, accents = charcoal */
  --mlx-surface: var(--mlx-orange);
  --mlx-surface-deep: var(--mlx-orange-dark);
  --mlx-accent: var(--mlx-charcoal);
  --mlx-accent-deep: var(--mlx-charcoal-deep);
  background: #fff;
}

body.landing-full:not(.landing-masrawy) {
  --mlx-orange: var(--primary, #0f766e);
  --mlx-orange-dark: var(--primary-dark, #115e59);
  --mlx-orange-soft: var(--accent, #2dd4bf);
}

body.landing-full.landing-branches-wood {
  --mlx-orange: #5c3a21;
  --mlx-orange-dark: #3e2716;
  --mlx-orange-soft: #c4a574;
  --mlx-charcoal: #2a1c12;
  --mlx-charcoal-deep: #1a120b;
}

body.landing-full #siteScreen {
  padding: 0;
  max-width: none;
}

body.landing-full .site-header,
body.landing-full #siteFooterHost {
  display: none !important;
}

.mlx-landing {
  width: 100%;
  color: var(--mlx-ink);
  font-family: "Tajawal", "Noto Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  overflow-x: hidden;
  padding-top: 0;
  --mlx-nav-h: 4.35rem;
}

.mlx-wrap {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.mlx-wrap--narrow {
  width: min(720px, calc(100% - 2rem));
}

/* Nav — fixed charcoal glass over hero */
.mlx-nav {
  position: fixed;
  top: 0;
  inset-inline: 0;
  width: 100%;
  z-index: 200;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(43, 43, 43, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
}

.mlx-nav-order-link {
  display: none;
}

.mlx-nav-inner {
  width: min(1120px, calc(100% - 1.5rem));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4rem;
  padding: 0.55rem 0;
}

.mlx-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: #fff;
  flex-shrink: 0;
}

.mlx-brand-logo {
  width: 2.6rem;
  height: 2.6rem;
  max-width: none;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  padding: 0.2rem;
  box-sizing: border-box;
  display: block;
}

.mlx-brand-wordmark {
  height: 2.55rem;
  width: auto;
  max-width: min(11rem, 42vw);
  object-fit: contain;
  object-position: right center;
  display: block;
  flex-shrink: 1;
}

.mlx-brand-name {
  color: #fff;
  font-size: clamp(1.05rem, 3vw, 1.35rem);
  font-weight: 800;
  line-height: 1.2;
  max-width: min(16rem, 48vw);
}

.mlx-nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-inline: auto;
  flex-wrap: wrap;
  justify-content: center;
}

.mlx-nav-links a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.45rem 0.75rem;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.mlx-nav-links a:hover,
.mlx-nav-links a.is-active {
  color: #fff;
  border-bottom-color: var(--mlx-orange);
}

.mlx-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.mlx-nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  background: transparent;
  padding: 0.55rem;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.mlx-nav-toggle span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

/* Buttons */
.mlx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border: none;
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  padding: 0.7rem 1.15rem;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  font-family: inherit;
}

.mlx-btn:hover {
  transform: translateY(-1px);
}

.mlx-btn--primary {
  background: var(--mlx-orange);
  color: #fff;
  box-shadow: 0 8px 22px color-mix(in srgb, var(--mlx-orange) 38%, transparent);
}

.mlx-btn--primary:hover {
  background: var(--mlx-orange-dark);
}

.mlx-btn--dark {
  background: var(--mlx-charcoal);
  color: #fff;
}

.mlx-nav .mlx-btn--primary {
  background: var(--mlx-orange);
  color: #fff;
  box-shadow: 0 8px 22px color-mix(in srgb, var(--mlx-orange) 42%, transparent);
}

.mlx-nav .mlx-btn--primary:hover {
  background: var(--mlx-orange-dark);
  color: #fff;
}

.mlx-booking .mlx-btn--primary {
  background: #fff;
  color: var(--mlx-orange-dark);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.14);
}

.mlx-booking .mlx-btn--primary:hover {
  background: #fff7f0;
}

.mlx-complaints .mlx-btn--primary {
  background: var(--mlx-orange);
  color: #fff;
  box-shadow: 0 8px 22px color-mix(in srgb, var(--mlx-orange) 38%, transparent);
}

.mlx-complaints .mlx-btn--primary:hover {
  background: var(--mlx-orange-dark);
  color: #fff;
}

.mlx-btn--ghost {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.85);
}

.mlx-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.mlx-btn--lg {
  padding: 0.9rem 1.4rem;
  font-size: 1rem;
  border-radius: 12px;
}

.mlx-btn--sm {
  padding: 0.55rem 1rem;
  font-size: 0.88rem;
  flex: 1;
}

.mlx-btn--block {
  width: 100%;
  padding: 0.95rem 1.25rem;
  font-size: 1.05rem;
}

/* Hero */
/* Hero — sits flush under fixed header (image extends behind it) */
.mlx-hero {
  position: relative;
  min-height: min(88vh, 720px);
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  background: #0a0a0a;
  margin-top: 0;
  scroll-margin-top: 0;
}

.mlx-hero-bg {
  position: absolute;
  inset: 0;
  background-color: #0a0a0a;
  background-image: var(--mlx-hero-image);
  background-size: cover;
  background-position: left center;
  background-repeat: no-repeat;
  transform: scale(1.02);
}

.mlx-hero-bg--branch {
  background-position: center center;
}

.mlx-hero-bg--fallback {
  background-image:
    radial-gradient(ellipse 70% 55% at 75% 55%, rgba(243, 112, 33, 0.28), transparent 58%),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(237, 28, 36, 0.18), transparent 55%),
    linear-gradient(115deg, #0f0f0f 0%, #1a1512 45%, #2a1a12 100%);
  transform: none;
}

.mlx-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 8, 8, 0.15) 0%, rgba(8, 8, 8, 0.35) 42%, rgba(8, 8, 8, 0.82) 68%, rgba(8, 8, 8, 0.94) 100%),
    radial-gradient(ellipse 55% 70% at 78% 45%, rgba(90, 40, 10, 0.35), transparent 70%);
}

.mlx-hero-veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.28) 0%, transparent 28%, transparent 72%, rgba(0, 0, 0, 0.35) 100%);
}

.mlx-hero-grid {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
  padding: calc(4.7rem + 2rem) 0 4rem;
}

.mlx-hero-grid--banner {
  grid-template-columns: minmax(0, 1fr);
  justify-items: start;
  padding: calc(4.7rem + 2.5rem) 0 5rem;
}

.mlx-hero-grid--banner .mlx-hero-copy {
  max-width: 36rem;
}

.mlx-hero-kicker {
  display: inline-block;
  margin: 0 0 1.15rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(42, 28, 18, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  animation: mlxFadeUp 0.7s ease both;
}

.mlx-hero-title {
  margin: 0 0 1.65rem;
  font-size: clamp(1.9rem, 4.4vw, 3.15rem);
  line-height: 1.35;
  font-weight: 900;
  letter-spacing: -0.01em;
  text-shadow: 0 10px 36px rgba(0, 0, 0, 0.55);
  animation: mlxFadeUp 0.75s ease 0.08s both;
}

.mlx-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: mlxFadeUp 0.8s ease 0.16s both;
}

.mlx-hero-visual {
  position: relative;
  min-height: 320px;
  animation: mlxFadeUp 0.9s ease 0.12s both;
}

.mlx-hero-plate {
  position: absolute;
  border-radius: 50%;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  border: 3px solid rgba(255, 255, 255, 0.12);
}

.mlx-hero-plate--a {
  width: min(280px, 70%);
  aspect-ratio: 1;
  inset-inline-end: 8%;
  top: 8%;
  background:
    radial-gradient(circle at 40% 35%, #f6c27a, transparent 45%),
    radial-gradient(circle at 65% 60%, #ed1c24, transparent 40%),
    radial-gradient(circle at 30% 70%, #7a3e1d, transparent 45%),
    #3a2418;
}

.mlx-hero-plate--b {
  width: min(170px, 42%);
  aspect-ratio: 1;
  inset-inline-start: 4%;
  bottom: 12%;
  background:
    radial-gradient(circle at 50% 40%, #fff3e0, transparent 40%),
    radial-gradient(circle at 35% 65%, #f37021, transparent 50%),
    #4a2c1a;
  animation: mlxFloat 5s ease-in-out infinite;
}

.mlx-hero-plate--c {
  width: min(120px, 30%);
  aspect-ratio: 1;
  inset-inline-end: 2%;
  bottom: 6%;
  background:
    radial-gradient(circle at 45% 40%, #8bc34a, transparent 42%),
    radial-gradient(circle at 60% 70%, #c62828, transparent 48%),
    #2e1a12;
  animation: mlxFloat 6.5s ease-in-out 0.6s infinite;
}

@keyframes mlxFadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes mlxFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Sections */
.mlx-hero,
.mlx-section {
  padding: 3.5rem 0;
  scroll-margin-top: calc(var(--mlx-nav-h) + env(safe-area-inset-top, 0px) + 0.5rem);
}

.mlx-section-title {
  margin: 0 0 1.75rem;
  text-align: center;
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 900;
  color: var(--mlx-ink);
}

.mlx-section-title--light {
  color: #fff;
}

.mlx-section-sub {
  text-align: center;
  color: var(--mlx-muted);
  margin: -1rem 0 1.5rem;
}

/* Branches */
.mlx-branches {
  background: #fff;
}

.mlx-branch-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

.mlx-branch-card {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: var(--mlx-radius);
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.mlx-branch-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.1);
}

.mlx-branch-media {
  position: relative;
  height: 168px;
  background:
    linear-gradient(135deg, #3d2a1f 0%, #1a1a1a 55%, #f37021 160%);
  overflow: hidden;
}

.mlx-branch-media img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mlx-branch-media--photo::before,
.mlx-branch-media--logo::before {
  content: none;
}

.mlx-branch-media--logo {
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--mlx-orange) 22%, #1a1a1a) 0%, #1a1a1a 70%);
  padding: 1.25rem;
}

.mlx-branch-media--logo img {
  object-fit: contain;
  width: min(72%, 140px);
  height: min(72%, 120px);
  margin: 0 auto;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.35));
}

.mlx-branch-card:nth-child(2) .mlx-branch-media {
  background: linear-gradient(135deg, #2a211c 0%, #4a3428 50%, #c45a1a 140%);
}

.mlx-branch-card:nth-child(3) .mlx-branch-media {
  background: linear-gradient(145deg, #1f1f1f 0%, #5a3a28 60%, #ed1c24 150%);
}

.mlx-branch-card:nth-child(4) .mlx-branch-media {
  background: linear-gradient(120deg, #241c18 0%, #6b4423 55%, #f37021 130%);
}

.mlx-branch-card:nth-child(5) .mlx-branch-media {
  background: linear-gradient(160deg, #181818 0%, #3a2a22 50%, #d35400 140%);
}

.mlx-branch-media::before {
  content: none;
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: Georgia, serif;
  font-size: 1.6rem;
  color: rgba(255, 255, 255, 0.28);
  letter-spacing: 0.04em;
}

body.landing-masrawy .mlx-branch-media:not(.mlx-branch-media--photo):not(.mlx-branch-media--logo)::before {
  content: "مصراوي";
}

.mlx-branch-media-shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.35));
}

.mlx-branch-body {
  padding: 1rem 1.05rem 1.1rem;
}

.mlx-branch-name {
  margin: 0 0 0.55rem;
  font-size: 1.05rem;
  font-weight: 900;
}

.mlx-branch-meta {
  margin: 0 0 0.35rem;
  color: var(--mlx-muted);
  font-size: 0.86rem;
  line-height: 1.45;
  display: flex;
  gap: 0.35rem;
  align-items: flex-start;
}

.mlx-branch-actions {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  gap: 0.5rem;
  margin-top: 0.9rem;
}

/* Booking */
.mlx-booking {
  background: var(--mlx-orange);
  color: #fff;
}

.mlx-booking-lead {
  margin: 0 0 1.1rem;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.55;
  opacity: 0.95;
}

.mlx-booking-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.15rem;
}

.mlx-booking-choice {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  text-align: right;
  cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-radius: 14px;
  padding: 0.95rem 1rem;
  font: inherit;
}

.mlx-booking-choice strong {
  font-size: 1.02rem;
}

.mlx-booking-choice > span:last-child {
  font-size: 0.84rem;
  font-weight: 600;
  opacity: 0.88;
}

.mlx-booking-choice.is-active {
  background: #fff;
  color: #9a3412;
  border-color: #fff;
}

.mlx-booking-choice-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.mlx-booking-call-copy {
  margin: 0 0 0.5rem;
  font-weight: 700;
}

.mlx-booking-call-number {
  margin: 0 0 1rem;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.mlx-booking #mlxBookingCallPanel .mlx-btn--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

.mlx-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mlx-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.mlx-field--wide {
  grid-column: 1 / -1;
}

.mlx-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-weight: 700;
  font-size: 0.88rem;
}

.mlx-field span {
  color: inherit;
  opacity: 0.9;
}

.mlx-field input,
.mlx-field select,
.mlx-field textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  min-height: 3rem;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  background: #fff;
  color: var(--mlx-ink);
}

.mlx-field input[type="date"],
.mlx-field input[type="time"] {
  direction: ltr;
  text-align: right;
  -webkit-appearance: none;
  appearance: none;
  color-scheme: light;
}

.mlx-field input::-webkit-date-and-time-value {
  text-align: right;
  min-height: 1.4em;
}

.mlx-field textarea {
  resize: vertical;
  min-height: 120px;
}

.mlx-form-hint {
  margin: 0;
  text-align: center;
  font-size: 0.82rem;
  opacity: 0.75;
  font-weight: 600;
}

.mlx-form--light .mlx-form-hint {
  color: var(--mlx-muted);
  opacity: 1;
}

.mlx-form--light .mlx-field span {
  color: var(--mlx-ink);
}

/* Complaints */
.mlx-complaints {
  background: #fafafa;
}

/* Footer */
.mlx-footer {
  background: var(--mlx-orange-dark);
  color: rgba(255, 255, 255, 0.88);
  padding: 2.75rem 0 0;
}

.mlx-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 1.5rem;
  padding-bottom: 2rem;
}

.mlx-footer-brand strong {
  display: block;
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
  color: #fff;
}

.mlx-footer-brand p {
  margin: 0 0 0.35rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  line-height: 1.5;
}

.mlx-footer-phone {
  color: #fff !important;
  font-weight: 800;
  font-size: 1.05rem !important;
}

.mlx-footer-social {
  margin-top: 0.75rem;
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.mlx-footer-social a,
.mlx-footer-social span {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(30, 30, 30, 0.88);
}

.mlx-footer h4 {
  margin: 0 0 0.75rem;
  color: #fff;
  font-size: 1rem;
}

.mlx-footer-grid a {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-size: 0.88rem;
  margin-bottom: 0.4rem;
}

.mlx-footer-grid a:hover {
  color: #fff;
}

.mlx-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.9rem 0;
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
}

.mlx-footer-bottom a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}

@media (max-width: 960px) {
  .mlx-hero-grid {
    grid-template-columns: 1fr;
    padding: calc(var(--mlx-nav-h) + env(safe-area-inset-top, 0px) + 1.35rem) 0 3rem;
  }

  .mlx-hero-grid--banner {
    padding: calc(var(--mlx-nav-h) + env(safe-area-inset-top, 0px) + 1.5rem) 0 3.25rem;
  }

  .mlx-hero-bg {
    background-position: 18% center;
  }

  .mlx-hero-bg::after {
    background:
      linear-gradient(180deg, rgba(8, 8, 8, 0.2) 0%, rgba(8, 8, 8, 0.55) 42%, rgba(8, 8, 8, 0.92) 100%),
      linear-gradient(90deg, rgba(8, 8, 8, 0.25) 0%, rgba(8, 8, 8, 0.55) 55%, rgba(8, 8, 8, 0.88) 100%);
  }

  .mlx-hero-visual {
    min-height: 220px;
    order: -1;
  }

  .mlx-branch-grid {
    grid-template-columns: 1fr 1fr;
  }

  .mlx-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .mlx-nav-links,
  .mlx-nav-actions {
    display: none;
  }

  .mlx-nav-order-link {
    display: flex;
  }

  body.mlx-nav-open .mlx-nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    inset-inline: 0;
    background: rgba(43, 43, 43, 0.97);
    padding: 0.75rem 1rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    align-items: stretch;
  }

  body.mlx-nav-open .mlx-nav-actions {
    display: none;
  }

  .mlx-nav-toggle {
    display: flex;
    margin-inline-start: auto;
  }

  .mlx-nav-inner {
    position: static;
  }

  .mlx-branch-grid,
  .mlx-form-grid,
  .mlx-footer-grid,
  .mlx-booking-choices {
    grid-template-columns: 1fr;
  }

  .mlx-booking,
  .mlx-complaints {
    padding-top: 2.25rem;
    padding-bottom: 2.5rem;
  }

  .mlx-booking .mlx-section-title,
  .mlx-complaints .mlx-section-title {
    font-size: 1.35rem;
    margin-bottom: 1.15rem;
    line-height: 1.4;
  }

  .mlx-form-grid {
    gap: 1rem;
  }

  .mlx-booking-choices {
    grid-template-columns: 1fr;
  }

  .mlx-field span {
    display: block;
    margin-bottom: 0.2rem;
  }

  .mlx-booking .mlx-btn--block {
    width: 100%;
    justify-content: center;
    min-height: 3rem;
  }

  .mlx-hero {
    min-height: 100vh;
    min-height: 100dvh;
    align-items: flex-end;
  }

  .mlx-hero-grid {
    width: min(1120px, calc(100% - 1.5rem));
    padding: calc(var(--mlx-nav-h) + env(safe-area-inset-top, 0px) + 1rem) 0 calc(1.35rem + env(safe-area-inset-bottom, 0px));
  }

  .mlx-hero-grid--banner {
    padding: calc(var(--mlx-nav-h) + env(safe-area-inset-top, 0px) + 1rem) 0 calc(1.5rem + env(safe-area-inset-bottom, 0px));
  }

  .mlx-hero-grid--banner .mlx-hero-copy {
    max-width: none;
    width: 100%;
  }

  .mlx-hero-bg::after {
    background:
      linear-gradient(180deg, rgba(8, 8, 8, 0.18) 0%, rgba(8, 8, 8, 0.28) 38%, rgba(8, 8, 8, 0.78) 72%, rgba(8, 8, 8, 0.94) 100%),
      linear-gradient(90deg, rgba(8, 8, 8, 0.12) 0%, rgba(8, 8, 8, 0.35) 55%, rgba(8, 8, 8, 0.55) 100%);
  }

  .mlx-hero-title {
    font-size: clamp(1.65rem, 7vw, 2.15rem);
    margin-bottom: 1.15rem;
  }

  .mlx-hero-ctas {
    flex-direction: column;
    flex-wrap: nowrap;
    width: 100%;
    gap: 0.65rem;
  }

  .mlx-hero-ctas .mlx-btn {
    width: 100%;
    min-height: 3rem;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
  }

  .mlx-hero-ctas .mlx-btn--ghost {
    background: rgba(20, 16, 12, 0.42);
    border-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  .mlx-hero-ctas .mlx-btn--ghost:hover {
    background: rgba(20, 16, 12, 0.55);
  }

  .mlx-hero-ctas .mlx-btn--feedback {
    font-size: 0.95rem;
    padding-inline: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mlx-hero-kicker,
  .mlx-hero-title,
  .mlx-hero-ctas,
  .mlx-hero-visual,
  .mlx-hero-plate--b,
  .mlx-hero-plate--c,
  .mlx-branch-card {
    animation: none !important;
  }
}

/* ——— Masrawy menu skin (match landing) ——— */
body.brand-masrawy {
  --primary: #f37021;
  --primary-dark: #d35400;
  --accent: #ed1c24;
  --action: #d35400;
  --header-from: #2b2b2b;
  --header-to: #1e1e1e;
  --bg: #fafafa;
  --card: #ffffff;
  --text: #1a1a1a;
  --muted: #6b7280;
  --border: #f0e0d4;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.1);
  font-family: "Tajawal", "Noto Naskh Arabic", "Segoe UI", Tahoma, sans-serif;
}

body.brand-masrawy .site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  border-radius: 0;
  padding: 0.85rem 1rem 1rem;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body.brand-masrawy .header-inner {
  max-width: 1120px;
}

body.brand-masrawy .business-logo {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 8px;
  background: #fff;
  object-fit: contain;
  padding: 0.2rem;
  box-sizing: border-box;
  box-shadow: none;
}

body.brand-masrawy #businessName.brand-name--wordmark {
  margin: 0;
  line-height: 0;
}

body.brand-masrawy .header-brand-wordmark {
  height: 2.4rem;
  width: auto;
  max-width: min(11rem, 46vw);
  object-fit: contain;
  display: block;
}

body.brand-masrawy #businessName {
  font-family: "Tajawal", sans-serif;
  font-weight: 900;
  font-size: 1.15rem;
}

body.brand-masrawy .header-tagline {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.8rem;
  font-weight: 600;
}

body.brand-masrawy .mlx-menu-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 0.85rem;
}

body.brand-masrawy .mlx-menu-nav .site-nav-link {
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
  padding: 0.45rem 0.85rem;
}

body.brand-masrawy .mlx-menu-nav .site-nav-link:hover,
body.brand-masrawy .mlx-menu-nav .site-nav-link.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

body.brand-masrawy .category-chip.active {
  background: var(--primary);
  border-color: var(--primary);
}

body.brand-masrawy .btn-plus,
body.brand-masrawy .cart-dock-checkout,
body.brand-masrawy .btn-submit,
body.brand-masrawy #checkoutBtn {
  background: var(--primary);
}

body.brand-masrawy .cart-dock-checkout,
body.brand-masrawy .btn-submit {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border: none;
  font-weight: 800;
}

body.brand-masrawy .mobile-nav {
  background: #2b2b2b;
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

body.brand-masrawy .mobile-nav .btn-icon {
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

body.brand-masrawy .item-card--text.in-cart {
  border-color: color-mix(in srgb, var(--primary) 45%, var(--border));
}

body.brand-masrawy .suggest-bar {
  border-color: color-mix(in srgb, var(--primary) 40%, var(--border));
}

body.brand-masrawy .hero-search-wrap input:focus,
body.brand-masrawy .hero-search-wrap:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(243, 112, 33, 0.18);
}

@media (max-width: 767px) {
  body.brand-masrawy .mlx-menu-nav {
    gap: 0.25rem;
  }

  body.brand-masrawy .mlx-menu-nav .site-nav-link {
    font-size: 0.78rem;
    padding: 0.4rem 0.65rem;
  }
}
