/* 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; }
.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; position: sticky; top: 0; background: var(--bg); z-index: 2; }
.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)); } }
.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; }
.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-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-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; }

/* the order's page */
.sh-status { display: grid; gap: .9rem; padding-top: .4rem; }
.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; } }
