/* ───────────── Search & Category pages ───────────── */

/* Search head */
.srchHead { padding: clamp(28px, 4vw, 56px) 0 clamp(20px, 3vw, 36px); }
.srchH1 {
  font-family: var(--display);
  font-weight: 700; /* R17: hero weight was split 400 here vs 700 in search.css — canon is 700 */
  font-size: var(--h1-hero, clamp(44px, 6.5vw, 88px)); /* R16: unified hero token */
  text-wrap: balance;
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
  color: var(--ink);
}
.srchH1 .ital { color: var(--accent-deep); }
.srchLede {
  font-size: clamp(15px, 1.3vw, 18px);
  color: var(--ink-3);
  max-width: 62ch;
  margin: 0;
  line-height: 1.5;
}
.srchH2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: var(--h2-display, clamp(26px, 2.8vw, 36px)); /* R19 #17 */
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 40px 0 24px;
  color: var(--ink);
}

.srchBody { padding-bottom: clamp(60px, 8vw, 100px); }
.srchBody__inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: clamp(28px, 3vw, 44px);
  align-items: start;
}

/* Filters sidebar */
.filt {
  position: sticky;
  top: 80px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.filt__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.filt__head h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 24px;
  margin: 0;
  letter-spacing: -0.01em;
}
.filt__reset {
  background: transparent;
  border: 0;
  font-size: 11px;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  cursor: pointer;
}
.filt__reset:hover { color: var(--accent-deep); }
.filt__grp {
  border: 0;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.filt__grp legend {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 2px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.filt__grp legend output {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: none;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.filt__grp select {
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font: 500 14px/1.2 var(--sans);
  color: var(--ink);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236a7570' stroke-width='2'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}
.filt__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.filt__chips--row label { flex: 1; }
.filt__chips label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  background: var(--bg);
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 12.5px;
  cursor: pointer;
  transition: background .15s, border-color .15s;
  user-select: none;
}
.filt__chips label:hover { background: var(--bg-2); }
.filt__chips label input { display: none; }
.filt__chips label:has(input:checked) {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-darker);
  font-weight: 500;
}
.filt__chips--row label {
  justify-content: center;
  text-align: center;
}
.filt__range {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.filt__range input {
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font: 500 14px/1.2 var(--mono);
  color: var(--ink);
  outline: none;
  width: 100%;
}
.filt__range input:focus { border-color: var(--accent); }

/* Results */
.srchRes { min-width: 0; }
.srchToolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding: 12px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  flex-wrap: wrap;
}
.srchToolbar__filterBtn {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  background: var(--ink);
  color: var(--on-dark);
  border: 0;
  border-radius: 999px;
  font-size: 13px;
}
.srchToolbar__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1;
  min-width: 0;
}
.srchChip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px 4px 12px;
  background: var(--accent-tint);
  border: 1px solid var(--accent);
  color: var(--accent-darker);
  border-radius: 999px;
  font-size: 12.5px;
}
.srchChip button {
  width: 20px; height: 20px;
  border: 0;
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
  color: var(--accent-darker);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.srchChip button:hover { background: var(--accent); color: #fff; }
.srchToolbar__sort {
  padding: 8px 32px 8px 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  font: 500 13px/1 var(--sans);
  color: var(--ink);
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236a7570' stroke-width='2'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  cursor: pointer;
}

.srchGrid { grid-template-columns: repeat(3, 1fr); }

/* Pagination */
.pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin: 32px 0 40px;
}
.pager__btn {
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, color .15s, border-color .15s;
  cursor: pointer;
}
.pager__btn:hover:not(:disabled):not(.pager__btn--cur) {
  background: var(--bg-2);
  color: var(--ink);
}
.pager__btn:disabled { opacity: .35; cursor: not-allowed; }
.pager__btn--cur {
  background: var(--ink);
  color: var(--on-dark);
  border-color: var(--ink);
}
.pager__dots { color: var(--ink-soft); padding: 0 4px; font-family: var(--mono); }

/* SEO cross-links */
.seoLinks {
  margin-top: 24px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.seoLinks__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.seoLinks__grid h3 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 12px;
  font-weight: 500;
}
.seoLinks__grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.seoLinks__grid li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  font-size: 14px;
  padding: 6px 0;
  border-bottom: 1px dashed var(--line);
}
.seoLinks__grid li:last-child { border-bottom: 0; }
.seoLinks__grid a {
  color: var(--ink-2);
  transition: color .15s;
}
.seoLinks__grid a:hover { color: var(--accent-deep); }
.seoLinks__grid li span { font-size: 11px; color: var(--ink-soft); }

