.duf-hfilter {
	display: flex;
	align-items: flex-end;
	flex-wrap: wrap;
	gap: 8px;
	padding: 14px 16px;
	background: #f3f3f3;
	border-radius: 4px;
	margin-bottom: 20px;

}

.duf-vfilter {
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	padding: 28px 32px 24px;
	background: #fffdfb;
	border: 1px solid #ead8d4;
	border-radius: 14px;
	margin-bottom: 20px;
	width: 100%;
}

.duf-filter-sticky {
	position: sticky;
	z-index: 30;
}

.duf-filter-sticky--fixed {
	position: fixed !important;
	z-index: 1030;
}

.duf-vfilter__accordion {
	display: flex;
	flex-direction: column;
}

.duf-vfilter__item {
	background: transparent;
	border: 0;
	border-bottom: 1px solid #eadeda;
	border-radius: 0;
}

.duf-vfilter__item:last-child {
	border-bottom: 0;
}

.duf-vfilter__button {
	min-height: 52px;
	padding: 0;
	background: transparent !important;
	box-shadow: none !important;
	color: #7a0a1b;
	font-family: var(--font-family-heading, Georgia, 'Times New Roman', serif);
	font-size: 18px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .04em;
}

.duf-vfilter__button:not(.collapsed) {
	color: var(--color-accent, #6f0413);
}

.duf-vfilter__button::after {
	width: 12px;
	height: 12px;
	background-size: 12px;
	opacity: .7;
}

.duf-vfilter__body {
	padding: 0 0 22px;
}

.duf-hfilter__group {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.duf-hfilter__group--grow {
	flex: 1 1 150px;
	position: relative;
}

.duf-hfilter__group--price {
	flex: 0 0 auto;
}

.duf-hfilter__label {
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: #7a8a9a;
	white-space: nowrap;
}

.duf-hfilter select,
.duf-checkselect__button,
.duf-vfilter select,
.duf-hfilter input[type="text"],
.duf-vfilter input[type="text"],
.duf-hfilter input[type="number"],
.duf-vfilter input[type="number"] {
	height: 36px;
	padding: 0 28px 0 10px;
	background: #fff;
	border: 1px solid #e0e4ea;
	border-radius: 5px;
	color: #4c4444;
	font-size: 13px;
	outline: none;
	transition: border-color .15s, box-shadow .15s;
	appearance: none;
	-webkit-appearance: none;
}

.duf-hfilter select,
.duf-checkselect__button,
.duf-vfilter select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='%237a8a9a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 9px center;
	cursor: pointer;
}

.duf-checkselect {
	position: relative;
	min-width: 150px;
}

.duf-checkselect[open] {
	z-index: 40;
}

.duf-checkselect__button {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 8px;
	width: 100%;
	list-style: none;
	user-select: none;
}

.duf-checkselect__button::-webkit-details-marker {
	display: none;
}

.duf-checkselect__text {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.duf-checkselect__count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	margin-left: auto;
	background: #006ebb;
	border-radius: 999px;
	color: #fff;
	font-size: 10px;
	font-weight: 800;
	line-height: 1;
}

.duf-checkselect__panel {
	position: absolute;
	top: calc(100% + 4px);
	left: 0;
	display: flex;
	flex-direction: column;
	width: max(100%, 220px);
	max-height: 280px;
	padding: 10px 12px 0;
	background: #fff;
	border: 1px solid #d8dee8;
	border-radius: 5px;
	box-shadow: 0 12px 24px rgba(13, 31, 60, .14);
	overflow: hidden;
}

.duf-checkselect__options {
	min-height: 0;
	overflow-y: auto;
	padding-bottom: 8px;
}

.duf-checkselect__apply {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 34px;
	margin: 8px 0 10px;
	background: #006ebb;
	border: 0;
	border-radius: 5px;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .08em;
	cursor: pointer;
	transition: background .15s;
}

.duf-checkselect__apply:hover {
	background: #0058a0;
}

.duf-checkselect__panel .radicalmart-fields-standard-filter_checkboxes>ul {
	margin: 0;
}

.duf-checkselect__panel .form-check {
	display: flex;
	align-items: center;
	min-height: 28px;
	margin-bottom: 4px;
}

.duf-checkselect__panel .form-check-input {
	margin-top: 0;
	margin-right: 7px;
	border-color: #d0d8e4;
}

.duf-checkselect__panel .form-check-input:checked {
	background-color: #006ebb;
	border-color: #006ebb;
}

.duf-checkselect__panel .form-check-label {
	color: #4c4444;
	font-size: 13px;
	line-height: 1.35;
}

.duf-checkselect__panel .dharma-filter-option-unavailable,
.duf-checkselect__panel .dharma-filter-option-disabled {
	opacity: .45;
}

.duf-radio-buttons .form-checks,
.duf-radio-buttons fieldset,
.duf-radio-buttons .controls,
.duf-radio-buttons .btn-group,
.duf-radio-buttons .duf-radio-native,
.duf-radio-native {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 6px;
	width: auto;
	margin: 0;
}

.duf-radio-buttons .form-check {
	display: inline-flex;
	align-items: center;
	margin: 0;
	padding: 0;
	min-height: 0;
}

.duf-radio-buttons .form-check-input {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: 0;
	opacity: 0;
	pointer-events: none;
}

.duf-radio-buttons .form-check-label {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 32px;
	padding: 0 12px;
	background: #fff;
	border: 1px solid #d8dee8;
	border-radius: 5px;
	color: #4c4444;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
}

.duf-radio-buttons .btn-check+.btn,
.duf-radio-buttons .btn-check+label,
.duf-radio-native .btn-check+.btn,
.duf-radio-native .btn-check+label {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto !important;
	width: auto !important;
	min-width: 0;
	min-height: 28px;
	padding: 0 10px;
	background: #fff !important;
	border: 1px solid #d8dee8 !important;
	border-radius: 5px !important;
	color: #4c4444 !important;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	box-shadow: none;
	transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
}

.duf-radio-buttons .form-check-label:hover {
	border-color: #b0bac8;
}

.duf-radio-buttons .btn-check+.btn:hover,
.duf-radio-buttons .btn-check+label:hover,
.duf-radio-native .btn-check+.btn:hover,
.duf-radio-native .btn-check+label:hover {
	border-color: #b0bac8 !important;
}

.duf-radio-buttons .form-check-input:checked+.form-check-label,
.duf-radio-buttons .form-check-input:checked~.form-check-label,
.duf-radio-buttons .btn-check:checked+.btn,
.duf-radio-buttons .btn-check:checked+label,
.duf-radio-native .btn-check:checked+.btn,
.duf-radio-native .btn-check:checked+label {
	background: #006ebb !important;
	border-color: #006ebb !important;
	color: #fff !important;
	box-shadow: 0 0 0 2px rgba(0, 110, 187, .1) !important;
}

.duf-radio-buttons .form-check-input:disabled+.form-check-label,
.duf-radio-buttons .form-check-input:disabled~.form-check-label,
.duf-radio-buttons .btn-check:disabled+.btn,
.duf-radio-buttons .btn-check:disabled+label,
.duf-radio-native .btn-check:disabled+.btn,
.duf-radio-native .btn-check:disabled+label {
	opacity: .45;
	cursor: not-allowed;
}

.duf-hfilter input[type="text"],
.duf-vfilter input[type="text"],
.duf-hfilter input[type="number"],
.duf-vfilter input[type="number"] {
	width: 82px;
	padding: 0 10px;
}

.duf-hfilter select:focus,
.duf-vfilter select:focus,
.duf-hfilter input:focus,
.duf-vfilter input:focus {
	border-color: rgba(0, 110, 187, .45);
	box-shadow: 0 0 0 3px rgba(0, 110, 187, .08);
}

.duf-hfilter__divider {
	width: 1px;
	height: 36px;
	background: #d8dee8;
	flex-shrink: 0;
	align-self: flex-end;
}

.duf-hfilter__actions {
	display: flex;
	gap: 6px;
	align-self: flex-end;
}

.duf-vfilter__actions {
	display: grid;
	gap: 8px;
	padding-top: 14px;
}

.duf-vfilter__btn {
	justify-content: center;
	width: 100%;
}

.duf-hfilter__btn {
	display: inline-flex;
	align-items: center;
	height: 36px;
	padding: 0 18px;
	border-radius: 5px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .08em;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	border: none;
	transition: background .15s, color .15s, border-color .15s;
}

.duf-hfilter__btn--primary {
	background: #006ebb;
	color: #fff;
}

.duf-hfilter__btn--primary:hover {
	background: #0058a0;
	color: #fff;
}

.duf-hfilter__btn--reset {
	background: transparent;
	color: #7a8a9a;
	border: 1px solid #d0d8e4;
}

.duf-hfilter__btn--reset:hover {
	border-color: #b0bac8;
	color: #4c4444;
}

.duf-filter-toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 36px;
	padding: 0 16px;
	background: #f3f3f3;
	border: 1px solid #e0e4ea;
	border-radius: 6px;
	color: #4c4444;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: background .15s, border-color .15s;
}

