/* Keep the brand menu as a compact vertical list on the left. */
.catalog {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  column-gap: 34px;
  align-items: start;
}

.catalog-header {
  grid-column: 1 / -1;
}

#brands {
  grid-column: 1;
  grid-row: 2;
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  align-items: flex-start;
  justify-content: flex-start !important;
  overflow: visible;
  width: max-content;
  max-width: 220px;
  margin: 0 !important;
  scrollbar-width: thin;
}

#lines {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  overflow-x: auto;
}

.catalog > section {
  grid-column: 2;
  grid-row: 2;
  width: 100%;
  margin: 0 !important;
}

#brands button,
#lines button {
  flex: 0 0 auto;
}

@media (max-width: 760px) {
  .catalog {
    display: block;
  }

  #brands {
    width: 100%;
    max-width: none;
    flex-direction: row !important;
    overflow-x: auto;
    margin: 24px 0 0 !important;
  }

  .catalog > section {
    margin-top: 28px !important;
  }
}
