.woocommerce-page .site-content > .container,
.single-product .product-single-container {
	width: min(1200px, calc(100% - 2rem));
	margin: 0 auto;
	padding: 0 1rem;
}

/* Hide sidebar on cart, checkout, and account pages */
body.woocommerce-cart .woocommerce-content .shop-sidebar,
body.woocommerce-checkout .woocommerce-content .shop-sidebar,
body.woocommerce-account .woocommerce-content .shop-sidebar,
body.woocommerce-page.woocommerce-cart .widget-area,
body.woocommerce-page.woocommerce-checkout .widget-area,
body.woocommerce-page.woocommerce-account .widget-area,
body.woocommerce-cart .site-main-content .widget-area,
body.woocommerce-checkout .site-main-content .widget-area,
body.woocommerce-account .site-main-content .widget-area,
body.woocommerce-cart #secondary,
body.woocommerce-checkout #secondary,
body.woocommerce-account #secondary {
	display: none !important;
}

.woocommerce-content {
	display: grid;
	grid-template-columns: 3fr 1fr;
	gap: 2rem;
	padding: 2rem 0;
	direction: rtl;
}

.woocommerce-content .woocommerce-main {
	order: 2;
}

.woocommerce-content .shop-sidebar {
	order: 1;
}

.woocommerce-content--full {
	grid-template-columns: 1fr;
}

.woocommerce-content .shop-sidebar {
	padding: 1rem;
	background: #fdfdfd;
	border: 1px solid #ececec;
	border-radius: 1rem;
	overflow: visible;
	position: relative;
}

@media (max-width: 960px) {
	.woocommerce-content {
		grid-template-columns: 1fr;
	}

	.woocommerce-content .shop-sidebar {
		order: -1;
	}
	
	.woocommerce-content .woocommerce-main {
		order: 2;
	}
}

/* Price Filter Widget */
.price-filter-widget {
	padding: 1rem 0;
}

.price-filter-slider-wrapper {
	margin: 1.5rem 0;
	padding: 0 0.5rem;
}

.price-filter-slider {
	height: 6px;
	background: #e0e0e0;
	border-radius: 3px;
	position: relative;
}

.price-filter-slider .noUi-connect {
	background: linear-gradient(90deg, #ff6b35 0%, #ff8c42 100%);
	border-radius: 3px;
}

.price-filter-slider .noUi-handle {
	width: 20px;
	height: 20px;
	right: -10px;
	top: -7px;
	border-radius: 50%;
	background: #ffffff;
	border: 2px solid #ff6b35;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
	cursor: grab;
	transition: all 0.2s ease;
}

.price-filter-slider .noUi-handle:hover {
	transform: scale(1.1);
	box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
}

.price-filter-slider .noUi-handle:active {
	cursor: grabbing;
	transform: scale(1.15);
}

.price-filter-slider .noUi-handle::before,
.price-filter-slider .noUi-handle::after {
	display: none;
}

.price-filter-inputs {
	display: flex;
	gap: 1rem;
	margin: 1.5rem 0;
	flex-wrap: wrap;
	overflow: visible;
	width: 100%;
}

.price-filter-input-group {
	flex: 1 1 calc(50% - 0.5rem);
	min-width: 120px;
	max-width: 100%;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	position: relative;
	overflow: visible;
}

.price-filter-input-group label {
	font-size: 0.875rem;
	font-weight: 600;
	color: #333;
	margin-bottom: 0.25rem;
}

.price-filter-input-group .price-filter-input {
	width: 100%;
	max-width: 100%;
	padding: 0.625rem 2.5rem 0.625rem 0.75rem;
	border: 1px solid #d4d4d4;
	border-radius: 0.5rem;
	font-size: 0.95rem;
	transition: all 0.2s ease;
	background: #ffffff;
	box-sizing: border-box;
	direction: rtl;
	text-align: right;
	-moz-appearance: textfield;
}

.price-filter-input-group .price-filter-input::-webkit-outer-spin-button,
.price-filter-input-group .price-filter-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.price-filter-input-group .price-filter-input:focus {
	outline: none;
	border-color: #ff6b35;
	box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.price-filter-currency {
	position: absolute;
	left: 0.75rem;
	top: 50%;
	transform: translateY(-50%);
	font-size: 0.875rem;
	color: #666;
	font-weight: 500;
	pointer-events: none;
	z-index: 1;
	line-height: 1;
	margin-top: 0.5rem;
}

.price-filter-actions {
	display: flex;
	gap: 0.75rem;
	align-items: center;
	margin-top: 1rem;
}

.price-filter-apply {
	flex: 1;
	padding: 0.75rem 1.5rem;
	font-size: 0.95rem;
	font-weight: 600;
	border-radius: 0.5rem;
	cursor: pointer;
	transition: all 0.2s ease;
}

.price-filter-reset {
	color: #666;
	text-decoration: none;
	font-size: 0.875rem;
	padding: 0.5rem 1rem;
	border-radius: 0.5rem;
	transition: all 0.2s ease;
}

.price-filter-reset:hover {
	color: #ff6b35;
	background: rgba(255, 107, 53, 0.1);
}

.price-filter-loading {
	position: relative;
}

.price-filter-loading::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 40px;
	height: 40px;
	border: 3px solid #f3f3f3;
	border-top: 3px solid #ff6b35;
	border-radius: 50%;
	animation: spin 1s linear infinite;
	z-index: 10;
}

@keyframes spin {
	0% { transform: translate(-50%, -50%) rotate(0deg); }
	100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@media (max-width: 640px) {
	.price-filter-inputs {
		flex-direction: column;
	}

	.price-filter-input-group {
		flex: 1 1 100%;
	}

	.price-filter-actions {
		flex-direction: column;
	}

	.price-filter-apply {
		width: 100%;
	}
}

