/*
Theme Name: Trắc Diện — Studio thiết kế & thi công trọn gói
Theme URI: https://xaydung-mau-03.mauwebsitedep.net/
Description: Mẫu website studio thiết kế – thi công trọn gói (xaydung-mau-03). Theme con của vinasite, chạy WooCommerce ở CHẾ ĐỘ DANH MỤC — không bán qua giỏ hàng, mỗi sản phẩm là một gói thiết kế hoặc thi công dẫn sang trang nhận tư vấn. Đen trắng tối giản, nhấn đỏ gạch, một họ phông sans mảnh giãn ký tự, bố cục kiểu hồ sơ kiến trúc: ảnh phối cảnh lớn, lưới dự án thưa, chú thích đánh số bên lề. Mẫu demo của VinaSite.
Author: VinaSite
Author URI: https://vinasite.com.vn/
Template: vinasite
Version: 1.0.0
Text Domain: xaydung-mau-03
*/

/* =====================================================================
 * 1. BIẾN
 * Bảng màu chỉ có đen – trắng – xám, cộng đúng MỘT màu nhấn đỏ gạch. Mọi sắc
 * xám đều lấy từ cùng một trục màu trung tính, không ngả xanh hay ngả vàng.
 * ===================================================================== */
:root {
	--ink:    #111111;
	--ink-2:  #45454A;   /* 9,2:1 trên nền trắng */
	--ink-3:  #6B6B70;   /* 5,3:1 trên nền trắng — ngưỡng thấp nhất được dùng */
	--line:   #E3E1DE;
	--line-2: #C9C6C2;
	--paper:  #FFFFFF;
	--paper-2:#F6F5F3;
	--brick:  #B33A1A;   /* 5,5:1 trên nền trắng */
	--brick-d:#8C2B11;

	--f: 'Epilogue', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;

	--wrap: 1280px;
	--gut: clamp(20px, 5vw, 72px);
	--sec: clamp(72px, 10vw, 150px);

	/* Giãn ký tự — dấu nhận diện của mẫu này, dùng lại ở mọi nhãn nhỏ. */
	--tr-lab: .26em;
	--tr-nav: .16em;
}

/* =====================================================================
 * 2. NỀN
 * ===================================================================== */
html { -webkit-text-size-adjust: 100%; }

html, body { overflow-x: clip; }

body.td-site {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--f);
	font-size: 16px;
	font-weight: 300;
	line-height: 1.75;
	-webkit-font-smoothing: antialiased;
}

/*
 * Phông phải phủ cả trang phụ (giỏ hàng, thanh toán, tài khoản) — chúng dựng
 * bằng block của WooCommerce và mặc định chạy phông của theme mẹ.
 */
body.td-site input, body.td-site select, body.td-site textarea, body.td-site button,
body.td-site .wp-block-button__link, body.td-site .wc-block-components-button,
body.td-site .woocommerce-page, body.td-site .wc-block-components-text-input input {
	font-family: var(--f);
}

body.td-site * { box-sizing: border-box; }

body.td-site img { max-width: 100%; height: auto; display: block; }

/*
 * Theme mẹ nhuộm h1–h3 trong nội dung sang màu xanh của nó bằng luật một lớp.
 * Hai lớp (`body.td-site h1`) vừa thắng được, vừa để tiêu đề tự nhận màu đúng
 * trong cả khối nền sáng lẫn nền tối, khỏi liệt kê từng ngoại lệ.
 */
body.td-site h1, body.td-site h2, body.td-site h3,
body.td-site h4, body.td-site h5, body.td-site h6 {
	color: inherit;
	font-family: var(--f);
	font-weight: 300;
	line-height: 1.16;
	letter-spacing: .005em;
	margin: 0;
}

body.td-site a { color: inherit; text-decoration: none; }
body.td-site p { margin: 0 0 1.1em; }
body.td-site p:last-child { margin-bottom: 0; }

body.td-site :focus-visible {
	outline: 2px solid var(--brick);
	outline-offset: 3px;
}

/*
 * Lề ngang của cả site nằm ở đây. Mọi lớp dùng CHUNG với `.td-wrap` phải đặt
 * khoảng cách bằng `padding-block`, đừng dùng `padding` viết tắt: viết tắt là
 * ghi đè luôn `padding: 0 var(--gut)` ở trên và nội dung dán sát mép màn hình
 * trên điện thoại.
 */
.td-wrap {
	width: 100%;
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 0 var(--gut);
}

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

