html.catalog-view main > :not(#products) { display: none !important; }
html.catalog-view #products { min-height: 65vh; padding-top: 72px; }
html.catalog-view #products .heading { grid-template-columns: minmax(110px, .65fr) minmax(0, 2.35fr); gap: 24px; }
html.catalog-view #products .heading h2 { font-size: clamp(40px, 5vw, 72px); line-height: 1.06; overflow-wrap: break-word; }
.catalog-group-title { grid-column: 1 / -1; margin: 30px 0 4px; font-size: 28px; line-height: 1.2; color: #161b21; }
.catalog-group-title:first-child { margin-top: 0; }
.catalog-history { display: flex; align-items: center; gap: 2px; flex: 0 0 auto; }
.catalog-history[hidden] { display: none; }
header nav .catalog-history :is(button, a) {
  width: 34px; height: 38px; display: grid; place-items: center; padding: 0;
  border: 1px solid transparent; border-radius: 12px; color: #234d86;
  background: transparent; text-decoration: none; cursor: pointer;
}
.catalog-history svg { width: 19px; height: 19px; }
header nav .catalog-history button:disabled { opacity: .28; cursor: default; }
header nav .catalog-history :is(button, a):focus-visible { outline: 2px solid #829aaf; outline-offset: 2px; }
@media (hover:hover) {
  header nav .catalog-history :is(button:not(:disabled), a):hover { border-color: #a3b2bf; color: #58738b; }
}
#categories .heading h2[role="link"] { cursor: pointer; }
#categories .heading h2[role="link"]:focus-visible { outline: 1px solid #fff; outline-offset: 8px; }
@media (max-width: 1050px) {
  html.catalog-view header nav { gap: 8px; }
  html.catalog-view header nav .links { gap: 5px; }
  html.catalog-view header nav .links a { padding-inline: 10px; }
}
@media (max-width: 800px) {
  html.catalog-view #products { padding-top: 44px; }
  html.catalog-view #products .heading { grid-template-columns: 1fr; gap: 14px; }
  html.catalog-view #products .heading h2 { font-size: clamp(36px, 7vw, 54px); }
  header nav:has(.catalog-history:not([hidden])) { flex-wrap: wrap; height: auto; min-height: 84px; gap: 8px; padding-block: 12px; }
  header nav .catalog-history { order: 5; width: 100%; justify-content: flex-start; }
  header nav .catalog-history :is(button, a) { width: 38px; height: 34px; }
}
