/*
Theme Name: Hiên Nhà — Văn phòng kiến trúc nhà ở
Theme URI: https://kientruc-mau-01.mauwebsitedep.net/
Description: Mẫu website văn phòng kiến trúc nhà ở dân dụng (kientruc-mau-01). 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 công trình đã thiết kế, mỗi nút dẫn sang trang đặt lịch tư vấn. Trắng ấm với xám ngả nâu và một điểm nhấn đồng trầm, một họ phông sans (Chivo), bố cục portfolio: ảnh bìa công trình lớn, chú thích ngắn dưới ảnh, trang chi tiết kể quá trình thiết kế. Mẫu demo của VinaSite.
Author: VinaSite
Author URI: https://vinasite.com.vn/
Template: vinasite
Version: 1.0.0
Text Domain: kientruc-mau-01
*/

/* =====================================================================
 * 1. BIẾN
 * Trục màu trung tính ngả NÂU (không ngả xanh), cộng đúng một màu nhấn:
 * đồng trầm. Mọi sắc xám đều lấy từ cùng một trục để các khối nền kề nhau
 * không bị lệch tông.
 * ===================================================================== */
:root {
	--muc:    #241F1A;   /* chữ chính */
	--muc-2:  #4E463D;   /* 8,1:1 trên nền giấy */
	--muc-3:  #6E6458;   /* 5,0:1 trên nền giấy — ngưỡng thấp nhất được dùng */
	--vien:   #E7E0D6;
	--vien-2: #D3CABC;
	--giay:   #FFFFFF;
	--giay-2: #FAF7F2;   /* trắng ấm, nền mặc định của trang */
	--kem:    #F2ECE3;   /* nền khối nhấn, cũng là màu chữ trên nền tối */
	--dong:   #7D5A33;   /* 6,0:1 trên nền trắng */
	--dong-2: #B08A58;   /* bản sáng, chỉ dùng trên nền tối */
	--dam:    #2B251F;   /* khối nền tối ấm */

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

	--wrap: 1240px;
	--gut: clamp(20px, 5vw, 64px);
	--sec: clamp(64px, 9vw, 128px);

	/* Giãn ký tự của nhãn nhỏ — dấu nhận diện dùng lại ở mọi đầu khối. */
	--tr: .18em;
}

/* =====================================================================
 * 2. NỀN
 * ===================================================================== */
html { -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }

