/*
 * Site Databoard - kieu dang trang bai. Chi nap o trang bai viet.
 *
 * Trat tu tren xuong: tieu de, BANG DOI CHIEU, khoi so lieu san pham, muc
 * luc, roi den cac khoi than bai dong mo duoc. Bang doi chieu len truoc ca
 * anh san pham la co y - do la cau tra loi, khong phai do trang tri.
 */

.db-art {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--r);
	padding: 26px 24px 30px;
	margin-top: 14px;
}

.db-art__k {
	margin: 0 0 8px; font-size: 11px; font-weight: 700;
	letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent);
}
.db-art__k a { text-decoration: none; }
.db-art__k a:hover { text-decoration: underline; }

.db-art__h {
	font-size: clamp(23px, 3.6vw, 34px);
	font-weight: 800; letter-spacing: -0.022em;
}

.db-art__m {
	display: flex; flex-wrap: wrap; gap: 4px 18px;
	margin: 12px 0 0; color: var(--muted); font-size: 11.5px;
}
.db-art__asin { letter-spacing: 0.04em; }

/* ---------------------------------------------------------------- */
/* Bang doi chieu - nuoc di rieng                                    */
/* ---------------------------------------------------------------- */

.db-cmp {
	margin: 22px 0 0;
	border: 1px solid var(--ink);
	border-radius: var(--r);
	overflow: hidden;
}
.db-cmp__h {
	margin: 0; padding: 12px 16px; font-size: 13px; font-weight: 700;
	letter-spacing: 0.01em; background: var(--ink); color: #fff;
}
.db-cmp__t { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.db-cmp__t thead th {
	text-align: left; font-family: var(--f-d); font-weight: 600; font-size: 10.5px;
	letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted);
	padding: 8px 16px; background: var(--shade); border-bottom: 1px solid var(--line);
	white-space: nowrap;
}
.db-cmp__t tbody th {
	text-align: left; font-weight: 700; font-family: var(--f-b);
	padding: 12px 16px; vertical-align: top; width: 26%;
}
.db-cmp__t tbody td { padding: 12px 16px; vertical-align: top; }
.db-cmp__r + .db-cmp__r th,
.db-cmp__r + .db-cmp__r td { border-top: 1px solid var(--line-soft); }

.db-cmp__note { display: block; margin-top: 3px; font-weight: 400; color: var(--muted); font-size: 10.5px; line-height: 1.45; }
.db-cmp__v { font-weight: 700; font-size: 16px; white-space: nowrap; }
.db-cmp__m { color: var(--muted); white-space: nowrap; }
.db-cmp__m .db-n { display: block; }
.db-cmp__b { width: 34%; min-width: 150px; }
.db-cmp__d { display: block; margin-top: 6px; color: var(--muted); font-size: 10.5px; }

.db-bar {
	position: relative; display: block; height: 10px; width: 100%;
	background: var(--track); border-radius: 2px; overflow: hidden;
}
.db-bar__fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--accent); }
.db-bar__mark { position: absolute; top: -3px; width: 2px; height: 16px; background: var(--ink); margin-left: -1px; }

.db-cmp__foot {
	margin: 0; padding: 11px 16px; border-top: 1px solid var(--line);
	background: var(--shade); color: var(--muted); font-size: 10.5px; line-height: 1.6;
}

/* ---------------------------------------------------------------- */
/* Khoi so lieu san pham                                             */
/* ---------------------------------------------------------------- */

