/* Kategorie-Navigation — nur Bild + Label (ohne Kachel-Hintergrund) */

.je-cats-wrap {
  background: var(--je-surface, #fff);
  border-bottom: 1px solid var(--je-line, #ece5dc);
}

.je-cats {
  display: flex;
  align-items: flex-end;
  flex-wrap: nowrap;
  gap: 1.1rem;
  padding: 0.85rem 0 1rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.je-cats::-webkit-scrollbar {
  display: none;
}

.je-cat-btn {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  width: 5.5rem;
  padding: 0 !important;
  border: none !important;
  border-radius: 0;
  background: transparent !important;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  cursor: pointer;
  scroll-snap-align: start;
  color: var(--je-muted, #7a6a58);
  transition: color 150ms ease, transform 150ms ease;
}

.je-cat-btn:hover {
  color: var(--je-text, #1a1208);
  border-color: transparent !important;
}

.je-cat-btn.is-active {
  color: var(--je-text, #1a1208);
  background: transparent !important;
  border-color: transparent !important;
}

.je-cat-btn__tile {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 5.25rem;
  height: 4.25rem;
  background: transparent;
  border: none;
  box-shadow: none;
  transition: transform 180ms ease;
}

.je-cat-btn.is-active .je-cat-btn__tile {
  transform: translateY(-2px);
}

.je-cat-btn__img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 5.25rem;
  max-height: 4.25rem;
  object-fit: contain;
  object-position: center bottom;
  border-radius: 0;
  image-rendering: auto;
}

.je-cat-btn__fallback {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 12px;
  border: 1px dashed var(--je-line, #e0d6cc);
  color: var(--je-muted, #7a6a58);
  font-size: 1.1rem;
  background: transparent;
}

.je-cat-btn__label {
  display: block;
  max-width: 5.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.je-cat-btn.is-active .je-cat-btn__label {
  color: var(--je-orange, #ff7a00);
}

@media (min-width: 640px) {
  .je-cats {
    gap: 1.2rem;
    padding: 0.95rem 0 0.85rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(26, 18, 8, 0.22) transparent;
  }

  .je-cats::-webkit-scrollbar {
    display: block;
    height: 5px;
  }

  .je-cats::-webkit-scrollbar-track {
    background: transparent;
  }

  .je-cats::-webkit-scrollbar-thumb {
    background: rgba(26, 18, 8, 0.2);
    border-radius: 999px;
  }

  .je-cats::-webkit-scrollbar-thumb:hover {
    background: rgba(26, 18, 8, 0.32);
  }

  .je-cat-btn {
    width: 5.75rem;
  }

  .je-cat-btn__tile {
    width: 5.5rem;
    height: 4.5rem;
  }

  .je-cat-btn__img {
    max-width: 5.5rem;
    max-height: 4.5rem;
  }

  .je-cat-btn__label {
    max-width: 5.75rem;
    font-size: 0.75rem;
  }
}

@media (min-width: 1100px) {
  .je-cats {
    gap: 1.35rem;
    padding: 1rem 0 0.9rem;
  }

  .je-cat-btn {
    width: 6.25rem;
  }

  .je-cat-btn__tile {
    width: 6rem;
    height: 5rem;
  }

  .je-cat-btn__img {
    max-width: 6rem;
    max-height: 5rem;
  }

  .je-cat-btn__label {
    max-width: 6.25rem;
    font-size: 0.78rem;
  }
}
