@font-face {
  font-family: "Alarosy Kufi";
  src: url("assets/fonts/NotoKufiArabic-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Price Sans";
  src: url("assets/fonts/WorkSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Price Sans";
  src: url("assets/fonts/WorkSans-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --ink: #1a110d;
  --date: #4a2216;
  --date-deep: #20100b;
  --saffron: #f2a51d;
  --honey: #ffd57a;
  --milk: #fff9ec;
  --paper: #fffdf8;
  --pistachio: #b7c97f;
  --ruby: #a82739;
  --muted: #76685f;
  --line: rgba(74, 34, 22, 0.12);
  --shadow: 0 22px 60px rgba(69, 34, 20, 0.13);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 9% 42%, rgba(242, 165, 29, 0.08), transparent 19rem),
    linear-gradient(180deg, var(--milk) 0, var(--paper) 30rem);
  font-family: "Alarosy Kufi", Tahoma, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: inherit;
}

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

.shell {
  width: min(100% - 28px, 1120px);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  inset: 8px auto auto 8px;
  transform: translateY(-150%);
  padding: 10px 14px;
  border-radius: 10px;
  color: white;
  background: var(--date-deep);
}

.skip-link:focus {
  transform: translateY(0);
}

.hero {
  position: relative;
  display: grid;
  min-height: min(720px, 92svh);
  color: white;
  background: var(--date-deep);
  isolation: isolate;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: auto -12% -72px;
  height: 128px;
  border-radius: 50% 50% 0 0;
  background: var(--milk);
}

.hero__image,
.hero__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__image {
  z-index: -2;
  object-fit: cover;
  object-position: 49% center;
  transform: scale(1.02);
}

.hero__shade {
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(22, 12, 8, 0.76) 0, rgba(22, 12, 8, 0.16) 36%, rgba(22, 12, 8, 0.88) 100%),
    linear-gradient(90deg, rgba(62, 24, 12, 0.23), transparent 70%);
}

.hero__topbar {
  align-self: start;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: max(18px, env(safe-area-inset-top));
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-lockup img {
  width: 70px;
  height: 42px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 12px;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.26);
}

.brand-lockup div {
  display: grid;
}

.brand-lockup span {
  font-size: 13px;
  font-weight: 720;
}

.brand-lockup small {
  color: rgba(255, 255, 255, 0.68);
  font-size: 10px;
}

.ghost-button {
  min-height: 40px;
  padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  color: white;
  background: rgba(26, 13, 8, 0.32);
  backdrop-filter: blur(12px);
  cursor: pointer;
}

.hero__content {
  align-self: end;
  padding-bottom: 124px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 8px;
  color: var(--honey);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hero h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(42px, 13vw, 78px);
  font-weight: 820;
  line-height: 1.18;
  letter-spacing: -0.06em;
  text-wrap: balance;
}

.hero h1 span {
  color: var(--honey);
}

.hero__copy {
  max-width: 490px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 24px;
}

.primary-action,
.round-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 16px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 720;
}

.primary-action {
  min-width: 136px;
  color: var(--ink);
  background: var(--saffron);
  box-shadow: 0 12px 28px rgba(242, 165, 29, 0.28);
}

.round-action {
  min-width: 70px;
  padding-inline: 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: white;
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(14px);
}

.hero__note {
  position: absolute;
  z-index: 3;
  inset: auto 0 34px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 10px;
}

.hero__note a {
  margin-inline-start: auto;
  color: white;
  font-weight: 700;
  text-underline-offset: 4px;
}

.hero__note-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pistachio);
  box-shadow: 0 0 0 5px rgba(183, 201, 127, 0.14);
}

.menu-toolbar {
  position: sticky;
  z-index: 20;
  top: 0;
  padding: 12px 0 0;
  background: rgba(255, 249, 236, 0.94);
  backdrop-filter: blur(20px) saturate(1.3);
  border-bottom: 1px solid rgba(74, 34, 22, 0.08);
}

.search-box {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid rgba(74, 34, 22, 0.1);
  border-radius: 17px;
  background: white;
  box-shadow: 0 8px 24px rgba(74, 34, 22, 0.05);
}

