@font-face {
  font-family: 'Noto Sans Arabic';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/noto-sans-arabic-arabic-400-normal.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

@font-face {
  font-family: 'Noto Sans Arabic';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../assets/fonts/noto-sans-arabic-arabic-600-normal.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

:root {
  --bg: #f7f7f2;
  --surface: #ffffff;
  --ink: #111411;
  --muted: #666d66;
  --soft: #6b726b;
  --line: #e4e2da;
  --line-strong: #d3d0c6;
  --warning: #9a5b13;
  --warning-soft: #fbf0df;
  --brand: #0f7d78;
  --brand-ink: #0b615d;
  --brand-soft: #e3f3f1;
  --sans: 'Noto Sans Arabic', system-ui, -apple-system, 'Segoe UI', Tahoma, Arial, sans-serif;
  --topbar: 66px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  text-align: right;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--brand-ink);
  outline-offset: 3px;
  border-radius: 4px;
}

.demo-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: var(--topbar);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.demo-topbar-inner {
  width: min(100% - 32px, 720px);
  min-height: var(--topbar);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.demo-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  text-decoration: none;
}

.demo-mark {
  width: 44px;
  height: 44px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--brand-soft);
  color: var(--brand-ink);
  font-size: 17px;
  font-weight: 700;
}

.demo-brand-copy {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.demo-brand-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 700;
}

.demo-brand-tag {
  color: var(--soft);
  font-size: 8px;
  font-weight: 600;
}

.demo-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: none;
}

.demo-pill {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.demo-pill--brand {
  border-color: color-mix(in srgb, var(--brand) 22%, transparent);
  background: var(--brand-soft);
  color: var(--brand-ink);
}

.demo-wrap {
  width: min(100% - 32px, 720px);
  margin-inline: auto;
}

.demo-hero {
  padding: clamp(34px, 7vw, 58px) 0 24px;
}

.demo-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: var(--brand-ink);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0;
}

.demo-kicker::before {
  content: '';
  width: 20px;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}

.demo-hero h1 {
  max-width: 14ch;
  margin: 14px 0 0;
  font-size: clamp(2.8rem, 12vw, 4.8rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0;
  text-wrap: balance;
}

.demo-hero p {
  max-width: 48ch;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.demo-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.demo-facts li {
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 62%, transparent);
  color: var(--muted);
  font-size: 9px;
  white-space: nowrap;
}

.demo-filters-wrap {
  position: sticky;
  top: var(--topbar);
  z-index: 20;
  margin-top: 12px;
  border-block: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 96%, transparent);
  backdrop-filter: blur(10px);
}

.demo-filters {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 11px 0;
  scrollbar-width: none;
}

.demo-filters::-webkit-scrollbar {
  display: none;
}

.demo-chip {
  min-height: 40px;
  flex: 0 0 auto;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 55%, transparent);
  color: var(--muted);
  font: 600 9.5px/1.4 var(--sans);
  white-space: nowrap;
  cursor: pointer;
}

.demo-chip.is-active {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.demo-chip span {
  opacity: 0.65;
  font-size: 8px;
}

.demo-main {
  padding: 22px 0 0;
}

.demo-result {
  margin: 0 0 18px;
  color: var(--soft);
  font-size: 9px;
  letter-spacing: 0;
}

.demo-result strong {
  color: var(--ink);
}

.demo-featured {
  display: grid;
  overflow: hidden;
  margin-bottom: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
}

.demo-featured img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.demo-featured-body {
  padding: 18px;
}

.demo-label {
  margin: 0;
  color: var(--brand-ink);
  font-size: 8px;
  font-weight: 700;
}

.demo-featured-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-top: 7px;
}

.demo-featured-head h2 {
  margin: 0;
  font-size: clamp(1.8rem, 7vw, 2.6rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0;
}

.demo-price {
  flex: none;
  color: var(--brand-ink);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.demo-featured-body > p:not(.demo-label) {
  margin: 9px 0 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.demo-cat {
  margin-bottom: 30px;
  scroll-margin-top: calc(var(--topbar) + 74px);
}

.demo-cat-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 11px;
  padding-inline: 2px;
}

.demo-idx {
  color: var(--soft);
  font-size: 9px;
  font-variant-numeric: tabular-nums;
}

.demo-cat h2 {
  margin: 0;
  font-size: 10.5px;
  font-weight: 700;
}

.demo-rule {
  flex: 1;
  height: 1px;
  background: var(--line);
  transform: translateY(-3px);
}

.demo-dish {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  grid-template-areas:
    "thumb head"
    "thumb desc"
    "thumb meta";
  column-gap: 16px;
  align-items: start;
  padding: 12px;
  margin-bottom: 9px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.demo-dish.demo-dish--no-image {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "head"
    "desc"
    "meta";
}

.demo-thumb {
  grid-area: thumb;
  align-self: center;
  width: 120px;
  margin: 0;
  aspect-ratio: 4 / 3;
  height: auto;
  overflow: hidden;
  border-radius: 13px;
  background: var(--brand-soft);
}

.demo-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.demo-dish-head {
  grid-area: head;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.demo-dish h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

.demo-desc {
  grid-area: desc;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.demo-meta {
  grid-area: meta;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin: 8px 0 0;
}

.demo-diet,
.demo-allergen {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-ink);
  font-size: 8px;
  font-weight: 600;
}

.demo-allergen {
  background: var(--warning-soft);
  color: var(--warning);
}

.demo-footer {
  margin-top: 34px;
  padding: 28px 0 44px;
  border-top: 1px solid var(--line);
}

.demo-footer strong {
  display: block;
  color: var(--brand-ink);
  font-size: 20px;
  font-weight: 600;
}

.demo-footer p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.demo-footer .demo-disclaimer {
  max-width: 54ch;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--soft);
  font-size: 9px;
}

.demo-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  color: var(--brand-ink);
  font-size: 10px;
  font-weight: 700;
  text-decoration: none;
}

.demo-note {
  margin-top: 14px;
  padding: 10px 12px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  color: var(--soft);
  font-size: 9px;
  line-height: 1.6;
}

@media (min-width: 760px) {
  .demo-featured {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: stretch;
  }

  .demo-featured img {
    height: 100%;
    min-height: 250px;
    aspect-ratio: auto;
  }

  .demo-featured-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 24px;
  }
}

@media (max-width: 520px) {
  .demo-brand-tag {
    display: none;
  }

  .demo-pill {
    padding-inline: 10px;
  }

  .demo-dish {
    grid-template-columns: 88px minmax(0, 1fr);
    column-gap: 12px;
  }

  .demo-thumb {
    width: 88px;
    border-radius: 12px;
  }

  .demo-featured-body {
    padding: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
