/* Collection filters - Megamenu panels (desktop) / bottom drawer (mobile) */

/* Hide WoodMart's inline selected values – chips shown below via JS inject */
.wd-product-filters .wd-pf-results,
.wd-product-filters .wd-pf-checkboxes .wd-pf-results {
	display: none !important;
}

.wd-collection-filters {
	position: relative;
	margin-bottom: 24px;
}

.wd-collection-filters__overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.3);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s, visibility 0.25s;
	z-index: 99;
}

.wd-collection-filters__overlay.wd-collection-filters__overlay--visible {
	opacity: 1;
	visibility: visible;
}

.wd-collection-filters__container {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 24px;
}

.wd-collection-filters__left {
	display: flex;
	align-items: center;
	flex: 1;
	min-width: 0;
}

.wd-collection-filters__title {
	margin: 0 16px 0 0;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: inherit;
	flex-shrink: 0;
}

.wd-collection-filters__facets {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	flex: 1;
	min-width: 0;
}

.wd-collection-filters__item {
	position: relative;
}

.wd-collection-filters__button {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 16px;
	border: 1px solid var(--wd-brd-color, #e0e0e0);
	background: #fff;
	color: inherit;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	border-radius: 4px;
	transition: border-color 0.2s, background-color 0.2s;
	white-space: nowrap;
}

.wd-collection-filters__button:hover {
	border-color: var(--wd-primary-color, #333);
	background: rgba(0, 0, 0, 0.03);
}

.wd-collection-filters__button svg {
	flex-shrink: 0;
}

.wd-collection-filters__chevron {
	display: inline-flex;
}

/* Dropdown - base (Sort uses this) */
.wd-collection-filters__dropdown {
	position: absolute;
	top: 100%;
	left: 0;
	margin-top: 4px;
	min-width: 260px;
	max-width: 90vw;
	max-height: 70vh;
	overflow-y: auto;
	background: #fff;
	border: 1px solid var(--wd-brd-color, #e0e0e0);
	border-radius: 4px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	z-index: 100;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-8px);
	transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
}

/* Filter panels: full-width megamenu on desktop (left:0, right:0) */
@media (min-width: 769px) {
	.wd-collection-filters__panel {
		position: fixed;
		left: 0;
		right: 0;
		top: 0;
		margin-top: 0;
		min-width: 100%;
		max-width: none;
		max-height: 70vh;
		border-radius: 0;
		border-left: none;
		border-right: none;
		box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
	}
}

.wd-collection-filters__item .wd-collection-filters__dropdown[aria-hidden="false"] {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

/* Sort dropdown: align right when in right section */
.wd-collection-filters__right .wd-collection-filters__dropdown {
	left: auto;
	right: 0;
}

.wd-collection-filters__dropdown .page-width,
.wd-collection-filters__panel-inner {
	padding: 20px;
	max-width: 100%;
}

/* Panel grid: terms in columns | apply in last column */
.wd-collection-filters__panel-grid {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 32px;
	align-items: start;
}

.wd-collection-filters__panel-terms {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 4px 24px;
	max-height: 50vh;
	overflow-y: auto;
}

.wd-collection-filters__panel-terms.wd-collection-filters__palette {
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}

.wd-collection-filters__panel-apply-col {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	padding-left: 24px;
	border-left: 1px solid var(--wd-brd-color, #e0e0e0);
}

.wd-collection-filters__apply {
	display: block;
	padding: 12px 28px;
	background: var(--wd-primary-color, #333);
	color: #fff;
	border: none;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s, opacity 0.2s;
	white-space: nowrap;
}

.wd-collection-filters__apply:hover {
	background: #555;
}

/* Visually hide checkbox/radio, keep accessible for label clicks */
.wd-collection-filters__panel input[type="checkbox"],
.wd-collection-filters__panel input[type="radio"] {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.wd-collection-filters__dropdown-title {
	margin: 0 0 12px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #666;
}

.wd-collection-filters__dropdown-container {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.wd-collection-filters__dropdown-list {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

/* List style (Category, Size, etc.) */
.wd-collection-filters__tag {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border: none;
	background: transparent;
	color: inherit;
	font-size: 14px;
	text-decoration: none;
	cursor: pointer;
	border-radius: 4px;
	transition: background 0.2s;
	text-align: left;
}

.wd-collection-filters__tag:hover {
	background: rgba(0, 0, 0, 0.05);
}

.wd-collection-filters__tag.active {
	font-weight: 600;
}

.wd-collection-filters__tag .wd-collection-filters__tag-radio {
	width: 18px;
	height: 18px;
	border: 2px solid var(--wd-brd-color, #e0e0e0);
	border-radius: 50%;
	flex-shrink: 0;
	transition: border-color 0.2s, background 0.2s;
}

.wd-collection-filters__tag.active .wd-collection-filters__tag-radio {
	border-color: var(--wd-primary-color, #333);
	background: var(--wd-primary-color, #333);
}

.wd-collection-filters__count {
	opacity: 0.7;
	font-weight: 400;
	font-size: 0.9em;
	margin-left: auto;
}

/* Palette style (Color swatches) */
.wd-collection-filters__palette {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.wd-collection-filters__palette-option {
	flex-direction: row;
	align-items: center;
}

.wd-collection-filters__tag-radio-color {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	border: 1px solid rgba(0, 0, 0, 0.15);
	flex-shrink: 0;
	background-size: cover;
}

.wd-collection-filters__palette-option.active .wd-collection-filters__tag-radio-color {
	border-width: 2px;
	border-color: var(--wd-primary-color, #333);
	box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

/* Sort options */
.wd-collection-filters__sort {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border: none;
	background: transparent;
	color: inherit;
	font-size: 14px;
	text-decoration: none;
	cursor: pointer;
	border-radius: 4px;
	transition: background 0.2s;
	text-align: left;
	width: 100%;
}

.wd-collection-filters__sort:hover {
	background: rgba(0, 0, 0, 0.05);
}

.wd-collection-filters__sort.active {
	font-weight: 600;
}

.wd-collection-filters__sort-radio {
	width: 18px;
	height: 18px;
	border: 2px solid var(--wd-brd-color, #e0e0e0);
	border-radius: 50%;
	flex-shrink: 0;
	transition: border-color 0.2s, background 0.2s;
}

.wd-collection-filters__sort.active .wd-collection-filters__sort-radio {
	border-color: var(--wd-primary-color, #333);
	background: var(--wd-primary-color, #333);
}

/* Right section: count + sort */
.wd-collection-filters__right {
	display: flex;
	align-items: center;
	gap: 20px;
	flex-shrink: 0;
}

.wd-collection-filters__total p {
	margin: 0;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: inherit;
}

.wd-collection-filters__empty {
	margin: 0;
	color: #666;
	font-size: 14px;
}

/* Selected terms chips - shown below the filter bar */
.wd-collection-filters__chips {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-left:20px;
	/* margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid var(--wd-brd-color, #e0e0e0); */
}

.wd-collection-filters__chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 10px 6px 12px;
	background: rgba(0, 0, 0, 0.06);
	border: 1px solid var(--wd-brd-color, #e0e0e0);
	border-radius: 20px;
	color: inherit;
	font-size: 13px;
	text-decoration: none;
	transition: background 0.2s, border-color 0.2s;
}

.wd-collection-filters__chip:hover {
	background: rgba(0, 0, 0, 0.1);
	border-color: var(--wd-primary-color, #333);
}

.wd-collection-filters__chip-swatch {
	width: 16px;
	height: 16px;
	border-radius: 50%;
	border: 1px solid rgba(0, 0, 0, 0.15);
	flex-shrink: 0;
	background-size: cover;
}

.wd-collection-filters__chip-remove {
	font-size: 16px;
	line-height: 1;
	opacity: 0.6;
}

.wd-collection-filters__chip:hover .wd-collection-filters__chip-remove {
	opacity: 1;
}

.wd-collection-filters__chip--clear {
	font-size: 12px;
	opacity: 0.8;
}

.wd-collection-filters__chip--clear:hover {
	opacity: 1;
}

/* Mobile: hide Filters title, show chevron on buttons */
.hide-mobile {
	display: block;
}

.hide-desktop {
	display: none;
}

@media (max-width: 768px) {
	.hide-mobile {
		display: none;
	}

	.hide-desktop {
		display: inline-flex;
	}

	.wd-collection-filters__container {
		flex-direction: column;
		align-items: stretch;
	}

	.wd-collection-filters__left {
		flex-direction: column;
		align-items: stretch;
	}

	.wd-collection-filters__facets {
		flex-wrap: nowrap;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		padding-bottom: 4px;
	}

	.wd-collection-filters__facets::-webkit-scrollbar {
		display: none;
	}

	.wd-collection-filters__right {
		justify-content: space-between;
		border-top: 1px solid var(--wd-brd-color, #e0e0e0);
		padding-top: 12px;
	}

	/* Mobile: bottom drawer */
	.wd-collection-filters__dropdown {
		position: fixed;
		top: auto;
		left: 0;
		right: 0;
		bottom: 0;
		transform: translateY(100%);
		width: 100%;
		max-width: 100%;
		max-height: 85vh;
		border-radius: 16px 16px 0 0;
		margin-top: 0;
		box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.15);
		transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.2s, visibility 0.2s;
	}

	.wd-collection-filters__panel {
		min-width: 100%;
		max-width: 100%;
	}

	.wd-collection-filters__item .wd-collection-filters__dropdown[aria-hidden="false"] {
		transform: translateY(0);
	}

	/* Drawer handle */
	.wd-collection-filters__panel-inner::before {
		content: "";
		display: block;
		width: 40px;
		height: 4px;
		margin: 12px auto 16px;
		background: rgba(0, 0, 0, 0.2);
		border-radius: 2px;
	}

	/* Mobile: panel grid stacks, apply full width at bottom */
	.wd-collection-filters__panel-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.wd-collection-filters__panel-terms {
		max-height: 40vh;
	}

	.wd-collection-filters__panel-apply-col {
		padding-left: 0;
		border-left: none;
		border-top: 1px solid var(--wd-brd-color, #e0e0e0);
		padding-top: 16px;
		justify-content: stretch;
	}

	.wd-collection-filters__panel-apply-col .wd-collection-filters__apply {
		width: 100%;
	}

	body.wd-filter-dropdown-open .wd-collection-filters__overlay {
		opacity: 1;
		visibility: visible;
	}
}
.wd-pf-btn.wd-col > button {
    border-radius: 0;
    background: transparent;
    border: 1px solid black;
    padding: 12px 40px;
    color: black;
}
.wd-pf-btn.wd-col > button:hover {
    background: #BDB1A7!important;
}
a.wd-collection-filters__chip {
	font-size: inherit !important;
    border: none !important;
    background: rgba(0, 0, 0, 0.1);
    color: black;
    border-radius: 0;
    padding: 4px 10px;
}
a.wd-collection-filters__chip:hover {
	background: #BDB1A7;
}
a.wd-collection-filters__chip--clear, a.wd-collection-filters__chip--clear:hover {
    background: transparent;
	position: relative;
	padding:4px 0;
}
a.wd-collection-filters__chip--clear:before {
    content: "";
    position: absolute;
    left: 0;
    right: 50%;
    bottom: 0;
    border-bottom: 1px solid currentColor;
    transition: left .5s cubic-bezier(.25, .46, .45, .98);
}
a.wd-collection-filters__chip--clear:after {
    content: "";
    position: absolute;
    right: 0;
    left: 50%;
    bottom: 0;
    border-bottom: 1px solid currentColor;
    transition: right .5s cubic-bezier(.25, .46, .45, .98);
}
a.wd-collection-filters__chip--clear:hover:before {
    left: 30%;
}
a.wd-collection-filters__chip--clear:hover:after {
    right: 30%;
}
/* Make filters like mondayswimwear.com */
.wd-style-form .wd-pf-title{
	padding-inline: 10px !important;
    border: 0 !important;
}
.wd-style-form .wd-pf-title:after{display: none;}
.wd-grid-f-stretch>.wd-col {
    width: auto;
    flex: auto;
}
.wd-pf-checkboxes {
    position: static!important;
}
.elementor-widget-wd_product_filters > div {
    display: flex;
}
.wd-pf-dropdown .wd-scroll {
    background: white;
    width: 100%;
    min-height: 120px;
	display: flex;
    align-items: center;
    justify-content: start;
}
.wd-pf-btn.wd-col {
    display: none;
}
.wd-pf-dropdown ul {
    /* top: -50px; */
    /* position: absolute;
    left: 0;
    right: 0; */
	width: 80%;
    background: white;
    column-count: 4;
	min-height: 50px;
}
.wd-pf-dropdown .wd-pf-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 20% !important;
}