/* Decon Shop Sidebar 1.2.0 */
:root { --dss-accent: #133A8F; }

.dss-sidebar,
.dss-open-btn {
	--dss-ink: #141B2D;
	--dss-text: #2B3345;
	--dss-muted: #6A7386;
	--dss-line: #E8EBF1;
	--dss-field: #D3D9E4;
	--dss-hover: #F5F6FA;
	--dss-tint: #EEF2FA;
	--dss-radius: 4px;
	--dss-radius-lg: 6px;
}

.dss-sidebar {
	color: var(--dss-text);
	font-size: 15px;
	line-height: 1.45;
	text-align: left;
	box-sizing: border-box;
	-webkit-font-smoothing: antialiased;
}
.dss-sidebar *,
.dss-sidebar *::before,
.dss-sidebar *::after { box-sizing: border-box; }

.dss-pending { display: none !important; }
.dss-theme-hidden,
body.dss-hide-theme .wd-show-sidebar-btn,
body.dss-hide-theme .wd-sidebar-opener { display: none !important; }

.dss-sr {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Buttons and fields use the theme font. */
.dss-sidebar button,
.dss-sidebar input,
.dss-sidebar summary,
.dss-open-btn { font-family: inherit; }

/* The theme content column takes the full width; the plugin builds its own two columns inside it. */
body.dss-hide-theme .dss-host {
	grid-column: 1 / -1 !important;
	flex: 0 0 100% !important;
	max-width: 100% !important;
	width: 100% !important;
}

/* ---------------------------------------------------------------- Layout */
.dss-layout {
	display: grid;
	grid-template-columns: 304px minmax(0, 1fr);
	gap: 32px;
	align-items: start;
	width: 100%;
}
.dss-main { min-width: 0; }

/* Desktop: the sidebar is a framed panel, like the product cards. */
.dss-layout > .dss-sidebar {
	padding: 22px 16px 16px;
	border: 1px solid var(--dss-line);
	border-radius: var(--dss-radius-lg);
	background: #fff;
	box-shadow: 0 1px 2px rgba(20, 27, 45, .04);
}

/* -------------------------------------------------------------- Sections */
.dss-sidebar ul,
.dss-sidebar li {
	list-style: none;
	margin: 0;
	padding: 0;
}
.dss-sidebar li::before { content: none; }
.dss-sidebar a { text-decoration: none; }

.dss-section { padding: 0 0 26px; }
.dss-body > .dss-section:last-child { padding-bottom: 20px; }

/* Section label: uppercase like the site navigation, with a fine rule after it. */
.dss-title {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 12px;
	color: var(--dss-ink);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: .08em;
	text-transform: uppercase;
}
.dss-title::after {
	content: "";
	flex: 1 1 auto;
	height: 1px;
	background: var(--dss-line);
}

/* ------------------------------------------------------------ Categories */
.dss-all,
.dss-cat__link {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 44px;
	padding: 10px 12px;
	border-radius: var(--dss-radius);
	color: var(--dss-text);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.35;
	transition: background-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.dss-all { margin-bottom: 2px; }
.dss-all:hover,
.dss-cat__link:hover {
	background: var(--dss-hover);
	color: var(--dss-accent);
}

/* Selected: tinted background + accent bar on the left. */
.dss-all.is-active,
.dss-cat.is-active > .dss-cat__row > .dss-cat__link {
	background: var(--dss-tint);
	box-shadow: inset 3px 0 0 var(--dss-accent);
	color: var(--dss-accent);
	font-weight: 600;
}
.dss-cat.is-parent-active > .dss-cat__row > .dss-cat__link {
	color: var(--dss-accent);
	font-weight: 600;
}

.dss-cat__row {
	display: flex;
	align-items: center;
	gap: 2px;
}
.dss-cat__link {
	flex: 1 1 auto;
	min-width: 0;
}
.dss-cat__name { overflow-wrap: anywhere; }

.dss-count {
	flex: none;
	min-width: 28px;
	padding: 1px 7px;
	border-radius: var(--dss-radius);
	background: #F1F3F7;
	color: var(--dss-muted);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.6;
	text-align: center;
	font-variant-numeric: tabular-nums;
	transition: background-color .15s ease, color .15s ease;
}
.dss-all:hover .dss-count,
.dss-cat__link:hover .dss-count,
.dss-check:hover .dss-count { background: #E7EBF3; color: var(--dss-accent); }
.dss-all.is-active .dss-count,
.dss-cat.is-active > .dss-cat__row > .dss-cat__link .dss-count,
.dss-check.is-checked .dss-count {
	background: var(--dss-accent);
	color: #fff;
}

.dss-sidebar .dss-cat__toggle {
	flex: none;
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: var(--dss-radius);
	background: transparent;
	box-shadow: none;
	color: var(--dss-muted);
	line-height: 1;
	cursor: pointer;
	transition: background-color .15s ease, color .15s ease;
}
.dss-sidebar .dss-cat__toggle:hover {
	background: var(--dss-hover);
	color: var(--dss-accent);
}
.dss-cat__toggle .dss-icon {
	width: 16px;
	height: 16px;
	transition: transform .2s ease;
}
.dss-cat__toggle[aria-expanded="true"] .dss-icon { transform: rotate(180deg); }

.dss-sidebar .dss-cats--sub {
	margin: 2px 0 6px 14px;
	padding-left: 8px;
	border-left: 1px solid var(--dss-line);
}
.dss-cats--sub .dss-cat__link {
	min-height: 42px;
	font-size: 14.5px;
	font-weight: 400;
}
.dss-cats--sub .dss-cat__toggle { width: 40px; height: 40px; }

/* -------------------------------------------- Checkbox / radio options */
.dss-check {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 44px;
	padding: 9px 10px;
	border-radius: var(--dss-radius);
	color: var(--dss-text);
	font-size: 15px;
	line-height: 1.35;
	transition: background-color .15s ease, color .15s ease;
}
.dss-check:hover {
	background: var(--dss-hover);
	color: var(--dss-accent);
}
.dss-check__label { flex: 1 1 auto; }
.dss-check__box {
	flex: none;
	display: grid;
	place-items: center;
	width: 20px;
	height: 20px;
	border: 1.5px solid #B4BCCA;
	border-radius: 3px;
	background: #fff;
	transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.dss-check--radio .dss-check__box { border-radius: 50%; }
.dss-check:hover .dss-check__box {
	border-color: var(--dss-accent);
	box-shadow: 0 0 0 3px rgba(19, 58, 143, .08);
}
.dss-check.is-checked {
	color: var(--dss-accent);
	font-weight: 600;
}
.dss-check.is-checked .dss-check__box {
	background: var(--dss-accent);
	border-color: var(--dss-accent);
}
.dss-check.is-checked .dss-check__box::after {
	content: "";
	width: 9px;
	height: 5px;
	border: 2px solid #fff;
	border-top: 0;
	border-right: 0;
	transform: translateY(-1px) rotate(-45deg);
}
.dss-check--radio.is-checked .dss-check__box { background: #fff; border-width: 6px; }
.dss-check--radio.is-checked .dss-check__box::after { content: none; }

.dss-sidebar .dss-more-btn {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	margin: 2px 0 0;
	padding: 6px 10px;
	border: 0;
	border-radius: var(--dss-radius);
	background: none;
	box-shadow: none;
	color: var(--dss-accent);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
	cursor: pointer;
}
.dss-sidebar .dss-more-btn:hover { background: var(--dss-hover); }

/* --------------------------------------------------------- Custom price */
.dss-custom { margin-top: 6px; }
.dss-custom--plain { margin-top: 0; }
.dss-custom > summary {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 40px;
	padding: 6px 10px;
	border-radius: var(--dss-radius);
	color: var(--dss-accent);
	font-size: 14px;
	font-weight: 600;
	list-style: none;
	cursor: pointer;
}
.dss-custom > summary:hover { background: var(--dss-hover); }
.dss-custom > summary::-webkit-details-marker { display: none; }
.dss-custom > summary::before {
	content: "+";
	display: inline-grid;
	place-items: center;
	width: 18px;
	height: 18px;
	border: 1.5px solid currentColor;
	border-radius: 3px;
	font-size: 14px;
	line-height: 1;
}
.dss-custom[open] > summary::before { content: "–"; }
.dss-custom__form { padding: 6px 0 0; }
.dss-custom__fields {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin-bottom: 12px;
}
.dss-field label {
	display: block;
	margin: 0 0 5px;
	color: var(--dss-muted);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
}
.dss-sidebar .dss-field input {
	width: 100%;
	height: 46px;
	margin: 0;
	padding: 0 12px;
	border: 1px solid var(--dss-field);
	border-radius: var(--dss-radius);
	background: #fff;
	box-shadow: none;
	color: var(--dss-ink);
	font-size: 16px;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.dss-sidebar .dss-field input:hover { border-color: #AEB7C7; }
.dss-sidebar .dss-field input:focus {
	border-color: var(--dss-accent);
	outline: none;
	box-shadow: 0 0 0 3px rgba(19, 58, 143, .14);
}

/* --------------------------------------------------------------- Buttons */
.dss-sidebar .dss-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 48px;
	min-height: 0;
	margin: 0;
	padding: 0 20px;
	border: 0;
	border-radius: var(--dss-radius);
	background: var(--dss-accent);
	box-shadow: none;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: .06em;
	line-height: 1;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color .15s ease, box-shadow .15s ease;
}
.dss-sidebar .dss-btn:hover {
	background: #0E2C6E;
	box-shadow: 0 4px 12px rgba(19, 58, 143, .25);
	color: #fff;
}
.dss-sidebar .dss-btn--block { width: 100%; }

/* --------------------------------------------------------- Active chips */
.dss-active-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.dss-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 38px;
	padding: 6px 10px 6px 12px;
	border: 1px solid #D5DCEA;
	border-radius: var(--dss-radius);
	background: var(--dss-tint);
	color: var(--dss-accent);
	font-size: 14px;
	font-weight: 600;
	transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.dss-chip .dss-icon { width: 14px; height: 14px; }
.dss-chip:hover {
	border-color: var(--dss-accent);
	background: var(--dss-accent);
	color: #fff;
}
.dss-sidebar .dss-clear {
	display: inline-block;
	margin-top: 12px;
	color: var(--dss-muted);
	font-size: 14px;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
}
.dss-sidebar .dss-clear:hover { color: var(--dss-accent); }

/* -------------------------------------------------------------- Help box */
.dss-help {
	position: relative;
	overflow: hidden;
	padding: 22px 20px 20px;
	border-radius: var(--dss-radius-lg);
	background: linear-gradient(135deg, var(--dss-accent) 0%, #0B1F4F 100%);
	color: #fff;
}
.dss-help::after {
	content: "";
	position: absolute;
	top: -40px;
	right: -40px;
	width: 120px;
	height: 120px;
	border: 1px solid rgba(255, 255, 255, .12);
	border-radius: 50%;
	pointer-events: none;
}
.dss-help__title {
	display: block;
	margin: 0 0 6px;
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.3;
}
.dss-help__text {
	margin: 0 0 16px;
	color: rgba(255, 255, 255, .8);
	font-size: 14px;
	line-height: 1.5;
}
.dss-sidebar .dss-help__call {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 48px;
	padding: 8px 14px;
	border-radius: var(--dss-radius);
	background: #fff;
	color: var(--dss-accent);
	font-size: 15px;
	font-weight: 600;
	text-align: center;
	transition: background-color .15s ease, box-shadow .15s ease;
}
.dss-sidebar .dss-help__call .dss-icon { width: 18px; height: 18px; }
.dss-sidebar .dss-help__call:hover {
	background: #F3F6FC;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
	color: var(--dss-accent);
}

/* --------------------------------------------------------------- Focus */
.dss-sidebar a:focus-visible,
.dss-sidebar button:focus-visible,
.dss-sidebar summary:focus-visible,
.dss-open-btn:focus-visible {
	outline: 2px solid var(--dss-accent);
	outline-offset: 2px;
}
.dss-help a:focus-visible { outline-color: #fff; }

/* ------------------------------------------------- Drawer (mobile/tablet) */
/* !important: some themes style every <button> with a display value that would otherwise win. */
body .dss-open-btn,
body .dss-sidebar .dss-drawer-head,
body .dss-sidebar .dss-drawer-foot { display: none !important; }

@media (max-width: 1024px) {
	.dss-layout { display: block; }

	body .dss-open-btn {
		display: flex !important;
		align-items: center;
		justify-content: center;
		gap: 10px;
		width: 100%;
		height: 52px;
		min-height: 0;
		margin: 0 0 18px;
		padding: 0 16px;
		border: 1.5px solid var(--dss-accent);
		border-radius: var(--dss-radius);
		background: #fff;
		box-shadow: none;
		color: var(--dss-accent);
		font-size: 14px;
		font-weight: 600;
		letter-spacing: .06em;
		line-height: 1;
		text-transform: uppercase;
		cursor: pointer;
	}
	body .dss-open-btn:hover { background: var(--dss-tint); }
}
.dss-open-btn .dss-icon { width: 20px; height: 20px; }
.dss-badge {
	display: inline-grid;
	place-items: center;
	min-width: 24px;
	height: 24px;
	padding: 0 7px;
	border-radius: var(--dss-radius);
	background: var(--dss-accent);
	color: #fff;
	font-size: 13px;
	letter-spacing: 0;
}

.dss-sidebar.is-drawer {
	position: fixed;
	top: 0;
	bottom: 0;
	left: 0;
	z-index: 100001;
	display: flex;
	flex-direction: column;
	width: min(92vw, 400px);
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: #fff;
	box-shadow: 0 0 50px rgba(11, 22, 48, .25);
	transform: translateX(-105%);
	visibility: hidden;
	transition: transform .28s ease, visibility 0s linear .28s;
}
.dss-sidebar.is-drawer.is-open {
	transform: none;
	visibility: visible;
	transition: transform .28s ease;
}
body .dss-sidebar.is-drawer .dss-drawer-head {
	display: flex !important;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 14px 12px 20px;
	border-bottom: 1px solid var(--dss-line);
}
.dss-drawer-title {
	color: var(--dss-ink);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
}
.dss-sidebar .dss-close--icon {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 1px solid var(--dss-line);
	border-radius: var(--dss-radius);
	background: #fff;
	box-shadow: none;
	color: var(--dss-ink);
	cursor: pointer;
}
.dss-sidebar .dss-close--icon:hover { background: var(--dss-hover); color: var(--dss-accent); }
.dss-sidebar.is-drawer .dss-scroll {
	flex: 1 1 auto;
	padding: 22px 20px;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
}
body .dss-sidebar.is-drawer .dss-drawer-foot {
	display: block !important;
	padding: 14px 20px calc(14px + env(safe-area-inset-bottom, 0px));
	border-top: 1px solid var(--dss-line);
	background: #fff;
}

.dss-overlay {
	position: fixed;
	inset: 0;
	z-index: 100000;
	background: rgba(11, 22, 48, .5);
	opacity: 0;
	visibility: hidden;
	transition: opacity .28s, visibility 0s linear .28s;
}
.dss-overlay.is-open {
	opacity: 1;
	visibility: visible;
	transition: opacity .28s;
}
html.dss-lock,
html.dss-lock body { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
	.dss-sidebar *,
	.dss-sidebar.is-drawer,
	.dss-overlay { transition: none !important; }
}
