.pg-7544-wrapper {
	position: relative;
	font-family: inherit;
	--pg-drawer-width: 350px;
	--pg-drawer-bg: #fff;
	--pg-drawer-speed: 0.4s;
}

/* --- Flex Layout --- */
.pg-7544-layout-container {
	display: flex;
	position: relative;
	width: 100%;
	align-items: flex-start;
}

.pg-7544-content-area {
	flex: 1;
	min-width: 0; 
	transition: all var(--pg-drawer-speed) ease-in-out;
}

.pg-7544-toggle-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	border: 1px solid #000; 
	background: #fff;
	padding: 10px 20px;
	transition: all 0.3s;
}
.pg-7544-toggle-icon {
	display: flex;
	align-items: center;
	justify-content: center;
}
.pg-7544-toggle-icon i {
	line-height: 1;
}

/* --- Drawer Base --- */
.pg-7544-filter-drawer {
	background: var(--pg-drawer-bg);
	box-sizing: border-box;
	overflow: hidden; /* Important for grid-template-rows animation */
	z-index: 100;
}
.pg-7544-drawer-inner {
	padding: 25px;
	height: 100%;
	display: flex;
	flex-direction: column;
	min-width: 250px; 
	box-sizing: border-box; /* CRITICAL to prevent top push jumps */
}

/* =========================================
   MODE: PUSH (ALL DIRECTIONS - DESKTOP ONLY)
   ========================================= */
