/* Kategória-csempék a fejléc alatti kép és a szűrők között */
.category-tiles {
  background-color: #fff;
  border-bottom: 1px solid #e0e0e0;
  padding: 14px 12px 8px;
}

.category-tiles-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 4px 10px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.category-tile {
  flex: 0 0 auto;
  width: 104px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.14);
  cursor: pointer;
  font: inherit;
  overflow: hidden;
  scroll-snap-align: start;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.category-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
}

.category-tile.active {
  border-color: #c19a6b;
  box-shadow: 0 0 0 2px rgba(193, 154, 107, 0.35);
}

.category-tile-img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: #eef1f4;
}

.category-tile-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-tile-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  background: linear-gradient(135deg, #f3e9dc, #e4d3bb);
}

.category-tile-label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.7em;
  padding: 5px 4px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  color: #333;
  text-align: center;
}

.category-tiles-note {
  margin: 2px 0 4px;
  font-size: 11px;
  color: #888;
  text-align: center;
}

@media (min-width: 900px) {
  .category-tiles-row {
    flex-wrap: wrap;
    justify-content: center;
    overflow-x: visible;
    max-width: 1000px;
    margin: 0 auto;
  }

  .category-tile {
    width: 128px;
  }

  .category-tile-label {
    font-size: 13px;
  }
}
