/* A compact category row with a crystal accent for the current selection. */
#category-tabs {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: flex-start;
  gap: 24px;
  width: auto;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  background: linear-gradient(#f5cede40, #f5cede40) left calc(100% - 4px) / 100% 1px no-repeat;
}
#category-tabs::-webkit-scrollbar { display: none; width: 0; height: 0; }
#category-tabs button {
  position: relative;
  flex: 0 0 auto;
  min-height: 52px;
  padding: 10px 8px 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #ffeaf3c7;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  white-space: nowrap;
  transition: color .2s ease;
}
#category-tabs button:hover,
#category-tabs button[aria-pressed="true"] { background: transparent; color: #fff8fc; }
#category-tabs button[aria-pressed="true"] { font-weight: 600; }
#category-tabs button::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 1px;
  background: #f9d5e5;
  transform: scaleX(0);
  transition: transform .2s ease;
}
#category-tabs button::before {
  content: '';
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: 2px;
  width: 7px;
  height: 7px;
  border: 1px solid #fff4f9;
  background: linear-gradient(135deg, #fff9fc, #dba5bc 55%, #f9d5e5);
  transform: translateX(-50%) rotate(45deg);
  opacity: 0;
  transition: opacity .2s ease;
}
#category-tabs button[aria-pressed="true"]::after { transform: scaleX(1); }
#category-tabs button[aria-pressed="true"]::before { opacity: 1; }
#category-tabs button:focus-visible { outline: 2px solid #fff4f9; outline-offset: -2px; }
.category-description { margin: 0 0 24px; color: #ffeaf3c7; font-size: 13px; line-height: 1.6; }
.category-description:empty { display: none; }
@media (max-width: 700px) {
  #category-tabs { width: 100%; gap: 6px; }
  #category-tabs button { flex: 1 0 auto; padding-inline: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  #category-tabs button, #category-tabs button::before, #category-tabs button::after { transition: none; }
}
