/**
 * All products — lijevi filteri (sidebar se skrola sadržajem).
 */

:root {
	--runnerp-accent: #b08968;
	--runnerp-accent-dark: #7a5a45;
	--runnerp-text: #604235;
	--runnerp-cream: #f3ece6;
	--runnerp-muted: #626262;
	--runnerp-border: rgba(96, 66, 53, 0.12);
	--runnerp-accent-soft: rgba(176, 137, 104, 0.18);
}

#qodef-page-sidebar .runnerp-shop-filters-widget {
	margin-bottom: 0;
}

.runnerp-shop-filters {
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.runnerp-shop-filters__block {
	margin: 0;
	padding: 0;
	border: 0;
	min-width: 0;
}

.runnerp-shop-filters__title {
	display: block;
	margin: 0 0 14px;
	padding: 0;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--runnerp-text);
}

/* Price slider */
.runnerp-shop-filters__price.widget_price_filter {
	margin: 0;
}

.runnerp-shop-filters__price .price_slider_wrapper .ui-widget-content {
	border-radius: 0;
	cursor: pointer;
	height: 2px;
	position: relative;
	background: #e8e0d8;
}

.runnerp-shop-filters__price .price_slider_wrapper .ui-widget-content .ui-slider-handle {
	background-color: var(--runnerp-accent);
	height: 10px;
	width: 4px;
	cursor: pointer;
	outline: none;
	position: absolute;
	top: -4px;
	border-radius: 100%;
	border: none;
	margin-left: 0;
}

.runnerp-shop-filters__price .price_slider_wrapper .ui-widget-content .ui-slider-handle:last-of-type {
	transform: translateX(-4px);
}

.runnerp-shop-filters__price .price_slider_wrapper .ui-widget-content .ui-slider-range {
	border-radius: 0;
	display: block;
	height: 100%;
	position: absolute;
	z-index: 1;
	background: var(--runnerp-accent);
}

.runnerp-shop-filters__price .price_slider_amount {
	display: block;
	margin: 18px 0 0;
	position: relative;
}

.runnerp-shop-filters__price .price_slider_amount input[type="text"] {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

.runnerp-shop-filters__price .price_slider_amount .price_label {
	display: block;
	font-family: "EB Garamond", serif;
	font-size: 18px;
	font-weight: 400;
	font-style: italic;
	color: var(--runnerp-muted);
	line-height: 1.3;
}

.runnerp-shop-filters__price .price_slider_amount .clear {
	display: none;
}

.runnerp-shop-filters__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.runnerp-shop-filters__list:not(.is-expanded) .runnerp-shop-filters__item--more {
	display: none;
}

.runnerp-shop-filters__more-toggle {
	display: inline-block;
	margin-top: 10px;
	padding: 0;
	border: 0;
	background: none;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--runnerp-text);
	text-decoration: underline;
	text-decoration-color: var(--runnerp-accent);
	text-underline-offset: 3px;
	cursor: pointer;
}

.runnerp-shop-filters__more-toggle:hover {
	color: var(--runnerp-accent-dark);
}

.runnerp-shop-filters__check {
	display: flex;
	align-items: center;
	gap: 12px;
	cursor: pointer;
	font-size: 14px;
	line-height: 1.35;
	color: var(--runnerp-text);
}

.runnerp-shop-filters__check input[type="checkbox"] {
	width: 22px;
	height: 22px;
	min-width: 22px;
	min-height: 22px;
	margin: 0;
	flex-shrink: 0;
	accent-color: var(--runnerp-accent);
	cursor: pointer;
}

