/* ==========================================================
   بازطراحی صفحه فروشگاه - استایل سایدبار فیلتر و گرید محصولات
   ========================================================== */

.wsr-shop-wrapper {
	position: relative !important;
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: wrap !important;
	align-items: flex-start !important;
	gap: 32px;
	max-width: 1280px;
	margin: 30px auto !important;
	padding: 0 16px;
	overflow: visible !important;
}

.wsr-filter-sidebar {
	flex: 0 0 260px !important;
	max-width: 260px !important;
	box-sizing: border-box !important;
	position: relative !important;
	inset: auto !important;
	float: none !important;
	transform: none !important;
}

.wsr-shop-products {
	flex: 1 1 calc(100% - 292px) !important;
	min-width: 0 !important;
	max-width: 100% !important;
	box-sizing: border-box !important;
	position: relative !important;
	float: none !important;
	transform: none !important;
}

/* --- حالت موبایل: کاملاً تک‌ستونی، بدون sticky/absolute/float --- */
@media (max-width: 782px) {
	.wsr-shop-wrapper {
		flex-direction: column !important;
		gap: 20px;
	}

	.wsr-filter-sidebar {
		flex-basis: 100% !important;
		max-width: 100% !important;
		width: 100% !important;
		order: 1 !important;
		position: relative !important;
		top: auto !important;
		inset: auto !important;
	}

	.wsr-shop-products {
		flex-basis: 100% !important;
		max-width: 100% !important;
		width: 100% !important;
		order: 2 !important;
		position: relative !important;
	}
}

/* --- سایدبار فیلتر --- */
.wsr-filter-sidebar {
	background: #fafafa;
	border: 1px solid #eaeaea;
	border-radius: 12px;
	padding: 20px;
	position: sticky;
	top: 20px;
}

.wsr-filter-title {
	font-size: 18px;
	font-weight: 700;
	margin-bottom: 16px;
	border-bottom: 2px solid #222;
	padding-bottom: 10px;
}

.wsr-filter-group {
	margin-bottom: 20px;
}

.wsr-filter-group h4 {
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 10px;
	color: #333;
}

.wsr-filter-list {
	list-style: none;
	margin: 0;
	padding: 0;
	max-height: 220px;
	overflow-y: auto;
}

.wsr-filter-list li {
	margin-bottom: 8px;
}

.wsr-filter-list label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	cursor: pointer;
}

.wsr-price-inputs {
	display: flex;
	align-items: center;
	gap: 8px;
}

.wsr-price-inputs input {
	width: 100%;
	padding: 6px 8px;
	border: 1px solid #ddd;
	border-radius: 6px;
}

.wsr-btn-apply,
.wsr-btn-reset {
	width: 100%;
	padding: 10px;
	border: none;
	border-radius: 8px;
	font-size: 14px;
	cursor: pointer;
	margin-top: 6px;
}

.wsr-btn-apply {
	background: #222;
	color: #fff;
}

.wsr-btn-apply:hover {
	background: #444;
}

.wsr-btn-reset {
	background: #eee;
	color: #333;
}

.wsr-btn-reset:hover {
	background: #ddd;
}

/* --- گرید محصولات --- */
.wsr-shop-products {
	position: relative;
	min-height: 300px;
	transition: opacity 0.2s ease;
}

.wsr-shop-products.wsr-loading {
	opacity: 0.4;
	pointer-events: none;
}

.wsr-shop-products ul.products {
	display: grid !important;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	list-style: none;
	margin: 0 !important;
	padding: 0 !important;
}

@media (max-width: 1024px) {
	.wsr-shop-products ul.products {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 600px) {
	.wsr-shop-products ul.products {
		grid-template-columns: repeat(2, 1fr);
	}
}

.wsr-shop-products ul.products li.product {
	background: #fff;
	border: 1px solid #eee;
	border-radius: 12px;
	padding: 14px;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.wsr-shop-products ul.products li.product:hover {
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
	transform: translateY(-3px);
}

.wsr-no-products {
	text-align: center;
	padding: 40px 0;
	font-size: 15px;
	color: #777;
}
