/* Catalog — vertical sidebar tabs with icons (vanilla tabs port) */

.catalog-tabs-shell--sidebar {
  max-width: 100%;
}

.catalog-tabs-layout {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.catalog-tabs {
  display: flex;
  flex-direction: row;
  width: 100%;
  max-width: none;
  margin: 0;
  border: 1px solid var(--border-quiet);
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  background: var(--canvas);
}

.catalog-tab {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  border-right: 1px solid var(--border-quiet);
  border-radius: 0;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.catalog-tab:last-child {
  border-right: none;
}

.catalog-tab i,
.catalog-tab svg {
  opacity: 0.55;
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
  margin: 0;
}

.catalog-tab > span {
  line-height: 1.25;
  text-align: left;
}

.catalog-tab:hover {
  color: var(--text-primary);
  background: color-mix(in srgb, var(--surface-slate) 80%, var(--canvas));
}

.catalog-tab.is-active {
  color: var(--tv-mint);
  background: transparent;
}

.catalog-tab.is-active i,
.catalog-tab.is-active svg {
  opacity: 1;
}

.catalog-tab::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: transparent;
  transition: background 0.2s ease;
}

.catalog-tab.is-active::after {
  background: var(--tv-mint);
}

.catalog-tabs-panel {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--border-quiet);
  border-top: none;
  border-radius: 0 0 20px 20px;
  background: var(--canvas);
  padding: 1.5rem 1rem 2rem;
}

@media (min-width: 768px) {
  .catalog-tabs-layout {
    flex-direction: row;
    align-items: stretch;
  }

  .catalog-tabs {
    flex-direction: column;
    flex: 0 0 auto;
    width: 11.5rem;
    min-width: 11.5rem;
    border-radius: 12px 0 0 12px;
    border-right: none;
    border-bottom: none;
  }

  .catalog-tab {
    flex: 0 0 auto;
    width: 100%;
    justify-content: flex-start;
    padding: 1rem 1rem 1rem 0.85rem;
    font-size: 10px;
    border-right: none;
    border-bottom: 1px solid var(--border-quiet);
  }

  .catalog-tab:last-child {
    border-bottom: none;
  }

  .catalog-tab::after {
    top: 0;
    bottom: 0;
    left: 0;
    right: auto;
    width: 2px;
    height: auto;
  }

  .catalog-tabs-panel {
    border-radius: 0 20px 20px 0;
    border-top: 1px solid var(--border-quiet);
    border-left: none;
    padding: 2rem 1.5rem 2.5rem;
  }
}

@media (min-width: 1024px) {
  .catalog-tabs {
    width: 12.5rem;
    min-width: 12.5rem;
  }

  .catalog-tab {
    padding: 1.15rem 1rem 1.15rem 0.9rem;
    font-size: 11px;
    gap: 0.55rem;
  }
}