.db-hero {
	display: grid; gap: 20px; align-items: start;
	grid-template-columns: 210px 1fr;
	margin: 24px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line-soft);
}
.db-hero__img img {
	width: 100%; max-height: 220px; object-fit: contain;
	background: #fff; border: 1px solid var(--line-soft); border-radius: var(--r); padding: 10px;
}
.db-hero__d { display: grid; gap: 1px; margin: 0; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: var(--r); overflow: hidden; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.db-hero__d > div { background: var(--surface); padding: 10px 12px; }
.db-hero__d dt { color: var(--muted); font-size: 10.5px; letter-spacing: 0.05em; text-transform: uppercase; }
.db-hero__d dd { margin: 3px 0 0; font-weight: 700; font-size: 15px; }
.db-hero__n { display: block; font-weight: 400; color: var(--muted); font-size: 10.5px; line-height: 1.4; }
.db-hero__cta { grid-column: 2; margin: 0; }

.db-buy {
	display: inline-block; text-decoration: none; font-weight: 700; font-size: 12px;
	padding: 9px 16px; border-radius: var(--r);
	background: var(--accent); color: #fff; border: 1px solid var(--accent);
}
.db-buy:hover { background: #0b5f54; border-color: #0b5f54; }
.db-buy--big { font-size: 13px; padding: 11px 20px; }
.db-buyline { margin: 1.2em 0; }

/* ---------------------------------------------------------------- */
/* Muc luc                                                           */
/* ---------------------------------------------------------------- */

.db-toc {
	margin: 26px 0 0; padding: 14px 16px;
	background: var(--shade); border: 1px solid var(--line-soft); border-radius: var(--r);
}
.db-toc__t { margin: 0 0 8px; font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.db-toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; column-width: 260px; column-gap: 26px; }
.db-toc li { counter-increment: toc; font-size: 12px; margin-bottom: 4px; break-inside: avoid; }
.db-toc li::before { content: counter(toc, decimal-leading-zero) " "; color: var(--muted); }
.db-toc a { text-decoration: none; }
.db-toc a:hover { color: var(--accent); text-decoration: underline; }
.db-toc__n { margin: 9px 0 0; color: var(--muted); font-size: 10.5px; }

/* ---------------------------------------------------------------- */
/* Than bai: moi muc mot khoi dong mo duoc                           */
/* ---------------------------------------------------------------- */

.db-prose { margin-top: 26px; counter-reset: sec; overflow-wrap: break-word; }
.db-prose > p:first-child { font-size: 15px; }

.db-sec {
	counter-increment: sec;
	border: 1px solid var(--line);
	border-radius: var(--r);
	background: var(--surface);
	margin: 10px 0;
}
.db-sec[open] { border-color: var(--ink); }

.db-sec__s {
	list-style: none; cursor: pointer; padding: 12px 14px 12px 12px;
	display: flex; align-items: center; gap: 12px;
}
.db-sec__s::-webkit-details-marker { display: none; }
.db-sec__s::before {
	content: counter(sec, decimal-leading-zero);
	flex: 0 0 auto; color: var(--muted); font-size: 11px; letter-spacing: 0.04em;
}
.db-sec__s::after {
	content: "+"; margin-left: auto; flex: 0 0 auto;
	font-size: 16px; line-height: 1; color: var(--accent); font-weight: 700;
}
.db-sec[open] > .db-sec__s::after { content: "\2212"; }
.db-sec__s:hover { background: var(--shade); }

.db-sec__h {
	font-family: var(--f-d); font-size: 14.5px; font-weight: 700; letter-spacing: -0.005em;
	display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; min-width: 0;
}
.db-sec__w { font-family: var(--f-b); font-weight: 400; color: var(--muted); font-size: 10.5px; white-space: nowrap; }

.db-sec__b { padding: 2px 16px 16px; border-top: 1px solid var(--line-soft); }
.db-sec__b > *:first-child { margin-top: 1.1em; }
.db-sec__b h3 { font-size: 13.5px; margin: 1.6em 0 0.5em; }
.db-sec__b h4 { font-size: 12.5px; margin: 1.4em 0 0.4em; }

.db-prose table { width: 100%; border-collapse: collapse; font-size: 12px; margin: 0 0 1.1em; }
.db-prose th, .db-prose td { border: 1px solid var(--line); padding: 7px 9px; text-align: left; vertical-align: top; }
.db-prose th { background: var(--shade); font-family: var(--f-d); font-size: 11px; }

.db-fig { margin: 0 0 1.2em; }
.db-fig img {
	width: 100%; max-height: 300px; object-fit: contain;
	background: #fff; border: 1px solid var(--line-soft); border-radius: var(--r); padding: 10px;
}
.db-fig figcaption { margin-top: 6px; color: var(--muted); font-size: 11px; }

/* ---------------------------------------------------------------- */
/* Khoi so lieu doi tu bang "Key Specifications"                     */
/* ---------------------------------------------------------------- */

.db-readout { margin: 0 0 1.2em; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.db-readout__cap {
	display: flex; justify-content: space-between; gap: 16px; margin: 0;
	padding: 8px 12px; background: var(--ink); color: #fff;
	font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase;
}
.db-readout__l { margin: 0; }
.db-readout__r {
	display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
	padding: 8px 12px; border-bottom: 1px dotted var(--line);
}
.db-readout__r:last-child { border-bottom: 0; }
.db-readout__r dt { color: var(--muted); font-size: 11.5px; flex: 1 1 40%; }
.db-readout__r dd { margin: 0; font-weight: 700; font-size: 12px; text-align: right; flex: 1 1 55%; overflow-wrap: anywhere; }

.db-readout__more { border-top: 1px solid var(--line); }
.db-readout__more > summary {
	cursor: pointer; padding: 9px 12px; background: var(--shade);
	font-size: 11px; color: var(--muted);
}
.db-readout__more > summary:hover { color: var(--accent); }
.db-readout__more .db-readout__r { background: var(--surface); }

/* ---------------------------------------------------------------- */
/* Uu / nhuoc                                                        */
/* ---------------------------------------------------------------- */

.db-pc { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; margin: 0 0 1.2em; }
.db-pc__c { border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; }
.db-pc__c--pro { border-left: 3px solid var(--accent); }
.db-pc__c--con { border-left: 3px solid #8c96a2; }
.db-pc__t {
	margin: 0 0 8px; font-family: var(--f-d); font-size: 10.5px; font-weight: 700;
	letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.db-pc__l { list-style: none; margin: 0; padding: 0; font-size: 12.5px; }
.db-pc__l li { position: relative; padding-left: 18px; margin-bottom: 7px; line-height: 1.55; }
.db-pc__l li::before { position: absolute; left: 0; top: 0; font-weight: 700; }
.db-pc__l--pro li::before { content: "+"; color: var(--accent); }
.db-pc__l--con li::before { content: "\2212"; color: #8c96a2; }

/* ---------------------------------------------------------------- */
/* Cac ma ASIN con lai cua bai                                       */
/* ---------------------------------------------------------------- */

.db-alt { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }
.db-alt h2 { font-size: 15px; margin-bottom: 12px; }
.db-alt__l { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.db-alt__i {
	display: flex; gap: 12px; align-items: flex-start;
	border: 1px solid var(--line-soft); border-radius: var(--r); padding: 10px 12px;
}
.db-alt__b { min-width: 0; }
.db-alt__n { margin: 0; font-size: 12.5px; line-height: 1.45; }
.db-alt__n a { text-decoration: none; }
.db-alt__n a:hover { color: var(--accent); text-decoration: underline; }
.db-alt__f { display: flex; flex-wrap: wrap; gap: 3px 16px; margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.db-alt__f b { color: var(--ink); }

/* ---------------------------------------------------------------- */
/* Man hinh hep                                                      */
/* ---------------------------------------------------------------- */

@media (max-width: 760px) {
	.db-art { padding: 20px 14px 24px; }

	.db-cmp__t, .db-cmp__t tbody, .db-cmp__t tr, .db-cmp__t th, .db-cmp__t td { display: block; }
	.db-cmp__t thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); }
	.db-cmp__r { padding: 12px 14px; }
	.db-cmp__r + .db-cmp__r { border-top: 1px solid var(--line); }
	.db-cmp__t tbody th,
	.db-cmp__t tbody td { width: auto; padding: 0; border: 0; }
	.db-cmp__t tbody td { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; margin-top: 6px; }
	.db-cmp__t tbody td::before {
		content: attr(data-col); flex: 0 0 auto;
		color: var(--muted); font-size: 10.5px; letter-spacing: 0.05em; text-transform: uppercase;
	}
	.db-cmp__t tbody td.db-cmp__b { display: block; min-width: 0; }
	.db-cmp__b::before { display: block; margin-bottom: 5px; }
	.db-cmp__m .db-n { display: inline; }

	.db-hero { grid-template-columns: 1fr; gap: 14px; }
	.db-hero__img img { max-height: 200px; }
	.db-hero__cta { grid-column: 1; }

	/* Bang nao con sot lai trong than bai thi ep vua khung thay vi cuon ngang:
	   bang cuon ngang tren dien thoai giau mat cot ben phai. */
	.db-prose table { table-layout: fixed; }
	.db-prose th, .db-prose td { overflow-wrap: anywhere; padding: 6px 7px; }

	.db-pc { grid-template-columns: 1fr; }
	.db-sec__b { padding: 2px 12px 14px; }
	.db-readout__r { flex-direction: column; gap: 2px; }
	.db-readout__r dd { text-align: left; }
}

/*
 * Chu trong nut mua.
 *
 * Luat `.db-prose a` co do uu tien 0,1,1, cao hon luat `.db-buy` (0,1,0),
 * nen neu khong co dong nay thi chu nut lay mau nhan - dung bang mau
 * nen cua chinh no, va nut thanh mot khoi mau dac khong doc duoc chu.
 * Do duoc truoc khi sua: tuong phan 1,00.
 */
.db-prose a.db-buy { color: #fff; }
