.wsf-filters {
	--wsf-border: #e2e2e2;
	--wsf-text: #1d1d1d;
	--wsf-muted: #8a8a8a;
	--wsf-accent: #1d1d1d;
	font-size: 14px;
	color: var(--wsf-text);
	max-width: 280px;
}

.wsf-active-filters {
	margin-bottom: 16px;
}

.wsf-active-filters__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 8px;
}

.wsf-tag {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #f2f2f2;
	border-radius: 4px;
	padding: 5px 10px;
	font-size: 13px;
}

.wsf-tag button {
	background: none;
	border: none;
	cursor: pointer;
	line-height: 1;
	padding: 0;
	font-size: 14px;
	color: var(--wsf-muted);
}

.wsf-clear-all {
	background: none;
	border: none;
	text-decoration: underline;
	cursor: pointer;
	font-size: 13px;
	color: var(--wsf-text);
	padding: 0;
}

.wsf-group {
	border-bottom: 1px solid var(--wsf-border);
	padding: 14px 0;
}

.wsf-group__toggle {
	width: 100%;
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: none;
	border: none;
	cursor: pointer;
	font-weight: 600;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: var(--wsf-text);
	padding: 0;
}

.wsf-group__chevron {
	width: 10px;
	height: 10px;
	border-right: 2px solid var(--wsf-text);
	border-bottom: 2px solid var(--wsf-text);
	transform: rotate(45deg);
	transition: transform 0.15s ease;
}

.wsf-group.wsf-collapsed .wsf-group__chevron {
	transform: rotate(-45deg);
}

.wsf-group.wsf-collapsed .wsf-group__body {
	display: none;
}

.wsf-group__body {
	margin-top: 12px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.wsf-checkbox,
.wsf-button-option {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
}

.wsf-checkbox input,
.wsf-button-option input {
	accent-color: var(--wsf-accent);
	width: 16px;
	height: 16px;
}

.wsf-count {
	color: var(--wsf-muted);
	margin-left: auto;
	font-size: 12px;
}

.wsf-group__body--buttons {
	flex-direction: row;
	flex-wrap: wrap;
}

.wsf-button-option {
	border: 1px solid var(--wsf-border);
	border-radius: 4px;
	padding: 6px 12px;
}

.wsf-button-option input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.wsf-button-option:has(input:checked) {
	background: var(--wsf-accent);
	color: #fff;
	border-color: var(--wsf-accent);
}

.wsf-group__body--swatches {
	flex-direction: row;
	flex-wrap: wrap;
	gap: 10px;
}

.wsf-swatch {
	position: relative;
	cursor: pointer;
}

.wsf-swatch input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.wsf-swatch__color {
	display: block;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	border: 1px solid var(--wsf-border);
	box-shadow: 0 0 0 2px #fff;
}

.wsf-swatch:has(input:checked) .wsf-swatch__color {
	box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--wsf-accent);
}

.wsf-group__body--price {
	flex-direction: row;
	align-items: end;
	flex-wrap: wrap;
	gap: 10px;
}

.wsf-price-field {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 12px;
	color: var(--wsf-muted);
}

.wsf-price-field input {
	width: 90px;
	padding: 6px 8px;
	border: 1px solid var(--wsf-border);
	border-radius: 4px;
}

.wsf-price-sep {
	padding-bottom: 8px;
}

.wsf-price-apply {
	background: var(--wsf-accent);
	color: #fff;
	border: none;
	border-radius: 4px;
	padding: 8px 14px;
	cursor: pointer;
	font-size: 13px;
}

.wsf-results-wrapper {
	position: relative;
	min-height: 80px;
}

.wsf-results-wrapper.wsf-loading {
	opacity: 0.5;
	pointer-events: none;
}

.wsf-spinner-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.55);
	z-index: 10;
	pointer-events: none;
}

