/* ─────────────────────────────────────────────────────────────────────────────
   SHOP — page head, filter rail, results bar
   ───────────────────────────────────────────────────────────────────────────── */

.page-head { padding-block: clamp(34px, 5vw, 66px) clamp(26px, 3vw, 40px); border-bottom: 1px solid var(--line); }
.page-head .h2 { margin: 16px 0 12px; }

.crumbs { display: flex; gap: 10px; font-size: 13px; color: var(--ink-50); }
.crumbs a:hover { color: var(--accent); }

.shop { padding-block: 34px clamp(64px, 8vw, 110px); }

.shop__grid {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.filters__inner {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: grid;
  gap: 24px;
}

.filters__block { display: grid; gap: 12px; }

.pills { display: flex; flex-wrap: wrap; gap: 8px; }

.pill {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--t-micro) var(--ease), color var(--t-micro) var(--ease),
    border-color var(--t-micro) var(--ease);
}

.pill:hover { border-color: var(--ink-35); }
.pill[data-on='true'] { background: var(--ink); border-color: var(--ink); color: #fff; }

.check { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; min-height: 44px; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }

.shop__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 20px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--line-soft);
}

.field--inline { display: flex; align-items: center; gap: 10px; }
.field--inline select { min-height: 42px; padding-block: 8px; }

[data-empty] { grid-column: 1 / -1; }

@media (max-width: 900px) {
  .shop__grid { grid-template-columns: 1fr; gap: 22px; }
  .filters__inner { position: static; gap: 18px; }
  .pills { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .pills::-webkit-scrollbar { display: none; }
  .pill { flex: 0 0 auto; }
}

@media (max-width: 720px) {
  .shop__bar { flex-direction: column; align-items: flex-start; gap: 12px; }
  .field--inline { width: 100%; justify-content: space-between; }
  .field--inline select { width: 70%; }
}

/* ── price range ──────────────────────────────────────────────────────── */
/* Two native range inputs stacked over one drawn track. Native inputs keep
   the keyboard and touch behaviour that a div-based slider throws away. */

.range { position: relative; height: 34px; margin-top: 18px; }

.range__track {
  position: absolute;
  left: 9px;
  right: 9px;
  top: 50%;
  height: 3px;
  transform: translateY(-50%);
  background: var(--line);
  border-radius: 2px;
}

.range__fill { position: absolute; top: 0; bottom: 0; background: var(--accent); border-radius: 2px; }

.range input {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  height: 34px;
  margin: 0;
  background: none;
  appearance: none;
  pointer-events: none;
}

.range input::-webkit-slider-thumb {
  appearance: none;
  pointer-events: auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--accent);
  box-shadow: 0 2px 6px rgba(16, 24, 19, 0.25);
  cursor: grab;
}

.range input::-moz-range-thumb {
  pointer-events: auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--accent);
  box-shadow: 0 2px 6px rgba(16, 24, 19, 0.25);
  cursor: grab;
}

.range input:active::-webkit-slider-thumb { cursor: grabbing; }
.range input:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--accent); outline-offset: 2px; }

.range__read {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 550;
}
