/* Categories Component Styles */
.categories-section {
  padding-top: 10px;
  padding-bottom: 18px;
}

.categories-section .sec-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 14px;
}

.categories-section .sec-head h2 {
  font-size: clamp(20px, 4vw, 26px);
  margin-bottom: 4px;
}

.categories-section .sec-head .note {
  display: block;
  font-size: 13px;
  color: var(--muted);
}

.cat-rail-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.cat-rail {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 6px 6px 14px 6px;
}

.cat-rail::-webkit-scrollbar {
  display: none;
}

.cat-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  min-width: 88px;
  border-radius: 16px;
  border: none;
  background: var(--surface);
  cursor: pointer;
  color: var(--ink);
  transition: all .18s ease;
  flex-shrink: 0;
}

.cat-chip:hover {
  background: var(--surface-raised);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.05);
}

.cat-chip.on {
  background: var(--surface-raised);
  box-shadow: 0 0 0 2px var(--accent);
}

.cat-chip-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 22px;
  background: var(--surface-raised);
  flex-shrink: 0;
  transition: transform .18s ease;
}

.cat-chip:hover .cat-chip-icon {
  transform: scale(1.08);
}

.cat-chip-title {
  font-size: 12.5px;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
}

.rail-btn {
  position: absolute;
  z-index: 2;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: var(--surface);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all .15s;
}

.rail-btn:hover {
  background: var(--surface-raised);
  transform: scale(1.06);
}

.rail-btn-left {
  left: -12px;
}

.rail-btn-right {
  right: -12px;
}

@media (max-width: 768px) {
  .rail-btn {
    display: none;
  }
}
