/* CNP Trang chủ – Bảng màu chuẩn CNP (biến --cnp-*), chế độ tối khi bật ở CNP Hiển thị (thân trang có lớp cnp-toi). */
.cnptc-khoi {
	--cnp-than: #1f2e35; --cnp-chu: #2b2b2b; --cnp-mo: #6e6a62; --cnp-nen: #fff; --cnp-kem: #f7f4eb; --cnp-be: #efe7d6; --cnp-vien: #e5dccb;
	--cnp-vang: #c89434; --cnp-vang-dam: #8c6418; --cnp-vang-nhat: #f6ecd3; --cnp-xanh: #307468; --cnp-gach: #b4482c; --cnp-gach-nhat: #f8e4dc;
	--tc-anh: linear-gradient(135deg, #e3d8c2, #c9b896);
	margin: 0 0 32px; color: var(--cnp-chu); font-size: 15px; line-height: 1.5;
}
@media (prefers-color-scheme: dark) {
	body.cnp-toi .cnptc-khoi {
		--cnp-than: #0f1518; --cnp-chu: #efe9dc; --cnp-mo: #b3aa98; --cnp-nen: #26231d; --cnp-kem: #1e1b16; --cnp-be: #2c2820; --cnp-vien: #3d372c;
		--cnp-vang: #e0b84a; --cnp-vang-dam: #e0b84a; --cnp-vang-nhat: #3b3220; --cnp-xanh: #4fa596; --cnp-gach: #e07a5c; --cnp-gach-nhat: #3a2620;
		--tc-anh: linear-gradient(135deg, #4a4335, #362f24);
	}
}
.cnptc-khoi *, .cnptc-khoi *::before, .cnptc-khoi *::after { box-sizing: border-box; }
.cnptc-khoi h2, .cnptc-khoi button, .cnptc-khoi a { text-transform: none; letter-spacing: normal; }
.cnptc-khoi button { margin: 0; box-shadow: none; font-family: inherit; min-height: 0; line-height: 1; padding: 0; }
.cnptc-khoi p { margin: 0; }

.cnptc-dau { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; margin-bottom: 12px; }
.cnptc-dau h2 { margin: 0; font-size: 22px; font-weight: 800; color: var(--cnp-chu); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cnptc-dau p { color: var(--cnp-mo); font-size: 13.5px; margin-top: 2px; }
.cnptc-noi-bo { font-size: 11px; font-weight: 700; background: var(--cnp-than); color: #fff; border-radius: 99px; padding: 2px 9px; }
.cnptc-phai { display: flex; align-items: center; gap: 8px; }
.cnptc-xem { color: var(--cnp-vang-dam) !important; font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap; }
.cnptc-mui { width: 36px; height: 36px; border-radius: 50% !important; border: 1px solid var(--cnp-vien) !important; background: var(--cnp-nen) !important; color: var(--cnp-chu) !important; cursor: pointer; font-size: 18px !important; }

.cnptc-hang { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 4 * 14px) / 5); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 2px 2px 6px; }
.cnptc-hang::-webkit-scrollbar { display: none; }

.cnptc-the { scroll-snap-align: start; background: var(--cnp-nen); border: 1px solid var(--cnp-vien); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; min-width: 0; position: relative; }
.cnptc-anh { display: block; aspect-ratio: 4 / 3; background: var(--tc-anh); }
.cnptc-anh img { width: 100%; height: 100%; object-fit: cover; display: block; margin: 0; }
.cnptc-the.da-ban .cnptc-anh { filter: grayscale(.7) brightness(.92); }
.cnptc-chip-tren { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; }
.cnptc-chip { font-size: 11.5px; font-weight: 700; border-radius: 99px; padding: 2px 9px; background: rgba(255,255,255,.94); color: #1f2e35; }
.cnptc-chip.so { background: var(--cnp-vang); min-width: 26px; text-align: center; }
.cnptc-chip.giam { background: var(--cnp-gach); color: #fff; }
.cnptc-chip.ban { background: #1f2e35; color: #fff; }
.cnptc-tim { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; border-radius: 50% !important; border: 0 !important; background: rgba(255,255,255,.94) !important; color: #1f2e35 !important; cursor: pointer; font-size: 17px !important; }
.cnptc-tim[aria-pressed="true"] { color: #b4482c !important; }
.cnptc-than { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.cnptc-ma { font-size: 11.5px; color: var(--cnp-mo); }
.cnptc-ten { font-weight: 700; font-size: 14.5px; line-height: 1.35; color: var(--cnp-chu) !important; text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.cnptc-dc { font-size: 12.5px; color: var(--cnp-mo); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cnptc-gia-dong { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.cnptc-gia { font-size: 18px; font-weight: 800; color: var(--cnp-vang-dam); }
.cnptc-gia.mo { color: var(--cnp-mo); }
.cnptc-gia-cu { font-size: 12.5px; color: var(--cnp-mo); text-decoration: line-through; }
.cnptc-m2 { font-size: 12.5px; color: var(--cnp-mo); }
.cnptc-so-lieu { display: flex; gap: 2px 10px; flex-wrap: wrap; font-size: 12.5px; }
.cnptc-so-lieu span { white-space: nowrap; }
.cnptc-giam { color: var(--cnp-gach); font-weight: 700; font-size: 12.5px; }
.cnptc-loi span { display: inline-block; font-size: 11.5px; font-weight: 700; border-radius: 6px; padding: 1px 7px; background: var(--cnp-gach-nhat); color: var(--cnp-gach); margin: 2px 4px 0 0; }
.cnptc-noi { font-size: 12px; color: var(--cnp-mo); background: var(--cnp-kem); border-radius: 8px; padding: 6px 8px; margin-top: 4px !important; }
.cnptc-noi b { color: var(--cnp-chu); }
.cnptc-chan { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-top: auto; padding-top: 8px; border-top: 1px dashed var(--cnp-vien); font-size: 12.5px; }
.cnptc-nhan { font-weight: 700; color: var(--cnp-xanh); }
.cnptc-nhan.tam { color: var(--cnp-vang-dam); }

@media (max-width: 760px) {
	.cnptc-dau h2 { font-size: 19px; }
	.cnptc-mui { display: none; }
	.cnptc-hang { grid-auto-columns: 78%; gap: 12px; }
}
@media (min-width: 761px) and (max-width: 1100px) {
	.cnptc-hang { grid-auto-columns: calc((100% - 2 * 14px) / 3); }
}
