/* Restaurant QR — customer menu */
.menu-page { padding-bottom: 110px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #f7eee2; padding: 18px 18px 22px;
  background:
    radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--accent) 45%, transparent) 0%, transparent 55%),
    radial-gradient(80% 60% at 0% 100%, rgba(255, 196, 120, .12) 0%, transparent 60%),
    #211813;
  border-radius: 0 0 28px 28px;
  overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .07;
  background-image: radial-gradient(#fff 1px, transparent 1px); background-size: 14px 14px;
}
.hero > * { position: relative; z-index: 1; }
.hero-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.brand-mark {
  width: 58px; height: 58px; border-radius: 18px; flex: none; overflow: hidden;
  display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink);
  font-family: var(--f-display); font-weight: 800; font-size: 1.6rem;
  box-shadow: 0 8px 24px rgba(0,0,0,.35), inset 0 0 0 1px rgba(255,255,255,.15);
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.brand-text { min-width: 0; }
.brand-text h1 { margin: 0; font-family: var(--f-display); font-weight: 800; font-size: clamp(1.55rem, 6vw, 2.2rem); line-height: 1.05; letter-spacing: -.01em; }
.brand-text p { margin: 5px 0 0; color: rgba(247, 238, 226, .7); font-size: .9rem; }
.lang-btn {
  flex: none; display: inline-flex; align-items: center; gap: 6px; min-width: 44px; height: 38px; padding: 0 12px; border-radius: 99px;
  border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.08); color: #fff; font-weight: 800;
}
/* language sheet */
.langs { display: grid; gap: 8px; padding-bottom: 8px; }
.lang-opt {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; border-radius: 16px;
  border: 1px solid var(--line); background: var(--surface); text-align: start; font-size: 1.02rem; font-weight: 700;
}
.lang-opt .lf { display: inline-flex; flex: none; }
.lang-opt .flag { width: 30px; height: 20px; border-radius: 4px; overflow: hidden; display: block; box-shadow: 0 0 0 1px rgba(0,0,0,.12), 0 1px 3px rgba(0,0,0,.12); }
.lang-opt .ll { flex: 1; }
.lang-opt.on { border-color: var(--accent); background: var(--accent-soft); }
.lang-opt.on .ic { color: var(--accent); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.table-chip, .wifi-chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 99px;
  font-size: .85rem; font-weight: 700; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14);
}
.table-chip.is-on { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.service { display: flex; gap: 8px; margin-top: 16px; overflow-x: auto; scrollbar-width: none; }
.service::-webkit-scrollbar { display: none; }
.svc {
  position: relative; flex: none; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 14px; border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06); color: #fff; font-size: .88rem;
}
.svc b { font-weight: 700; }
.svc:active { transform: scale(.97); }
.svc .badge { position: absolute; top: -6px; inset-inline-end: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: var(--accent); color: var(--accent-ink); font-style: normal; font-size: .72rem; font-weight: 800; display: grid; place-items: center; }
.svc .badge:empty { display: none; }

.closed { margin: 14px 16px 0; padding: 12px 16px; border-radius: 14px; background: rgba(201,58,50,.1); color: var(--danger); font-weight: 700; text-align: center; }

