/* Main catalogue categories live beside the brand, above the product filters. */
.catalog-v2 .site-header .header-row {
  width: min(1760px, calc(100% - 64px));
  max-width: 1760px;
  min-height: 82px;
  height: auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.catalog-v2 .site-header .logo { flex-shrink: 0; }
.catalog-v2 .site-header .header-actions { flex-shrink: 0; gap: 18px; }
.catalog-v2 .site-header .header-categories {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0;
  margin: 0;
  padding: 2px;
  border: 0;
}
.catalog-v2 .site-header .header-categories button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 8px 10px;
  flex-shrink: 0;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #4b675a;
  background: transparent;
  font: 600 12px/1.4 system-ui, -apple-system, "Segoe UI", "Noto Sans SC", Arial, sans-serif;
  white-space: nowrap;
  transition: color .16s, background .16s, border-color .16s;
}
.catalog-v2 .site-header .header-categories button svg { width: 16px; height: 16px; flex-shrink: 0; }
.catalog-v2 .site-header .header-categories button > span {
  min-width: 21px;
  padding: 3px 5px;
  border-radius: 5px;
  background: #f0f4f1;
  color: #7b9084;
  text-align: center;
  font-size: 10px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.catalog-v2 .site-header .header-categories button.selected {
  background: #1a5743;
  border-color: #1a5743;
  color: #fff;
  box-shadow: 0 2px 5px #1a57431a;
}
.catalog-v2 .site-header .header-categories button.selected > span { color: #e4f2ea; background: #ffffff20; }
.catalog-v2 .site-header .header-categories button:not(.selected):hover { background: #f0f6f2; border-color: #dce8df; color: #1a5743; }
.catalog-v2 .site-header .header-categories button:focus-visible { outline: 2px solid #3b8263; outline-offset: 2px; }
@media (max-width: 1560px) {
  .catalog-v2 .site-header .header-row { grid-template-columns: 1fr auto; gap: 8px 16px; padding-bottom: 9px; }
  .catalog-v2 .site-header .header-categories {
    grid-row: 2;
    grid-column: 1 / -1;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 6px 2px;
    border-top: 1px solid #edf2ee;
    scrollbar-width: thin;
    scrollbar-color: #bdcec2 transparent;
    overscroll-behavior-x: contain;
  }
  .catalog-v2 .site-header .header-actions { grid-row: 1; grid-column: 2; }
}
@media (max-width: 760px) {
  .catalog-v2 .site-header .header-row { width: calc(100% - 28px); gap: 7px 10px; padding-top: 12px; }
  .catalog-v2 .site-header .header-actions { gap: 10px; }
  .catalog-v2 .site-header .header-categories button { min-height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .catalog-v2 .site-header .header-categories button { transition: none; }
}