body.td-site .td-skip {
	position: absolute; left: -9999px; top: 0; z-index: 200;
	background: var(--ink); color: #fff; padding: 12px 20px;
	font-size: 12px; letter-spacing: var(--tr-lab); text-transform: uppercase;
}
.td-skip:focus { left: 0; }

/* =====================================================================
 * 3. CHỮ DÙNG CHUNG
 * ===================================================================== */

/* Chú thích bên lề: số hạng mục + nhãn, giống đầu đề một bản vẽ. */
.td-note {
	display: flex; align-items: baseline; gap: 14px;
	margin: 0 0 22px;
	font-size: 11px; font-weight: 400;
	letter-spacing: var(--tr-lab); text-transform: uppercase;
	color: var(--ink-3);
}
.td-note__so { color: var(--brick); font-variant-numeric: tabular-nums; }
.td-note__nhan { flex: 1 1 auto; }
.td-note--pale { color: rgba(255,255,255,.70); }
.td-note--pale .td-note__so { color: #E8865E; }

.td-lab {
	display: inline-block;
	font-size: 11px; font-weight: 400;
	letter-spacing: var(--tr-lab); text-transform: uppercase;
	color: var(--ink-3);
}

.td-h1 { font-size: clamp(34px, 5.6vw, 72px); font-weight: 200; letter-spacing: .01em; }
.td-h2 { font-size: clamp(26px, 3.6vw, 46px); font-weight: 200; letter-spacing: .012em; }
.td-h3 { font-size: clamp(19px, 1.7vw, 24px); font-weight: 300; }

.td-lead {
	font-size: clamp(17px, 1.5vw, 21px);
	font-weight: 300; line-height: 1.7; color: var(--ink-2);
}
.td-dim { color: var(--ink-3); }

.td-rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/*
 * Nút: khung mảnh, chữ hoa giãn, không bo góc.
 *
 * Mọi luật đặt MÀU CHỮ cho một thẻ `<a>` đều phải viết kèm `body.td-site`.
 * Luật nền `body.td-site a { color: inherit }` có độ ưu tiên (0,1,1); một luật
 * chỉ-một-lớp như `.td-btn` là (0,1,0) nên thua, và nút ra chữ đen trên nền
 * đen. Đây là lỗi đã gặp thật ở bản dựng đầu.
 */
body.td-site .td-btn, .td-btn {
	display: inline-flex; align-items: center; gap: 14px;
	padding: 16px 28px;
	border: 1px solid var(--ink);
	background: var(--ink); color: #fff;
	font-size: 11px; font-weight: 500;
	letter-spacing: var(--tr-lab); text-transform: uppercase;
	white-space: nowrap; cursor: pointer;
	transition: background .22s ease, color .22s ease, border-color .22s ease;
}
body.td-site .td-btn:hover { background: var(--brick); border-color: var(--brick); color: #fff; }

body.td-site .td-btn--line { background: transparent; color: var(--ink); }
body.td-site .td-btn--line:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

body.td-site .td-btn--pale { background: transparent; border-color: rgba(255,255,255,.45); color: #fff; }
body.td-site .td-btn--pale:hover { background: #fff; border-color: #fff; color: var(--ink); }

.td-btn__ar { font-size: 13px; line-height: 1; }

/* Liên kết chữ có gạch chân chạy — dùng transform nên không tính lại bố cục. */
body.td-site .td-link, .td-link {
	display: inline-block; position: relative;
	font-size: 11px; font-weight: 500;
	letter-spacing: var(--tr-lab); text-transform: uppercase;
	padding-bottom: 5px; color: var(--ink);
}
.td-link::after {
	content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
	background: currentColor; transform: scaleX(1); transform-origin: right;
	transition: transform .3s ease;
}
body.td-site .td-link:hover { color: var(--brick); }
.td-link:hover::after { transform: scaleX(0); }

/* =====================================================================
 * 4. BỐ CỤC HAI CỘT: CHÚ THÍCH BÊN LỀ | NỘI DUNG
 * Khung xương của gần như mọi khối trong mẫu này.
 * ===================================================================== */
.td-cols {
	display: grid;
	grid-template-columns: minmax(0, 200px) minmax(0, 1fr);
	gap: clamp(28px, 5vw, 90px);
	align-items: start;
}
.td-cols__side { position: sticky; top: 108px; }

@media (max-width: 900px) {
	.td-cols { grid-template-columns: 1fr; gap: 18px; }
	.td-cols__side { position: static; }
}

.td-sec { padding: var(--sec) 0; }
.td-sec--tight { padding: clamp(48px, 6vw, 92px) 0; }
.td-sec--line { border-top: 1px solid var(--line); }

/* =====================================================================
 * 5. ĐẦU TRANG
 * Dính nhưng không đổi chiều cao khi cuộn: phần tử sticky vẫn chiếm chỗ, thu
 * chiều cao giữa chừng là cả trang bên dưới nhích lên một nhịp thấy rõ.
 * ===================================================================== */
.td-head {
	position: sticky; top: 0; z-index: 90;
	background: rgba(255,255,255,.92);
	backdrop-filter: saturate(150%) blur(10px);
	border-bottom: 1px solid var(--line);
	transition: border-color .25s ease, background .25s ease;
}
.td-head.is-stuck { background: #fff; border-bottom-color: var(--line-2); }

.td-head__in {
	display: flex; align-items: center; justify-content: space-between;
	gap: 24px; min-height: 86px;
}

.td-logo { display: flex; align-items: center; gap: 14px; color: var(--ink); }
.td-logo svg { flex: 0 0 auto; }
.td-logo__t { display: block; line-height: 1.1; }
.td-logo__n {
	display: block; font-size: 16px; font-weight: 400;
	letter-spacing: .3em; text-transform: uppercase;
}
.td-logo__s {
	display: block; margin-top: 4px;
	font-size: 9px; font-weight: 400; letter-spacing: .3em;
	text-transform: uppercase; color: var(--ink-3);
}

.td-nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 36px); }
.td-nav a {
	position: relative; padding: 6px 0;
	font-size: 11px; font-weight: 400;
	letter-spacing: var(--tr-nav); text-transform: uppercase;
	color: var(--ink-2);
}
.td-nav a::after {
	content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
	background: var(--brick); transform: scaleX(0); transform-origin: left;
	transition: transform .28s ease;
}
.td-nav a:hover, .td-nav a[aria-current="page"] { color: var(--ink); }
.td-nav a:hover::after, .td-nav a[aria-current="page"]::after { transform: scaleX(1); }

.td-head__cta { display: flex; align-items: center; gap: 18px; }
body.td-site .td-head__tel {
	font-size: 12px; font-weight: 400; letter-spacing: .08em; color: var(--ink-2);
	white-space: nowrap;
}
.td-head__tel:hover { color: var(--brick); }

/* Nút mở menu trên màn hình hẹp: ba nét mảnh. */
.td-burger {
	display: none; width: 44px; height: 44px; padding: 0;
	background: none; border: 1px solid var(--line-2); cursor: pointer;
	align-items: center; justify-content: center;
}
.td-burger__b {
	display: block; position: relative; width: 20px; height: 1px; background: var(--ink);
	transition: background .2s ease;
}
.td-burger__b::before, .td-burger__b::after {
	content: ''; position: absolute; left: 0; width: 20px; height: 1px; background: var(--ink);
	transition: transform .25s ease;
}
.td-burger__b::before { top: -6px; }
.td-burger__b::after { top: 6px; }
.td-burger[aria-expanded="true"] .td-burger__b { background: transparent; }
.td-burger[aria-expanded="true"] .td-burger__b::before { transform: translateY(6px) rotate(45deg); }
.td-burger[aria-expanded="true"] .td-burger__b::after { transform: translateY(-6px) rotate(-45deg); }

.td-nav__tel { display: none; }

@media (max-width: 1040px) {
	.td-burger { display: inline-flex; }
	body.td-site .td-head__tel { display: none; }
	.td-nav {
		display: none; position: absolute; left: 0; right: 0; top: 100%;
		flex-direction: column; align-items: stretch; gap: 0;
		background: #fff; border-bottom: 1px solid var(--line);
		padding: 8px var(--gut) 24px;
	}
	.td-nav.is-open { display: flex; }
	.td-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
	.td-nav a::after { display: none; }
	body.td-site .td-nav__tel {
		display: inline-flex; align-items: center; justify-content: center;
		margin-top: 18px; border-bottom: 0;
		color: var(--brick);
	}
}

/*
 * Dưới 760px nút gọi hành động rời khỏi đầu trang, nhường chỗ cho nút menu.
 * Luật ẩn phải viết đủ `body.td-site .td-head__cta .td-btn`: luật hiện nút là
 * `body.td-site .td-btn` (0,2,1), một luật hai lớp suông không thắng nổi nên
 * nút vẫn nằm đó và đẩy nút menu ra khỏi màn hình.
 */
@media (max-width: 760px) {
	body.td-site .td-head__cta .td-btn { display: none; }
	.td-head__in { min-height: 72px; }
}

/* Màn hình rất hẹp: giữ tên thương hiệu, bỏ dòng nhãn ba chữ bên dưới. */
@media (max-width: 420px) {
	.td-logo__s { display: none; }
	.td-logo__n { font-size: 15px; letter-spacing: .26em; }
}

/* =====================================================================
 * 6. TRANG CHỦ — HERO
 * Ảnh phối cảnh tràn chiều ngang, chữ nằm BÊN TRÊN ảnh chứ không đè lên: đè
 * chữ lên ảnh phối cảnh thì vừa nuốt mất công trình, vừa khó giữ tương phản.
 * ===================================================================== */
.td-hero { padding-top: clamp(36px, 5vw, 72px); }

.td-hero__top {
	display: flex; align-items: flex-end; justify-content: space-between;
	gap: 32px; flex-wrap: wrap; margin-bottom: clamp(26px, 3.4vw, 46px);
}
/*
 * `flex-basis` phải đặt rõ, và bề rộng tối đa phải tính bằng px.
 *
 * Để `flex: 0 1 auto` thì cột tiêu đề co về bề rộng của từ dài nhất và câu bị
 * bẻ mỗi dòng một chữ. Còn `max-width` tính bằng `ch` thì ăn theo cỡ chữ của
 * CHÍNH thẻ bọc (16px) chứ không theo cỡ chữ của `h1` bên trong — `18ch` ra
 * đúng 160px, hẹp hơn cả một từ.
 */
.td-hero__h { flex: 1 1 540px; max-width: 700px; }
.td-hero__meta { flex: 0 1 380px; }

.td-hero__fig { position: relative; margin: 0; }
.td-hero__img {
	width: 100%; aspect-ratio: 16 / 7; object-fit: cover;
	background: var(--paper-2);
}
@media (max-width: 760px) { .td-hero__img { aspect-ratio: 4 / 3; } }

.td-hero__cap {
	display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
	margin-top: 14px; font-size: 11px; letter-spacing: var(--tr-lab);
	text-transform: uppercase; color: var(--ink-3);
}

.td-hero__facts {
	display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1px; background: var(--line);
	border: 1px solid var(--line); margin-top: clamp(40px, 5vw, 76px);
}
.td-hero__fact { background: #fff; padding: 26px clamp(16px, 2vw, 28px); }
.td-hero__fact b {
	display: block; font-size: clamp(18px, 1.9vw, 24px); font-weight: 200;
	letter-spacing: .01em; margin-bottom: 8px;
}
.td-hero__fact span {
	display: block; font-size: 11px; letter-spacing: var(--tr-lab);
	text-transform: uppercase; color: var(--ink-3); line-height: 1.6;
}
@media (max-width: 860px) { .td-hero__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* =====================================================================
 * 7. TRANG CHỦ — TUYÊN NGÔN, QUY TRÌNH, HẠNG MỤC, DỰ ÁN
 * ===================================================================== */
.td-say__h { max-width: 22ch; margin-bottom: 28px; }
.td-say__p { max-width: 62ch; }

/* Quy trình: danh sách đánh số, mỗi dòng một nét kẻ mảnh phía trên. */
.td-steps { display: grid; gap: 0; }
.td-step {
	display: grid; grid-template-columns: 72px minmax(0, 1fr) minmax(0, 1.4fr);
	gap: clamp(14px, 3vw, 48px);
	padding: clamp(22px, 3vw, 36px) 0;
	border-top: 1px solid var(--line);
	align-items: start;
}
.td-step:last-child { border-bottom: 1px solid var(--line); }
.td-step__so {
	font-size: 11px; letter-spacing: var(--tr-lab); color: var(--brick);
	font-variant-numeric: tabular-nums; padding-top: 6px;
}
.td-step__t { font-size: clamp(18px, 1.6vw, 22px); font-weight: 300; }
.td-step__d { color: var(--ink-2); font-size: 15px; }
@media (max-width: 760px) {
	.td-step { grid-template-columns: 46px minmax(0, 1fr); row-gap: 8px; }
	.td-step__d { grid-column: 2; }
}

/* Ba hạng mục lớn: ảnh dọc thưa, chú thích nhỏ bên dưới. */
.td-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.6vw, 40px); }
@media (max-width: 860px) { .td-fields { grid-template-columns: 1fr; max-width: 460px; } }

.td-field { display: block; }
.td-field__fig { overflow: hidden; margin: 0 0 18px; background: var(--paper-2); }
.td-field__img {
	width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
	transition: transform .7s cubic-bezier(.2,.7,.3,1);
}
.td-field:hover .td-field__img { transform: scale(1.04); }
.td-field__k {
	display: flex; align-items: baseline; gap: 12px; margin-bottom: 10px;
	font-size: 11px; letter-spacing: var(--tr-lab); text-transform: uppercase; color: var(--ink-3);
}
.td-field__k i { font-style: normal; color: var(--brick); }
.td-field__t { font-size: clamp(19px, 1.7vw, 23px); font-weight: 300; margin-bottom: 10px; }
.td-field:hover .td-field__t { color: var(--brick); }
.td-field__d { font-size: 15px; color: var(--ink-2); margin-bottom: 16px; }

/* Lưới dự án thưa: hai cột, cột phải tụt xuống như bố cục tạp chí kiến trúc. */
.td-works { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 96px); }
.td-works > *:nth-child(even) { margin-top: clamp(0px, 9vw, 130px); }
@media (max-width: 760px) {
	.td-works { grid-template-columns: 1fr; gap: 44px; }
	.td-works > *:nth-child(even) { margin-top: 0; }
}

.td-work__fig { margin: 0 0 16px; overflow: hidden; background: var(--paper-2); }
.td-work__img {
	width: 100%; aspect-ratio: 3 / 2; object-fit: cover;
	filter: grayscale(100%); transition: filter .6s ease, transform .7s cubic-bezier(.2,.7,.3,1);
}
.td-work:hover .td-work__img { filter: grayscale(0); transform: scale(1.03); }
.td-work__t { font-size: clamp(19px, 1.8vw, 25px); font-weight: 300; margin-bottom: 8px; }
.td-work__m {
	display: flex; gap: 16px; flex-wrap: wrap;
	font-size: 11px; letter-spacing: var(--tr-lab); text-transform: uppercase; color: var(--ink-3);
}
.td-work__m i { font-style: normal; color: var(--brick); }

/* Dải gọi hành động nền đen. */
.td-cta { background: var(--ink); color: #fff; }
.td-cta__in {
	display: grid; grid-template-columns: minmax(0, 1fr) auto;
	gap: clamp(26px, 4vw, 64px); align-items: end;
}
.td-cta h2 { max-width: 20ch; margin-bottom: 16px; }
.td-cta p { color: rgba(255,255,255,.78); max-width: 52ch; }
@media (max-width: 760px) { .td-cta__in { grid-template-columns: 1fr; align-items: start; } }

/* =====================================================================
 * 8. CHÂN TRANG
 * ===================================================================== */
.td-foot { background: var(--paper-2); border-top: 1px solid var(--line); }
.td-foot__top {
	display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
	gap: clamp(26px, 3.4vw, 56px);
	padding-block: clamp(50px, 6vw, 86px) clamp(36px, 4vw, 58px);
}
@media (max-width: 980px) { .td-foot__top { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .td-foot__top { grid-template-columns: 1fr; } }

.td-foot__brand .td-logo { margin-bottom: 18px; }
.td-foot__brand p { font-size: 14px; color: var(--ink-2); max-width: 34ch; }

.td-foot h2 {
	font-size: 11px; font-weight: 400; letter-spacing: var(--tr-lab);
	text-transform: uppercase; color: var(--ink-3); margin-bottom: 16px;
}
.td-foot ul { list-style: none; margin: 0; padding: 0; }
.td-foot li { margin-bottom: 10px; font-size: 14px; }
.td-foot li a { color: var(--ink-2); }
.td-foot li a:hover { color: var(--brick); }
.td-foot address { font-style: normal; font-size: 14px; color: var(--ink-2); line-height: 1.9; }
.td-foot address a:hover { color: var(--brick); }

.td-foot__bot {
	border-top: 1px solid var(--line);
	padding-block: 22px 34px;
	display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
	font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3);
}

.td-demo {
	border-top: 1px solid var(--line);
	padding: 16px 0;
	font-size: 12px; line-height: 1.7; color: var(--ink-3);
}
.td-demo b { font-weight: 500; color: var(--ink-2); }

/* =====================================================================
 * 9. ĐẦU TRANG PHỤ + TRANG TĨNH
 * `page.php` của theme dùng chung khối này, nhờ đó giỏ hàng / thanh toán /
 * tài khoản không rơi về theme mẹ.
 * ===================================================================== */
.td-phead { padding: clamp(40px, 5vw, 76px) 0 clamp(26px, 3vw, 44px); border-bottom: 1px solid var(--line); }
.td-crumb {
	display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px;
	font-size: 11px; letter-spacing: var(--tr-lab); text-transform: uppercase; color: var(--ink-3);
}
.td-crumb a:hover { color: var(--brick); }
.td-phead__t { font-size: clamp(30px, 4.4vw, 56px); font-weight: 200; }
.td-phead__d { margin-top: 16px; max-width: 58ch; color: var(--ink-2); }

.td-page__body { padding-block: clamp(40px, 5vw, 72px) var(--sec); }
.td-page__body h2 { font-size: clamp(22px, 2.4vw, 30px); margin: 1.6em 0 .6em; }
.td-page__body h3 { font-size: clamp(18px, 1.8vw, 22px); margin: 1.4em 0 .5em; }
.td-page__body ul, .td-page__body ol { padding-left: 1.2em; color: var(--ink-2); }
.td-page__body li { margin-bottom: .5em; }
.td-page__body a { color: var(--brick); text-decoration: underline; text-underline-offset: 3px; }

/* =====================================================================
 * 10. CỬA HÀNG — CHẾ ĐỘ DANH MỤC
 * Không giỏ hàng: thẻ sản phẩm là một hạng mục dịch vụ, nút dẫn sang trang
 * nhận tư vấn. Lưới ba cột, thưa, viền hairline thay vì bóng đổ.
 * ===================================================================== */
.td-shop__bar {
	display: flex; align-items: center; justify-content: space-between;
	gap: 20px; flex-wrap: wrap;
	padding: 22px 0; border-bottom: 1px solid var(--line);
}
.td-chips { display: flex; gap: 8px; flex-wrap: wrap; }
body.td-site .td-chip {
	display: inline-block; padding: 9px 18px; border: 1px solid var(--line-2);
	font-size: 11px; letter-spacing: var(--tr-lab); text-transform: uppercase; color: var(--ink-2);
	transition: border-color .2s ease, color .2s ease, background .2s ease;
}
body.td-site .td-chip:hover { border-color: var(--ink); color: var(--ink); }
body.td-site .td-chip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }

.td-sort select {
	appearance: none; -webkit-appearance: none;
	padding: 9px 38px 9px 16px; border: 1px solid var(--line-2); background-color: #fff;
	font-size: 11px; letter-spacing: var(--tr-lab); text-transform: uppercase; color: var(--ink-2);
	background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%),
	                  linear-gradient(135deg, var(--ink-3) 50%, transparent 50%);
	background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
	background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
	border-radius: 0; cursor: pointer;
}

body.td-site ul.products {
	list-style: none; margin: 0; padding: clamp(34px, 4vw, 56px) 0 0;
	display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(22px, 3vw, 48px) clamp(18px, 2.4vw, 40px);
}
@media (max-width: 1000px) { body.td-site ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { body.td-site ul.products { grid-template-columns: 1fr; } }

/*
 * WooCommerce in hai pseudo-element clearfix (`ul.products::before/::after`)
 * cho bố cục float đời cũ. Trong một lưới grid, pseudo-element CŨNG LÀ MỘT Ô —
 * `::before` chiếm cột 1 nên mọi thẻ sản phẩm bị đẩy lệch một ô và hàng đầu
 * chỉ còn hai thẻ. Phải tắt hẳn.
 */
body.td-site ul.products::before, body.td-site ul.products::after { content: none; display: none; }

body.td-site ul.products li.product { margin: 0; padding: 0; width: auto; float: none; list-style: none; }
body.td-site ul.products li.product::before { display: none; }

.td-card { display: flex; flex-direction: column; height: 100%; }
.td-card__fig { position: relative; overflow: hidden; margin: 0 0 16px; background: var(--paper-2); }
.td-card__fig img {
	width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
	transition: transform .7s cubic-bezier(.2,.7,.3,1);
}
.td-card:hover .td-card__fig img { transform: scale(1.045); }
.td-card__cat {
	display: block; margin-bottom: 9px;
	font-size: 10px; letter-spacing: var(--tr-lab); text-transform: uppercase; color: var(--ink-3);
}
.td-card__t { font-size: clamp(17px, 1.4vw, 20px); font-weight: 300; margin-bottom: 9px; }
.td-card:hover .td-card__t { color: var(--brick); }
.td-card__x { font-size: 14px; color: var(--ink-2); margin-bottom: 16px; flex: 1 1 auto; }
.td-card__foot {
	display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
	border-top: 1px solid var(--line); padding-top: 14px;
}

/* Giá: "từ … ₫/m²". Không phải giá bán — chân trang và từng thẻ đều ghi rõ. */
.td-gia { font-size: 15px; font-weight: 400; color: var(--ink); letter-spacing: .01em; }
.td-gia .woocommerce-Price-amount { font-weight: 400; }
.td-gia__tu, .td-gia__dv { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }

body.td-site .td-card__go {
	font-size: 11px; font-weight: 500; letter-spacing: var(--tr-lab);
	text-transform: uppercase; color: var(--brick); white-space: nowrap;
}
body.td-site .td-card__go:hover { color: var(--brick-d); text-decoration: underline; text-underline-offset: 4px; }

.td-empty { padding: clamp(48px, 6vw, 90px) 0; color: var(--ink-2); }

/* Phân trang */
body.td-site .woocommerce-pagination { padding: clamp(34px, 4vw, 58px) 0 0; }
body.td-site .woocommerce-pagination ul {
	list-style: none; display: flex; gap: 8px; margin: 0; padding: 0; border: 0;
}
body.td-site .woocommerce-pagination li { border: 0; margin: 0; }
body.td-site .woocommerce-pagination a, body.td-site .woocommerce-pagination span {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 42px; height: 42px; padding: 0 12px;
	border: 1px solid var(--line-2); background: #fff;
	font-size: 12px; color: var(--ink-2);
}
body.td-site .woocommerce-pagination .current { background: var(--ink); border-color: var(--ink); color: #fff; }

/* =====================================================================
 * 11. TRANG CHI TIẾT HẠNG MỤC
 * ===================================================================== */
.td-sp { padding-block: clamp(34px, 4vw, 64px) 0; }
.td-sp__grid {
	display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	gap: clamp(26px, 4vw, 72px); align-items: start;
}
@media (max-width: 900px) { .td-sp__grid { grid-template-columns: 1fr; } }

body.td-site .td-sp__anh img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--paper-2); }
body.td-site .td-sp__anh .woocommerce-product-gallery__wrapper { margin: 0; }
body.td-site .td-sp__anh .flex-control-thumbs { display: flex; gap: 8px; list-style: none; margin: 8px 0 0; padding: 0; }
body.td-site .td-sp__anh .flex-control-thumbs li { width: 86px; }

.td-sp__t { font-size: clamp(27px, 3.4vw, 44px); font-weight: 200; margin-bottom: 18px; }
.td-sp__gia { padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.td-sp__gia .td-gia { font-size: clamp(19px, 2vw, 25px); font-weight: 300; }
.td-sp__x { color: var(--ink-2); margin-bottom: 26px; }
.td-sp__acts { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.td-sp__meta {
	border-top: 1px solid var(--line); padding-top: 18px;
	font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3);
	display: grid; gap: 7px;
}
.td-sp__meta a { color: var(--ink-2); }
.td-sp__meta a:hover { color: var(--brick); }

.td-sp__noi { padding: clamp(56px, 7vw, 110px) 0 0; }
.td-sp__noi p { color: var(--ink-2); max-width: 70ch; }
.td-sp__noi h2 { font-size: clamp(21px, 2.2vw, 28px); margin-bottom: 18px; }
.td-sp__noi ul { color: var(--ink-2); padding-left: 1.1em; }

body.td-site .related.products { padding: clamp(56px, 7vw, 110px) 0 0; }
body.td-site .related.products h2 {
	font-size: clamp(21px, 2.2vw, 28px); font-weight: 200; margin-bottom: 8px;
}
body.td-site .related.products ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1000px) { body.td-site .related.products ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { body.td-site .related.products ul.products { grid-template-columns: 1fr; } }

/* =====================================================================
 * 12. TRANG GIỚI THIỆU & LIÊN HỆ
 * ===================================================================== */
.td-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(26px, 4vw, 72px); align-items: center; }
@media (max-width: 860px) { .td-split { grid-template-columns: 1fr; } }
.td-split img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--paper-2); }

