/* =========================================
   CEPW — Product Grid & Card Styles
   ========================================= */

/* Grid Container */
.cpg-grid {
	display: grid;
	grid-template-columns: repeat(var(--cpg-cols-desktop, 3), 1fr);
	gap: 24px;
	width: 100%;
}

@media (max-width: 1024px) {
	.cpg-grid {
		grid-template-columns: repeat(var(--cpg-cols-tablet, 2), 1fr);
	}
}

@media (max-width: 767px) {
	.cpg-grid {
		grid-template-columns: repeat(var(--cpg-cols-mobile, 1), 1fr);
		gap: 16px;
	}
}

/* ─── Card ─── */
.cpg-card {
	background-color: #ffffff;
	border-radius: 12px;
	box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 0;
	cursor: pointer;
	transition: box-shadow 0.25s ease, transform 0.2s ease;
	overflow: hidden;
}

.cpg-card:hover {
	box-shadow: 0 6px 28px rgba(0, 0, 0, 0.14);
	transform: translateY(-2px);
}

/* ─── Image Wrap ─── */
.cpg-card__image-wrap {
	background: #f5f5f7;
	border-radius: 8px;
	aspect-ratio: 1 / 1;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	margin-bottom: 16px;
}

.cpg-card__image {
	max-width: 75%;
	max-height: 75%;
	width: auto;
	height: auto;
	object-fit: contain;
	transition: transform 0.3s ease;
}

.cpg-card:hover .cpg-card__image {
	transform: scale(1.04);
}

/* ─── Body ─── */
.cpg-card__body {
	flex: 1;
	margin-bottom: 16px;
}

.cpg-card__title {
	font-size: 15px !important;
	font-weight: 600 !important;
	color: #1a1a1a !important;
	line-height: 1.45 !important;
	margin: 0 0 6px 0 !important;
}

.cpg-card__sku {
	font-size: 13px;
	color: #888;
	margin: 0;
	line-height: 1.4;
}

/* ─── Footer / Button ─── */
.cpg-card__footer {
	margin-top: auto;
}

.cpg-card__btn {
	display: block;
	width: 100%;
	background-color: #1a1a1a;
	color: #ffffff;
	border: none;
	border-radius: 30px;
	padding: 13px 20px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	text-align: center;
	cursor: pointer;
	text-decoration: none;
	transition: background-color 0.2s ease, transform 0.15s ease;
	box-sizing: border-box;
	letter-spacing: 0.3px;
}

.cpg-card__btn:hover {
	background-color: #333333;
	color: #ffffff;
	text-decoration: none;
	transform: scale(1.01);
}

.cpg-card__btn:active {
	transform: scale(0.99);
}

/* Added to cart state */
.cpg-card__btn.added {
	background-color: #2ecc71;
}

.cpg-card__btn.loading {
	opacity: 0.7;
	pointer-events: none;
}

/* No products message */
.cpg-no-products {
	color: #888;
	font-style: italic;
	grid-column: 1 / -1;
	text-align: center;
	padding: 40px 0;
}

