:root {
  --accent: #14b8a6;
  --navy: #111827;
  --ink: #182230;
  --muted: #667085;
  --surface: #f7f8f9;
  --white: #ffffff;
  --line: #e5e7eb;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--surface);
  font-family: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.65;
}

button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.material-symbols-rounded {
  font-family: "Material Symbols Rounded";
  font-size: 1.25em;
  font-weight: normal;
  font-style: normal;
  line-height: 1;
  direction: ltr;
  font-feature-settings: "liga";
  letter-spacing: 0;
}

.loading-screen,
.error-screen {
  display: grid;
  place-content: center;
  justify-items: center;
  min-height: 100vh;
  padding: 28px;
  text-align: center;
}

.loading-screen[hidden], .error-screen[hidden], .menu-page[hidden], .public-footer[hidden] { display: none; }

.loading-screen p { margin-top: 14px; color: var(--muted); }

.loading-mark {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 34px;
}

.loading-mark span {
  width: 8px;
  height: 15px;
  background: var(--accent);
  border-radius: 3px 3px 0 0;
  animation: loadBars 900ms ease-in-out infinite alternate;
}

.loading-mark span:nth-child(2) { height: 28px; animation-delay: 120ms; }
.loading-mark span:nth-child(3) { height: 21px; animation-delay: 240ms; }

@keyframes loadBars { to { height: 8px; opacity: .45; } }

.menu-page { width: min(100%, 1080px); margin: 0 auto; }

.business-hero {
  position: relative;
  min-height: 315px;
  padding: clamp(68px, 10vw, 110px) clamp(18px, 5vw, 54px) 34px;
  color: var(--white);
  background: var(--navy);
  overflow: hidden;
}

.public-language-switch {
  position: absolute;
  z-index: 5;
  top: 14px;
  inset-inline-end: 14px;
  display: inline-flex;
  padding: 3px;
  background: rgba(17,24,39,.74);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 6px;
  backdrop-filter: blur(10px);
}

.public-language-switch[hidden] { display: none; }
.public-language-switch button { min-width: 60px; height: 30px; padding: 0 8px; color: rgba(255,255,255,.78); background: transparent; border: 0; border-radius: 4px; font: inherit; font-size: .7rem; font-weight: 700; cursor: pointer; }
.public-language-switch button.is-active { color: #111827; background: #fff; }

html[dir="ltr"] body { font-family: Arial, sans-serif; }
html[dir="ltr"] .material-symbols-rounded { direction: ltr; }

.cover-layer {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(8, 15, 26, .95), rgba(8, 15, 26, .68)),
    linear-gradient(135deg, color-mix(in srgb, var(--accent), transparent 64%), transparent 55%);
  background-position: center;
  background-size: cover;
}

.cover-layer::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(90deg, transparent, #000);
}

.business-head,
.business-description,
.business-details,
.business-actions {
  position: relative;
  z-index: 1;
}

.business-head {
  display: flex;
  align-items: center;
  gap: 18px;
}

.business-logo {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 86px;
  height: 86px;
  color: var(--accent);
  background: var(--white);
  background-position: center;
  background-size: cover;
  border: 3px solid rgba(255,255,255,.92);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(0,0,0,.2);
  font-size: 2rem;
  overflow: hidden;
}

.business-logo.has-image .material-symbols-rounded { display: none; }

.business-copy { min-width: 0; }
.business-copy h1, .business-copy p { margin: 0; }

