:root {
  --orange: rgb(254, 154, 12);
  --orange-deep: rgb(221, 122, 6);
  --gold: rgb(247, 181, 0);
  --gold-deep: rgb(212, 148, 0);
  --green: rgb(16, 159, 112);
  --green-deep: rgb(11, 122, 85);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --ease: cubic-bezier(.4, 0, .2, 1);
  --font: "Segoe UI", Tahoma, "Noto Sans Arabic", "Noto Sans", system-ui, -apple-system, Arial, sans-serif;
  --font-head: Georgia, "Times New Roman", "Segoe UI", Tahoma, serif;
}

:root[data-theme="light"] {
  --bg: #fdf7ec;
  --surface: #ffffff;
  --surface-2: #fff8ec;
  --text: #201c16;
  --muted: #6c746e;
  --border: #ecdfc8;
  --accent: var(--orange);
  --on-accent: #241400;
  --accent2-text: #0b7a55;
  --chip-active-bg: var(--green);
  --chip-active-text: #ffffff;
  --shadow-sm: 0 1px 3px rgba(32, 22, 4, .06);
  --shadow: 0 6px 20px rgba(32, 22, 4, .08);
  --shadow-lg: 0 18px 40px rgba(32, 22, 4, .14);
  --header-bg: rgba(255, 251, 238, .82);
}

