/* ─── Product Grid Minimal ───────────────────────────────────────────────────── */

.product-grid-minimal {
	background: #f5f5f3;
}

/* ─── Breadcrumb ─────────────────────────────────────────────────────────────── */

.pgm-breadcrumb-wrap {
	padding: 16px 0;
}

.pgm-breadcrumb {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0;
	font-size: 13px;
	font-weight: 500;
	color: rgb(15 57 28 / 60%);
	margin: 0;
}

.pgm-breadcrumb a {
	color: rgb(15 57 28 / 60%);
	text-decoration: none;
	white-space: nowrap;
	transition: color 0.15s ease;
}

.pgm-breadcrumb a:hover {
	color: #00561B;
}

.pgm-bc-sep {
	display: inline-block;
	color: rgb(15 57 28 / 40%);
	font-weight: 400;
	padding: 0 10px;
	font-style: normal;
}

.pgm-bc-current {
	color: #0D6B34;
	font-weight: 700;
	white-space: nowrap;
}

/* ─── Filter Bar ─────────────────────────────────────────────────────────────── */

.pgm-filter-bar {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	margin-bottom: 24px;
	gap: 12px;
	padding: 24px 0;
	border-top: 1px solid rgb(15 57 28 / 10%);
	border-bottom: 1px solid rgb(15 57 28 / 10%);
}

.pgm-filter-left {
	display: flex;
	align-items: flex-end;
	gap: 48px;
}

.pgm-filter-divider {
	width: 1px;
	height: 36px;
	background: #d0d0c8;
	margin: 0 24px;
	flex-shrink: 0;
}

/* ─── Filter Group (label + select) ─────────────────────────────────────────── */

.pgm-filter-group {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.pgm-filter-label {
	font-size: 10px;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: rgb(15 57 28 / 40%);
	line-height: 1;
	white-space: nowrap;
}

.pgm-select-wrap {
	position: relative;
	display: inline-flex;
	align-items: center;
}

.pgm-select {
	appearance: none;
	background: transparent !important;
	box-shadow: none !important;
	border: none;
	border-radius: 0;
	padding: 5px 28px 5px 0;
	font-size: 16px;
	font-weight: 700;
	color: #00561B;
	cursor: pointer;
	outline: none;
	min-width: 90px;
	margin-bottom: 0;
	line-height: 1.3;
}

.pgm-select:focus {
	border-bottom-color: #0F391C;
}

.pgm-select-wrap::after {
	content: '';
	position: absolute;
	right: 6px;
	top: 50%;
	width: 0;
	height: 0;
	border: 5px solid transparent;
	border-top: 5px solid #0F391C;
	transform: translateY(-20%);
	pointer-events: none;
}

/* ─── Grid Wrapper ───────────────────────────────────────────────────────────── */

.pgm-grid-wrap {
	position: relative;
	min-height: 200px;
	transition: opacity 0.2s ease;
}

.pgm-grid-wrap.pgm-loading {
	opacity: 0.35;
	pointer-events: none;
}

/* ─── Grid ───────────────────────────────────────────────────────────────────── */

.pgm-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
}

/* ─── Card ───────────────────────────────────────────────────────────────────── */

.pgm-card {
	background: #fff;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	text-decoration: none;
	overflow: hidden;
	height: 100%;
	justify-content: space-between;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pgm-has-shadow .pgm-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
}

/* ─── Card Image ─────────────────────────────────────────────────────────────── */

.pgm-image-wrap {
	width: 100%;
	aspect-ratio: 1 / 1;
	height: auto;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 14px;
	overflow: hidden;
	background: #f9f9f7;
	border-radius: 12px;
}

.pgm-image-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* ─── Card Title ─────────────────────────────────────────────────────────────── */

.pgm-title {
	font-size: 14px;
	font-weight: 500;
	color: #222;
	margin: 0;
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	width: 100%;
}

/* ─── Card Price ─────────────────────────────────────────────────────────────── */

.pgm-price {
	display: block;
	margin-top: 10px;
	font-size: 13px;
	font-weight: 600;
	color: #5b7d3f;
}

.pgm-price .woocommerce-Price-amount {
	color: inherit;
}

/* ─── Empty State ────────────────────────────────────────────────────────────── */

.pgm-no-products {
	grid-column: 1 / -1;
	text-align: center;
	padding: 60px 20px;
	color: #999;
	font-size: 14px;
}

/* ─── Pagination ─────────────────────────────────────────────────────────────── */

.pgm-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 32px;
}

.pgm-page-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 34px;
	height: 34px;
	padding: 0 10px;
	background: #fff;
	border: 1px solid #ccc;
	border-radius: 3px;
	font-size: 13px;
	color: #333;
	cursor: pointer;
	user-select: none;
	transition: border-color 0.15s ease;
}

.pgm-page-btn:hover {
	border-color: #888;
}

.pgm-page-btn.current {
	background: #5b7d3f;
	border-color: #5b7d3f;
	color: #fff;
	cursor: default;
}

.pgm-page-btn.disabled {
	opacity: 0.4;
	cursor: not-allowed;
	pointer-events: none;
}

.pgm-page-dots {
	font-size: 13px;
	color: #aaa;
	padding: 0 4px;
	line-height: 34px;
}

/* ─── Responsive ─────────────────────────────────────────────────────────────── */

@media (max-width: 849px) {
	.product-grid-minimal .pgm-grid {
		grid-template-columns: repeat(2, 1fr);
	}


	.product-grid-minimal .pgm-filter-bar {
		display: flex;
		flex-direction: row;
		align-items: flex-end;
		justify-content: space-between;
		gap: 8px;
		padding: 16px 0;
		flex-wrap: nowrap;
		margin-bottom: 16px;
	}

	.product-grid-minimal .pgm-filter-left {
		display: flex;
		align-items: flex-end;
		gap: 14px;
		flex: 1 1 auto;
	}

	.product-grid-minimal .pgm-filter-right {
		display: flex;
		align-items: flex-end;
		flex: 0 0 auto;
	}

	.product-grid-minimal .pgm-filter-group {
		gap: 4px;
	}

	.product-grid-minimal .pgm-filter-label {
		font-size: 9px;
		letter-spacing: 0.06em;
	}

	.product-grid-minimal .pgm-select {
		font-size: 13px;
		padding: 4px 18px 4px 0;
		min-width: unset;
		font-weight: 700;
	}

	.product-grid-minimal .pgm-select-wrap::after {
		right: 2px;
		border-width: 4px;
		border-top-width: 4px;
	}
}

@media (max-width: 549px) {
	.product-grid-minimal .pgm-filter-divider {
		margin: 0 10px;
	}
}