:root {
  --bg: #f6f7f5; --card: #fff; --ink: #1d2320; --muted: #66706a; --line: #e2e6e2;
  --accent: #1f7a4d; --accent-soft: #e5f3ea; --deal: #b4560f; --deal-soft: #fdf0e3;
  --club: #5b3fa8; --club-soft: #efeafb;
  --radius: 12px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121513; --card: #1b201d; --ink: #e8ece9; --muted: #9aa49e; --line: #2c332f;
    --accent: #5cc58d; --accent-soft: #183526; --deal: #f0a35e; --deal-soft: #3a2614;
    --club: #b9a3f5; --club-soft: #2a2140;
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}
a { color: var(--accent); text-decoration: none; }
[lang="he"] { font-family: Arial, "Noto Sans Hebrew", sans-serif; }

.top {
  position: sticky; top: 0; z-index: 5; background: var(--card);
  border-bottom: 1px solid var(--line); padding: 10px 16px 12px;
}
.brand { display: inline-block; font-weight: 700; font-size: 18px; color: var(--ink); margin-bottom: 8px; }
.search input {
  width: 100%; font-size: 17px; padding: 12px 14px; border-radius: var(--radius);
  border: 2px solid var(--line); background: var(--bg); color: var(--ink); outline: none;
}
.search input:focus { border-color: var(--accent); }

main { max-width: 720px; margin: 0 auto; padding: 12px 16px 24px; min-height: 60vh; }
.pad { padding: 8px 0; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
h1 { font-size: 22px; line-height: 1.25; margin: 6px 0 4px; }
h2 { font-size: 17px; margin: 22px 0 8px; }

/* result list */
.list { list-style: none; margin: 0; padding: 0; }
.list li a {
  display: flex; gap: 12px; justify-content: space-between; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 11px 13px; margin-bottom: 8px; color: var(--ink);
}
.list li a:active { background: var(--accent-soft); }
.list .name { font-weight: 600; }
.list .sub { font-size: 14px; color: var(--muted); margin-top: 2px; }
.list .price { text-align: right; white-space: nowrap; font-weight: 700; }
.list .price small { display: block; font-weight: 400; font-size: 12px; color: var(--muted); }
.he { direction: rtl; unicode-bidi: isolate; }
.soon { font-size: 12px; color: var(--muted); font-style: italic; }

.tag {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .02em;
  padding: 1px 7px; border-radius: 99px; vertical-align: 1px; margin-left: 4px;
}
.tag.deal { background: var(--deal-soft); color: var(--deal); }
.tag.imp { background: var(--accent-soft); color: var(--accent); }
.tag.club { background: var(--club-soft); color: var(--club); }

.more {
  display: block; width: 100%; padding: 12px; font-size: 16px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--card); color: var(--accent); font-weight: 600;
}
.empty { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }

/* category grid */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 560px) { .grid { grid-template-columns: repeat(3, 1fr); } }
.grid a {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px; color: var(--ink); font-size: 15px; line-height: 1.25; min-height: 64px;
  display: flex; gap: 8px; align-items: center;
}
.grid a span.ic { font-size: 22px; }
.grid a small { display: block; color: var(--muted); font-size: 12px; }

/* product page */
.back { display: inline-block; margin: 2px 0 6px; font-size: 15px; }
.facts { color: var(--muted); font-size: 15px; }
.shelf {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 14px; margin: 14px 0 4px;
}
.shelf .label { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.shelf .he { font-size: 20px; font-weight: 600; margin: 2px 0 8px; text-align: right; }
.shelf .code { font: 600 20px/1.2 ui-monospace, Menlo, Consolas, monospace; letter-spacing: .06em; }

.chain { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; overflow: hidden; }
.chain h3 { margin: 0; padding: 9px 13px; font-size: 15px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; }
.chain h3 a { font-weight: 400; font-size: 13px; }
.row { padding: 10px 13px; display: flex; justify-content: space-between; gap: 10px; }
.row + .row { border-top: 1px solid var(--line); }
.row.best { background: var(--accent-soft); }
.row .where { font-size: 15px; }
.row .where small { display: block; color: var(--muted); font-size: 13px; }
.row .amt { text-align: right; white-space: nowrap; }
.row .amt b { font-size: 18px; }
.row .amt small { display: block; color: var(--muted); font-size: 12px; }
.best-label { font-size: 11px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .04em; }
.deals { padding: 0 13px 10px; margin-top: -4px; }
.row.best + .deals { background: var(--accent-soft); }
.deal {
  background: var(--deal-soft); border-radius: 8px; padding: 6px 9px; margin-top: 6px; font-size: 14px;
}
.deal b { color: var(--deal); }
.deal .he { display: block; font-size: 12px; color: var(--muted); text-align: right; }
.missing { font-size: 14px; color: var(--muted); }
.note { font-size: 14px; color: var(--muted); border-left: 3px solid var(--line); padding-left: 10px; margin: 16px 0; }

.foot { max-width: 720px; margin: 0 auto; padding: 8px 16px 40px; font-size: 13px; color: var(--muted); }
