:root {
  --ordering-top-bar-max-width: min(var(--ui-content-max, 1200px), 100%);
}

.ordering-top-bar {
  width: var(--ordering-top-bar-max-width);
  margin: 0 auto clamp(10px, 3vw, 24px);
  padding: clamp(10px, 2vw, 18px);
  border: 1px solid #dbe4f2;
  border-radius: 24px;
  background: linear-gradient(135deg, #eef1f4 0%, #e4e9ef 100%);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.1);
  position: relative;
  z-index: 60;
}

.ordering-top-bar__shell {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "lang brand home";
  align-items: center;
  gap: 12px;
}

.ordering-top-bar__home {
  grid-area: home;
  justify-self: end;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid #d5deed;
  background: rgba(255, 255, 255, 0.92);
  color: #1f2937;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.ordering-top-bar__home:hover,
.ordering-top-bar__home:focus-visible {
  border-color: rgba(59, 130, 246, 0.62);
  outline: none;
}

.ordering-top-bar__brand-link {
  grid-area: brand;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #1f2937;
  min-width: 0;
}

.ordering-top-bar__brand-logo {
  display: block;
  width: auto;
  height: 56px;
  max-width: min(168px, 30vw);
  object-fit: contain;
  flex-shrink: 0;
}

.ordering-top-bar__brand-name {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  font-weight: 800;
  line-height: 1.3;
  max-width: min(360px, 48vw);
  overflow-wrap: anywhere;
}

.ordering-top-bar .rt-lang-menu {
  grid-area: lang;
  position: relative;
  left: auto;
  right: auto;
  justify-self: start;
  z-index: 70;
}

.ordering-top-bar .rt-lang-menu__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid #d5deed;
  background: rgba(255, 255, 255, 0.92);
  color: #1f2937;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.ordering-top-bar .rt-lang-menu__toggle:hover,
.ordering-top-bar .rt-lang-menu__toggle:focus-visible {
  border-color: rgba(59, 130, 246, 0.62);
  outline: none;
}

.ordering-top-bar .rt-lang-menu__toggle img {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  object-fit: cover;
  flex-shrink: 0;
}

.ordering-top-bar .rt-lang-menu__chevron {
  font-size: 0.74rem;
  opacity: 0.78;
}

.ordering-top-bar .rt-lang-menu__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: auto;
  min-width: 190px;
  max-height: min(320px, 70vh);
  overflow: auto;
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 6px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #d5deed;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.16);
}

.ordering-top-bar .rt-lang-menu[data-open="true"] .rt-lang-menu__dropdown {
  display: flex;
}

.ordering-top-bar .rt-lang-menu__item {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  width: 100%;
  border: 0;
  padding: 8px 9px;
  border-radius: 9px;
  background: transparent;
  color: #1f2937;
  font-size: 0.9rem;
  text-align: left;
  cursor: pointer;
}

.ordering-top-bar .rt-lang-menu__item[data-lang="ar"] {
  font-family: "Cairo", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.ordering-top-bar .rt-lang-menu__item img {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  object-fit: cover;
}

.ordering-top-bar .rt-lang-menu__item:hover,
.ordering-top-bar .rt-lang-menu__item:focus-visible {
  background: rgba(148, 163, 184, 0.18);
  outline: none;
}

.ordering-top-bar .rt-lang-menu__item[aria-current="true"] {
  background: rgba(26, 115, 232, 0.15);
  color: #0f5bcc;
}

html[lang="ar"] .ordering-top-bar__brand-link,
html[dir="rtl"] .ordering-top-bar__brand-link {
  flex-direction: row-reverse;
}

html[lang="ar"] .ordering-top-bar .rt-lang-menu,
html[dir="rtl"] .ordering-top-bar .rt-lang-menu {
  justify-self: end;
}

html[lang="ar"] .ordering-top-bar .rt-lang-menu__dropdown,
html[dir="rtl"] .ordering-top-bar .rt-lang-menu__dropdown {
  left: auto;
  right: 0;
}

html[lang="ar"] .ordering-top-bar .rt-lang-menu__item,
html[dir="rtl"] .ordering-top-bar .rt-lang-menu__item {
  text-align: right;
}

@media (min-width: 721px) {
  html[lang="ar"] body.cart-page .ordering-top-bar__shell,
  html[dir="rtl"] body.cart-page .ordering-top-bar__shell,
  html.rt-lang-ar body.cart-page .ordering-top-bar__shell,
  html.rt-lang-rtl body.cart-page .ordering-top-bar__shell,
  body.cairo-font.cart-page .ordering-top-bar__shell {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    grid-template-areas: "lang brand .";
  }

  html[lang="ar"] body.cart-page .ordering-top-bar .rt-lang-menu,
  html[dir="rtl"] body.cart-page .ordering-top-bar .rt-lang-menu,
  html.rt-lang-ar body.cart-page .ordering-top-bar .rt-lang-menu,
  html.rt-lang-rtl body.cart-page .ordering-top-bar .rt-lang-menu,
  body.cairo-font.cart-page .ordering-top-bar .rt-lang-menu {
    grid-area: lang;
    grid-column: auto;
    grid-row: auto;
    justify-self: start;
  }

  html[lang="ar"] body.cart-page .ordering-top-bar__brand-link,
  html[dir="rtl"] body.cart-page .ordering-top-bar__brand-link,
  html.rt-lang-ar body.cart-page .ordering-top-bar__brand-link,
  html.rt-lang-rtl body.cart-page .ordering-top-bar__brand-link,
  body.cairo-font.cart-page .ordering-top-bar__brand-link {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
  }
}

@media (max-width: 720px) {
  .ordering-top-bar__shell {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand brand"
      "lang home";
    gap: 10px;
  }

  body.cart-page .ordering-top-bar__shell {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    grid-template-areas: "lang brand .";
    gap: 12px;
  }

  html[lang="ar"] body.cart-page .ordering-top-bar__shell,
  html[dir="rtl"] body.cart-page .ordering-top-bar__shell,
  html.rt-lang-ar body.cart-page .ordering-top-bar__shell,
  html.rt-lang-rtl body.cart-page .ordering-top-bar__shell,
  body.cairo-font.cart-page .ordering-top-bar__shell {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    grid-template-areas: "lang brand .";
  }

  body.cart-page .ordering-top-bar .rt-lang-menu,
  html[lang="ar"] body.cart-page .ordering-top-bar .rt-lang-menu,
  html[dir="rtl"] body.cart-page .ordering-top-bar .rt-lang-menu,
  html.rt-lang-ar body.cart-page .ordering-top-bar .rt-lang-menu,
  html.rt-lang-rtl body.cart-page .ordering-top-bar .rt-lang-menu,
  body.cairo-font.cart-page .ordering-top-bar .rt-lang-menu {
    grid-area: lang;
    grid-column: auto;
    grid-row: auto;
    align-self: center;
    justify-self: start;
  }

  body.cart-page .ordering-top-bar__brand-link,
  .ordering-top-bar__brand-link {
    justify-self: center;
  }

  body.cart-page .ordering-top-bar__brand-link {
    grid-column: 2;
    grid-row: 1;
  }

  .ordering-top-bar__home {
    padding: 8px 12px;
    min-height: 40px;
  }
}

@media (max-width: 520px) {
  .ordering-top-bar {
    border-radius: 18px;
    padding: 10px;
  }

  .ordering-top-bar__brand-logo {
    width: auto;
    height: 46px;
    max-width: min(132px, 42vw);
  }

  .ordering-top-bar__brand-name {
    font-size: 0.95rem;
    max-width: 62vw;
  }

  .ordering-top-bar .rt-lang-menu__toggle [data-rt-lang-current] {
    display: none;
  }

  .ordering-top-bar .rt-lang-menu__toggle {
    min-height: 36px;
    padding: 6px 8px;
  }
}

body.search-page .ordering-top-bar--search-merged {
  --search-merged-nav-btn-size: 50px;
  --search-merged-nav-btn-radius: 16px;
  --search-merged-nav-icon-size: 1.22rem;
  --search-merged-menu-icon-width: 24px;
  --search-merged-menu-icon-height: 30px;
  width: min(860px, calc(100% - 24px));
  margin: clamp(14px, 3vw, 28px) auto clamp(12px, 3vw, 22px);
  padding: clamp(14px, 2.5vw, 22px) clamp(18px, 3.2vw, 30px);
  position: sticky;
  top: calc(var(--ui-safe-top, 0px) + clamp(8px, 2vw, 18px));
  z-index: 80;
}

body.search-page .ordering-top-bar--search-merged .ordering-top-bar__shell {
  grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr);
  grid-template-areas: "lang brand actions";
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
}

body.search-page .ordering-top-bar--search-merged .ordering-top-bar__brand-link {
  grid-area: brand;
  justify-self: center;
  padding-inline: clamp(10px, 1.6vw, 18px);
}

body.search-page .ordering-top-bar--search-merged .ordering-top-bar__brand-logo {
  width: 60px;
  height: 60px;
}

body.search-page .ordering-top-bar--search-merged .rt-lang-menu {
  grid-area: lang;
  justify-self: start;
}

body.search-page .ordering-top-bar--search-merged .rt-lang-menu__toggle {
  min-height: 46px;
  padding: 8px 14px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

body.search-page .ordering-top-bar--search-merged .ordering-top-bar__actions {
  grid-area: actions;
  justify-self: end;
  display: flex;
  align-items: center;
  min-width: 0;
}

body.search-page .ordering-top-bar--search-merged .search-shell__nav {
  width: max-content;
  max-width: 100%;
  margin: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  position: static;
  top: auto;
  z-index: auto;
  justify-content: flex-start;
  direction: ltr;
  flex-direction: row-reverse;
  gap: 12px;
  flex-wrap: nowrap;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  border: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body.search-page .ordering-top-bar--search-merged .cart-quick-nav__btn {
  width: var(--search-merged-nav-btn-size);
  height: var(--search-merged-nav-btn-size);
  min-width: var(--search-merged-nav-btn-size);
  border-radius: var(--search-merged-nav-btn-radius);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #d5deed;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  color: #1f2937;
  transform: none;
  flex-shrink: 0;
}

body.search-page .ordering-top-bar--search-merged .cart-quick-nav__btn::after {
  display: none;
}

body.search-page .ordering-top-bar--search-merged .cart-quick-nav__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.1);
}

body.search-page .ordering-top-bar--search-merged .cart-quick-nav__btn i {
  font-size: var(--search-merged-nav-icon-size);
}

body.search-page .ordering-top-bar--search-merged .cart-quick-nav__icon {
  width: 30px;
  height: 30px;
  display: block;
  top: 0;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-position: center;
  mask-size: contain;
  -webkit-mask-size: contain;
  flex-shrink: 0;
}

body.search-page .ordering-top-bar--search-merged .cart-quick-nav__icon--menu {
  width: var(--search-merged-menu-icon-width);
  height: var(--search-merged-menu-icon-height);
  mask-size: contain;
  -webkit-mask-size: contain;
}

body.search-page .ordering-top-bar--search-merged .cart-quick-nav__btn .item-count {
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-size: 0.62rem;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.12);
}

