@import url("fonts.css");

/* ============================================================================
   «المنيو الذكي», the phone menu.
   This demo shop is Sham Digital's own (مأكولات شام ديجيتال), so it carries the
   agency's Editorial identity: cream ground, ink content, vermilion as the only
   saturated colour, hairline rules, no shadows.
   A real client's menu gets that client's colours instead, see client-theming.
   ========================================================================== */

:root {
  --cream:     #F4F1EA;
  --cream-deep:#EDE8DD;
  --white:     #FFFFFF;
  --ink:       #1C1B18;
  --vermilion: #D64B2A;
  --muted:     #6E6759;
  --muted-light:#8A8578;
  --sand:      #B4AC9C;
  --hairline:  #D8D2C4;
  --green:     #128C4A;

  --f-body:    'almarai', 'Segoe UI', Tahoma, sans-serif;
  --f-display: 'Noto Kufi Arabic', 'almarai', Tahoma, sans-serif;
  --f-num:     'Changa', 'almarai', Tahoma, sans-serif;
  --f-logo:    'Arslan Wessam B', 'Noto Kufi Arabic', Tahoma, sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--f-body);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--vermilion); outline-offset: 3px; }

.wrap { width: 100%; max-width: 660px; margin-inline: auto; padding-inline: 18px; }

/* ---------------- header ---------------- */
.top { border-bottom: 1.5px solid var(--ink); padding: 20px 0 18px; text-align: center; }
.logotype { display: inline-flex; align-items: center; gap: 6px; --logo-h: 26px; }
.logotype .mark { width: calc(var(--logo-h) * 1.38); height: var(--logo-h); flex: 0 0 auto; }
.logotype .mark svg { width: 100%; height: 100%; }
.logotype .name {
  font-family: var(--f-logo); font-size: calc(var(--logo-h) * .95);
  line-height: 1; margin-top: calc(var(--logo-h) * -.09);
}
.dd { font-size: 1.18em; position: relative; top: -.16em; display: inline-block; margin-inline-end: -.05em; }

.brand {
  font-family: var(--f-display); font-weight: 800;
  font-size: clamp(21px, 5.4vw, 27px);
  line-height: 1.45; margin-top: 10px;
}
.brand .dot { color: var(--vermilion); }
.tagline { color: var(--muted); font-size: 13.5px; }
.rate-chip {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 12px;
  border: 1px solid var(--hairline); border-radius: 999px;
  padding: 5px 15px; font-size: 12.5px; color: var(--muted);
  background: var(--white);
}
.rate-chip b { font-family: var(--f-num); font-weight: 800; color: var(--vermilion); direction: ltr; }

/* ---------------- category chips ---------------- */
.cats {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--cream) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  padding: 11px 18px;
}
.cats::-webkit-scrollbar { display: none; }
.cats a {
  flex: 0 0 auto;
  border: 1px solid var(--hairline); border-radius: 999px;
  padding: 8px 18px;            /* ≥44px tap target with the font's line box */
  font-size: 14.5px; font-weight: 700; color: var(--muted);
  transition: color .2s, border-color .2s, background .2s;
}
.cats a.on { color: var(--cream); background: var(--ink); border-color: var(--ink); }

/* ---------------- sections ---------------- */
.sec { padding-top: 30px; }
.sec h2 {
  font-family: var(--f-display); font-weight: 800; font-size: 19px;
  display: flex; align-items: center; gap: 13px; margin-bottom: 12px;
}
.sec h2::after { content: ""; flex: 1; height: 1.5px; background: var(--ink); }

/* featured items, the few dishes the shop draws */
/* auto-fit so two drawn dishes fill the row instead of leaving an empty track */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 6px; }
.card {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  overflow: hidden;
}
.card .pic {
  background: var(--cream-deep);
  border-bottom: 1px solid var(--hairline);
  padding: 14px 10px;
}
.card .pic svg { width: 100%; height: auto; max-height: 84px; }
/* a cut-out photo gets more room than a drawing needs, and `contain` keeps a
   tall glass and a wide platter the same visual weight in the same grid */
