/* ══════════════════════════════════════════════════════════════
   Category Tabs - Modern Chip Style
   ══════════════════════════════════════════════════════════════ */

#category-tabs {
  display: flex;
  gap: 10px;
  padding: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(180deg, #626262 0%, #5a5a5a 100%);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

#category-tabs::-webkit-scrollbar {
  display: none;
}

/* Fade effect on right side */
#category-tabs::after {
  content: '';
  position: sticky;
  left: 100%;
  width: 40px;
  height: 100%;
  background: linear-gradient(to left, rgba(98, 98, 98, 0.95), transparent);
  pointer-events: none;
  flex-shrink: 0;
}

/* Tab Button */
.cat-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  white-space: nowrap;
  padding: 12px 20px;
  border-radius: 16px;
  border: 2px solid transparent;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  font-size: clamp(0.85rem, 2.2vw, 0.95rem);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.65);
  transition: all 0.3s cubic-bezier(0.34, 1.15, 0.64, 1);
  min-height: 44px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  width: auto;
}

/* Hover effect */
.cat-tab:hover {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.85);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.1);
}

/* Active state */
.cat-tab.active {
  background: linear-gradient(135deg, #ff3d00 0%, #d32f2f 50%, #a60b0b 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 
    0 6px 20px rgba(166, 11, 11, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: translateY(-2px) scale(1.05);
}

.cat-tab.active::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

/* Click effect */
.cat-tab:active {
  transform: scale(0.96);
}

/* Icon in tab */
.cat-tab .icon {
  font-size: 1.1em;
  transition: transform 0.3s cubic-bezier(0.34, 1.15, 0.64, 1);
}

.cat-tab.active .icon {
  transform: scale(1.15);
}

/* Responsive */
@media (max-width: 768px) {
  #category-tabs {
    padding: 12px;
    gap: 8px;
  }
  
  .cat-tab {
    padding: 9px 15px;
    font-size: 0.82rem;
    min-height: 40px;
    border-radius: 12px;
  }
  
  .cat-tab .icon {
    font-size: 1em;
  }
}

@media (max-width: 480px) {
  #category-tabs {
    padding: 10px;
    gap: 6px;
  }
  
  .cat-tab {
    padding: 8px 12px;
    font-size: 0.78rem;
    min-height: 36px;
    gap: 5px;
  }
  
  #category-tabs::after {
    width: 30px;
  }
}
