/* Home collection controls; card dimensions and grid stay unchanged. */
.home-catalog__header { margin-bottom: 30px; }
.home-catalog__heading { scroll-margin-top: calc(var(--live-header-height, 90px) + 16px); }
.home-catalog__crumbs { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; font-size: 12px; color: #777; }
.home-catalog__crumbs a { color: inherit; text-decoration: none; }
.home-catalog__crumbs a:hover { color: #111; }
.home-catalog__heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 24px; border-bottom: 1px solid #e8e8e5; }
.home-catalog__title { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.home-catalog__title h2 { margin: 0; color: #111; font: 550 32px/1.15 var(--font); letter-spacing: -.04em; }
.home-catalog__count { padding: 6px 9px; border-radius: 4px; background: #f5f5f3; color: #777; font: 400 12px/1.2 var(--font); white-space: nowrap; }
.home-catalog__tools { display: flex; align-items: center; gap: 10px; flex: none; }
.home-filter-toggle, .home-catalog__sort { display: inline-flex; align-items: center; min-height: 42px; border: 1px solid #e5e5e2; border-radius: 8px; background: #fff; color: #111; font: 500 13px/1.3 var(--font); }
.home-filter-toggle { justify-content: center; gap: 9px; padding: 0 15px; }
.home-filter-toggle svg { width: 17px; height: 17px; fill: #fff; stroke: currentColor; stroke-width: 1.5; }
.home-filter-toggle b { font-size: 11px; font-weight: 600; color: var(--sys-buy); }
.home-filter-toggle:hover, .home-catalog__sort:hover { border-color: #aaa; }
.home-filter-toggle[aria-expanded="true"] { color: var(--sys-buy); border-color: var(--sys-buy); }
.home-catalog__sort { position: relative; }
.home-catalog__sort select { appearance: none; width: 100%; min-height: 40px; padding: 0 38px 0 14px; border: 0; border-radius: inherit; background: transparent; font: inherit; color: inherit; cursor: pointer; }
.home-catalog__sort svg { position: absolute; right: 13px; width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; pointer-events: none; }
.home-collection + .home-collection { margin-top: 60px; padding-top: 32px; border-top: 1px solid #e8e8e5; }
.home-collection__head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.home-collection__head h3 { margin: 0; color: #111; font: 500 20px/1.3 var(--font); letter-spacing: -.025em; }
.home-collection__head > span { padding-bottom: 3px; font-size: 12px; color: #777; white-space: nowrap; }
.home-collection__eyebrow { margin: 0 0 6px; color: #777; font-size: 10px; font-weight: 500; line-height: 1.4; letter-spacing: .12em; text-transform: uppercase; }
.home-filters { padding: 24px 0; border-bottom: 1px solid #e8e8e5; }
.home-filters[hidden] { display: none; }
.home-filters__grid { display: grid; grid-template-columns: 1fr 1.35fr 1fr 1fr; gap: 24px; }
.home-filters fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.home-filters legend { margin-bottom: 14px; padding: 0; font-size: 13px; font-weight: 600; color: #111; }
.home-filters__choices { display: flex; flex-wrap: wrap; align-content: start; gap: 7px; }
.home-filter-choice { position: relative; cursor: pointer; }
.home-filter-choice input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.home-filter-choice > span { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 6px 10px; border: 1px solid #e8e8e5; border-radius: 5px; font-size: 12px; color: #555; background: #fff; }
.home-filter-choice i { width: 12px; height: 12px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px #00000015; }
.home-filter-choice input:checked + span { border-color: var(--sys-buy); color: var(--sys-buy); background: #edf4ff; }
.home-filter-choice input:focus-visible + span { outline: 2px solid var(--sys-buy); outline-offset: 2px; }
.home-filter-choice:hover > span { border-color: #aaa; }
.home-filters select { width: 100%; min-height: 38px; padding: 0 10px; border: 1px solid #e5e5e2; border-radius: 5px; color: #111; background-color: #fff; font: 400 13px var(--font); }
.home-filter-check { display: flex; align-items: center; gap: 8px; margin-top: 13px; font-size: 13px; color: #555; cursor: pointer; }
.home-filter-check input { width: 15px; height: 15px; margin: 0; accent-color: var(--sys-buy); }
.home-filters__foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 24px; }
.home-reset { padding: 6px 0; border: 0; background: none; color: #777; font: 400 12px var(--font); text-decoration: underline; text-underline-offset: 3px; }
.home-reset:hover { color: #111; }
.home-filters__found { margin: 0; font-size: 12px; color: #777; }
.home-filters__found b { font-weight: 600; color: #111; }
.home-filter-toggle b[hidden] { display: none; }
/* Смена товаров после фильтра: старые гаснут, высота подстраивается плавно */
[data-feed-results] { transition: opacity .13s ease; }
[data-feed-results].is-swapping { opacity: .25; pointer-events: none; }
[data-feed-results].is-resizing { overflow: clip; }
.home-apply { min-height: 42px; padding: 0 20px; border: 0; border-radius: 8px; background: var(--sys-buy); color: #fff; font: 550 13px var(--font); }
.home-apply:hover { background: var(--sys-buy-hover); }
.home-active { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.home-active__chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 10px; border: 0; border-radius: 4px; color: #333; background: #f5f5f3; font: 400 12px var(--font); }
.home-active__chip svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.home-active .home-reset { margin-left: 4px; }
.home-catalog__empty { padding: 64px 16px; text-align: center; }
.home-catalog__empty h3 { margin: 0 0 12px; font-size: 22px; font-weight: 500; }
.home-catalog__empty p { color: #777; margin-bottom: 24px; }
.home-catalog :is(button,select):focus-visible { outline: 2px solid var(--sys-buy); outline-offset: 3px; }
@media (max-width: 1000px) { .home-filters__grid { grid-template-columns: 1fr 1fr; gap: 24px 30px; } }
@media (max-width: 760px) {
  .home-catalog__heading { align-items: stretch; flex-direction: column; gap: 20px; padding-bottom: 20px; }
  .home-catalog__title h2 { font-size: 28px; }
  .home-catalog__tools { display: grid; grid-template-columns: auto minmax(0,1fr); }
  .home-catalog__sort { min-width: 0; }
  .home-catalog__sort select { min-width: 0; font-size: 13px; }
  .home-catalog__header { margin-bottom: 24px; }
  .home-catalog__crumbs { margin-bottom: 14px; }
  .home-collection__head h3 { font-size: 18px; }
  .home-collection__head > span { font-size: 11px; }
  .home-collection + .home-collection { margin-top: 40px; padding-top: 24px; }
  .home-filters__grid { gap: 22px 14px; }
  .home-filter-choice > span { padding: 6px 8px; }
}
@media (max-width: 400px) {
  .home-filter-toggle { padding-inline: 11px; gap: 6px; }
  .home-catalog__sort select { padding-left: 10px; padding-right: 27px; font-size: 12px; }
  .home-catalog__sort svg { right: 8px; }
  .home-filters__grid { grid-template-columns: 1fr; }
  .home-collection__head { align-items: start; }
}
