.df-panel,
.df-button-wrap,
.df-drawer,
.df-archive-filter-sidebar {
	--df-primary: #168486;
	--df-accent: #0f7778;
	--df-bg: #ffffff;
	--df-text: #151a23;
	--df-radius: 4px;
	--df-drawer-width: 420px;
	--df-mobile-bottom-offset: 0px;
	--df-mobile-panel-chrome: 137px;
	--df-desktop-filter-chrome: 118px;
	--df-desktop-sticky-top: 54px;
}

.df-button-wrap {
	display: inline-block;
	position: relative;
	color: var(--df-text);
}

.df-trigger-btn {
	align-items: center;
	background: #ffffff;
	border: 1px solid var(--df-primary);
	border-radius: var(--df-radius);
	color: var(--df-primary);
	cursor: pointer;
	display: inline-flex;
	font: inherit;
	font-weight: 700;
	gap: 8px;
	justify-content: center;
	line-height: 1.2;
	min-height: 38px;
	padding: 8px 16px;
	position: relative;
	text-decoration: none;
	transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.df-trigger-btn:focus-visible,
.df-group-tab:focus-visible,
.df-clear-all:focus-visible,
.df-close-btn:focus-visible,
.df-apply-btn:focus-visible,
.df-option:focus-within {
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--df-primary) 25%, transparent);
	outline: none;
}

.df-btn-icon,
.df-icon {
	color: currentColor;
	display: inline-block;
	flex: 0 0 auto;
	height: 18px;
	width: 18px;
}

.df-active-count {
	align-items: center;
	background: var(--df-primary);
	border-radius: 999px;
	color: #ffffff;
	display: inline-flex;
	font-size: 11px;
	font-weight: 700;
	height: 18px;
	justify-content: center;
	line-height: 1;
	min-width: 18px;
	padding: 0 4px;
	position: absolute;
	right: -8px;
	top: -8px;
}

.df-active-count[hidden],
.df-backdrop[hidden],
.df-drawer[hidden] {
	display: none !important;
}

.df-backdrop {
	background: rgba(0, 0, 0, 0.4);
	inset: 0;
	position: fixed;
	z-index: 999998;
}

.df-drawer {
	background: var(--df-bg);
	border-radius: 16px 16px 0 0;
	bottom: var(--df-mobile-bottom-offset);
	box-shadow: 0 -18px 50px rgba(0, 0, 0, 0.22);
	color: var(--df-text);
	height: calc(100vh - var(--df-mobile-bottom-offset));
	height: calc(100dvh - var(--df-mobile-bottom-offset));
	left: 0;
	max-height: calc(100vh - var(--df-mobile-bottom-offset));
	max-height: calc(100dvh - var(--df-mobile-bottom-offset));
	overflow: hidden;
	position: fixed;
	right: 0;
	transform: translateY(100%);
	transition: transform 300ms ease;
	z-index: 999999;
}

.df-drawer.is-open {
	transform: translateY(0);
}

.df-panel {
	background: var(--df-bg);
	color: var(--df-text);
	display: flex;
	flex-direction: column;
	font-family: inherit;
	height: 100%;
	min-height: min(90vh, 520px);
	width: 100%;
}

.df-drawer .df-panel {
	min-height: 0;
}

.df-panel-header {
	align-items: center;
	border-bottom: 1px solid #eeeeee;
	display: flex;
	flex: 0 0 auto;
	justify-content: space-between;
	padding: 16px;
}

.df-panel-title {
	align-items: center;
	color: var(--df-text);
	display: inline-flex;
	font-weight: 800;
	gap: 8px;
	line-height: 1.2;
}

.df-panel-title .df-icon {
	color: var(--df-primary);
}

