/* Mila Vita Shop Filters — uses the site's Elementor global colours when available */
.mvf {
	--mvf-gold: var(--e-global-color-secondary, #C5A059);
	--mvf-ink: var(--e-global-color-primary, #1A1A1A);
	--mvf-text: var(--e-global-color-text, #1A1A1A);
	--mvf-cream: #FDFBF7;
	--mvf-line: #E8E2D6;
	--mvf-muted: #8A8478;
	font-family: var(--e-global-typography-text-font-family, inherit), sans-serif;
	color: var(--mvf-text);
	font-size: 15px;
	line-height: 1.5;
}

.mvf *,
.mvf *::before,
.mvf *::after { box-sizing: border-box; }

/* Neutralise theme link/list styles inside the filter */
.mvf a { text-decoration: none; box-shadow: none; }
.mvf ul, .mvf li { list-style: none; margin-left: 0; }
.mvf button { box-shadow: none; text-shadow: none; }

/* Mobile toggle (hidden on desktop) */
.mvf button.mvf-toggle {
	display: none;
	align-items: center;
	gap: 8px;
	width: 100%;
	justify-content: center;
	padding: 12px 18px;
	border: 1px solid var(--mvf-ink);
	border-radius: 999px;
	background: transparent;
	color: var(--mvf-ink);
	font: inherit;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
	cursor: pointer;
}
.mvf .mvf-toggle__dot {
	width: 8px; height: 8px; border-radius: 50%;
	background: var(--mvf-gold);
}

.mvf-block {
	padding: 0 0 22px;
	margin: 0 0 22px;
	border-bottom: 1px solid var(--mvf-line);
}
.mvf-block:last-of-type { border-bottom: 0; }

.mvf h4.mvf-title {
	margin: 0 0 12px;
	padding: 0;
	line-height: 1.3;
	text-transform: none;
	font-family: var(--e-global-typography-primary-font-family, inherit), serif;
	font-size: 18px !important;
	font-weight: 500;
	color: var(--mvf-ink);
	letter-spacing: .01em;
}

/* Collections */
.mvf-all,
.mvf-cat > a {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 10px;
	padding: 5px 0;
	color: var(--mvf-text);
	text-decoration: none;
	transition: color .15s ease;
}
.mvf-all:hover,
.mvf-cat > a:hover { color: var(--mvf-gold); }
.mvf-all.is-current,
.mvf-cat.is-current > a {
	color: var(--mvf-gold);
	font-weight: 600;
}
.mvf-cats { list-style: none; margin: 0; padding: 0; }
.mvf-cats--child { padding-left: 14px; border-left: 1px solid var(--mvf-line); margin: 2px 0 6px 2px; }
.mvf-cats--child .mvf-cat > a { font-size: 14px; }
.mvf-cat__count {
	font-size: 12px;
	color: var(--mvf-muted);
	font-variant-numeric: tabular-nums;
}

/* Price bands */
.mvf-bands { display: flex; flex-wrap: wrap; gap: 8px; }
.mvf-band {
	display: inline-block;
	padding: 7px 14px;
	border: 1px solid var(--mvf-line);
	border-radius: 999px;
	color: var(--mvf-text);
	font-size: 14px;
	text-decoration: none;
	white-space: nowrap;
	transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.mvf-band:hover { border-color: var(--mvf-gold); color: var(--mvf-ink); }
.mvf-band.is-current {
	background: var(--mvf-gold);
	border-color: var(--mvf-gold);
	color: #fff;
	font-weight: 600;
}

/* Colour swatches */
.mvf-swatches { display: flex; flex-wrap: wrap; gap: 10px 14px; }
.mvf-swatch {
	display: inline-flex; flex-direction: column; align-items: center; gap: 4px;
	width: 52px; cursor: pointer; text-align: center;
}
.mvf-swatch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.mvf-swatch__dot {
	width: 28px; height: 28px; border-radius: 50%;
	background: var(--mvf-swatch);
	border: 1px solid rgba(0,0,0,.12);
	box-shadow: 0 0 0 2px #fff, 0 0 0 3px transparent;
	transition: box-shadow .15s ease;
}
.mvf-swatch:hover .mvf-swatch__dot { box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--mvf-line); }
.mvf-swatch input:checked + .mvf-swatch__dot { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--mvf-gold); }
.mvf-swatch input:focus-visible + .mvf-swatch__dot { outline: 2px solid var(--mvf-ink); outline-offset: 4px; }
.mvf-swatch__name { font-size: 11px; line-height: 1.2; color: var(--mvf-muted); }
.mvf-swatch input:checked ~ .mvf-swatch__name { color: var(--mvf-ink); font-weight: 600; }

/* Actions */
.mvf-actions { display: flex; flex-direction: column; gap: 10px; }
.mvf button.mvf-apply {
	display: none; /* desktop filters apply instantly */
	padding: 12px 18px; border: 0; border-radius: 999px;
	background: var(--mvf-gold); color: #fff;
	font: inherit; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
	cursor: pointer; transition: background .15s ease;
}
.mvf button.mvf-apply:hover { background: var(--mvf-ink); }
.mvf-reset {
	font-size: 14px; color: var(--mvf-muted);
	text-decoration: underline; text-underline-offset: 3px;
	align-self: flex-start;
}
.mvf-reset:hover { color: var(--mvf-ink); }

/* No JavaScript: show the button so the form still works */
.no-js .mvf button.mvf-apply { display: block; }

/* Mobile: collapsible panel */
@media (max-width: 767px) {
	.mvf button.mvf-toggle { display: inline-flex; }
	.mvf-panel { display: none; margin-top: 16px; padding: 18px; background: var(--mvf-cream); border-radius: 8px; }
	.mvf.is-open .mvf-panel { display: block; }
	.mvf button.mvf-apply { display: block; width: 100%; }
	.mvf-reset { align-self: center; }
}

/* Hide the divider under the last filter section */
.mvf-block:not(:has(~ .mvf-block)) { border-bottom: 0; padding-bottom: 0; }

/* Bestseller badge (outside .mvf: sits on product cards marked .mvf-bestseller) */
ul.products li.product.mvf-bestseller { position: relative; }
ul.products li.product.mvf-bestseller::before {
	content: "\2605  BESTSELLER";
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 3;
	padding: 5px 12px;
	border-radius: 999px;
	background: var(--e-global-color-primary, #1A1A1A);
	color: #fff;
	font-family: var(--e-global-typography-text-font-family, inherit), sans-serif;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .08em;
	line-height: 1.2;
	white-space: pre;
	pointer-events: none;
}

/* Trust lines under "Proceed to checkout" */
.mvf-trust {
	list-style: none;
	margin: 16px 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
	font-family: var(--e-global-typography-text-font-family, inherit), sans-serif;
	font-size: 13px;
	line-height: 1.4;
	color: #8A8478;
}
.mvf-trust li { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0; }
.mvf-trust svg { flex: 0 0 16px; color: var(--e-global-color-secondary, #C5A059); }
