/* ============================================
   CATEGORY TABS
   ============================================ */

#category-tabs {
  display: flex;
  gap: 10px;
  padding: 14px 16px 10px;
  overflow-x: auto;
  scrollbar-width: none;
  position: sticky;
  top: 0;
  z-index: 20;
  /* near-opaque bar instead of a sticky backdrop-filter — much smoother
     to scroll on mobile (no per-frame backdrop re-snapshot). */
  background: rgba(233, 244, 240, 0.94);
  border-bottom: 1px solid rgba(136, 181, 168, 0.25);
  -webkit-overflow-scrolling: touch;
}

#category-tabs::-webkit-scrollbar { display: none; }

/* Scroll-fade hint on the left edge (RTL trailing edge) */
#category-tabs::after {
  content: '';
  position: sticky;
  left: 0;
  min-width: 32px;
  flex-shrink: 0;
  background: linear-gradient(to right, transparent, rgba(248,246,243,0.9));
  pointer-events: none;
}

.cat-tab {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  border: 1.5px solid rgba(0,0,0,0.1);
  background: var(--white);
  cursor: pointer;
  font-size: clamp(0.75rem, 2vw, 0.85rem);
  font-weight: 700;
  font-family: var(--font-fa);
  color: var(--concrete);
  transition: all 0.2s cubic-bezier(.34,1.56,.64,1);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  min-height: 44px;
}

.cat-tab:hover {
  border-color: var(--sage-light);
  color: var(--sage-dark);
}

.cat-tab.active {
  background: var(--sage);
  border-color: var(--sage);
  color: var(--white);
  box-shadow: var(--shadow-btn);
  transform: scale(1.05);
}

/* White dot indicator below active tab */
.cat-tab.active::after {
  content: '';
  display: block;
  width: 4px;
  height: 4px;
  background: rgba(255,255,255,0.8);
  border-radius: 50%;
  margin: 3px auto -6px;
}

.cat-tab:active { transform: scale(0.93); }
