/**
 * Kategorie-Reiter über der Produkttabelle.
 *
 * Farben über Variablen, im Widget unter „Erweitert → Benutzerdefiniertes CSS"
 * überschreibbar, z. B. selector .wcpt-tabs { --wcpt-tabs-accent: var(--mn-accent, #283583); }
 */

.wcpt-tabs {
	--wcpt-tabs-accent: var(--mn-accent, #283583);
	--wcpt-tabs-text: #2d3134;
	--wcpt-tabs-muted: #5b6190;
	--wcpt-tabs-border: #d9dcec;
	--wcpt-tabs-hover: #f5fbff;
}

.wcpt-tabs-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0 28px;
	margin: 0;
	padding: 0;
	border-block-end: 1px solid var(--wcpt-tabs-border);
	list-style: none;
}

.wcpt-tabs-list li {
	margin: 0;
}

/* Reiter als Unterstrich-Navigation: ruhiger als eine weitere Reihe Pillen. */
.wcpt-tab {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-block-end: -1px;
	padding: 12px 0 14px;
	border-block-end: 2px solid transparent;
	color: var(--wcpt-tabs-muted);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	transition: border-color 0.2s ease, color 0.2s ease;
}

.wcpt-tab:hover,
.wcpt-tab:focus-visible {
	border-block-end-color: var(--wcpt-tabs-border);
	color: var(--wcpt-tabs-accent);
}

.wcpt-tab:focus-visible {
	outline: 2px solid var(--wcpt-tabs-accent);
	outline-offset: 2px;
}

.wcpt-tab.is-active {
	border-block-end-color: var(--wcpt-tabs-accent);
	color: var(--wcpt-tabs-accent);
	font-weight: 600;
}

.wcpt-tab-count {
	min-width: 22px;
	padding: 1px 7px;
	border-radius: 999px;
	background: rgba(var(--mn-accent-rgb, 40, 53, 131), 0.06);
	color: var(--wcpt-tabs-muted);
	font-size: 12px;
	font-weight: 600;
	text-align: center;
}

.wcpt-tab.is-active .wcpt-tab-count {
	background: rgba(var(--mn-accent-rgb, 40, 53, 131), 0.12);
	color: var(--wcpt-tabs-accent);
}

/* Schmal: Reiter in einer wischbaren Zeile statt mehrerer Umbrüche. */
@media (max-width: 767px) {
	.wcpt-tabs-list {
		flex-wrap: nowrap;
		gap: 0 22px;
		overflow-x: auto;
		scrollbar-width: none;
	}

	.wcpt-tabs-list::-webkit-scrollbar {
		display: none;
	}

	.wcpt-tab {
		white-space: nowrap;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wcpt-tab { transition: none; }
}
