/*
 * Site Signal - kieu dang rieng cua than bai.
 *
 * Chi nap o trang bai. Cai dang chu y nhat o day la .sg-rail: thanh dieu huong
 * DINH o dau trang bai, dung tu muc "X Compared" cua bai goc.
 */

/* ------------------------------------------------------------------ */
/* Chu trong than bai                                                  */
/* ------------------------------------------------------------------ */

.article-body { font-size: 17px; line-height: 1.72; padding-bottom: 8px; }
.article-body p { margin: 0 0 1.15em; }
.article-body a { color: var(--accent-lift); text-decoration: underline; text-underline-offset: 2px; }
/* Nut va o bam cua giao dien khong phai lien ket trong van ban - bo gach chan. */
.article-body .sg-buy,
.article-body .sg-prod__back a,
.article-body .sg-rail__l a { color: inherit; text-decoration: none; }
.article-body .sg-buy { color: #fff; }
.article-body ul, .article-body ol { padding-left: 20px; margin: 0 0 1.2em; }
.article-body li { margin-bottom: .45em; }
.article-body img { border-radius: var(--r); }
.article-body figure { margin: 0 0 1.4em; }
.article-body figcaption { font-size: 12.5px; color: var(--muted); margin-top: 8px; }

.sg-h2 {
	font-family: var(--fd);
	font-weight: 800;
	font-size: clamp(22px, 6vw, 32px);
	letter-spacing: -.04em;
	line-height: 1.06;
	margin: 2.1em 0 .7em;
	overflow-wrap: anywhere;
	scroll-margin-top: 140px;
}
.article-body h3 {
	font-family: var(--fd);
	font-weight: 700;
	font-size: clamp(17px, 4.4vw, 21px);
	letter-spacing: -.03em;
	line-height: 1.2;
	margin: 1.8em 0 .6em;
	overflow-wrap: anywhere;
}

/* ------------------------------------------------------------------ */
/* Bang: luon truot rieng, khong keo ca trang                          */
/* ------------------------------------------------------------------ */

.sg-scroll {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	margin: 0 0 1.3em;
	border: 1px solid var(--line);
	border-radius: var(--r-sm);
}
.sg-ctab, .sg-stab {
	width: 100%;
	border-collapse: collapse;
	font-size: 13.5px;
	min-width: 520px;
}
.sg-stab { min-width: 0; }
.sg-ctab th, .sg-ctab td, .sg-stab th, .sg-stab td {
	border-bottom: 1px solid var(--line);
	padding: 10px 14px;
	text-align: left;
	vertical-align: top;
}
.sg-ctab thead th, .sg-stab th {
	background: var(--surface-2);
	font-weight: 700;
	font-size: 12px;
	letter-spacing: .04em;
	color: var(--ink);
	white-space: nowrap;
}
.sg-stab th { width: 42%; white-space: normal; background: var(--surface); color: var(--muted); font-weight: 600; }
.sg-ctab tr:last-child td, .sg-stab tr:last-child td { border-bottom: 0; }

/* ------------------------------------------------------------------ */
/* NUOC DI RIENG: thanh dieu huong dinh o dau trang bai                */
/* ------------------------------------------------------------------ */

.sg-rail {
	position: sticky;
	top: 0;
	z-index: 20;
	margin: 0 calc(var(--gut) * -1) 26px;
	background: rgba(13, 13, 18, .97);
	backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--line);
}
.sg-rail__in { padding: 12px var(--gut) 12px; }

.sg-rail__h {
	font-family: var(--fd);
	font-weight: 600;
	font-size: 10.5px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--accent-lift);
	margin: 0 0 9px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.sg-rail__l {
	list-style: none;
	margin: 0;
	padding: 0 0 2px;
	display: flex;
	gap: 8px;
	overflow-x: auto;
	scrollbar-width: none;
}
.sg-rail__l::-webkit-scrollbar { display: none; }
.sg-rail__l li { margin: 0; }

