.categories {
  padding: 0;
  display: flex;
  gap: 16px;
  flex-wrap: nowrap; /* Prevent wrapping to a new line */
  overflow-x: auto; /* Allow horizontal scrolling */
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch; /* for smooth scrolling on iOS devices */
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}

/* Hide scrollbar for Chrome, Safari, and Opera */
.categories ::-webkit-scrollbar {
  display: none;
}

.categories__item {
  cursor: pointer;
  color: #999999;
  padding: 8px 0;
}

.categories__item:hover {
  color: #000;
}

.categories__item_active {
  color: black;
  font-weight: 500;
  border-bottom: 2px solid #da291c;
}

@media screen and (width <= 680px) {
  .categories {
    padding: 0 16px;
  }
  .categories__item {
    font-size: 14px;
  }
}