@media (min-width: 1025px) {
	/* --- Top Push --- */
	.pg-7544-wrapper.direction-top .pg-7544-layout-container {
		flex-direction: column;
	}
	.pg-7544-wrapper.direction-top .pg-7544-filter-drawer {
		width: 100%;
		display: grid;
		grid-template-rows: 0fr;
		transition: grid-template-rows var(--pg-drawer-speed) ease-in-out, opacity var(--pg-drawer-speed) ease-in-out, margin var(--pg-drawer-speed) ease-in-out;
		opacity: 0;
		margin-bottom: 0;
	}
	.pg-7544-wrapper.direction-top .pg-7544-drawer-inner {
		overflow: hidden; /* Constrains content during 0fr */
		padding-top: 0;
		padding-bottom: 0;
		transition: padding var(--pg-drawer-speed) ease-in-out;
	}

	/* Top Open State */
	.pg-7544-wrapper.direction-top.drawer-open .pg-7544-filter-drawer {
		grid-template-rows: 1fr;
		opacity: 1;
		margin-bottom: 30px;
	}
	.pg-7544-wrapper.direction-top.drawer-open .pg-7544-drawer-inner {
		padding-top: 25px;
		padding-bottom: 25px;
	}


	/* --- Side Push (Left / Right) --- */
	.pg-7544-wrapper.direction-left .pg-7544-layout-container {
		flex-direction: row;
	}
	.pg-7544-wrapper.direction-right .pg-7544-layout-container {
		flex-direction: row-reverse;
	}

	.pg-7544-wrapper:not(.direction-top) .pg-7544-filter-drawer {
		width: 0; 
		min-width: 0; 
		opacity: 0;
		transition: width var(--pg-drawer-speed) ease-in-out, opacity var(--pg-drawer-speed) ease-in-out, margin var(--pg-drawer-speed) ease-in-out;
		height: auto; 
		align-self: stretch; 
	}
	.pg-7544-wrapper.direction-left .pg-7544-filter-drawer { border-right: 0px solid transparent; }
	.pg-7544-wrapper.direction-right .pg-7544-filter-drawer { border-left: 0px solid transparent; }

	/* Side Open State */
	.pg-7544-wrapper:not(.direction-top).drawer-open .pg-7544-filter-drawer {
		width: var(--pg-drawer-width);
		opacity: 1;
	}
	.pg-7544-wrapper.direction-left.drawer-open .pg-7544-filter-drawer { border-right: 1px solid #eee; margin-right: 30px; }
	.pg-7544-wrapper.direction-right.drawer-open .pg-7544-filter-drawer { border-left: 1px solid #eee; margin-left: 30px; }
}

/* =========================================
   Panel Inner Elements
   ========================================= */
.pg-7544-drawer-top {
	display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px;
}
.pg-7544-drawer-top h3 { margin: 0; font-size: 20px; }
.pg-7544-close-drawer {
	background: none; border: none; font-size: 20px; cursor: pointer; padding: 5px;
	display: flex; align-items: center; justify-content: center;
}
.pg-7544-close-drawer i { line-height: 1; }

.pg-7544-terms-list {
	display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 20px;
}
.pg-7544-checkbox-label {
	display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 15px;
}

/* Footer elements */
.pg-7544-drawer-footer {
	margin-top: auto;
	padding-top: 20px;
	display: flex;
	flex-direction: column;
}
.pg-7544-apply-btn {
	width: 100%; background: #000; color: #fff; border: none; padding: 12px;
	text-transform: uppercase; font-weight: bold; cursor: pointer; margin-bottom: 15px;
	transition: all 0.3s;
}
.pg-7544-clear-wrapper {
	display: flex;
	width: 100%;
}
.pg-7544-clear-btn {
	background: none; border: none; text-decoration: underline; cursor: pointer; color: #666;
	transition: all 0.3s;
	padding: 5px 10px;
}

/* Grid & Pagination */
.pg-7544-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
	transition: opacity 0.3s ease;
}

/* =========================================
   TABLET & MOBILE (FULLSCREEN OVERLAY)
   ========================================= */
@media (max-width: 1024px) {
	.pg-7544-grid { grid-template-columns: repeat(2, 1fr); }
	
	.pg-7544-filter-drawer {
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100vh;
		height: 100dvh;
		z-index: 9999;
		background: var(--pg-drawer-bg, #fff);
		transform: translateY(100%);
		opacity: 0;
		transition: transform var(--pg-drawer-speed) ease-in-out, opacity var(--pg-drawer-speed) ease-in-out;
		pointer-events: none;
		border: none;
		margin: 0;
	}
	
	.pg-7544-wrapper.drawer-open .pg-7544-filter-drawer {
		transform: translateY(0);
		opacity: 1;
		pointer-events: auto;
	}

	.pg-7544-drawer-inner {
		padding: 25px;
		height: 100%;
		overflow-y: auto;
	}
	
	.pg-7544-layout-container {
		flex-direction: column !important;
	}
}

@media (max-width: 767px) {
	.pg-7544-grid { grid-template-columns: 1fr; }
}

.pg-7544-pagination {
	margin-top: 40px; display: flex; justify-content: center; gap: 10px;
}
.pg-7544-pagination ul.page-numbers {
	display: flex; list-style: none; padding: 0; margin: 0; gap: 5px;
}
.pg-7544-pagination a.page-numbers, .pg-7544-pagination span.page-numbers, .pg-7544-load-more-btn, .pg-7544-page-nav {
	padding: 10px 15px; border: 1px solid #ddd; text-decoration: none; transition: all 0.3s;
	display: inline-block; background: #fff; color: #000; cursor: pointer;
}
.pg-7544-loader { text-align: center; padding: 20px; font-size: 30px; color: #666; display: none; }

/* Fallback Cards */
.pg-7544-item { display: flex; flex-direction: column; }
.pg-7544-link { text-decoration: none; color: inherit; display: block; }
.pg-7544-image { width: 100%; aspect-ratio: 3 / 2; background: #f0f0f0; overflow: hidden; margin-bottom: 15px; }
.pg-7544-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.pg-7544-link:hover .pg-7544-image img { transform: scale(1.05); }
.pg-7544-meta { font-size: 12px; text-transform: uppercase; color: #666; margin-bottom: 8px; }
.pg-7544-title { font-size: 20px; line-height: 1.3; margin: 0; font-weight: 400; color: #000; }
