/* Karaz — a company's public store. Phone first, Arabic first; the company's name and logo
   lead, Karaz's cherry only on the buttons. Fonts shipped with Karaz (OFL), no third party. */
@font-face { font-family: 'Karaz Head'; font-weight: 600; font-display: swap; src: url(/assets/fonts/cairo-600-arabic.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: 'Karaz Head'; font-weight: 600; font-display: swap; src: url(/assets/fonts/cairo-600-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: 'Karaz Body'; font-weight: 400; font-display: swap; src: url(/assets/fonts/plex-arabic-400.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: 'Karaz Body'; font-weight: 600 700; font-display: swap; src: url(/assets/fonts/plex-arabic-600.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: 'Karaz Body'; font-weight: 100 700; font-display: swap; src: url(/assets/fonts/plex-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F; }

:root {
  --ink: #1c1a24; --muted: #6b6574; --line: #e7e3ea; --bg: #f6f5f7; --surface: #fff;
  --cherry: #a3142f; --cherry-deep: #7a0e22; --green: #1f7a4d; --green-bg: #e6f3ec; --red-bg: #fbe9ec; --amber: #8a5a00; --amber-bg: #fff4dc;
  --r: 14px; --r-s: 10px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 'Karaz Body', system-ui, sans-serif; }
h1, h2 { font-family: 'Karaz Head', 'Karaz Body', sans-serif; font-weight: 600; margin: 0; }
button, input, select { font: inherit; color: inherit; }
a { color: var(--cherry); }
bdi { unicode-bidi: isolate; }
#shop { max-width: 760px; margin: 0 auto; padding: 0 16px 112px; }
.sh-loading, .sh-msg { text-align: center; padding: 25vh 0 0; color: var(--muted); }
.sh-msg h1 { color: var(--ink); margin-bottom: .4rem; }
.sh-msg .sh-go { margin-top: 1.2rem; }

/* the company leads */
.sh-head { display: flex; align-items: center; gap: .9rem; padding: 1.4rem 0 1rem; }
.sh-logo { width: 64px; height: 64px; border-radius: 18px; object-fit: cover; background: var(--surface); border: 1px solid var(--line); flex: none; }
.sh-logo.none { display: grid; place-items: center; font: 600 1.6rem 'Karaz Head', sans-serif; color: var(--cherry); }
.sh-title { flex: 1; min-width: 0; }
.sh-title h1 { font-size: 1.45rem; line-height: 1.25; }
.sh-state { margin: .2rem 0 0; color: var(--muted); font-size: .88rem; }
.sh-lang { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: .35rem .8rem; cursor: pointer; font-size: .85rem; }
.sh-chip { display: inline-block; border-radius: 999px; padding: .05rem .6rem; font-size: .8rem; font-weight: 600; }
.sh-chip.on { background: var(--green-bg); color: var(--green); }
.sh-chip.off { background: var(--red-bg); color: var(--cherry-deep); }
.sh-last { margin: 0 0 .8rem; }

/* the store's front card (owner 11-15): who, whether it is open, today's hours, how orders are handed over */
.sh-hero { background: var(--surface); margin: 0 -16px 1rem; padding: 0 16px 1.1rem; border-radius: 0 0 24px 24px;
  box-shadow: 0 1px 2px rgba(28, 26, 36, .05); border-top: 4px solid var(--cherry); }
.sh-hero .sh-head { padding-bottom: .7rem; }
.sh-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.sh-facts li { background: var(--bg); border-radius: 999px; padding: .3rem .8rem; font-size: .86rem; color: var(--muted); }
@media (min-width: 760px) { .sh-hero { margin-inline: 0; border-radius: 0 0 24px 24px; padding-inline: 1.4rem; } }

/* search and categories stay at the top while the items scroll */
.sh-tools { position: sticky; top: 0; z-index: 2; background: var(--bg); padding: .2rem 0 .1rem; }
.sh-search { width: 100%; box-sizing: border-box; border: 1px solid var(--line); background: var(--surface); border-radius: 999px;
  padding: .6rem 1rem; min-height: 44px; font: inherit; margin-bottom: .6rem; }
.sh-search:focus-visible { outline: 2px solid var(--cherry); outline-offset: 1px; }
.sh-none { color: var(--muted); text-align: center; padding: 2rem 0; }
.sh-items.empty { display: block; }
.sh-last a { font-weight: 600; text-decoration: none; }

.sh-cats { display: flex; gap: .4rem; overflow-x: auto; padding: .2rem 0 .8rem; scrollbar-width: none; }
.sh-pill { flex: none; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: .45rem 1rem; min-height: 40px; cursor: pointer; }
.sh-pill.on { background: var(--ink); border-color: var(--ink); color: #fff; }

.sh-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
@media (min-width: 560px) { .sh-items { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) { #shop { max-width: 960px; } .sh-items { grid-template-columns: repeat(4, minmax(0, 1fr)); } .sh-go { max-width: 928px; } }
.sh-item { background: var(--surface); border-radius: var(--r); padding: .6rem; display: grid; gap: .35rem; align-content: start; box-shadow: 0 1px 2px rgba(28, 26, 36, .05); }
.sh-item img, .sh-noimg { width: 100%; aspect-ratio: 1; border-radius: var(--r-s); object-fit: cover; background: var(--bg); display: block; }
/* no picture: the item's first letter on the store's tint — never an empty grey box */
.sh-noimg { display: grid; place-items: center; background: #fbf3f5; color: rgba(163, 20, 47, .55); font: 600 2.2rem 'Karaz Head', sans-serif; }
.sh-item.out img { filter: grayscale(1); opacity: .6; }
.sh-iname { font-weight: 600; line-height: 1.35; }
.sh-irow { display: flex; justify-content: space-between; align-items: center; gap: .4rem; flex-wrap: wrap; }
.sh-price { color: var(--muted); font-size: .92rem; }
.sh-add { border: 0; background: var(--cherry); color: #fff; border-radius: 999px; padding: .35rem .95rem; min-height: 36px; cursor: pointer; font-weight: 600; }
.sh-step { display: inline-flex; align-items: center; gap: .15rem; border: 1px solid var(--line); border-radius: 999px; }
.sh-step button { border: 0; background: none; width: 36px; height: 36px; font-size: 1.15rem; cursor: pointer; color: var(--cherry); }
.sh-step b { min-width: 1.4rem; text-align: center; }

.sh-bar { position: fixed; inset-inline: 0; bottom: 0; padding: .7rem 16px calc(.7rem + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--bg) 70%, rgba(246, 245, 247, 0)); }
.sh-go { display: flex; justify-content: space-between; align-items: center; gap: 1rem; width: 100%; max-width: 728px; margin: 0 auto; border: 0; border-radius: var(--r);
  background: var(--cherry); color: #fff; padding: .9rem 1.1rem; font-weight: 700; cursor: pointer; text-decoration: none; min-height: 52px; }
.sh-go.wide { justify-content: center; }
.sh-go:disabled { background: #c9c3cc; cursor: not-allowed; }
a.sh-go { justify-content: center; }
.sh-ghost { display: block; text-align: center; padding: .8rem; text-decoration: none; font-weight: 600; }
.sh-foot { text-align: center; color: var(--muted); font-size: .8rem; margin: 2rem 0 0; }

/* the order form */
.sh-bhead { display: flex; align-items: center; gap: .8rem; padding: 1.2rem 0 .8rem; }
.sh-back { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: .35rem .9rem; cursor: pointer; }
.sh-form { display: grid; gap: .9rem; }
.sh-form fieldset { border: 0; margin: 0; padding: .9rem; background: var(--surface); border-radius: var(--r); display: grid; gap: .7rem; }
.sh-form legend { float: inline-start; width: 100%; font-weight: 600; padding: 0; margin-bottom: .1rem; }
.sh-f { display: grid; gap: .25rem; font-size: .9rem; color: var(--muted); }
.sh-f input, .sh-f select { border: 1px solid var(--line); border-radius: var(--r-s); padding: .7rem .8rem; min-height: 46px; background: var(--surface); color: var(--ink); width: 100%; }
.sh-f input[aria-invalid="true"] { border-color: var(--cherry); box-shadow: 0 0 0 1px var(--cherry); }
.sh-two { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.sh-tel { display: flex; align-items: center; gap: .4rem; direction: ltr; }
.sh-tel bdi { color: var(--muted); }
.sh-seg { display: flex; gap: .4rem; }
.sh-seg label { flex: 1; }
.sh-seg input { position: absolute; opacity: 0; pointer-events: none; }
.sh-seg span { display: block; text-align: center; border: 1px solid var(--line); border-radius: var(--r-s); padding: .6rem; cursor: pointer; font-weight: 600; }
.sh-seg input:checked + span { border-color: var(--ink); background: var(--ink); color: #fff; }
.sh-seg input:focus-visible + span { outline: 2px solid var(--cherry); outline-offset: 2px; }
.sh-lines { list-style: none; margin: 0; padding: .4rem .9rem; background: var(--surface); border-radius: var(--r); }
.sh-lines li { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .55rem 0; border-bottom: 1px dashed var(--line); }
.sh-lines li:last-child { border-bottom: 0; }
.sh-lines li > span:first-child { flex: 1; }
.sh-sum { margin: 0; padding: .4rem .9rem; background: var(--surface); border-radius: var(--r); }
.sh-sum div { display: flex; justify-content: space-between; padding: .35rem 0; }
.sh-sum dt { color: var(--muted); }
.sh-sum dd { margin: 0; }
.sh-total { font-weight: 700; }
.sh-sum .sh-total dt { color: var(--ink); }
.sh-sum .sh-off dt, .sh-sum .sh-off dd, .sh-lines .sh-off { color: var(--green); }
.sh-promo .sh-f { margin-bottom: .25rem; }
.sh-promo-row { display: grid; grid-template-columns: 1fr auto; gap: .5rem; align-items: stretch; }
.sh-promo-row input, .sh-promo-on { border: 1px solid var(--line); border-radius: var(--r-s); padding: .7rem .8rem; min-height: 46px; background: var(--surface); color: var(--ink); width: 100%; text-transform: uppercase; }
.sh-promo-on { display: flex; align-items: center; border-color: var(--green); color: var(--green); font-weight: 600; }
.sh-promo-row button { min-width: 5.5rem; min-height: 46px; }
.sh-promo .sh-warn { margin-top: .5rem; }
.sh-muted { color: var(--muted); font-size: .9rem; margin: 0; }
.sh-warn { background: var(--amber-bg); color: var(--amber); border-radius: var(--r-s); padding: .6rem .8rem; margin: 0; }
/* Back from the gateway, still unpaid (owner 11-14): one card first on the page — a mark, a title, why, the pay button. */
.sh-fail { background: var(--surface); border: 1.5px solid var(--cherry); border-radius: var(--r); padding: 1rem 1.1rem 1.1rem; display: grid; gap: .35rem; }
.sh-fail p { margin: 0; }
.sh-fail-t { display: flex; align-items: center; gap: .55rem; font: 600 1.2rem 'Karaz Head', sans-serif; color: var(--cherry-deep); }
.sh-fail-mark { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--red-bg); color: var(--cherry); font: 700 1rem 'Karaz Body', sans-serif; flex: none; }
.sh-fail .sh-go { margin-top: .6rem; }
/* «تم الدفع · المبلغ»: the same band as a warning, in green, with a tick — a paid order says so in a line of its own. */
.sh-ok { background: var(--green-bg); color: var(--green); border-radius: var(--r-s); padding: .7rem .9rem; margin: 0; font-weight: 700; font-size: 1.05rem; }
.sh-ok::before { content: '✓'; margin-inline-end: .5rem; }

/* the order's page */
.sh-status { display: grid; gap: .9rem; padding-top: .4rem; }
/* The pay page (an invoice's payment link): the balance stands out. */
.sh-pay .sh-sum dd { font-size: 1.6rem; font-weight: 600; }
.sh-pay .sh-go { margin-top: 16px; }
.sh-big { font: 600 1.6rem 'Karaz Head', sans-serif; margin: 0; }
.sh-no { margin: -.6rem 0 0; color: var(--muted); }
.sh-steps { list-style: none; margin: 0; padding: .4rem .9rem; background: var(--surface); border-radius: var(--r); }
.sh-steps li { padding-block: .45rem; padding-inline-start: 1.6rem; position: relative; color: var(--muted); }
.sh-steps li::before { content: ''; position: absolute; inset-inline-start: 0; top: .95rem; width: .7rem; height: .7rem; border-radius: 50%; border: 2px solid var(--line); }
.sh-steps li.done { color: var(--ink); }
.sh-steps li.done::before { background: var(--green); border-color: var(--green); }
.sh-steps li.now { color: var(--ink); font-weight: 700; }
.sh-steps li.now::before { border-color: var(--cherry); background: var(--cherry); }
:focus-visible { outline: 2px solid var(--cherry); outline-offset: 2px; }
@media (prefers-reduced-motion: no-preference) { .sh-go, .sh-add { transition: background .15s; } }

/* The public page (booking.sql): landing, booking, a booking's link, privacy, this device's bookings. */
.sh-land-hero { display: grid; gap: 1rem; align-items: center; padding: .4rem 0 1rem; }
.sh-land-hero h2 { font-family: 'Karaz Head', 'Karaz Body', sans-serif; font-size: 1.6rem; margin: 0 0 .4rem; }
.sh-land-hero p, .sh-land-about p, .sh-land-svc p { white-space: pre-line; }
.sh-land-pic { width: 100%; max-height: 320px; object-fit: cover; border-radius: var(--r); }
.sh-land-btns { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .8rem; }
.sh-land-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .6rem; margin: .4rem 0 1rem; }
.sh-land-fact { background: var(--surface); border-radius: var(--r); padding: .8rem 1rem; }
.sh-land-fact h3 { font-size: .85rem; color: var(--muted); margin: 0 0 .2rem; font-weight: 600; }
.sh-land-fact p { margin: 0; }
.sh-land-about, .sh-land-services { margin: 1rem 0; }
.sh-land-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .8rem; }
.sh-land-svc { background: var(--surface); border-radius: var(--r); padding: .9rem; display: grid; gap: .4rem; align-content: start; }
.sh-land-svc img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: calc(var(--r) - 4px); }
.sh-land-svc h3 { margin: 0; font-size: 1.05rem; }
.sh-land-svc p { margin: 0; }
.sh-land-cta { background: var(--cherry); color: #fff; border-radius: var(--r); padding: 1.2rem; display: grid; gap: .8rem; justify-items: start; margin: 1rem 0; }
.sh-land-cta p { margin: 0; font-size: 1.1rem; }
.sh-land-cta .sh-go { background: #fff; color: var(--cherry); }
.sh-bk-form h2 { margin: .2rem 0 .4rem; font-family: 'Karaz Head', 'Karaz Body', sans-serif; }
.sh-bk-slots { display: flex; flex-wrap: wrap; gap: .5rem; }
.sh-slot { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: .45rem .9rem; font: inherit; cursor: pointer; }
.sh-slot.on { background: var(--cherry); border-color: var(--cherry); color: #fff; }
.sh-bk-notice { font-size: .85rem; }
.sh-bk-link { display: flex; gap: .5rem; }
.sh-bk-link input { flex: 1; min-width: 0; font: inherit; padding: .5rem .7rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.sh-bk-sure { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.sh-pv-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.sh-pv h2 { margin: 1rem 0 .4rem; }
.sh-mine form { display: flex; gap: .5rem; }
.sh-mine form input { flex: 1; min-width: 0; font: inherit; padding: .5rem .7rem; border: 1px solid var(--line); border-radius: var(--r); }
@media (min-width: 720px) { .sh-land-hero { grid-template-columns: 1.1fr 1fr; } }
.sh-bk-sure[hidden] { display: none; }
button.sh-ghost { font: inherit; font-weight: 600; color: var(--cherry); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: .6rem 1rem; cursor: pointer; }
.sh-land-btns .sh-go, .sh-bk-sure .sh-go { width: auto; margin: 0; min-height: 44px; padding: .6rem 1.2rem; }
.sh-land-svc button.sh-ghost { justify-self: start; }

/* The invoice paid (owner 11-14: «page needs redesign»): one card, centred — a green mark, the title, the facts. */
.sh-paid { background: var(--surface); border-radius: var(--r); padding: 1.6rem 1.2rem 1.2rem; text-align: center; display: grid; gap: .5rem; justify-items: center; }
.sh-paid p { margin: 0; }
.sh-paid-mark { display: grid; place-items: center; width: 3.4rem; height: 3.4rem; border-radius: 50%; background: var(--green-bg); color: var(--green); font: 700 1.7rem 'Karaz Body', sans-serif; }
.sh-paid-t { font: 600 1.5rem 'Karaz Head', sans-serif; color: var(--green); }
.sh-paid-sum { width: 100%; background: var(--bg); text-align: start; margin-top: .5rem; }
.sh-pay .sh-paid-sum dd { font: 600 1.05rem/1.5 'Karaz Body', sans-serif; color: var(--ink); }
.sh-paid-sum dt { font-size: .95rem; }