.card .pic img { width: 100%; height: 116px; object-fit: contain; }
.card .txt { padding: 11px 13px 13px; }
.card .n { font-weight: 700; font-size: 15px; line-height: 1.45; }
.card .d { color: var(--muted); font-size: 12.5px; line-height: 1.6; margin-top: 1px; }
.card .p {
  font-family: var(--f-num); font-weight: 800; font-size: 16px;
  color: var(--vermilion); direction: ltr; margin-top: 7px;
}
.card .p small { font-family: var(--f-body); font-weight: 400; font-size: 11px; color: var(--muted); margin-inline-start: 3px; }

/* the rest, compact rows */
.row {
  display: grid; grid-template-columns: 1fr auto;
  align-items: baseline; gap: 4px 12px;
  padding: 12px 0; border-bottom: 1px solid var(--hairline);
}
.row:last-child { border-bottom: 0; }
.row .n { font-weight: 700; font-size: 15.5px; }
.row .d { grid-column: 1 / -1; grid-row: 2; color: var(--muted); font-size: 12.5px; line-height: 1.55; margin-top: -5px; }
.row .p {
  font-family: var(--f-num); font-weight: 800; font-size: 16px;
  color: var(--ink); direction: ltr; white-space: nowrap;
}
.row .p small { font-family: var(--f-body); font-weight: 400; font-size: 11px; color: var(--muted); margin-inline-start: 3px; }

/* ---------------- order bar ---------------- */
.order {
  position: sticky; bottom: 44px;
  margin-top: 30px; padding: 14px 0;
  background: linear-gradient(to top, var(--cream) 72%, transparent);
}
.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%;
  background: var(--vermilion); color: var(--cream);
  font-family: var(--f-body); font-weight: 700; font-size: 16.5px;
  padding: 15px; border: 1.5px solid var(--vermilion); border-radius: 12px;
  cursor: pointer;
}
.btn svg { width: 20px; height: 20px; }
.btn--ghost {
  background: transparent; color: var(--ink); border-color: var(--ink);
  margin-top: 10px; font-size: 15px; padding: 13px;
}

/* ---------------- the demo strip ---------------- */
/* Clearly a sales affordance, a real shop's menu never shows this; the owner
   changes the rate from the admin page instead. */
.demo-bar {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 40;
  background: var(--ink); color: var(--cream);
  padding: 8px 16px calc(8px + env(safe-area-inset-bottom));
  transform: translateY(calc(100% - 42px));
  transition: transform .28s ease;
}
.demo-bar.open { transform: translateY(0); }
.demo-handle {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 34px; width: 100%; background: none; border: 0; cursor: pointer;
  color: var(--cream); font-family: var(--f-body); font-weight: 700; font-size: 13px;
}
.demo-handle svg { width: 14px; height: 14px; transition: transform .28s ease; }
.demo-bar.open .demo-handle svg { transform: rotate(180deg); }
.demo-body { max-width: 660px; margin-inline: auto; padding: 4px 2px 10px; }
.demo-body p { font-size: 12.5px; color: #C9C3B5; line-height: 1.7; }
.rate-row { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.rate-row label { font-weight: 700; font-size: 14px; white-space: nowrap; }
.rate-row input[type="range"] { flex: 1; accent-color: var(--vermilion); min-width: 0; }
.rate-out {
  font-family: var(--f-num); font-weight: 800; font-size: 17px;
  color: var(--vermilion); direction: ltr; min-width: 6.5ch; text-align: center;
}

/* ---------------- footer ---------------- */
.foot { text-align: center; color: var(--muted); font-size: 12.5px; padding: 24px 0 110px; border-top: 1px solid var(--hairline); margin-top: 26px; }
.foot .by { margin-top: 5px; }
.foot .by a { color: var(--vermilion); font-weight: 700; }

@media (prefers-reduced-motion: reduce) { * { transition-duration: .01ms !important; } }
