@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800&display=swap');

:root {
  --red: #D6291E;
  --red-dark: #A81F17;
  --green: #1E7145;
  --black: #1A1A1A;
  --offer: #F2A93B;
  --bg: #FFFFFF;
  --bg-soft: #F7F5F2;
  --border: #ECE8E3;
  --muted: #6B675F;
  --muted-light: #B5AFA8;
  /* surfaces & theme tokens (the storefront swaps these per theme) */
  --surface: #FFFFFF;
  --surface-2: #FAF8F5;
  --surface-3: #F5F1EB;
  --scrim: rgba(26,26,26,0.45);
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Cairo', system-ui, sans-serif;
  background: var(--bg-soft);
  color: var(--black);
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }
input, select { font-family: inherit; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}

.btn {
  border: none; border-radius: 22px; padding: 12px 22px;
  font-weight: 700; font-size: 14px; display: inline-flex;
  align-items: center; justify-content: center; gap: 8px;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-secondary { background: var(--green); color: #fff; }
.btn-outline { background: var(--surface); border: 1.5px solid var(--border); color: var(--black); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.badge {
  display: inline-flex; align-items: center; padding: 4px 10px;
  border-radius: 12px; font-size: 11.5px; font-weight: 700;
}
.badge-new { background: #FDECEA; color: var(--red-dark); }
.badge-assigned { background: #FFF3DE; color: #8A5B00; }
.badge-delivered { background: #E7F5EC; color: var(--green); }
.badge-cancelled { background: #EFEDEA; color: var(--muted); }

.overlay {
  position: fixed; inset: 0; background: var(--scrim);
  display: flex; align-items: flex-end; justify-content: center; z-index: 50;
}
.overlay.hidden { display: none; }
.sheet {
  background: var(--surface); width: 100%; max-width: 480px;
  border-radius: 20px 20px 0 0; padding: 20px; max-height: 88vh;
  overflow-y: auto; box-shadow: 0 -6px 24px rgba(0,0,0,0.18);
}
@media (min-width: 560px) {
  .overlay { align-items: center; }
  .sheet { border-radius: 20px; }
}

.icon-btn {
  width: 44px; height: 44px; border-radius: 50%; border: none;
  display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
}

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12.5px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.field input, .field select {
  width: 100%; height: 46px; border-radius: 10px; border: 1.5px solid var(--border);
  padding: 0 14px; font-size: 14px; background: var(--bg-soft); color: var(--black);
}
