/*
 * Site Tool Shed - than bai.
 *
 * Bai tong hop duoc dung thanh bo trinh chieu: dai anh o dau, roi moi san pham
 * la mot "trang chieu" co thanh vang ghi "1 of 6". Chi nap o trang bai.
 */

.ts-art { padding: 22px 0 10px; }
.ts-art__in { max-width: var(--art); margin: 0 auto; padding: 0 16px; }

.ts-art__head { border-bottom: 6px solid var(--accent); padding-bottom: 16px; margin-bottom: 22px; }
.ts-art__h {
	margin: 12px 0 10px;
	font-size: 30px; line-height: 1.1;
	overflow-wrap: anywhere;
}
.ts-meta {
	display: flex; flex-wrap: wrap; gap: 6px 14px;
	margin: 0 0 10px; font-size: 12px; color: var(--muted);
	text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700;
}
.ts-meta__b { background: var(--ink); color: var(--accent); padding: 3px 8px; }
.ts-art__say { margin: 0; font-size: 13px; line-height: 1.5; color: var(--muted); }

.ts-art__body { font-size: 17.5px; }
.ts-art__body p { margin: 0 0 1.05em; }
.ts-art__body a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 2px; }
.ts-art__body a:hover { background: var(--accent); }

/* Nut va nhan la o mau dac, gach chan lam chung trong nhu lien ket hong. */
.ts-art__body .ts-btn,
.ts-art__body .ts-label,
.ts-art__body .ts-jump,
.ts-art__body .ts-slide__shot a { text-decoration: none; }
.ts-art__body .ts-btn:hover { background: var(--ink); color: var(--accent); }
.ts-art__body .ts-jump:hover { background: var(--ink); color: var(--accent); }
.ts-art__body ul, .ts-art__body ol { margin: 0 0 1.05em; padding-left: 1.15em; }
.ts-art__body li { margin-bottom: 0.4em; }
.ts-art__body figure { margin: 22px auto; max-width: 320px; }
.ts-art__body figure img { border: 2px solid var(--ink); width: 100%; }
.ts-art__body figcaption { font-size: 12px; color: var(--muted); text-align: center; padding-top: 6px; }
.ts-art__body table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ts-art__body th, .ts-art__body td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.ts-art__body thead th { background: var(--ink); color: var(--accent); font-family: var(--body); font-weight: 800; text-transform: uppercase; font-size: 11px; letter-spacing: 0.06em; }
/* Moi bang deu da duoc ts_wrap_tables() boc trong .ts-tw, xem o duoi. */

.ts-h2 {
	margin: 40px 0 14px;
	font-size: 24px; text-transform: uppercase;
	border-left: 10px solid var(--accent); padding-left: 12px;
}

.ts-art__body h3 { font-size: 19px; margin: 28px 0 10px; }

.ts-art__tags { margin: 30px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; border-top: 2px solid var(--line); padding-top: 18px; }
.ts-art__tagl { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }

/* ---------------------------------------------------------------- */
/* DAI ANH dau bai                                                   */
/* ---------------------------------------------------------------- */

