/* أساس مشترك: شريط الطلب، ورقة المراجعة، العدّاد. الألوان من متغيرات كل شكل. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); line-height: 1.6; }
body.locked { overflow: hidden; }
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.wrap { max-width: 560px; margin-inline: auto; }

.price { direction: ltr; unicode-bidi: isolate; white-space: nowrap; font-variant-numeric: lining-nums; }
.pic { background-repeat: no-repeat; inline-size: 100%; }

/* العدّاد */
.stepper { display: inline-flex; align-items: center; gap: 4px; }
.stepper .add {
  border: 1px solid var(--accent); background: var(--accent); color: var(--on-accent);
  padding: 10px 18px; border-radius: var(--radius); font-weight: 600; min-block-size: 44px;
}
.stepper .step {
  inline-size: 40px; block-size: 40px; border-radius: var(--radius);
  border: 1px solid var(--line); background: transparent; font-size: 20px; line-height: 1;
}
.stepper .q { min-inline-size: 28px; text-align: center; font-weight: 700; }

/* شريط الطلب */
.orderbar {
  position: fixed; inset-inline: 12px; inset-block-end: calc(12px + env(safe-area-inset-bottom));
  max-inline-size: 536px; margin-inline: auto; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px; border: 0; border-radius: var(--radius);
  background: var(--accent); color: var(--on-accent); font-weight: 600;
  box-shadow: 0 6px 20px rgb(0 0 0 / .18);
}
.orderbar .ob-cta { flex: 1; text-align: center; }

/* ورقة المراجعة */
.shade { position: fixed; inset: 0; background: rgb(0 0 0 / .5); z-index: 30; }
.sheet {
  position: fixed; inset-inline: 0; inset-block-end: 0; z-index: 31;
  max-inline-size: 560px; margin-inline: auto; max-block-size: 88vh; overflow-y: auto;
  background: var(--sheet); color: var(--ink);
  border-start-start-radius: 18px; border-start-end-radius: 18px;
  padding: 18px 18px calc(18px + env(safe-area-inset-bottom));
}
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-block-end: 8px; }
.sheet-head h2 { margin: 0; font-family: var(--head); font-size: 24px; }
.sheet .close { border: 0; background: transparent; font-size: 30px; inline-size: 44px; block-size: 44px; }
.row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px; padding-block: 10px; border-block-end: 1px solid var(--line); }
.row-name { display: flex; flex-direction: column; }
.row-name small { color: var(--muted); }
.row .price { min-inline-size: 64px; text-align: end; }
.sum { display: flex; justify-content: space-between; font-weight: 700; font-size: 18px; padding-block: 14px; }
.field { display: block; margin-block-end: 12px; }
.field span { display: block; font-size: 14px; color: var(--muted); margin-block-end: 4px; }
.field input, .field textarea {
  inline-size: 100%; padding: 12px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--field); resize: vertical;
}
.send {
  display: block; text-align: center; text-decoration: none; margin-block-start: 6px;
  padding: 15px; border-radius: var(--radius); background: var(--accent); color: var(--on-accent); font-weight: 700;
}
.hint { font-size: 13px; color: var(--muted); text-align: center; margin-block: 10px 0; }

.madeby { text-align: center; font-size: 12px; color: var(--muted); padding: 24px 0 110px; }
.madeby a { color: inherit; }
.row .remove { border: 1px solid var(--line); background: transparent; border-radius: var(--radius); padding: 8px 12px; min-block-size: 40px; }