.business-copy h1 {
  margin-top: 2px;
  font-size: clamp(1.8rem, 6vw, 3rem);
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.business-copy > p:last-child { margin-top: 3px; color: #d9e1e9; font-size: 1rem; }

.open-state {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #9ef4e8;
  font-size: .72rem;
  font-weight: 700;
}

.open-state span {
  width: 7px;
  height: 7px;
  background: #2dd4bf;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(45,212,191,.14);
}

.open-state.is-closed { color: #fecaca; }
.open-state.is-closed span { background: #f87171; box-shadow: 0 0 0 4px rgba(248,113,113,.15); }
.open-state b { font: inherit; }

.business-description { max-width: 690px; margin: 18px 0 0; color: #c9d3dd; }

.business-details {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 18px;
  margin-top: 17px;
  color: #dce4eb;
  font-size: .78rem;
}

.business-details span { display: inline-flex; align-items: center; gap: 6px; }
.business-details .material-symbols-rounded { color: #73eee0; }

.business-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }

.business-actions a,
.business-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  padding: 8px 14px;
  color: var(--navy);
  background: var(--white);
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 7px;
  font-size: .82rem;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
}

.business-actions a.primary { color: var(--white); background: var(--accent); border-color: var(--accent); }
.business-actions a.rating-action { color: #713f12; background: #fffbeb; border-color: #fde68a; }
.business-actions a.rating-action .material-symbols-rounded { color: #f59e0b; font-variation-settings: "FILL" 1; }

.public-view-tabs {
  position: sticky;
  z-index: 17;
  top: 0;
  display: flex;
  gap: 4px;
  padding: 10px clamp(14px, 4vw, 38px);
  background: rgba(247,248,249,.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.public-view-tabs button {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  color: #667085;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
}
.public-view-tabs button[hidden] { display: none; }
.public-view-tabs button.is-active { color: var(--navy); background: var(--white); border-color: #d7dde3; box-shadow: 0 4px 14px rgba(17,24,39,.05); }
.public-view-tabs button.is-active .material-symbols-rounded { color: var(--accent); }
.public-menu-view[hidden] { display: none; }

.menu-controls {
  position: sticky;
  z-index: 15;
  top: 65px;
  padding: 16px clamp(14px, 4vw, 38px) 10px;
  background: rgba(247,248,249,.96);
  border-bottom: 1px solid rgba(229,231,235,.8);
  backdrop-filter: blur(14px);
}

.menu-search {
  display: flex;
  align-items: center;
  height: 46px;
  padding: 0 12px;
  color: #98a2b3;
  background: var(--white);
  border: 1px solid #d9dfe4;
  border-radius: 7px;
  box-shadow: 0 5px 18px rgba(17,24,39,.04);
}

.menu-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent), transparent 84%); }

.menu-search input { flex: 1; min-width: 0; height: 44px; padding: 0 8px; background: transparent; border: 0; outline: none; }

.menu-search button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  color: #667085;
  background: #eef1f3;
  border: 0;
  border-radius: 5px;
  cursor: pointer;
}

.menu-search button[hidden] { display: none; }

.public-categories {
  display: flex;
  gap: 8px;
  margin-top: 11px;
  padding-bottom: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.public-categories::-webkit-scrollbar { display: none; }

.public-categories button {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 6px 13px;
  color: #475467;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
}

.public-categories button.is-active { color: var(--white); background: var(--navy); border-color: var(--navy); }

.featured-section,
.branches-section,
.catalog-section { padding: 30px clamp(14px, 4vw, 38px); }

.featured-section { padding-bottom: 8px; }
.branches-section { min-height: 360px; padding-bottom: 36px; }

.section-heading,
.catalog-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.section-heading h2,
.section-heading p,
.catalog-heading h2,
.catalog-heading p { margin: 0; }
.section-heading p, .catalog-heading p { color: var(--accent); font-size: .74rem; font-weight: 800; }
.section-heading h2, .catalog-heading h2 { color: var(--navy); font-size: 1.35rem; }
.section-heading > .material-symbols-rounded { color: #d97706; font-variation-settings: "FILL" 1; }
.branches-section .section-heading > .material-symbols-rounded { color: var(--accent); font-variation-settings: normal; }
.catalog-heading > span { color: var(--muted); font-size: .75rem; }

.featured-strip {
  display: grid;
  grid-auto-columns: minmax(245px, 310px);
  grid-auto-flow: column;
  gap: 11px;
  padding-bottom: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.featured-item {
  position: relative;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  min-height: 112px;
  background: var(--navy);
  border-radius: 8px;
  overflow: hidden;
  scroll-snap-align: start;
  cursor: pointer;
}

.featured-item .featured-image {
  display: grid;
  place-items: center;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent), #ffffff 82%);
  background-position: center;
  background-size: cover;
  font-size: 1.8rem;
}

.featured-image.has-image .material-symbols-rounded { display: none; }
.featured-item > div:last-child { align-self: center; min-width: 0; padding: 13px; color: var(--white); }
.featured-item b, .featured-item small, .featured-item strong { display: block; }
.featured-item b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.featured-item small { color: #b9c4d0; font-size: .7rem; }
.featured-item strong { margin-top: 6px; color: #7deee1; font-size: .82rem; }

.public-branches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.public-branch { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 11px; min-width: 0; padding: 14px; background: var(--white); border: 1px solid var(--line); border-radius: 8px; }
.branch-pin { display: grid; place-items: center; width: 42px; height: 42px; color: var(--accent); background: color-mix(in srgb, var(--accent), #fff 86%); border-radius: 7px; }
.public-branch h3, .public-branch p { margin: 0; }
.public-branch h3 { color: var(--navy); font-size: .92rem; }
.public-branch p { min-height: 22px; color: var(--muted); font-size: .72rem; }
.branch-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.branch-actions a { display: inline-flex; align-items: center; gap: 5px; min-height: 34px; padding: 5px 9px; color: var(--navy); background: #f5f7f8; border: 1px solid var(--line); border-radius: 5px; font-size: .7rem; font-weight: 800; }
.branch-actions a:first-child { color: var(--white); background: var(--accent); border-color: var(--accent); }

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

.public-item {
  display: grid;
  grid-template-rows: 168px minmax(0, 1fr);
  min-width: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.public-item:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent), #d1d5db 65%); box-shadow: 0 13px 28px rgba(17,24,39,.09); }

.public-item-image {
  position: relative;
  display: grid;
  place-items: center;
  color: color-mix(in srgb, var(--accent), #111827 18%);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent), #ffffff 78%), #eef2f4);
  background-position: center;
  background-size: cover;
  font-size: 2.5rem;
  overflow: hidden;
}

.public-item-image.has-image .material-symbols-rounded { display: none; }

.featured-badge,
.unavailable-badge {
  position: absolute;
  top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 27px;
  padding: 4px 8px;
  color: var(--navy);
  background: rgba(255,255,255,.94);
  border-radius: 5px;
  font-size: .67rem;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(17,24,39,.1);
}

.featured-badge { right: 10px; }
.featured-badge .material-symbols-rounded { color: #d97706; font-variation-settings: "FILL" 1; }
.unavailable-badge { left: 10px; color: #b42318; }

.public-item-body { display: grid; align-content: start; min-width: 0; padding: 14px; }
.item-category-name { color: var(--accent); font-size: .68rem; font-weight: 800; }
.public-item h3 { margin: 3px 0 2px; color: var(--navy); font-size: 1rem; line-height: 1.4; overflow-wrap: anywhere; }
.public-item p { display: -webkit-box; min-height: 42px; margin: 0; color: var(--muted); font-size: .75rem; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.public-item-bottom { display: flex; align-items: center; justify-content: space-between; gap: 9px; margin-top: 12px; }
.item-public-price { color: var(--navy); font-size: .9rem; font-weight: 800; }
.item-public-price del { margin-inline-start: 5px; color: #98a2b3; font-size: .65rem; font-weight: 500; }

.item-order-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--white);
  background: var(--accent);
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}

.item-order-button.has-quantity { color: var(--navy); background: #d8faf5; }
.item-order-button b { position: absolute; top: -7px; left: -7px; display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 4px; color: var(--white); background: var(--navy); border: 2px solid var(--white); border-radius: 10px; font-size: .62rem; }

.item-order-button:disabled { color: #98a2b3; background: #e7eaed; cursor: not-allowed; }

body.compact-layout .public-items { grid-template-columns: 1fr; gap: 9px; }
body.compact-layout .public-item { grid-template-columns: 92px minmax(0, 1fr); grid-template-rows: 1fr; min-height: 112px; }
body.compact-layout .public-item-image { min-height: 112px; font-size: 1.8rem; }
body.compact-layout .public-item-body { align-content: center; padding: 11px 13px; }
body.compact-layout .public-item p { min-height: 0; -webkit-line-clamp: 1; }
body.compact-layout .public-item-bottom { margin-top: 7px; }

.public-empty { display: grid; justify-items: center; padding: 60px 20px; color: var(--muted); text-align: center; }
.public-empty[hidden] { display: none; }
.public-empty > .material-symbols-rounded { display: grid; place-items: center; width: 58px; height: 58px; color: var(--accent); background: color-mix(in srgb, var(--accent), #ffffff 84%); border-radius: 8px; font-size: 1.8rem; }
.public-empty h2 { margin: 14px 0 2px; color: var(--navy); font-size: 1.15rem; }
.public-empty p { margin: 0; }

.public-footer { padding: 22px; background: var(--white); border-top: 1px solid var(--line); }
.public-footer a { display: flex; align-items: center; justify-content: center; gap: 9px; width: max-content; margin: auto; color: var(--muted); font-size: .67rem; }
.public-footer img { width: 82px; height: 35px; object-fit: contain; }

.error-screen > .material-symbols-rounded { display: grid; place-items: center; width: 68px; height: 68px; color: #b42318; background: #fee4e2; border-radius: 8px; font-size: 2rem; }
.error-screen h1 { margin: 17px 0 4px; color: var(--navy); font-size: 1.45rem; }
.error-screen p { max-width: 420px; margin: 0 0 18px; color: var(--muted); }
.error-screen button { min-height: 42px; padding: 8px 15px; color: var(--white); background: var(--navy); border: 0; border-radius: 7px; font-weight: 800; cursor: pointer; }

.item-sheet { position: fixed; z-index: 50; inset: 0; display: grid; align-items: end; visibility: hidden; pointer-events: none; }
.item-sheet.is-open { visibility: visible; pointer-events: auto; }
.sheet-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; background: rgba(15,23,42,.62); border: 0; opacity: 0; transition: opacity 180ms ease; }
.item-sheet.is-open .sheet-backdrop { opacity: 1; }
.sheet-content { position: relative; width: min(100%, 620px); max-height: min(88vh, 760px); margin: 0 auto; background: var(--white); border-radius: 8px 8px 0 0; overflow-y: auto; transform: translateY(105%); transition: transform 220ms ease; }
.item-sheet.is-open .sheet-content { transform: translateY(0); }
.sheet-close { position: absolute; z-index: 2; top: 12px; left: 12px; display: grid; place-items: center; width: 38px; height: 38px; color: var(--navy); background: rgba(255,255,255,.92); border: 0; border-radius: 6px; box-shadow: 0 4px 15px rgba(17,24,39,.12); cursor: pointer; }
.sheet-image { display: grid; place-items: center; width: 100%; aspect-ratio: 16 / 8; max-height: 310px; color: var(--accent); background: linear-gradient(135deg, color-mix(in srgb, var(--accent), #ffffff 78%), #e8edf0); background-position: center; background-size: cover; font-size: 4rem; }
.sheet-image.has-image .material-symbols-rounded { display: none; }
.sheet-body { padding: 22px; }
.sheet-category { color: var(--accent); font-size: .75rem; font-weight: 800; }
.sheet-body h2 { margin: 3px 0 4px; color: var(--navy); font-size: 1.45rem; }
.sheet-body > p { margin: 0; color: var(--muted); }
.sheet-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.sheet-price { color: var(--navy); font-size: 1.1rem; font-weight: 800; }
.sheet-price del { display: block; color: #98a2b3; font-size: .7rem; font-weight: 500; }
.sheet-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.sheet-bottom a, .sheet-bottom button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 8px 15px; color: var(--white); background: var(--accent); border: 0; border-radius: 7px; font-family: inherit; font-weight: 800; cursor: pointer; }
.sheet-bottom a[hidden], .sheet-bottom button[hidden] { display: none; }

.selection-bar { position: fixed; z-index: 35; right: 50%; bottom: max(16px, env(safe-area-inset-bottom)); display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 10px; width: min(calc(100% - 24px), 520px); min-height: 62px; padding: 9px 14px; color: var(--white); background: var(--navy); border: 1px solid rgba(255,255,255,.12); border-radius: 8px; box-shadow: 0 16px 44px rgba(17,24,39,.26); transform: translateX(50%); font-family: inherit; text-align: start; cursor: pointer; }
.selection-bar[hidden] { display: none; }
.selection-bar > .material-symbols-rounded { display: grid; place-items: center; width: 38px; height: 38px; color: var(--navy); background: #5eead4; border-radius: 6px; }
.selection-bar b, .selection-bar small { display: block; }
.selection-bar small { color: #b8c4d1; font-size: .68rem; }
.selection-bar > strong { color: #82f2e5; font-size: .9rem; }

.selection-sheet { position: fixed; z-index: 70; inset: 0; display: grid; align-items: end; visibility: hidden; pointer-events: none; }
.selection-sheet.is-open { visibility: visible; pointer-events: auto; }
.selection-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; background: rgba(15,23,42,.66); border: 0; opacity: 0; transition: opacity 180ms ease; }
.selection-sheet.is-open .selection-backdrop { opacity: 1; }
.selection-content { position: relative; width: min(100%, 620px); max-height: min(91vh, 780px); margin: 0 auto; background: var(--white); border-radius: 8px 8px 0 0; overflow-y: auto; transform: translateY(105%); transition: transform 220ms ease; }
.selection-sheet.is-open .selection-content { transform: translateY(0); }
.selection-content > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.selection-content header p, .selection-content header h2 { margin: 0; }
.selection-content header p { color: var(--accent); font-size: .7rem; font-weight: 800; }
.selection-content header h2 { color: var(--navy); font-size: 1.3rem; }
.static-close { position: static; flex: 0 0 auto; box-shadow: none; background: #f0f2f4; }
.selection-items { display: grid; padding: 0 20px; }
.selection-items[hidden], .selection-empty[hidden] { display: none; }
.selection-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 34px; align-items: center; gap: 10px; min-height: 72px; border-bottom: 1px solid var(--line); }
.selection-row b, .selection-row small { display: block; }
.selection-row b { color: var(--navy); }
.selection-row small { color: var(--muted); font-size: .68rem; }
.quantity-control { display: grid; grid-template-columns: 32px 28px 32px; align-items: center; }
.quantity-control button, .remove-selection { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; color: var(--navy); background: #f0f3f4; border: 0; border-radius: 5px; cursor: pointer; }
.quantity-control strong { text-align: center; font-size: .82rem; }
.remove-selection { color: #b42318; background: #fff0ef; }
.selection-empty { display: grid; justify-items: center; padding: 34px 20px; color: var(--muted); text-align: center; }
.selection-empty > .material-symbols-rounded { font-size: 2rem; color: var(--accent); }
.selection-empty b, .selection-empty small { display: block; }
.selection-empty b { margin-top: 8px; color: var(--navy); }
.table-field { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center; gap: 10px; margin: 12px 20px; padding: 11px; background: #f7f9f9; border: 1px solid var(--line); border-radius: 7px; }
.table-field > .material-symbols-rounded { display: grid; place-items: center; width: 40px; height: 40px; color: var(--accent); background: var(--white); border-radius: 6px; }
.table-field label { display: grid; grid-template-columns: minmax(0, 1fr) 100px; align-items: center; gap: 8px; }
.table-field input { width: 100%; height: 38px; padding: 5px 8px; background: var(--white); border: 1px solid #d8dde2; border-radius: 5px; }
.selection-content > footer { display: grid; gap: 9px; padding: 16px 20px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.selection-grand-total { display: flex; align-items: center; justify-content: space-between; color: var(--muted); }
.selection-grand-total b { color: var(--navy); font-size: 1.05rem; }
.selection-share { min-height: 46px; color: var(--white); background: var(--accent); border: 0; border-radius: 7px; font-family: inherit; font-weight: 800; cursor: pointer; }
.selection-share .material-symbols-rounded { margin-inline-end: 6px; vertical-align: middle; }
.selection-clear { min-height: 38px; color: #b42318; background: transparent; border: 0; font-family: inherit; font-weight: 700; cursor: pointer; }

.public-toast { position: fixed; z-index: 90; right: 50%; bottom: 94px; max-width: calc(100% - 28px); padding: 9px 13px; color: var(--white); background: var(--navy); border-radius: 6px; box-shadow: 0 12px 30px rgba(17,24,39,.2); opacity: 0; transform: translate(50%, 12px); pointer-events: none; transition: opacity 160ms ease, transform 160ms ease; }
.public-toast.is-visible { opacity: 1; transform: translate(50%, 0); }

@media (min-width: 1081px) {
  .business-hero { margin-top: 20px; border-radius: 9px 9px 0 0; }
  .public-footer { width: min(100%, 1080px); margin: 0 auto 20px; border-radius: 0 0 9px 9px; }
}

@media (max-width: 640px) {
  body { font-size: 14px; }
  .business-hero { min-height: 318px; padding: 50px 15px 24px; }
  .business-head { align-items: flex-end; }
  .business-logo { width: 64px; height: 64px; }
  .business-copy h1 { font-size: 1.55rem; }
  .business-copy > p:last-child { font-size: .86rem; }
  .business-description { margin-top: 14px; font-size: .77rem; }
  .business-details { gap: 7px 14px; margin-top: 13px; font-size: .71rem; }
  .business-actions { gap: 7px; margin-top: 15px; }
  .business-actions a, .business-actions button { flex: 1; min-height: 39px; padding: 7px 10px; font-size: .74rem; }
  .public-view-tabs { padding: 8px 12px; }
  .public-view-tabs button { min-height: 40px; font-size: .78rem; }
  .menu-controls { top: 57px; padding: 12px 12px 8px; }
  .menu-search { height: 42px; }
  .public-categories button { min-height: 33px; padding: 5px 11px; font-size: .75rem; }
  .featured-section, .branches-section, .catalog-section { padding: 21px 12px; }
  .section-heading h2, .catalog-heading h2 { font-size: 1.14rem; }
  .section-heading p, .catalog-heading p, .catalog-heading > span { font-size: .68rem; }
  .public-branches { grid-template-columns: 1fr; }
  .public-items { grid-template-columns: 1fr; gap: 10px; }
  .public-item { grid-template-columns: 104px minmax(0, 1fr); grid-template-rows: 1fr; min-height: 118px; }
  .public-item-image { min-height: 118px; font-size: 1.8rem; }
  .public-item-body { align-content: center; padding: 9px 11px; }
  .item-category-name { font-size: .62rem; }
  .public-item h3 { font-size: .9rem; }
  .public-item p { font-size: .68rem; }
  .public-item p { min-height: 0; -webkit-line-clamp: 1; }
  .public-item-bottom { margin-top: 7px; }
  .item-public-price { font-size: .82rem; }
  .item-order-button { width: 32px; height: 32px; }
  .featured-badge { right: 6px; top: 6px; padding: 4px 6px; }
  .featured-badge span:last-child { display: none; }
  .unavailable-badge { left: 6px; top: 6px; }
  .sheet-body { padding: 18px; }
  .sheet-bottom { align-items: flex-start; flex-direction: column; }
  .sheet-actions { width: 100%; }
  .sheet-actions a, .sheet-actions button { flex: 1; }
  .selection-row { grid-template-columns: minmax(0, 1fr) auto 32px; }
  .table-field label { grid-template-columns: 1fr 82px; }
}

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