/* WAF — WooCommerce Ajax Filters : frontend styles */

.waf-filters {
	max-width: 340px;
	font-size: 14px;
	color: #111;
}

.waf-section {
	border-bottom: 1px solid #ececec;
	padding: 18px 0;
}
.waf-section:first-child {
	padding-top: 0;
}

.waf-section-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	cursor: pointer;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	font-size: 12px;
}

.waf-chevron {
	width: 10px;
	height: 10px;
	border-right: 2px solid #111;
	border-bottom: 2px solid #111;
	transform: rotate(45deg);
	transition: transform .2s ease;
	flex-shrink: 0;
}
.waf-section.is-collapsed .waf-chevron {
	transform: rotate(-135deg);
}

.waf-section-body {
	margin-top: 16px;
	overflow: hidden;
	transition: max-height .25s ease;
}
.waf-section.is-collapsed .waf-section-body {
	display: none;
}

/* Sorting radios */
.waf-radio-list {
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.waf-radio {
	display: flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
}
.waf-radio input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}
.waf-radio-dot {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	border: 2px solid #bbb;
	position: relative;
	flex-shrink: 0;
	transition: border-color .15s ease;
}
.waf-radio-dot::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #111;
	opacity: 0;
	transition: opacity .15s ease;
}
.waf-radio input:checked + .waf-radio-dot {
	border-color: #111;
}
.waf-radio input:checked + .waf-radio-dot::after {
	opacity: 1;
}
.waf-radio-label {
	color: #333;
}

.waf-price-scale {
	display: flex;
	justify-content: space-between;
	font-size: 11px;
	color: #999;
	margin-bottom: 16px;
}

.waf-price-inputs {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 12px;
}
.waf-price-inputs label {
	flex: 1 1 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 11px;
	color: #999;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}
.waf-price-inputs input {
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 10px 12px;
	font-size: 14px;
	width: 100%;
	box-sizing: border-box;
}
.waf-price-dash {
	margin-top: 14px;
	color: #ccc;
}

.waf-price-quick {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

/* Generic pill button (quick price, attribute values) */
.waf-pill {
	display: inline-flex;
	align-items: center;
	border: 1px solid #ddd;
	border-radius: 999px;
	padding: 8px 14px;
	font-size: 13px;
	background: #fff;
	color: #333;
	cursor: pointer;
	transition: background .15s ease, color .15s ease, border-color .15s ease;
	user-select: none;
}
.waf-pill:hover {
	border-color: #111;
}
.waf-pill.is-active,
.waf-pill-checkbox input:checked + span {
	background: #111;
	color: #fff;
}
.waf-pill-checkbox input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}
.waf-pill-checkbox input:checked ~ * {
	color: #fff;
}
.waf-pill-checkbox:has(input:checked) {
	background: #111;
	color: #fff;
	border-color: #111;
}
.waf-pill-checkbox em {
	font-style: normal;
	opacity: .6;
	margin-left: 2px;
}

.waf-pill-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

/* Color swatches */
.waf-color-list {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}
.waf-color-swatch {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	border: 1px solid #eee;
	border-radius: 999px;
	padding: 6px 12px 6px 6px;
	transition: border-color .15s ease;
}
.waf-color-swatch:hover {
	border-color: #ccc;
}
.waf-color-swatch input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}
.waf-color-dot {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	border: 1px solid rgba(0,0,0,.15);
	box-shadow: 0 0 0 0 transparent;
	transition: box-shadow .15s ease;
	flex-shrink: 0;
}
.waf-color-swatch input:checked + .waf-color-dot {
	box-shadow: 0 0 0 2px #fff, 0 0 0 4px #111;
}
.waf-color-swatch input:checked ~ .waf-color-name {
	font-weight: 600;
}
.waf-color-name {
	font-size: 13px;
	color: #333;
}

.waf-term-extra {
	display: none;
}
.waf-section.show-all .waf-term-extra {
	display: inline-flex;
}

.waf-show-more {
	background: none;
	border: none;
	padding: 10px 0 0;
	color: #666;
	text-decoration: underline;
	cursor: pointer;
	font-size: 13px;
}

.waf-actions {
	padding-top: 18px;
}
.waf-reset-btn {
	width: 100%;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 999px;
	padding: 12px;
	cursor: pointer;
	font-size: 13px;
	color: #666;
}
.waf-reset-btn:hover {
	border-color: #111;
	color: #111;
}

/* Products grid */
.waf-products-wrapper {
	position: relative;
	min-height: 120px;
}
.waf-products-wrapper.is-loading {
	opacity: .5;
	pointer-events: none;
}
.waf-results-count {
	font-size: 13px;
	color: #777;
	margin-bottom: 14px;
}
.waf-ul.products {
	display: grid;
	grid-template-columns: repeat(var(--waf-cols-desktop, 3), 1fr);
	gap: 24px;
	list-style: none;
	margin: 0;
	padding: 0;
}
/* Tablet: matches Flatsome's medium breakpoint (550–849px). */
@media (max-width: 849px) {
	.waf-ul.products { grid-template-columns: repeat(var(--waf-cols-tablet, 3), 1fr); }
}
/* Mobile: matches Flatsome's small breakpoint (up to 549px). */
@media (max-width: 549px) {
	.waf-ul.products { grid-template-columns: repeat(var(--waf-cols-mobile, 2), 1fr); }
}
.waf-no-products {
	color: #777;
	padding: 40px 0;
	text-align: center;
}

.waf-pagination {
	display: flex;
	gap: 6px;
	justify-content: center;
	margin-top: 32px;
}
.waf-page-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: 1px solid #ddd;
	color: #333;
	text-decoration: none;
	font-size: 13px;
}
.waf-page-link.is-active {
	background: #111;
	border-color: #111;
	color: #fff;
}