.duf-filter-toggle:hover {
	background: #eaeaea;
	border-color: #c8d0dc;
}

.duf-filter-toggle__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	background: #006ebb;
	color: #fff;
	font-size: 10px;
	font-weight: 800;
	border-radius: 999px;
	line-height: 1;
}

/* On catalogue pages the mobile trigger belongs to the same toolbar as
   sorting and the grid/list switcher. The module still owns the offcanvas;
   this rule only gives the trigger a proper place in the catalogue layout. */
#RadicalMart .category-filter-toggle {
	grid-area: filter;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	min-height: 42px;
	padding: 0 18px;
	background: #7a0a1b;
	border: 1px solid #7a0a1b;
	border-radius: 999px;
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .03em;
	box-shadow: 0 8px 18px rgba(122, 10, 27, .12);
}

#RadicalMart .category-filter-toggle svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
	stroke-linecap: round;
}

#RadicalMart .category-filter-toggle:hover,
#RadicalMart .category-filter-toggle:focus-visible {
	background: #650817;
	border-color: #650817;
	color: #fff;
}

.duf-offcanvas {
	width: min(340px, 92vw) !important;
	border-right: 1px solid #edf1f4 !important;
}

.duf-offcanvas .offcanvas-header {
	height: 64px;
	padding: 0 20px;
	border-bottom: 1px solid #edf1f4;
}

