/* ===== Products Grid (pg-*) ===== */

.pg-grid {
	box-sizing: border-box;
	display: grid;
	grid-template-columns: repeat(1, minmax(0, 1fr));
	gap: 32px;
	margin: 0 auto;
}

/* брейки под макет: 1 → 2 → 3 колонки */
@media (min-width: 680px) {
	.pg-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (min-width: 1024px) {
	.pg-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* Карточка */
.pg-card {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	background: #ffffff;
	border: 1px solid #d0d5dd;
	width: 100%;
	max-width: 368px; /* визуально будет как в фигме */
	margin-inline: auto; /* выровняет внутри авто-колонки */
}

/* Картинка 368x368 */
.pg-card__image {
	width: 100%;
	aspect-ratio: 1 / 1;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}
.pg-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Контент */
.pg-card__body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 24px 16px;
}

/* Заголовок (18/28 из фигмы, флюидно) */
.pg-card__title {
	margin: 0;
	text-align: center;
	color: #1e1e1e;
	font-weight: 600;
	font-size: clamp(16px, 1.6vw, 18px) !important;
	line-height: clamp(24px, 2.1vw, 28px) !important;
}

/* Цена */
.pg-card__price {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
}

/* Старая цена (скрыта по макету, включишь при необходимости) */
.pg-card__price-old {
	display: inline-block;
	color: #1e1e1e;
	text-decoration: line-through;
	text-align: center;
	font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
	font-weight: 400;
	font-size: clamp(15px, 1.5vw, 16px);
	line-height: clamp(22px, 2vw, 24px);
}

/* Текущая цена */
.pg-card__price-now {
	display: inline-block;
	color: #1e1e1e;
	text-align: center;
	font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
	font-weight: 400;
	font-size: clamp(15px, 1.5vw, 16px);
	line-height: clamp(22px, 2vw, 24px);
}