:root[data-theme="dark"] {
  --bg: #0f1613;
  --surface: #17211c;
  --surface-2: #1d2922;
  --text: #eef5f1;
  --muted: #a3b3aa;
  --border: #26352d;
  --accent: var(--orange);
  --on-accent: #1d1200;
  --accent2-text: var(--green);
  --chip-active-bg: var(--green);
  --chip-active-text: #04150e;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .35);
  --shadow: 0 8px 24px rgba(0, 0, 0, .4);
  --shadow-lg: 0 20px 48px rgba(0, 0, 0, .55);
  --header-bg: rgba(14, 22, 18, .78);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
img { max-width: 100%; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background:
    radial-gradient(760px 380px at 10% 0%, rgba(254, 154, 12, .16), transparent 60%),
    radial-gradient(760px 380px at 92% 4%, rgba(16, 159, 112, .14), transparent 60%),
    var(--bg);
  color: var(--text);
  line-height: 1.55;
  transition: background .2s, color .2s;
}

.container { width: min(1200px, 100% - 32px); margin-inline: auto; }

/* Icon system: one inline SVG sprite (#icon-sprite in index.html), never emoji — so every
   glyph shares the same stroke weight, proportions and corner radius across OS/fonts/themes. */
.icon {
  width: 1.2em; height: 1.2em; flex: none; display: inline-block;
  vertical-align: -0.22em; color: currentColor;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.topbar__wave { display: block; width: 100%; height: 10px; margin-top: -1px; }
.topbar__wave path { fill: var(--accent); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 14px; padding-block: 12px; }
.brand-wrap { display: flex; align-items: center; gap: 12px; min-width: 0; max-width: 100%; }
.logo {
  height: 56px; width: auto; max-width: min(220px, 50vw); object-fit: contain; flex: none; display: block;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, .12));
}
.brand {
  margin: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-family: var(--font-head); font-weight: 700; font-size: clamp(1.15rem, 3.5vw, 1.65rem);
  color: var(--accent2-text); letter-spacing: .01em;
}
.controls { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

.btn {
  font: inherit; font-weight: 600; cursor: pointer; border-radius: 999px; text-decoration: none;
  padding: 8px 16px; min-height: 42px; border: 1.5px solid var(--border);
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); color: var(--accent2-text);
  transition: border-color .15s var(--ease), transform .15s var(--ease), box-shadow .15s var(--ease), background .15s var(--ease);
}
.btn:hover { border-color: var(--accent2-text); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(0) scale(.97); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
:root[data-theme="dark"] :focus-visible { outline-color: var(--orange); }

/* header buttons: brand-color text, same on every device */
.topbar .btn { color: var(--accent2-text); border-color: var(--border); background: var(--surface-2); }
.topbar .btn:hover { border-color: var(--accent2-text); }
#themeBtn[aria-pressed="true"] { background: var(--accent2-text); color: var(--surface); border-color: var(--accent2-text); }
#themeIcon { display: inline-flex; }
#themeIcon .icon { transition: transform .3s var(--ease); }
#themeBtn:hover #themeIcon .icon { transform: rotate(14deg); }

/* Hero: a playful callback to the shop's own poster headline, with a hand-drawn
   arrow nudging the eye down toward the search bar. */
.hero { display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 26px 0 6px; text-align: center; }
.hero__tagline {
  margin: 0; font-family: var(--font-head); font-weight: 800; font-size: clamp(1.1rem, 3.2vw, 1.5rem);
  color: var(--on-accent); background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  padding: 10px 26px; border-radius: 999px; box-shadow: var(--shadow);
  transform: rotate(-1.4deg);
}
.hero__arrow { width: 30px; height: 56px; color: var(--accent2-text); opacity: .85; animation: bob 2s ease-in-out infinite; }

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* Search */
.search { display: flex; gap: 8px; margin-block: 24px 14px; align-items: center; }
.search__bar {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 2px solid var(--border);
  border-radius: 999px; padding-inline: 18px; box-shadow: var(--shadow-sm);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.search__bar:focus-within { border-color: var(--green); box-shadow: 0 0 0 4px rgba(16, 159, 112, .18); }
.search__icon { flex: none; color: var(--muted); }
.search__bar input {
  flex: 1; min-width: 0; font: inherit; color: var(--text);
  background: transparent; border: 0; padding: 13px 0; min-height: 46px; font-size: 1rem;
}
.search__bar input:focus { outline: none; }
.search__bar input::placeholder { color: var(--muted); }
.btn--clear { flex: none; padding-inline: 14px; }

/* Category chips */
.chips {
  display: flex; gap: 8px; overflow-x: auto; padding-block: 4px 12px; scrollbar-width: thin;
  -webkit-mask-image: linear-gradient(to right, transparent 0, black 18px, black calc(100% - 18px), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, black 18px, black calc(100% - 18px), transparent 100%);
}
.chips::-webkit-scrollbar { height: 6px; }
.chips::-webkit-scrollbar-thumb { background: var(--border); border-radius: 999px; }
.chip {
  font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; min-height: 40px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 16px; border-radius: 999px;
  border: 1.5px solid var(--border); background: var(--surface); color: var(--text);
  transition: all .15s var(--ease);
}
.chip:hover { border-color: var(--green); transform: translateY(-1px); }
.chip[aria-pressed="true"] {
  background: var(--chip-active-bg); color: var(--chip-active-text); border-color: transparent;
  font-weight: 700; box-shadow: var(--shadow-sm);
}
.chip__icon { width: 1.05em; height: 1.05em; color: var(--accent2-text); }
.chip[aria-pressed="true"] .chip__icon { color: var(--chip-active-text); }

.status { color: var(--muted); margin: 4px 0 18px; min-height: 1.5em; font-size: .92rem; }

/* Menu sections */
.sections {
  display: grid; gap: 22px; align-items: start;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  margin-bottom: 32px;
}
.menu-section {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 22px 22px 10px;
  animation: riseIn .5s var(--ease) both;
  transition: box-shadow .2s var(--ease), transform .2s var(--ease);
}
.menu-section:not(.menu-section--addons)::before {
  content: ""; position: absolute; inset-inline: 0; top: 0; height: 4px;
  background: linear-gradient(90deg, var(--orange), var(--green));
}
.menu-section:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.menu-section__title {
  display: flex; align-items: center; gap: 10px;
  margin: 2px 0 10px; padding-bottom: 10px;
  font-family: var(--font-head); font-weight: 700; font-size: clamp(1.4rem, 3.6vw, 1.8rem); line-height: 1.2;
  border-bottom: 2px solid var(--border);
}
.menu-section__icon { width: 1.3rem; height: 1.3rem; color: var(--accent2-text); }
:root[dir="ltr"] .menu-section__title { letter-spacing: .02em; }

.items { list-style: none; margin: 0; padding: 0; }
.item {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
  padding: 13px 10px; margin-inline: -10px; border-radius: var(--radius-sm);
  border-bottom: 1px dashed var(--border);
  transition: background .15s var(--ease);
}
.item:hover { background: var(--surface-2); }
.item:last-child { border-bottom: 0; }
.item__main { min-width: 0; }
.item__name { margin: 0; font-size: 1.05rem; font-weight: 700; overflow-wrap: anywhere; }
.item__note { margin: 4px 0 0; font-size: .86rem; color: var(--muted); overflow-wrap: anywhere; }

.item__prices { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex-shrink: 0; }
.price-row { display: flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.price-label { font-size: .85rem; color: var(--muted); }
.price {
  font-weight: 800; font-size: 1.08rem; color: var(--accent2-text);
  font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate;
  background: var(--surface-2); padding: 2px 10px; border-radius: 999px;
}
.cur { font-size: .72rem; color: var(--muted); }

/* Add-ons highlighted box */
.menu-section--addons {
  background: linear-gradient(155deg, var(--gold), var(--gold-deep));
  border-color: transparent; color: var(--on-accent);
}
.menu-section--addons .menu-section__title { border-bottom-color: rgba(29, 18, 0, .3); font-size: clamp(1.2rem, 3.4vw, 1.5rem); }
.menu-section--addons .menu-section__icon { color: var(--on-accent); }
.menu-section--addons .item { border-bottom-color: rgba(29, 18, 0, .22); }
.menu-section--addons .item:hover { background: rgba(255, 255, 255, .14); }
.menu-section--addons .item__note,
.menu-section--addons .price-label,
.menu-section--addons .cur { color: var(--on-accent); opacity: .85; }
.menu-section--addons .price { color: var(--on-accent); background: rgba(255, 255, 255, .28); }

.empty {
  text-align: center; padding: 56px 16px 64px; color: var(--muted);
  border: 2px dashed var(--border); border-radius: var(--radius); margin-bottom: 32px;
  background: var(--surface);
}
.empty__icon { width: 40px; height: 40px; margin-bottom: 12px; color: var(--muted); opacity: .7; }
.empty__text { margin: 0; }

/* Contact */
.contact {
  scroll-margin-top: 90px;
  margin: 16px 0 56px; padding: clamp(22px, 4vw, 40px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(254, 154, 12, .14), rgba(16, 159, 112, .14)), var(--surface);
  text-align: center;
}
.contact__title { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: clamp(1.5rem, 4vw, 2rem); }
.contact__title::after { content: ""; display: block; width: 72px; height: 4px; margin: 10px auto 0; border-radius: 4px; background: linear-gradient(90deg, var(--orange), var(--green)); }
.contact__intro { color: var(--muted); margin: 14px 0 0; }
.contact__cta {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  margin: 10px 0 24px; font-family: var(--font-head); font-weight: 800; font-style: italic;
  font-size: clamp(1.1rem, 3vw, 1.35rem); color: var(--accent2-text);
}
.contact__cta-arrow { width: 22px; height: 40px; color: var(--accent); }
.contact__grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.contact-card {
  display: flex; align-items: center; gap: 14px; text-align: start;
  padding: 14px 16px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); text-decoration: none; min-height: 68px;
  box-shadow: var(--shadow-sm);
  animation: riseIn .45s var(--ease) both;
}
a.contact-card { cursor: pointer; transition: transform .15s var(--ease), border-color .15s var(--ease), box-shadow .15s var(--ease); -webkit-tap-highlight-color: transparent; }
a.contact-card:hover { border-color: var(--green); transform: translateY(-3px); box-shadow: var(--shadow); }
a.contact-card:active { transform: scale(.98); }
.contact-card__text { min-width: 0; }
.contact-card--empty { border-style: dashed; color: var(--muted); }
.contact-card__icon {
  flex: none; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(145deg, var(--orange), var(--orange-deep)); color: var(--on-accent);
  box-shadow: var(--shadow-sm);
}
.contact-card__icon .icon { width: 22px; height: 22px; }
.contact-card:nth-of-type(even) .contact-card__icon { background: linear-gradient(145deg, var(--green), var(--green-deep)); color: #fff; }
.contact-card__label { display: block; font-size: .78rem; color: var(--muted); }
.contact-card__value { display: block; font-weight: 700; overflow-wrap: anywhere; }
.contact-card__value[data-ltr] { direction: ltr; unicode-bidi: isolate; }

/* Entrance animation */
@keyframes riseIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.sections .menu-section:nth-child(1) { animation-delay: .02s; }
.sections .menu-section:nth-child(2) { animation-delay: .07s; }
.sections .menu-section:nth-child(3) { animation-delay: .12s; }
.sections .menu-section:nth-child(4) { animation-delay: .17s; }
.sections .menu-section:nth-child(5) { animation-delay: .22s; }
.sections .menu-section:nth-child(n+6) { animation-delay: .26s; }
.contact__grid .contact-card:nth-child(1) { animation-delay: .02s; }
.contact__grid .contact-card:nth-child(2) { animation-delay: .06s; }
.contact__grid .contact-card:nth-child(3) { animation-delay: .1s; }
.contact__grid .contact-card:nth-child(4) { animation-delay: .14s; }
.contact__grid .contact-card:nth-child(n+5) { animation-delay: .18s; }

@media (max-width: 480px) {
  .btn { padding-inline: 12px; }
  #themeLabel { display: none; }  /* icon only on tiny screens; aria-label keeps it accessible */
  .menu-section { padding-inline: 16px; }
  .logo { height: 46px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

/* HEADER — dark mode fine-tuning */
:root[data-theme="dark"] .brand { color: var(--green); }
:root[data-theme="dark"] .topbar .btn { color: var(--green); border-color: var(--border); }
:root[data-theme="dark"] .topbar .btn:hover { border-color: var(--green); }
:root[data-theme="dark"] #themeBtn[aria-pressed="true"] { background: var(--green); color: #04150e; border-color: var(--green); }
