/* ==========================================================
   D2S Theme — product-filters.css
   Loads ONLY on Shop / category / tag / search archive pages
   (see inc/enqueue.php). Full-width product grid at every size;
   the filter sidebar is ALWAYS an off-canvas drawer, opened from
   the "Filters" pill in the horizontal filter bar (Temu-style)
   that sits under the breadcrumb — see template-parts/filters/
   filter-bar.php. The sidebar keeps every field for shoppers who
   want the full set in one place; the bar's own pills are a
   faster path to the common ones (Category/Price/Availability/…)
   without opening the drawer at all.
   ========================================================== */

.d2s-shop-main {
	min-width: 0;
}

/* Hidden until the drawer opens (see the drawer rules below, now
   unconditional rather than mobile-only). */
.d2s-filters-backdrop {
	display: block;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.4);
	z-index: 998;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.25s ease;
}

body.d2s-filters-open .d2s-filters-backdrop {
	opacity: 1;
	pointer-events: auto;
}

body.d2s-filters-open {
	overflow: hidden;
}

/* ---------- Sidebar shell — always an off-canvas drawer ---------- */
.d2s-filters-sidebar {
	position: fixed;
	top: 0;
	bottom: 0;
	left: 0;
	width: min(380px, 92vw);
	max-width: 380px;
	background: #fff;
	border: none;
	border-radius: 0;
	box-shadow: 8px 0 30px rgba(0, 0, 0, 0.15);
	z-index: 999;
	transform: translateX(-100%);
	transition: transform 0.3s ease;
	display: flex;
	flex-direction: column;
	padding: 0;
}

body.d2s-filters-open .d2s-filters-sidebar {
	transform: translateX(0);
}

.d2s-filters-drawer-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 62px;
	padding: 15px 18px;
	border-bottom: 1px solid #E7ECEA;
	background: #fff;
	flex-shrink: 0;
}

.d2s-filters-drawer-head h2 {
	font-size: 17px;
	font-weight: 800;
	letter-spacing: -0.01em;
	margin: 0;
	color: #163B37;
}

.d2s-filters-drawer-close {
	width: 34px;
	height: 34px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: #F4F7F6;
	border: 1px solid #E2E9E7;
	border-radius: 50%;
	cursor: pointer;
	color: #36514D;
	padding: 0;
	transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.d2s-filters-drawer-close:hover {
	background: #EAF2F0;
	border-color: #C9DCD8;
	transform: rotate(90deg);
}

.d2s-filters-form {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-height: 0;
	overflow-y: auto;
}

.d2s-filters-head {
	display: none !important; /* drawer title lives in the fixed header */
}

.d2s-filter-section {
	padding-left: 18px;
	padding-right: 18px;
}

.d2s-filters-sidebar .d2s-filter-section:first-of-type {
	border-top: none;
	margin-top: 6px;
}

.d2s-filters-drawer-footer {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 18px;
	border-top: 1px solid var(--d2s-color-border);
	margin-top: auto;
	flex-shrink: 0;
	background: #fff;
	position: sticky;
	bottom: 0;
	box-shadow: 0 -8px 18px rgba(20, 55, 50, 0.06);
}

.d2s-filters-apply-btn--desktop {
	display: none;
}
.d2s-filters-apply-btn {
	margin-top: 0;
}

.d2s-filters-drawer-footer .d2s-filters-clear-all {
	flex-shrink: 0;
}

.d2s-filters-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 14px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--d2s-color-border);
}

.d2s-filters-head h2 {
	font-size: 16px;
	font-weight: 700;
	margin: 0;
	color: var(--d2s-color-text);
}

.d2s-filters-clear-all {
	font-size: 12.5px;
	font-weight: 700;
	color: var(--d2s-color-primary);
}

.d2s-filters-clear-all:hover {
	text-decoration: underline;
}

/* ---------- Accordion sections ---------- */
.d2s-filter-section {
	border-top: 1px solid var(--d2s-color-border);
	padding: 14px 18px;
}

.d2s-filter-section + .d2s-filter-section {
	border-top-color: #EDF1F0;
}