.df-clear-all {
	background: transparent;
	border: 0;
	color: var(--df-primary);
	cursor: pointer;
	font: inherit;
	font-weight: 700;
	padding: 4px 0;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.df-form {
	display: flex;
	flex: 1 1 auto;
	margin: 0;
	min-height: 0;
}

.df-panel-body {
	display: flex;
	flex: 1 1 auto;
	min-height: 0;
	overflow: hidden;
	width: 100%;
}

.df-group-tabs {
	background: #f5f5f5;
	border-right: 1px solid #eeeeee;
	flex: 0 0 35%;
	max-width: 220px;
	min-width: 116px;
	overflow-y: auto;
}

.df-group-tab {
	background: #f5f5f5;
	border: 0;
	color: var(--df-text);
	cursor: pointer;
	display: block;
	font: inherit;
	font-weight: 700;
	line-height: 1.25;
	padding: 14px 12px;
	text-align: left;
	width: 100%;
}

.df-group-tab.is-active {
	background: #e8e8e8;
	font-weight: 800;
}

.df-options-area {
	background: var(--df-bg);
	flex: 1 1 auto;
	min-width: 0;
	overflow-y: auto;
}

.df-options-panel {
	display: none;
}

.df-options-panel.is-active {
	display: block;
}

.df-option {
	align-items: center;
	border-bottom: 1px solid #f0f0f0;
	cursor: pointer;
	display: flex;
	gap: 10px;
	min-height: 46px;
	padding: 12px 14px;
	position: relative;
}

.df-option-label {
	flex: 1 1 auto;
	min-width: 0;
	overflow-wrap: anywhere;
}

.df-option-count {
	color: #999999;
	flex: 0 0 auto;
	font-size: 0.85em;
	margin-left: 8px;
}

.df-option input {
	height: 1px;
	margin: 0;
	opacity: 0;
	position: absolute;
	right: 18px;
	width: 1px;
}

.df-control {
	border: 1.5px solid #cccccc;
	border-radius: 2px;
	display: inline-block;
	flex: 0 0 auto;
	height: 18px;
	position: relative;
	width: 18px;
}

.df-option input:checked + .df-control {
	background: var(--df-primary);
	border-color: var(--df-primary);
}

.df-option input:checked + .df-control::after {
	border: solid #ffffff;
	border-width: 0 2px 2px 0;
	content: "";
	height: 9px;
	left: 5px;
	position: absolute;
	top: 2px;
	transform: rotate(45deg);
	width: 5px;
}

.df-empty-options {
	color: #6b7280;
	padding: 18px 14px;
}

.df-panel-footer {
	border-top: 1px solid #eeeeee;
	display: flex;
	flex: 0 0 auto;
	gap: 12px;
	padding: 12px 16px;
}

.df-close-btn,
.df-apply-btn {
	border-radius: var(--df-radius);
	cursor: pointer;
	flex: 1 1 0;
	font: inherit;
	font-weight: 800;
	letter-spacing: 0;
	line-height: 1.2;
	min-height: 44px;
	padding: 12px;
	text-transform: uppercase;
}

.df-close-btn {
	background: #ffffff;
	border: 1px solid #cccccc;
	color: #111111;
}

.df-apply-btn {
	background: var(--df-primary);
	border: 0;
	color: #ffffff;
}

.df-panel-placeholder {
	align-items: center;
	justify-content: center;
	min-height: 260px;
	padding: 24px;
	text-align: center;
}

.dravin-product-grid.df-grid-loading {
	opacity: 0.55;
	pointer-events: none;
	transition: opacity 160ms ease;
}

.df-grid-empty {
	color: #6b7280;
	grid-column: 1 / -1;
	padding: 24px 12px;
	text-align: center;
	width: 100%;
}

@media (min-width: 768px) {
	.df-drawer {
		border-radius: 0;
		bottom: 0;
		box-shadow: 18px 0 50px rgba(0, 0, 0, 0.2);
		bottom: 0;
		height: 100vh;
		left: 0;
		max-height: 100vh;
		right: auto;
		top: 0;
		transform: translateX(-100%);
		width: var(--df-drawer-width);
	}

	.df-drawer.is-open {
		transform: translateX(0);
	}

	.df-panel {
		min-height: 100vh;
	}
}

@media (min-width: 768px) {

.df-archive-filter-shell {
	margin: 24px 0;
	max-width: none;
	overflow: visible !important;
	padding: 0 24px 0 0;
	width: 100%;
}

.df-archive-filter-mobile-bar {
	display: none;
}

.df-archive-filter-layout {
	align-items: start;
	display: grid;
	gap: 24px;
	grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
	overflow: visible !important;
	width: 100%;
}

/* ── Elementor ancestor overflow fix ─────────────────────────
   Elementor sections / containers often set overflow:hidden which
   creates a new scroll context and silently breaks position:sticky.
   These rules neutralize that for common Elementor wrappers that
   sit between the layout grid and the page root.                  */
.df-archive-filter-shell .e-con,
.df-archive-filter-shell .e-con-inner,
.df-archive-filter-shell .elementor-widget-container {
	overflow: visible !important;
}

.df-archive-filter-sidebar {
	align-self: start;
	background: #ffffff;
	border-right: 1px solid #e7e7e7;
	height: calc(100vh - var(--df-desktop-sticky-top, 54px)) !important;
	margin-left: 0;
	max-height: calc(100vh - var(--df-desktop-sticky-top, 54px)) !important;
	overflow: hidden;
	padding-left: 0;
	padding-right: 18px;
	position: sticky !important;
	top: var(--df-desktop-sticky-top, 54px) !important;
	bottom: auto;
}

.df-archive-filter-content {
	min-width: 0;
	width: 100%;
}

.df-archive-filter-sidebar .elementor-element,
.df-archive-filter-content .elementor-element,
.df-archive-filter-sidebar .elementor-widget,
.df-archive-filter-content .elementor-widget {
	max-width: none;
	width: 100%;
}

.df-archive-filter-sidebar .df-inline-filter-section,
.df-archive-filter-sidebar .elementor-element,
.df-archive-filter-sidebar .elementor-widget,
.df-archive-filter-sidebar .elementor-widget-container,
.df-archive-filter-sidebar .e-con,
.df-archive-filter-sidebar .e-con-inner {
	margin-left: 0;
	padding-left: 0;
}

.df-archive-filter-sidebar .e-con-inner,
.df-archive-filter-content .e-con-inner {
	max-width: none;
	padding-left: 0;
	padding-right: 0;
	width: 100%;
}

.df-archive-filter-sidebar .df-panel {
	display: flex;
	flex-direction: column;
	height: 100%;
	max-height: 100%;
	min-height: 0;
	overflow: hidden;
}

.df-archive-filter-sidebar .df-panel-header {
	border-bottom: 0;
	flex: 0 0 auto;
	padding: 0 0 18px;
}

.df-archive-filter-sidebar .df-form {
	display: block;
	flex: 1 1 auto;
	max-height: calc(100vh - var(--df-desktop-sticky-top, 54px) - var(--df-desktop-filter-chrome, 118px));
	min-height: 0;
	overflow-y: auto;
	padding-right: 14px;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
}

/* Custom scrollbar for the filter scroll area — matches Souled Store */
.df-archive-filter-sidebar .df-form::-webkit-scrollbar {
	width: 6px;
}

.df-archive-filter-sidebar .df-form::-webkit-scrollbar-track {
	background: #f5f5f5;
	border-radius: 6px;
}

.df-archive-filter-sidebar .df-form::-webkit-scrollbar-thumb {
	background: #c0c0c0;
	border-radius: 6px;
}

.df-archive-filter-sidebar .df-form::-webkit-scrollbar-thumb:hover {
	background: #999999;
}

.df-archive-filter-sidebar .df-panel-body,
.df-archive-filter-sidebar .df-options-area {
	display: block;
	overflow: visible;
}

.df-archive-filter-sidebar .df-group-tabs {
	display: none;
}

.df-archive-filter-sidebar .df-options-panel {
	border-bottom: 1px solid #e7e7e7;
	display: block;
	padding: 0 0 16px;
}

.df-archive-filter-sidebar .df-options-panel + .df-options-panel {
	padding-top: 18px;
}

.df-inline-group-title {
	color: #444444;
	font-size: 14px;
	font-weight: 800;
	line-height: 1.2;
	margin: 0 0 12px;
	text-transform: uppercase;
}

.df-archive-filter-sidebar .df-option {
	border-bottom: 0;
	gap: 10px;
	min-height: 32px;
	padding: 6px 0;
}

.df-archive-filter-sidebar .df-control {
	order: -1;
}

.df-archive-filter-sidebar .df-option-count {
	margin-left: auto;
}

.df-archive-filter-sidebar .df-panel-footer {
	background: #ffffff;
	bottom: 0;
	flex: 0 0 auto;
	padding: 14px 0 0;
	position: sticky;
	z-index: 2;
}

.df-archive-filter-sidebar .df-close-btn {
	display: none;
}

.df-archive-filter-content .dravin-product-grid {
	--dravin-grid-columns-desktop: 4 !important;
}

} /* end @media (min-width: 768px) */

@media (max-width: 767px) {
	.df-archive-filter-shell {
		margin: 0;
		max-width: none;
		padding: 0;
	}

	.df-archive-filter-mobile-bar {
		align-items: center;
		background: #ffffff;
		border-bottom: 1px solid #eeeeee;
		display: flex;
		justify-content: flex-start;
		padding: 10px 12px;
		position: relative;
		z-index: 1;
	}

	.df-archive-filter-trigger {
		min-height: 36px;
	}

	.df-archive-filter-layout {
		display: block;
	}

	.df-archive-filter-sidebar {
		align-self: auto;
		border-radius: 16px 16px 0 0;
		border-right: 0;
		bottom: var(--df-mobile-bottom-offset);
		box-shadow: 0 -18px 50px rgba(0, 0, 0, 0.22);
		height: calc(100vh - var(--df-mobile-bottom-offset));
		height: calc(100dvh - var(--df-mobile-bottom-offset));
		left: 0;
		max-height: calc(100vh - var(--df-mobile-bottom-offset));
		max-height: calc(100dvh - var(--df-mobile-bottom-offset));
		overflow: hidden;
		padding-left: 0;
		padding-right: 0;
		position: fixed;
		right: 0;
		top: auto;
		transform: translateY(100%);
		transition: transform 300ms ease;
		z-index: 999999;
	}

	.df-archive-filter-shell.is-open .df-archive-filter-sidebar {
		transform: translateY(0);
	}

	.df-drawer .df-panel,
	.df-archive-filter-sidebar .df-panel {
		height: 100%;
		max-height: 100%;
		min-height: 0;
	}

	.df-archive-filter-sidebar .df-panel-header {
		border-bottom: 1px solid #eeeeee;
		padding: 16px;
	}

	.df-drawer .df-form,
	.df-archive-filter-sidebar .df-form {
		display: flex;
		max-height: calc(100vh - var(--df-mobile-panel-chrome) - var(--df-mobile-bottom-offset));
		max-height: calc(100dvh - var(--df-mobile-panel-chrome) - var(--df-mobile-bottom-offset));
		overflow: hidden;
	}

	.df-drawer .df-panel-body,
	.df-archive-filter-sidebar .df-panel-body {
		display: flex;
		overflow: hidden;
	}

	.df-archive-filter-sidebar .df-group-tabs {
		display: block;
	}

	.df-drawer .df-group-tabs,
	.df-drawer .df-options-area,
	.df-archive-filter-sidebar .df-group-tabs,
	.df-archive-filter-sidebar .df-options-area {
		-webkit-overflow-scrolling: touch;
		max-height: calc(100vh - var(--df-mobile-panel-chrome) - var(--df-mobile-bottom-offset));
		max-height: calc(100dvh - var(--df-mobile-panel-chrome) - var(--df-mobile-bottom-offset));
		overflow-y: auto;
	}

	.df-archive-filter-sidebar .df-options-panel {
		border-bottom: 0;
		display: none;
		padding: 0;
	}

	.df-archive-filter-sidebar .df-options-panel.is-active {
		display: block;
	}

	.df-archive-filter-sidebar .df-options-panel + .df-options-panel {
		padding-top: 0;
	}

	.df-archive-filter-sidebar .df-option {
		border-bottom: 1px solid #f0f0f0;
		gap: 10px;
		min-height: 46px;
		padding: 12px 14px;
	}

	.df-archive-filter-sidebar .df-control {
		order: 0;
	}

	.df-archive-filter-sidebar .df-option-count {
		margin-left: 8px;
	}

	.df-inline-group-title {
		display: none;
	}

	.df-drawer .df-panel-footer,
	.df-archive-filter-sidebar .df-panel-footer {
		background: #ffffff;
		border-top: 1px solid #eeeeee;
		padding: 12px 16px;
		padding-bottom: max(12px, env(safe-area-inset-bottom));
		position: sticky;
		bottom: 0;
		z-index: 2;
	}

	.df-archive-filter-sidebar .df-close-btn {
		display: block;
	}
}