.sg-rail__l a {
	position: relative;
	display: block;
	width: 58px;
	height: 58px;
	flex: 0 0 auto;
	border-radius: var(--r-sm);
	border: 1px solid var(--line);
	background: var(--surface);
	overflow: hidden;
	text-decoration: none;
}
.sg-rail__l a:hover, .sg-rail__l a:focus-visible { border-color: var(--accent-lift); }
.sg-rail__l img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	background: var(--tile);
	padding: 5px;
	opacity: .85;
}
.sg-rail__l a:hover img, .sg-rail__l a:focus-visible img { opacity: 1; }

.sg-rail__n {
	position: absolute;
	left: 0;
	top: 0;
	z-index: 2;
	min-width: 19px;
	height: 19px;
	display: grid;
	place-items: center;
	background: var(--accent);
	color: #fff;
	font-family: var(--fd);
	font-weight: 800;
	font-size: 10px;
	border-radius: 0 0 8px 0;
}

.sg-rail__more { margin-top: 10px; }
.sg-rail__more > summary {
	cursor: pointer;
	font-size: 12px;
	font-weight: 700;
	color: var(--muted);
	list-style: none;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	border: 1px solid var(--line);
	border-radius: 999px;
	padding: 5px 13px;
}
.sg-rail__more > summary::-webkit-details-marker { display: none; }
.sg-rail__more > summary::before { content: "\25B8"; font-size: 10px; }
.sg-rail__more[open] > summary { color: var(--ink); border-color: var(--accent); }
.sg-rail__more[open] > summary::before { content: "\25BE"; }

/* Thanh dieu huong DINH o dau trang, nen khi mo bang so sanh ra phai chua
   duoc no trong mot khung cuon rieng - neu khong ca man hinh bi thanh nay
   chiem het va nguoi doc khong con thay bai dau. */
.sg-rail__panel {
	margin-top: 12px;
	max-height: 48vh;
	overflow-y: auto;
	font-size: 14.5px;
	line-height: 1.6;
}
.sg-rail__panel p { color: var(--muted); }

/* ------------------------------------------------------------------ */
/* Khoi san pham                                                       */
/* ------------------------------------------------------------------ */

.sg-prod {
	border-top: 1px solid var(--line);
	padding-top: 6px;
	margin-top: 8px;
}

.sg-h2--prod {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-top: 1.5em;
}
.sg-prod__ttl { min-width: 0; }
.sg-prod__n {
	flex: 0 0 auto;
	min-width: 38px;
	height: 38px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: var(--accent);
	color: #fff;
	font-size: 16px;
	font-weight: 800;
	letter-spacing: -.03em;
	margin-top: 2px;
}

.sg-prod__top { display: grid; gap: 30px; margin: 0 0 18px; }

.sg-prod__shot { position: relative; }
.sg-prod__shot img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: contain;
	background: var(--tile);
	padding: 16px;
	border-radius: var(--r);
}

.sg-prod__facts {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--r);
	padding: 18px;
}
.sg-prod__brand {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--muted);
	margin: 0 0 8px;
}
.sg-prod__rate { margin: 10px 0 14px; font-size: 13px; }
.sg-prod__badge, .sg-prod__price, .sg-prod__cta { margin: 0 0 8px; }
.sg-prod__cta { margin-bottom: 0; }

.sg-prod__cap { font-size: 12.5px; color: var(--muted); margin: -6px 0 16px; }

.sg-prod__best {
	background: rgba(90, 49, 244, .14);
	border-left: 3px solid var(--accent);
	border-radius: 0 var(--r-sm) var(--r-sm) 0;
	padding: 12px 16px;
	font-size: 15px;
	margin: 0 0 18px;
}
.sg-prod__best b { font-family: var(--fd); font-weight: 700; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }

.sg-prod__text { margin-top: 4px; }