body.search-page .ordering-top-bar--search-merged .cart-quick-nav__btn--accent {
  background: rgba(255, 122, 24, 0.12);
  border-color: rgba(255, 122, 24, 0.3);
  color: var(--color-primary, #ff7a18);
  box-shadow: 0 10px 22px rgba(255, 122, 24, 0.16);
}

body.search-page .ordering-top-bar--search-merged .cart-quick-nav__btn--history {
  background: rgba(15, 118, 110, 0.08);
  border-color: rgba(15, 118, 110, 0.18);
  color: #0f766e;
}

html[lang="ar"] body.search-page .ordering-top-bar--search-merged .ordering-top-bar__shell,
html[dir="rtl"] body.search-page .ordering-top-bar--search-merged .ordering-top-bar__shell,
html.rt-lang-ar body.search-page .ordering-top-bar--search-merged .ordering-top-bar__shell,
html.rt-lang-rtl body.search-page .ordering-top-bar--search-merged .ordering-top-bar__shell,
body.cairo-font.search-page .ordering-top-bar--search-merged .ordering-top-bar__shell {
  grid-template-areas: "actions brand lang";
}

html[lang="ar"] body.search-page .ordering-top-bar--search-merged .rt-lang-menu,
html[dir="rtl"] body.search-page .ordering-top-bar--search-merged .rt-lang-menu,
html.rt-lang-ar body.search-page .ordering-top-bar--search-merged .rt-lang-menu,
html.rt-lang-rtl body.search-page .ordering-top-bar--search-merged .rt-lang-menu,
body.cairo-font.search-page .ordering-top-bar--search-merged .rt-lang-menu {
  justify-self: end;
}

html[lang="ar"] body.search-page .ordering-top-bar--search-merged .ordering-top-bar__actions,
html[dir="rtl"] body.search-page .ordering-top-bar--search-merged .ordering-top-bar__actions,
html.rt-lang-ar body.search-page .ordering-top-bar--search-merged .ordering-top-bar__actions,
html.rt-lang-rtl body.search-page .ordering-top-bar--search-merged .ordering-top-bar__actions,
body.cairo-font.search-page .ordering-top-bar--search-merged .ordering-top-bar__actions {
  justify-self: start;
}

html[lang="ar"] body.search-page .ordering-top-bar--search-merged .search-shell__nav,
html[dir="rtl"] body.search-page .ordering-top-bar--search-merged .search-shell__nav,
html.rt-lang-ar body.search-page .ordering-top-bar--search-merged .search-shell__nav,
html.rt-lang-rtl body.search-page .ordering-top-bar--search-merged .search-shell__nav,
body.cairo-font.search-page .ordering-top-bar--search-merged .search-shell__nav {
  flex-direction: row;
}

@media (max-width: 720px) {
  body.search-page .ordering-top-bar--search-merged {
    --search-merged-nav-btn-size: 46px;
    --search-merged-nav-btn-radius: 14px;
    --search-merged-nav-icon-size: 1.08rem;
    --search-merged-menu-icon-width: 22px;
    --search-merged-menu-icon-height: 28px;
    width: min(720px, calc(100% - 16px));
    margin: 10px auto 12px;
    padding: 10px 12px;
    border-radius: 20px;
    top: calc(var(--ui-safe-top, 0px) + 8px);
  }

  body.search-page .ordering-top-bar--search-merged .ordering-top-bar__shell {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "lang brand actions";
    gap: 8px;
  }

  body.search-page .ordering-top-bar--search-merged .rt-lang-menu {
    justify-self: start;
  }

  body.search-page .ordering-top-bar--search-merged .rt-lang-menu__toggle {
    min-height: 38px;
    padding: 6px 8px;
    gap: 6px;
  }

  body.search-page .ordering-top-bar--search-merged .rt-lang-menu__toggle [data-rt-lang-current] {
    display: none;
  }

  body.search-page .ordering-top-bar--search-merged .ordering-top-bar__brand-link {
    justify-self: center;
    padding-inline: 0;
  }

  body.search-page .ordering-top-bar--search-merged .ordering-top-bar__brand-logo {
    width: 48px;
    height: 48px;
  }

  body.search-page .ordering-top-bar--search-merged .ordering-top-bar__actions {
    justify-self: end;
  }

  body.search-page .ordering-top-bar--search-merged .search-shell__nav {
    gap: 8px;
  }

  body.search-page .ordering-top-bar--search-merged .cart-quick-nav__btn {
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  }

  html[lang="ar"] body.search-page .ordering-top-bar--search-merged .ordering-top-bar__shell,
  html[dir="rtl"] body.search-page .ordering-top-bar--search-merged .ordering-top-bar__shell,
  html.rt-lang-ar body.search-page .ordering-top-bar--search-merged .ordering-top-bar__shell,
  html.rt-lang-rtl body.search-page .ordering-top-bar--search-merged .ordering-top-bar__shell,
  body.cairo-font.search-page .ordering-top-bar--search-merged .ordering-top-bar__shell {
    grid-template-areas: "actions brand lang";
  }

  html[lang="ar"] body.search-page .ordering-top-bar--search-merged .rt-lang-menu,
  html[dir="rtl"] body.search-page .ordering-top-bar--search-merged .rt-lang-menu,
  html.rt-lang-ar body.search-page .ordering-top-bar--search-merged .rt-lang-menu,
  html.rt-lang-rtl body.search-page .ordering-top-bar--search-merged .rt-lang-menu,
  body.cairo-font.search-page .ordering-top-bar--search-merged .rt-lang-menu {
    justify-self: end;
  }

  html[lang="ar"] body.search-page .ordering-top-bar--search-merged .ordering-top-bar__actions,
  html[dir="rtl"] body.search-page .ordering-top-bar--search-merged .ordering-top-bar__actions,
  html.rt-lang-ar body.search-page .ordering-top-bar--search-merged .ordering-top-bar__actions,
  html.rt-lang-rtl body.search-page .ordering-top-bar--search-merged .ordering-top-bar__actions,
  body.cairo-font.search-page .ordering-top-bar--search-merged .ordering-top-bar__actions {
    justify-self: start;
  }
}

@media (max-width: 520px) {
  body.search-page .ordering-top-bar--search-merged {
    --search-merged-nav-btn-size: 44px;
    --search-merged-nav-btn-radius: 12px;
    --search-merged-nav-icon-size: 1.06rem;
    --search-merged-menu-icon-width: 22px;
    --search-merged-menu-icon-height: 28px;
    width: calc(100% - 16px);
    padding: 10px;
    border-radius: 20px;
  }

  body.search-page .ordering-top-bar--search-merged .search-shell__nav {
    gap: 9px;
  }

  body.search-page .ordering-top-bar--search-merged .cart-quick-nav__btn {
    width: var(--search-merged-nav-btn-size);
    height: var(--search-merged-nav-btn-size);
    min-width: var(--search-merged-nav-btn-size);
    border-radius: var(--search-merged-nav-btn-radius);
  }

  body.search-page .ordering-top-bar--search-merged .cart-quick-nav__btn i {
    font-size: var(--search-merged-nav-icon-size);
  }

  body.search-page .ordering-top-bar--search-merged .cart-quick-nav__icon {
    width: 26px;
    height: 26px;
  }

  body.search-page .ordering-top-bar--search-merged .cart-quick-nav__icon--menu {
    width: var(--search-merged-menu-icon-width);
    height: var(--search-merged-menu-icon-height);
  }

  body.search-page .ordering-top-bar--search-merged .cart-quick-nav__btn .item-count {
    min-width: 17px;
    height: 17px;
    font-size: 0.58rem;
  }
}

/* ═══════════════════════════════════════════════════════
   Shared oh-header (unified across all ordering pages)
   ═══════════════════════════════════════════════════════ */

.oh-header {
  width: min(var(--ui-content-max, 960px), 100%);
  margin: 0 auto clamp(10px, 2vw, 20px);
  position: relative;
  z-index: 60;
}

.oh-header__inner {
  display: flex;
  align-items: center;
  position: relative;
  padding: clamp(10px, 1.5vw, 14px) clamp(12px, 2vw, 20px);
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.oh-header__brand {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #111;
  min-width: 0;
}

.oh-header__logo {
  display: block;
  width: auto;
  height: 44px;
  max-width: min(140px, 30vw);
  object-fit: contain;
  flex-shrink: 0;
}

.oh-header__name {
  font-size: clamp(0.92rem, 2vw, 1.1rem);
  font-weight: 700;
  line-height: 1.3;
  max-width: min(320px, 44vw);
  overflow-wrap: anywhere;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.oh-header__spacer {
  width: 1px;
}

/* oh-header lang-menu overrides */
.oh-header .rt-lang-menu {
  position: relative;
  z-index: 70;
}

.oh-header .rt-lang-menu__toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  color: #374151;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.oh-header .rt-lang-menu__toggle:hover,
.oh-header .rt-lang-menu__toggle:focus-visible {
  border-color: #9ca3af;
  outline: none;
}

.oh-header .rt-lang-menu__toggle img {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  object-fit: cover;
  flex-shrink: 0;
}

.oh-header .rt-lang-menu__chevron {
  font-size: 0.7rem;
  opacity: 0.6;
}

.oh-header .rt-lang-menu__dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: auto;
  min-width: 180px;
  max-height: min(300px, 60vh);
  overflow: auto;
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 5px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.oh-header .rt-lang-menu[data-open="true"] .rt-lang-menu__dropdown {
  display: flex;
}

.oh-header .rt-lang-menu__item {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  width: 100%;
  border: 0;
  padding: 7px 9px;
  border-radius: 8px;
  background: transparent;
  color: #374151;
  font-size: 0.88rem;
  text-align: left;
  cursor: pointer;
}

.oh-header .rt-lang-menu__item[data-lang="ar"] {
  font-family: "Cairo", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.oh-header .rt-lang-menu__item img {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  object-fit: cover;
}

.oh-header .rt-lang-menu__item:hover,
.oh-header .rt-lang-menu__item:focus-visible {
  background: #f3f4f6;
  outline: none;
}

.oh-header .rt-lang-menu__item[aria-current="true"] {
  background: #eef2ff;
  color: #4338ca;
}

/* RTL oh-header */
:is(html[lang="ar"], html[dir="rtl"], html.rt-lang-ar, html.rt-lang-rtl) .oh-header__brand {
  flex-direction: row-reverse;
}

:is(html[lang="ar"], html[dir="rtl"], html.rt-lang-ar, html.rt-lang-rtl) .oh-header .rt-lang-menu__dropdown {
  left: auto;
  right: 0;
}

:is(html[lang="ar"], html[dir="rtl"], html.rt-lang-ar, html.rt-lang-rtl) .oh-header .rt-lang-menu__item {
  text-align: right;
}

/* ═══════════════════════════════════════════════════════
   Shared oh-bottom-nav (unified across all ordering pages)
   ═══════════════════════════════════════════════════════ */

:root {
  --oh-bottom-nav-h: 62px;
}

.oh-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 900;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  height: var(--oh-bottom-nav-h);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: #fff;
  border-top: 1px solid #e5e7eb;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.05);
}

.oh-bottom-nav__item {
  flex: 1;
  max-width: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-decoration: none;
  color: #9ca3af;
  font-size: 0.7rem;
  font-weight: 500;
  padding: 6px 4px;
  position: relative;
  transition: color 0.15s ease;
}

.oh-bottom-nav__item span {
  white-space: nowrap;
}

.oh-bottom-nav__item i,
.oh-bottom-nav__item .oh-bottom-nav__menu-icon {
  font-size: 1.15rem;
  line-height: 1;
}

.oh-bottom-nav__menu-icon {
  width: 20px;
  height: 22px;
  display: block;
  flex-shrink: 0;
  background: currentColor;
  mask: url("menu-icon.svg") center/contain no-repeat;
  -webkit-mask: url("menu-icon.svg") center/contain no-repeat;
}

.oh-bottom-nav__item:hover {
  color: #374151;
}

.oh-bottom-nav__item--active {
  color: var(--ui-primary, #e67e22);
  font-weight: 600;
}

.oh-bottom-nav__item--active::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--ui-primary, #e67e22);
}

/* oh-bottom-nav desktop */
@media (min-width: 769px) {
  .oh-bottom-nav {
    position: fixed;
    left: 50%;
    right: auto;
    bottom: 12px;
    transform: translateX(-50%);
    width: auto;
    min-width: 380px;
    max-width: 480px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    height: auto;
  }

  .oh-bottom-nav__item {
    flex: 1;
    max-width: none;
    padding: 10px 16px;
    border-radius: 12px;
    margin: 4px;
  }

  .oh-bottom-nav__item:hover {
    background: #f9fafb;
  }

  .oh-bottom-nav__item--active::before {
    display: none;
  }

  .oh-bottom-nav__item--active {
    background: #fff7ed;
  }
}

/* oh-bottom-nav small text */
@media (max-width: 400px) {
  .oh-bottom-nav__item {
    font-size: 0.65rem;
    gap: 2px;
  }

  .oh-bottom-nav__item i,
  .oh-bottom-nav__item .oh-bottom-nav__menu-icon {
    font-size: 1.05rem;
  }
}

/* oh-bottom-nav landscape phone */
@media (max-height: 500px) {
  .oh-bottom-nav {
    height: 50px;
  }

  .oh-bottom-nav__item {
    font-size: 0;
    gap: 0;
  }

  .oh-bottom-nav__item i,
  .oh-bottom-nav__item .oh-bottom-nav__menu-icon {
    font-size: 1.2rem;
  }
}

/* ── oh-bottom-nav back button ── */

.oh-bottom-nav__back {
  border: none;
  background: none;
  cursor: pointer;
  font: inherit;
}

.oh-bottom-nav__back[hidden] {
  display: none;
}

.oh-bottom-nav__back i {
  transition: transform 0.2s ease;
}

.oh-bottom-nav__back:active i {
  transform: translateX(-2px);
}

:is(html[lang="ar"], html[dir="rtl"]) .oh-bottom-nav__back i {
  transform: scaleX(-1);
}

:is(html[lang="ar"], html[dir="rtl"]) .oh-bottom-nav__back:active i {
  transform: scaleX(-1) translateX(-2px);
}

/* ── oh-bottom-nav cart badge ── */

.oh-bottom-nav__icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.oh-bottom-nav__badge {
  position: absolute;
  top: -6px;
  inset-inline-end: -10px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--ui-primary, #e67e22);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(230, 126, 34, 0.35);
  pointer-events: none;
}

.oh-bottom-nav__badge[hidden] {
  display: none;
}

@keyframes oh-badge-pop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.oh-bottom-nav__badge--pulse {
  animation: oh-badge-pop 0.3s ease;
}

/* ── Shared bottom-nav clearance for pages using oh-bottom-nav ── */
.ui-shell--has-bottom-nav {
  padding-bottom: calc(var(--oh-bottom-nav-h) + 24px + var(--ui-cookie-banner-height, 0px) + env(safe-area-inset-bottom, 0px));
}

.ui-shell--has-bottom-nav .whatsapp-fab {
  --whatsapp-offset: calc(var(--oh-bottom-nav-h) + 8px + var(--ui-cookie-banner-height, 0px) + env(safe-area-inset-bottom, 0px));
}