.d2s-filters-form > .d2s-filter-section:first-of-type {
	border-top: none;
	padding-top: 12px;
}

.d2s-filter-section-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	background: none;
	border: none;
	padding: 0;
	font-size: 13.5px;
	font-weight: 700;
	color: var(--d2s-color-text);
	cursor: pointer;
	text-align: left;
}

.d2s-filter-caret {
	width: 8px;
	height: 8px;
	border-right: 1.6px solid #8B9490;
	border-bottom: 1.6px solid #8B9490;
	transform: rotate(45deg);
	transition: transform 0.2s ease;
	flex-shrink: 0;
}

.d2s-filter-section[data-open="1"] .d2s-filter-caret {
	transform: rotate(-135deg);
}

.d2s-filter-section-body {
	overflow: hidden;
	max-height: 0;
	transition: max-height 0.25s ease;
}

.d2s-filter-section[data-open="1"] .d2s-filter-section-body {
	max-height: 600px; /* generous cap — content rarely exceeds this, and it only affects the transition, not visible clipping */
}

/* ---------- Checklist / radio rows ---------- */
.d2s-filter-checklist,
.d2s-filter-rating-list {
	list-style: none;
	margin: 10px 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 9px;
	max-height: 260px;
	overflow-y: auto;
}

.d2s-filter-checklist label,
.d2s-filter-rating-list label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: #435B57;
	cursor: pointer;
}

.d2s-filter-checklist input[type="checkbox"],
.d2s-filter-rating-list input[type="radio"] {
	width: 15px;
	height: 15px;
	accent-color: var(--d2s-color-primary);
	flex-shrink: 0;
	margin: 0;
}

.d2s-filter-checklist em {
	font-style: normal;
	color: var(--d2s-color-text-muted);
	font-size: 11.5px;
}

.d2s-filter-stars {
	display: inline-flex;
	gap: 1px;
}

/* ---------- Price ---------- */
.d2s-filter-price-inputs {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 10px 0 12px;
}

.d2s-filter-price-inputs label {
	display: flex;
	align-items: center;
	flex: 1;
	border: 1px solid var(--d2s-color-border);
	border-radius: 8px;
	padding: 6px 8px;
	gap: 4px;
}

.d2s-filter-price-inputs label span {
	font-size: 12px;
	color: var(--d2s-color-text-muted);
}

.d2s-filter-price-inputs input {
	border: none;
	outline: none;
	width: 100%;
	font-size: 13px;
	-moz-appearance: textfield;
}

.d2s-filter-price-inputs input::-webkit-outer-spin-button,
.d2s-filter-price-inputs input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.d2s-filter-price-sep {
	color: var(--d2s-color-text-muted);
	flex-shrink: 0;
}

.d2s-filter-price-slider {
	width: 100%;
	accent-color: var(--d2s-color-primary);
}

/* ---------- Apply button (desktop: end of sidebar; mobile: drawer footer) ---------- */
.d2s-filters-apply-btn {
	display: block;
	width: 100%;
	margin-top: 16px;
	padding: 11px;
	background: var(--d2s-color-primary);
	color: #fff;
	border: none;
	border-radius: 24px;
	font-size: 13.5px;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.2s ease;
}

.d2s-filters-apply-btn:hover {
	background: var(--d2s-color-accent);
}

/* ---------- Breadcrumb ---------- */
.d2s-breadcrumb {
	font-size: 12.5px;
	color: var(--d2s-color-text-muted);
	margin: 0 0 10px;
}
.d2s-breadcrumb a {
	color: var(--d2s-color-text-muted);
}
.d2s-breadcrumb a:hover {
	color: var(--d2s-color-primary);
}
.d2s-breadcrumb-sep {
	margin: 0 7px;
	color: #c3cac7;
}

/* ---------- Temu-style horizontal filter bar ---------- */
.d2s-filter-bar {
	display: flex;
	align-items: center;
	gap: 9px;
	margin-bottom: 14px;
	padding: 2px 0 13px;
	border-bottom: 1px solid var(--d2s-color-border);
}

