/* =========================================================
   NQT MUAMOD – PURCHASED CONTENT UI
   Chuẩn màu NQT – Responsive – Không xung đột theme
========================================================= */

/* ======================
   DANH SÁCH SẢN PHẨM
====================== */
.nqt-muamod .downloads-grid {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

/* ======================
   ITEM
====================== */
.nqt-muamod .download-item {
	display: grid;
	grid-template-columns: 110px minmax(0, 1fr) auto;
	gap: 14px;
	align-items: center;
	background: var(--nqt-color-light);
	border: 1px solid var(--nqt-box-border);
	border-radius: 10px;
	padding: 12px 14px;
}

/* ======================
   THUMBNAIL (16:9)
====================== */
.nqt-muamod .download-thumb {
	width: 110px;
	flex-shrink: 0;
}

.nqt-muamod .download-thumb img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: 6px;
	display: block;
	background: var(--nqt-box-bg);
}

/* ======================
   INFO
====================== */
.nqt-muamod .download-info {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

/* TÊN SẢN PHẨM – ƯU TIÊN */
.nqt-muamod .download-info a {
	color: var(--nqt-color-dark);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.35;
	text-decoration: none;

	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	word-break: break-word;
}

.nqt-muamod .download-info a:hover {
	color: var(--nqt-color-primary);
}

/* LABEL BIẾN THỂ (NẾU CÓ) */
.nqt-muamod .nqt-variation {
	font-size: 12px;
	color: var(--nqt-color-medium);
	line-height: 1.3;
}

/* ======================
   NÚT XEM CHI TIẾT
====================== */
.nqt-muamod .nqt-view {
	background: var(--nqt-color-primary);
	color: var(--nqt-color-full-light);
	border-radius: 5px;
	padding: 8px 14px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	transition: background .2s ease;
}

.nqt-muamod .nqt-view:hover {
	background: var(--nqt-color-primary-hover);
	color: var(--nqt-color-full-light);
}

/* ======================
   TRANG CHI TIẾT
====================== */
.nqt-muamod .nqt-back {
	display: inline-block;
	margin-bottom: 12px;
	padding: 6px 12px;
	border-radius: 5px;
	border: 1px solid var(--nqt-box-border);
	color: var(--nqt-color-light);
	background: var(--nqt-color-dark);
	text-decoration: none;
	font-size: 14px;
}

.nqt-muamod .nqt-back:hover {
	color: var(--nqt-color-full-light);
	background: var(--nqt-color-primary);
}

/* TIÊU ĐỀ TRANG CHI TIẾT */
.nqt-muamod .nqt-title {
	margin: 0 0 10px 0;
	font-size: 30px;
	font-weight: 700;
	color: var(--nqt-color-primary);
	text-transform: uppercase;
}

/* ======================
   BOX PHỤ (HỖ TRỢ / THÔNG TIN)
====================== */
.nqt-muamod .nqt-support {
	margin: 16px 0;
	padding: 14px;
	text-align: center;

	background: var(--nqt-box-bg);
	border: 1px solid var(--nqt-box-border);
	border-radius: 5px;

	color: var(--nqt-color-dark);
	font-size: 14px;
}

.nqt-muamod .nqt-support a {
	color: var(--nqt-color-primary);
	font-weight: 600;
	text-decoration: none;
}

.nqt-muamod .nqt-support a:hover {
	color: var(--nqt-color-primary-hover);
}

/* ======================
   MOBILE
====================== */
@media (max-width: 768px) {

	.nqt-muamod .download-item {
		grid-template-columns: 1fr;
		text-align: center;
		padding: 12px;
	}

	.nqt-muamod .download-thumb {
		width: 100%;
		max-width: 420px;
		margin: 0 auto;
	}

	.nqt-muamod .download-info a {
		font-size: 15px;
		-webkit-line-clamp: unset;
	}

	.nqt-muamod .nqt-view {
		width: 100%;
		text-align: center;
		margin-top: 6px;
	}
}
