/*
 * Hamo Taxonomy - Filter Carousel — barra de pills de filtro.
 * Valores visuais vêm dos controles do Elementor ({{WRAPPER}} vence por
 * especificidade); aqui só estrutura + defaults neutros.
 */

.hamo-tfc__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin-bottom: 24px;
}

.hamo-tfc__pill {
	appearance: none;
	-webkit-appearance: none;
	border: none;
	margin: 0;
	padding: 8px 20px;
	border-radius: 999px;
	font-family: inherit;
	font-size: 15px;
	line-height: 1.3;
	color: #333;
	background-color: rgba(0, 0, 0, 0.07);
	cursor: pointer;
	outline: none;
	transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.hamo-tfc__pill:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.hamo-tfc__pill.is-active {
	color: #fff;
	background-color: #0a3a80;
	cursor: default;
}

/* Efeitos leves de hover (classe definida pelo controle). */
.hamo-tfc--fx-lift .hamo-tfc__pill:hover:not(.is-active) {
	transform: translateY(-2px);
}

.hamo-tfc--fx-scale .hamo-tfc__pill:hover:not(.is-active) {
	transform: scale(1.06);
}

.hamo-tfc__empty {
	text-align: center;
	padding: 24px 0;
}

/* A progress bar de arraste só existe no mobile (dentro da media query). */
.hamo-tfc__scrollbar {
	display: none;
}

/* Mobile: rótulos em UMA linha, arrastáveis lateralmente como um carrossel
   (rolagem nativa por toque), sem dots, setas ou barra visível.
   O flex-start com !important é necessário: com alinhamento centralizado
   + overflow, os primeiros rótulos ficariam inalcançáveis (limitação do
   flexbox) — e precisa vencer o justify-content do controle de alinhamento
   do Elementor, que tem especificidade maior. */
@media (max-width: 767px) {
	.hamo-tfc__bar {
		flex-wrap: nowrap;
		justify-content: flex-start !important;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		-ms-overflow-style: none;
		padding-bottom: 4px;
	}

	.hamo-tfc__bar::-webkit-scrollbar {
		display: none;
	}

	.hamo-tfc__pill {
		flex-shrink: 0;
		white-space: nowrap;
	}

	/* Progress bar de arraste: enche conforme a fileira é arrastada
	   (largura do preenchimento controlada pelo JS via scrollLeft). */
	.hamo-tfc__scrollbar {
		display: block;
		width: var(--hamo-tfc-sb-w, 40%);
		height: var(--hamo-tfc-sb-h, 3px);
		margin: var(--hamo-tfc-sb-gap, 4px) auto 0;
		border-radius: var(--hamo-tfc-sb-r, 99px);
		background-color: var(--hamo-tfc-sb-track, rgba(0, 0, 0, 0.1));
		overflow: hidden;
	}

	.hamo-tfc__scrollbar-fill {
		display: block;
		width: 0;
		height: 100%;
		border-radius: inherit;
		background-color: var(--hamo-tfc-sb-fill, #0a3a80);
		transition: width 0.12s linear;
	}
}

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

	.hamo-tfc--fx-lift .hamo-tfc__pill:hover:not(.is-active),
	.hamo-tfc--fx-scale .hamo-tfc__pill:hover:not(.is-active) {
		transform: none;
	}
}
