.catalog-page .pd-header-inner {
  gap: clamp(18px, 2.5vw, 36px);
}

.catalog-page .pd-header .logo { margin-right: 0; }
.catalog-page .pd-header nav { gap: clamp(16px, 2.2vw, 32px); }
.catalog-page .pd-header nav a[aria-current="page"] { color: #646986; }

.cat-header-search {
  height: 44px;
  min-width: 180px;
  max-width: 510px;
  flex: 1;
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid #d9ddeb;
  border-radius: 11px;
  background: #eceef6;
}

.cat-header-search:focus-within { outline: 2px solid #646986; outline-offset: 2px; }
.cat-header-search input {
  width: 100%;
  height: 100%;
  min-width: 0;
  flex: 1;
  padding: 0 15px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #242958;
  font-size: 12px;
}
.cat-header-search input::placeholder { color: #646986; }
.cat-header-search button {
  width: 44px;
  height: 44px;
  flex: none;
  display: grid;
  place-items: center;
  border: 0;
  background: #d9ddeb;
  color: #242958;
}
.cat-header-search button:hover { background: #d9ddeb; }

.catalog-page .cat-hero {
  align-items: center;
  padding-top: 33px;
  padding-bottom: 36px;
  border-bottom: 0;
}
.catalog-page .cat-hero h1 {
  margin-top: 8px;
  font-size: clamp(38px, 4vw, 57px);
}
.catalog-page .cat-hero > p { max-width: 355px; margin-bottom: 3px; }

.cat-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  align-items: start;
  gap: clamp(25px, 3vw, 45px);
  padding-top: 3px;
  scroll-margin-top: 100px;
}
.cat-sidebar {
  position: relative;
  border: 1px solid #d9ddeb;
  border-radius: 13px;
  background: #f7f8fc;
}
.cat-sidebar-controls { padding: 25px 19px 21px; }
.cat-sidebar-head {
  margin-bottom: 23px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eceef6;
}
.cat-sidebar-head h2 {
  margin: 9px 0 0;
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 400;
  letter-spacing: -.04em;
}
.cat-sidebar .cat-select {
  height: auto;
  min-height: 58px;
  margin-top: 10px;
  padding: 8px 12px;
  border-color: #d9ddeb;
  border-radius: 8px;
}
.cat-sidebar .cat-select span { margin-bottom: 3px; }
.cat-sidebar .cat-select select { font-size: 11px; }
.cat-sidebar-reset {
  width: 100%;
  min-height: 42px;
  margin-top: 19px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 0;
  border-bottom: 1px solid #646986;
  background: transparent;
  color: #242958;
  font-size: 11px;
  font-weight: 800;
  text-align: left;
}
.cat-sidebar-reset[hidden] { display: none; }
.cat-sidebar-reset span { font-size: 17px; font-weight: 400; }
.cat-sidebar-note { margin: 24px 0 0; color: #646986; font-size: 10px; line-height: 1.6; }
.cat-price-filter { margin: 0 0 20px; padding: 0; border: 0; min-width: 0; }
.cat-price-filter legend { margin-bottom: 10px; font-size: 11px; font-weight: 700; color: #454d80; }
.cat-price-inputs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.cat-price-inputs label { display: flex; align-items: center; gap: 6px; min-width: 0; height: 43px; padding: 0 9px; border: 1px solid #d9ddeb; border-radius: 8px; background: white; }
.cat-price-inputs label:focus-within { outline: 2px solid #646986; outline-offset: 2px; }
.cat-price-inputs span { font-size: 10px; color: #646986; }
.cat-price-inputs input { width: 100%; min-width: 0; padding: 0; border: 0; outline: 0; background: transparent; font: 600 12px Manrope, Arial, sans-serif; color: #242958; appearance: textfield; }
.cat-price-inputs input::-webkit-inner-spin-button { appearance: none; }
.cat-price-inputs input::placeholder { color: #646986; font-weight: 400; }
.cat-tone-note { margin: 10px 0 0; font-size: 10px; line-height: 1.5; color: #646986; }
.cat-tone-note[hidden] { display: none; }
.cat-filter-toggle { display: none; }

.cat-layout .cat-results { min-width: 0; }
.cat-layout .cat-results-top {
  min-height: 63px;
  margin-bottom: 17px;
  padding: 0 0 15px;
  border-top: 0;
  border-bottom: 1px solid #d9ddeb;
}
.cat-layout .cat-results-top > div { gap: 14px; }
.cat-layout .cat-results-top #favoriteFilter {
  min-height: 41px;
  padding: 0 13px;
  border: 1px solid #d9ddeb;
  border-radius: 7px;
  background: #f7f8fc;
  white-space: nowrap;
}
.cat-layout .cat-results-top #favoriteFilter:hover { background: #eceef6; }
.cat-layout .cat-sort { width: 175px; height: 43px; padding: 4px 12px; border-radius: 7px; }
.cat-layout .cat-sort span { font-size: 8px; }
.cat-layout .cat-sort select { font-size: 10px; }
.cat-layout .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 13px; }
.cat-layout .real-card-image { height: clamp(230px, 27vw, 355px); }

@media (max-width: 1020px) {
  .catalog-page .pd-header nav a:nth-child(2) { display: none; }
  .cat-layout { grid-template-columns: 225px minmax(0, 1fr); gap: 24px; }
  .cat-layout .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .catalog-page .pd-header-inner {
    height: auto;
    min-height: 114px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px 18px;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .catalog-page .pd-header .logo { font-size: 32px; }
  .catalog-page .pd-header nav { justify-content: flex-end; gap: 18px; }
  .catalog-page .pd-header nav a { font-size: 10px; }
  .catalog-page .pd-header nav a[aria-current="page"] { display: none; }
  .cat-header-search { grid-column: 1 / -1; grid-row: 2; max-width: none; min-width: 0; width: 100%; height: 42px; }
  .cat-header-search button { height: 42px; width: 42px; }
  .catalog-page .cat-hero { display: block; padding-top: 22px; padding-bottom: 23px; }
  .catalog-page .cat-hero h1 { font-size: 39px; }
  .catalog-page .cat-hero > p { margin: 13px 0 0; font-size: 11px; }
  .cat-layout { display: block; scroll-margin-top: 125px; }
  .cat-sidebar { position: static; margin-bottom: 16px; }
  .cat-filter-toggle {
    width: 100%;
    min-height: 51px;
    padding: 0 17px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 0;
    background: transparent;
    color: #242958;
    font-size: 12px;
    font-weight: 800;
  }
  .cat-filter-toggle > span:first-child { display: flex; align-items: center; gap: 8px; }
  .cat-filter-badge { min-width: 19px; height: 19px; padding: 1px 5px; border-radius: 20px; background: #242958; color: white; font-size: 10px; line-height: 17px; }
  .cat-filter-badge[hidden] { display: none; }
  .cat-filter-chevron { font-size: 19px; font-weight: 400; transition: transform .18s; }
  .cat-filter-toggle[aria-expanded="true"] .cat-filter-chevron { transform: rotate(180deg); }
  .cat-sidebar-controls { display: none; padding: 0 17px 20px; }
  .cat-sidebar.is-open .cat-sidebar-controls { display: block; }
  .cat-sidebar-head { display: none; }
  .cat-sidebar .cat-select { margin-top: 9px; }
  .cat-sidebar-note { margin-top: 17px; }
  .cat-layout .cat-results-top { min-height: 56px; margin-bottom: 17px; }
  .cat-layout .cat-results-top > div { gap: 6px; }
  .cat-layout .cat-results-top #favoriteFilter { min-height: 38px; padding: 0 8px; font-size: 9px; }
  .cat-layout .cat-sort { width: 130px; height: 39px; padding-inline: 8px; }
  .cat-layout .cat-sort select { font-size: 9px; }
  .cat-layout .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 31px 9px; }
  .cat-layout .real-card-image { height: 230px; }
}

@media (max-width: 420px) {
  .catalog-page .cat-hero h1 { font-size: 34px; }
  .cat-layout .cat-results-top p { font-size: 10px; }
  .cat-layout .cat-sort { width: 110px; }
  .cat-layout .cat-sort span { font-size: 7px; }
  .cat-layout .cat-sort select { font-size: 8px; }
  .cat-layout .real-card-image { height: 185px; }
}

.cat-filter-group { min-width: 0; margin: 0; padding: 18px 0; border: 0; border-top: 1px solid #d9ddeb; }
.cat-filter-group legend { float: left; width: 100%; padding: 0; margin-bottom: 9px; font-size: 12px; font-weight: 700; color: #242958; }
.cat-filter-options { clear: both; }
.cat-checkbox { display: flex; align-items: center; gap: 9px; min-height: 35px; padding: 5px 2px; cursor: pointer; }
.cat-checkbox[hidden] { display: none; }
.cat-checkbox input { appearance: none; flex: none; width: 17px; height: 17px; margin: 0; border: 1px solid #a9aec4; border-radius: 4px; background: #fffefa; cursor: pointer; }
.cat-checkbox input:checked { border-color: #454d80; background: #454d80 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3.5 8 3 3 6-6' fill='none' stroke='white' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/15px no-repeat; }
.cat-checkbox input:focus-visible { outline: 2px solid #646986; outline-offset: 3px; }
.cat-checkbox span { min-width: 0; font-size: 12px; line-height: 1.45; color: #454d80; }
.cat-checkbox input:checked + span { color: #242958; font-weight: 600; }
.cat-checkbox:hover span { color: #242958; }
.cat-checkbox.is-unavailable { cursor: default; }
.cat-checkbox.is-unavailable span, .cat-checkbox.is-unavailable:hover span { color: #a9aec4; }
.cat-checkbox input:disabled { border-color: #d9ddeb; background: #eceef6; cursor: default; }
.cat-checkbox.is-unavailable small { color: #a9aec4; }
.cat-checkbox small { margin-left: auto; padding-left: 6px; font-size: 10px; color: #646986; }
.cat-filter-options-long { max-height: 210px; overflow-y: auto; overscroll-behavior: contain; scrollbar-color: #a9aec4 transparent; scrollbar-width: thin; padding-right: 5px; }
.cat-filter-search { clear: both; width: 100%; height: 35px; margin: 0 0 9px; padding: 0 10px; border: 1px solid #d9ddeb; border-radius: 7px; background: #f7f8fc; color: #242958; font: 11px Manrope, Arial, sans-serif; }
.cat-filter-search:focus { outline: 2px solid #646986; outline-offset: 1px; }
.catalog-page .cat-filter-toggle { display: none; }
.catalog-page .cat-sidebar-controls { display: block; }
@media (max-width: 760px) {
  .catalog-page .cat-sidebar-controls { padding: 20px 17px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
  .cat-price-filter, .cat-sidebar-reset, .cat-sidebar-note { grid-column: 1 / -1; }
  .cat-checkbox { min-height: 40px; }
  .cat-checkbox span { font-size: 11px; }
}
