/*
Theme Name: Tay Thợ — thi công hoàn thiện nội ngoại thất
Theme URI: https://xaydung-mau-06.mauwebsitedep.net/
Description: Mẫu website thi công hoàn thiện nội ngoại thất (sơn, ốp lát, trần vách, mặt dựng). Theme con của vinasite, chạy WooCommerce ở CHẾ ĐỘ DANH MỤC — không bán qua giỏ hàng.
Author: VinaSite
Template: vinasite
Version: 1.0.0
Text Domain: xaydung-mau-06
*/

/* =======================================================================
 * TAY THỢ — be ấm, nâu đất nung, tiêu đề serif.
 *
 * Tương phản đo trên nền trang #FBF8F3:
 *   --tth-muc  #2B241E  ~13,4:1   tiêu đề
 *   --tth-than #4F443B  ~8,2:1    chữ nội dung
 *   --tth-mo   #786A5E  ~4,9:1    chữ phụ
 *   --tth-nau  #7A4A2B  ~6,9:1    giá, liên kết, nền nút
 * Trên nền tối #2B241E:
 *   --tth-nga  #F6F0E6  ~12,8:1
 *   --tth-dong #C79A54  ~6,0:1    nhãn nhỏ, số thứ tự
 * ===================================================================== */

:root {
	--tth-nen:    #FBF8F3;
	--tth-mat:    #FFFFFF;
	--tth-be:     #F2EADE;
	--tth-be2:    #E7DBC8;
	--tth-muc:    #2B241E;
	--tth-than:   #4F443B;
	--tth-mo:     #786A5E;
	--tth-vien:   #E2D8CA;
	--tth-vien2:  #CDBEA8;
	--tth-nau:    #7A4A2B;
	--tth-nau-d:  #5E3620;
	--tth-dong:   #C79A54;
	--tth-toi:    #2B241E;
	--tth-nga:    #F6F0E6;
	--tth-wrap:   1240px;
	--tth-serif:  "Faustina", "Times New Roman", serif;
	--tth-sans:   "Asap", system-ui, -apple-system, "Segoe UI", sans-serif;
}

