/* === Product Card Grid Widget === */
.pcg-grid {
	display: grid;
	gap: 20px;
}

.pcg-col-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pcg-col-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pcg-col-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pcg-col-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.pcg-col-2 .pcg-image { aspect-ratio: 3 / 4; }
.pcg-col-2 .pcg-image img { height: 100%; object-fit: cover; }

.pcg-col-4 .pcg-image { aspect-ratio: 1 / 1; }
.pcg-col-4 .pcg-image img { height: 100%; object-fit: cover; }

/* === Card === */
.pcg-card {
	background-color: #fff;
	display: flex;
	flex-direction: column;
}

/* === Skeleton Loading === */
@keyframes pcg-shimmer {
	0%   { background-position: -200% 0; }
	100% { background-position: 200% 0; }
}

.pcg-skeleton {
	background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 37%, #f0f0f0 63%) !important;
	background-size: 200% 100% !important;
	animation: pcg-shimmer 1.5s ease infinite !important;
}

.pcg-skeleton img {
	opacity: 0;
	transition: opacity 0.3s ease;
}

.pcg-image:not(.pcg-skeleton) img {
	opacity: 1;
}

/* === Image === */
.pcg-image {
	position: relative;
	overflow: hidden;
	background-color: #f0f0f0;
	flex-shrink: 0;
}

.pcg-image a {
	display: block;
	width: 100%;
}

.pcg-image img {
	display: block;
	width: 100%;
	height: auto;
	transition: transform 0.4s ease;
}

/* === Info === */
.pcg-info {
	padding: 15px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

/* === Title === */
.pcg-title {
	font-size: 15px;
	font-weight: 400;
	line-height: 1.4;
	margin: 0 0 8px 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
}

.pcg-title a {
	color: #333;
	text-decoration: none;
	transition: color 0.2s;
}

.pcg-title a:hover {
	color: #5A3F00;
}

/* === Price === */
.pcg-price {
	font-size: 16px;
	font-weight: 700;
	color: #333;
	margin-bottom: 12px;
	margin-top: auto;
}

.pcg-price del {
	color: #999;
	font-weight: 400;
	margin-right: 6px;
}

.pcg-price ins {
	text-decoration: none;
}

/* === Quantity Selector === */
.pcg-grid .pcg-qty-wrap {
	display: inline-flex !important;
	align-items: center !important;
	border: 1px solid #dcdcdc;
	border-radius: 0 !important;
	overflow: hidden !important;
	margin-bottom: 14px !important;
	align-self: flex-start !important;
	background: #fff !important;
	padding: 0 !important;
}

.pcg-grid .pcg-qty-wrap .pcg-qty-btn {
	flex: 1 !important;
	height: 38px;
	background: transparent !important;
	color: #666 !important;
	cursor: pointer !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	transition: background-color 0.2s, color 0.2s !important;
	padding: 0 !important;
	margin: 0 !important;
	line-height: 1 !important;
	user-select: none !important;
	border: none !important;
	box-shadow: none !important;
	min-width: 0 !important;
}

.pcg-grid .pcg-qty-wrap .pcg-qty-btn:hover {
	background-color: #f5f5f5 !important;
	color: #333 !important;
}

.pcg-grid .pcg-qty-wrap .pcg-qty-input {
	flex: 1 !important;
	width: 0 !important;
	height: 38px;
	text-align: center !important;
	border: none !important;
	color: #333 !important;
	background: transparent !important;
	padding: 0 !important;
	margin: 0 !important;
	-moz-appearance: textfield !important;
	appearance: textfield !important;
	outline: none !important;
	box-shadow: none !important;
	border-radius: 0 !important;
	min-width: 0 !important;
	max-width: none !important;
}

.pcg-grid .pcg-qty-wrap .pcg-qty-input::-webkit-outer-spin-button,
.pcg-grid .pcg-qty-wrap .pcg-qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none !important;
	margin: 0 !important;
}


/* === Add to Cart Button === */
.pcg-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 11px 0;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.3px;
	color: #333;
	background-color: #f3f3f3;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s, color 0.2s, border-color 0.2s;
	width: 100%;
	box-sizing: border-box;
}

.pcg-btn:hover {
	background-color: #e8e8e8;
	border-color: #ccc;
	color: #222;
}

.pcg-btn i,
.pcg-btn svg {
	display: block;
	flex-shrink: 0;
}