body.hn-site {
	margin: 0;
	background: var(--giay-2);
	color: var(--muc);
	font-family: var(--f);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.7;
	-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.hn-site input, body.hn-site select, body.hn-site textarea, body.hn-site button,
body.hn-site .wp-block-button__link, body.hn-site .wc-block-components-button,
body.hn-site .woocommerce-page, body.hn-site .wc-block-components-text-input input,
body.hn-site .wc-block-components-title, body.hn-site .wc-block-components-product-name {
	font-family: var(--f);
}

body.hn-site * { box-sizing: border-box; }
body.hn-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.hn-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.hn-site h1, body.hn-site h2, body.hn-site h3,
body.hn-site h4, body.hn-site h5, body.hn-site h6 {
	color: inherit;
	font-family: var(--f);
	font-weight: 500;
	letter-spacing: -.012em;
	line-height: 1.22;
	margin: 0;
}

/*
 * Theme mẹ nhuộm liên kết theo bảng màu của nó, nên mọi `a` phải nhận lại màu
 * của khối chứa. Luật này có hai lớp (`body.hn-site a`) nên nó THẮNG CẢ những
 * luật một lớp của chính theme này — vì vậy mọi liên kết có màu riêng (nút,
 * liên kết mũi tên, menu, thẻ lọc) đều phải khai lại với `body.hn-site` ở
 * trước. Bỏ qua bước đó là chữ trắng trên nền trắng.
 */
body.hn-site a { color: inherit; }

body.hn-site a.hn-btn { color: #fff; }
body.hn-site a.hn-btn--vien { color: var(--muc); }
body.hn-site a.hn-btn--vien:hover { color: #fff; }
body.hn-site a.hn-btn--vien-sang { color: #fff; }
body.hn-site a.hn-btn--vien-sang:hover { color: var(--muc); }
body.hn-site a.hn-btn--sang { color: var(--muc); }
body.hn-site a.hn-lien { color: var(--dong); }
body.hn-site .hn-nav a { color: var(--muc-2); }
body.hn-site .hn-nav a:hover,
body.hn-site .hn-nav a[aria-current="page"] { color: var(--muc); }
body.hn-site a.hn-chip { color: var(--muc-2); }
body.hn-site a.hn-chip:hover { color: var(--muc); }
body.hn-site a.hn-chip.is-on { color: #fff; }
body.hn-site .hn-foot__bot a { color: var(--dong-2); }
body.hn-site .hn-crumb a:hover,
body.hn-site .hn-the__ten a:hover,
body.hn-site .hn-noi__ct h3 a:hover,
body.hn-site .hn-lh__hop a:hover,
body.hn-site .hn-gt2__lh a:hover { color: var(--dong); }

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

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

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

.hn-wrap {
	width: 100%;
	max-width: var(--wrap);
	margin: 0 auto;
	padding-inline: var(--gut);
}

/* =====================================================================
 * 3. NHÃN, NÚT, LIÊN KẾT
 * ===================================================================== */
.hn-nhan {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: var(--tr);
	text-transform: uppercase;
	color: var(--dong);
	margin-bottom: 14px;
}
.hn-nhan i {
	display: block;
	width: 26px;
	height: 1px;
	background: currentColor;
}

.hn-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: var(--muc);
	color: #fff;
	border: 1px solid var(--muc);
	padding: 14px 26px;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: .02em;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.hn-btn:hover { background: var(--dong); border-color: var(--dong); color: #fff; }

.hn-btn--nho { padding: 10px 18px; font-size: 13px; }

.hn-btn--vien {
	background: transparent;
	color: var(--muc);
	border-color: var(--vien-2);
}
.hn-btn--vien:hover { background: var(--muc); border-color: var(--muc); color: #fff; }

.hn-btn--vien-sang {
	background: transparent;
	color: #fff;
	border-color: rgba(255, 255, 255, .55);
}
.hn-btn--vien-sang:hover { background: #fff; color: var(--muc); border-color: #fff; }

.hn-btn--sang {
	background: var(--kem);
	color: var(--muc);
	border-color: var(--kem);
}
.hn-btn--sang:hover { background: var(--dong-2); border-color: var(--dong-2); color: var(--muc); }

.hn-lien {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 500;
	color: var(--dong);
	text-decoration: none;
	border-bottom: 1px solid var(--vien-2);
	padding-bottom: 3px;
	transition: border-color .2s ease, gap .2s ease;
}
.hn-lien:hover { border-color: var(--dong); gap: 12px; }

/* =====================================================================
 * 4. ĐẦU TRANG
 * Dính, chiều cao KHÔNG đổi khi cuộn: `position: sticky` vẫn chiếm chỗ trong
 * dòng chảy, thu chiều cao lúc đang cuộn là kéo cả trang bên dưới nhích lên
 * một nhịp thấy rõ. Cảm giác gọn lại tạo bằng nền đặc hơn và đường kẻ.
 * ===================================================================== */
.hn-head {
	position: sticky;
	top: 0;
	z-index: 60;
	background: rgba(250, 247, 242, .92);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid transparent;
	transition: background .25s ease, border-color .25s ease;
}
.hn-head.is-stuck {
	background: var(--giay);
	border-bottom-color: var(--vien);
}

.hn-head__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 84px;
}

.hn-brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	color: inherit;
}
.hn-brand__mark svg { display: block; }
.hn-brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.hn-brand__name { font-size: 19px; font-weight: 600; letter-spacing: .01em; }
.hn-brand__tag {
	font-size: 9.5px;
	font-weight: 500;
	letter-spacing: var(--tr);
	color: var(--muc-3);
	margin-top: 3px;
}
.hn-brand--sang .hn-brand__tag { color: rgba(242, 236, 227, .72); }

.hn-nav ul {
	display: flex;
	align-items: center;
	gap: 26px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.hn-nav a {
	position: relative;
	display: block;
	font-size: 14px;
	font-weight: 400;
	color: var(--muc-2);
	text-decoration: none;
	padding: 6px 0;
	transition: color .2s ease;
}
.hn-nav a::after {
	content: '';
	position: absolute;
	left: 0; right: 0; bottom: 0;
	height: 1px;
	background: var(--dong);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .22s ease;
}
.hn-nav a:hover, .hn-nav a[aria-current="page"] { color: var(--muc); }
.hn-nav a:hover::after, .hn-nav a[aria-current="page"]::after { transform: scaleX(1); }
.hn-nav__lh { display: none; }

.hn-tools { display: flex; align-items: center; gap: 14px; }

.hn-tel {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 14px;
	font-weight: 500;
	color: var(--muc);
	text-decoration: none;
}
.hn-tel svg { width: 17px; height: 17px; color: var(--dong); }

.hn-burger {
	display: none;
	background: none;
	border: 1px solid var(--vien-2);
	padding: 9px 10px;
	cursor: pointer;
}
.hn-burger span[aria-hidden] { display: block; width: 20px; }
.hn-burger i {
	display: block;
	height: 1.5px;
	background: var(--muc);
	margin: 4px 0;
}

/* =====================================================================
 * 5. HERO
 * Ảnh công trình phủ kín, phủ lớp nâu than để chữ trắng vẫn đọc được trên mọi
 * tấm ảnh — nhiều ảnh nhà ở có mảng trời sáng ở nửa trên.
 * ===================================================================== */
.hn-hero {
	position: relative;
	background: var(--dam) center / cover no-repeat;
	color: #fff;
	isolation: isolate;
}
.hn-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(36, 31, 26, .62) 0%, rgba(36, 31, 26, .74) 55%, rgba(36, 31, 26, .88) 100%);
	z-index: -1;
}

.hn-hero__in {
	padding-top: clamp(80px, 13vw, 170px);
	padding-bottom: clamp(90px, 14vw, 180px);
	max-width: 900px;
}
.hn-hero .hn-nhan { color: var(--dong-2); }
.hn-hero__t {
	font-size: clamp(32px, 5.4vw, 62px);
	font-weight: 500;
	letter-spacing: -.02em;
	margin-bottom: 20px;
}
.hn-hero__d {
	max-width: 620px;
	font-size: clamp(15px, 1.3vw, 17.5px);
	color: rgba(255, 255, 255, .86);
	margin: 0 0 32px;
}
.hn-hero__nut { display: flex; flex-wrap: wrap; gap: 12px; }

.hn-hero__ct {
	border-top: 1px solid rgba(255, 255, 255, .22);
	padding: 14px 0;
	font-size: 11.5px;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .66);
}

/* =====================================================================
 * 6. DẢI BỐN Ý
 * ===================================================================== */
.hn-dai {
	background: var(--giay);
	border-bottom: 1px solid var(--vien);
}
.hn-dai__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(24px, 3vw, 44px);
	padding-block: clamp(42px, 5vw, 64px);
}
.hn-dai__grid h2 {
	font-size: 16px;
	font-weight: 600;
	margin-bottom: 8px;
}
.hn-dai__grid h2::before {
	content: '';
	display: block;
	width: 22px;
	height: 2px;
	background: var(--dong);
	margin-bottom: 14px;
}
.hn-dai__grid p {
	margin: 0;
	font-size: 14.5px;
	color: var(--muc-3);
	line-height: 1.65;
}

/* =====================================================================
 * 7. ĐẦU KHỐI
 * ===================================================================== */
.hn-dau {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
	gap: clamp(20px, 4vw, 60px);
	align-items: end;
	padding-top: var(--sec);
	padding-bottom: clamp(28px, 3.5vw, 48px);
}
.hn-dau__t {
	font-size: clamp(26px, 3.4vw, 42px);
	font-weight: 500;
}
.hn-dau__d {
	margin: 0;
	font-size: 15.5px;
	color: var(--muc-3);
	max-width: 46ch;
}

/* =====================================================================
 * 8. PORTFOLIO
 * Thẻ công trình: ảnh 4:3 cắt sẵn từ CDN, chú thích nằm DƯỚI ảnh theo kiểu
 * chú thích trong hồ sơ — không có bóng đổ, không có khung.
 * ===================================================================== */
.hn-pf { background: var(--giay-2); }

/* Công trình nổi bật: ảnh ngang lớn, chú thích thành cột bên phải. */
.hn-noi {
	display: grid;
	grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
	gap: clamp(20px, 3vw, 44px);
	align-items: center;
	margin-bottom: clamp(44px, 5vw, 76px);
}
.hn-noi__anh {
	display: block;
	overflow: hidden;
	background: var(--kem);
}
.hn-noi__anh img {
	width: 100%;
	transition: transform .55s cubic-bezier(.22, .61, .36, 1);
}
.hn-noi:hover .hn-noi__anh img { transform: scale(1.03); }
.hn-noi__ct h3 {
	font-size: clamp(22px, 2.4vw, 30px);
	margin-bottom: 10px;
}
.hn-noi__ct h3 a { text-decoration: none; }
.hn-noi__ct h3 a:hover { color: var(--dong); }
.hn-noi__ts {
	font-size: 12.5px;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--muc-3);
	margin: 0 0 14px;
}
.hn-noi__d {
	font-size: 15px;
	color: var(--muc-2);
	margin: 0 0 20px;
}

.hn-luoi {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(22px, 2.6vw, 38px);
}

.hn-the { min-width: 0; }
.hn-the__anh {
	display: block;
	overflow: hidden;
	background: var(--kem);
	margin-bottom: 16px;
}
.hn-the__anh img {
	width: 100%;
	transition: transform .55s cubic-bezier(.22, .61, .36, 1);
}
.hn-the:hover .hn-the__anh img { transform: scale(1.04); }

.hn-the__dm {
	display: block;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: var(--tr);
	text-transform: uppercase;
	color: var(--dong);
	margin-bottom: 7px;
}
.hn-the__ten {
	font-size: 19px;
	font-weight: 500;
	margin-bottom: 7px;
}
.hn-the__ten a { text-decoration: none; }
.hn-the__ten a:hover { color: var(--dong); }
.hn-the__ts {
	font-size: 12.5px;
	color: var(--muc-3);
	margin: 0 0 8px;
	padding-top: 8px;
	border-top: 1px solid var(--vien);
}
.hn-the__ngan {
	font-size: 14.5px;
	color: var(--muc-2);
	margin: 0;
	line-height: 1.6;
}

.hn-pf__xem {
	margin: clamp(38px, 4.5vw, 62px) 0 0;
	text-align: center;
}

/* =====================================================================
 * 9. NHÓM CÔNG TRÌNH
 * ===================================================================== */
.hn-nhom { background: var(--giay); border-top: 1px solid var(--vien); }
.hn-nhom__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(22px, 2.6vw, 38px);
	padding-bottom: var(--sec);
}
.hn-nhom__o {
	display: block;
	text-decoration: none;
	color: inherit;
	min-width: 0;
}
.hn-nhom__anh {
	display: block;
	overflow: hidden;
	background: var(--kem);
	margin-bottom: 16px;
}
.hn-nhom__anh img {
	width: 100%;
	transition: transform .55s cubic-bezier(.22, .61, .36, 1);
}
.hn-nhom__o:hover .hn-nhom__anh img { transform: scale(1.04); }
.hn-nhom__ct { display: block; }
.hn-nhom__ten {
	display: block;
	font-size: 20px;
	font-weight: 500;
}
.hn-nhom__so {
	display: block;
	font-size: 12px;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: var(--dong);
	margin: 6px 0 10px;
}
.hn-nhom__d {
	display: block;
	font-size: 14.5px;
	color: var(--muc-3);
	line-height: 1.6;
}

/* =====================================================================
 * 10. QUÁ TRÌNH THIẾT KẾ
 * ===================================================================== */
.hn-qt { background: var(--kem); }
.hn-qt__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(22px, 2.6vw, 40px);
	list-style: none;
	margin: 0;
	padding: 0 0 var(--sec);
}
.hn-qt__grid li {
	border-top: 2px solid var(--muc);
	padding-top: 18px;
	min-width: 0;
}
.hn-qt__b {
	display: block;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: var(--tr);
	text-transform: uppercase;
	color: var(--dong);
	margin-bottom: 10px;
}
.hn-qt__grid h3 { font-size: 19px; margin-bottom: 10px; }
.hn-qt__grid p {
	margin: 0;
	font-size: 14.5px;
	color: var(--muc-2);
	line-height: 1.65;
}

