.container {
	width: 100%;
	max-width: 1440px;
	margin: 0 auto;
	padding: 60px 20px;
	box-sizing: border-box;
}

.product-category-layout {
	display: flex;
	flex-direction: column;
	gap: 48px;
	align-items: start;
}

.product-category-content {
	display: flex;
	flex-direction: row;
	gap: 48px;
	align-items: start;
}

.products {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 60px;
}

.product-card {
	display: flex;
	flex-direction: column;
}

.product-card img {
	background: #f7f8fa;
}

/** Sidebar **/
.product-sidebar {
	width: 350px;
}

.filter-link {
	background: none;
	border: none;
	padding: 6px 0;
	width: 100%;
	text-align: left;
	font-size: 14px;
	font-weight: 400;
	color: #6b6b6b;
	cursor: pointer;
}

.filter-link.level-0 {
	font-weight: 400;
	font-size: 20px !important;
	font-family: "Times New Roman";
	color: #111;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.filter-link.level-1,
.filter-link.level-2,
.filter-link.level-3,
.filter-link.level-4 {
	margin-left: 0 !important;
	font-size: 16px !important;
	font-weight: 400;
	font-family: manrope_plf !important;
	text-transform: uppercase;
}

.filter-link.level-1 {
	padding-left: 20px !important;
}

.filter-link.level-2 {
	padding-left: 40px !important;
}

.filter-link.level-3 {
	padding-left: 60px !important;
}

.filter-link.level-4 {
	padding-left: 80px !important;
}

.filter-link:hover {
	background: transparent !important;
	color: #cb6829; /* Valtech blue */
}

.filter-link.active {
	color: #cb6829;
	font-weight: 600;
}

.product-sidebar {
	padding-top: 24px;
}

.filter-item.level-0 {
	padding-bottom: 12px;
	border-bottom: 1px solid #eee;
}

.filter-level-0 > .filter-item:not(:last-child) {
	margin-bottom: 24px;
}

.filter-level-1,
.filter-level-2,
.filter-level-3,
.filter-level-4 {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease, opacity 0.2s ease;
	opacity: 0;
}

.filter-item.is-open > .filter-level-1,
.filter-item.is-open > .filter-level-2,
.filter-item.is-open > .filter-level-3,
.filter-item.is-open > .filter-level-4 {
	max-height: 500px; /* safe large value */
	opacity: 1;
}

/** End Sidebar **/

.product-sidebar,
.product-grid,
.products {
	align-self: flex-start;
}

#product-results.loading {
	opacity: 0.4;
	pointer-events: none;
}

.filter-link.active {
	font-weight: 600;
	color: #cb6829;
}

.product-image {
	height: 330px;
	overflow: hidden;
	display: flex;
	justify-content: center;
	align-items: center;
}

.product-image img {
	object-fit: contain;
}

.ajax-pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	align-items: center;
	justify-content: center;
	width: 100%;
	margin-top: 40px;
}

.ajax-page {
	border: none;
	background: transparent !important;
	color: #444 !important;
	font-size: 16px !important;
	font-family: manrope_plf !important;
	font-weight: 300 !important;
	cursor: pointer;
	padding: 6px 8px;
}

.ajax-page.active {
	color: #cb6829 !important;
	font-weight: 500 !important;
}

.ajax-dots {
	color: #999;
	padding: 6px 4px;
}

.ajax-prev,
.ajax-next {
	color: #cb6829 !important;
	font-weight: 500 !important;
}

@media (max-width: 575px) {
	.ajax-pagination {
		gap: 8px;
	}

	.ajax-page {
		font-size: 14px !important;
		padding: 6px;
	}

	.ajax-prev,
	.ajax-next {
		width: auto;
	}
}

.product-code {
	font-size: 14px !important;
	margin-bottom: 0 !important;
	color: #cb6829;
	font-family: manrope_plf !important;
	font-weight: 300 !important;
	line-height: 1em !important;
}

