:root {
  --catalog-accent: var(--home-accent);
  --catalog-heading: var(--home-graphite);
  --catalog-text: #444;
}

button,
input {
  font: inherit;
}

.new-site-shell {
  color: #111111;
  font-weight: 500;
}

.new-site-shell:not(.site-frame) {
  width: min(100%, 1200px);
  margin: 0 auto;
}

.catalog-sections-main {
  min-height: 65vh;
  padding: 40px 0 60px;
}

.catalog-sections-main h1 {
  margin: 0 0 28px;
  color: var(--catalog-heading);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.2;
}

.catalog-sections-grid {
  --catalog-section-columns: 4;
  --catalog-section-gap: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: var(--catalog-section-gap);
}

.catalog-section-card {
  min-width: 0;
  min-height: 150px;
  flex: 0 0 calc((100% - (var(--catalog-section-columns) - 1) * var(--catalog-section-gap)) / var(--catalog-section-columns));
  text-decoration: none;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.catalog-section-card:focus-visible {
  outline: 2px solid var(--home-graphite);
  outline-offset: 3px;
}

.new-catalog-main {
  padding: 40px 0 60px;
}

.new-catalog-results {
  position: relative;
  min-height: 400px;
}

.new-catalog-results.is-loading {
  opacity: 0.55;
  pointer-events: none;
}

.new-other-main {
  display: grid;
  min-height: calc(100vh - 164px);
  padding: 60px 0;
  place-items: center;
}

.new-other-results {
  display: grid;
  width: 100%;
  place-items: center;
}

.new-other-catalog {
  color: var(--catalog-text);
  text-align: center;
}

.new-other-catalog h1 {
  margin: 0;
  color: var(--catalog-heading);
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.2;
}

.new-other-catalog__call {
  display: inline-flex;
  min-width: 230px;
  height: 40px;
  align-items: center;
  justify-content: center;
  margin-top: 28px;
  padding: 0 24px;
  border-radius: 0;
  background: var(--catalog-accent);
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.new-other-catalog__call:hover,
.new-other-catalog__call:focus-visible {
  background: var(--catalog-heading);
  color: #ffffff;
}

.new-product-main {
  padding: 40px 0 80px;
}

.new-product-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.new-product-detail {
  display: grid;
  grid-template-columns: min(36%, 430px) minmax(0, 1fr);
  grid-template-areas: "media title" "media content";
  grid-template-rows: auto 1fr;
  align-items: start;
  gap: clamp(16px, 2vw, 24px) clamp(24px, 3.5vw, 50px);
  margin-top: 32px;
  color: var(--catalog-text);
}

.new-product-detail__media {
  position: relative;
  grid-area: media;
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid #dedede;
  background: #ffffff;
}

.new-product-detail__media img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  padding: clamp(12px, 2vw, 24px);
  object-fit: contain;
}

.new-product-detail__content {
  grid-area: content;
  min-width: 0;
}

.new-product-detail h1 {
  grid-area: title;
  margin: 0;
  color: var(--catalog-heading);
  font-family: "IBM Plex Mono", monospace;
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 500;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.new-product-detail__purchase {
  display: grid;
  gap: 6px;
  padding: clamp(12px, 2vw, 24px);
  background: var(--home-card-surface);
}

.new-product-detail__purchase .new-catalog-product__price {
  font-size: clamp(23px, 2.3vw, 32px);
  overflow-wrap: anywhere;
}

.new-product-detail__purchase .collection-product-actions {
  margin-block-start: 8px;
}

@media (width > 1040px) {
  .new-product-detail__purchase {
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 16px;
  }

  .new-product-detail__purchase > :is(.new-catalog-product__price-caption, .new-catalog-product__price) {
    grid-column: 1;
  }

  .new-product-detail__purchase .collection-product-actions {
    grid-area: 1 / 2 / span 2;
    align-self: center;
    justify-content: flex-end;
    margin-block-start: 0;
  }
}

.new-product-detail__content > p {
  margin: 18px 0 0;
  color: var(--catalog-text);
  font-size: 16px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.new-product-detail__specs {
  display: grid;
  gap: 0;
  margin: 28px 0 0;
}

.new-product-detail__specs div {
  display: grid;
  min-height: 42px;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  align-items: center;
  gap: clamp(12px, 2vw, 24px);
  padding-block: 8px;
  border-bottom: 1px solid #ebecec;
}

.new-product-detail__specs dt,
.new-product-detail__specs dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.new-product-detail__specs dt {
  color: #555;
}

.new-product-detail__specs dd {
  color: var(--catalog-heading);
  font-weight: 500;
}

.new-privacy-page {
  padding: 40px 0 80px;
}

.privacy-policy {
  max-width: 1000px;
  padding: clamp(28px, 5vw, 56px);
  margin: 0 auto;
  border-radius: 0;
  background: #ebecec;
  color: var(--catalog-text);
  overflow-wrap: anywhere;
}

.privacy-policy h1 {
  margin: 0;
  color: var(--catalog-heading);
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.privacy-policy h2 {
  margin: 38px 0 0;
  color: var(--catalog-heading);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.3;
}

.privacy-policy h3 {
  margin: 22px 0 0;
  color: var(--catalog-heading);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
}

.privacy-policy p,
.privacy-policy li {
  font-size: 15px;
  line-height: 1.65;
}

.privacy-policy p {
  margin: 12px 0 0;
}

.privacy-policy__clause {
  padding-left: 0;
}

.privacy-policy ul {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 12px 0 0;
  list-style: none;
}

.privacy-policy li {
  position: relative;
  padding-left: 22px;
}

.privacy-policy li::before {
  position: absolute;
  top: 0;
  left: 0;
  color: #77736d;
  content: "—";
}

.privacy-policy a {
  color: var(--catalog-accent);
  text-decoration: none;
}

.privacy-policy a:hover,
.privacy-policy a:focus-visible {
  color: var(--catalog-heading);
}

.new-catalog-content {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}

.new-catalog-list {
  display: grid;
  gap: 32px;
  min-width: 0;
}

.new-catalog-product {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 180px;
  gap: 28px;
  min-width: 0;
  min-height: 220px;
  align-items: start;
  padding: 0;
  border: 0;
  background: #ffffff;
}

.new-catalog-product__media {
  display: flex;
  width: 220px;
  height: 220px;
  align-items: center;
  justify-content: center;
}

.new-catalog-product__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.new-catalog-product__description {
  min-width: 0;
  padding-top: 4px;
}

.new-catalog-product__description h2 {
  margin: 0;
  font: 500 18px/1.35 "IBM Plex Mono", monospace;
  overflow-wrap: anywhere;
}

.new-catalog-product__description a {
  color: #111111;
  text-decoration: none;
}

.new-catalog-product__description a:hover,
.new-catalog-product__description a:focus-visible {
  color: var(--catalog-accent);
}

.new-catalog-product__characteristics {
  display: grid;
  gap: 5px;
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.25;
}

.new-catalog-product__characteristics div {
  display: flex;
  min-width: 0;
  gap: 4px;
}

.new-catalog-product__characteristics dt,
.new-catalog-product__characteristics dd {
  margin: 0;
}

.new-catalog-product__characteristics dt {
  flex: 0 0 auto;
  color: #858585;
}

.new-catalog-product__characteristics dd {
  overflow: hidden;
  color: #333333;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.new-catalog-product__purchase {
  display: flex;
  align-items: flex-end;
  align-self: center;
  flex-direction: column;
  gap: 8px;
  text-align: right;
}

.new-catalog-product__price-caption {
  color: #555;
  font-size: 13px;
  line-height: 1.2;
}

.new-catalog-product__price {
  color: #111111;
  font: 500 20px/1.2 "IBM Plex Mono", monospace;
}

.new-catalog-empty {
  margin: 0;
  padding: 20px 0;
  color: #555555;
  font-size: 15px;
}

.filter-panel {
  min-width: 0;
  background: #ffffff;
}

.filter-panel__mobile-bar,
.filter-panel__toggle {
  display: none;
}

.filter-panel__heading {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  font-family: "IBM Plex Mono", monospace;
  font-size: 16px;
  font-weight: 500;
}

.filter-panel__reset {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--catalog-accent);
  cursor: pointer;
  font-size: 14px;
}

.filter-group {
  border: 0;
}

.filter-group summary {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  min-height: 52px;
  align-content: center;
  column-gap: 12px;
  row-gap: 5px;
  padding: 8px 18px 8px 0;
  cursor: pointer;
  list-style: none;
}

.filter-group summary::-webkit-details-marker {
  display: none;
}

.filter-group summary::after {
  content: '';
  position: absolute;
  width: 7px;
  height: 7px;
  top: 50%;
  right: 4px;
  margin-top: -6px;
  border-right: 1px solid #111111;
  border-bottom: 1px solid #111111;
  transform: rotate(45deg);
}

.filter-group[open] summary::after {
  transform: rotate(225deg);
}

.filter-group__name {
  font-size: 14px;
  font-weight: 700;
}

.filter-group summary small {
  grid-column: 1;
  overflow: hidden;
  color: #777777;
  font-size: 12px;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.filter-group__body {
  max-height: 260px;
  overflow-y: auto;
  padding: 0 8px 12px 0;
}

.filter-group__options {
  display: grid;
  gap: 3px;
}

.filter-option {
  display: flex;
  min-height: 32px;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  font-size: 13px;
  line-height: 1.25;
}

.filter-option input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--catalog-accent);
}

.range-filter {
  padding: 12px 0 18px;
}

.range-filter__header,
.range-filter__bounds {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.range-filter__header {
  font-size: 13px;
  font-weight: 700;
}

.range-filter__header output,
.range-filter__bounds {
  color: #777777;
  font-size: 11px;
  font-weight: 400;
}

.range-filter__inputs {
  position: relative;
  height: 28px;
  margin-top: 8px;
}

.range-filter__track {
  position: absolute;
  top: 12px;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(to right, #d3d3d3 0 var(--range-start), var(--catalog-accent) var(--range-start) var(--range-end), #d3d3d3 var(--range-end) 100%);
}

.range-filter__inputs input[type='range'] {
  position: absolute;
  width: 100%;
  height: 22px;
  margin: 2px 0 0;
  appearance: none;
  background: transparent;
  pointer-events: none;
}

.range-filter__inputs input[type='range']::-webkit-slider-runnable-track {
  height: 3px;
  background: transparent;
}

.range-filter__inputs input[type='range']::-webkit-slider-thumb {
  width: 16px;
  height: 16px;
  margin-top: -7px;
  appearance: none;
  border: 0;
  border-radius: 50%;
  background: var(--catalog-accent);
  pointer-events: auto;
  cursor: pointer;
}

.range-filter__inputs input[type='range']::-moz-range-track {
  height: 3px;
  background: transparent;
}

.range-filter__inputs input[type='range']::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  background: var(--catalog-accent);
  pointer-events: auto;
  cursor: pointer;
}

.filter-panel__empty {
  color: #777777;
  font-size: 13px;
  line-height: 1.5;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}

.pagination a,
.pagination span {
  display: inline-flex;
  min-width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  color: #111111;
  text-decoration: none;
}

.pagination__current {
  background: var(--catalog-accent);
  color: #ffffff !important;
}

.search__suggestion-content {
  display: grid;
}

.search__suggestion-content.has-helper {
  grid-template-columns: 180px minmax(0, 1fr);
}

.search-helper {
  padding: 14px 12px;
  border-right: 1px solid #ebecec;
  background: #f7f7f7;
}

.search-helper__title {
  margin: 0 0 10px;
  color: #252422;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
}

.search-helper__list {
  display: grid;
  gap: 6px;
}

.search-helper__item {
  display: flex;
  width: 100%;
  min-height: 34px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 8px;
  border: 1px solid #ebecec;
  border-radius: 0;
  background: #ffffff;
  color: #403d38;
  cursor: pointer;
  font: 500 13px/1.2 "IBM Plex Sans", system-ui, sans-serif;
  text-align: left;
}

.search-helper__item:hover,
.search-helper__item:focus-visible,
.search-helper__item.is-active {
  border-color: var(--home-accent);
  outline: none;
  background: rgb(245 134 52 / 8%);
  color: var(--home-accent);
}

.search-helper__item span {
  min-width: 0;
}

.search-helper__item small {
  color: inherit;
  font-size: 12px;
}

.search-helper__reset {
  margin: 10px 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--home-accent);
  cursor: pointer;
  font: 500 13px/1.2 "IBM Plex Sans", system-ui, sans-serif;
}

@media (max-width: 1232px) {
  .new-site-shell:not(.site-frame) {
    width: auto;
    margin-inline: 16px;
  }
}

@media (width < 1360px) {
  .site-frame:is(.catalog-sections-main, .new-catalog-main, .new-product-main) {
    width: 100%;
    min-width: 0;
    padding-block: clamp(16px, 3vw, 36px) clamp(28px, 5vw, 56px);
    padding-inline: clamp(12px, 2.5vw, 28px);
  }

  .catalog-sections-grid {
    --catalog-section-columns: 3;
    --catalog-section-gap: clamp(10px, 1.5vw, 20px);
  }

  .catalog-section-card {
    min-height: clamp(112px, 12vw, 150px);
    justify-content: flex-start;
    padding: clamp(12px, 2vw, 24px);
  }

  .catalog-section-card h2 {
    font-size: clamp(14px, 2.2vw, 18px);
  }

  .new-catalog-results {
    min-height: 0;
  }

  .new-catalog-content {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .filter-panel__mobile-bar {
    display: block;
  }

  .filter-panel__toggle {
    display: flex;
    width: 100%;
    min-height: 44px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 16px;
    border: 0;
    background: var(--home-graphite);
    color: #fff;
    cursor: pointer;
    font: 500 15px/1.2 "IBM Plex Mono", monospace;
  }

  .filter-panel__toggle::after {
    width: 8px;
    height: 8px;
    margin-block-start: -4px;
    border-inline-end: 1px solid currentColor;
    border-block-end: 1px solid currentColor;
    transform: rotate(45deg);
    content: "";
  }

  .filter-panel__toggle[aria-expanded="true"]::after {
    margin-block-start: 4px;
    transform: rotate(225deg);
  }

  .filter-panel__toggle:focus-visible {
    outline: 2px solid var(--catalog-accent);
    outline-offset: 2px;
  }

  .filter-panel__body {
    display: none;
    padding: 4px 16px 12px;
    border: 1px solid #dedede;
    border-top: 0;
  }

  .filter-panel.is-open .filter-panel__body {
    display: block;
  }

  .filter-panel__heading:has(.filter-panel__title) {
    display: none;
  }

  .filter-panel__reset {
    min-height: 44px;
    color: var(--catalog-heading);
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  .filter-option {
    min-height: 44px;
    overflow-wrap: anywhere;
  }

  .filter-option input {
    flex: none;
  }

  .new-catalog-list {
    gap: clamp(12px, 2vw, 20px);
  }

  .new-catalog-product {
    grid-template-columns: clamp(92px, 24vw, 200px) minmax(0, 1fr) max-content;
    min-height: 0;
    align-items: stretch;
    gap: 0;
    border: 1px solid #dedede;
    background: var(--home-card-surface);
  }

  .new-catalog-product__media {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    min-height: clamp(104px, 18vw, 180px);
    background: #fff;
  }

  .new-catalog-product__media img {
    position: absolute;
    inset: 0;
    padding: clamp(8px, 1.5vw, 16px);
  }

  .new-catalog-product__description,
  .new-catalog-product__purchase {
    padding: clamp(12px, 2vw, 20px);
  }

  .new-catalog-product__description h2 {
    font-size: clamp(15px, 2vw, 18px);
  }

  .new-catalog-product__characteristics div {
    flex-wrap: wrap;
    gap: 0 6px;
    overflow-wrap: anywhere;
  }

  .new-catalog-product__characteristics dt {
    flex: 0 1 auto;
    color: #555;
  }

  .new-catalog-product__characteristics dd {
    overflow: visible;
    white-space: normal;
  }

  .new-catalog-product__purchase :is(.new-catalog-product__price-caption, .new-catalog-product__price) {
    overflow-wrap: anywhere;
  }

  .new-catalog-product__purchase .collection-status:empty {
    display: none;
  }

  .new-catalog-product__purchase .collection-button,
  .new-product-detail__purchase .collection-button,
  .new-product-back.collection-button {
    min-height: 44px;
  }

  .pagination {
    flex-wrap: wrap;
    margin-block-start: 24px;
  }

  .pagination a,
  .pagination span {
    min-width: 38px;
    height: 44px;
  }

  .pagination__current {
    background: var(--home-graphite);
  }

  .new-product-detail {
    margin-block-start: 16px;
  }

  .new-product-detail h1 {
    font-size: clamp(22px, 3.25vw, 32px);
  }

  .new-product-detail__specs {
    margin-block-start: 18px;
  }
}

@media (max-width: 820px) {
  .new-privacy-page {
    padding-top: 20px;
  }
}

@media (max-width: 720px) {
  .catalog-sections-grid {
    --catalog-section-columns: 2;
  }

  .new-catalog-product {
    grid-template-columns: clamp(92px, 27vw, 180px) minmax(0, 1fr);
  }

  .new-catalog-product__purchase {
    display: grid;
    grid-column: 1 / -1;
    align-items: center;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 12px;
    border-block-start: 1px solid #dedede;
    text-align: start;
  }

  .new-catalog-product__purchase .new-catalog-product__price-caption {
    grid-area: 1 / 1;
  }

  .new-catalog-product__purchase .new-catalog-product__price {
    grid-area: 2 / 1;
  }

  .new-catalog-product__purchase .collection-product-actions {
    grid-area: 1 / 2 / span 2;
    text-align: end;
  }

  .new-product-detail {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "title" "media" "content";
    grid-template-rows: auto;
    gap: 16px;
  }

  .new-product-detail__media {
    aspect-ratio: 4 / 3;
    max-block-size: 320px;
  }
}

@media (max-width: 480px) {
  .new-catalog-product__description {
    display: contents;
  }

  .new-catalog-product__description h2 {
    align-self: center;
    padding: 12px;
  }

  .new-catalog-product__characteristics {
    grid-column: 1 / -1;
    gap: 5px;
    margin: 0;
    padding: 8px 12px 12px;
  }

  .new-catalog-product__characteristics:empty {
    display: none;
  }

  .new-catalog-product__characteristics div {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  }

  .new-product-detail__purchase .collection-product-actions .collection-button {
    flex: 1 1 112px;
    min-width: 0;
  }
}

@media (max-width: 1050px) {
  .search__suggestion-content.has-helper {
    grid-template-columns: minmax(0, 1fr);
  }

  .search-helper {
    padding: 12px;
    border-right: 0;
    border-bottom: 1px solid #ebecec;
  }

  .search-helper__title {
    margin-bottom: 8px;
  }

  .search-helper__list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .search-helper__item {
    min-width: 0;
    min-height: 38px;
    flex: 1 1 140px;
  }
}
