:root {
  --brand: #650933;
  --accent: #d4a55a;
  --paper: #fdfbfb;
  --ink: #101728;
  --muted: #7d8aa1;
  --line: #e8edf4;
  --body: "Inter", sans-serif;
  --condensed: "Anton", sans-serif;
  --display: "Playfair Display", serif;
  --arabic: "Tajawal", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  margin: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

.menu-shell {
  margin: 0 auto;
  max-width: 1180px;
  min-height: 100vh;
  padding: 18px 16px 34px;
}

.menu-top {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin: 0 auto 22px;
  position: sticky;
  top: 0;
  z-index: 20;
}

.menu-top::before {
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(16px);
  content: "";
  inset: -18px -16px -12px;
  position: absolute;
  z-index: -1;
}

.menu-logo {
  align-items: center;
  color: var(--ink);
  display: inline-flex;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
}

.menu-logo img {
  height: 46px;
  object-fit: contain;
  width: 46px;
}

.menu-logo span {
  color: rgba(16, 23, 40, 0.72);
  font-size: clamp(11px, 2.6vw, 14px);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.2;
  max-width: 220px;
  text-transform: uppercase;
}

.language-switch,
.category-tabs button {
  align-items: center;
  background: #eef2f7;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #28364b;
  display: inline-flex;
  font-size: 14px;
  font-weight: 800;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  white-space: nowrap;
}

.language-switch {
  color: var(--brand);
  flex: 0 0 auto;
  min-height: 42px;
}

.best-sellers,
.promo-strip,
.menu-mode-note,
.category-tabs,
.menu-grid {
  margin-inline: auto;
  max-width: 1120px;
}

.promo-strip {
  margin-bottom: 24px;
}

.promo-feature {
  background:
    radial-gradient(circle at 78% 48%, rgba(255, 255, 255, 0.78), transparent 32%),
    linear-gradient(135deg, #faead5, color-mix(in srgb, var(--accent) 28%, #fff4e5));
  border: 1px solid color-mix(in srgb, var(--accent) 32%, #fff);
  border-radius: 28px;
  box-shadow: 0 18px 44px -34px rgba(43, 22, 14, 0.48);
  color: #2b160e;
  min-height: clamp(250px, 56vw, 380px);
  overflow: hidden;
  padding: clamp(20px, 5vw, 34px);
  position: relative;
}

.promo-feature-image {
  background: #f7ead6;
  min-height: clamp(310px, 88vw, 520px);
  padding: 0;
}

.promo-feature-image .promo-full-slider {
  inset: 0;
  width: 100%;
}

.promo-feature-image .promo-slide {
  align-items: center;
  background: #f7ead6;
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.promo-feature-image .promo-slide img {
  filter: none;
  height: 100%;
  object-fit: contain;
  object-position: center;
  width: 100%;
}

.promo-copy {
  max-width: 72%;
  position: relative;
  z-index: 2;
}

.promo-copy span {
  color: var(--accent);
  display: block;
  font-size: clamp(10px, 2.5vw, 13px);
  font-weight: 900;
  letter-spacing: 0.22em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.promo-copy strong {
  display: block;
  font-family: var(--condensed);
  font-size: clamp(48px, 15vw, 118px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.86;
  max-width: 620px;
  text-transform: uppercase;
}

.promo-copy p {
  color: rgba(43, 22, 14, 0.72);
  font-size: clamp(12px, 3vw, 15px);
  font-weight: 600;
  line-height: 1.45;
  margin: 14px 0 0;
  max-width: 310px;
}

.promo-slider {
  align-items: flex-end;
  bottom: 16px;
  display: flex;
  pointer-events: none;
  position: absolute;
  right: 18px;
  top: 16px;
  width: min(46%, 500px);
  z-index: 3;
}

.promo-slide {
  inset: 0;
  margin: 0;
  opacity: 0;
  position: absolute;
  transform: translateX(7%);
  transition: opacity 650ms ease, transform 650ms ease;
}

.promo-slide.is-active {
  opacity: 1;
  transform: translateX(0);
}

.promo-slide img {
  filter: drop-shadow(0 18px 22px rgba(43, 22, 14, 0.22));
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.best-sellers {
  margin-bottom: 22px;
}

.menu-mode-note {
  background: color-mix(in srgb, var(--brand) 8%, #fff);
  border: 1px solid color-mix(in srgb, var(--brand) 14%, #fff);
  border-radius: 14px;
  color: color-mix(in srgb, var(--brand) 84%, #1f2937);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 16px;
  padding: 11px 14px;
}

.menu-mode-note[hidden] {
  display: none;
}

.section-heading {
  align-items: end;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin: 0 0 12px;
}

.section-heading h2 {
  font-family: var(--display);
  font-size: clamp(24px, 6vw, 34px);
  line-height: 1;
  margin: 0;
}

.section-heading span {
  color: var(--muted);
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 800;
}

.seller-rail {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 2px 1px 10px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.seller-rail::-webkit-scrollbar,
.category-tabs::-webkit-scrollbar {
  display: none;
}

.seller-rail .menu-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
  box-shadow: 0 16px 34px -28px rgba(26, 31, 44, 0.55);
  display: grid;
  flex: 0 0 clamp(154px, 43vw, 190px);
  grid-template-rows: auto 1fr;
  min-height: 268px;
  overflow: hidden;
  scroll-snap-align: start;
}

.seller-rail .menu-card .image-box {
  aspect-ratio: 1 / 1.02;
}

.category-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  overflow-x: auto;
  padding: 2px 1px 8px;
  scrollbar-width: none;
}

.category-tabs button span {
  color: var(--brand);
  font-size: 18px;
  line-height: 1;
}

.category-tabs .category-icon {
  height: 20px;
  object-fit: contain;
  width: 20px;
}

.category-tabs button.is-active {
  background: var(--brand);
  color: #fff;
}

.category-tabs button.is-active span {
  color: #fff;
}

.category-tabs button.is-active .category-icon {
  filter: brightness(0) invert(1);
}

.menu-grid {
  display: grid;
  gap: 30px;
}

.menu-section .tile-grid {
  align-items: start;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.menu-card {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 16px 34px -30px rgba(26, 31, 44, 0.5);
  overflow: hidden;
}

.menu-card.tile {
  border-radius: 15px;
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 268px;
}

.menu-card.tile .image-box {
  align-items: center;
  aspect-ratio: 1 / 1.02;
  background: #eef2f7;
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.menu-card.tile .item-image {
  height: 100%;
  object-fit: contain;
  padding: 6px;
  width: 100%;
}

.image-empty {
  align-items: center;
  background:
    radial-gradient(circle at 50% 36%, color-mix(in srgb, var(--brand) 13%, #fff) 0%, transparent 45%),
    linear-gradient(145deg, #f5f7fb, #fff8ed);
  color: var(--brand);
  display: flex;
  flex-direction: column;
  gap: 8px;
  isolation: isolate;
  overflow: hidden;
  position: relative;
  text-align: center;
}

.image-empty::before {
  color: color-mix(in srgb, var(--brand) 9%, transparent);
  content: "3B";
  font-family: var(--condensed);
  font-size: clamp(68px, 18vw, 96px);
  inset: auto -10px -22px auto;
  line-height: 0.8;
  position: absolute;
  z-index: -1;
}

.placeholder-mark {
  align-items: center;
  background: rgba(255,255,255,0.74);
  border: 1px solid rgba(101,9,51,0.08);
  border-radius: 999px;
  box-shadow: 0 16px 28px -24px rgba(39,19,13,0.55);
  display: flex;
  height: 78px;
  justify-content: center;
  width: 78px;
}

.placeholder-mark img {
  height: 46px;
  object-fit: contain;
  width: 46px;
}

.placeholder-mark span {
  font-size: 28px;
  line-height: 1;
}

.placeholder-mark svg {
  fill: none;
  height: 50px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 5.2;
  width: 50px;
}

.image-empty strong {
  color: color-mix(in srgb, var(--brand) 86%, #1b0d09);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.item-copy {
  display: grid;
  grid-template-rows: minmax(55px, auto) 1fr auto;
  min-width: 0;
  min-height: 112px;
  padding: 9px 10px 11px;
}

.item-title-row {
  align-items: start;
  display: grid;
  gap: 7px;
  grid-template-columns: minmax(0, 1fr) minmax(46px, auto);
  min-width: 0;
}

.item-title-row h3 {
  color: var(--ink);
  display: -webkit-box;
  font-size: clamp(12px, 3.2vw, 16px);
  line-height: 1.1;
  margin: 0;
  min-height: 2.2em;
  overflow-wrap: anywhere;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.item-secondary {
  color: var(--muted);
  display: -webkit-box;
  font-size: 9.5px;
  font-weight: 700;
  margin: 4px 0 0;
  overflow-wrap: anywhere;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

html[lang="en"] .item-secondary {
  font-family: var(--arabic);
  font-size: 10.5px;
}

.item-description {
  color: var(--muted);
  display: -webkit-box;
  font-size: 12px;
  font-style: italic;
  line-height: 1.4;
  margin: 6px 0 0;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.item-metrics {
  align-self: end;
  color: var(--muted);
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 7px;
  min-height: 25px;
}

.item-metrics-empty {
  visibility: hidden;
}

.metric {
  align-items: center;
  background: #f3f6fa;
  border-radius: 999px;
  display: flex;
  font-size: 9px;
  font-weight: 800;
  justify-content: center;
  min-width: 0;
  padding: 5px 4px;
  white-space: nowrap;
}

.price {
  align-items: center;
  color: var(--brand);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: clamp(20px, 5.6vw, var(--menu-price-size, 28px));
  font-weight: 900;
  gap: 4px;
  justify-self: end;
  line-height: 1;
  min-width: 46px;
  white-space: nowrap;
}

.riyal {
  background: currentColor;
  display: inline-block;
  height: var(--menu-riyal-size, 0.74em);
  mask: url("../saudi-riyal-symbol.png") center / contain no-repeat;
  -webkit-mask: url("../saudi-riyal-symbol.png") center / contain no-repeat;
  width: var(--menu-riyal-size, 0.74em);
}

.empty-menu {
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: 20px;
  color: var(--muted);
  padding: 22px;
  text-align: center;
}

.menu-footer {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 12px;
  font-weight: 800;
  gap: 12px;
  justify-content: center;
  margin: 34px auto 0;
  max-width: 1120px;
  padding: 18px 0 0;
}

.menu-footer > a {
  color: var(--brand);
  text-decoration: none;
}

.menu-socials {
  align-items: center;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.menu-socials a {
  align-items: center;
  background: var(--brand);
  border: 1px solid color-mix(in srgb, var(--brand) 82%, #fff);
  border-radius: 14px;
  color: #fff;
  display: inline-flex;
  font-size: 11px;
  font-weight: 900;
  justify-content: center;
  min-height: 42px;
  min-width: 42px;
  padding: 8px 10px;
  text-decoration: none;
  text-transform: uppercase;
}

.menu-socials img {
  height: 22px;
  object-fit: contain;
  width: 22px;
}

.menu-socials a:not(.review-link) img {
  filter: brightness(0) invert(1);
}

.review-link {
  min-width: auto;
  padding-inline: 14px;
}

.review-link {
  letter-spacing: 0.04em;
}

html[dir="rtl"] body {
  font-family: var(--arabic);
}

html[dir="rtl"] .section-heading h2,
html[dir="rtl"] .item-title-row h3 {
  font-family: var(--arabic);
  font-weight: 900;
}

html[dir="rtl"] .menu-logo span {
  letter-spacing: 0;
  text-transform: none;
}

html[dir="rtl"] .promo-copy {
  margin-inline-start: auto;
  text-align: right;
}

html[dir="rtl"] .promo-copy strong {
  font-family: var(--arabic);
  font-weight: 900;
  line-height: 0.98;
  text-transform: none;
}

html[dir="rtl"] .promo-slider {
  left: 18px;
  right: auto;
}

html[dir="rtl"] .item-title-row {
  direction: ltr;
  grid-template-columns: minmax(46px, auto) minmax(0, 1fr);
}

html[dir="rtl"] .item-title-row > div {
  direction: rtl;
  grid-column: 2;
  text-align: right;
}

html[dir="rtl"] .price {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
}

html[dir="rtl"] .menu-logo span,
html[dir="rtl"] .language-switch,
html[dir="rtl"] .category-tabs button,
html[dir="rtl"] .menu-footer,
html[dir="rtl"] .promo-strip,
html[dir="rtl"] .metric {
  font-family: var(--arabic);
}

@media (min-width: 700px) {
  .menu-shell {
    padding: 22px 24px 42px;
  }

  .menu-logo img {
    height: 56px;
    width: 56px;
  }

  .menu-logo span {
    max-width: none;
  }

  .seller-rail .menu-card {
    flex-basis: 178px;
  }

  .seller-rail .menu-card .image-box,
  .menu-card.tile .image-box {
    aspect-ratio: 1 / 0.92;
  }

  .menu-section .tile-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 980px) {
  .menu-section .tile-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 430px) {
  .menu-shell {
    padding-inline: 14px;
  }

  .menu-logo span {
    max-width: 154px;
  }

  .language-switch,
  .category-tabs button {
    font-size: 13px;
  }

  .menu-card.tile .image-box {
    aspect-ratio: 1 / 0.98;
  }

  .item-copy {
    padding: 8px 9px 10px;
  }

  .item-title-row {
    gap: 5px;
    grid-template-columns: minmax(0, 1fr) minmax(42px, auto);
  }

  html[dir="rtl"] .item-title-row {
    grid-template-columns: minmax(42px, auto) minmax(0, 1fr);
  }

  .price {
    font-size: clamp(18px, 5.4vw, var(--menu-price-size, 24px));
    min-width: 42px;
  }

  .metric {
    font-size: 8.5px;
    padding-inline: 3px;
  }

  .promo-feature {
    min-height: 334px;
    padding: 20px;
  }

  .promo-copy {
    max-width: 76%;
  }

  .promo-copy strong {
    font-size: clamp(46px, 14vw, 60px);
    max-width: 290px;
  }

  .promo-copy p {
    max-width: 190px;
  }

  .promo-slider {
    bottom: 18px;
    right: 12px;
    top: auto;
    height: 46%;
    width: 54%;
  }

  html[dir="rtl"] .promo-slider {
    left: 12px;
  }

  html[dir="rtl"] .promo-copy strong {
    font-size: clamp(40px, 12.3vw, 54px);
    line-height: 1.02;
  }

}