.search-box > span {
  color: var(--saffron);
  font-family: Arial, sans-serif;
  font-size: 25px;
  line-height: 1;
  transform: rotate(-20deg);
}

.search-box input {
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 13px;
}

.search-box input::placeholder {
  color: #9b8d83;
}

.search-box button {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  color: var(--muted);
  background: #f4eee5;
  cursor: pointer;
}

.category-rail {
  display: flex;
  gap: 8px;
  padding-block: 11px 12px;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}

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

.category-chip {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 8px 15px;
  border: 1px solid rgba(74, 34, 22, 0.11);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  font-weight: 650;
  scroll-snap-align: start;
  cursor: pointer;
  transition: 180ms ease;
}

.category-chip[aria-current="true"] {
  border-color: var(--date-deep);
  color: white;
  background: var(--date-deep);
  box-shadow: 0 8px 22px rgba(32, 16, 11, 0.18);
}

.menu-section {
  min-height: 60vh;
  padding-top: 38px;
  padding-bottom: 44px;
}

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

.section-kicker {
  color: var(--ruby);
}

.section-heading h2,
.contact-card h2,
.sheet h2 {
  margin: 0;
  font-size: clamp(27px, 7vw, 42px);
  font-weight: 820;
  line-height: 1.25;
  letter-spacing: -0.045em;
}

.item-count {
  flex: 0 0 auto;
  color: var(--muted);
  font-family: "Price Sans", sans-serif;
  font-size: 11px;
  direction: rtl;
}

.section-intro {
  max-width: 560px;
  margin: 10px 0 24px;
  color: var(--muted);
  font-size: 12px;
}

.product-grid {
  display: grid;
  gap: 12px;
}

.product-card {
  position: relative;
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  min-height: 132px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 9px 28px rgba(63, 32, 18, 0.06);
  overflow: hidden;
  content-visibility: auto;
  contain-intrinsic-size: 132px;
}

.product-card__media {
  position: relative;
  min-height: 132px;
  border: 0;
  padding: 0;
  background: #eadfce;
  overflow: hidden;
  cursor: pointer;
}

.product-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset -18px 0 24px rgba(48, 20, 10, 0.08);
  pointer-events: none;
}

.product-card__media img {
  width: 100%;
  height: 100%;
  min-height: 132px;
  object-fit: cover;
  transition: transform 420ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.product-card__media.is-logo img {
  object-fit: contain;
  padding: 20px;
  background: #111;
}

.product-card__body {
  display: grid;
  align-content: space-between;
  gap: 12px;
  min-width: 0;
  padding: 15px 14px 13px;
}

.product-card__title {
  margin: 0;
  font-size: 14px;
  font-weight: 780;
  line-height: 1.55;
}

.product-card__meta {
  min-height: 20px;
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.55;
}

.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
}

.price {
  color: var(--ruby);
  font-family: "Price Sans", "Alarosy Kufi", sans-serif;
  font-size: 14px;
  font-weight: 700;
  direction: rtl;
}

.price small {
  font-family: "Alarosy Kufi", sans-serif;
  font-size: 8px;
  font-weight: 650;
}

.add-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  min-height: 36px;
  padding: 7px 13px;
  border: 0;
  border-radius: 12px;
  color: var(--ink);
  background: var(--saffron);
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.add-button:active {
  transform: scale(0.95);
}

