/* ============================================================
CATEGORY PAGE FILTER — matches live site design
Place at: your-child-theme/css/category-filter.css
============================================================ */

.pgp-filter-area {
	display: flex;
	gap: 40px;
	align-items: flex-start;
	justify-content: space-between;
	width: 100%;
}

/* ----------------------------------------
Sidebar
---------------------------------------- */
.pgp-filter-sidebar {
	flex: 0 0 260px;
	max-width: 260px;
}

.pgp-filter-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 10px;
}

.pgp-filter-title {
	display: none; /* live design has no visible "Filter" title above the sidebar list */
}

.pgp-filter-reset {
	background: none;
	border: none;
	color: #EA5E20;
	font-size: 12px;
	cursor: pointer;
	padding: 0;
	margin-bottom: 10px;
}

.pgp-filter-reset:hover {
	text-decoration: underline;
}

/* ----------------------------------------
Accordion groups
---------------------------------------- */
.pgp-filter-group {
	border-bottom: 1px solid #d9d9d9;
}

.pgp-filter-group:last-child {
	border-bottom: none;
}

.pgp-filter-group-header {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: none;
	border: none;
	padding: 12px 0;
	font-size: 15px;
	font-weight: 600;
	color: #1a1a1a;
	cursor: pointer;
	text-align: left;
}
.pgp-filter-group-header:focus, .pgp-filter-group-header:hover{
	text-decoration: none;
}
/* Replace the chevron SVG with a plain +/- using CSS, matching live design */
.pgp-filter-arrow {
	display: none;
}

.pgp-filter-group-header::after {
	content: "+";
	font-size: 18px;
	font-weight: 400;
	color: #1a1a1a;
	line-height: 1;
	flex-shrink: 0;
}

.pgp-filter-group.pgp-open .pgp-filter-group-header::after {
	content: "\2212"; /* minus sign */
}

.pgp-filter-group-body {
	padding: 0 0 14px;
	max-height: 220px;
	overflow-y: auto;
}

.pgp-filter-option {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: #333;
	padding: 5px 0;
	cursor: pointer;
}

.pgp-filter-option input[type="checkbox"] {
	margin: 0;
	width: 14px;
	height: 14px;
	flex-shrink: 0;
	accent-color: #EA5E20;
}

/* ----------------------------------------
Range sliders (OFC, Height)
---------------------------------------- */
.pgp-range-body {
	padding-top: 4px;
}

.pgp-range-values {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	color: #555;
	margin-bottom: 14px;
}

.pgp-range-sep {
	color: #999;
}

.pgp-range-track-wrap {
	position: relative;
	height: 20px;
}

.pgp-range-track {
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	height: 3px;
	background: #d9d9d9;
	border-radius: 2px;
	transform: translateY(-50%);
}

.pgp-range-track-fill {
	position: absolute;
	top: 50%;
	height: 3px;
	background: #EA5E20;
	border-radius: 2px;
	transform: translateY(-50%);
}

/* Two overlapping <input type="range"> elements stacked on the same track.
Each is transparent except for its thumb, so only the thumbs are interactive. */
.pgp-range-input {
	position: absolute;
	top: 25%;
	left: 0;
	width: 100%;
	margin: 0;
	transform: translateY(-50%);
	-webkit-appearance: none;
	appearance: none;
	background: transparent;
	pointer-events: none;
}

.pgp-range-input::-webkit-slider-runnable-track {
	-webkit-appearance: none;
	background: transparent;
	height: 3px;
}

.pgp-range-input::-moz-range-track {
	background: transparent;
	height: 3px;
	border: none;
}

.pgp-range-input::-webkit-slider-thumb {
	-webkit-appearance: none;
	pointer-events: auto;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: #fff;
	border: 2px solid #EA5E20;
	cursor: pointer;
	margin-top: 0;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.pgp-range-input::-moz-range-thumb {
	pointer-events: auto;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: #fff;
	border: 2px solid #EA5E20;
	cursor: pointer;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.pgp-range-input:focus {
	outline: none;
}

.pgp-range-input:focus::-webkit-slider-thumb {
	box-shadow: 0 0 0 4px rgba(234, 94, 32, 0.2);
}

.pgp-range-input:focus::-moz-range-thumb {
	box-shadow: 0 0 0 4px rgba(234, 94, 32, 0.2);
}

/* ----------------------------------------
Active filter tags
---------------------------------------- */
#pgp-active-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 14px;
}

#pgp-active-filters:empty {
	margin-bottom: 0;
}

.pgp-active-tag {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #fdeee5;
	color: #EA5E20;
	border-radius: 20px;
	padding: 4px 12px;
	font-size: 12px;
	cursor: pointer;
}

.pgp-active-tag:hover {
	background: #fadbc7;
}

/* ----------------------------------------
Products area
---------------------------------------- */
.pgp-products-area {
	flex: 1;
	min-width: 0;
	position: relative;
}

.pgp-products-area.pgp-loading #pgp-products-container {
	opacity: 0.4;
	pointer-events: none;
	transition: opacity 0.2s ease;
}

.pgp-results-count {
	font-size: 13px;
	color: #555;
	margin: 0 0 18px;
}

.pgp-results-count span {
	font-weight: 600;
	color: #111;
}

/* ----------------------------------------
Product grid
---------------------------------------- */
.pgp-product-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 60px 25px;
	list-style: none;
	margin: 0;
	padding: 0;
}

li.pgp-product-card {
	background: transparent;
	margin: 0;
}

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

.pgp-product-link {
	display: block;
	color: inherit;
	text-decoration: none;
}