.product-title {
	font-size: 28px !important;
	margin-bottom: 20px;
	color: #444 !important;
	font-family: "Poppins" !important;
	font-weight: 400 !important;
	line-height: 1em !important;
	text-transform: uppercase !important;
}

.breadcrumb {
	font-size: 16px;
	padding: 24px 0;
	max-width: 1440px;
	margin: 20px auto;
	padding: 0 24px;
	font-family: manrope_plf !important;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: #666;
}

.breadcrumb a {
	color: #666;
	text-decoration: none;
}

.breadcrumb a:hover {
	text-decoration: underline;
}

.pagelayer-breadcrumb-sep {
	margin: 0 8px;
	color: #999;
}

.contact-btn {
	background-color: #cb6829 !important;
	color: #fff !important;
	font-family: manrope_plf !important;
	display: flex;
	justify-content: center;
	padding: 10px 20px;
}

@media (min-width: 1024px) {
	.product-sidebar {
		position: sticky;
		top: 120px; /* below header */
		height: fit-content;
	}
}

@media (max-width: 1023px) {
	.product-sidebar {
		position: fixed;
		top: 0;
		left: 0;
		width: 85%;
		max-width: 320px;
		height: 100vh;
		background: #fff;
		transform: translateX(-100%);
		transition: transform 0.3s ease;
		z-index: 1000;
		padding: 24px;
		overflow-y: auto;
	}

	.product-sidebar.is-open {
		transform: translateX(0);
	}
}

.product-image {
	position: relative;
	overflow: hidden;
}

.product-image-img {
	display: block;
	width: 100%;
	height: auto;
	transition: opacity 0.25s ease;
}

.diagram-image {
	position: absolute;
	top: 0;
	left: 0;
	opacity: 0;
}

.product-card:hover .main-image {
	opacity: 0;
}

.product-card:hover .diagram-image {
	opacity: 1;
}

@media (max-width: 1200px) {
	.products {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 40px;
	}
}

@media (max-width: 991px) {
	.product-category-content {
		flex-direction: column;
		gap: 32px;
	}

	.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 32px;
	}

	.product-sidebar {
		width: 100%;
	}
}

@media (max-width: 575px) {
	.container {
		padding: 40px 16px;
	}

	.products {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.product-image {
		height: 260px;
	}

	.product-title {
		font-size: 24px !important;
	}
}

.search-pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	align-items: center;
	justify-content: center;
	width: 100%;
	margin-top: 40px;
}

.search-pagination .page-numbers {
	font-size: 16px !important;
	background: transparent !important;
	color: #444 !important;
	font-family: manrope_plf !important;
	font-weight: 300 !important;
	text-decoration: none !important;
	padding: 6px 8px;
}

.search-pagination .page-numbers.current {
	color: #cb6829 !important;
	font-weight: 500 !important;
}

.search-pagination .prev,
.search-pagination .next {
	color: #cb6829 !important;
	font-weight: 500 !important;
}

.search-pagination .dots {
	color: #999 !important;
}

@media (max-width: 575px) {
	.search-pagination {
		gap: 8px;
	}

	.search-pagination .page-numbers {
		font-size: 14px !important;
		padding: 6px;
	}
}

.product-sidebar {
	width: 320px;
	flex: 0 0 320px;
	display: block;
}

.product-sidebar .filter-level {
	list-style: none;
	padding-left: 0;
	margin: 0;
}

.product-sidebar .filter-item {
	margin-bottom: 12px;
}

.product-sidebar .filter-link {
	display: block;
	width: 100%;
	padding: 0;
	background: transparent;
	border: none;
	color: #333;
	font-size: 16px;
	text-align: left;
	cursor: pointer;
}

.product-sidebar .filter-link.level-0 {
	font-weight: 400;
	text-transform: uppercase;
}

.product-sidebar .filter-link.level-1 {
	padding-left: 16px;
	font-size: 14px;
}