.product-card__badge {
  position: absolute;
  z-index: 2;
  top: 8px;
  right: 8px;
  max-width: 86px;
  padding: 4px 7px;
  border-radius: 999px;
  color: white;
  background: rgba(32, 16, 11, 0.78);
  backdrop-filter: blur(8px);
  font-size: 7.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.empty-state {
  display: grid;
  place-items: center;
  gap: 14px;
  min-height: 260px;
  text-align: center;
  color: var(--muted);
}

.empty-state button {
  min-height: 44px;
  padding: 8px 16px;
  border: 0;
  border-radius: 14px;
  color: white;
  background: var(--date-deep);
  cursor: pointer;
}

.contact-card {
  position: relative;
  display: grid;
  gap: 24px;
  margin-bottom: 56px;
  padding: 28px 22px;
  border-radius: 30px;
  color: white;
  background:
    radial-gradient(circle at 12% 20%, rgba(242, 165, 29, 0.28), transparent 16rem),
    var(--date-deep);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.contact-card::after {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  inset: auto -58px -62px auto;
  border: 22px solid rgba(255, 213, 122, 0.14);
  border-radius: 50%;
}

.contact-card p,
.contact-card span {
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 10px;
}

.contact-card h2 {
  margin-block: 5px 9px;
  color: var(--honey);
}

.contact-card__actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.contact-card__actions a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 13px;
  text-decoration: none;
  font-size: 10px;
}

.footer {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 2px 12px;
  padding-bottom: calc(96px + var(--safe-bottom));
  color: var(--muted);
  font-size: 9px;
}

.footer img {
  grid-row: 1 / 3;
  border-radius: 10px;
}

.footer p {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
}

.footer a {
  width: fit-content;
  text-underline-offset: 3px;
}

.cart-dock {
  position: fixed;
  z-index: 35;
  inset: auto 14px calc(12px + var(--safe-bottom));
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  width: min(calc(100% - 28px), 560px);
  min-height: 60px;
  margin-inline: auto;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  color: white;
  background: rgba(29, 15, 10, 0.96);
  box-shadow: 0 16px 46px rgba(32, 16, 11, 0.32);
  backdrop-filter: blur(18px);
  cursor: pointer;
}

.cart-dock__count {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  color: var(--ink);
  background: var(--saffron);
  font-family: "Price Sans", sans-serif;
  font-weight: 700;
}

.cart-dock > span:not(.cart-dock__count) {
  text-align: start;
  font-size: 11px;
  font-weight: 700;
}

.cart-dock strong {
  color: var(--honey);
  font-family: "Price Sans", "Alarosy Kufi", sans-serif;
  font-size: 12px;
}

.sheet-backdrop {
  position: fixed;
  z-index: 49;
  inset: 0;
  background: rgba(19, 9, 5, 0.62);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 180ms ease;
}

.sheet {
  position: fixed;
  z-index: 50;
  inset: auto 0 0;
  max-height: min(88svh, 820px);
  padding: 22px 18px calc(22px + var(--safe-bottom));
  border-radius: 30px 30px 0 0;
  background: var(--paper);
  box-shadow: 0 -24px 80px rgba(32, 16, 11, 0.24);
  overflow: auto;
  transform: translateY(104%);
  transition: transform 300ms cubic-bezier(0.22, 0.76, 0.22, 1);
}

.sheet::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 50%;
  width: 42px;
  height: 4px;
  border-radius: 99px;
  background: #d9cec2;
  transform: translateX(-50%);
}

.sheet.is-open {
  transform: translateY(0);
}

.sheet-backdrop.is-open {
  opacity: 1;
}

.sheet__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 8px 0 20px;
}

.sheet__header span {
  color: var(--ruby);
  font-size: 9px;
  font-weight: 700;
}

.sheet__close {
  position: absolute;
  z-index: 3;
  top: 22px;
  left: 18px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 8px 22px rgba(41, 20, 10, 0.12);
  font-family: Arial, sans-serif;
  font-size: 24px;
  cursor: pointer;
}

.sheet__close--inline {
  position: static;
  flex: 0 0 auto;
}

.product-sheet {
  padding-top: 18px;
}

.product-sheet__image {
  width: calc(100% + 36px);
  max-height: 340px;
  margin: -18px -18px 22px;
  object-fit: cover;
  aspect-ratio: 16 / 10;
  background: #eadfce;
}

.product-sheet__image.is-logo {
  object-fit: contain;
  padding: 56px;
  background: #111;
}

.product-sheet__eyebrow {
  color: var(--ruby);
  font-size: 9px;
  font-weight: 700;
}

.product-sheet h2 {
  padding-inline-end: 44px;
}

.variant-list {
  display: grid;
  gap: 8px;
  margin: 20px 0;
}

.variant-option {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
  cursor: pointer;
}

.variant-option input {
  width: 18px;
  height: 18px;
  accent-color: var(--ruby);
}

.variant-option span {
  font-size: 10px;
  font-weight: 660;
}

.variant-option strong {
  color: var(--ruby);
  font-family: "Price Sans", "Alarosy Kufi", sans-serif;
  font-size: 11px;
}

