/* ============================================================
   תמצא לי — onefindme.com
   Restrained commerce styling: white ground, near-black ink,
   one accent reserved for price drops. Products carry the page,
   not decoration.
   ============================================================ */

:root {
  --ground:  #ffffff;
  --surface: #f5f5f6;
  --ink:     #0b0b0c;
  --muted:   #6d6d73;
  --line:    #e5e5e8;
  --sale:    #c8102e;
  --bar-h:   64px;
  --radius:  10px;
  --wrap:    1180px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground:  #0d0d0f;
    --surface: #17171a;
    --ink:     #f2f2f3;
    --muted:   #9a9aa1;
    --line:    #26262b;
    --sale:    #ff5a72;
  }
}
:root[data-theme="dark"] {
  --ground:  #0d0d0f;
  --surface: #17171a;
  --ink:     #f2f2f3;
  --muted:   #9a9aa1;
  --line:    #26262b;
  --sale:    #ff5a72;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 16px/1.6 Assistant, -apple-system, "Segoe UI", sans-serif;
  padding-top: var(--bar-h);
  overflow-x: hidden;
}

h1, h2, h3 { font-family: Heebo, Assistant, sans-serif; margin: 0; text-wrap: balance; }

a { color: inherit; }

button { font: inherit; cursor: pointer; }

/* ---------- fixed bar: the search never leaves the screen ---------- */

.bar {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  height: var(--bar-h);
  background: var(--ground);
  border-bottom: 1px solid var(--line);
  z-index: 50;
}

.bar-in {
  max-width: var(--wrap);
  height: 100%;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex: none;
}

.logo-mark {
  width: 22px;
  height: 22px;
  border: 2.5px solid var(--ink);
  border-radius: 50%;
  position: relative;
}
.logo-mark::after {
  content: "";
  position: absolute;
  inset-block-end: -5px;
  inset-inline-start: -4px;
  width: 9px;
  height: 2.5px;
  background: var(--ink);
  transform: rotate(45deg);
}

.logo-txt {
  font-family: Heebo, sans-serif;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.01em;
}

.find {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 6px 0 6px;
  transition: border-color .15s;
}
.find:focus-within { border-color: var(--ink); }

.find input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: none;
  color: var(--ink);
  font: 400 16px Assistant, sans-serif;
  padding: 11px 12px;
}
.find input::placeholder { color: var(--muted); }
.find input::-webkit-search-cancel-button { display: none; }

.find button {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--ground);
}

.lang {
  flex: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-decoration: none;
  color: var(--muted);
  padding: 6px 4px;
}
.lang:hover { color: var(--ink); }

/* ---------- hero ---------- */

.hero {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 56px 16px 34px;
}

.hero h1 {
  font-size: clamp(34px, 6vw, 58px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.hero p {
  max-width: 54ch;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 26px 0 0;
  padding: 0;
}
.chips button {
  border: 1px solid var(--line);
  background: none;
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 15px;
  font-size: 14.5px;
  transition: background .15s, border-color .15s;
}
.chips button:hover { background: var(--surface); border-color: var(--muted); }

/* ---------- results ---------- */

.results {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 8px 16px 40px;
}

.results-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 18px 0 20px;
  border-top: 1px solid var(--line);
}
.results-head h2 { font-size: 21px; font-weight: 700; }
.count { color: var(--muted); font-size: 14px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(178px, 1fr));
  gap: 26px 18px;
}

.card { display: block; text-decoration: none; }

.thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.card:hover .thumb img { transform: scale(1.035); }

.off {
  position: absolute;
  inset-block-start: 8px;
  inset-inline-start: 8px;
  background: var(--sale);
  color: #fff;
  font: 600 12px/1 Assistant, sans-serif;
  padding: 5px 7px;
  border-radius: 4px;
}

.card h3 {
  font-family: Assistant, sans-serif;
  font-size: 14.5px;
  font-weight: 400;
  line-height: 1.4;
  margin: 11px 0 6px;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 7px;
  font-variant-numeric: tabular-nums;
}
.price b { font-size: 16px; font-weight: 700; }
.price s { color: var(--muted); font-size: 13px; }

.meta {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
}

.more { text-align: center; padding: 34px 0 0; }
.more button {
  border: 1px solid var(--ink);
  background: none;
  color: var(--ink);
  border-radius: 999px;
  padding: 12px 34px;
  font-weight: 600;
  font-size: 15px;
  transition: background .15s, color .15s;
}
.more button:hover { background: var(--ink); color: var(--ground); }

/* ---------- loading / empty ---------- */

.state {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 60px 16px;
  text-align: center;
  color: var(--muted);
}
.spin {
  width: 26px;
  height: 26px;
  margin: 0 auto 16px;
  border: 2px solid var(--line);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: sp .7s linear infinite;
}
@keyframes sp { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- why ---------- */

.why { border-top: 1px solid var(--line); margin-top: 20px; }
.why-in {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 52px 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 34px;
}
.why h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.why p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- footer ---------- */

footer { border-top: 1px solid var(--line); }
.foot-in {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 26px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
}
.foot-in nav { display: flex; gap: 18px; }
.foot-in a { text-decoration: none; }
.foot-in a:hover { color: var(--ink); }

:where(a, button, input):focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .logo-txt { display: none; }
  .hero { padding: 38px 16px 26px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 22px 12px; }
}