.td-vals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.td-vals > div { background: #fff; padding: clamp(24px, 3vw, 38px); }
.td-vals h3 { font-size: 18px; margin: 12px 0 10px; }
.td-vals p { font-size: 14px; color: var(--ink-2); }
@media (max-width: 860px) { .td-vals { grid-template-columns: 1fr; } }

.td-lh { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(28px, 4vw, 76px); align-items: start; }
@media (max-width: 900px) { .td-lh { grid-template-columns: 1fr; } }

.td-lh__row { padding: 18px 0; border-bottom: 1px solid var(--line); }
.td-lh__row:first-child { border-top: 1px solid var(--line); }
.td-lh__k { display: block; font-size: 10px; letter-spacing: var(--tr-lab); text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.td-lh__v { font-size: 17px; font-weight: 300; }
.td-lh__v a:hover { color: var(--brick); }

.td-form { border: 1px solid var(--line); padding: clamp(24px, 3vw, 40px); }
.td-form__r { margin-bottom: 20px; }
.td-form label {
	display: block; margin-bottom: 8px;
	font-size: 10px; letter-spacing: var(--tr-lab); text-transform: uppercase; color: var(--ink-3);
}
.td-form input, .td-form textarea, .td-form select {
	width: 100%; padding: 13px 14px;
	border: 1px solid var(--line-2); background: #fff; color: var(--ink);
	font-size: 15px; font-weight: 300; border-radius: 0;
}
.td-form input:focus, .td-form textarea:focus, .td-form select:focus { border-color: var(--ink); outline: none; }
.td-form textarea { min-height: 128px; resize: vertical; }
.td-form__note { font-size: 12px; color: var(--ink-3); margin-top: 14px; }

.td-toast {
	position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%);
	z-index: 120; max-width: min(620px, calc(100vw - 32px));
	background: var(--ink); color: #fff; padding: 16px 22px;
	font-size: 13px; line-height: 1.6;
}

/* =====================================================================
 * 13. TRANG WOOCOMMERCE DỰNG BẰNG BLOCK
 * Giỏ hàng / thanh toán / tài khoản lấy màu nút từ `theme.json`, không từ CSS
 * của theme con — phải khai lại, nếu không nút ra xanh dương mặc định.
 * ===================================================================== */
body.td-site .wc-block-components-button,
body.td-site .wc-block-cart__submit-button,
body.td-site .wc-block-components-checkout-place-order-button,
body.td-site .woocommerce-button, body.td-site .woocommerce .button,
body.td-site .wp-block-button__link {
	background: var(--ink) !important; border: 1px solid var(--ink) !important;
	color: #fff !important; border-radius: 0 !important;
	font-family: var(--f); font-size: 11px !important; font-weight: 500 !important;
	letter-spacing: var(--tr-lab); text-transform: uppercase;
	padding: 15px 26px !important; white-space: nowrap;
}
body.td-site .wc-block-components-button:hover,
body.td-site .wc-block-cart__submit-button:hover,
body.td-site .wc-block-components-checkout-place-order-button:hover,
body.td-site .woocommerce-button:hover, body.td-site .woocommerce .button:hover,
body.td-site .wp-block-button__link:hover {
	background: var(--brick) !important; border-color: var(--brick) !important; color: #fff !important;
}

body.td-site .wc-block-components-button__text { color: inherit; }

body.td-site .woocommerce-message, body.td-site .woocommerce-info,
body.td-site .woocommerce-error, body.td-site .wc-block-components-notice-banner {
	border: 1px solid var(--line-2); border-left: 2px solid var(--brick);
	background: var(--paper-2); color: var(--ink-2);
	padding: 16px 20px; margin: 0 0 24px; border-radius: 0; list-style: none;
}

body.td-site .woocommerce form .form-row input.input-text,
body.td-site .woocommerce form .form-row textarea,
body.td-site .wc-block-components-text-input input {
	border: 1px solid var(--line-2) !important; border-radius: 0 !important;
	font-family: var(--f);
}

/* =====================================================================
 * 14. HIỆN DẦN
 * Trạng thái ẩn chỉ áp dụng khi `<html>` có lớp `td-js` — lớp ấy do một dòng
 * script nội tuyến ở `wp_head` gắn vào. Tắt JavaScript (hoặc bộ thu thập của
 * Google không chạy script) thì không có lớp, nội dung hiện đầy đủ ngay, và
 * cũng không có cảnh nội dung loé lên rồi bị giấu đi.
 * ===================================================================== */
.td-js .td-rev { opacity: 0; transform: translateY(16px); }
.td-js .td-rev.is-in { opacity: 1; transform: none; transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.3,1); }

@media (prefers-reduced-motion: reduce) {
	body.td-site *, body.td-site *::before, body.td-site *::after {
		animation-duration: .001ms !important; transition-duration: .001ms !important;
	}
	.td-js .td-rev { opacity: 1; transform: none; }
}