.sheet-primary {
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 17px;
  color: var(--ink);
  background: var(--saffron);
  font-weight: 800;
  cursor: pointer;
}

.cart-items {
  display: grid;
  gap: 9px;
}

.cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: white;
}

.cart-item h3 {
  margin: 0;
  font-size: 11px;
}

.cart-item p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 8px;
}

.cart-item__side {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.cart-item__side strong {
  color: var(--ruby);
  font-family: "Price Sans", "Alarosy Kufi", sans-serif;
  font-size: 11px;
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 8px;
  direction: ltr;
}

.qty-control button {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 9px;
  background: #f3ede4;
  font-family: Arial, sans-serif;
  cursor: pointer;
}

.qty-control span {
  min-width: 16px;
  text-align: center;
  font-family: "Price Sans", sans-serif;
  font-size: 11px;
  font-weight: 700;
}

.cart-summary {
  position: sticky;
  bottom: calc(-22px - var(--safe-bottom));
  display: grid;
  gap: 12px;
  margin: 18px -18px calc(-22px - var(--safe-bottom));
  padding: 17px 18px calc(18px + var(--safe-bottom));
  border-top: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.96);
  backdrop-filter: blur(16px);
}

.cart-summary__total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
}

.cart-summary__total strong {
  color: var(--ruby);
  font-family: "Price Sans", "Alarosy Kufi", sans-serif;
  font-size: 18px;
}

.cart-empty {
  display: grid;
  place-items: center;
  min-height: 240px;
  color: var(--muted);
  text-align: center;
}

.branch-list {
  display: grid;
  gap: 10px;
}

.branch-list > * {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: 17px;
  text-decoration: none;
  background: white;
}

.branch-list span {
  font-size: 11px;
  font-weight: 700;
}

.branch-list b {
  color: var(--ruby);
  font-size: 8px;
}

.branch-list__current {
  border-color: rgba(242, 165, 29, 0.42);
  background: #fff5d9;
}

.toast {
  position: fixed;
  z-index: 70;
  left: 50%;
  bottom: calc(88px + var(--safe-bottom));
  width: max-content;
  max-width: calc(100% - 36px);
  padding: 10px 15px;
  border-radius: 999px;
  color: white;
  background: var(--date-deep);
  box-shadow: 0 10px 32px rgba(32, 16, 11, 0.25);
  font-size: 9px;
  transform: translate(-50%, 12px);
  opacity: 0;
  transition: 180ms ease;
}

.toast.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid rgba(242, 165, 29, 0.68);
  outline-offset: 3px;
}

body.sheet-open {
  overflow: hidden;
}

@media (hover: hover) {
  .product-card:hover .product-card__media img {
    transform: scale(1.055);
  }

  .add-button:hover {
    box-shadow: 0 8px 18px rgba(242, 165, 29, 0.28);
    transform: translateY(-1px);
  }
}

@media (min-width: 700px) {
  .shell {
    width: min(100% - 52px, 1120px);
  }

  .hero__content {
    padding-bottom: 150px;
  }

  .hero__copy {
    font-size: 16px;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .product-card {
    grid-template-columns: 148px minmax(0, 1fr);
    min-height: 164px;
  }

  .product-card__media,
  .product-card__media img {
    min-height: 164px;
  }

  .product-card__body {
    padding: 18px;
  }

  .contact-card {
    grid-template-columns: 1fr auto;
    align-items: end;
    padding: 38px;
  }

  .sheet {
    inset: 50% auto auto 50%;
    width: min(620px, calc(100% - 40px));
    max-height: min(84svh, 820px);
    border-radius: 30px;
    transform: translate(-50%, calc(-50% + 30px)) scale(0.98);
    opacity: 0;
  }

  .sheet.is-open {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }

  .cart-summary {
    bottom: calc(-22px - var(--safe-bottom));
  }
}

@media (min-width: 1050px) {
  .hero {
    min-height: 760px;
  }

  .hero__image {
    object-position: center 46%;
  }

  .hero__topbar {
    padding-top: 30px;
  }

  .menu-toolbar > .shell:first-child {
    display: flex;
    justify-content: center;
  }

  .search-box {
    width: 600px;
  }

  .category-rail {
    justify-content: center;
  }

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

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