/* WooPanel — Navegação de Categorias de Produtos */

.woopanel-categories-root {
	--woopanel-primary: #2563eb;
	--woopanel-primary-hover: #1d4ed8;
	--woopanel-text: #111827;
	--woopanel-text-muted: #6b7280;
	--woopanel-card-bg: #ffffff;

	width: 100%;
	font-family: inherit;
}

.woopanel-categories-empty {
	text-align: center;
	padding: 2rem;
	color: var(--woopanel-text-muted, #6b7280);
}

.woopanel-categories {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	width: 100%;
	margin: 0;
	padding: 0.5rem 0;
}

.woopanel-category-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	white-space: nowrap;
	text-decoration: none;
	line-height: 1.2;
	font-size: 0.9375rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	color: var(--woopanel-text, #111827);
	background: var(--woopanel-card-bg, #ffffff);
	border: 1.5px solid #e5e7eb;
	border-radius: 999px;
	padding: 0.65rem 1.35rem;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
	cursor: pointer;
	transition: color 0.2s ease,
		background-color 0.2s ease,
		border-color 0.2s ease,
		transform 0.2s ease,
		box-shadow 0.2s ease;
}

.woopanel-category-btn:hover,
.woopanel-category-btn:focus-visible {
	color: #ffffff;
	background: var(--woopanel-primary, #2563eb);
	border-color: var(--woopanel-primary, #2563eb);
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
}

.woopanel-category-btn:active {
	transform: translateY(0);
	background: var(--woopanel-primary-hover, #1d4ed8);
	border-color: var(--woopanel-primary-hover, #1d4ed8);
	box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}

.woopanel-category-btn:focus-visible {
	outline: 2px solid var(--woopanel-primary, #2563eb);
	outline-offset: 3px;
}

.woopanel-category-btn__label {
	pointer-events: none;
}

/* Responsividade */
@media (max-width: 599px) {
	.woopanel-categories {
		justify-content: flex-start;
		flex-wrap: nowrap;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		padding: 0.5rem 0.25rem;
	}

	.woopanel-categories::-webkit-scrollbar {
		display: none;
	}

	.woopanel-category-btn {
		flex: 0 0 auto;
	}
}