.ts-film { border: 3px solid var(--ink); margin: 0 0 30px; background: var(--surface); }
.ts-film__lbl {
	margin: 0; background: var(--ink); color: var(--accent);
	font-family: var(--disp); font-size: 12px; letter-spacing: 0.08em;
	text-transform: uppercase; padding: 8px 12px;
}
.ts-film__l {
	list-style: none; margin: 0; padding: 12px;
	display: flex; gap: 10px;
	overflow-x: auto; scrollbar-width: thin;
	scroll-snap-type: x proximity;
}
.ts-film__i { flex: 0 0 116px; scroll-snap-align: start; }
.ts-film__i a { display: block; position: relative; text-decoration: none; }
.ts-film__i a:hover .ts-shot { border-color: #b98f00; }
.ts-film__i a:hover { background: none; }
.ts-film__n {
	position: absolute; top: 0; left: 0; z-index: 2;
	background: var(--ink); color: var(--accent);
	font-family: var(--disp); font-size: 12px; padding: 3px 7px;
}
.ts-film__t {
	display: block; padding-top: 6px;
	font-size: 11.5px; line-height: 1.3; font-weight: 700;
	color: var(--ink);
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* ---------------------------------------------------------------- */
/* Trang chieu cua mot san pham                                      */
/* ---------------------------------------------------------------- */

.ts-slide { margin: 34px 0; border: 3px solid var(--ink); scroll-margin-top: 12px; }

.ts-slide__bar {
	margin: 0;
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px;
	background: var(--accent); color: var(--ink);
	border-bottom: 3px solid var(--ink);
	padding: 8px 14px;
}
.ts-slide__n { font-family: var(--disp); font-size: 15px; letter-spacing: 0.04em; text-transform: uppercase; }
.ts-slide__brand { font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }

.ts-slide__h {
	margin: 0; padding: 18px 16px 4px;
	font-size: 22px; line-height: 1.15; text-align: center;
	overflow-wrap: anywhere;
}

.ts-slide__shot { margin: 16px auto 0; padding: 0 16px; max-width: 320px; }
.ts-slide__shot a { display: block; text-decoration: none; }
.ts-slide__shot a:hover { background: none; }
.ts-slide__shot figcaption { font-size: 11.5px; color: var(--muted); text-align: center; padding-top: 6px; }
.ts-art__body .ts-slide__shot img { border: 0; }

.ts-slide__facts {
	display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start;
	gap: 12px 22px; padding: 16px 16px 0; text-align: center;
}
.ts-slide__facts .ts-score, .ts-slide__facts .ts-price { justify-content: center; }
.ts-slide__facts .ts-score__src { text-align: center; }

.ts-slide__cta { margin: 16px 0 0; padding: 0 16px; text-align: center; }
.ts-slide__cta + .ts-fine { padding: 0 16px; text-align: center; }

.ts-slide__body { padding: 20px 16px 4px; border-top: 2px solid var(--line); margin-top: 18px; }
.ts-slide__body > ul {
	list-style: none; padding: 14px 16px; margin: 0 0 1.05em;
	background: var(--surface); border-left: 8px solid var(--accent);
	font-size: 15px;
}
.ts-slide__body > ul > li { margin-bottom: 0.45em; }
.ts-slide__body > ul > li:last-child { margin-bottom: 0; }

/* Dong "Best for" */
.ts-bestfor {
	display: flex; flex-wrap: wrap; align-items: stretch;
	margin: 0 0 1.05em; border: 2px solid var(--ink); font-size: 15px;
}
.ts-bestfor__k {
	background: var(--accent); color: var(--ink);
	font-weight: 800; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
	padding: 9px 10px; display: flex; align-items: center; flex: none;
	border-right: 2px solid var(--ink);
}
.ts-bestfor__v { padding: 8px 12px; flex: 1 1 160px; }

/* Hai cot uu / nhuoc */
.ts-pc { display: grid; gap: 0; margin: 0 0 1.05em; border: 2px solid var(--ink); }
.ts-pc__c { padding: 12px 14px; }
.ts-pc__c--y { background: var(--surface); }
.ts-pc__c--n { border-top: 2px solid var(--ink); }
.ts-pc__h {
	margin: 0 0 8px; font-family: var(--disp); font-size: 12px;
	letter-spacing: 0.1em; text-transform: uppercase;
}
.ts-pc ul { list-style: none; margin: 0; padding: 0; font-size: 14.5px; }
.ts-pc li { position: relative; padding-left: 18px; margin-bottom: 6px; }
.ts-pc li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 9px; height: 9px; background: var(--accent); border: 2px solid var(--ink); }
.ts-pc__c--n li::before { background: #fff; }

/* ---------------------------------------------------------------- */
/* Danh sach chon nhanh                                              */
/* ---------------------------------------------------------------- */

.ts-shortlist { border: 3px solid var(--ink); margin: 30px 0; }
.ts-h2--short { margin: 0; border-left: 0; padding: 12px 14px; background: var(--ink); color: var(--accent); font-size: 18px; }
.ts-shortlist__b { padding: 16px 16px 4px; }
.ts-shortlist__b ul { list-style: none; padding: 0; margin: 0 0 1em; }
.ts-shortlist__b li {
	border-bottom: 2px solid var(--line); padding: 10px 0 10px 26px;
	position: relative; font-size: 15.5px;
}
.ts-shortlist__b li::before { content: ""; position: absolute; left: 0; top: 1.05em; width: 12px; height: 12px; background: var(--accent); border: 2px solid var(--ink); }
.ts-shortlist__b li:last-child { border-bottom: 0; }

.ts-jump {
	display: inline-block; margin-left: 6px;
	background: var(--accent); border: 2px solid var(--ink);
	font-size: 10.5px; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase;
	padding: 2px 7px; text-decoration: none !important; white-space: nowrap;
}
.ts-jump:hover { background: var(--ink); color: var(--accent); }

/* ---------------------------------------------------------------- */
/* Bang so sanh                                                      */
/* ---------------------------------------------------------------- */

.ts-compare { margin: 34px 0; }
.ts-h2--cmp { margin-top: 0; }
.ts-tw { overflow-x: auto; border: 3px solid var(--ink); margin: 0 0 1.05em; }
/* Bang so sanh bon nam cot: duoi 560px thi o chu hep den muc khong doc noi,
   nen cho no cuon ngang trong o thay vi ep chu xuong dong. */
.ts-tw table { min-width: 560px; border: 0; }
.ts-tw th, .ts-tw td { border-left: 0; border-right: 0; }

/* ---------------------------------------------------------------- */
/* Ghi chu khi mua                                                   */
/* ---------------------------------------------------------------- */

.ts-tips { background: var(--surface); border: 3px solid var(--ink); margin: 34px 0; }
.ts-h2--tips { margin: 0; border-left: 0; padding: 12px 14px; background: var(--ink); color: var(--accent); font-size: 18px; }
.ts-tips__b { padding: 18px 16px 4px; counter-reset: ts-tip; }
.ts-tips__b > p { position: relative; padding-left: 40px; font-size: 16px; }
.ts-tips__b > p::before {
	counter-increment: ts-tip; content: counter(ts-tip);
	position: absolute; left: 0; top: 0;
	width: 28px; height: 28px; display: grid; place-items: center;
	background: var(--accent); border: 2px solid var(--ink);
	font-family: var(--disp); font-size: 13px;
}

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

.ts-faq { margin: 34px 0; }
.ts-h2--faq { margin-top: 0; }
.ts-faq__l { border: 3px solid var(--ink); }
.ts-faq__i { border-bottom: 2px solid var(--line); }
.ts-faq__i:last-child { border-bottom: 0; }
.ts-faq__q {
	cursor: pointer; list-style: none;
	padding: 14px 44px 14px 14px; position: relative;
	font-weight: 800; font-size: 15.5px; line-height: 1.35;
}
.ts-faq__q::-webkit-details-marker { display: none; }
.ts-faq__q::after {
	content: "+"; position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
	width: 24px; height: 24px; display: grid; place-items: center;
	background: var(--accent); border: 2px solid var(--ink);
	font-family: var(--disp); font-size: 14px; line-height: 1;
}
.ts-faq__i[open] .ts-faq__q { background: var(--surface); }
.ts-faq__i[open] .ts-faq__q::after { content: "\2013"; }
.ts-faq__a { padding: 0 14px; font-size: 16px; }
.ts-faq__a p:last-child { margin-bottom: 14px; }

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

@media (min-width: 620px) {
	.ts-art__h { font-size: 40px; }
	.ts-slide__h { font-size: 26px; }
	.ts-h2 { font-size: 27px; }
	.ts-pc { grid-template-columns: 1fr 1fr; }
	.ts-pc__c--n { border-top: 0; border-left: 2px solid var(--ink); }
	.ts-film__i { flex: 0 0 132px; }
}
