/**
 * 3DFila Addons — Filtros rápidos na categoria (linhas + cores).
 *
 * No celular as fileiras rolam para o lado; no desktop quebram linha.
 */

/* Botão base (linhas e cores) */
.tdfa-chip {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 6px;
	min-height: 40px;
	margin: 0;
	padding: 0 14px;
	border: 1px solid #d5dfdd;
	border-radius: 999px;
	background: #fff;
	color: #33403e;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	text-transform: none;
	letter-spacing: 0;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color .15s, border-color .15s, color .15s;
}
.tdfa-chip:hover {
	border-color: #03a89e;
	color: #03a89e;
}
.tdfa-chip:focus-visible {
	outline: 2px solid #03a89e;
	outline-offset: 2px;
}
.tdfa-chip.is-current,
.tdfa-chip[aria-pressed="true"] {
	border-color: #03a89e;
	background: #03a89e;
	color: #fff;
}

/* Linhas */
.tdfa-lines {
	margin: 0 0 10px;
}
.tdfa-lines__track,
.tdfa-colors__track {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

/* Cores */
.tdfa-colors {
	margin: 0 0 16px;
}
.tdfa-colors__head {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 28px;
	margin-bottom: 6px;
}
.tdfa-colors__title {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #6b7a77;
}
.tdfa-colors__status {
	font-size: 13px;
	color: #33403e;
}
.tdfa-colors__clear {
	margin: 0 0 0 auto;
	padding: 4px 0;
	border: 0;
	background: none;
	color: #03a89e;
	font-size: 13px;
	font-weight: 600;
	text-decoration: underline;
	text-transform: none;
	cursor: pointer;
}
.tdfa-chip__swatch {
	width: 16px;
	height: 16px;
	border-radius: 50%;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18);
}
.tdfa-chip__n {
	font-weight: 400;
	opacity: .7;
}
.tdfa-chip[aria-pressed="true"] .tdfa-chip__swatch {
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18), 0 0 0 2px #fff;
}

/* Produto filtrado some de verdade (o Flatsome define display nas colunas) */
.products .product-small.col[hidden],
.products li.product[hidden] {
	display: none !important;
}

/* Computador: o menu já lista as linhas (a menos que o ajuste religue) */
@media (min-width: 850px) {
	.tdfa-lines--mobile {
		display: none;
	}
}

/* Celular: uma fileira com rolagem lateral, sangrando até a borda */
@media (max-width: 849px) {
	.tdfa-lines__track,
	.tdfa-colors__track {
		flex-wrap: nowrap;
		margin-inline: -15px;
		padding: 2px 15px 6px;
		overflow-x: auto;
		scroll-snap-type: x proximity;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
	}
	.tdfa-lines__track::-webkit-scrollbar,
	.tdfa-colors__track::-webkit-scrollbar {
		display: none;
	}
	.tdfa-chip {
		scroll-snap-align: start;
	}
}