/* =====================================================================
 * 11. GIỚI THIỆU NGẮN Ở TRANG CHỦ
 * ===================================================================== */
.hn-gt { background: var(--giay); }
.hn-gt__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(30px, 5vw, 72px);
	align-items: center;
	padding-block: var(--sec);
}
.hn-gt__chu p {
	font-size: 15.5px;
	color: var(--muc-2);
	margin: 16px 0 0;
}
.hn-gt__chu .hn-btn { margin-top: 26px; }
.hn-gt__anh {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}
.hn-gt__anh figure { margin: 0; }
.hn-gt__anh figcaption {
	font-size: 12px;
	color: var(--muc-3);
	margin-top: 8px;
}
.hn-gt__anh figure:nth-child(2) { margin-top: 36px; }

/* =====================================================================
 * 12. KHỐI CUỐI
 * ===================================================================== */
.hn-cuoi { background: var(--dam); color: #fff; }
.hn-cuoi__in {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
	gap: clamp(26px, 4vw, 60px);
	align-items: center;
	padding-block: clamp(56px, 7vw, 96px);
}
.hn-cuoi .hn-nhan { color: var(--dong-2); }
.hn-cuoi__t {
	font-size: clamp(25px, 3.2vw, 38px);
	margin-bottom: 14px;
}
.hn-cuoi__in p {
	margin: 0;
	font-size: 15.5px;
	color: rgba(255, 255, 255, .78);
	max-width: 52ch;
}
.hn-cuoi__nut {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
}
.hn-cuoi__tel {
	font-size: 26px;
	font-weight: 500;
	text-decoration: none;
	color: #fff;
}
.hn-cuoi__gio { font-size: 13.5px; color: rgba(255, 255, 255, .62); }

/* =====================================================================
 * 13. CHÂN TRANG
 * ===================================================================== */
.hn-foot { background: var(--muc); color: rgba(242, 236, 227, .78); }
.hn-foot__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, .8fr)) minmax(0, 1.2fr);
	gap: clamp(28px, 3.5vw, 56px);
	padding-block: clamp(52px, 6vw, 84px);
}
.hn-foot .hn-brand { color: var(--kem); }
.hn-foot__desc {
	font-size: 14px;
	line-height: 1.65;
	margin: 18px 0 0;
	color: rgba(242, 236, 227, .66);
}
.hn-foot__lh {
	list-style: none;
	margin: 22px 0 0;
	padding: 0;
	display: grid;
	gap: 10px;
}
.hn-foot__lh li { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.hn-foot__lh svg { width: 17px; height: 17px; color: var(--dong-2); flex: none; }
.hn-foot__lh a { text-decoration: none; }
.hn-foot__lh a:hover { color: #fff; }

.hn-foot__col h2 {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: var(--tr);
	text-transform: uppercase;
	color: var(--dong-2);
	margin-bottom: 16px;
}
.hn-foot__col ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 11px;
}
.hn-foot__col a {
	font-size: 14.5px;
	text-decoration: none;
	display: inline-block;
}
.hn-foot__col a span {
	display: inline-block;
	transition: transform .2s ease, color .2s ease;
}
.hn-foot__col a:hover span { transform: translateX(4px); color: #fff; }
.hn-foot__cta .hn-btn { margin-top: 18px; }

.hn-foot__bot {
	border-top: 1px solid rgba(242, 236, 227, .14);
	padding-block: 22px;
	font-size: 13px;
	color: rgba(242, 236, 227, .55);
}
.hn-foot__bot p { margin: 0 0 6px; }
.hn-foot__bot p:last-child { margin: 0; }
.hn-foot__bot a { color: var(--dong-2); }

/* =====================================================================
 * 14. DẢI ĐẦU TRANG PHỤ
 * ===================================================================== */
.hn-phead {
	background: var(--giay);
	border-bottom: 1px solid var(--vien);
	padding-block: clamp(34px, 4.5vw, 66px);
}
.hn-crumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	font-size: 12.5px;
	color: var(--muc-3);
	margin-bottom: 18px;
}
.hn-crumb a { text-decoration: none; }
.hn-crumb a:hover { color: var(--dong); }
.hn-phead__t { font-size: clamp(27px, 3.6vw, 44px); font-weight: 500; }
.hn-phead__d {
	margin: 16px 0 0;
	font-size: 15.5px;
	color: var(--muc-3);
	max-width: 68ch;
}

.hn-page__body {
	padding-block: clamp(34px, 4.5vw, 64px);
	max-width: 900px;
}
.hn-page__body h2 { font-size: 24px; margin: 32px 0 12px; }
.hn-page__body h3 { font-size: 19px; margin: 26px 0 10px; }
.hn-page__body p, .hn-page__body li { font-size: 15.5px; color: var(--muc-2); }

/* =====================================================================
 * 15. LƯỚI CÔNG TRÌNH CỦA WOOCOMMERCE
 * ===================================================================== */
.hn-shop { padding-block: clamp(30px, 4vw, 54px); }

.hn-shop__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-bottom: 26px;
	margin-bottom: clamp(26px, 3vw, 40px);
	border-bottom: 1px solid var(--vien);
}
.hn-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hn-chip {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	border: 1px solid var(--vien-2);
	padding: 8px 15px;
	font-size: 13.5px;
	text-decoration: none;
	color: var(--muc-2);
	transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.hn-chip span { font-size: 11.5px; color: var(--muc-3); }
.hn-chip:hover { border-color: var(--muc); color: var(--muc); }
.hn-chip.is-on { background: var(--muc); border-color: var(--muc); color: #fff; }
.hn-chip.is-on span { color: rgba(255, 255, 255, .64); }

.hn-shop__sort select,
body.hn-site .woocommerce-ordering select {
	font-family: var(--f);
	font-size: 13.5px;
	color: var(--muc-2);
	background: var(--giay);
	border: 1px solid var(--vien-2);
	padding: 9px 14px;
	max-width: 100%;
}
body.hn-site .woocommerce-ordering { margin: 0; }

body.hn-site ul.products {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(22px, 2.6vw, 38px);
	list-style: none;
	margin: 0;
	padding: 0;
	clear: both;
}
body.hn-site ul.products::before,
body.hn-site ul.products::after { content: none; }

/*
 * `woocommerce-layout.css` đặt chiều rộng và lề phải cho thẻ sản phẩm bằng luật
 * bốn lớp (`.woocommerce.columns-3 ul.products li.product { width: 30.75% }`).
 * Lưới ở đây là CSS grid nên con số phần trăm ấy lại tính trên chính ô lưới —
 * thẻ co về chưa đầy một phần ba ô. Phải khai lại với ĐỦ bốn lớp mới thắng.
 */
body.hn-site.woocommerce ul.products li.product,
body.hn-site.woocommerce-page ul.products li.product,
body.hn-site ul.products li.product {
	width: auto;
	float: none;
	margin: 0;
	min-width: 0;
	text-align: left;
}
body.hn-site ul.products li.product a img {
	width: 100%;
	margin: 0;
	transition: transform .55s cubic-bezier(.22, .61, .36, 1);
}
/* Ảnh bìa cắt sẵn 4:3, khung bọc chỉ để giữ phần phóng nhẹ khi rê chuột. */
body.hn-site ul.products li.product > a.woocommerce-LoopProduct-link {
	display: block;
	overflow: hidden;
	background: var(--kem);
	text-decoration: none;
}
body.hn-site ul.products li.product:hover a img { transform: scale(1.04); }
body.hn-site ul.products li.product .hn-the__ct { padding-top: 16px; }
body.hn-site ul.products li.product .hn-the__ten { font-size: 19px; }
body.hn-site ul.products li.product .price {
	display: block;
	margin-top: 10px;
	color: var(--muc);
	font-size: 14px;
	font-weight: 500;
}
body.hn-site ul.products li.product .woocommerce-loop-product__title { display: none; }

.hn-gia { display: inline; }
.hn-gia__tu, .hn-gia__dv {
	font-size: 12.5px;
	font-weight: 400;
	color: var(--muc-3);
}
body.hn-site .price del { color: var(--muc-3); margin-right: 6px; }
body.hn-site .price ins { text-decoration: none; }

body.hn-site .woocommerce-pagination {
	margin-top: clamp(34px, 4vw, 54px);
	text-align: center;
}
body.hn-site .woocommerce-pagination ul {
	display: inline-flex;
	gap: 6px;
	list-style: none;
	border: 0;
	margin: 0;
	padding: 0;
}
body.hn-site .woocommerce-pagination ul li { border: 0; margin: 0; }
body.hn-site .woocommerce-pagination ul li a,
body.hn-site .woocommerce-pagination ul li span {
	display: block;
	min-width: 40px;
	padding: 9px 12px;
	border: 1px solid var(--vien-2);
	font-size: 14px;
	color: var(--muc-2);
	text-decoration: none;
	background: var(--giay);
}
body.hn-site .woocommerce-pagination ul li span.current,
body.hn-site .woocommerce-pagination ul li a:hover {
	background: var(--muc);
	border-color: var(--muc);
	color: #fff;
}

.hn-trong { font-size: 16px; color: var(--muc-3); }

.hn-ghichu {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-top: clamp(40px, 5vw, 70px);
	padding: clamp(22px, 2.6vw, 34px);
	background: var(--kem);
	border-left: 3px solid var(--dong);
}
.hn-ghichu p {
	margin: 0;
	font-size: 14.5px;
	color: var(--muc-2);
	max-width: 76ch;
}

/* =====================================================================
 * 16. TRANG CHI TIẾT CÔNG TRÌNH
 * ===================================================================== */
.hn-single__wrap { padding-block: clamp(32px, 4vw, 58px); }

body.hn-site div.product {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	gap: clamp(26px, 3.5vw, 56px);
	align-items: start;
}
body.hn-site div.product .woocommerce-product-gallery {
	float: none;
	width: auto;
	margin: 0;
	min-width: 0;
}
body.hn-site div.product .woocommerce-product-gallery__wrapper { margin: 0; }
body.hn-site div.product .flex-viewport { background: var(--kem); }
body.hn-site div.product .flex-control-thumbs {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
	list-style: none;
	margin: 10px 0 0;
	padding: 0;
}
body.hn-site div.product .flex-control-thumbs li { width: auto; margin: 0; float: none; }
body.hn-site div.product .entry-summary { float: none; width: auto; margin: 0; min-width: 0; }

body.hn-site div.product .price {
	font-size: 20px;
	color: var(--muc);
	margin: 0 0 18px;
}
body.hn-site div.product .woocommerce-product-details__short-description p {
	font-size: 16px;
	color: var(--muc-2);
	margin: 0 0 20px;
}

.hn-ts {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1px;
	background: var(--vien);
	border: 1px solid var(--vien);
	margin: 0 0 24px;
}
.hn-ts__o { background: var(--giay); padding: 14px 16px; }
.hn-ts dt {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--muc-3);
	margin-bottom: 5px;
}
.hn-ts dd { margin: 0; font-size: 16px; font-weight: 500; }

.hn-sp__cta { display: flex; flex-wrap: wrap; gap: 10px; }
.hn-sp__note {
	margin: 16px 0 0;
	font-size: 13px;
	color: var(--muc-3);
	line-height: 1.6;
}

body.hn-site .woocommerce-tabs {
	grid-column: 1 / -1;
	margin-top: clamp(34px, 4vw, 56px);
	border-top: 1px solid var(--vien);
	padding-top: clamp(26px, 3vw, 42px);
}
body.hn-site .woocommerce-tabs ul.tabs {
	list-style: none;
	margin: 0 0 22px;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
body.hn-site .woocommerce-tabs ul.tabs::before { content: none; }
body.hn-site .woocommerce-tabs ul.tabs li {
	background: none;
	border: 1px solid var(--vien-2);
	border-radius: 0;
	margin: 0;
	padding: 0;
}
body.hn-site .woocommerce-tabs ul.tabs li::before,
body.hn-site .woocommerce-tabs ul.tabs li::after { content: none; }
body.hn-site .woocommerce-tabs ul.tabs li a {
	display: block;
	padding: 9px 18px;
	font-size: 13.5px;
	font-weight: 500;
	color: var(--muc-2);
	text-decoration: none;
}
body.hn-site .woocommerce-tabs ul.tabs li.active { background: var(--muc); border-color: var(--muc); }
body.hn-site .woocommerce-tabs ul.tabs li.active a { color: #fff; }
body.hn-site .woocommerce-tabs .panel { max-width: 76ch; }
body.hn-site .woocommerce-tabs .panel h2 { font-size: 24px; margin-bottom: 14px; }
body.hn-site .woocommerce-tabs .panel h3 { font-size: 18px; margin: 26px 0 10px; }
body.hn-site .woocommerce-tabs .panel p,
body.hn-site .woocommerce-tabs .panel li { font-size: 15.5px; color: var(--muc-2); }
body.hn-site .woocommerce-tabs .panel ul { padding-left: 20px; }

body.hn-site .related.products {
	grid-column: 1 / -1;
	margin-top: clamp(40px, 5vw, 70px);
	border-top: 1px solid var(--vien);
	padding-top: clamp(28px, 3.4vw, 46px);
}
body.hn-site .related.products > h2 {
	font-size: clamp(22px, 2.6vw, 30px);
	margin-bottom: clamp(20px, 2.4vw, 32px);
}

body.hn-site .product_meta {
	margin-top: 22px;
	font-size: 13px;
	color: var(--muc-3);
}
body.hn-site .product_meta a { color: var(--muc-2); }

/* =====================================================================
 * 17. TRANG GIỚI THIỆU
 * ===================================================================== */
.hn-gt2 {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
	gap: clamp(30px, 4vw, 64px);
	padding-block: clamp(40px, 5vw, 72px);
	align-items: start;
}
.hn-gt2__chu h2 { font-size: clamp(21px, 2.3vw, 27px); margin: 34px 0 12px; }
.hn-gt2__chu h2:first-child { margin-top: 0; }
.hn-gt2__chu p { font-size: 15.5px; color: var(--muc-2); margin: 0 0 14px; }
.hn-gt2__nut { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.hn-gt2__ben { display: grid; gap: 20px; }
.hn-gt2__hop {
	background: var(--giay);
	border: 1px solid var(--vien);
	padding: 22px 24px;
}
.hn-gt2__hop h2 {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: var(--tr);
	text-transform: uppercase;
	color: var(--dong);
	margin-bottom: 14px;
}
.hn-gt2__hop ul, .hn-gt2__hop ol { margin: 0; padding-left: 18px; }
.hn-gt2__hop li { font-size: 14.5px; color: var(--muc-2); margin-bottom: 8px; }
.hn-gt2__lh { list-style: none; padding: 0; }
.hn-gt2__lh a { text-decoration: none; font-weight: 500; }
.hn-gt2__lh a:hover { color: var(--dong); }
.hn-gt2__anh { display: grid; gap: 16px; }
.hn-gt2__anh figure { margin: 0; }
.hn-gt2__anh figcaption { font-size: 12px; color: var(--muc-3); margin-top: 7px; }

/* =====================================================================
 * 18. TRANG LIÊN HỆ
 * ===================================================================== */
.hn-lh {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	gap: clamp(30px, 4vw, 60px);
	padding-block: clamp(40px, 5vw, 72px);
	align-items: start;
}
.hn-lh__form {
	background: var(--giay);
	border: 1px solid var(--vien);
	padding: clamp(24px, 3vw, 40px);
}
.hn-lh__form h2 { font-size: 23px; margin-bottom: 8px; }
.hn-lh__d { font-size: 14.5px; color: var(--muc-3); margin: 0 0 24px; }

.hn-form__o { display: block; margin: 0 0 18px; }
.hn-form label {
	display: block;
	font-size: 13px;
	font-weight: 500;
	margin-bottom: 7px;
}
.hn-form label span { font-weight: 400; color: var(--muc-3); }
.hn-form input, .hn-form textarea {
	width: 100%;
	font-family: var(--f);
	font-size: 15px;
	color: var(--muc);
	background: var(--giay-2);
	border: 1px solid var(--vien-2);
	padding: 12px 14px;
}
.hn-form input:focus, .hn-form textarea:focus {
	outline: none;
	border-color: var(--dong);
	background: var(--giay);
}
.hn-form textarea { resize: vertical; }
.hn-form__note {
	display: block;
	margin-top: 14px;
	font-size: 12.5px;
	color: var(--muc-3);
	line-height: 1.6;
}

.hn-lh__ben { display: grid; gap: 18px; }
.hn-lh__hop {
	background: var(--giay);
	border: 1px solid var(--vien);
	padding: 22px 24px;
}
.hn-lh__hop h2 {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: var(--tr);
	text-transform: uppercase;
	color: var(--dong);
	margin-bottom: 12px;
}
.hn-lh__hop p { font-size: 14.5px; color: var(--muc-2); margin: 8px 0 0; }
.hn-lh__hop a { text-decoration: none; font-weight: 500; }
.hn-lh__hop a:hover { color: var(--dong); }
.hn-lh__hop ol { margin: 0; padding-left: 18px; }
.hn-lh__hop li { font-size: 14.5px; color: var(--muc-2); margin-bottom: 8px; }
.hn-lh__tel { font-size: 24px; font-weight: 500; }
.hn-lh__hop--nhac { background: var(--kem); border-color: var(--vien-2); }

.hn-toast {
	position: fixed;
	left: 50%;
	bottom: 24px;
	transform: translateX(-50%);
	width: min(560px, calc(100vw - 32px));
	background: var(--muc);
	color: var(--kem);
	padding: 16px 20px;
	font-size: 14px;
	line-height: 1.6;
	z-index: 80;
}

/* =====================================================================
 * 19. TRANG GIỎ HÀNG / THANH TOÁN / TÀI KHOẢN
 * WooCommerce 8 trở đi dựng ba trang này bằng *block*, lấy màu từ `theme.json`
 * chứ không từ CSS của theme con, nên nút mặc định ra xanh dương. Phải khai lại
 * từng lớp nút của khối.
 * ===================================================================== */
body.hn-site .wc-block-components-button,
body.hn-site .wc-block-cart__submit-button,
body.hn-site .wc-block-components-checkout-place-order-button,
body.hn-site .wp-block-button__link,
body.hn-site .woocommerce-button,
body.hn-site button.button,
body.hn-site a.button,
body.hn-site input.button {
	background: var(--muc) !important;
	border: 1px solid var(--muc) !important;
	border-radius: 0 !important;
	color: #fff !important;
	font-family: var(--f);
	font-size: 14px;
	font-weight: 500;
	padding: 14px 26px;
	white-space: nowrap;
	transition: background .2s ease, border-color .2s ease;
}
body.hn-site .wc-block-components-button:hover,
body.hn-site .wc-block-cart__submit-button:hover,
body.hn-site .wc-block-components-checkout-place-order-button:hover,
body.hn-site .wp-block-button__link:hover,
body.hn-site .woocommerce-button:hover,
body.hn-site button.button:hover,
body.hn-site a.button:hover,
body.hn-site input.button:hover {
	background: var(--dong) !important;
	border-color: var(--dong) !important;
}
body.hn-site .wc-block-components-button__text { color: inherit; }

body.hn-site .wc-block-components-text-input input,
body.hn-site .woocommerce form .form-row input.input-text,
body.hn-site .woocommerce form .form-row textarea,
body.hn-site .select2-container .select2-selection {
	border-radius: 0;
	border-color: var(--vien-2);
	font-family: var(--f);
}
body.hn-site .woocommerce-message,
body.hn-site .woocommerce-info,
body.hn-site .woocommerce-error {
	border-top-color: var(--dong);
	background: var(--kem);
	font-size: 14.5px;
}
body.hn-site .woocommerce-message::before,
body.hn-site .woocommerce-info::before { color: var(--dong); }
body.hn-site .woocommerce-MyAccount-navigation ul {
	list-style: none;
	padding: 0;
	margin: 0 0 20px;
	display: grid;
	gap: 8px;
}
body.hn-site .woocommerce-MyAccount-navigation a { text-decoration: none; }

/* =====================================================================
 * 20. HIỆN DẦN
 * Lớp ẩn do kịch bản gắn vào, không viết sẵn trong HTML — tắt JavaScript thì
 * trang vẫn hiện đầy đủ, và trình thu thập của Google luôn thấy nội dung.
 * ===================================================================== */
.hn-rise {
	opacity: 0;
	transform: translateY(14px);
	transition: opacity .55s ease, transform .55s cubic-bezier(.22, .61, .36, 1);
}
.hn-rise.is-in { opacity: 1; transform: none; }

/* =====================================================================
 * 21. BỀ NGANG NHỎ HƠN
 * ===================================================================== */
@media (max-width: 1100px) {
	.hn-dai__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hn-qt__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hn-foot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hn-noi { grid-template-columns: minmax(0, 1fr); }
	.hn-noi__ct { padding-top: 4px; }
}

/* Chỗ hẹp dần: bỏ số điện thoại ở đầu trang trước, thu khoảng cách menu lại —
   giữ menu ngang càng lâu càng tốt rồi mới chuyển sang nút ba gạch. */
@media (max-width: 1240px) {
	.hn-tel { display: none; }
	.hn-nav ul { gap: 18px; }
}

@media (max-width: 1080px) {
	/* Menu rơi xuống một tấm trượt từ đầu trang; nút ba gạch hiện ra. */
	.hn-nav {
		position: absolute;
		left: 0; right: 0;
		top: 100%;
		background: var(--giay);
		border-bottom: 1px solid var(--vien);
		padding: 10px var(--gut) 22px;
		display: none;
	}
	.hn-nav.is-open { display: block; }
	.hn-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
	.hn-nav li { border-bottom: 1px solid var(--vien); }
	.hn-nav a { padding: 14px 0; font-size: 15.5px; }
	.hn-nav a::after { content: none; }
	.hn-nav__lh { display: block; padding-top: 16px; }
	.hn-nav__lh a { font-size: 18px; font-weight: 500; text-decoration: none; }

	.hn-burger { display: block; }
	.hn-tel { display: none; }
	.hn-head { position: sticky; }
	.hn-head__row { position: relative; min-height: 72px; }

	.hn-dau { grid-template-columns: minmax(0, 1fr); align-items: start; }
	.hn-luoi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	body.hn-site ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hn-nhom__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hn-gt__grid { grid-template-columns: minmax(0, 1fr); }
	.hn-gt2, .hn-lh { grid-template-columns: minmax(0, 1fr); }
	.hn-cuoi__in { grid-template-columns: minmax(0, 1fr); }
	body.hn-site div.product { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
	.hn-btn--nho { display: none; }
	.hn-dai__grid { grid-template-columns: minmax(0, 1fr); }
	.hn-qt__grid { grid-template-columns: minmax(0, 1fr); }
	.hn-luoi { grid-template-columns: minmax(0, 1fr); }
	body.hn-site ul.products { grid-template-columns: minmax(0, 1fr); }
	.hn-nhom__grid { grid-template-columns: minmax(0, 1fr); }
	.hn-foot__grid { grid-template-columns: minmax(0, 1fr); }
	.hn-gt__anh { grid-template-columns: minmax(0, 1fr); }
	.hn-gt__anh figure:nth-child(2) { margin-top: 0; }
	.hn-ts { grid-template-columns: minmax(0, 1fr); }
	.hn-shop__bar { flex-direction: column; align-items: stretch; }
	.hn-hero__nut .hn-btn { flex: 1 1 auto; }
	.hn-ghichu { flex-direction: column; align-items: flex-start; }
}

/* =====================================================================
 * 22. XIN BỚT CHUYỂN ĐỘNG
 * ===================================================================== */
@media (prefers-reduced-motion: reduce) {
	body.hn-site *,
	body.hn-site *::before,
	body.hn-site *::after {
		animation-duration: .001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .001ms !important;
		scroll-behavior: auto !important;
	}
}