.pgp-product-image {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 270px;
	background: #fff;
	margin-bottom: 14px;
	border-radius: 25px;
}

.pgp-product-image img {
	max-height: 75%;
	max-width: 75%;
	object-fit: contain;
}

h2.pgp-product-title {
	font-size: 18px !important;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--e-global-color-primary);
	margin: 0 0 12px;
}

/* ----------------------------------------
Actions row: "Product Details   ☐ Add to Inquiry"
---------------------------------------- */
.pgp-product-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 12px;
	gap: 10px;
}

a.pgp-btn-details {
	position: relative;
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
	font-family: var(--font_primary);
	text-transform: capitalize;
	color: rgba(34, 34, 34, 80%);
	background: #fff0 0% 0% no-repeat;
	border: 1px solid #fff;
	border-radius: 25px;
	padding: 8px 15px;
	text-decoration: none !important;
}

.pgp-btn-details:hover {
	color: #EA5E20;
}

.pgp-btn-select {
	font-size: 13px;
	color: #1a1a1a;
	text-decoration: none;
	white-space: nowrap;
}

.pgp-btn-select:hover {
	color: #EA5E20;
}

.add_to_cart_div {
	display: flex;
	align-items: center;
	gap: 6px;
}

.add-to-cart-checkbox {
	width: 14px;
	height: 14px;
	margin: 0;
	accent-color: #EA5E20;
	cursor: pointer;
}

.add_to_cart_div label {
	font-size: 14px;
	color: #1a1a1a;
	cursor: pointer;
	white-space: nowrap;
	font-weight: 600;
	margin-bottom: 0;
}

.add-to-cart-checkbox.checked + label,
.add-to-cart-checkbox:checked + label {
	color: #EA5E20;
	font-weight: 600;
}

/* ----------------------------------------
No results
---------------------------------------- */
.pgp-no-products {
	text-align: center;
	padding: 60px 20px;
	color: #888;
	font-size: 14px;
}

/* ----------------------------------------
Pagination
---------------------------------------- */
.pgp-pagination {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 36px;
}

.pgp-page-btn {
	/* 	min-width: 32px;
	height: 32px; */
	border: 1px solid #ccc;
	background: #fff;
	color: #1a1a1a;
	border-radius: 4px;
	font-size: 13px;
	cursor: pointer;
	padding: 10px 15px;
}

.pgp-page-btn:hover {
	border-color: #EA5E20;
	color: #EA5E20;
}

.pgp-page-btn.active {
	background: #EA5E20;
	border-color: #EA5E20;
	color: #fff;
}
/* ----------------------------------------
Mobile filter toggle button
---------------------------------------- */
.pgp-filter-toggle-btn {
	display: none;
	align-items: center;
	gap: 8px;
	background: #fff;
	border: 1px solid #ccc;
	border-radius: 25px;
	padding: 10px 18px;
	font-size: 14px;
	font-weight: 600;
	color: #1a1a1a;
	cursor: pointer;
	margin-bottom: 16px;
}

.pgp-filter-toggle-btn:hover {
	border-color: #EA5E20;
	color: #EA5E20;
}

/* ----------------------------------------
Overlay backdrop
---------------------------------------- */
.pgp-filter-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	z-index: 1000;
	opacity: 0;
	transition: opacity 0.25s ease;
}

.pgp-filter-overlay.pgp-visible {
	display: block;
	opacity: 1;
}

/* ----------------------------------------
Close button (hidden on desktop)
---------------------------------------- */
.pgp-filter-close {
	display: none;
	background: none;
	border: none;
	font-size: 24px;
	line-height: 1;
	color: #1a1a1a;
	cursor: pointer;
	padding: 0 0 0 12px;
}
/* "NEXT »" style button — matches last page button in screenshot */
/* .pgp-pagination .pgp-page-btn:last-child {
min-width: auto;
padding: 0 12px;
font-weight: 600;
letter-spacing: 0.5px;
} */

/* ----------------------------------------
Responsive
---------------------------------------- */


@media (max-width: 1200px) {
	.pgp-product-grid{
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (max-width: 1023px) {
	.pgp-filter-area {
		flex-direction: column;
	}

	.pgp-product-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.product_filter_row .elementor-shortcode{
		flex-direction: column;
		align-items: flex-end !important;
	}

	.pgp-filter-toggle-btn {
		display: inline-flex;
	}

	.pgp-filter-close {
		display: block;
	}

	.pgp-filter-header {
		justify-content: space-between;
	}

	.pgp-filter-title {
		display: block; 
		margin: 0;
		color: #1a1a1a !important;
	}
	.pgp-filter-close-container{
		display:flex;
	}
	.pgp-filter-sidebar {
		position: fixed;
		top: 0;
		left: 0;
		height: 100%;
		width: 85%;
		max-width: 340px;
		background: #fff;
		z-index: 1001;
		padding: 140px 20px 20px 20px;
		overflow-y: auto;
		transform: translateX(-100%);
		transition: transform 0.3s ease;
		box-shadow: 2px 0 12px rgba(0, 0, 0, 0.15);
	}

	.pgp-filter-sidebar.pgp-open {
		transform: translateX(0);
	}

	.pgp-filter-reset {
		margin-bottom: 0;
	}
	.pgp-product-image{
		height: auto;
		width: auto;
	}
	.pgp-products-area{
		width: 100%;
	}
}

@media (max-width: 767px) {
	.pgp-product-grid {
		grid-template-columns: 1fr;
	}
	.pgp-product-image{
		height: auto;
	}
	.pgp-product-actions {
		flex-wrap: wrap;
	}
	.product_filter_row .elementor-shortcode{
		gap: 30px;
	}
}