/* ───────────── Category page ───────────── */
.catHero { padding: clamp(28px, 4vw, 56px) 0 clamp(20px, 3vw, 36px); }
.catHero__inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(32px, 4vw, 56px);
  align-items: start;
}
.catHero__brandRow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.catHero__logo {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--bLogo, var(--ink));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 4px 14px -4px rgba(0,0,0,.18);
}
.catHero__h1 {
  font-family: var(--display);
  font-weight: 700; /* R17: canon hero weight (was 400 → /katalog/ looked like a different site) */
  font-size: var(--h1-hero, clamp(44px, 6.5vw, 88px)); /* R16: unified hero token */
  text-wrap: balance;
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
  color: var(--ink);
}
.catHero__h1 .ital { color: var(--accent-deep); }
.catHero__lede {
  font-size: clamp(15px, 1.3vw, 18px);
  color: var(--ink-3);
  max-width: 60ch;
  margin: 0 0 28px;
  line-height: 1.55;
}
.catHero__lede b { color: var(--ink); font-weight: 600; }
.catHero__kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.catHero__kpis div {
  background: var(--paper);
  padding: 16px 18px;
}
.catHero__kpis b {
  display: block;
  font-family: var(--display);
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.catHero__kpis span {
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.35;
}

.catModels {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px 22px;
}
.catModels__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}
.catModels__head h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 22px;
  margin: 0;
  letter-spacing: -0.01em;
}
.catModels__head span { font-size: 11px; color: var(--ink-soft); letter-spacing: 0.04em; }
.catModels ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.catModels li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  gap: 12px;
}
.catModels li:last-child { border-bottom: 0; }
.catModels li a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex: 1;
  min-width: 0;
}
.catModels li a b { font-weight: 600; color: var(--ink); }
.catModels li a span { font-size: 12px; color: var(--ink-soft); }
.catModels li a:hover b { color: var(--accent-deep); }
.catModels li > span { font-size: 12px; color: var(--ink-soft); }

/* Cat listings */
.catBody { padding-bottom: clamp(60px, 8vw, 100px); }
.catBody__head { margin: clamp(28px, 4vw, 48px) 0 22px; }
.catBody__h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: var(--h2-display, clamp(26px, 2.8vw, 36px)); /* R19 #17 */
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
  color: var(--ink);
}
.catBody__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.catChip {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 13.5px;
  transition: background .15s, border-color .15s, color .15s;
}
.catChip:hover { border-color: var(--ink); color: var(--ink); }
.catChip.is-on {
  background: var(--ink);
  color: var(--on-dark);
  border-color: var(--ink);
}
.cat__more { margin-top: 24px; display: flex; justify-content: center; }

/* SEO body */
.catSeo {
  max-width: 64ch;
  margin: clamp(40px, 6vw, 80px) auto 0;
}
.catSeo h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 32px 0 12px;
  color: var(--ink);
}
.catSeo p,
.catSeo ul,
.catSeo ol {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-2);
  margin: 0 0 12px;
}
.catSeo b { color: var(--ink); }
.catSeo__ul,
.catSeo__ol { padding-left: 1.4em; }
.catSeo__ul li,
.catSeo__ol li { margin-bottom: 6px; }
.catSeo__crossGrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  margin-top: 16px;
}
.catSeo__crossGrid a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--paper);
  padding: 14px 18px;
  font-weight: 500;
  color: var(--ink);
  transition: background .15s;
}
.catSeo__crossGrid a:hover { background: var(--accent-tint); color: var(--accent-darker); }
.catSeo__crossGrid a span { font-size: 12px; color: var(--ink-soft); }

/* ── Responsive ── */
@media (max-width: 1080px) {
  .srchBody__inner { grid-template-columns: 1fr; }
  .filt {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(360px, 92vw);
    z-index: 100;
    border-radius: 0;
    transform: translateX(-100%);
    transition: transform .25s ease;
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(0,0,0,.18);
  }
  .filt.is-open { transform: translateX(0); }
  /* R15 H-10: .srchToolbar__filterBtn rule removed (ghost button deleted from find.php) */
  .srchGrid { grid-template-columns: repeat(2, 1fr); }
  .seoLinks__grid { grid-template-columns: repeat(2, 1fr); }
  .catHero__inner { grid-template-columns: 1fr; }
  .catHero__kpis { grid-template-columns: 1fr; }
  .catSeo__crossGrid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .srchGrid { grid-template-columns: 1fr; }
  .seoLinks__grid { grid-template-columns: 1fr; }
  .pager__btn:nth-of-type(n+5):not(:last-child) { display: none; }
}