/* === Pagination === */
nav.pcg-pagination {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 6px !important;
	margin: 32px 0 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

nav.pcg-pagination .pcg-page-num {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	min-width: 40px !important;
	height: 40px !important;
	padding: 0 12px !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	line-height: 1 !important;
	color: #5A3F00 !important;
	background-color: transparent !important;
	border: 1px solid #e0e0e0 !important;
	border-radius: 4px !important;
	text-decoration: none !important;
	transition: background-color 0.2s, color 0.2s, border-color 0.2s !important;
	cursor: pointer !important;
	box-sizing: border-box !important;
}

nav.pcg-pagination .pcg-page-num:hover {
	background-color: #5A3F00 !important;
	color: #fff !important;
	border-color: #5A3F00 !important;
}

nav.pcg-pagination .pcg-page-num.pcg-page-current {
	background-color: #5A3F00 !important;
	color: #fff !important;
	border-color: #5A3F00 !important;
	cursor: default !important;
}

nav.pcg-pagination .pcg-page-arrow {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 40px !important;
	height: 40px !important;
	padding: 0 !important;
	color: #5A3F00 !important;
	background-color: transparent !important;
	border: 1px solid #e0e0e0 !important;
	border-radius: 4px !important;
	text-decoration: none !important;
	transition: background-color 0.2s, color 0.2s, border-color 0.2s !important;
	cursor: pointer !important;
	box-sizing: border-box !important;
}

nav.pcg-pagination .pcg-page-arrow svg {
	display: block !important;
	width: 18px !important;
	height: 18px !important;
	stroke: currentColor !important;
	fill: none !important;
}

nav.pcg-pagination .pcg-page-arrow:hover {
	background-color: #5A3F00 !important;
	color: #fff !important;
	border-color: #5A3F00 !important;
}

nav.pcg-pagination .pcg-page-arrow.pcg-page-disabled {
	color: #ccc !important;
	background-color: transparent !important;
	border-color: #e0e0e0 !important;
	cursor: default !important;
	pointer-events: none !important;
}

/* === Responsive === */
@media (max-width: 992px) {
	.pcg-col-4,
	.pcg-col-5 {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 767px) {
	.pcg-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}

	nav.pcg-pagination .pcg-page-num,
	nav.pcg-pagination .pcg-page-arrow {
		min-width: 34px !important;
		height: 34px !important;
		font-size: 13px !important;
	}
}

/* === Wishlist Page === */
.hbc-wl-page {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 40px 20px;
	box-sizing: border-box;
}

.hbc-wl-page .pcg-grid {
	display: grid !important;
	gap: 20px !important;
}

.hbc-wl-page .pcg-col-4 {
	grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.hbc-wl-page .pcg-card {
	background-color: #fff;
	display: flex;
	flex-direction: column;
}

.hbc-wl-page .pcg-image {
	position: relative;
	overflow: hidden;
	background-color: #f0f0f0;
}

.hbc-wl-page .pcg-image img {
	width: 100%;
	height: auto;
	display: block;
}

.hbc-wl-page .pcg-info {
	padding: 14px 0 0;
	display: flex;
	flex-direction: column;
}

.hbc-wl-page .pcg-title {
	font-size: 14px;
	font-weight: 400;
	margin: 0 0 6px;
	line-height: 1.4;
	overflow: hidden;
	text-overflow: ellipsis;
}

.hbc-wl-page .pcg-title a {
	color: #333;
	text-decoration: none;
}

.hbc-wl-page .pcg-price {
	font-size: 16px;
	font-weight: 700;
	color: #333;
	margin-bottom: 12px;
}

.hbc-wl-page .pcg-qty-wrap {
	display: inline-flex !important;
	align-items: center !important;
	border: 1px solid #dcdcdc;
	overflow: hidden !important;
	margin-bottom: 14px !important;
	align-self: flex-start !important;
	background: #fff !important;
	padding: 0 !important;
	border-radius: 0 !important;
}

.hbc-wl-page .pcg-qty-btn {
	width: 34px;
	height: 38px;
	background: transparent !important;
	color: #666 !important;
	cursor: pointer;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	user-select: none;
	border: none !important;
	font-size: 16px;
	line-height: 1;
}

.hbc-wl-page .pcg-qty-input {
	width: 36px !important;
	height: 38px;
	text-align: center !important;
	border: none !important;
	border-left: 1px solid #dcdcdc;
	border-right: 1px solid #dcdcdc;
	color: #333 !important;
	background: transparent !important;
	padding: 0 !important;
	margin: 0 !important;
	-moz-appearance: textfield !important;
	appearance: textfield !important;
	outline: none !important;
	font-size: 14px;
}

.hbc-wl-page .pcg-qty-input::-webkit-outer-spin-button,
.hbc-wl-page .pcg-qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none !important;
	margin: 0 !important;
}

.hbc-wl-page .pcg-btn {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 8px;
	padding: 11px 0;
	font-size: 13px;
	font-weight: 500;
	color: #333;
	background-color: #f3f3f3;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	text-decoration: none;
	cursor: pointer;
	width: 100%;
	box-sizing: border-box;
	transition: background-color 0.2s;
}

.hbc-wl-page .pcg-btn:hover {
	background-color: #e8e8e8;
	border-color: #ccc;
}

.hbc-wl-page .pcg-btn svg {
	display: block;
	flex-shrink: 0;
}

@media (max-width: 992px) {
	.hbc-wl-page .pcg-col-4 {
		grid-template-columns: repeat(3, 1fr) !important;
	}
}

@media (max-width: 767px) {
	.hbc-wl-page .pcg-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}

/* === Wishlist Page Remove Button === */
.hbc-wl-card .pcg-image {
	position: relative;
}

.hbc-wl-remove {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 26px;
	height: 26px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.5);
	color: #fff;
	border-radius: 50%;
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
	z-index: 3;
	transition: background 0.2s;
	user-select: none;
}

.hbc-wl-remove:hover {
	background: rgba(0, 0, 0, 0.8);
}

.hbc-wl-empty,
.hbc-wl-login {
	text-align: center;
	padding: 40px 20px;
	color: #999;
	font-size: 16px;
}
