/* רוכל'ה — shared look. Colours are tokens; change them here only. */
:root {
  --ink: #1f2a2e;
  --muted: #6b7275;
  --primary: #0f4c5c;
  --primary-2: #16697a;
  --accent: #e9a23b;
  --accent-soft: #fdf1dc;
  --bg: #faf6ef;
  --card: #ffffff;
  --line: #e7dfd2;
  --danger: #b93a2e;
  --danger-soft: #fbe9e6;
  --ok: #2e7d4f;
  --ok-soft: #e6f4ec;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(31, 42, 46, .06), 0 6px 20px rgba(31, 42, 46, .06);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: 'Heebo', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}
a { color: var(--primary-2); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid transparent; border-radius: 10px;
  padding: 9px 16px; min-height: 40px;
  background: var(--primary); color: #fff; font-weight: 600;
  cursor: pointer; text-decoration: none; white-space: nowrap;
}
.btn:hover { background: var(--primary-2); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--primary); border-color: var(--line); }
.btn.ghost:hover { background: #fff; border-color: var(--primary-2); }
.btn.accent { background: var(--accent); color: var(--ink); }
.btn.accent:hover { background: #f0b150; }
.btn.danger { background: transparent; color: var(--danger); border-color: #efc9c3; }
.btn.danger:hover { background: var(--danger-soft); }
.btn.sm { padding: 5px 10px; min-height: 32px; font-size: 14px; }
.icon-btn {
  width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line);
  background: #fff; cursor: pointer; display: inline-grid; place-items: center; font-size: 14px;
}
.icon-btn:hover { border-color: var(--primary-2); }
.icon-btn:disabled { opacity: .35; cursor: default; }

.input, select.input, textarea.input {
  width: 100%; padding: 9px 12px; min-height: 40px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff;
}
textarea.input { min-height: 80px; resize: vertical; }
.input:focus { border-color: var(--primary-2); outline: none; box-shadow: 0 0 0 3px rgba(22, 105, 122, .15); }
label.lbl { display: block; font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.hint { color: var(--muted); font-size: 13px; }
.req { color: var(--danger); }

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
}

.brand {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: 26px; color: var(--primary); text-decoration: none; letter-spacing: -.5px;
}
.brand .mark {
  width: 36px; height: 36px; border-radius: 10px; background: var(--accent);
  display: grid; place-items: center; font-size: 20px;
}

.toast {
  position: fixed; inset-inline: 0; bottom: 24px; margin: 0 auto; width: max-content; max-width: calc(100% - 32px);
  background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 10px;
  box-shadow: var(--shadow); z-index: 100; font-weight: 500;
}
.toast.err { background: var(--danger); }
.toast.ok { background: var(--ok); }

.muted { color: var(--muted); }
.hide { display: none !important; }

.input::placeholder { color: #a9a39a; }

/* ---- item-field forms (seller form + admin preview) ---- */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 13px; padding: 4px 10px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 500; }
.check input { width: 18px; height: 18px; accent-color: var(--primary); }
.pf { margin-bottom: 14px; }
.pf.bad .input, .pf.bad .imgs-edit { border-color: var(--danger); }
.ferr { color: var(--danger); font-size: 13px; font-weight: 500; min-height: 0; }
.ferr:empty { display: none; }
.unit { display: flex; align-items: center; gap: 8px; }
.unit .input { flex: 1; }
.flt { font-size: 11px; background: var(--accent-soft); border-radius: 6px; padding: 1px 6px; margin-inline-start: 6px; font-weight: 500; }
.from { font-size: 11px; color: var(--muted); font-weight: 400; margin-inline-start: 6px; }
.imgs-edit { display: flex; flex-wrap: wrap; gap: 8px; border: 1px solid transparent; border-radius: 12px; }
.thumb {
  position: relative; width: 96px; height: 96px; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line); background: #fff;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb .main {
  position: absolute; top: 4px; inset-inline-start: 4px; background: var(--accent); color: var(--ink);
  font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 6px;
}
.thumb .tb { position: absolute; bottom: 4px; inset-inline-end: 4px; display: flex; gap: 4px; }
.thumb .mini {
  width: 26px; height: 26px; border-radius: 8px; border: 0; background: rgba(31, 42, 46, .75); color: #fff; cursor: pointer; font-size: 13px;
}
.thumb.add {
  border: 2px dashed #d8cdb9; background: var(--bg); cursor: pointer; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2px; color: var(--muted); font-size: 12px; font-weight: 600;
}
.thumb.add .plus { font-size: 26px; line-height: 1; }
.thumb.add:hover { border-color: var(--primary-2); color: var(--primary); }