.d2s-filter-bar-scroll {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 1 1 auto;
	min-width: 0;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	-ms-overflow-style: none;
}
.d2s-filter-bar-scroll::-webkit-scrollbar {
	display: none;
}

/* The filter dropdowns are inside the horizontal scroller. A scroller
 * clips vertical overflow, so an opened panel can otherwise be hidden
 * even though its chevron rotates. Let the open panel escape the scroller. */
.d2s-filter-bar-scroll:has(.d2s-filterbar-dropdown.is-open),
.d2s-filter-bar-scroll.d2s-filterbar-panel-open {
	overflow: visible;
}
.d2s-filterbar-dropdown.is-open {
	z-index: 80;
}

.d2s-filterbar-pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	flex: 0 0 auto;
	box-sizing: border-box;
	height: 40px;
	margin: 0;
	line-height: 1;
	white-space: nowrap;
	background: #fff;
	border: 1px solid var(--d2s-color-border);
	border-radius: 999px;
	padding: 0 14px;
	font-size: 12.75px;
	font-weight: 600;
	color: var(--d2s-color-text);
	cursor: pointer;
	position: relative;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.d2s-filterbar-pill:hover {
	border-color: var(--d2s-color-primary);
	color: var(--d2s-color-primary);
}
.d2s-filterbar-pill.is-active {
	background: #F0F5F4;
	border-color: var(--d2s-color-primary);
	color: var(--d2s-color-primary);
}
.d2s-filterbar-pill svg {
	flex-shrink: 0;
}
.d2s-filterbar-chevron {
	transition: transform 0.15s ease;
}
.d2s-filterbar-dropdown.is-open .d2s-filterbar-chevron {
	transform: rotate(180deg);
}

.d2s-filterbar-pill--filters {
	background: var(--d2s-color-primary);
	border-color: var(--d2s-color-primary);
	color: #fff;
	flex-shrink: 0;
}
.d2s-filterbar-pill--filters:hover {
	background: var(--d2s-color-accent);
	border-color: var(--d2s-color-accent);
	color: #fff;
}

/* Thin divider right after the subcategory quick-nav pills (when
   present), separating "which category" from "narrow this view" —
   see template-parts/shop/subcategory-row.php. */
.d2s-filterbar-sep {
	flex: 0 0 auto;
	width: 1px;
	height: 22px;
	background: var(--d2s-color-border);
	margin: 0 2px;
}

.d2s-filters-mobile-dot {
	position: absolute;
	top: -3px;
	right: -3px;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--d2s-color-gold);
	border: 2px solid #fff;
}

.d2s-filterbar-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 16px;
	height: 16px;
	padding: 0 4px;
	border-radius: 999px;
	background: var(--d2s-color-primary);
	color: #fff;
	font-size: 10.5px;
	font-weight: 700;
}
.d2s-filterbar-pill:not(.is-active) .d2s-filterbar-count {
	background: var(--d2s-color-text-muted);
}

/* Sort-by: native <select> restyled to match the pill row — kept as
   a real <select> (not a custom JS dropdown) so WooCommerce's own
   ordering markup/behavior needs zero changes and it still works
   with no JS at all. */
.d2s-filterbar-sort {
	position: relative;
	flex: 0 0 auto;
	display: flex;
	align-items: center;
}
/* WooCommerce wraps woocommerce_catalog_ordering() in its own
   <form class="woocommerce-ordering">, which ships with a default
   float + bottom margin (woocommerce.css). Inside this flex row that
   invisible margin/float box was what made the pill look shifted
   down / out of line with the other pills — neutralize it so the
   <select> itself is the only thing sizing this flex item. */
