/* ── Design tokens ─────────────────────────────────────────── */
:root {
  --primary:       #E2381F;
  --primary-light: #FCEAE7;
  --primary-hover: #B8260F;
  --accent:        #F5A623;
  --bg:            #FBF8F3;
  --surface:       #FFFFFF;
  --surface-2:     #F5EFE6;
  --text:          #221916;
  --text-sub:      #5A524C;
  --text-muted:    #9C928A;
  --border:        rgba(34, 25, 22, 0.1);
  --shadow:        0 2px 14px rgba(0, 0, 0, 0.07);
  --shadow-md:     0 4px 24px rgba(0, 0, 0, 0.11);
  --radius:        14px;
  --radius-sm:     8px;
  --radius-pill:   100px;
  --container:     1100px;
  --header-h:      60px;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 56px); }
body {
  font-family: 'Noto Naskh Arabic', 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  padding-top: var(--header-h);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ── Container ─────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Header ────────────────────────────────────────────────── */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s;
}
#header.scrolled { box-shadow: var(--shadow); }

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}
.header-logo {
  position: absolute;
  inset-inline-start: 20px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  background: var(--surface-2);
}
.header-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  text-align: center;
}
/* ── Hero ──────────────────────────────────────────────────── */
#hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 18%;
  background-repeat: no-repeat;
  transform: scale(1.05);
  transition: transform 8s ease;
}
#hero:hover .hero-bg { transform: scale(1); }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(20,8,4,0.55) 0%, rgba(20,8,4,0.75) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.hero-logo {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255,255,255,0.3);
  background: rgba(0,0,0,0.3);
  margin-bottom: 4px;
}
.hero-name {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}
.hero-desc {
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
}
.hero-meta {
  display: flex;
  gap: 10px;
  margin-top: 6px;
  flex-wrap: wrap;
  justify-content: center;
}
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(8px);
}
.badge-call {
  background: var(--primary);
  border-color: var(--primary);
}
.badge-call:hover { background: var(--primary-hover); border-color: var(--primary-hover); }

/* ── Category Tabs ─────────────────────────────────────────── */
#catTabs {
  position: sticky;
  top: var(--header-h);
  z-index: 900;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.tabs-row {
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 0 12px;
}
.tabs-row::-webkit-scrollbar { display: none; }

.tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 16px;
  min-width: 72px;
  flex-shrink: 0;
  border-bottom: 2px solid transparent;
  color: var(--text-sub);
  font-size: 0.82rem;
  font-weight: 500;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.tab:hover { color: var(--primary); }
.tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}
.tab-img {
  width: 30px;
  height: 30px;
  object-fit: cover;
  border-radius: 50%;
  background: var(--surface-2);
}

/* ── Menu Container ────────────────────────────────────────── */
#menuContainer { padding-bottom: 48px; }

/* ── Category Section ──────────────────────────────────────── */
.cat-section { padding-top: 32px; }
.cat-section + .cat-section { margin-top: 4px; }

.section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}
.section-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--surface-2);
  flex-shrink: 0;
}
.section-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
}
.section-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 1px;
}

/* ── Grids ─────────────────────────────────────────────────── */
.grid-simple {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 8px;
}

/* ── Cards — shared ────────────────────────────────────────── */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: box-shadow 0.15s, transform 0.15s;
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.card-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}

/* ── Simple card ───────────────────────────────────────────── */
.card-simple {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
}
.card-simple .card-name {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.card-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 400;
}
.card-simple__right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.card-price {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Add-to-cart button ────────────────────────────────────── */
.add-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 0.78rem;
  flex-shrink: 0;
  transition: background 0.15s, transform 0.15s;
}
.add-btn:hover { background: var(--primary-hover); }
.add-btn:active { transform: scale(0.9); }
.add-btn.added {
  background: #2E9E5B;
  transform: scale(1.12);
}
.cart-added-label {
  position: fixed;
  bottom: 32px;
  left: 86px;
  z-index: 1010;
  background: #25D366;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
  box-shadow: var(--shadow-md);
}
.cart-added-label.show { opacity: 1; transform: translateX(0); }

/* ── Floating cart button ──────────────────────────────────── */
.float-cart {
  position: fixed;
  bottom: 22px;
  left: 22px;
  z-index: 1010;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: var(--shadow-md);
  transition: background 0.15s, transform 0.15s, opacity 0.2s, visibility 0.2s;
}
.float-cart:hover { background: #1FAE54; transform: translateY(-2px); }
.float-cart.hidden { opacity: 0; visibility: hidden; transform: scale(0.8); }
.float-cart__badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--surface);
}

/* ── Cart drawer ───────────────────────────────────────────── */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 16, 14, 0.45);
  z-index: 1011;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}
.cart-overlay.show { opacity: 1; visibility: visible; }

.cart-drawer {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: min(380px, 92vw);
  background: var(--surface);
  z-index: 1012;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.28s ease;
  box-shadow: var(--shadow-md);
}
.cart-drawer.open { transform: translateX(0); }

.cart-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}
.cart-drawer__head h2 { font-size: 1.05rem; font-weight: 700; }
.cart-drawer__close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-sub);
  transition: background 0.15s;
}
.cart-drawer__close:hover { background: var(--surface-2); }

.cart-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-muted);
}
.cart-empty i { font-size: 2.4rem; opacity: 0.4; }
.cart-empty p { font-size: 0.92rem; }