body.tth-xd {
	margin: 0;
	background: var(--tth-nen);
	color: var(--tth-than);
	font-family: var(--tth-sans);
	font-size: 16.5px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

/* Theme mẹ nhuộm xanh mọi h1–h3 trong nội dung và thắng mọi khai báo một lớp.
   Hai lớp thì thắng được, mà tiêu đề vẫn tự nhận màu của khối chứa nó. */
body.tth-xd h1,
body.tth-xd h2,
body.tth-xd h3,
body.tth-xd h4 {
	color: inherit;
	font-family: var(--tth-serif);
	font-weight: 600;
	line-height: 1.18;
	letter-spacing: -0.005em;
	margin: 0;
}

/* Luật này có độ ưu tiên (0,1,2) nên THẮNG mọi luật một lớp kiểu `.tth-nut`.
   Vì thế mọi thành phần có màu chữ riêng — nút, menu, chip, chân trang, dải
   trên cùng — đều phải khai kèm tiền tố `body.tth-xd`. Bỏ tiền tố là nút ra
   chữ nâu trên nền nâu, nhìn như một ô đặc không có chữ. */
body.tth-xd a { color: var(--tth-nau); }
body.tth-xd img { max-width: 100%; height: auto; display: block; }
body.tth-xd p { margin: 0 0 1em; }
body.tth-xd *, body.tth-xd *::before, body.tth-xd *::after { box-sizing: border-box; }

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

body.tth-xd .tth-skip {
	position: absolute; left: -9999px; top: 0; z-index: 999;
	background: var(--tth-muc); color: #fff; padding: 12px 18px;
}
body.tth-xd .tth-skip:focus { left: 8px; top: 8px; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px;
	overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}

/* nhãn nhỏ gạch đầu dòng — dấu nhận diện của mẫu này */
.tth-nhan {
	display: inline-flex; align-items: center; gap: 10px;
	font-family: var(--tth-sans);
	font-size: 12px; font-weight: 600;
	letter-spacing: 0.2em; text-transform: uppercase;
	color: var(--tth-nau);
	margin: 0 0 14px;
}
.tth-nhan::before { content: ""; width: 26px; height: 2px; background: var(--tth-nau); display: block; }
.tth-nhan--sang { color: var(--tth-dong); }
.tth-nhan--sang::before { background: var(--tth-dong); }

body.tth-xd .tth-nut {
	display: inline-flex; align-items: center; justify-content: center; gap: 9px;
	padding: 13px 26px;
	font-family: var(--tth-sans); font-size: 14.5px; font-weight: 600;
	letter-spacing: 0.04em;
	background: var(--tth-nau); color: #fff;
	border: 1px solid var(--tth-nau); border-radius: 0;
	text-decoration: none; cursor: pointer;
	transition: background .18s ease, border-color .18s ease, color .18s ease;
	white-space: nowrap;
}
body.tth-xd .tth-nut:hover, body.tth-xd .tth-nut:focus-visible { background: var(--tth-nau-d); border-color: var(--tth-nau-d); color: #fff; }
body.tth-xd .tth-nut--vien { background: transparent; color: var(--tth-muc); border-color: var(--tth-vien2); }
body.tth-xd .tth-nut--vien:hover, body.tth-xd .tth-nut--vien:focus-visible { background: var(--tth-muc); border-color: var(--tth-muc); color: #fff; }
body.tth-xd .tth-nut--sang { background: var(--tth-nga); border-color: var(--tth-nga); color: var(--tth-muc); }
body.tth-xd .tth-nut--sang:hover, body.tth-xd .tth-nut--sang:focus-visible { background: #fff; border-color: #fff; color: var(--tth-muc); }
.tth-nut svg { width: 16px; height: 16px; flex: none; }

/* =======================================================================
 * ĐẦU TRANG
 * ===================================================================== */
.tth-bar { background: var(--tth-toi); color: var(--tth-nga); font-size: 13.5px; }
.tth-bar__in {
	display: flex; align-items: center; justify-content: space-between;
	gap: 18px; min-height: 42px; flex-wrap: wrap;
}
body.tth-xd .tth-bar a { color: var(--tth-dong); text-decoration: none; font-weight: 600; }
body.tth-xd .tth-bar a:hover { text-decoration: underline; }
.tth-bar__ghi { color: #C6B9A8; }

.tth-head {
	position: sticky; top: 0; z-index: 60;
	background: rgba(251, 248, 243, 0.94);
	backdrop-filter: saturate(140%) blur(8px);
	border-bottom: 1px solid var(--tth-vien);
	transition: box-shadow .2s ease, background .2s ease;
}
.tth-head.is-stuck { background: var(--tth-nen); box-shadow: 0 10px 30px rgba(43, 36, 30, .09); }
.tth-head__row { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 78px; }

.tth-brand { display: flex; align-items: center; gap: 13px; text-decoration: none; }
.tth-brand__mark { display: block; flex: none; }
.tth-brand__name {
	display: block; font-family: var(--tth-serif); font-size: 25px; font-weight: 700;
	color: var(--tth-muc); line-height: 1.05; letter-spacing: -0.01em; white-space: nowrap;
}
.tth-brand__tag {
	display: block; font-size: 10.5px; font-weight: 600; letter-spacing: 0.18em;
	text-transform: uppercase; color: var(--tth-mo); margin-top: 3px;
}

.tth-nav ul { display: flex; align-items: center; gap: 27px; list-style: none; margin: 0; padding: 0; }
body.tth-xd .tth-nav a {
	position: relative; display: block; padding: 6px 0;
	font-size: 13.5px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase;
	color: var(--tth-than); text-decoration: none;
}
.tth-nav a::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
	background: var(--tth-nau); transform: scaleX(0); transform-origin: left;
	transition: transform .2s ease;
}
body.tth-xd .tth-nav a:hover, body.tth-xd .tth-nav a[aria-current="page"] { color: var(--tth-muc); }
.tth-nav a:hover::after, .tth-nav a[aria-current="page"]::after { transform: scaleX(1); }

.tth-tools { display: flex; align-items: center; gap: 14px; }
.tth-tel { display: flex; flex-direction: column; line-height: 1.2; text-decoration: none; }
.tth-tel span {
	font-size: 10.5px; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--tth-mo);
}
.tth-tel strong { font-family: var(--tth-serif); font-size: 19px; color: var(--tth-muc); }

.tth-burger {
	display: none; width: 44px; height: 44px; padding: 0;
	background: transparent; border: 1px solid var(--tth-vien2); cursor: pointer;
}
.tth-burger i { display: block; width: 20px; height: 2px; background: var(--tth-muc); margin: 4px auto; transition: transform .2s ease, opacity .2s ease; }
.tth-burger[aria-expanded="true"] i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.tth-burger[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.tth-burger[aria-expanded="true"] i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* =======================================================================
 * TRANG CHỦ
 * ===================================================================== */
.tth-hero { background: var(--tth-nen); border-bottom: 1px solid var(--tth-vien); }
.tth-hero__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 72px 0 68px; }
.tth-hero h1 { font-size: clamp(34px, 4.4vw, 56px); color: var(--tth-muc); margin-bottom: 20px; }
.tth-hero h1 em { font-style: italic; color: var(--tth-nau); }
.tth-hero__sub { font-size: 17.5px; color: var(--tth-than); max-width: 50ch; margin-bottom: 26px; }
.tth-hero__nut { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.tth-hero__y { list-style: none; margin: 0; padding: 26px 0 0; border-top: 1px solid var(--tth-vien); display: grid; gap: 11px; }
.tth-hero__y li { display: flex; gap: 11px; align-items: flex-start; font-size: 15px; }
.tth-hero__y svg { width: 17px; height: 17px; flex: none; margin-top: 4px; color: var(--tth-nau); }

.tth-hero__anh { position: relative; }
.tth-hero__anh img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.tth-hero__the {
	position: absolute; left: -28px; bottom: 32px;
	background: var(--tth-mat); border: 1px solid var(--tth-vien);
	padding: 18px 20px; max-width: 272px;
	box-shadow: 0 18px 44px rgba(43, 36, 30, .13);
}
.tth-hero__the b { display: block; font-family: var(--tth-serif); font-size: 16px; color: var(--tth-muc); margin-bottom: 4px; }
.tth-hero__the p { font-size: 13px; color: var(--tth-mo); margin: 0 0 12px; }
.tth-mau { display: flex; gap: 8px; }
.tth-mau span { width: 34px; height: 34px; border-radius: 50%; display: block; border: 1px solid rgba(43, 36, 30, .12); }

/* tiêu đề khối chung của trang chủ */
body.tth-xd .tth-h2 { font-size: clamp(26px, 3vw, 36px); color: var(--tth-muc); max-width: 24ch; }

/* dải bề mặt vật liệu */
.tth-vat-lieu { padding: 64px 0 10px; }
.tth-vat-lieu__dau { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; flex-wrap: wrap; margin-bottom: 30px; }
.tth-vat-lieu h2 { font-size: clamp(26px, 3vw, 36px); color: var(--tth-muc); max-width: 20ch; }
.tth-vat-lieu__ghi { font-size: 14.5px; color: var(--tth-mo); max-width: 42ch; margin: 0; }

.tth-be-mat { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.tth-be-mat figure { margin: 0; text-align: center; }
.tth-be-mat img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 50%; border: 1px solid var(--tth-vien2); }
.tth-be-mat figcaption { margin-top: 12px; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; color: var(--tth-than); }
.tth-be-mat small { display: block; font-size: 12px; color: var(--tth-mo); font-weight: 400; letter-spacing: 0; }

/* ba nhóm hạng mục */
.tth-nhom { padding: 72px 0; }
.tth-nhom__luoi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 30px; }
body.tth-xd .tth-the-nhom {
	background: var(--tth-mat); border: 1px solid var(--tth-vien);
	display: flex; flex-direction: column; text-decoration: none;
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.tth-the-nhom:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(43, 36, 30, .1); border-color: var(--tth-vien2); }
.tth-the-nhom__anh { overflow: hidden; }
.tth-the-nhom img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .35s ease; }
.tth-the-nhom:hover img { transform: scale(1.04); }
.tth-the-nhom__than { padding: 22px 24px 26px; }
.tth-the-nhom h3 { font-size: 23px; color: var(--tth-muc); margin-bottom: 8px; }
.tth-the-nhom p { font-size: 14.5px; color: var(--tth-mo); margin: 0 0 14px; }
.tth-the-nhom__di { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--tth-nau); }

/* chi tiết hoàn thiện — ảnh cận cảnh */
.tth-chi-tiet { background: var(--tth-be); padding: 76px 0; border-top: 1px solid var(--tth-vien); border-bottom: 1px solid var(--tth-vien); }
.tth-chi-tiet__luoi { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 32px; }
.tth-chi-tiet figure { margin: 0; background: var(--tth-mat); border: 1px solid var(--tth-vien); }
.tth-chi-tiet img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.tth-chi-tiet figcaption { padding: 16px 18px 20px; }
.tth-chi-tiet figcaption b { display: block; font-family: var(--tth-serif); font-size: 17.5px; color: var(--tth-muc); margin-bottom: 5px; }
.tth-chi-tiet figcaption span { font-size: 13.5px; color: var(--tth-mo); }

/* bảng vật liệu theo hạng mục */
.tth-bang-khu { padding: 76px 0; }
.tth-bang-bao { overflow-x: auto; margin-top: 28px; border: 1px solid var(--tth-vien); background: var(--tth-mat); }
table.tth-bang { width: 100%; border-collapse: collapse; min-width: 620px; font-size: 15px; }
table.tth-bang th, table.tth-bang td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--tth-vien); }
table.tth-bang thead th {
	background: var(--tth-toi); color: var(--tth-nga);
	font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
}
table.tth-bang tbody tr:last-child td { border-bottom: 0; }
table.tth-bang tbody tr:nth-child(even) { background: #FCFAF6; }
table.tth-bang td:first-child { font-weight: 600; color: var(--tth-muc); }
table.tth-bang td.tth-gia { color: var(--tth-nau); font-weight: 600; white-space: nowrap; }
.tth-bang-ghi { font-size: 13.5px; color: var(--tth-mo); margin: 14px 0 0; }

/* chuẩn nghiệm thu — nền tối */
.tth-nghiem { background: var(--tth-toi); color: var(--tth-nga); padding: 78px 0; }
.tth-nghiem h2 { font-size: clamp(27px, 3.2vw, 38px); color: var(--tth-nga); max-width: 22ch; }
.tth-nghiem__mo { color: #C6B9A8; font-size: 16px; max-width: 58ch; margin: 14px 0 0; }
.tth-nghiem__luoi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 40px; background: #4A4036; border: 1px solid #4A4036; }
.tth-nghiem__o { background: var(--tth-toi); padding: 26px 24px 28px; }
.tth-nghiem__o b { display: block; font-family: var(--tth-serif); font-size: 19px; color: var(--tth-nga); margin: 12px 0 7px; }
.tth-nghiem__o p { font-size: 14.5px; color: #C6B9A8; margin: 0; }
.tth-nghiem__so {
	display: inline-flex; align-items: center; justify-content: center;
	width: 34px; height: 34px; border: 1px solid var(--tth-dong); color: var(--tth-dong);
	font-size: 13px; font-weight: 700;
}

/* quy trình */
.tth-quy-trinh { padding: 78px 0; }
.tth-buoc { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 34px; border-top: 2px solid var(--tth-muc); }
.tth-buoc__o { padding: 24px 22px 6px; border-right: 1px solid var(--tth-vien); }
.tth-buoc__o:last-child { border-right: 0; }
.tth-buoc__so { font-family: var(--tth-serif); font-size: 34px; color: var(--tth-vien2); line-height: 1; display: block; margin-bottom: 10px; }
.tth-buoc__o b { display: block; font-family: var(--tth-serif); font-size: 19px; color: var(--tth-muc); margin-bottom: 7px; }
.tth-buoc__o p { font-size: 14.5px; color: var(--tth-mo); margin: 0; }

/* hạng mục nổi bật */
.tth-noi-bat { background: var(--tth-be); padding: 78px 0; border-top: 1px solid var(--tth-vien); }
.tth-noi-bat__dau { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 30px; }
.tth-noi-bat h2 { font-size: clamp(26px, 3vw, 36px); color: var(--tth-muc); }

/* công trình đã hoàn thiện */
.tth-cong-trinh { padding: 78px 0; }
.tth-ct-luoi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 30px; }
.tth-ct-luoi figure { margin: 0; position: relative; overflow: hidden; }
.tth-ct-luoi img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .4s ease; }
.tth-ct-luoi figure:hover img { transform: scale(1.05); }
.tth-ct-luoi figcaption {
	position: absolute; left: 0; right: 0; bottom: 0;
	background: linear-gradient(to top, rgba(43, 36, 30, .92), rgba(43, 36, 30, 0));
	color: var(--tth-nga); padding: 40px 18px 16px; font-size: 14.5px;
}
.tth-ct-luoi figcaption b { display: block; font-family: var(--tth-serif); font-size: 18px; }
.tth-ct-luoi figcaption span { color: #CBBFAF; font-size: 13px; }

/* khối gọi cuối trang */
.tth-goi { background: var(--tth-toi); color: var(--tth-nga); }
.tth-goi__in { display: grid; grid-template-columns: 1.15fr .85fr; gap: 50px; align-items: center; padding: 64px 0; }
.tth-goi h2 { font-size: clamp(26px, 3.1vw, 37px); color: var(--tth-nga); margin-bottom: 14px; }
.tth-goi p { color: #C6B9A8; margin: 0 0 24px; max-width: 52ch; }
.tth-goi__nut { display: flex; flex-wrap: wrap; gap: 12px; }
.tth-goi__hop { border: 1px solid #4A4036; padding: 26px 26px 28px; }
.tth-goi__hop dl { margin: 0; display: grid; gap: 14px; }
.tth-goi__hop dt { font-size: 11.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--tth-dong); }
.tth-goi__hop dd { margin: 3px 0 0; font-family: var(--tth-serif); font-size: 19px; color: var(--tth-nga); }
body.tth-xd .tth-goi__hop a { color: var(--tth-nga); text-decoration: none; }
body.tth-xd .tth-goi__hop a:hover { text-decoration: underline; }

/* =======================================================================
 * CHÂN TRANG
 * ===================================================================== */
.tth-chan { background: var(--tth-be); border-top: 1px solid var(--tth-vien); padding: 56px 0 0; }
.tth-chan__luoi { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 36px; padding-bottom: 44px; }
.tth-chan h4 {
	font-family: var(--tth-sans); font-size: 12px; font-weight: 700; letter-spacing: 0.16em;
	text-transform: uppercase; color: var(--tth-muc); margin: 0 0 16px;
}
.tth-chan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
body.tth-xd .tth-chan a { color: var(--tth-than); text-decoration: none; font-size: 14.5px; }
body.tth-xd .tth-chan a:hover { color: var(--tth-nau); text-decoration: underline; }
.tth-chan__gt { font-size: 14.5px; color: var(--tth-mo); margin: 14px 0 0; max-width: 38ch; }
.tth-chan__brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.tth-chan__day { border-top: 1px solid var(--tth-vien2); padding: 18px 0 24px; }
.tth-chan__day-in { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; font-size: 13.5px; color: var(--tth-mo); }
.tth-chan__demo {
	background: var(--tth-mat); border: 1px solid var(--tth-vien); border-left: 3px solid var(--tth-nau);
	padding: 14px 18px; font-size: 13.5px; color: var(--tth-than); margin-bottom: 26px;
}

/* =======================================================================
 * TRANG PHỤ
 * ===================================================================== */
.tth-page { padding-bottom: 72px; }
.tth-page__head { background: var(--tth-be); border-bottom: 1px solid var(--tth-vien); padding: 44px 0 46px; margin-bottom: 48px; }
.tth-crumb { font-size: 13px; color: var(--tth-mo); margin-bottom: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
body.tth-xd .tth-crumb a { color: var(--tth-mo); text-decoration: none; }
body.tth-xd .tth-crumb a:hover { color: var(--tth-nau); text-decoration: underline; }
.tth-page__title { font-size: clamp(30px, 3.8vw, 46px); color: var(--tth-muc); }
.tth-page__sub { font-size: 16.5px; color: var(--tth-than); max-width: 70ch; margin: 14px 0 0; }

.tth-page__body { font-size: 16.5px; }
.tth-page__body h2 { font-size: 28px; color: var(--tth-muc); margin: 32px 0 12px; }
.tth-page__body h3 { font-size: 22px; color: var(--tth-muc); margin: 26px 0 10px; }
.tth-page__body a { color: var(--tth-nau); }

/* =======================================================================
 * DANH MỤC HẠNG MỤC (WooCommerce ở chế độ xem, không giỏ hàng)
 * ===================================================================== */
.tth-shop__bar {
	display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
	padding-bottom: 22px; margin-bottom: 30px; border-bottom: 1px solid var(--tth-vien);
}
.tth-chips { display: flex; flex-wrap: wrap; gap: 9px; }
body.tth-xd .tth-chip {
	display: inline-flex; align-items: center; gap: 7px;
	padding: 8px 15px; border: 1px solid var(--tth-vien2); background: var(--tth-mat);
	font-size: 13.5px; font-weight: 600; color: var(--tth-than); text-decoration: none;
}
.tth-chip span { font-size: 12px; color: var(--tth-mo); font-weight: 400; }
body.tth-xd .tth-chip:hover { border-color: var(--tth-nau); color: var(--tth-nau); }
body.tth-xd .tth-chip.is-on { background: var(--tth-muc); border-color: var(--tth-muc); color: #fff; }
.tth-chip.is-on span { color: #C6B9A8; }

.tth-shop__sort select,
body.tth-xd .woocommerce-ordering select {
	font-family: var(--tth-sans); font-size: 14px; color: var(--tth-than);
	padding: 9px 12px; border: 1px solid var(--tth-vien2); background: var(--tth-mat); border-radius: 0;
}

body.tth-xd ul.products {
	list-style: none; margin: 0; padding: 0;
	display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px;
}
body.tth-xd ul.products::before, body.tth-xd ul.products::after { content: none; display: none; }
body.tth-xd ul.products li.product {
	width: auto; float: none; margin: 0; padding: 0;
	background: var(--tth-mat); border: 1px solid var(--tth-vien);
	display: flex; flex-direction: column; position: relative;
	transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
body.tth-xd ul.products li.product:hover { transform: translateY(-3px); box-shadow: 0 16px 38px rgba(43, 36, 30, .1); border-color: var(--tth-vien2); }

/*
 * CSS của WooCommerce đặt `.woocommerce ul.products li.product { width: 30.75%;
 * float: left }` — độ ưu tiên (0,3,2), thắng luật `body.tth-xd ul.products
 * li.product` ở trên (0,2,3). Trong lưới grid, 30,75% được tính theo bề rộng ô
 * nên mỗi thẻ co lại còn chưa đầy một phần ba ô: ba cột gầy nhom, chữ xuống
 * dòng từng từ. Luật dưới đây có thêm lớp `.woocommerce` của thẻ body nên
 * thắng lại. Trang chủ không có lớp ấy, và cũng không bị luật của WooCommerce
 * chạm tới, nên một mình luật ở trên là đủ.
 */
body.tth-xd.woocommerce ul.products li.product,
body.tth-xd .woocommerce ul.products li.product {
	width: auto; float: none; margin: 0; padding: 0;
}
body.tth-xd ul.products li.product a.woocommerce-LoopProduct-link { display: block; text-decoration: none; overflow: hidden; }
body.tth-xd ul.products li.product img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin: 0; transition: transform .35s ease; }
body.tth-xd ul.products li.product:hover img { transform: scale(1.04); }
body.tth-xd ul.products li.product h2.woocommerce-loop-product__title {
	font-family: var(--tth-serif); font-size: 20px; font-weight: 600; color: var(--tth-muc);
	padding: 18px 20px 0; margin: 0; line-height: 1.25;
}
body.tth-xd ul.products li.product .price {
	display: block; padding: 8px 20px 0; margin: 0;
	font-family: var(--tth-sans); font-size: 15px; font-weight: 600; color: var(--tth-nau);
}
.tth-gia-tu, .tth-gia-dvt { font-weight: 500; color: var(--tth-mo); }
.tth-sp-mota { padding: 8px 20px 0; font-size: 14px; color: var(--tth-mo); margin: 0; }
.tth-sp-chan { padding: 16px 20px 20px; margin-top: auto; }
body.tth-xd .tth-bao-gia {
	display: inline-flex; align-items: center; gap: 8px;
	font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
	color: var(--tth-nau); text-decoration: none; border-bottom: 2px solid var(--tth-vien2); padding-bottom: 4px;
	transition: border-color .18s ease;
}
.tth-bao-gia:hover { border-color: var(--tth-nau); }
.tth-tem {
	position: absolute; top: 0; left: 0; z-index: 2;
	background: var(--tth-muc); color: var(--tth-nga);
	font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
	padding: 6px 12px;
}
body.tth-xd ul.products li.product .onsale { display: none; }
.tth-trong { padding: 40px 0; color: var(--tth-mo); }

body.tth-xd .woocommerce-pagination { margin-top: 42px; }
body.tth-xd .woocommerce-pagination ul { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; border: 0; }
body.tth-xd .woocommerce-pagination ul li { border: 0; margin: 0; }
body.tth-xd .woocommerce-pagination a, body.tth-xd .woocommerce-pagination span.current {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 42px; height: 42px; padding: 0 10px;
	border: 1px solid var(--tth-vien2); background: var(--tth-mat);
	color: var(--tth-than); text-decoration: none; font-weight: 600; font-size: 14px;
}
body.tth-xd .woocommerce-pagination span.current { background: var(--tth-muc); border-color: var(--tth-muc); color: #fff; }

/* =======================================================================
 * CHI TIẾT HẠNG MỤC
 * ===================================================================== */
.tth-single__wrap { padding-bottom: 20px; }
body.tth-xd div.product { display: grid; grid-template-columns: 1.05fr 1fr; gap: 50px; }
body.tth-xd div.product .woocommerce-product-gallery { width: 100%; float: none; margin: 0; }
body.tth-xd div.product .woocommerce-product-gallery img { width: 100%; }
body.tth-xd div.product .entry-summary { width: 100%; float: none; margin: 0; }
body.tth-xd div.product .summary > .price {
	font-family: var(--tth-sans); font-size: 25px; font-weight: 700; color: var(--tth-nau); margin: 0 0 6px;
}
body.tth-xd div.product .woocommerce-product-details__short-description { font-size: 16.5px; color: var(--tth-than); }
body.tth-xd div.product .product_meta { font-size: 13.5px; color: var(--tth-mo); border-top: 1px solid var(--tth-vien); padding-top: 16px; margin-top: 20px; }
body.tth-xd div.product .product_meta a { color: var(--tth-nau); }

.tth-hoi { border: 1px solid var(--tth-vien); background: var(--tth-be); padding: 22px 24px 24px; margin: 24px 0 0; }
.tth-hoi b { display: block; font-family: var(--tth-serif); font-size: 19px; color: var(--tth-muc); margin-bottom: 6px; }
.tth-hoi p { font-size: 14.5px; color: var(--tth-than); margin: 0 0 16px; }
.tth-hoi__nut { display: flex; flex-wrap: wrap; gap: 11px; }

.tth-gom { display: grid; gap: 10px; margin-top: 22px; padding: 0; list-style: none; }
.tth-gom li { display: flex; gap: 10px; font-size: 15px; align-items: flex-start; }
.tth-gom svg { width: 16px; height: 16px; flex: none; margin-top: 4px; color: var(--tth-nau); }

body.tth-xd .woocommerce-tabs { grid-column: 1 / -1; margin-top: 56px; border-top: 1px solid var(--tth-vien); padding-top: 34px; }
body.tth-xd .woocommerce-tabs ul.tabs { list-style: none; margin: 0 0 24px; padding: 0; display: flex; gap: 26px; }
body.tth-xd .woocommerce-tabs ul.tabs::before { content: none; }
body.tth-xd .woocommerce-tabs ul.tabs li { margin: 0; padding: 0; background: none; border: 0; border-radius: 0; }
body.tth-xd .woocommerce-tabs ul.tabs li::before, body.tth-xd .woocommerce-tabs ul.tabs li::after { content: none; }
body.tth-xd .woocommerce-tabs ul.tabs li a {
	padding: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
	color: var(--tth-mo); text-decoration: none; border-bottom: 2px solid transparent; display: block;
}
body.tth-xd .woocommerce-tabs ul.tabs li.active a { color: var(--tth-muc); border-bottom-color: var(--tth-nau); }
body.tth-xd .woocommerce-tabs .panel > h2 { display: none; }
body.tth-xd .woocommerce-tabs .panel { font-size: 16.5px; max-width: 76ch; }

body.tth-xd .related.products, body.tth-xd .up-sells {
	grid-column: 1 / -1; margin-top: 56px; border-top: 1px solid var(--tth-vien); padding-top: 38px;
}
body.tth-xd .related.products > h2, body.tth-xd .up-sells > h2 { font-size: 28px; color: var(--tth-muc); margin-bottom: 24px; }

/* =======================================================================
 * GIỚI THIỆU / LIÊN HỆ
 * ===================================================================== */
.tth-doan { display: grid; grid-template-columns: 1.1fr .9fr; gap: 52px; align-items: start; margin-bottom: 64px; }
.tth-doan p { font-size: 16.5px; }
.tth-doan img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--tth-vien); }
.tth-doan h2 { font-size: clamp(25px, 3vw, 34px); color: var(--tth-muc); margin-bottom: 16px; }

.tth-ba { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--tth-vien); border: 1px solid var(--tth-vien); margin-bottom: 64px; }
.tth-ba__o { background: var(--tth-mat); padding: 26px 24px 28px; }
.tth-ba__o b { display: block; font-family: var(--tth-serif); font-size: 20px; color: var(--tth-muc); margin: 10px 0 7px; }
.tth-ba__o p { font-size: 14.5px; color: var(--tth-mo); margin: 0; }
.tth-ba__o svg { width: 26px; height: 26px; color: var(--tth-nau); }

.tth-lh { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: start; }
.tth-lh__hop { border: 1px solid var(--tth-vien); background: var(--tth-mat); padding: 28px; }
.tth-lh__hop dl { display: grid; gap: 18px; margin: 0; }
.tth-lh__hop dt { font-size: 11.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--tth-mo); }
.tth-lh__hop dd { margin: 4px 0 0; font-family: var(--tth-serif); font-size: 20px; color: var(--tth-muc); }
.tth-lh__hop dd a { color: var(--tth-muc); text-decoration: none; }
.tth-lh__hop dd a:hover { color: var(--tth-nau); }

.tth-form { display: grid; gap: 16px; }
.tth-form label { display: block; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; color: var(--tth-than); margin-bottom: 6px; }
.tth-form input, .tth-form select, .tth-form textarea {
	width: 100%; font-family: var(--tth-sans); font-size: 15.5px; color: var(--tth-muc);
	padding: 12px 14px; border: 1px solid var(--tth-vien2); background: var(--tth-mat); border-radius: 0;
}
.tth-form input:focus, .tth-form select:focus, .tth-form textarea:focus { outline: 2px solid var(--tth-nau); outline-offset: 1px; }
.tth-form textarea { min-height: 128px; resize: vertical; }
.tth-form__doi { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tth-form__ghi { font-size: 13px; color: var(--tth-mo); margin: 0; }

.tth-toast {
	position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 200;
	max-width: 560px; width: calc(100% - 40px);
	background: var(--tth-muc); color: var(--tth-nga); padding: 15px 20px; font-size: 14.5px;
	box-shadow: 0 16px 40px rgba(43, 36, 30, .3);
}

/* =======================================================================
 * NÚT KHỐI CỦA WOOCOMMERCE (giỏ hàng, thanh toán lấy màu từ theme.json)
 * ===================================================================== */
body.tth-xd .wc-block-components-button,
body.tth-xd .wc-block-cart__submit-button,
body.tth-xd .wc-block-components-checkout-place-order-button,
body.tth-xd .wp-block-button__link,
body.tth-xd .wc-block-components-product-button a,
body.tth-xd .woocommerce button.button,
body.tth-xd .woocommerce a.button,
body.tth-xd .woocommerce input.button {
	background: var(--tth-nau) !important;
	border: 1px solid var(--tth-nau) !important;
	color: #fff !important;
	border-radius: 0 !important;
	font-family: var(--tth-sans) !important;
	font-weight: 600 !important;
	letter-spacing: 0.04em;
	white-space: nowrap;
}
body.tth-xd .wc-block-components-button:hover,
body.tth-xd .wc-block-cart__submit-button:hover,
body.tth-xd .wc-block-components-checkout-place-order-button:hover,
body.tth-xd .wp-block-button__link:hover,
body.tth-xd .wc-block-components-product-button a:hover,
body.tth-xd .woocommerce button.button:hover,
body.tth-xd .woocommerce a.button:hover {
	background: var(--tth-nau-d) !important; border-color: var(--tth-nau-d) !important;
}
body.tth-xd .wc-block-components-button--outlined {
	background: transparent !important; color: var(--tth-muc) !important; border-color: var(--tth-vien2) !important;
}
body.tth-xd .woocommerce-message, body.tth-xd .woocommerce-info, body.tth-xd .woocommerce-error {
	border-top-color: var(--tth-nau); background: var(--tth-be); color: var(--tth-than);
}
body.tth-xd .woocommerce-message::before, body.tth-xd .woocommerce-info::before { color: var(--tth-nau); }

/* =======================================================================
 * MÀN HÌNH HẸP
 * ===================================================================== */
@media (max-width: 1100px) {
	.tth-be-mat { grid-template-columns: repeat(3, 1fr); row-gap: 26px; }
	.tth-chi-tiet__luoi { grid-template-columns: repeat(2, 1fr); }
	.tth-nghiem__luoi { grid-template-columns: repeat(2, 1fr); }
	.tth-buoc { grid-template-columns: repeat(2, 1fr); }
	.tth-buoc__o { border-bottom: 1px solid var(--tth-vien); }
	.tth-buoc__o:nth-child(2n) { border-right: 0; }
	.tth-chan__luoi { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
	.tth-head__row { min-height: 68px; }
	.tth-burger { display: block; }
	.tth-tel { display: none; }
	.tth-nav {
		position: absolute; left: 0; right: 0; top: 100%;
		background: var(--tth-nen); border-bottom: 1px solid var(--tth-vien);
		box-shadow: 0 18px 40px rgba(43, 36, 30, .12);
		display: none;
	}
	.tth-nav.is-open { display: block; }
	.tth-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 18px; }
	.tth-nav li { border-bottom: 1px solid var(--tth-vien); }
	.tth-nav li:last-child { border-bottom: 0; }
	.tth-nav a { padding: 14px 0; font-size: 14px; }
	.tth-nav a::after { content: none; }

	.tth-hero__grid { grid-template-columns: 1fr; gap: 36px; padding: 48px 0 52px; }
	.tth-hero__anh img { aspect-ratio: 3 / 2; }
	.tth-hero__the { left: 16px; bottom: 16px; }
	.tth-nhom__luoi { grid-template-columns: 1fr; }
	.tth-ct-luoi { grid-template-columns: repeat(2, 1fr); }
	.tth-goi__in { grid-template-columns: 1fr; gap: 34px; padding: 52px 0; }
	.tth-doan { grid-template-columns: 1fr; gap: 28px; }
	.tth-ba { grid-template-columns: 1fr; }
	.tth-lh { grid-template-columns: 1fr; gap: 34px; }
	body.tth-xd div.product { grid-template-columns: 1fr; gap: 30px; }
	body.tth-xd ul.products { grid-template-columns: repeat(2, 1fr); gap: 20px; }
	.tth-page__head { padding: 34px 0 36px; margin-bottom: 36px; }
}

@media (max-width: 680px) {
	body.tth-xd { font-size: 16px; }
	.tth-wrap { padding: 0 20px; }
	.tth-bar__in { min-height: 0; padding: 9px 0; font-size: 12.5px; }
	.tth-bar__ghi { display: none; }
	.tth-be-mat { grid-template-columns: repeat(2, 1fr); }
	.tth-chi-tiet__luoi { grid-template-columns: 1fr; }
	.tth-nghiem__luoi { grid-template-columns: 1fr; }
	.tth-buoc { grid-template-columns: 1fr; }
	.tth-buoc__o { border-right: 0; }
	.tth-ct-luoi { grid-template-columns: 1fr; }
	.tth-chan__luoi { grid-template-columns: 1fr; gap: 28px; }
	body.tth-xd ul.products { grid-template-columns: 1fr; }
	.tth-form__doi { grid-template-columns: 1fr; }
	.tth-hero__the { position: static; max-width: none; box-shadow: none; }
	.tth-vat-lieu, .tth-nhom, .tth-chi-tiet, .tth-bang-khu, .tth-nghiem, .tth-quy-trinh, .tth-noi-bat, .tth-cong-trinh { padding: 48px 0; }
	.tth-brand__name { font-size: 21px; }
	.tth-nut { padding: 12px 20px; font-size: 14px; }

	/* Dưới 680px bỏ dòng mô tả dưới tên thương hiệu: để lại thì hàng đầu trang
	   có bốn thứ chen nhau và tên "Tay Thợ" bị ép xuống hai dòng. Bỏ đi thì tên,
	   nút báo giá và nút menu vừa đúng một hàng ở 375px. */
	.tth-brand__tag { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	body.tth-xd *, body.tth-xd *::before, body.tth-xd *::after {
		transition-duration: .01ms !important; animation-duration: .01ms !important;
	}
}