.d2s-filterbar-sort form.woocommerce-ordering {
	margin: 0;
	padding: 0;
	float: none;
	display: flex;
	align-items: center;
	line-height: 1;
}
.d2s-filterbar-sort select.orderby,
.d2s-filterbar-sort select {
	appearance: none;
	-webkit-appearance: none;
	box-sizing: border-box;
	display: block;
	width: 174px;
	height: 40px;
	margin: 0;
	vertical-align: middle;
	background: #fff;
	border: 1px solid var(--d2s-color-border);
	border-radius: 999px;
	padding: 0 32px 0 14px;
	font-size: 12.75px;
	font-weight: 600;
	line-height: 38px;
	color: var(--d2s-color-text);
	cursor: pointer;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.d2s-filterbar-sort select.orderby:hover,
.d2s-filterbar-sort select:hover {
	border-color: #b7cbc7;
}
.d2s-filterbar-sort select.orderby:focus,
.d2s-filterbar-sort select:focus {
	outline: none;
	border-color: var(--d2s-color-primary);
	box-shadow: 0 0 0 3px rgba(8, 83, 76, .08);
}
.d2s-filterbar-sort-chevron {
	position: absolute;
	right: 14px;
	top: 50%;
	margin-top: -5px;
	pointer-events: none;
	color: var(--d2s-color-text-muted);
}

.d2s-filterbar-clearall {
	flex-shrink: 0;
	font-size: 12.5px;
	font-weight: 700;
	color: var(--d2s-color-text-muted);
	text-decoration: underline;
	text-underline-offset: 2px;
	margin-left: 6px;
}
.d2s-filterbar-clearall:hover {
	color: var(--d2s-color-primary);
}

/* ---------- Dropdown panels ---------- */
.d2s-filterbar-dropdown {
	position: relative;
	flex: 0 0 auto;
}

.d2s-filterbar-panel {
	display: none;
	position: absolute;
	top: calc(100% + 9px);
	left: 0;
	width: 260px;
	max-width: 86vw;
	background: #fff;
	border: 1px solid var(--d2s-color-border);
	border-radius: 14px;
	box-shadow: 0 16px 40px rgba(19, 45, 42, 0.14);
	padding: 16px;
	z-index: 60;
}

.d2s-filterbar-dropdown.is-open .d2s-filterbar-panel {
	display: block;
}

/* Mobile quick-filter panels are temporarily portaled to <body> so the
 * horizontal filter scroller cannot clip or widen the page. Once portaled,
 * they no longer match the parent .is-open selector above, so explicitly
 * keep the active panel visible while it carries the mobile marker. */
.d2s-filterbar-panel[data-d2s-mobile-panel="true"] {
	display: block;
}

.d2s-filterbar-panel--price {
	width: 300px;
}

.d2s-filterbar-panel .d2s-filter-checklist,
.d2s-filterbar-panel .d2s-filter-rating-list {
	max-height: 220px;
}

.d2s-filterbar-panel-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: 14px;
	padding-top: 12px;
	border-top: 1px solid var(--d2s-color-border);
}

.d2s-filterbar-reset {
	font-size: 12.5px;
	font-weight: 700;
	color: var(--d2s-color-text-muted);
}
.d2s-filterbar-reset:hover {
	color: var(--d2s-color-primary);
	text-decoration: underline;
}

.d2s-filterbar-apply {
	background: var(--d2s-color-primary);
	color: #fff;
	border: none;
	border-radius: 999px;
	padding: 8px 18px;
	font-size: 12.5px;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.15s ease;
}
.d2s-filterbar-apply:hover {
	background: var(--d2s-color-accent);
}

/* ---------- Compact toolbar under the filter bar: result count + view toggle only ---------- */
.d2s-shop-toolbar--compact {
	justify-content: space-between;
}

/* "Filters" pill — now part of the filter bar, visible at every size. */
.d2s-filters-mobile-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	box-sizing: border-box;
	height: 40px;
	margin: 0;
	line-height: 1;
	border-radius: 999px;
	padding: 0 16px;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	position: relative;
	flex-shrink: 0;
}

/* ---------- Active filter chips ---------- */
.d2s-filter-chips {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: -8px 0 20px;
}

