:root {
  --bg: #f6f5f2;
  --surface: #ffffff;
  --text: #1d1d1b;
  --muted: #6b6a66;
  --line: #e2e0da;
  --accent: #1d1d1b;
  --radius: 14px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Heebo", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
}
a { color: inherit; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }

header.top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.brand { font-weight: 800; letter-spacing: .06em; font-size: 20px; text-decoration: none; }
.brand small { font-weight: 400; color: var(--muted); letter-spacing: 0; margin-inline-start: 8px; font-size: 14px; }

/* ---------- color page: photo only ---------- */
body.photo-only {
  background: #eceae6;
  height: 100vh; height: 100dvh;
  overflow: hidden;
}
body.photo-only main {
  height: 100%;
  display: flex; align-items: center; justify-content: center;
  padding: 12px;
}
body.photo-only .photo {
  /* הלוח כולו נראה, בלי חיתוך */
  max-width: 100%; max-height: 100%;
  width: auto; height: auto;
  object-fit: contain;
  display: block;
  box-shadow: 0 6px 30px rgba(0, 0, 0, .18);
  background: var(--swatch, #ddd);
}
body.photo-only model-viewer.photo { width: 100%; height: 100%; box-shadow: none; background: transparent; }

/* ---------- catalog ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 20px 0; }
.filters input {
  flex: 1 1 220px; padding: 10px 14px; border: 1px solid var(--line);
  border-radius: 999px; font: inherit; background: var(--surface);
}
.chip {
  padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); cursor: pointer; font: inherit;
}
.chip.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.grid {
  display: grid; gap: 16px; padding-bottom: 40px;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}
.card {
  background: var(--surface); border-radius: var(--radius); overflow: hidden;
  text-decoration: none; border: 1px solid var(--line); display: block;
}
.card .sw { aspect-ratio: 4 / 3; background-size: cover; background-position: center; }
.card .meta { padding: 10px 12px; }
.card .id { font-size: 12px; color: var(--muted); }
.card .nm { font-weight: 600; }

/* ---------- color page ---------- */
.stage {
  margin-top: 16px; border-radius: var(--radius); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  aspect-ratio: 305 / 130; width: 100%; position: relative;
}
.stage img { width: 100%; height: 100%; object-fit: cover; display: block; }
.stage .solid { width: 100%; height: 100%; }
.stage model-viewer { width: 100%; height: 100%; background: #eeece7; }
.stage.is-model { aspect-ratio: 4 / 3; }
.zoom-hint {
  position: absolute; inset-inline-start: 10px; bottom: 10px; font-size: 12px;
  background: rgba(255,255,255,.85); padding: 4px 10px; border-radius: 999px;
}
.info { display: grid; gap: 20px; grid-template-columns: 1fr; padding: 20px 0 40px; }
@media (min-width: 760px) { .info { grid-template-columns: 1.3fr 1fr; } }
h1 { margin: 0; font-size: 28px; }
.sub { color: var(--muted); margin-top: 2px; }
.specs { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; }
.specs td { padding: 10px 14px; border-bottom: 1px solid var(--line); }
.specs td:first-child { color: var(--muted); width: 40%; }
.specs tr:last-child td { border-bottom: 0; }
.cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.btn {
  display: inline-block; padding: 12px 18px; border-radius: 999px; text-decoration: none;
  background: var(--accent); color: #fff; font-weight: 600;
}
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.notice { padding: 40px 0; text-align: center; color: var(--muted); }