.sg-prod__back { margin: 18px 0 30px; }
.sg-prod__back a {
	font-size: 12px;
	font-weight: 700;
	color: var(--muted);
	text-decoration: none;
	border: 1px solid var(--line);
	border-radius: 999px;
	padding: 6px 13px;
	display: inline-block;
}
.sg-prod__back a:hover { color: var(--ink); border-color: var(--accent); }

/* Hai cot uu / nhuoc */
.sg-pc { display: grid; gap: 14px; margin: 0 0 20px; }
.sg-pc__c { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 14px 16px; background: var(--surface); }
.sg-pc__c h3 {
	font-family: var(--fd);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	margin: 0 0 10px;
}
.sg-pc__c--up h3 { color: var(--good); }
.sg-pc__c--down h3 { color: var(--warn); }
.sg-pc__c ul { list-style: none; padding: 0; margin: 0; }
.sg-pc__c li { position: relative; padding-left: 20px; font-size: 14.5px; margin-bottom: .5em; }
.sg-pc__c li:last-child { margin-bottom: 0; }
.sg-pc__c--up li::before { content: "+"; position: absolute; left: 0; color: var(--good); font-weight: 800; }
.sg-pc__c--down li::before { content: "\2013"; position: absolute; left: 0; color: var(--warn); font-weight: 800; }

/* Ngan thong so day du */
.sg-specs { margin: 0 0 6px; }
.sg-specs > summary {
	cursor: pointer;
	list-style: none;
	font-size: 12.5px;
	font-weight: 700;
	color: var(--muted);
	border: 1px solid var(--line);
	border-radius: 999px;
	padding: 7px 14px;
	display: inline-block;
}
.sg-specs > summary::-webkit-details-marker { display: none; }
.sg-specs[open] > summary { color: var(--ink); border-color: var(--accent); margin-bottom: 12px; }
.sg-specs__note { font-size: 11.5px; color: var(--muted); margin: 8px 0 0; }

/* ------------------------------------------------------------------ */
/* Muc huong dan mua                                                   */
/* ------------------------------------------------------------------ */

.sg-guide {
	border-top: 1px solid var(--line);
	margin-top: 10px;
}
.sg-h2--guide { color: var(--ink); }
.sg-guide__b {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--r);
	padding: 20px;
	font-size: 16px;
}
.sg-guide__b p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------------ */
/* FAQ                                                                 */
/* ------------------------------------------------------------------ */

.sg-faq { border-top: 1px solid var(--line); }
.sg-faq__i { border-bottom: 1px solid var(--line); }
.sg-faq__i > summary {
	cursor: pointer;
	list-style: none;
	font-family: var(--fd);
	font-weight: 700;
	font-size: 15px;
	letter-spacing: -.02em;
	line-height: 1.3;
	padding: 16px 34px 16px 0;
	position: relative;
	overflow-wrap: anywhere;
}
.sg-faq__i > summary::-webkit-details-marker { display: none; }
.sg-faq__i > summary::after {
	content: "+";
	position: absolute;
	right: 4px;
	top: 14px;
	font-size: 20px;
	font-weight: 400;
	color: var(--accent-lift);
	line-height: 1;
}
.sg-faq__i[open] > summary::after { content: "\2212"; }
.sg-faq__i > summary:hover { color: var(--accent-lift); }
.sg-faq__a { padding: 0 0 16px; font-size: 15.5px; color: #d6d6e2; }
.sg-faq__a p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------------ */
/* Man hinh rong dan                                                   */
/* ------------------------------------------------------------------ */

@media (min-width: 620px) {
	.sg-pc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sg-rail__l a { width: 66px; height: 66px; }
	.sg-rail__h { font-size: 11.5px; }
}

@media (min-width: 900px) {
	.sg-rail { margin-left: calc(var(--gut) * -1); margin-right: calc(var(--gut) * -1); border-radius: 0; }
	.sg-rail__in { padding: 14px var(--gut); }
	.sg-rail__l a { width: 76px; height: 76px; }
	.sg-prod__top { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; }
	.sg-h2 { scroll-margin-top: 150px; }
	.sg-rail__panel { max-height: 62vh; }
}
