/* Shared design tokens and components. */
:root {
  --accent: #f2a33a;           /* saffron; each shop can set its own */
  --ink: #12161b;
  --ink-2: #1b2128;
  --ink-3: #262e37;
  --paper: #f7f3ec;
  --paper-2: #efe8dc;
  --line: #e2d9c9;
  --text: #1b1f24;
  --muted: #6b6f75;
  --on-dark: #f4efe6;
  --muted-dark: #9aa1a8;
  --ok: #2f8f5b;
  --warn: #c7811b;
  --bad: #c2412d;
  --radius: 18px;
  --font: 'IBM Plex Sans Arabic', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --digits: 'Space Grotesk', 'IBM Plex Sans Arabic', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: var(--font); -webkit-font-smoothing: antialiased; line-height: 1.45; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
.num { font-family: var(--digits); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.hidden { display: none !important; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 0;
  font-weight: 700; font-size: 16px; background: var(--ink); color: var(--on-dark);
  transition: transform .08s ease, opacity .15s ease;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.accent { background: var(--accent); color: #17130c; }
.btn.ghost { background: transparent; border: 1.5px solid currentColor; color: var(--text); }
.btn.small { min-height: 38px; padding: 0 14px; font-size: 14px; }
.btn.block { width: 100%; }

.lang { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(127,127,127,.14); }
.lang-btn { border: 0; background: transparent; min-width: 34px; height: 30px; border-radius: 999px; font-weight: 700; font-size: 13px; opacity: .7; }
.lang-btn.on { background: var(--accent); color: #17130c; opacity: 1; }

.toast {
  position: fixed; inset-inline: 16px; bottom: 20px; margin: 0 auto; max-width: 460px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px; border-radius: 14px; background: var(--ink); color: var(--on-dark);
  box-shadow: 0 10px 30px rgba(0,0,0,.25); transform: translateY(140%); transition: transform .25s ease; z-index: 50;
}
.toast.show { transform: translateY(0); }
.toast-action { border: 0; background: var(--accent); color: #17130c; font-weight: 700; padding: 6px 14px; border-radius: 999px; }

/* The brand mark: an eight-point star (khatam) */
.mark { width: 26px; height: 26px; display: inline-block; vertical-align: middle; }
.btn.light { background: var(--paper-2); color: var(--text); }

/* Custom shops can choose a light background (customer page, TV, poster). */
.theme-light {
  --ink: #faf7f2;
  --ink-2: #ffffff;
  --ink-3: #e6dfd3;
  --on-dark: #1b1f24;
  --muted-dark: #6b6f75;
}
.shop-logo { height: 34px; width: auto; max-width: 140px; object-fit: contain; border-radius: 6px; vertical-align: middle; }
.btn { text-decoration: none; }