.product-sidebar .filter-link.level-2 {
	padding-left: 32px;
	font-size: 13px;
}

/* Sidebar tree */
.product-sidebar .filter-link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	background: transparent;
	border: none;
	cursor: pointer;
	text-align: left;
}

.product-sidebar .filter-text {
	display: inline-block;
}

.product-sidebar .filter-chevron {
	font-size: 18px;
	line-height: 1;
	transition: transform 0.25s ease;
}

.product-sidebar .filter-item.is-open > .filter-link .filter-chevron {
	transform: rotate(180deg);
}

/* Child levels hidden by default */
.product-sidebar .filter-level-1,
.product-sidebar .filter-level-2,
.product-sidebar .filter-level-3,
.product-sidebar .filter-level-4 {
	max-height: 0;
	overflow: hidden;
	opacity: 0;
	transition: max-height 0.3s ease, opacity 0.2s ease;
}

/* Child levels open */
.product-sidebar .filter-item.is-open > .filter-level-1,
.product-sidebar .filter-item.is-open > .filter-level-2,
.product-sidebar .filter-item.is-open > .filter-level-3,
.product-sidebar .filter-item.is-open > .filter-level-4 {
	max-height: 3000px;
	opacity: 1;
}

/* Mobile category dropdown instead of off-canvas sidebar */
.mobile-filter-toggle {
	display: none;
}

@media (max-width: 768px) {
	.mobile-filter-toggle {
		display: flex;
		align-items: center;
		justify-content: space-between;
		width: 100%;
		margin-bottom: 20px;
		padding: 14px 0;
		background: transparent !important;
		border: none;
		border-bottom: 1px solid #eee;
		color: #333 !important;
		font-family: "Times New Roman" !important;
		font-size: 24px !important;
		font-weight: 600;
		text-transform: uppercase;
		letter-spacing: 0.05em;
		cursor: pointer;
	}

	.mobile-filter-toggle::after {
		content: "";
		width: 32px;
		height: 32px;
		display: inline-block;
		background-color: #000;
		mask-image: url("data:image/svg+xml,%3Csvg width='32' height='32' viewBox='0 0 32 32' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9.88 11.4399L16 17.5599L22.12 11.4399L24 13.3333L16 21.3333L8 13.3333L9.88 11.4399Z' fill='black'/%3E%3C/svg%3E");
		mask-repeat: no-repeat;
		mask-position: center;
		mask-size: contain;
		-webkit-mask-image: url("data:image/svg+xml,%3Csvg width='32' height='32' viewBox='0 0 32 32' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9.88 11.4399L16 17.5599L22.12 11.4399L24 13.3333L16 21.3333L8 13.3333L9.88 11.4399Z' fill='black'/%3E%3C/svg%3E");
		-webkit-mask-repeat: no-repeat;
		-webkit-mask-position: center;
		-webkit-mask-size: contain;
		transition: transform 0.25s ease;
	}
	

	.mobile-filter-toggle.is-open::after {
		transform: rotate(180deg);
	}

	.product-category-content {
		display: block;
	}

	.product-sidebar {
		position: static !important;
		top: auto !important;
		left: auto !important;
		width: 100% !important;
		max-width: none !important;
		height: auto !important;
		padding: 0 !important;
		background: transparent !important;
		box-shadow: none !important;
		transform: none !important;
		overflow: hidden !important;
		display: none;
	}

	.product-sidebar.is-open {
		display: block;
		margin-bottom: 32px;
	}

	.filter-overlay {
		display: none !important;
	}

	.product-sidebar .filter-link.level-1,
	.product-sidebar .filter-link.level-2,
	.product-sidebar .filter-link.level-3,
	.product-sidebar .filter-link.level-4 {
		font-size: 16px !important;
		padding: 10px 0;
	}

	.product-sidebar .filter-chevron {
		margin-left: auto;
	}
}