.wsf-spinner {
	width: 34px;
	height: 34px;
	border: 3px solid var(--wsf-border, #e2e2e2);
	border-top-color: var(--wsf-accent, #1d1d1d);
	border-radius: 50%;
	animation: wsf-spin 0.7s linear infinite;
}

@keyframes wsf-spin {
	to {
		transform: rotate( 360deg );
	}
}

.wsf-pagination {
	display: flex;
	gap: 8px;
	justify-content: center;
	margin-top: 24px;
}

.wsf-pagination .page-numbers {
	padding: 6px 12px;
	border: 1px solid var(--wsf-border);
	border-radius: 4px;
	text-decoration: none;
	color: var(--wsf-text);
}

.wsf-pagination .page-numbers.current {
	background: var(--wsf-accent);
	color: #fff;
}

.wsf-no-results {
	text-align: center;
	color: var(--wsf-muted);
	padding: 40px 0;
}
.wsf-group-heading {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.wsf-group-summary {
    font-size: 12px;
    color: #999;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    margin-top: 3px;
}

.wsf-group:not(.wsf-collapsed) .wsf-group-summary {
    display: none;
}

/* Load More widget ([wsf_load_more]) */

.wsf-load-more {
	max-width: 420px;
	margin: 32px auto;
	text-align: center;
}

.wsf-load-more__status {
	font-size: 14px;
	color: var(--wsf-muted, #8a8a8a);
	margin-bottom: 10px;
}

.wsf-load-more__status strong {
	color: var(--wsf-text, #1d1d1d);
	font-weight: 700;
}

.wsf-load-more__bar {
	height: 4px;
	background: var(--wsf-border, #e2e2e2);
	border-radius: 2px;
	overflow: hidden;
	margin-bottom: 18px;
}

.wsf-load-more__bar-fill {
	height: 100%;
	width: 0;
	background: var(--wsf-accent, #1d1d1d);
	border-radius: 2px;
	transition: width 0.25s ease;
}

.wsf-load-more__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: var(--wsf-accent, #1d1d1d);
	color: #fff;
	border: none;
	border-radius: 4px;
	padding: 12px 28px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	cursor: pointer;
}

.wsf-load-more__button[hidden] {
	display: none;
}

.wsf-load-more__button:disabled {
	opacity: 0.6;
	cursor: default;
}

.wsf-load-more__icon {
	width: 14px;
	height: 14px;
	border: 2px solid rgba(255, 255, 255, 0.4);
	border-top-color: #fff;
	border-radius: 50%;
	display: none;
}

.wsf-load-more__button.wsf-loading .wsf-load-more__icon {
	display: inline-block;
	animation: wsf-spin 0.7s linear infinite;
}

.wsf-load-more-notice {
	text-align: center;
	color: #b32d2e;
	background: #fbeaea;
	border: 1px solid #f1c3c3;
	border-radius: 4px;
	padding: 10px 14px;
	max-width: 560px;
	margin: 20px auto;
	font-size: 13px;
}

/* Toggle buttons */
.wsf-view-toggle {
	display: inline-flex;
	gap: 4px;
	border: 1px solid #e2e2e2;
	border-radius: 6px;
	padding: 3px;
}

.wsf-view-toggle__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border: none;
	background: none;
	border-radius: 4px;
	cursor: pointer;
	color: #8a8a8a;
}

.wsf-view-toggle__btn.is-active {
	background: #1d1d1d;
	color: #fff;
}

/* Grid view (default) - let the theme's own .products grid CSS apply */
.wsf-products-grid.wsf-view-grid .products {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 220px, 1fr ) );
	gap: 24px;
	list-style: none;
	padding: 0;
	margin: 0;
}

/* List view - stack cards horizontally */
.wsf-products-grid.wsf-view-list .products {
	display: flex;
	flex-direction: column;
	gap: 16px;
	list-style: none;
	padding: 0;
	margin: 0;
}

.wsf-products-grid.wsf-view-list .products li.product {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 20px;
	text-align: left;
	width: 100%;
}

.wsf-products-grid.wsf-view-list .products li.product img {
	width: 120px;
	height: auto;
	flex-shrink: 0;
}

.wsf-products-grid.wsf-view-grid .wsf-products-grid__list {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 220px, 1fr ) );
	gap: 24px;
}

.wsf-products-grid.wsf-view-list .wsf-products-grid__list {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.wsf-products-grid.wsf-view-list .wsf-product-card {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 20px;
	text-align: left;
}

.wsf-products-grid.wsf-view-list .wsf-product-card__image {
	width: 120px;
	flex-shrink: 0;
}

.wsf-best-sellers__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 20px;
}
.wsf-best-sellers__controls {
    display: flex;
    align-items: center;
    gap: 12px;
}
.wsf-slider-arrow {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #ccc;
    background: #fff;
    cursor: pointer;
    font-size: 18px;
}
.wsf-best-sellers__viewport {
    overflow: hidden;
}
.wsf-best-sellers__track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
}
.wsf-slide {
    flex: 0 0 calc(20% - 16px); /* ~5 per row on desktop */
    scroll-snap-align: start;
}
@media (max-width: 1024px) { .wsf-slide { flex-basis: calc(33.333% - 14px); } }
@media (max-width: 640px)  { .wsf-slide { flex-basis: calc(70% - 10px); } }

.wsf-product-card__rating-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #666;
    margin: 6px 0;
}
.wsf-stars {
    display: inline-block;
    position: relative;
    font-family: sans-serif;
}
.wsf-product-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.wsf-products-grid.wsf-view-grid .wsf-products-grid__list {
	display: grid;
	grid-template-columns: repeat( auto-fill, minmax( 220px, 1fr ) );
	gap: 24px;
}

.wsf-products-grid.wsf-view-list .wsf-products-grid__list {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.wsf-products-grid.wsf-view-list .wsf-product-card {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 20px;
	text-align: left;
}

.wsf-products-grid.wsf-view-list .wsf-product-card__image {
	width: 120px;
	flex-shrink: 0;
}

/*//*/
.wsf-best-sellers {
    position: relative;
}

.wsf-best-sellers__track {
    display: none;
}

.wsf-best-sellers__track.slick-initialized {
    display: block;
}

.wsf-slide {
    padding: 0 10px;
    box-sizing: border-box;
}

.wsf-product-card {
    height: 100%;
}

.wsf-slide {
    padding: 0 10px;
}

.slick-disabled {
    opacity: .4;
    pointer-events: none;
    cursor: not-allowed;
}

/* No filters message */
.wsf-no-filters-message {
    padding: 30px 20px;
    text-align: center;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.wsf-no-filters-message p {
    margin: 0 0 8px 0;
    color: #1d1d1d;
    font-size: 15px;
}

.wsf-no-filters-message .wsf-no-filters-hint {
    margin-top: 12px;
    margin-bottom: 0;
}

.wsf-no-filters-message .wsf-no-filters-hint a {
    color: #1c2538;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.wsf-no-filters-message .wsf-no-filters-hint a:hover {
    color: #b08d3f;
}