.duf-offcanvas__title {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 15px;
	font-weight: 700;
	color: #0d1f3c;
	text-transform: uppercase;
	letter-spacing: .04em;
}

.duf-offcanvas .offcanvas-body {
	padding: 20px;
	overflow-y: auto;
}

.duf-offcanvas .accordion-button {
	font-size: 13px;
	font-weight: 700;
	color: #4c4444;
	background: transparent !important;
	box-shadow: none !important;
	padding-left: 0;
	padding-right: 0;
}

.duf-offcanvas .accordion-button:not(.collapsed) {
	color: #7a0a1b;
}

.duf-offcanvas .accordion-item {
	background: transparent;
}

.duf-vfilter .form-check,
.duf-offcanvas .form-check {
	display: flex;
	align-items: center;
	min-height: 28px;
	margin-bottom: 4px;
}

.duf-vfilter .form-check-input,
.duf-offcanvas .form-check-input {
	margin-top: 0;
	margin-right: 7px;
	border-color: #d0d8e4;
}

.duf-vfilter .form-check-input:checked,
.duf-offcanvas .form-check-input:checked {
	background-color: var(--color-accent, #6f0413);
	border-color: var(--color-accent, #6f0413);
}

.duf-vfilter .form-check-label,
.duf-offcanvas .form-check-label {
	color: #4c4444;
	font-size: 13px;
	line-height: 1.35;
}

.duf-vfilter .dharma-filter-option-unavailable,
.duf-vfilter .dharma-filter-option-disabled,
.duf-offcanvas .dharma-filter-option-unavailable,
.duf-offcanvas .dharma-filter-option-disabled {
	opacity: .45;
}

/* Vertical mode keeps checkboxes in the flow; the limit only folds extra
   rows behind a small "show all" control. */
.duf-vchecklist .form-check {
	display: flex;
	align-items: center;
	min-height: 42px;
	margin: 0;
	padding: 0;
}

.duf-vchecklist .form-check-input {
	flex: 0 0 28px;
	width: 28px;
	height: 28px;
	margin: 0 14px 0 0;
	border: 1px solid #e4c5c0;
	border-radius: 50%;
	background-color: #fffdfb;
	background-image: none;
	box-shadow: 0 0 0 4px rgba(234, 216, 212, .22);
	appearance: none;
	-webkit-appearance: none;
	position: relative;
}

.duf-vchecklist .form-check-input:checked {
	background-color: #7a0a1b;
	border-color: #7a0a1b;
	background-image: none;
}

.duf-vchecklist .form-check-input:checked::after {
	content: '';
	position: absolute;
	left: 9px;
	top: 6px;
	width: 7px;
	height: 12px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.duf-vchecklist .form-check-label {
	color: var(--color-text, #212529);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	width: 100%;
	font-size: 16px;
	line-height: 1.35;
}

.duf-option-label__text {
	min-width: 0;
}

.duf-option-label__count {
	margin-left: auto;
	color: #a78982;
	font-size: 13px;
	white-space: nowrap;
}

/* Keep unavailable values visible but clearly inert when the module is set
   to "disable". The helper adds the native disabled attribute to inputs. */
.duf-vchecklist .form-check-input:disabled {
	opacity: .45;
	cursor: not-allowed;
}

.duf-vchecklist .form-check-input:disabled:checked {
	background-color: #cbb8b4;
	border-color: #cbb8b4;
}

.duf-vchecklist .form-check-input:disabled + .form-check-label {
	color: #9b8e8c;
	opacity: .65;
	cursor: not-allowed;
}

.duf-vchecklist__toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 8px 0 0;
	padding: 0;
	background: none;
	border: 0;
	color: var(--color-accent, #6f0413);
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .06em;
	cursor: pointer;
}

.duf-vchecklist__chevron {
	width: 7px;
	height: 7px;
	border-right: 1px solid currentColor;
	border-bottom: 1px solid currentColor;
	transform: rotate(45deg) translateY(-2px);
	transition: transform .2s ease;
}

.duf-vchecklist.is-expanded .duf-vchecklist__chevron {
	transform: rotate(225deg) translate(-1px, -1px);
}

.duf-vchecklist__toggle:focus-visible {
	outline: 2px solid rgba(111, 4, 19, .25);
	outline-offset: 3px;
}

.dharma-filter-price-slider__ranges {
	position: relative;
	height: 34px;
	margin: 12px 0 0;
}

.duf-price-slider__inputs {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 24px;
	margin-bottom: 8px;
}

.duf-price-slider__field-label {
	display: block;
	margin: 0 0 6px;
	color: #a06f69;
	font-size: 12px;
	line-height: 1;
	text-transform: uppercase;
	letter-spacing: .05em;
}

.duf-vfilter .duf-price-slider__inputs input[type="number"] {
	box-sizing: border-box;
	width: 100%;
	height: 56px;
	padding: 0 14px;
	background: #fffdfb;
	border: 1px solid #ead8d4;
	border-radius: 10px;
	font-size: 17px;
}

.dharma-filter-price-slider__track,
.dharma-filter-price-slider__fill {
	position: absolute;
	top: 50%;
	height: 3px;
	border-radius: 999px;
	transform: translateY(-50%);
	pointer-events: none;
}

.dharma-filter-price-slider__track {
	left: 0;
	right: 0;
	background: #eadeda;
}

.dharma-filter-price-slider__fill {
	left: var(--duf-from, 0%);
	right: calc(100% - var(--duf-to, 100%));
	min-width: 0;
	background: var(--color-accent, #6f0413);
}

.dharma-filter-price-slider__range {
	position: absolute;
	top: 50%;
	left: 0;
	width: 100%;
	height: 34px;
	margin: 0;
	padding: 0;
	transform: translateY(-50%);
	background: transparent;
	border: 0;
	pointer-events: none;
	-webkit-appearance: none;
	appearance: none;
}

.dharma-filter-price-slider__range--from {
	z-index: 3;
}

.dharma-filter-price-slider__range--to {
	z-index: 4;
}

.dharma-filter-price-slider__range::-webkit-slider-runnable-track {
	height: 3px;
	background: transparent;
	border: 0;
}

.dharma-filter-price-slider__range::-moz-range-track {
	height: 3px;
	background: transparent;
	border: 0;
}

.dharma-filter-price-slider__range::-webkit-slider-thumb {
	width: 18px;
	height: 18px;
	margin-top: -7px;
	background: #fff;
	border: 2px solid var(--color-accent, #6f0413);
	border-radius: 50%;
	box-shadow: 0 1px 4px rgba(38, 18, 18, .18);
	cursor: grab;
	pointer-events: auto;
	-webkit-appearance: none;
}

.dharma-filter-price-slider__range--to::-webkit-slider-thumb {
	background: #7a0a1b;
	border-color: #fffdfb;
}

.dharma-filter-price-slider__range::-webkit-slider-thumb:active {
	cursor: grabbing;
}

.dharma-filter-price-slider__range::-moz-range-thumb {
	width: 14px;
	height: 14px;
	background: #fff;
	border: 2px solid var(--color-accent, #6f0413);
	border-radius: 50%;
	box-shadow: 0 1px 4px rgba(38, 18, 18, .18);
	cursor: grab;
	pointer-events: auto;
}

.dharma-filter-price-slider__range--to::-moz-range-thumb {
	background: #7a0a1b;
	border-color: #fffdfb;
}

.duf-vfilter__actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid #eadeda;
}

.duf-vfilter__actions .duf-vfilter__btn {
	justify-content: center;
	width: 100%;
	min-height: 52px;
	border-radius: 10px;
	font-size: 14px;
	letter-spacing: .08em;
}

.duf-vfilter__actions .duf-hfilter__btn--primary {
	background: #7a0a1b;
	border-color: #7a0a1b;
	color: #fff;
}

.duf-vfilter__actions .duf-hfilter__btn--reset {
	background: transparent;
	border-color: #7a0a1b;
	color: #7a0a1b;
}

.duf-vfilter__actions .duf-hfilter__btn--reset:hover {
	background: rgba(122, 10, 27, .06);
	border-color: #7a0a1b;
	color: #7a0a1b;
}

/* The offcanvas reuses Bootstrap's accordion selector, so repeat the
   vertical heading rule here with the stronger selector it needs. */
.duf-offcanvas .duf-vfilter__button {
	font-family: var(--font-family-heading, Georgia, 'Times New Roman', serif);
	font-size: 18px;
	font-weight: 600;
	color: #7a0a1b;
}

.duf-offcanvas .duf-vfilter__button:not(.collapsed) {
	color: #7a0a1b;
}

@media (max-width: 767px) {
	.duf-vfilter {
		padding: 22px 20px 20px;
		border-radius: 12px;
	}

	.duf-price-slider__inputs {
		gap: 12px;
	}

	.duf-vfilter__button {
		font-size: 16px;
	}

	.duf-hfilter {
		flex-direction: column;
		align-items: stretch;
	}

	.duf-hfilter__group--grow,
	.duf-hfilter__group--price {
		flex: 1 1 auto;
	}

	.duf-hfilter__divider {
		width: 100%;
		height: 1px;
	}

	.duf-hfilter input[type="text"],
	.duf-hfilter input[type="number"] {
		width: 100%;
	}

	.duf-hfilter__actions {
		flex-direction: column;
	}

	.duf-hfilter__btn {
		justify-content: center;
	}
}

@media (max-width: 1199.98px) {
	#RadicalMart .category-filter-column {
		flex: 0 0 100%;
		width: 100%;
		padding-bottom: 0;
	}

	#RadicalMart .category-filter-column .duf-filter-toggle {
		display: none;
	}

	#RadicalMart .rm-catalog-toolbar {
		display: grid;
		grid-template-columns: minmax(180px, .42fr) minmax(250px, 1fr) auto;
		grid-template-areas:
			"filter sort view";
		align-items: center;
		gap: 12px;
	}

	#RadicalMart .rm-catalog-toolbar__sort {
		grid-area: sort;
		width: 100%;
	}

	#RadicalMart .rm-catalog-toolbar__sort .form-select {
		width: 100%;
	}

	#RadicalMart .rm-view-switcher {
		grid-area: view;
	}

	#RadicalMart .category-filter-toggle {
		width: auto;
	}
}

@media (max-width: 767px) {
	#RadicalMart .rm-catalog-toolbar {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas:
			"filter"
			"sort";
	}

	#RadicalMart .rm-view-switcher {
		display: none;
	}

	#RadicalMart .category-filter-toggle {
		width: 100%;
	}
}
