/* Product Grid — Styles */

.pgd-wrapper {
	--pgd-cols: 4;
	--pgd-gap: 24px;
	width: 100%;
}

.pgd-header {
	text-align: center;
	margin-bottom: 24px;
}

.pgd-title {
	font-family: inherit;
	font-size: 30px;
	font-weight: 700;
	color: #1a1a1a;
	margin: 0 0 10px 0;
}

.pgd-subtitle {
	font-size: 14px;
	color: #9a9186;
	margin: 0;
}

/* Filter tabs */
.pgd-filter-tabs {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 28px;
	margin-bottom: 36px;
}

.pgd-filter-tab {
	background: transparent;
	border: none;
	border-bottom: 2px solid transparent;
	padding: 6px 2px;
	font-size: 12px;
	letter-spacing: 1px;
	text-transform: uppercase;
	font-weight: 600;
	color: #8a8378;
	cursor: pointer;
	transition: color 0.3s ease, border-color 0.3s ease;
}

.pgd-filter-tab:hover,
.pgd-filter-tab.active {
	color: #1a1a1a;
	border-bottom-color: #1a1a1a;
}

/* Grid */
.pgd-grid {
	display: grid;
	grid-template-columns: repeat(var(--pgd-cols), 1fr);
	gap: var(--pgd-gap);
}

.pgd-card {
	position: relative;
	opacity: 1;
}

.pgd-card.pgd-hidden {
	display: none;
}

.pgd-card-media {
	position: relative;
	width: 100%;
	aspect-ratio: 3/4;
	min-height: 320px;
	background-color: #e7e2da;
	overflow: hidden;
}

@supports (aspect-ratio: 3/4) {
	.pgd-card-media { min-height: 0; }
}

.pgd-img,
.pgd-img-placeholder {
	position: absolute !important;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	object-position: center top;
	max-width: none !important;
}

.pgd-media-link {
	position: absolute;
	inset: 0;
	display: block;
	z-index: 1;
	cursor: pointer;
}

.pgd-img-main {
	opacity: 1;
	transition: opacity 0.5s ease, transform 0.6s ease;
}

.pgd-img-hover {
	opacity: 0;
	transition: opacity 0.5s ease, transform 0.6s ease;
	z-index: 1;
}

.pgd-card:hover .pgd-img-main {
	transform: scale(1.04);
}

.pgd-wrapper[data-hover-gallery="true"] .pgd-card:hover .pgd-img-hover {
	opacity: 1;
	transform: scale(1.04);
}