.runnerp-shop-filters__actions {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.runnerp-shop-filters__apply.button {
	width: 100%;
	text-align: center;
	padding: 12px 16px;
	border: 1px solid var(--runnerp-accent);
	background: var(--runnerp-accent);
	color: var(--runnerp-cream);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.runnerp-shop-filters__apply.button:hover {
	background: var(--runnerp-accent-dark);
	border-color: var(--runnerp-accent-dark);
	color: var(--runnerp-cream);
}

.runnerp-shop-filters__reset {
	text-align: center;
	font-size: 13px;
	color: var(--runnerp-muted);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.runnerp-shop-filters__reset:hover {
	color: var(--runnerp-accent-dark);
}

/* Mobil — ikonica + lijevi drawer */
.runnerp-shop-filters-toolbar,
.runnerp-shop-filters-toggle,
.runnerp-shop-filters-backdrop,
.runnerp-shop-filters-drawer__head {
	display: none;
}

@media only screen and (max-width: 1024px) {
	body.runnerp-shop-filters-page #qodef-page-sidebar.qodef-grid-item {
		flex: 0 0 0 !important;
		width: 0 !important;
		min-width: 0 !important;
		max-width: 0 !important;
		padding: 0 !important;
		overflow: visible;
	}

	body.runnerp-shop-filters-page #qodef-page-sidebar {
		position: fixed;
		top: 0;
		left: 0;
		bottom: 0;
		z-index: 100002;
		width: min(320px, 88vw);
		max-width: 88vw;
		margin: 0;
		padding: 20px 18px 28px;
		background: #fff;
		overflow-x: hidden;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		box-shadow: 4px 0 32px rgba(96, 66, 53, 0.12);
		transform: translateX(-105%);
		transition: transform 0.32s ease;
		visibility: hidden;
	}

	body.runnerp-shop-filters-page.runnerp-shop-filters-open #qodef-page-sidebar {
		transform: translateX(0);
		visibility: visible;
	}

	body.runnerp-shop-filters-page #qodef-page-sidebar .runnerp-shop-filters-widget {
		margin-bottom: 0;
	}

	body.runnerp-shop-filters-page #qodef-woo-page.qodef-col--9,
	body.runnerp-shop-filters-page #qodef-woo-page {
		width: 100% !important;
		max-width: 100% !important;
		flex: 0 0 100% !important;
	}

	.runnerp-shop-filters-drawer__head {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		margin-bottom: 22px;
		padding-bottom: 14px;
		border-bottom: 1px solid var(--runnerp-border);
	}

	.runnerp-shop-filters-drawer__title {
		font-size: 13px;
		font-weight: 600;
		letter-spacing: 0.08em;
		text-transform: uppercase;
		color: var(--runnerp-text);
	}

	.runnerp-shop-filters-drawer__close {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 40px;
		height: 40px;
		margin: 0;
		padding: 0;
		border: 0;
		border-radius: 50%;
		background: var(--runnerp-cream);
		font-size: 26px;
		line-height: 1;
		color: var(--runnerp-text);
		cursor: pointer;
		transition: background 0.2s ease, color 0.2s ease;
	}

	.runnerp-shop-filters-drawer__close:hover {
		background: var(--runnerp-accent);
		color: var(--runnerp-cream);
	}

	body.runnerp-shop-filters-page .qodef-page-title {
		margin-bottom: 0 !important;
	}

	body.runnerp-shop-filters-page #qodef-page-inner {
		padding: 25px 0 40px 0 !important;
	}

	body.runnerp-shop-filters-page #qodef-woo-page {
		margin-top: 0 !important;
	}

	.runnerp-shop-filters-toolbar {
		display: flex;
		align-items: center;
		justify-content: flex-start;
		margin: 0 0 16px;
		padding: 0;
	}

	.runnerp-shop-filters-toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		gap: 10px;
		position: relative;
		width: auto;
		min-height: 44px;
		margin: 0;
		padding: 10px 16px 10px 12px;
		border: 1px solid var(--runnerp-accent);
		border-radius: 0;
		background: transparent;
		color: var(--runnerp-text);
		cursor: pointer;
		flex-shrink: 0;
		box-shadow: none;
		transition:
			transform 0.2s ease,
			border-color 0.2s ease,
			color 0.2s ease;
		-webkit-tap-highlight-color: transparent;
	}

	.runnerp-shop-filters-toggle__label {
		font-family: "Syne", sans-serif;
		font-size: 12px;
		font-weight: 600;
		letter-spacing: 0.08em;
		text-transform: uppercase;
		line-height: 1;
		white-space: nowrap;
	}

	.runnerp-shop-filters-toggle:active {
		transform: scale(0.96);
	}

	.runnerp-shop-filters-toggle:hover,
	.runnerp-shop-filters-toggle:focus-visible {
		border-color: var(--runnerp-accent-dark);
		color: var(--runnerp-accent-dark);
		outline: none;
	}

	body.runnerp-shop-filters-open .runnerp-shop-filters-toggle {
		border-color: var(--runnerp-accent);
		color: var(--runnerp-text);
	}

	body.runnerp-shop-filters-open .runnerp-shop-filters-toggle:hover,
	body.runnerp-shop-filters-open .runnerp-shop-filters-toggle:focus-visible {
		border-color: var(--runnerp-accent-dark);
		color: var(--runnerp-accent-dark);
	}

	.runnerp-shop-filters-toggle__icon-box {
		display: grid;
		place-items: center;
		width: 20px;
		height: 20px;
		flex-shrink: 0;
	}

	.runnerp-shop-filters-toggle__icon {
		display: block;
		grid-area: 1 / 1;
		transition: opacity 0.18s ease, transform 0.2s ease;
	}

	.runnerp-shop-filters-toggle__icon--close {
		opacity: 0;
		transform: scale(0.75);
	}

	.runnerp-shop-filters-toggle__icon--filter {
		opacity: 1;
		transform: scale(1);
	}

	body.runnerp-shop-filters-open .runnerp-shop-filters-toggle__icon--filter {
		opacity: 0;
		transform: scale(0.75);
	}

	body.runnerp-shop-filters-open .runnerp-shop-filters-toggle__icon--close {
		opacity: 1;
		transform: scale(1);
	}

	.runnerp-shop-filters-toggle__badge {
		position: absolute;
		top: 6px;
		right: 8px;
		width: 10px;
		height: 10px;
		border-radius: 50%;
		background: var(--runnerp-accent);
		border: 2px solid var(--runnerp-cream);
		box-shadow: 0 0 0 1px var(--runnerp-accent);
		pointer-events: none;
	}

	body.runnerp-shop-filters-open .runnerp-shop-filters-toggle__badge {
		border-color: var(--runnerp-text);
	}

	.runnerp-shop-filters-backdrop {
		display: block;
		position: fixed;
		inset: 0;
		z-index: 100001;
		background: rgba(96, 66, 53, 0.42);
		opacity: 0;
		visibility: hidden;
		transition: opacity 0.32s ease, visibility 0.32s ease;
	}

	.runnerp-shop-filters-backdrop:not([hidden]) {
		opacity: 1;
		visibility: visible;
	}

	body.runnerp-shop-filters-open {
		overflow: hidden;
	}
}
