.tag + h1,
.tag + h2,
.kicker + h1,
.kicker + h2 {
  margin-top: 16px;
}

.tools,
.catalog-tools,
.department-controls {
  min-width: 0;
}

.filters,
.catalog-filters,
.department-filters {
  min-width: 0;
  max-width: 100%;
  overscroll-behavior-inline: contain;
}

.filters .filter,
.catalog-filters button,
.department-filters button {
  flex: 0 0 auto;
}

.nav-links {
  min-width: 0;
}

@media (max-width: 820px) {
  .filters,
  .catalog-filters,
  .department-filters {
    display: flex;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 4px;
    scrollbar-width: none;
    mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 34px), transparent);
  }

  .filters::-webkit-scrollbar,
  .catalog-filters::-webkit-scrollbar,
  .department-filters::-webkit-scrollbar {
    display: none;
  }

  .hero-actions,
  .button-row {
    padding-right: 58px;
  }

  .hero-actions .button,
  .button-row .button {
    max-width: 100%;
  }

  .section-title,
  .section-head,
  .machine-title {
    gap: 16px;
  }

  .nav-links {
    max-width: 100%;
  }

  header.wrap.nav:not(:has(.catalog-menu-toggle)) {
    min-height: 64px !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 8px 10px !important;
    border-radius: 18px !important;
  }

  header.wrap.nav:not(:has(.catalog-menu-toggle)) .brand {
    flex: 0 0 auto;
    max-width: 48%;
    gap: 8px;
    font-size: .78rem;
    line-height: 1;
    white-space: nowrap;
  }

  header.wrap.nav:not(:has(.catalog-menu-toggle)) .brand img {
    width: 34px;
    height: 34px;
  }

  header.wrap.nav:not(:has(.catalog-menu-toggle)) .nav-links {
    flex: 1 1 auto;
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 6px;
    padding-bottom: 2px;
    scrollbar-width: none;
    mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 24px), transparent);
  }

  header.wrap.nav:not(:has(.catalog-menu-toggle)) .nav-links::-webkit-scrollbar {
    display: none;
  }

  header.wrap.nav:not(:has(.catalog-menu-toggle)) .nav-links a {
    min-height: 34px;
    flex: 0 0 auto;
    padding: 0 10px;
    font-size: .68rem;
    white-space: nowrap;
  }
}

@media (max-width: 560px) {
  .hero-actions,
  .button-row {
    padding-right: 54px;
  }

  .tag + h1,
  .tag + h2,
  .kicker + h1,
  .kicker + h2 {
    margin-top: 14px;
  }
}
