/* A1 Smart Filters */
.a1sf-filters {
	--a1sf-accent: #1a1a1a;
	--a1sf-border: #e2e2e2;
	--a1sf-muted: #6b6b6b;
	font-size: 14px;
	line-height: 1.4;
	color: #222;
}

.a1sf-title {
	margin: 0 0 0.75rem;
	font-size: 1.15rem;
	font-weight: 700;
}

.a1sf-result-count {
	margin-bottom: 0.75rem;
	color: var(--a1sf-muted);
	font-size: 0.9rem;
	min-height: 1.2em;
}

.a1sf-filters.is-loading {
	opacity: 0.65;
	pointer-events: none;
}

.a1sf-facet {
	margin-bottom: 0.85rem;
}

.a1sf-facet__label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.35rem;
	font-size: 0.92rem;
}

.a1sf-select-wrap {
	position: relative;
}

.a1sf-select {
	width: 100%;
	appearance: none;
	-webkit-appearance: none;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23333' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 0.75rem center;
	border: 1px solid var(--a1sf-border);
	border-radius: 6px;
	padding: 0.55rem 2rem 0.55rem 0.75rem;
	font: inherit;
	color: inherit;
	cursor: pointer;
	line-height: 1.3;
}

.a1sf-select:focus {
	outline: 2px solid var(--a1sf-accent);
	outline-offset: 1px;
}

.a1sf-swatches {
	list-style: none;
	margin: 0;
	padding: 0.15rem 0 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
}

.a1sf-swatch label {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.2rem;
	cursor: pointer;
	width: 4.25rem;
	text-align: center;
}

.a1sf-swatch__input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.a1sf-swatch__chip {
	display: block;
	width: 2.15rem;
	height: 2.15rem;
	border-radius: 999px;
	border: 2px solid #fff;
	box-shadow: 0 0 0 1px #cfcfcf;
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.a1sf-swatch.is-selected .a1sf-swatch__chip,
.a1sf-swatch__input:checked + .a1sf-swatch__chip {
	box-shadow: 0 0 0 2px var(--a1sf-accent);
	transform: scale(1.06);
}

.a1sf-swatch.is-disabled {
	opacity: 0.35;
	pointer-events: none;
}

.a1sf-swatch__name {
	font-size: 0.72rem;
	line-height: 1.2;
	font-weight: 600;
	color: #333;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.a1sf-swatch__hex {
	font-size: 0.62rem;
	line-height: 1.1;
	color: var(--a1sf-muted);
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	letter-spacing: 0.02em;
}

.a1sf-price__inputs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.5rem;
}

.a1sf-price__inputs label {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	font-size: 0.8rem;
	color: var(--a1sf-muted);
}

.a1sf-price__inputs input {
	width: 100%;
	padding: 0.4rem 0.5rem;
	border: 1px solid var(--a1sf-border);
	border-radius: 4px;
}

.a1sf-price__hint {
	margin: 0.5rem 0 0;
	font-size: 0.8rem;
	color: var(--a1sf-muted);
}

.a1sf-actions {
	display: flex;
	gap: 0.5rem;
	margin-top: 1rem;
	flex-wrap: wrap;
}

.a1sf-actions .button {
	cursor: pointer;
}

.a1sf-empty {
	color: var(--a1sf-muted);
	margin: 0;
}