.d2s-filter-chip {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	background: #F0F5F4;
	border: 1px solid #E2EDE9;
	color: var(--d2s-color-primary);
	border-radius: 999px;
	padding: 6px 10px 6px 13px;
	font-size: 12.5px;
	font-weight: 600;
	transition: background 0.14s ease, border-color 0.14s ease;
}
.d2s-filter-chip:hover {
	background: #e5f1ee;
	border-color: var(--d2s-color-primary);
}

.d2s-filter-chip span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: rgba(8, 83, 76, 0.1);
	font-size: 13px;
	line-height: 1;
	opacity: 0.85;
	transition: background 0.14s ease, opacity 0.14s ease;
}

.d2s-filter-chip:hover span {
	background: var(--d2s-color-primary);
	color: #fff;
	opacity: 1;
}

.d2s-filter-chips-clear {
	font-size: 12.5px;
	font-weight: 700;
	color: var(--d2s-color-text-muted);
	text-decoration: underline;
	text-underline-offset: 2px;
}
.d2s-filter-chips-clear:hover {
	color: var(--d2s-color-primary);
}

/* ---------- No results ---------- */
.d2s-filters-no-results {
	padding: 70px 24px;
	text-align: center;
	background: #FAFCFB;
	border: 1px dashed var(--d2s-color-border);
	border-radius: 14px;
}

.d2s-filters-no-results svg {
	color: var(--d2s-color-primary);
	opacity: 0.5;
	margin-bottom: 4px;
}

.d2s-filters-no-results p {
	color: var(--d2s-color-text-muted);
	margin: 10px 0 20px;
	font-size: 14.5px;
}

/* ---------- Small screens: dropdown panels become bottom sheets ---------- */
@media (max-width: 640px) {
	html,
	body {
		max-width: 100%;
		overflow-x: hidden !important;
	}

	/* The quick-filter row itself may scroll horizontally, but opening a
	 * filter must NEVER make the document wider. Mobile panels are moved to
	 * <body> by JS before opening, so they cannot be clipped or contribute
	 * to the filter scroller's width. */
	.d2s-filter-bar {
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}
	.d2s-filter-bar-scroll,
	.d2s-filter-bar-scroll:has(.d2s-filterbar-dropdown.is-open),
	.d2s-filter-bar-scroll.d2s-filterbar-panel-open {
		width: 100%;
		max-width: 100%;
		min-width: 0;
		overflow-x: auto;
		overflow-y: hidden;
	}

	.d2s-filterbar-panel[data-d2s-mobile-panel="true"],
	.d2s-filterbar-panel[data-d2s-mobile-panel="true"].d2s-filterbar-panel--price {
		position: fixed !important;
		z-index: 100001;
		top: auto !important;
		right: 0 !important;
		bottom: 0 !important;
		left: 0 !important;
		width: 100vw !important;
		max-width: 100vw !important;
		box-sizing: border-box;
		border-radius: 16px 16px 0 0;
		max-height: min(72vh, 560px);
		overflow-y: auto;
		overflow-x: hidden;
		-webkit-overflow-scrolling: touch;
		box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.18);
	}

	.d2s-filterbar-panel[data-d2s-mobile-panel="true"] .d2s-filter-checklist,
	.d2s-filterbar-panel[data-d2s-mobile-panel="true"] .d2s-filter-rating-list {
		max-height: none;
	}

	.d2s-filterbar-panel[data-d2s-mobile-panel="true"] .d2s-filterbar-panel-actions {
		position: sticky;
		bottom: 0;
		background: #fff;
		padding-bottom: 2px;
	}
}




/* Keep the desktop controls on one clean inline row. On narrower desktop
 * widths the existing horizontal scroller handles overflow instead of
 * wrapping the filter controls into a second line. */
@media (min-width: 641px) {
	.d2s-filterbar-sort { flex: 0 0 174px; }
}

@media (max-width: 900px) and (min-width: 641px) {
	.d2s-filterbar-sort { flex-basis: 156px; }
	.d2s-filterbar-sort select.orderby,
	.d2s-filterbar-sort select { width: 156px; }
}