.cart-items-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}
.cart-item__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.cart-item__cat { font-size: 0.7rem; color: var(--text-muted); }
.cart-item__name { font-size: 0.9rem; font-weight: 600; color: var(--text); }
.cart-item__name small { font-weight: 400; color: var(--text-sub); }
.cart-item__price { font-size: 0.85rem; font-weight: 700; color: var(--primary); }
.cart-item__controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}
.qty-stepper {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 3px 6px;
}
.qty-btn {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--text-sub);
  transition: background 0.15s, color 0.15s;
}
.qty-btn:hover { background: var(--primary-light); color: var(--primary); }
.qty-val { font-size: 0.82rem; font-weight: 700; min-width: 16px; text-align: center; }
.cart-item__remove {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  transition: background 0.15s, color 0.15s;
}
.cart-item__remove:hover { background: var(--primary-light); color: var(--primary); }

.cart-drawer__footer {
  padding: 16px 20px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cart-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.95rem;
  font-weight: 700;
}
.cart-total-row span:last-child { color: var(--primary); }
.checkout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px;
  border-radius: var(--radius-sm);
  background: #25D366;
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  transition: background 0.15s, transform 0.15s;
}
.checkout-btn:hover { background: #1FAE54; }
.checkout-btn:active { transform: scale(0.98); }
.clear-cart-btn {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 6px;
  transition: color 0.15s;
}
.clear-cart-btn:hover { color: var(--primary); }

/* ── Cart item edit button ─────────────────────────────────── */
.cart-item__edit {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
  border: 1px solid rgba(226,56,31,0.2);
  border-radius: var(--radius-pill);
  padding: 3px 10px;
  margin-top: 4px;
  cursor: pointer;
  transition: background 0.15s;
}
.cart-item__edit:hover { background: #f9d0cb; }
.cart-item__addons {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
  line-height: 1.4;
}

/* ── Add-ons modal (bottom sheet) ──────────────────────────── */
.addons-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 16, 14, 0.5);
  z-index: 1020;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}
.addons-overlay.show { opacity: 1; visibility: visible; }

.addons-modal {
  position: fixed;
  bottom: 0;
  left: 0; right: 0;
  background: var(--surface);
  border-radius: 20px 20px 0 0;
  z-index: 1021;
  padding: 12px 20px 32px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 480px;
  max-height: 85vh;
  overflow-y: auto;
  margin: 0 auto;
}
.addons-modal.open { transform: translateY(0); }

.addons-modal__handle {
  width: 40px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  align-self: center;
  margin-bottom: 4px;
}
.addons-modal__title {
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}
.addons-modal__title i { color: var(--primary); }

.addon-section-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: -4px;
}
.addon-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.addon-label {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  min-width: 64px;
}
.addon-opts {
  display: flex;
  gap: 6px;
}
.addon-btn {
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border);
  background: var(--surface-2);
  color: var(--text-sub);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.addon-btn:hover { border-color: var(--primary); color: var(--primary); }
.addon-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.addon-chips-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.addon-chip {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border);
  background: var(--surface-2);
  color: var(--text-sub);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  font-family: inherit;
}
.addon-chip:hover { border-color: var(--primary); color: var(--primary); }
.addon-chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
/* bread group active = accent color */
.addon-chip[data-group="bread"].active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.addons-save-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  margin-top: 4px;
  transition: background 0.15s, transform 0.15s;
}
.addons-save-btn:hover { background: var(--primary-hover); }
.addons-save-btn:active { transform: scale(0.98); }

/* ── Toast ─────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--text);
  color: #fff;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  z-index: 1015;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  white-space: nowrap;
}
.toast.show { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

/* ── Info section ──────────────────────────────────────────── */
#info {
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  padding: 36px 0;
  margin-top: 8px;
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 640px;
  margin: 0 auto;
}
.info-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: box-shadow 0.15s;
  color: var(--text);
}
a.info-card:hover { box-shadow: var(--shadow-md); }
.info-icon {
  font-size: 1.2rem;
  color: var(--primary);
  margin-top: 3px;
  flex-shrink: 0;
}
.info-card-body h3 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}
.info-card-body p {
  font-size: 0.85rem;
  color: var(--text-sub);
  line-height: 1.5;
}
.info-link {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.82rem;
  color: var(--primary);
  font-weight: 600;
}
.phone-link {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  direction: ltr;
  text-align: right;
  margin-bottom: 4px;
}
.phone-link:hover { text-decoration: underline; }

/* ── Footer ────────────────────────────────────────────────── */
#footer {
  background: var(--text);
  padding: 32px 0 24px;
}
.footer-map {
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.footer-map__title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
}
.footer-map__title i { color: var(--accent); }
.footer-map__frame {
  width: 100%;
  height: 380px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: var(--shadow-md);
}
@media (max-width: 640px) {
  .footer-map__frame { height: 260px; }
}
.footer-map__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  transition: background 0.15s, transform 0.15s;
}
.footer-map__link:hover { background: var(--primary-hover); transform: translateY(-1px); }
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
}
.footer-copy {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}
.footer-powered {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.4);
}
.footer-powered a {
  color: var(--accent);
  font-weight: 600;
}
.footer-powered a:hover { text-decoration: underline; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 640px) {
  .hero-name  { font-size: 1.6rem; }
  #hero       { min-height: 300px; }
  .hero-logo  { width: 72px; height: 72px; }

  .grid-simple { grid-template-columns: 1fr; }

  .info-grid  { grid-template-columns: 1fr; }

  .section-title { font-size: 1.05rem; }
}

@media (max-width: 400px) {
  .tab { min-width: 64px; padding: 8px 12px; font-size: 0.78rem; }
  .tab-img { width: 26px; height: 26px; }
  .card-simple { padding: 10px 12px; }
}