/* ---------- Sticky search + categories ---------- */
.sticky { position: sticky; top: 0; z-index: 20; padding: 12px 0 8px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); }
.sticky.shadow { box-shadow: 0 8px 20px rgba(60,40,20,.08); }
.search { display: flex; align-items: center; gap: 10px; margin: 0 16px 10px; padding: 0 14px; height: 46px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); }
.search input { flex: 1; border: 0; outline: 0; background: transparent; color: var(--text); height: 100%; min-width: 0; }
/* Category bar: native finger swipe on phones, mouse drag + wheel on computers */
.cats {
  display: flex; gap: 8px; overflow-x: auto; overflow-y: hidden; padding: 2px 16px 4px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
  touch-action: pan-x pan-y; cursor: grab; user-select: none; -webkit-user-select: none;
  --fs: 0px; --fe: 0px;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--fs), #000 calc(100% - var(--fe)), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 var(--fs), #000 calc(100% - var(--fe)), transparent 100%);
}
.cats.fade-start { --fs: 28px; }
.cats.fade-end { --fe: 28px; }
html[dir="rtl"] .cats { -webkit-mask-image: linear-gradient(to left, transparent 0, #000 var(--fs), #000 calc(100% - var(--fe)), transparent 100%); mask-image: linear-gradient(to left, transparent 0, #000 var(--fs), #000 calc(100% - var(--fe)), transparent 100%); }
.cats::-webkit-scrollbar { display: none; }
.cats.dragging { cursor: grabbing; }
.cats.dragging .cat { pointer-events: none; }
.cat {
  flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 9px 15px; border-radius: 99px;
  border: 1px solid var(--line); background: var(--surface); font-weight: 700; font-size: .88rem; color: var(--text);
  transition: background .15s, color .15s, border-color .15s;
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent;
  cursor: inherit; white-space: nowrap;
}
.cat:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cat.on { background: #231b15; color: #f7eee2; border-color: #231b15; }

/* ---------- Sections & dishes ---------- */
.sections { padding: 4px 16px 0; max-width: 1080px; margin: 0 auto; }
.sec { padding-top: 18px; scroll-margin-top: 130px; }
.sec-head { display: flex; align-items: baseline; gap: 10px; margin: 0 2px 12px; }
.sec-head h2 { margin: 0; font-family: var(--f-display); font-weight: 650; font-size: 1.45rem; letter-spacing: -.01em; }
.sec-head span { color: var(--muted); font-size: .85rem; font-weight: 600; }
.grid { display: grid; gap: 12px; }
@media (min-width: 760px) { .grid { grid-template-columns: 1fr 1fr; } }

.dish {
  display: flex; gap: 14px; padding: 12px; border-radius: 20px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: 0 1px 0 rgba(60,40,20,.03);
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; position: relative;
}
.dish:hover { box-shadow: var(--shadow); }
.dish:active { transform: scale(.99); }
.dish.off { opacity: .55; }
.media {
  width: 104px; height: 104px; flex: none; border-radius: 16px; overflow: hidden;
  display: grid; place-items: center; font-size: 50px; line-height: 1;
  background: radial-gradient(circle at 30% 25%, #fff8ec 0%, var(--surface2) 70%);
  box-shadow: inset 0 0 0 1px rgba(60,40,20,.06);
}
.media img { width: 100%; height: 100%; object-fit: cover; }
.dish-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dish-body h3 { margin: 2px 0 4px; font-size: 1.02rem; font-weight: 800; line-height: 1.25; }
.dish-body p { margin: 0; color: var(--muted); font-size: .86rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tags { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 7px; }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 99px; font-size: .7rem; font-weight: 800; letter-spacing: .02em; }
.tag .ic { width: 12px; height: 12px; }
.tag-popular { background: rgba(208,144,26,.15); color: #a76f0c; }
.tag-spicy { background: rgba(201,58,50,.12); color: #b4332b; }
.tag-veg { background: rgba(47,138,87,.13); color: #24734a; }
.tag-new { background: var(--accent-soft); color: var(--accent); }
.tag-out { background: #231b15; color: #fff; }
.dish-foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.price { font-weight: 800; font-size: 1.05rem; color: var(--text); }
.add {
  width: 38px; height: 38px; border-radius: 12px; border: 0; display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 16px color-mix(in srgb, var(--accent) 35%, transparent);
}
.add:active { transform: scale(.92); }
.stepper { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 12px; background: #231b15; color: #fff; }
.stepper button { width: 32px; height: 32px; border: 0; border-radius: 9px; background: transparent; color: #fff; display: grid; place-items: center; }
.stepper button:hover { background: rgba(255,255,255,.1); }
.stepper span { min-width: 22px; text-align: center; font-weight: 800; }
.stepper.light { background: var(--surface2); color: var(--text); }
.stepper.light button { color: var(--text); }
.stepper.light button:hover { background: rgba(0,0,0,.06); }

.empty { text-align: center; color: var(--muted); padding: 30px 16px; }

/* ---------- Footer ---------- */
.foot { margin: 40px auto 0; max-width: 1080px; padding: 22px 16px; text-align: center; color: var(--muted); font-size: .82rem; border-top: 1px dashed var(--line); }
.foot b { color: var(--text); }

/* ---------- Cart bar ---------- */
.cartbar {
  position: fixed; z-index: 30; left: 50%; bottom: max(14px, env(safe-area-inset-bottom));
  transform: translateX(-50%); width: min(560px, calc(100% - 24px));
  display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 12px;
  border: 0; border-radius: 20px; background: #231b15; color: #fff; text-align: start;
  box-shadow: 0 18px 40px rgba(35,27,21,.35); animation: rise .3s cubic-bezier(.2,.9,.3,1.2);
}
@keyframes rise { from { transform: translate(-50%, 30px); opacity: 0; } }
.cb-count { min-width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-weight: 800; }
.cb-label { flex: 1; font-weight: 800; }
.cb-total { padding: 8px 14px; border-radius: 12px; background: rgba(255,255,255,.1); font-weight: 800; }
.cartbar.bump { animation: bump .35s ease; }
@keyframes bump { 40% { transform: translateX(-50%) scale(1.03); } }

/* ---------- Sheets content ---------- */
.item-hero { margin: -10px -20px 14px; height: 220px; display: grid; place-items: center; font-size: 110px; background: radial-gradient(circle at 30% 25%, #fff8ec 0%, var(--surface2) 75%); }
.item-hero img { width: 100%; height: 100%; object-fit: cover; }
.item-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.item-title h4 { margin: 0; font-family: var(--f-display); font-size: 1.45rem; font-weight: 650; }
.item-title .price { font-size: 1.2rem; color: var(--accent); white-space: nowrap; }
.item-desc { color: var(--muted); margin: 8px 0 12px; }
.qty-row { display: flex; align-items: center; justify-content: space-between; margin: 6px 0 4px; }

.lines { display: grid; gap: 2px; margin-bottom: 12px; }
.line { display: grid; grid-template-columns: 46px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.line .lm { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 26px; background: var(--surface2); overflow: hidden; }
.line .lm img { width: 100%; height: 100%; object-fit: cover; }
.line .ln b { display: block; font-size: .95rem; }
.line .ln small { color: var(--muted); }
.line .ln .lnote { display: block; color: var(--accent); font-size: .78rem; font-weight: 700; }
.line .lr { display: grid; justify-items: end; gap: 6px; }
.line .lr .price { font-size: .95rem; }
.sum { display: grid; gap: 6px; padding: 12px 14px; border-radius: 14px; background: var(--surface2); margin-top: 10px; }
.sum div { display: flex; justify-content: space-between; color: var(--muted); font-size: .92rem; }
.sum .tot { color: var(--text); font-weight: 800; font-size: 1.1rem; padding-top: 6px; border-top: 1px dashed var(--line); }
.cart-table { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); font-weight: 800; margin-bottom: 8px; }

/* ---------- Order tracker ---------- */
.track { border: 1px solid var(--line); border-radius: 18px; padding: 14px; margin-bottom: 12px; background: var(--surface); }
.track-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 12px; }
.track-head b { font-size: 1rem; }
.track-head small { color: var(--muted); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 12px; }
.step { text-align: center; font-size: .72rem; font-weight: 700; color: var(--muted); }
.step i { display: block; height: 6px; border-radius: 99px; background: var(--line); margin-bottom: 6px; }
.step.done i { background: var(--ok); }
.step.now i { background: var(--accent); animation: pulse 1.4s ease-in-out infinite; }
.step.now, .step.done { color: var(--text); }
@keyframes pulse { 50% { opacity: .45; } }
.track-items { font-size: .88rem; color: var(--muted); }
.track-items div { display: flex; justify-content: space-between; padding: 2px 0; }
.track-msg { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; font-weight: 700; margin-bottom: 10px; }
.track-msg.ready { background: rgba(47,138,87,.12); color: var(--ok); }
.track-msg.cancel { background: rgba(201,58,50,.1); color: var(--danger); }
.done-wrap { text-align: center; padding: 10px 0 4px; }
.done-check { width: 76px; height: 76px; border-radius: 50%; margin: 6px auto 12px; display: grid; place-items: center; background: var(--ok); color: #fff; animation: pop .45s cubic-bezier(.2,.9,.3,1.4); }
.done-check .ic { width: 38px; height: 38px; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.done-wrap h4 { margin: 0 0 4px; font-family: var(--f-display); font-size: 1.5rem; }
.code { display: inline-block; margin-top: 8px; padding: 6px 14px; border-radius: 10px; background: var(--surface2); font-weight: 800; letter-spacing: .12em; }

html[dir="rtl"] .cartbar { text-align: right; }