/* =====================================================================
   مطعم الشاورما التركي — Turkish Shawarma
   يعتمد على الخصائص المنطقية (inline/block) ليعمل تلقائيًا في RTL و LTR
   ===================================================================== */
:root {
  --black: #141414;
  --ink: #1f1d1b;
  --coal: #2a2725;
  --cream: #fbefd9;
  --cream-2: #f3e2c2;
  --orange: #c8501e;
  --orange-2: #e2682d;
  --yellow: #ffc61a;
  --muted: #7a6f62;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(20, 20, 20, .12);
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
html[lang="ar"] body { font-family: "Cairo", "Tajawal", system-ui, sans-serif; }
html[lang="en"] body { font-family: "Poppins", "Inter", system-ui, sans-serif; }
body.no-scroll { overflow: hidden; }
h1, h2, h3, h4, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
[hidden] { display: none !important; }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }

/* ---------- الأزرار ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 22px; border-radius: 999px;
  font-weight: 700; transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 8px 20px rgba(200, 80, 30, .35); }
.btn-primary:hover { background: var(--orange-2); }
.btn-yellow { background: var(--yellow); color: var(--black); }
.btn-wa { background: #1faa59; color: #fff; }
.btn-ghost { border: 2px solid currentColor; }

/* ---------- الشريط العلوي ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(20, 20, 20, .94); backdrop-filter: blur(8px); color: var(--cream);
}
.topbar .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 1.05rem; white-space: nowrap; }
.logo svg { width: 38px; height: 38px; flex: none; }
.nav { display: flex; gap: 22px; margin-inline-start: auto; font-weight: 600; }
.nav a { opacity: .85; }
.nav a:hover { opacity: 1; color: var(--yellow); }
.lang {
  display: inline-flex; padding: 3px; border-radius: 999px; background: var(--coal);
  margin-inline-start: 8px; flex: none;
}
.lang button { padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: .85rem; color: var(--cream); }
.lang button:first-child { font-family: "Cairo", sans-serif; }
.lang button:last-child { font-family: "Poppins", sans-serif; }
.lang button.is-active { background: var(--yellow); color: var(--black); }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--black); color: var(--cream); overflow: hidden; isolation: isolate; }
.hero::before, .hero::after { content: ""; position: absolute; z-index: -1; }
.hero::before {
  inset-block: 0; inset-inline-end: -12%; width: 52%;
  background: var(--orange); transform: skewX(-14deg);
  box-shadow: -26px 0 0 var(--yellow);
}
[dir="rtl"] .hero::before { transform: skewX(14deg); box-shadow: 26px 0 0 var(--yellow); }
.hero::after {
  inset-inline: 0; bottom: -1px; height: 70px; background: var(--cream);
  clip-path: polygon(0 100%, 100% 100%, 100% 30%, 0 85%);
}
[dir="rtl"] .hero::after { clip-path: polygon(0 100%, 100% 100%, 100% 85%, 0 30%); }
.hero .wrap {
  display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 32px;
  padding-block: 72px 130px;
}
.kicker { color: var(--orange-2); font-weight: 800; font-size: 1.5rem; }
.hero h1 { font-size: clamp(2.6rem, 7vw, 5rem); line-height: 1.15; font-weight: 900; }
.hero .sub { color: var(--yellow); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-block: 8px 18px; }
html[lang="en"] .hero .sub { letter-spacing: 0; font-family: "Cairo", sans-serif; }
.hero .tag {
  display: inline-block; padding: 6px 16px; border-radius: 999px;
  background: var(--coal); color: var(--cream-2); font-weight: 600; font-size: .9rem; margin-bottom: 14px;
}
.hero .lead { max-width: 46ch; opacity: .9; font-size: 1.08rem; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-art { display: grid; place-items: center; }
.hero-art .plate {
  width: min(320px, 70vw); aspect-ratio: 1; border-radius: 50%;
  background: var(--cream); display: grid; place-items: center;
  box-shadow: 0 0 0 12px rgba(251, 239, 217, .18), 0 30px 60px rgba(0, 0, 0, .4);
}
.hero-art svg { width: 62%; height: auto; }

/* ---------- الأقسام ---------- */
.section { padding-block: 64px; }
.section-head { margin-bottom: 28px; }
.section-head h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 900; display: inline-block; position: relative; }
.section-head h2::after {
  content: ""; display: block; height: 6px; width: 64px; margin-top: 6px;
  background: var(--orange); border-radius: 6px; transform: skewX(-20deg);
}
.section-head p { color: var(--muted); margin-top: 8px; }