.pgd-img-placeholder {
	background: repeating-linear-gradient(45deg, #ece7de, #ece7de 10px, #e4ddd0 10px, #e4ddd0 20px);
}

.pgd-badge {
	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 5;
	background-color: #1a1a1a;
	color: #fff;
	font-size: 10px;
	letter-spacing: 1.5px;
	font-weight: 700;
	padding: 5px 10px;
}

.pgd-wishlist {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 5;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: none;
	background-color: #fff;
	color: #1a1a1a;
	cursor: pointer;
	font-size: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.25s ease, color 0.25s ease;
}

.pgd-wishlist:hover { transform: scale(1.1); }
.pgd-wishlist.active { color: #ff4d6d; }

/* Hover action buttons */
.pgd-hover-actions {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 6;
	display: flex;
	transform: translateY(100%);
	opacity: 0;
	transition: transform 0.35s ease, opacity 0.35s ease;
}

.pgd-card:hover .pgd-hover-actions {
	transform: translateY(0);
	opacity: 1;
}

.pgd-hover-btn {
	flex: 1;
	border: none;
	cursor: pointer;
	padding: 14px 10px;
	font-size: 11px;
	letter-spacing: 1.5px;
	font-weight: 700;
	text-align: center;
	text-decoration: none;
	transition: background-color 0.3s ease, color 0.3s ease;
}

.pgd-btn-quickview { background-color: #ffffff; color: #1a1a1a; }
.pgd-btn-quickview:hover { background-color: #f2ede6; }
.pgd-btn-addtobag { background-color: #1a1a1a; color: #ffffff; }
.pgd-btn-addtobag:hover { background-color: #c19a6b; color: #fff; }

/* Card info */
.pgd-card-info { padding-top: 16px; }

.pgd-brand {
	font-size: 11px;
	letter-spacing: 1.5px;
	color: #c19a6b;
	font-weight: 600;
	margin-bottom: 6px;
}

.pgd-product-title-link { text-decoration: none; }

.pgd-product-title {
	font-family: Georgia, 'Times New Roman', serif;
	font-size: 18px;
	font-style: italic;
	color: #2d3b4e;
	margin: 0 0 8px 0;
	font-weight: 400;
	transition: color 0.3s ease;
}

.pgd-price-html {
	font-size: 14px;
	color: #5a5248;
	display: flex;
	align-items: center;
	gap: 10px;
}

.pgd-price-html del { text-decoration: line-through; opacity: 0.6; font-size: 0.95em; }
.pgd-price-html ins { text-decoration: none; color: #c1443b; font-weight: 700; }

.pgd-empty-state {
	padding: 60px 20px;
	text-align: center;
	color: #9a9186;
	font-size: 14px;
	border: 1px dashed #d8d1c4;
}

/* Pagination / Load more */
.pgd-pagination-row {
	display: flex;
	justify-content: center;
	margin-top: 44px;
}

.pgd-load-more {
	background-color: transparent;
	border: 1px solid #1a1a1a;
	color: #1a1a1a;
	padding: 15px 40px;
	font-size: 12px;
	letter-spacing: 1.5px;
	font-weight: 700;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.3s ease, color 0.3s ease;
}

.pgd-load-more:hover {
	background-color: #1a1a1a;
	color: #fff;
}

.pgd-load-more.pgd-hidden {
	display: none;
}

.pgd-numbered-pagination {
	display: flex;
	align-items: center;
	gap: 10px;
}

.pgd-page-btn {
	background: transparent;
	border: 1px solid transparent;
	color: #8a8378;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	cursor: pointer;
	font-size: 13px;
	transition: color 0.3s ease, border-color 0.3s ease;
}

.pgd-page-btn:hover { color: #1a1a1a; }

.pgd-page-btn.active {
	color: #1a1a1a;
	border-color: #1a1a1a;
	font-weight: 700;
}

/* Entrance animation */
.pgd-wrapper[data-entrance="true"] .pgd-card {
	opacity: 0;
}

.pgd-wrapper[data-entrance="true"] .pgd-card.pgd-in-view {
	animation-name: pgdFadeUp;
	animation-timing-function: ease;
	animation-fill-mode: forwards;
}

@keyframes pgdFadeUp {
	from { opacity: 0; transform: translateY(30px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* Quick View popup (moved to <body> by JS, styled the same as the slider version) */
.pgd-qv-overlay {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.pgd-qv-overlay::before {
	content: "";
	position: absolute;
	inset: 0;
	background-color: #000;
	opacity: 0.65;
	z-index: 0;
}

.pgd-qv-overlay.pgd-qv-active { display: flex; }

.pgd-qv-modal {
	position: relative;
	z-index: 1;
	background: #fff;
	max-width: 860px;
	width: 100%;
	max-height: 90vh;
	overflow: auto;
	border-radius: 4px;
	transform: translateY(20px);
	opacity: 0;
	transition: transform 0.35s ease, opacity 0.35s ease;
}

.pgd-qv-overlay.pgd-qv-active .pgd-qv-modal {
	transform: translateY(0);
	opacity: 1;
}

.pgd-qv-close {
	position: absolute;
	top: 14px;
	right: 14px;
	background: transparent;
	border: none;
	font-size: 18px;
	cursor: pointer;
	color: #1a1a1a;
	z-index: 2;
	width: 32px;
	height: 32px;
}

.pgd-qv-body {
	display: grid;
	grid-template-columns: 1fr 1fr;
}

.pgd-qv-image-col {
	background-color: #e7e2da;
	min-height: 380px;
	position: relative;
}

.pgd-qv-image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.pgd-qv-info-col {
	padding: 44px 40px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.pgd-qv-brand {
	font-size: 11px;
	letter-spacing: 1.5px;
	color: #c19a6b;
	font-weight: 600;
	margin-bottom: 10px;
}

.pgd-qv-title {
	font-family: Georgia, serif;
	font-style: italic;
	font-size: 26px;
	margin: 0 0 14px 0;
	color: #1a1a1a;
}

.pgd-qv-price-html {
	display: flex;
	gap: 10px;
	margin-bottom: 18px;
	font-size: 18px;
	color: #1a1a1a;
}

.pgd-qv-price-html ins { color: #c1443b; font-weight: 700; text-decoration: none; }
.pgd-qv-price-html del { opacity: 0.6; }

.pgd-qv-desc {
	font-size: 14px;
	line-height: 1.7;
	color: #6b6459;
	margin-bottom: 26px;
}

.pgd-qv-fulllink {
	display: inline-block;
	align-self: flex-start;
	padding: 14px 28px;
	background-color: #1a1a1a;
	color: #fff;
	text-decoration: none;
	font-size: 12px;
	letter-spacing: 1.5px;
	font-weight: 700;
	transition: background-color 0.3s ease;
}

.pgd-qv-fulllink:hover { background-color: #c19a6b; }

/* Responsive */
@media (max-width: 991px) {
	.pgd-wrapper { --pgd-cols: 2; }
	.pgd-qv-body { grid-template-columns: 1fr; }
	.pgd-qv-image-col { min-height: 260px; }
}

@media (max-width: 600px) {
	.pgd-wrapper { --pgd-cols: 1; }
	.pgd-title { font-size: 24px; }
	.pgd-qv-info-col { padding: 28px 24px; }
	.pgd-filter-tabs { gap: 16px; }
}