/* ---------- v1.30.388: category pills + right-aligned sorting ---------- */
@media (min-width: 901px) {
	.d2s-filter-bar {
		gap: 10px;
	}

	.d2s-filter-bar-scroll {
		flex: 1 1 auto;
		min-width: 0;
	}

	.d2s-filterbar-sort--right {
		flex: 0 0 174px;
		margin-left: auto;
	}

	.d2s-filterbar-sort--right select.orderby,
	.d2s-filterbar-sort--right select {
		width: 174px;
	}
}

/* Category quick-nav pills are links, not form controls. Keep them
 * visually lighter than the active Filters control while preserving
 * clear hover/active states and normal anchor hit-testing. */
.d2s-filter-bar .d2s-catrow-pill {
	color: #71827F;
	font-weight: 600;
	text-decoration: none;
	position: relative;
	z-index: 2;
	pointer-events: auto;
}
.d2s-filter-bar .d2s-catrow-pill:hover {
	color: var(--d2s-color-primary);
	border-color: #B7CBC7;
	background: #FAFCFB;
}
.d2s-filter-bar .d2s-catrow-pill.is-active {
	color: var(--d2s-color-primary);
	background: #F7FAF9;
	border-color: var(--d2s-color-primary);
}

@media (max-width: 900px) and (min-width: 641px) {
	.d2s-filterbar-sort--right {
		flex: 0 0 156px;
	}
	.d2s-filterbar-sort--right select.orderby,
	.d2s-filterbar-sort--right select {
		width: 156px;
	}
}

/* ---------- v1.30.390: premium filter drawer actions ---------- */
.d2s-filters-drawer-footer {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: center;
	gap: 10px;
	padding: 12px 16px 14px;
	border-top: 1px solid #E6ECEA;
	margin-top: auto;
	background: rgba(255,255,255,.97);
	position: sticky;
	bottom: 0;
	box-shadow: 0 -8px 22px rgba(16, 61, 56, .07);
	backdrop-filter: blur(8px);
}

.d2s-filters-drawer-footer .d2s-filters-clear-all {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 15px;
	border: 1px solid #D8E3E0;
	border-radius: 12px;
	background: #fff;
	color: #47625E;
	font-size: 12.5px;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
	transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease;
}

.d2s-filters-drawer-footer .d2s-filters-clear-all:hover {
	background: #F5F9F8;
	border-color: #BFD3CF;
	color: var(--d2s-color-primary);
	text-decoration: none;
	transform: translateY(-1px);
}

.d2s-filters-drawer-footer .d2s-filters-apply-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	width: 100%;
	min-height: 44px;
	margin: 0;
	padding: 0 17px;
	border: 1px solid var(--d2s-color-primary);
	border-radius: 12px;
	background: var(--d2s-color-primary);
	color: #fff;
	font-size: 13px;
	font-weight: 750;
	letter-spacing: .01em;
	box-shadow: 0 5px 14px rgba(8, 83, 76, .14);
	transition: background .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.d2s-filters-drawer-footer .d2s-filters-apply-btn:hover {
	background: #064A44;
	border-color: #064A44;
	box-shadow: 0 7px 16px rgba(8, 83, 76, .18);
	transform: translateY(-1px);
}

.d2s-filters-apply-icon {
	font-size: 16px;
	line-height: 1;
	transition: transform .18s ease;
}

.d2s-filters-drawer-footer .d2s-filters-apply-btn:hover .d2s-filters-apply-icon {
	transform: translateX(2px);
}

@media (max-width: 420px) {
	.d2s-filters-drawer-footer {
		grid-template-columns: 1fr 1.45fr;
		gap: 8px;
		padding-left: 12px;
		padding-right: 12px;
	}
	.d2s-filters-drawer-footer .d2s-filters-clear-all,
	.d2s-filters-drawer-footer .d2s-filters-apply-btn {
		min-height: 42px;
		border-radius: 11px;
	}
}


/* v1.30.392 — mobile filter overflow guard */
@media (max-width: 640px) {
	html, body {
		max-width: 100%;
		overflow-x: hidden;
	}
	.d2s-filter-bar {
		max-width: 100%;
		min-width: 0;
	}
}