.about { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; }
.about p { font-size: 1.08rem; max-width: 62ch; }
.feats { display: grid; gap: 12px; padding: 0; margin: 0; list-style: none; }
.feats li {
  display: flex; align-items: center; gap: 12px; padding: 14px 18px;
  background: #fff; border-radius: var(--radius); font-weight: 700; box-shadow: var(--shadow);
  border-inline-start: 6px solid var(--orange);
}
.feats span { font-size: 1.5rem; }

/* ---------- المنيو ---------- */
.menu { background: var(--ink); color: var(--cream); }
.menu .section-head p { color: #b9ad9c; }
.tools { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.search { flex: 1 1 260px; position: relative; }
.search input {
  width: 100%; min-height: 50px; padding-block: 10px; padding-inline: 46px 18px;
  border-radius: 999px; border: 2px solid transparent; background: var(--coal);
  color: var(--cream); font: inherit;
}
.search input::placeholder { color: #9b8f80; }
.search input:focus { outline: none; border-color: var(--yellow); }
.search::before {
  content: "🔍"; position: absolute; inset-inline-start: 16px; top: 50%; transform: translateY(-50%);
  font-size: 1rem; pointer-events: none;
}
.filters {
  display: flex; gap: 8px; overflow-x: auto; padding-bottom: 10px; margin-bottom: 18px;
  position: sticky; top: 64px; z-index: 5; background: var(--ink); padding-top: 8px;
  scrollbar-width: thin;
}
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px; border-radius: 999px; background: var(--coal); color: var(--cream);
  font-weight: 700; font-size: .92rem; white-space: nowrap; border: 2px solid transparent;
}
.chip:hover { border-color: var(--orange); }
.chip.is-active { background: var(--yellow); color: var(--black); }

.cat { margin-top: 30px; }
.cat-title {
  display: flex; align-items: center; gap: 10px; font-size: 1.35rem; font-weight: 900;
  margin-bottom: 14px; padding: 8px 18px; background: var(--orange); color: #fff;
  border-radius: 12px; width: fit-content;
}
.cat-title i {
  font-style: normal; font-size: .8rem; background: var(--black); color: var(--yellow);
  border-radius: 999px; padding: 1px 10px;
}
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.card {
  display: flex; gap: 14px; padding: 12px; background: var(--cream); color: var(--ink);
  border-radius: var(--radius); box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
}
.thumb {
  flex: none; width: 84px; height: 84px; border-radius: 14px; overflow: hidden;
  display: grid; place-items: center;
  background: repeating-linear-gradient(135deg, var(--cream-2) 0 10px, #ecd6ad 10px 20px);
  border: 2px dashed rgba(200, 80, 30, .45);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:has(img) { border: 0; }
.thumb-icon { font-size: 2.1rem; }
.card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.card h4 { font-size: 1.05rem; font-weight: 800; line-height: 1.35; }
.meta { display: flex; flex-wrap: wrap; gap: 6px; font-size: .78rem; min-height: 4px; }
.meta .note { background: var(--cream-2); padding: 1px 10px; border-radius: 999px; font-weight: 600; }
.meta .cal { color: var(--orange); font-weight: 700; }
.buy { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.price { font-size: 1.4rem; font-weight: 900; color: var(--orange); }
.price small, .size-price small { font-size: .65em; font-weight: 700; color: var(--muted); }
.add-btn {
  min-height: 40px; padding: 6px 16px; border-radius: 999px;
  background: var(--black); color: var(--yellow); font-weight: 800; font-size: .9rem;
}
.add-btn:hover { background: var(--orange); color: #fff; }
.sizes { display: grid; gap: 6px; margin-top: auto; }
.size-btn {
  display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 4px 6px 4px 12px;
  padding-inline: 12px 6px; border-radius: 12px; background: #fff; border: 1.5px solid var(--cream-2);
  text-align: start; transition: border-color .15s, background .15s;
}
.size-btn:hover { border-color: var(--orange); background: #fff7ea; }
.size-name { flex: 1; font-weight: 700; font-size: .9rem; }
.size-price { font-weight: 900; color: var(--orange); }
.plus {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--black); color: var(--yellow); font-weight: 900; flex: none;
}
.empty { padding: 28px; text-align: center; color: #b9ad9c; }
.menu-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 36px; color: #b9ad9c; }

/* ---------- الموقع والتواصل ---------- */
.loc { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; }
.panel { background: #fff; border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.panel h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: 6px; }
.addr { font-size: 1.1rem; font-weight: 600; margin-bottom: 6px; }
.phone { font-size: 1.7rem; font-weight: 900; color: var(--orange); direction: ltr; unicode-bidi: isolate; display: inline-block; }
.panel .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.qr-panel { text-align: center; background: var(--black); color: var(--cream); }
.qr-box { display: inline-block; padding: 12px; background: #fff; border-radius: 14px; margin-top: 12px; }
.qr-box img, .qr-box canvas { display: block; }
.qr-fallback { color: var(--ink); font-size: .85rem; max-width: 180px; }

.footer { background: var(--black); color: #b9ad9c; padding-block: 26px; text-align: center; font-size: .9rem; }
.footer strong { color: var(--cream); }

/* ---------- السلة ---------- */
.cart-fab {
  position: fixed; inset-inline: 16px; bottom: 16px; z-index: 40; margin-inline: auto; max-width: 440px;
  display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 20px;
  border-radius: 999px; background: var(--yellow); color: var(--black); font-weight: 800;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .35);
}
.cart-fab b { background: var(--black); color: var(--yellow); border-radius: 999px; min-width: 30px; padding: 2px 8px; text-align: center; }
.cart-fab span:last-child { margin-inline-start: auto; }
.backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, .55); z-index: 45; }
.cart {
  position: fixed; inset-block: 0; inset-inline-end: 0; z-index: 50; width: min(420px, 100%);
  background: var(--cream); display: flex; flex-direction: column;
  transform: translateX(105%); transition: transform .25s ease; visibility: hidden;
}
[dir="rtl"] .cart { transform: translateX(-105%); }
.cart.open { transform: none; visibility: visible; }
.cart header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; background: var(--black); color: var(--cream); }
.cart header h3 { font-weight: 900; }
.cart header button { font-size: 1.6rem; line-height: 1; padding: 4px 10px; color: var(--cream); }
.cart ul { flex: 1; overflow: auto; list-style: none; margin: 0; padding: 12px 20px; }
.cart li { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px; padding-block: 12px; border-bottom: 1px dashed #d9c7a4; }
.cart li.empty { display: block; border: 0; color: var(--muted); }
.line-name { font-weight: 700; }
.line-name small { display: block; color: var(--muted); font-weight: 600; }
.qty { display: flex; align-items: center; gap: 8px; }
.qty button { width: 32px; height: 32px; border-radius: 50%; background: var(--black); color: var(--yellow); font-weight: 900; }
.line-sum { font-weight: 800; color: var(--orange); min-width: 64px; text-align: end; }
.cart footer { padding: 16px 20px; border-top: 2px solid var(--cream-2); display: grid; gap: 10px; }
.total { display: flex; justify-content: space-between; font-size: 1.25rem; font-weight: 900; }
.link-btn { color: var(--muted); font-weight: 700; text-decoration: underline; padding: 6px; }
.toast {
  position: fixed; top: 78px; left: 50%; transform: translate(-50%, -20px); z-index: 60;
  background: var(--black); color: var(--yellow); padding: 10px 20px; border-radius: 999px;
  font-weight: 700; opacity: 0; pointer-events: none; transition: .2s; white-space: nowrap;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- التجاوب ---------- */
@media (max-width: 860px) {
  .nav { display: none; }
  .lang { margin-inline-start: auto; }
  .hero .wrap { grid-template-columns: 1fr; padding-block: 44px 110px; }
  .hero::before { inset-inline-end: -60%; width: 90%; opacity: .9; }
  .hero-art { order: -1; }
  .hero-art .plate { width: 170px; }
  .about, .loc { grid-template-columns: 1fr; }
  .section { padding-block: 44px; }
}
@media (max-width: 420px) {
  .logo span { display: none; }
  .hero .actions .btn { flex: 1 1 100%; }
  .grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- الطباعة ---------- */
@media print {
  .topbar, .hero .actions, .hero-art, .tools, .filters, .cart, .cart-fab, .backdrop, .toast,
  .add-btn, .plus, .thumb, .menu-foot .btn, #about, .loc .actions, .qr-panel { display: none !important; }
  body, .menu, .hero { background: #fff !important; color: #000 !important; }
  .hero::before, .hero::after { display: none; }
  .hero .wrap { padding-block: 0 8px; display: block; }
  .hero h1 { font-size: 26pt; }
  .hero .tag, .hero .lead { display: none; }
  .section { padding-block: 8px; }
  .cat { break-inside: avoid; margin-top: 12px; }
  .cat-title { background: none; color: #000; border-bottom: 2px solid #000; border-radius: 0; padding: 0; width: auto; }
  .cat-title i { display: none; }
  .grid { grid-template-columns: 1fr 1fr; gap: 2px 24px; }
  .card { box-shadow: none; padding: 3px 0; border-bottom: 1px dotted #999; border-radius: 0; background: none; }
  .card-body { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 6px; }
  .card h4 { font-size: 10.5pt; flex: 1; }
  .sizes { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
  .size-btn { border: 0; padding: 0; min-height: 0; background: none; gap: 4px; }
  .size-name, .price, .size-price { font-size: 10pt; color: #000; }
  .loc { display: block; }
  .panel { box-shadow: none; padding: 0; }
}

/* =====================================================================
   display.html — شاشة المطعم 16:9 (مسرح ثابت 1920×1080 يتم تحجيمه)
   ===================================================================== */
body[data-page="display"] { background: #000; overflow: hidden; height: 100vh; }
.stage {
  position: fixed; top: 50%; left: 50%; width: 1920px; height: 1080px;
  transform-origin: center; background: var(--black); color: var(--cream);
  display: grid; grid-template-columns: 1fr 400px; overflow: hidden;
}
.d-main { position: relative; padding: 36px 44px 30px; }
.slide {
  position: absolute; inset: 36px 44px 30px; display: grid; gap: 36px;
  opacity: 0; visibility: hidden; transition: opacity .8s;
}
.slide.is-active { opacity: 1; visibility: visible; }
#slide-food { grid-template-columns: 1fr .92fr 1.3fr; }
html[lang="en"] .d-block li { font-size: 24px; }
html[lang="en"] .d-table { font-size: 25px; }
#slide-juices { grid-template-columns: 1fr 1fr; }
.d-col { display: flex; flex-direction: column; gap: 26px; min-width: 0; }
.d-block h2 { margin-bottom: 12px; }
.d-block h2 span {
  display: inline-block; background: var(--orange); color: #fff; font-size: 32px; font-weight: 900;
  padding: 4px 26px; border-radius: 10px; transform: skewX(-8deg);
}
.d-block ul { list-style: none; margin: 0; padding: 0; }
.d-block li { display: flex; align-items: center; gap: 12px; min-height: 60px; font-size: 28px; font-weight: 700; }
.d-name { flex: 0 1 auto; min-width: 0; line-height: 1.15; }
.d-name small { font-size: 19px; font-weight: 600; color: var(--cream-2); white-space: nowrap; }
.d-dots { flex: 1; border-bottom: 3px dotted rgba(251, 239, 217, .25); min-width: 8px; }
.d-prices { display: flex; gap: 10px; flex: none; }
.d-size { display: inline-flex; align-items: center; gap: 5px; }
.d-size em { font-style: normal; font-size: 18px; color: var(--cream-2); font-weight: 600; white-space: nowrap; }
.d-size b, .d-table b {
  display: inline-block; min-width: 52px; padding: 0 8px; text-align: center;
  background: var(--yellow); color: var(--black); border-radius: 8px; font-size: 28px; font-weight: 900; line-height: 1.5;
}
.d-table { width: 100%; border-collapse: collapse; font-size: 27px; font-weight: 700; }
.d-table th { font-size: 20px; color: var(--yellow); padding-bottom: 8px; font-weight: 700; }
.d-table td { height: 55px; text-align: center; border-bottom: 2px dotted rgba(251, 239, 217, .16); }
.d-table td:first-child { text-align: start; white-space: nowrap; }
.d-table td small { font-size: 17px; color: var(--orange-2); margin-inline-start: 8px; }
.d-table td:not(:first-child) { width: 96px; color: rgba(251, 239, 217, .3); }

.d-side {
  background: var(--cream); color: var(--ink); padding: 40px 30px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 14px; position: relative;
}
.d-side::before {
  content: ""; position: absolute; inset-block: 0; inset-inline-start: -40px; width: 80px;
  background: var(--orange); transform: skewX(-4deg); z-index: 0; box-shadow: -14px 0 0 var(--yellow);
}
[dir="rtl"] .d-side::before { transform: skewX(4deg); box-shadow: 14px 0 0 var(--yellow); }
.d-side > * { position: relative; z-index: 1; }
.d-side svg { width: 170px; height: auto; }
.d-side .kicker { font-size: 34px; color: var(--orange); line-height: 1; }
.d-side h1 { font-size: 54px; font-weight: 900; line-height: 1.15; }
.d-side .sub { font-weight: 700; color: var(--orange); font-size: 22px; letter-spacing: .08em; }
.d-contact { margin-top: auto; display: grid; gap: 6px; justify-items: center; }
.d-contact p { font-size: 22px; font-weight: 700; }
.d-contact .phone { font-size: 44px; }
.d-contact .qr-box { margin: 6px 0; border: 3px solid var(--black); }
.d-contact small { font-size: 16px; color: var(--muted); }
