/* Khối Dịch vụ – cards: thẻ biểu tượng, giá hoặc "Liên hệ", nút hỏi Zalo / đặt kèm (A4). Mobile trước, mốc 640px / 1024px. */

.vh-xp-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--vh-card-gap);
	margin: 0;
	padding: 0;
	list-style: none;
}

.vh-xp {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	min-width: 0;
	padding: var(--vh-card-pad);
	border: 1px solid var(--vh-color-border);
	border-radius: var(--vh-radius-card);
	background: var(--vh-color-card);
	color: var(--vh-color-text);
	box-shadow: var(--vh-shadow-card);
}

.vh-xp__top {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	min-width: 0;
}

/* Vòng tròn 48px nền surface, biểu tượng cam gạch như các khối khác của mẫu. */
.vh-xp__icon {
	flex: none;
	display: inline-grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--vh-color-surface);
	color: var(--vh-color-primary);
}

.vh-xp__head {
	display: grid;
	gap: 0.125rem;
	min-width: 0;
}

.vh-xp__name {
	margin: 0;
	overflow-wrap: anywhere;
}

.vh-xp__price {
	margin: 0;
	color: var(--vh-color-text);
	font-weight: var(--vh-fw-bold);
	font-variant-numeric: tabular-nums;
}

.vh-xp__price--ask {
	color: var(--vh-color-muted);
	font-weight: var(--vh-fw-medium);
}

.vh-xp__note {
	margin: 0;
	color: var(--vh-color-muted);
	font-size: var(--vh-fs-small);
	line-height: 1.45;
}

/* Nút dồn đáy để các thẻ cùng hàng thẳng nhau. */
.vh-xp__cta {
	gap: 0.375rem;
	align-self: stretch;
	min-height: var(--vh-btn-h-mobile);
	margin-top: auto;
}

.vh-xp__cta .vh-i {
	flex: none;
}

.vh-xp-hint {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	margin: 1rem 0 0;
	color: var(--vh-color-muted);
	font-size: var(--vh-fs-small);
	line-height: 1.45;
}

.vh-xp-hint .vh-i {
	flex: none;
}

@media (min-width: 640px) {
	.vh-xp-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.vh-xp-grid--n1 {
		grid-template-columns: minmax(0, 560px);
	}

	/* Số thẻ lẻ trên 2 cột: thẻ cuối nằm giữa cho cân. */
	.vh-xp-grid--n3 > .vh-xp:last-child,
	.vh-xp-grid--n5 > .vh-xp:last-child {
		grid-column: 1 / -1;
		justify-self: center;
		width: calc((100% - var(--vh-card-gap)) / 2);
	}
}

@media (min-width: 1024px) {
	.vh-xp-grid--n3,
	.vh-xp-grid--n5,
	.vh-xp-grid--n6 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.vh-xp-grid--n4 {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.vh-xp-grid--n3 > .vh-xp:last-child,
	.vh-xp-grid--n5 > .vh-xp:last-child {
		grid-column: auto;
		justify-self: stretch;
		width: auto;
	}

	.vh-xp__cta {
		min-height: var(--vh-btn-h);
	}
}
