/* ───── Product Grid ───── */
.cpg-grid {
	display: grid;
	grid-template-columns: repeat(var(--cpg-cols, 4), 1fr);
	gap: 30px;
}

/* ───── Item ───── */
.cpg-item__link {
	display: block;
	text-decoration: none;
	color: inherit;
}

.cpg-item__link:hover,
.cpg-item__link:focus {
	color: inherit;
	text-decoration: none;
}

/* ───── Image Container ───── */
.cpg-item__image {
	position: relative;
	overflow: hidden;
	background-color: #f5f0eb;
}

.cpg-ratio--1-1    { aspect-ratio: 1 / 1; }
.cpg-ratio--3-4    { aspect-ratio: 3 / 4; }
.cpg-ratio--4-3    { aspect-ratio: 4 / 3; }
.cpg-ratio--16-9   { aspect-ratio: 16 / 9; }
.cpg-ratio--9-16   { aspect-ratio: 9 / 16; }
.cpg-ratio--custom { height: 300px; }
.cpg-ratio--auto   { aspect-ratio: auto; }

.cpg-item__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: opacity .4s ease;
}

.cpg-item__img--main {
	position: relative;
	z-index: 1;
}

.cpg-item__img--hover {
	position: absolute;
	inset: 0;
	z-index: 0;
	opacity: 0;
}

.cpg-item:hover .cpg-item__img--main {
	opacity: 0;
}
.cpg-item:hover .cpg-item__img--hover {
	opacity: 1;
	z-index: 2;
}

/* ───── Info ───── */
.cpg-item__info {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	padding: 14px 0 0;
	gap: 12px;
}

.cpg-item__title {
	margin: 0;
	font-size: 11px;
	font-weight: 400;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	line-height: 1.4;
	color: #222;
	flex: 1;
	min-width: 0;
}

.cpg-item__price {
	font-size: 12px;
	font-weight: 400;
	letter-spacing: 0.5px;
	color: #222;
	white-space: nowrap;
	flex-shrink: 0;
}

.cpg-item__price del {
	opacity: .45;
	margin-right: 6px;
}

.cpg-item__price ins {
	text-decoration: none;
}

/* ───── Pagination ───── */
.cpg-pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 6px;
	margin-top: 50px;
	flex-wrap: wrap;
}

.cpg-pagination a,
.cpg-pagination span {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	min-width: 40px;
	height: 40px;
	padding: 0 10px;
	font-size: 14px;
	line-height: 1;
	text-decoration: none;
	border: 1px solid #ddd;
	color: #222;
	transition: all .25s ease;
}

.cpg-pagination a:hover {
	background-color: #222;
	border-color: #222;
	color: #fff;
}

.cpg-pagination .current {
	background-color: #222;
	border-color: #222;
	color: #fff;
}

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

@media (max-width: 767px) {
	.cpg-grid {
		grid-template-columns: repeat(var(--cpg-cols-mobile, 2), 1fr);
		gap: 15px;
	}
	.cpg-item__info {
		padding-top: 10px;
	}
	.cpg-item__title {
		font-size: 10px;
		letter-spacing: 1px;
	}
	.cpg-item__price {
		font-size: 11px;
	}
	.cpg-pagination {
		margin-top: 30px;
	}
}
