/*
 * site40 - nen toi, chu nho, mat do cao.
 *
 * Bang mau lay tu briefs.json, khong doi. Mot luat duy nhat duoc to mau manh
 * la nhan (.td-lab) va nut mua (.td-buy); con lai chi co trang, xam va ke mo -
 * tren nen toi ma to mau nhieu cho thi mat khong biet nhin vao dau.
 */

:root {
	--bg: #101418;
	--surface: #181d23;
	--ink: #eef2f6;
	--muted: #98a2ad;
	--line: #2a313a;
	--accent: #a3e635;

	--wrap: 1120px;
	--col: 720px;

	--disp: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
	--body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--body);
	font-size: 16px;
	line-height: 1.55;
	/* Chan tran ngang: khong cho bat cu thu gi day trang sang phai o 375px. */
	overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
	font-family: var(--disp);
	font-weight: 700;
	letter-spacing: -0.015em;
	line-height: 1.18;
	margin: 0;
}

.td-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; width: 100%; }

.screen-reader-text {
	position: absolute; width: 1px; height: 1px;
	overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.td-skip {
	position: absolute; left: -9999px; top: 0; z-index: 60;
	background: var(--accent); color: #101418; padding: 8px 14px; font-weight: 700;
}
.td-skip:focus { left: 8px; top: 8px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ------------------------------------------------------------------ */
/* Dau trang                                                           */
/* ------------------------------------------------------------------ */

/*
 * Tren dien thoai dau trang KHONG dinh: ba hang (ten trang, o tim, chuyen muc)
 * cao chung 150px, dinh lai la an mat mot phan nam man hinh trong suot luc
 * doc. Tu 980px tro len moi cho dinh.
 */
.td-head-bar {
	background: var(--bg);
	border-bottom: 1px solid var(--line);
	position: static;
	z-index: 40;
}

.td-head-in {
	display: flex; align-items: center; gap: 16px;
	min-height: 56px; flex-wrap: wrap;
}

.td-brand {
	font-family: var(--disp);
	font-weight: 800;
	font-size: 22px;
	letter-spacing: -0.03em;
	text-decoration: none;
	margin-right: auto;
	padding: 10px 0;
}
.td-brand::after {
	content: "";
	display: inline-block;
	width: 8px; height: 8px;
	margin-left: 6px;
	background: var(--accent);
	vertical-align: 2px;
}

.td-search { display: flex; gap: 6px; padding: 8px 0; }
.td-search input {
	background: var(--surface);
	border: 1px solid var(--line);
	color: var(--ink);
	font: inherit; font-size: 14px;
	padding: 7px 10px;
	min-width: 0; width: 170px;
	border-radius: 2px;
}
.td-search input::placeholder { color: var(--muted); }
.td-search button {
	background: transparent;
	border: 1px solid var(--line);
	color: var(--ink);
	font: inherit; font-size: 13px; font-weight: 600;
	padding: 7px 12px;
	border-radius: 2px;
	cursor: pointer;
}
.td-search button:hover { border-color: var(--accent); color: var(--accent); }

.td-nav {
	border-top: 1px solid var(--line);
	overflow-x: auto;
	scrollbar-width: none;
}
.td-nav::-webkit-scrollbar { display: none; }
.td-nav ul {
	list-style: none; margin: 0; padding: 0;
	display: flex; gap: 18px; white-space: nowrap;
}
.td-nav a {
	display: block;
	padding: 9px 0;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--muted);
	text-decoration: none;
}
.td-nav a:hover { color: var(--accent); }

/* ------------------------------------------------------------------ */
/* Nhan va manh so lieu                                                */
/* ------------------------------------------------------------------ */

.td-lab {
	display: inline-block;
	font-family: var(--body);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	padding: 2px 6px;
	border-radius: 2px;
	text-decoration: none;
	background: var(--line);
	color: var(--ink);
}
.td-lab-cat { background: var(--accent); color: #101418; }
.td-lab-cat:hover { background: #b6f04f; }
.td-lab-count { background: transparent; color: var(--muted); border: 1px solid var(--line); }

.td-bit {
	display: inline-block;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--muted);
	margin-right: 12px;
	white-space: nowrap;
}
.td-bit-star { color: var(--ink); }
.td-star { color: var(--accent); margin-right: 3px; }
.td-bit-note { color: var(--muted); font-weight: 500; }
.td-bit-price { color: var(--ink); }
.td-bit-off { color: var(--accent); }
.td-bit-top {
	color: var(--accent);
	border: 1px solid rgba(163, 230, 53, 0.4);
	border-radius: 2px;
	padding: 1px 6px;
	font-size: 11px;
	font-weight: 700;
	white-space: normal;
}

/* ------------------------------------------------------------------ */
/* Dong danh sach                                                      */
/* ------------------------------------------------------------------ */

.td-rows { border-top: 1px solid var(--line); }

.td-row {
	display: flex;
	gap: 14px;
	padding: 14px 0;
	border-bottom: 1px solid var(--line);
	align-items: flex-start;
}

.td-row-shot {
	flex: 0 0 auto;
	width: 84px; height: 84px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 3px;
	overflow: hidden;
	display: block;
}
.td-row-shot img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }

.td-row-main { min-width: 0; flex: 1 1 auto; }

.td-row-kick { margin: 0 0 5px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }

.td-row-title {
	font-size: 17px;
	font-weight: 700;
	margin: 0;
	line-height: 1.25;
}
.td-row-title a { text-decoration: none; }
.td-row-title a:hover { color: var(--accent); }

.td-row-dek {
	margin: 5px 0 0;
	font-size: 13.5px;
	color: var(--muted);
	line-height: 1.45;
}

.td-row-bits { margin: 6px 0 0; }

/* ------------------------------------------------------------------ */
/* Trang chu va trang danh sach                                        */
/* ------------------------------------------------------------------ */

.td-main { display: block; }

.td-front, .td-list { padding-top: 22px; padding-bottom: 40px; }

.td-front { display: grid; gap: 34px; grid-template-columns: 1fr; align-items: start; }

.td-block-h {
	font-size: 15px;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	margin: 0 0 4px;
}
.td-block-h::before {
	content: "";
	display: inline-block;
	width: 10px; height: 10px;
	background: var(--accent);
	margin-right: 8px;
}

.td-block-note { margin: 0 0 14px; font-size: 13px; color: var(--muted); }

.td-more-link { margin: 18px 0 0; }
.td-more-link a {
	font-size: 13px; font-weight: 700; color: var(--accent);
	text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 2px;
}

.td-empty { color: var(--muted); font-size: 14px; }

/* Cot ben */
.td-side-box {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 3px;
	padding: 14px;
	margin-bottom: 18px;
}
.td-side-h {
	font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
	margin: 0 0 4px;
}
.td-side-note { margin: 0 0 10px; font-size: 11.5px; color: var(--muted); line-height: 1.4; }
.td-side-list { margin: 0; padding: 0 0 0 20px; }
.td-side-list li { margin-bottom: 11px; font-size: 13.5px; }
.td-side-list li::marker { color: var(--accent); font-weight: 800; font-size: 12px; }
.td-side-list a { text-decoration: none; font-weight: 600; line-height: 1.35; display: block; }
.td-side-list a:hover { color: var(--accent); }
.td-side-bits { display: block; margin-top: 3px; }
.td-side-bits .td-bit { font-size: 11.5px; margin-right: 8px; }
.td-side-bits .td-bit-note { display: none; }

/* Dau trang danh muc */
.td-arch-head { padding: 4px 0 16px; }
.td-arch-kind {
	margin: 0 0 6px; font-size: 11px; font-weight: 800; letter-spacing: 0.12em;
	text-transform: uppercase; color: var(--accent);
}
.td-arch-intro { font-size: 14px; color: var(--muted); max-width: var(--col); }
.td-arch-head .td-search { margin-top: 10px; }
.td-arch-head .td-search input { width: 100%; max-width: 320px; }

.td-crumbs { font-size: 12px; color: var(--muted); padding: 14px 0 0; }
.td-crumbs a { text-decoration: none; }
.td-crumbs a:hover { color: var(--accent); }

/* Phan trang */
.td-pager { margin: 26px 0 0; }
.td-pager ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.td-pager a, .td-pager span {
	display: block; padding: 6px 11px; font-size: 13px; font-weight: 600;
	border: 1px solid var(--line); border-radius: 2px; text-decoration: none; color: var(--muted);
}
.td-pager a:hover { border-color: var(--accent); color: var(--accent); }
.td-pager .current { background: var(--accent); color: #101418; border-color: var(--accent); }

/* Day nhan hang */
.td-brands { display: flex; flex-wrap: wrap; gap: 6px; margin: 26px 0 0; }
.td-brands a {
	font-size: 12px; font-weight: 600; color: var(--muted); text-decoration: none;
	border: 1px solid var(--line); border-radius: 2px; padding: 3px 8px;
}
.td-brands a:hover { border-color: var(--accent); color: var(--accent); }

/* ------------------------------------------------------------------ */
/* Chan trang                                                          */
/* ------------------------------------------------------------------ */

.td-foot { border-top: 1px solid var(--line); margin-top: 40px; padding: 26px 0 44px; }
.td-foot .td-brands { margin-top: 0; }
.td-foot-num { display: flex; flex-wrap: wrap; gap: 18px; margin: 20px 0 0; font-size: 13px; color: var(--muted); }
.td-foot-num span { font-weight: 600; }
.td-foot-line { margin: 16px 0 6px; font-size: 13px; font-weight: 700; }
.td-disclosure { margin: 0; font-size: 12px; color: var(--muted); max-width: 640px; line-height: 1.5; }

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

@media (min-width: 720px) {
	.td-row-shot { width: 104px; height: 104px; }
	.td-row-title { font-size: 19px; }
	.td-search input { width: 220px; }
}

@media (min-width: 980px) {
	.td-front { grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; }
	.td-front-side { position: sticky; top: 108px; }

	.td-head-bar { position: sticky; top: 0; }

	/* Man hinh rong thi chin chuyen muc xuong hang chu dung cat mat chu o mep
	   phai - thanh cuon ngang chi danh cho dien thoai. */
	.td-nav { overflow-x: visible; }
	.td-nav ul { white-space: normal; flex-wrap: wrap; gap: 6px 18px; }
}


/* === de mau chu huy hieu plugin === */
/*
 * Huy hieu cua plugin dat chu cung mau voi nen (nen la chinh mau do pha 10%
 * do duc), nen tuong phan chi 2.5-4.1 - duoi chuan AA 4.5, rieng nhan
 * 'Prime' gan nhu khong doc duoc.
 *
 * Chi doi MAU CHU, giu nguyen nen cua plugin. Dung hai lop cung ten de co do
 * uu tien cao hon luat goc ma khong phai dung !important.
 *
 * Khong sua tep CSS cua plugin: ban cap nhat sau nay se ghi de len.
 */
.acms-badge.acms-badge--prime   { color: #01607f; }
.acms-badge.acms-badge--danger  { color: #a81b1b; }
.acms-badge.acms-badge--success { color: #10693a; }
.acms-badge.acms-badge--warning { color: #8a5a06; }
.acms-badge.acms-badge--info    { color: #0b5e86; }


/* === mau chu phu cua plugin === */
/*
 * Plugin lay mau chu phu tu `var(--color-text-muted, #9ca3af)`. Khong theme
 * nao dat bien do nen no roi ve #9ca3af - tren nen trang chi duoc 2.54, duoi
 * chuan. Do bang Chrome that: nhan "/10", "ACMS Score" va dong "Updated: ..."
 * deu dinh.
 *
 * #6b7280 duoc 4.83, va chinh plugin cung dung mau nay o cho khac.
 */
:root { --color-text-muted: #6b7280; }

/* ------------------------------------------------------------------ */

/* ------------------------------------------------------------------ */
/* Day lien ket trang tinh o chan trang.                                */
/* Mau chu ke thua cua chan trang: chu chan trang da qua vong do tuong  */
/* phan, con mau nhan cua site thi chua.                                */
/* ------------------------------------------------------------------ */
.td-foot-pages {
	list-style: none;
	margin: 12px 0 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	font-size: 13px;
	line-height: 1.6;
}
.td-foot-pages a {
	color: inherit;
	text-decoration: none;
	opacity: .82;
}
.td-foot-pages a:hover,
.td-foot-pages a:focus {
	opacity: 1;
	text-decoration: underline;
}

/* --- Logo thuong hieu ------------------------------------------------ */
/* Dau hieu do bang em nen no lon nho theo chinh co chu cua ten site. */
.td-lg { white-space: nowrap; }
.td-lg__mark { display: inline-block; width: 1em; height: 1em; vertical-align: -0.14em; margin-right: 0.36em; }
.td-lg__tld { font-weight: 400; opacity: .5; }

/* --- Lien ket chan trang --------------------------------------------- */
/* Viet .td-mang .td-mang__h chu khong phai .td-mang__h: luat cua theme
   kieu .xx-foot__disclosure p co do uu tien (0,1,1), cao hon (0,1,0), nen ban
   ngan gon bi de mat. Da do that moi biet.

   Khong dung opacity de lam mo: no keo do tuong phan xuong duoi nguong doc
   duoc o phan lon theme. Phan cap bang co chu la du, va co san toi thieu 11px
   vi co theme dat khoi cong bo chi 12px. */
.td-mang { margin: 22px 0 0; }
.td-mang .td-mang__h { margin: 0 0 8px; font-size: max(11px, .8em); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.td-mang .td-mang__list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; font-size: max(11px, .8em); line-height: 1.6; }
.td-mang .td-mang__list li { margin: 0; padding: 0; flex: 0 0 auto; width: auto; max-width: 100%; }
.td-mang .td-mang__list li::before { content: none; }
.td-mang .td-mang__list a { text-decoration: none; }
.td-mang .td-mang__list a:hover,
.td-mang .td-mang__list a:focus { text-decoration: underline; }
