/* AramissPC 2.62.0 — shop / category filter sidebar (loaded only where filters show). */

.arm-pf-layout {
	display: grid;
	grid-template-columns: 280px minmax(0, 1fr);
	gap: 24px;
	align-items: start;
}

/* Desktop grid inside the results column: as many ~205px cards as fit (4 at full width).
   Tablet/mobile keep the theme's own column rules. */
@media (min-width: 993px) {
	.woocommerce .arm-pf-results ul.products {
		grid-template-columns: repeat(auto-fill, minmax(205px, 1fr));
	}

	.arm-pf-layout.is-js .arm-pf-actions {
		display: none;
	}
}

/* ---------- Sidebar ---------- */
.arm-pf-side {
	background: #fff;
	border: 1.5px solid var(--c-border, #ebe7f5);
	border-radius: var(--radius, 14px);
	box-shadow: var(--shadow-sm, 0 2px 8px rgba(33, 28, 56, .06));
	padding: 6px 16px 14px;
	color: var(--c-text, #211c38);
}

.arm-pf-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 12px 0 10px;
	border-bottom: 1.5px solid var(--c-border, #ebe7f5);
}

.arm-pf-title {
	margin: 0;
	font-size: 15px;
	font-weight: 800;
	color: var(--c-text, #211c38);
}

.arm-pf-close,
.arm-pf-done,
.arm-pf-open {
	display: none;
}

/* Active chips */
.arm-pf-active:empty {
	display: none;
}

.arm-pf-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	padding: 12px 0 4px;
}

.arm-pf-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 32px;
	padding: 4px 10px;
	border: 0;
	border-radius: 999px;
	background: var(--c-primary-soft, #ede9fe);
	color: var(--c-primary-dark, #4c1d95);
	font: inherit;
	font-size: 12.5px;
	line-height: 1.4;
	cursor: pointer;
}

.arm-pf-chip:hover,
.arm-pf-chip:focus-visible {
	background: var(--c-primary, #7c3aed);
	color: #fff;
}

.arm-pf-x {
	font-size: 16px;
	line-height: 1;
}

.arm-pf-clear-all {
	align-self: center;
	padding: 4px 6px;
	font-size: 12.5px;
	color: var(--c-danger, #dc2626);
	text-decoration: none;
}

.arm-pf-clear-all:hover {
	text-decoration: underline;
}

/* Accordion boxes */
.arm-pf-box {
	border-bottom: 1px solid var(--c-border, #ebe7f5);
}

.arm-pf-box:last-of-type {
	border-bottom: 0;
}

.arm-pf-box-title {
	margin: 0;
	font-size: inherit;
}

.arm-pf-toggle {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	min-height: 48px;
	padding: 10px 0;
	border: 0;
	background: none;
	color: var(--c-text, #211c38);
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	text-align: start;
	cursor: pointer;
}

.arm-pf-toggle:hover {
	color: var(--c-primary, #7c3aed);
}

.arm-pf-toggle:focus-visible {
	outline: 2px solid var(--c-primary, #7c3aed);
	outline-offset: 2px;
	border-radius: 6px;
}

.arm-pf-label {
	flex: 1 1 auto;
}

.arm-pf-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--c-primary, #7c3aed);
	flex: 0 0 auto;
}

.arm-pf-chev {
	flex: 0 0 auto;
	color: var(--c-text-soft, #6b7280);
	transition: transform .2s ease;
}

.arm-pf-box.is-open .arm-pf-chev {
	transform: rotate(-90deg);
	color: var(--c-primary, #7c3aed);
}

.arm-pf-body {
	padding: 0 0 14px;
}

.arm-pf-body[hidden] {
	display: none;
}

.arm-pf-search {
	width: 100%;
	min-height: 40px;
	margin: 0 0 8px;
	padding: 8px 12px;
	border: 1.5px solid var(--c-border, #ebe7f5);
	border-radius: 10px;
	background: var(--c-bg-soft, #f7f6fb);
	font: inherit;
	font-size: 13px;
	box-sizing: border-box;
}

.arm-pf-search:focus {
	outline: none;
	border-color: var(--c-primary, #7c3aed);
	background: #fff;
}

/* Options */
.arm-pf-opts {
	list-style: none;
	margin: 0;
	padding: 0;
	max-height: 264px;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.arm-pf-opts li[hidden] {
	display: none;
}

.arm-pf-opt {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 40px;
	padding: 4px 6px;
	border-radius: 8px;
	font-size: 13.5px;
	cursor: pointer;
}

.arm-pf-opt:hover {
	background: var(--c-bg-soft, #f7f6fb);
}

.arm-pf-opt input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	margin: 0;
	pointer-events: none;
}

.arm-pf-mark {
	flex: 0 0 18px;
	width: 18px;
	height: 18px;
	border: 1.5px solid #c9c3dc;
	border-radius: 5px;
	background: #fff center / 12px 12px no-repeat;
	transition: background-color .15s ease, border-color .15s ease;
}

.arm-pf-mark.is-radio {
	border-radius: 50%;
}

.arm-pf-opt input:checked + .arm-pf-mark {
	border-color: var(--c-primary, #7c3aed);
	background-color: var(--c-primary, #7c3aed);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.arm-pf-opt input:checked + .arm-pf-mark.is-radio {
	background-image: none;
	box-shadow: inset 0 0 0 3.5px #fff;
}

.arm-pf-opt input:focus-visible + .arm-pf-mark {
	outline: 2px solid var(--c-primary, #7c3aed);
	outline-offset: 2px;
}

.arm-pf-opt input:checked ~ .arm-pf-name {
	color: var(--c-primary-dark, #4c1d95);
	font-weight: 700;
}

.arm-pf-name {
	flex: 1 1 auto;
	min-width: 0;
	overflow-wrap: anywhere;
}

.arm-pf-count {
	flex: 0 0 auto;
	min-width: 26px;
	padding: 1px 7px;
	border-radius: 999px;
	background: var(--c-bg-soft, #f7f6fb);
	color: var(--c-text-soft, #6b7280);
	font-size: 11.5px;
	text-align: center;
}

/* Range / price */
.arm-pf-range-out {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 4px;
	font-size: 12.5px;
	color: var(--c-text-soft, #6b7280);
}

.arm-pf-range-out b {
	color: var(--c-text, #211c38);
	font-weight: 700;
}

.arm-pf-slider {
	position: relative;
	height: 36px;
}

.arm-pf-track {
	position: absolute;
	inset-inline: 9px;
	top: 50%;
	height: 4px;
	margin-top: -2px;
	border-radius: 4px;
	background: var(--c-border, #ebe7f5);
}

.arm-pf-fill {
	position: absolute;
	top: 0;
	bottom: 0;
	inset-inline-start: 0;
	inset-inline-end: 0;
	border-radius: 4px;
	background: var(--c-primary, #7c3aed);
}

.arm-pf-thumb {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 36px;
	margin: 0;
	background: none;
	pointer-events: none;
	-webkit-appearance: none;
	appearance: none;
}

.arm-pf-thumb::-webkit-slider-runnable-track {
	background: none;
	border: 0;
}

.arm-pf-thumb::-moz-range-track {
	background: none;
	border: 0;
}

.arm-pf-thumb::-webkit-slider-thumb {
	width: 22px;
	height: 22px;
	border: 3px solid var(--c-primary, #7c3aed);
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 2px 6px rgba(76, 29, 149, .25);
	cursor: grab;
	pointer-events: auto;
	-webkit-appearance: none;
	appearance: none;
}

.arm-pf-thumb::-moz-range-thumb {
	width: 18px;
	height: 18px;
	border: 3px solid var(--c-primary, #7c3aed);
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 2px 6px rgba(76, 29, 149, .25);
	cursor: grab;
	pointer-events: auto;
}

.arm-pf-thumb:focus-visible::-webkit-slider-thumb {
	outline: 3px solid var(--c-primary-soft, #ede9fe);
}

.arm-pf-range-inputs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	margin-top: 6px;
}

.arm-pf-range-inputs label {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	color: var(--c-text-soft, #6b7280);
}

.arm-pf-range-inputs input {
	width: 100%;
	min-width: 0;
	min-height: 40px;
	padding: 6px 8px;
	border: 1.5px solid var(--c-border, #ebe7f5);
	border-radius: 9px;
	font: inherit;
	font-size: 13px;
	direction: ltr;
	text-align: center;
	box-sizing: border-box;
}

.arm-pf-range-inputs input:focus {
	outline: none;
	border-color: var(--c-primary, #7c3aed);
}

/* Actions */
.arm-pf-actions {
	display: flex;
	gap: 8px;
	padding-top: 12px;
}

.arm-pf-apply,
.arm-pf-done {
	flex: 1 1 auto;
	min-height: 44px;
	padding: 10px 16px;
	border: 1.5px solid var(--c-primary, #7c3aed);
	border-radius: 12px;
	background: #fff;
	color: var(--c-primary, #7c3aed);
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
}

.arm-pf-apply:hover,
.arm-pf-done {
	background: var(--grad, #7c3aed);
	border-color: transparent;
	color: #fff;
}

/* With JS every change applies at once; the button is only the no-JS fallback. */
.arm-pf-layout.is-js .arm-pf-apply {
	display: none;
}

/* Loading */
.arm-pf-results {
	position: relative;
	min-width: 0;
}

.arm-pf-layout.is-loading .arm-pf-results > * {
	opacity: .45;
	pointer-events: none;
	transition: opacity .15s ease;
}

.arm-pf-layout.is-loading .arm-pf-results::after {
	content: "";
	position: absolute;
	top: 120px;
	left: 50%;
	width: 36px;
	height: 36px;
	margin-left: -18px;
	border: 3px solid var(--c-primary-soft, #ede9fe);
	border-top-color: var(--c-primary, #7c3aed);
	border-radius: 50%;
	animation: arm-pf-spin .7s linear infinite;
}

@keyframes arm-pf-spin {
	to { transform: rotate(360deg); }
}

.arm-pf-overlay[hidden] {
	display: none;
}

/* ---------- Tablet / mobile: drawer ---------- */
@media (max-width: 992px) {
	.arm-pf-layout {
		display: block;
	}

	.arm-pf-open {
		display: inline-flex;
		align-items: center;
		gap: 8px;
		min-height: 44px;
		margin: 0 0 22px;
		margin-inline-end: 12px;
		padding: 10px 16px;
		border: 1.5px solid var(--c-border, #ebe7f5);
		border-radius: 12px;
		background: #fff;
		box-shadow: var(--shadow-sm, 0 2px 8px rgba(33, 28, 56, .06));
		color: var(--c-text, #211c38);
		font: inherit;
		font-size: 13.5px;
		font-weight: 700;
		vertical-align: middle;
		cursor: pointer;
	}

	.arm-pf-open svg {
		color: var(--c-primary, #7c3aed);
	}

	.arm-pf-open-n {
		min-width: 20px;
		padding: 0 6px;
		border-radius: 999px;
		background: var(--c-primary, #7c3aed);
		color: #fff;
		font-size: 11.5px;
		line-height: 20px;
		text-align: center;
	}

	.arm-pf-side {
		position: fixed;
		top: 0;
		bottom: 0;
		right: 0;
		z-index: 100001;
		display: flex;
		flex-direction: column;
		width: min(360px, 88vw);
		padding: 0;
		border: 0;
		border-radius: 0;
		box-shadow: var(--shadow-lg, 0 22px 50px rgba(76, 29, 149, .18));
		transform: translateX(105%);
		visibility: hidden;
		transition: transform .25s ease, visibility 0s linear .25s;
	}

	.arm-pf-side.is-open {
		transform: none;
		visibility: visible;
		transition: transform .25s ease;
	}

	.arm-pf-head {
		flex: 0 0 auto;
		padding: 8px 16px;
	}

	.arm-pf-close {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 44px;
		height: 44px;
		border: 0;
		border-radius: 10px;
		background: var(--c-bg-soft, #f7f6fb);
		color: var(--c-text, #211c38);
		cursor: pointer;
	}

	.arm-pf-active {
		flex: 0 0 auto;
		padding: 0 16px;
	}

	.arm-pf-form {
		flex: 1 1 auto;
		display: flex;
		flex-direction: column;
		min-height: 0;
		overflow-y: auto;
		padding: 0 16px;
		overscroll-behavior: contain;
	}

	.arm-pf-actions {
		position: sticky;
		bottom: 0;
		margin-top: auto;
		padding: 12px 0 calc(12px + env(safe-area-inset-bottom, 0px));
		background: #fff;
		border-top: 1px solid var(--c-border, #ebe7f5);
	}

	.arm-pf-done {
		display: block;
	}

	.arm-pf-opt,
	.arm-pf-search,
	.arm-pf-range-inputs input {
		min-height: 44px;
	}

	.arm-pf-opts {
		max-height: none;
	}

	.arm-pf-overlay {
		position: fixed;
		inset: 0;
		z-index: 100000;
		background: rgba(33, 28, 56, .45);
	}

	html.arm-pf-lock,
	html.arm-pf-lock body {
		overflow: hidden;
	}
}

@media (max-width: 560px) {
	.arm-pf-open {
		margin-inline-end: 8px;
		margin-bottom: 14px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.arm-pf-side,
	.arm-pf-chev {
		transition: none;
	}
}

/* 2.67.0 — «حراج!» flash centered inside the card; «کارکرده» label under the image. */
.woocommerce ul.products li.product{position:relative}
.woocommerce ul.products li.product span.onsale,.woocommerce-page ul.products li.product span.onsale{position:absolute;top:12px;right:12px;left:auto;transform:none;width:auto;min-width:0;max-width:calc(100% - 24px);margin:0;padding:4px 14px;white-space:nowrap;text-align:center;border-radius:999px;z-index:3}
.used-badges{display:flex;flex-wrap:wrap;justify-content:flex-start;direction:rtl;gap:6px;margin:0 0 8px;padding:0 12px;list-style:none}
.used-badge{display:inline-flex;align-items:center;min-height:24px;padding:0 10px;border-radius:999px;font-size:11.5px;font-weight:700;line-height:1;background:#fff7ed;color:#9a3412;border:1px solid #fed7aa}
.used-badge.is-info{background:#f5f3ff;color:#4c1d95;border-color:#ddd0fb}
