/*
Theme Name: Bo Lua — May nong san cho co so nho
Theme URI: https://cokhi-mau-04.mauwebsitedep.net/
Description: Mau website co khi nong nghiep va may che bien nong san (cokhi-mau-04). Theme con cua vinasite, chay WooCommerce o che do danh muc: may ban theo tu van, khong ban qua gio.
Author: VinaSite
Author URI: https://vinasite.com.vn/
Template: vinasite
Version: 1.0.0
Text Domain: cokhi-mau-04
*/

/* =====================================================================
 * BỒ LÚA — máy nông sản cho cơ sở nhỏ (cokhi-mau-04)
 *
 * Bảng màu: XANH RÊU + VÀNG LÚA + KEM. Khác bốn mẫu cơ khí kia trong bộ (01
 * xám thép + cam, 02 xanh dương đậm, 03 đen + bạc, 05 cam đất + xám), và khác
 * `kientruc-mau-04` ("Lục Diệp", rêu + gỗ) ở chỗ màu thứ hai là VÀNG LÚA chứ
 * không phải gỗ, nền là kem ấm chứ không phải giấy trắng.
 *
 * BẪY TƯƠNG PHẢN: vàng lúa #D9A520 với chữ trắng chỉ đạt 2,3:1 — rớt dưới
 * 4,5:1. Mọi chỗ nền vàng ở tệp này dùng chữ MỰC #26251C (6,6:1). Không có
 * luật nào đặt color trắng trên nền vàng.
 *
 * Mục lục:
 *   1. BIẾN VÀ NỀN
 *   2. BỘ KHUNG DÙNG CHUNG
 *   3. ĐẦU TRANG
 *   4. HERO
 *   5. KHỐI TRANG CHỦ
 *   6. CỬA HÀNG — LƯỚI VÀ THẺ MÁY
 *   7. TRANG CHI TIẾT MÁY
 *   8. TRANG TĨNH, GIỚI THIỆU, LIÊN HỆ
 *   9. CHÂN TRANG
 *  10. KHỐI CỦA WOOCOMMERCE (giỏ hàng, thanh toán, tài khoản)
 *  11. MÀN HẸP
 *  12. CHUYỂN ĐỘNG THEO CUỘN + BA ĐƯỜNG DỰ PHÒNG
 * ===================================================================== */

/* =====================================================================
 * 1. BIẾN VÀ NỀN
 * ===================================================================== */
:root {
	--bl-reu:      #3C4A2A;
	--bl-reu-sau:  #2A3420;
	--bl-reu-mo:   #5C6A40;
	--bl-lua:      #D9A520;
	--bl-lua-sau:  #B8870D;
	--bl-lua-nhat: #F2DC9C;
	--bl-kem:      #F7F2E4;
	--bl-kem-sau:  #EDE6D2;
	--bl-giay:     #FFFDF7;
	--bl-muc:      #26251C;
	--bl-xam:      #65614F;
	--bl-vien:     #DED7C2;
	--bl-trang:    #FFFFFF;

	/* thang chữ — đúng 6 bậc, không cỡ nào ngoài thang */
	--bl-fs-1: 13px;
	--bl-fs-2: 15px;
	--bl-fs-3: 17px;
	--bl-fs-4: clamp(20px, 2vw, 24px);
	--bl-fs-5: clamp(26px, 3vw, 36px);
	--bl-fs-6: clamp(34px, 4.6vw, 54px);

	/* thang khoảng cách — bước 4px */
	--bl-s-1: 4px;
	--bl-s-2: 8px;
	--bl-s-3: 12px;
	--bl-s-4: 16px;
	--bl-s-5: 24px;
	--bl-s-6: 32px;
	--bl-s-7: 48px;
	--bl-s-8: 72px;
	--bl-s-9: 104px;

	--bl-bo:      6px;
	--bl-bo-nho:  4px;
	--bl-bo-tron: 999px;
	--bl-rong:    1220px;
	--bl-bong:    0 1px 2px rgba(38, 37, 28, .05), 0 8px 24px -12px rgba(38, 37, 28, .16);
	--bl-bong-2:  0 2px 4px rgba(38, 37, 28, .07), 0 18px 40px -18px rgba(38, 37, 28, .24);

	--bl-ease:   cubic-bezier(.2, .7, .3, 1);
	--bl-nhanh:  .22s cubic-bezier(.2, .7, .3, 1);
}

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

body.bl-may {
	margin: 0;
	background: var(--bl-kem);
	color: var(--bl-muc);
	font-family: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', sans-serif;
	font-size: var(--bl-fs-3);
	line-height: 1.62;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

/*
 * Theme mẹ có luật riêng cho h1–h3 trong nội dung và nhuộm chúng xanh dương,
 * thắng mọi khai báo một lớp. Hai lớp (body.bl-may h1) vừa thắng được, vừa để
 * tiêu đề tự đúng màu 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.bl-may h1,
body.bl-may h2,
body.bl-may h3,
body.bl-may h4 {
	color: inherit;
	font-family: 'Bai Jamjuree', 'Be Vietnam Pro', system-ui, sans-serif;
	font-weight: 700;
	line-height: 1.18;
	letter-spacing: -.01em;
	margin: 0;
}

body.bl-may p { margin: 0 0 var(--bl-s-4); }
body.bl-may p:last-child { margin-bottom: 0; }
body.bl-may img { max-width: 100%; height: auto; display: block; }
body.bl-may a { color: inherit; }

/* Viền tiêu điểm bàn phím — thấy được, không nhảy ra khi bấm bằng chuột. */
body.bl-may :focus-visible {
	outline: 3px solid var(--bl-lua);
	outline-offset: 2px;
	border-radius: var(--bl-bo-nho);
}
/* Trên nền rêu sẫm, trắng rõ hơn vàng. */
.bl-head :focus-visible,
.bl-hero :focus-visible,
.bl-foot :focus-visible,
.bl-dai :focus-visible,
.bl-sec--reu :focus-visible,
.bl-so-do :focus-visible { outline-color: var(--bl-trang); }

/* `body.bl-may` vì cùng lý do với nút: `a { color: inherit }` ở trên thắng một
   luật một lớp, và liên kết bỏ qua sẽ ra chữ mực trên nền mực — 1:1. */
body.bl-may .bl-skip {
	position: absolute;
	left: -9999px;
	top: var(--bl-s-2);
	z-index: 99;
	background: var(--bl-muc);
	color: var(--bl-trang);
	padding: var(--bl-s-3) var(--bl-s-5);
	border-radius: var(--bl-bo);
	text-decoration: none;
}
body.bl-may .bl-skip:focus { left: var(--bl-s-4); }

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

/* =====================================================================
 * 2. BỘ KHUNG DÙNG CHUNG
 * ===================================================================== */
.bl-wrap {
	width: 100%;
	max-width: var(--bl-rong);
	margin: 0 auto;
	padding: 0 var(--bl-s-5);
}

.bl-sec { padding: var(--bl-s-9) 0; }
.bl-sec--kem { background: var(--bl-kem-sau); }
.bl-sec--giay { background: var(--bl-giay); }
.bl-sec--reu { background: var(--bl-reu); color: var(--bl-kem); }

.bl-nhan {
	display: inline-flex;
	align-items: center;
	gap: var(--bl-s-2);
	font-size: var(--bl-fs-1);
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--bl-reu-mo);
	margin-bottom: var(--bl-s-3);
}
.bl-nhan::before {
	content: '';
	width: 26px; height: 3px;
	background: var(--bl-lua);
	border-radius: var(--bl-bo-tron);
}
.bl-sec--reu .bl-nhan,
.bl-so-do .bl-nhan { color: var(--bl-lua-nhat); }

.bl-tieu { font-size: var(--bl-fs-5); max-width: 24ch; }
.bl-tieu--rong { max-width: 34ch; }

.bl-dan {
	font-size: var(--bl-fs-3);
	color: var(--bl-xam);
	max-width: 62ch;
	margin-top: var(--bl-s-4);
}
.bl-sec--reu .bl-dan { color: rgba(247, 242, 228, .84); }

.bl-dau {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: var(--bl-s-5);
	margin-bottom: var(--bl-s-7);
}
.bl-dau > div { flex: 1 1 420px; }

.bl-nho { font-size: var(--bl-fs-2); color: var(--bl-xam); }
.bl-ghi { font-size: var(--bl-fs-1); color: var(--bl-xam); margin-top: var(--bl-s-4); }
.bl-sec--reu .bl-nho,
.bl-sec--reu .bl-ghi { color: rgba(247, 242, 228, .7); }
.bl-mt5 { margin-top: var(--bl-s-5); }

/*
 * ── Nút ────────────────────────────────────────────────────────────
 *
 * MỌI luật đặt MÀU CHỮ cho nút đều mang tiền tố `body.bl-may`. Lý do: ngay
 * phần trên tệp này có `body.bl-may a { color: inherit; }` — (0,1,2) — để liên
 * kết thường tự lấy màu của khối nền tối hay nền sáng mà nó đứng trong. Nút
 * cũng là thẻ `<a>`, nên luật một lớp `.bl-btn { color: … }` (0,1,0) THUA và
 * nút lấy luôn màu chữ của khối bao ngoài.
 *
 * ĐO ĐƯỢC khi còn thiếu tiền tố: nút vàng trong chân trang ra chữ kem
 * `rgba(247,242,228,.82)` trên nền `#D9A520` — **2,01:1**, đúng cái bẫy "vàng
 * lúa với chữ trắng" mà bảng màu này phải tránh. Nút rêu trong ô kết quả rỗng
 * ra chữ mực trên nền rêu — **1,62:1**. Và liên kết bỏ qua `.bl-skip` ra chữ
 * mực trên nền mực — **1:1**, tức vô hình với người dùng bàn phím.
 *
 * `body.bl-may .bl-btn` là (0,2,1) và thắng (0,1,2). Thêm một lớp, bỏ được ba
 * chỗ rớt tương phản.
 */
body.bl-may .bl-btn {
	display: inline-flex;
	align-items: center;
	gap: var(--bl-s-2);
	padding: var(--bl-s-3) var(--bl-s-5);
	border: 2px solid var(--bl-reu);
	border-radius: var(--bl-bo);
	background: var(--bl-reu);
	color: var(--bl-kem);
	font: inherit;
	font-size: var(--bl-fs-2);
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	white-space: nowrap;
	transition: background var(--bl-nhanh), border-color var(--bl-nhanh),
	            color var(--bl-nhanh), transform var(--bl-nhanh), box-shadow var(--bl-nhanh);
}
body.bl-may .bl-btn svg { width: 16px; height: 16px; flex: none; transition: transform var(--bl-nhanh); }
body.bl-may .bl-btn:hover { background: var(--bl-reu-sau); border-color: var(--bl-reu-sau); color: var(--bl-kem); box-shadow: var(--bl-bong); }
body.bl-may .bl-btn:hover svg { transform: translateX(3px); }
/* Phản hồi khi bấm — nút lún một nhịp. Chỉ transform, không đụng bố cục. */
body.bl-may .bl-btn:active { transform: translateY(1px) scale(.99); }

/* Nút nhấn: nền VÀNG LÚA, chữ MỰC. Chữ kem ở đây chỉ 2,01:1 — không dùng. */
body.bl-may .bl-btn--lua { background: var(--bl-lua); border-color: var(--bl-lua); color: var(--bl-muc); }
body.bl-may .bl-btn--lua:hover { background: var(--bl-lua-sau); border-color: var(--bl-lua-sau); color: var(--bl-muc); }

body.bl-may .bl-btn--vien { background: transparent; color: var(--bl-reu); }
body.bl-may .bl-btn--vien:hover { background: var(--bl-reu); color: var(--bl-kem); }

body.bl-may .bl-sec--reu .bl-btn--vien,
body.bl-may .bl-hero .bl-btn--vien,
body.bl-may .bl-foot .bl-btn--vien {
	border-color: rgba(247, 242, 228, .55);
	color: var(--bl-kem);
}
body.bl-may .bl-sec--reu .bl-btn--vien:hover,
body.bl-may .bl-hero .bl-btn--vien:hover,
body.bl-may .bl-foot .bl-btn--vien:hover { background: var(--bl-kem); color: var(--bl-reu); border-color: var(--bl-kem); }

.bl-cta { display: flex; flex-wrap: wrap; gap: var(--bl-s-3); }

/* ── Thẻ và khung ảnh. Tỉ lệ cố định nên không có lần xê dịch nào. ── */
.bl-the {
	background: var(--bl-giay);
	border: 1px solid var(--bl-vien);
	border-radius: var(--bl-bo);
	padding: var(--bl-s-5);
}
.bl-anh {
	position: relative;
	overflow: hidden;
	border-radius: var(--bl-bo);
	background: var(--bl-kem-sau);
	aspect-ratio: 4 / 3;
}
.bl-anh img { width: 100%; height: 100%; object-fit: cover; }
.bl-anh--ngang { aspect-ratio: 16 / 10; }

/*
 * BĂNG TẢI — chuyển động riêng theo chủ đề (loại 9 của chuẩn chung).
 *
 * Dải phân cách giữa hai khối, vẽ như mặt băng tải nông sản: các vạch chạy
 * ngang trong khung overflow: hidden. Chỉ transform: translateX nên không tính
 * lại bố cục; vô hạn nhưng là TRANG TRÍ nhỏ cao 14px, không nằm trong khu vực
 * đọc nội dung — đúng chỗ chuẩn cho phép.
 */
.bl-bt { height: 14px; overflow: hidden; background: var(--bl-reu-sau); position: relative; }
.bl-bt i {
	position: absolute;
	top: 0; bottom: 0; left: 0;
	width: 300%;
	background: repeating-linear-gradient(100deg,
		var(--bl-lua) 0 10px, transparent 10px 34px);
	opacity: .9;
}

/* =====================================================================
 * 3. ĐẦU TRANG
 *
 * Dính, nhưng CHIỀU CAO KHÔNG ĐỔI ở cả bốn trạng thái. Phần tử
 * position: sticky vẫn chiếm chỗ trong dòng chảy, nên 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õ — và chuẩn chung
 * cấm animate height. Cảm giác "gọn lại" tạo bằng thứ không dồn bố cục: nền
 * đặc hơn, bóng đổ hiện ra, kẻ vàng vẽ ra; cuộn xuống thì TRƯỢT CẢ THANH đi
 * bằng transform.
 *
 * KHÔNG CÓ BIỂU TƯỢNG GIỎ HÀNG — máy bán theo tư vấn, xem inc/shop.php.
 * ===================================================================== */
.bl-dai { background: var(--bl-reu-sau); color: rgba(247, 242, 228, .9); font-size: var(--bl-fs-1); }
.bl-dai__in {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--bl-s-3);
	min-height: 34px;
	padding-top: var(--bl-s-2);
	padding-bottom: var(--bl-s-2);
}
.bl-dai a {
	display: inline-flex;
	align-items: center;
	gap: var(--bl-s-1);
	color: var(--bl-lua-nhat);
	font-weight: 600;
	text-decoration: none;
}
.bl-dai a svg { width: 14px; height: 14px; transition: transform var(--bl-nhanh); }
.bl-dai a:hover svg { transform: translateX(3px); }

.bl-head {
	position: sticky;
	top: 0;
	z-index: 40;
	background: var(--bl-kem);
	border-bottom: 1px solid var(--bl-vien);
	transition: background var(--bl-nhanh), box-shadow var(--bl-nhanh), transform .34s var(--bl-ease);
}
.bl-head::after {
	content: '';
	position: absolute;
	left: 0; right: 0; bottom: -1px;
	height: 2px;
	background: var(--bl-lua);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .5s var(--bl-ease);
}
.bl-head.is-stuck { background: var(--bl-giay); box-shadow: var(--bl-bong); }
.bl-head.is-past::after { transform: scaleX(1); }
.bl-head.is-hidden { transform: translateY(-100%); }

.bl-head__row { display: flex; align-items: center; gap: var(--bl-s-5); min-height: 78px; }

.bl-brand { display: inline-flex; align-items: center; gap: var(--bl-s-3); text-decoration: none; flex: none; }
.bl-brand__mark { display: block; flex: none; }
.bl-brand__mark svg { display: block; transition: transform var(--bl-nhanh); }
.bl-brand:hover .bl-brand__mark svg { transform: rotate(-4deg); }
.bl-brand__text { display: flex; flex-direction: column; }
.bl-brand__name {
	font-family: 'Bai Jamjuree', 'Be Vietnam Pro', sans-serif;
	font-size: var(--bl-fs-4);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -.01em;
}
.bl-brand__tag {
	font-size: var(--bl-fs-1);
	font-weight: 600;
	letter-spacing: .1em;
	color: var(--bl-reu-mo);
	/* Mờ dần khi cuộn, KHÔNG thu max-height — thu là animate bố cục. */
	transition: opacity var(--bl-nhanh);
}
.bl-head.is-stuck .bl-brand__tag { opacity: .45; }
.bl-foot .bl-brand__tag { color: var(--bl-lua-nhat); }

.bl-nav { margin-left: auto; }
.bl-nav ul { display: flex; align-items: center; gap: var(--bl-s-5); list-style: none; margin: 0; padding: 0; }
.bl-nav a {
	position: relative;
	display: block;
	padding: var(--bl-s-2) 0;
	font-size: var(--bl-fs-2);
	font-weight: 600;
	text-decoration: none;
}
.bl-nav a::after {
	content: '';
	position: absolute;
	left: 0; right: 0; bottom: 0;
	height: 2px;
	background: var(--bl-lua);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform var(--bl-nhanh);
}
.bl-nav a:hover::after,
.bl-nav a[aria-current="page"]::after { transform: scaleX(1); }

.bl-tools { display: flex; align-items: center; gap: var(--bl-s-3); flex: none; }
.bl-tools .bl-btn { padding: var(--bl-s-2) var(--bl-s-4); }

.bl-burger {
	display: none;
	width: 44px; height: 44px;
	padding: 0;
	border: 1px solid var(--bl-vien);
	border-radius: var(--bl-bo);
	background: var(--bl-giay);
	cursor: pointer;
}
.bl-burger > span[aria-hidden] { display: block; width: 20px; margin: 0 auto; }
.bl-burger i {
	display: block;
	height: 2px;
	background: var(--bl-muc);
	border-radius: var(--bl-bo-tron);
	transition: transform var(--bl-nhanh), opacity var(--bl-nhanh);
}
.bl-burger i + i { margin-top: 5px; }
.bl-burger[aria-expanded="true"] i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.bl-burger[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.bl-burger[aria-expanded="true"] i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =====================================================================
 * 4. HERO
 *
 * KHÔNG áp hiệu ứng ẩn/hiện cho hero: ẩn hero là đẩy lùi LCP, hại trực tiếp
 * điểm tốc độ. Chữ và ảnh ở đây hiện ngay từ khung hình đầu; hiệu ứng chỉ đổi
 * VỊ TRÍ của thứ đã hiện và thu ảnh nền từ scale(1.06) về 1 trong 12 giây.
 * ===================================================================== */
.bl-hero {
	position: relative;
	overflow: hidden;
	background: var(--bl-reu-sau);
	color: var(--bl-kem);
	isolation: isolate;
}
.bl-hero__anh { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.bl-hero__anh img { width: 100%; height: 100%; object-fit: cover; }
.bl-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(104deg,
		rgba(42, 52, 32, .95) 0%,
		rgba(42, 52, 32, .88) 44%,
		rgba(42, 52, 32, .5) 100%);
}
.bl-hero__in { position: relative; padding: var(--bl-s-9) 0; max-width: 760px; }
.bl-hero h1 { font-size: var(--bl-fs-6); margin-bottom: var(--bl-s-5); }
.bl-hero__dan {
	font-size: var(--bl-fs-3);
	color: rgba(247, 242, 228, .88);
	max-width: 56ch;
	margin-bottom: var(--bl-s-6);
}
.bl-hero .bl-nhan { color: var(--bl-lua); }
.bl-hero .bl-nhan::before { background: var(--bl-lua-nhat); }

.bl-hero__so {
	display: flex;
	flex-wrap: wrap;
	gap: var(--bl-s-6);
	margin-top: var(--bl-s-7);
	padding-top: var(--bl-s-5);
	border-top: 1px solid rgba(247, 242, 228, .22);
}
.bl-hero__so div b {
	display: block;
	font-family: 'Bai Jamjuree', sans-serif;
	font-size: var(--bl-fs-4);
	color: var(--bl-lua);
	line-height: 1.1;
}
.bl-hero__so div span { font-size: var(--bl-fs-1); color: rgba(247, 242, 228, .74); }

/* =====================================================================
 * 5. KHỐI TRANG CHỦ
 * ===================================================================== */

/* ── Nhóm máy theo loại nông sản ──────────────────────────────────── */
.bl-nhom { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--bl-s-5); }
.bl-nhom--3 { grid-template-columns: repeat(3, 1fr); }
.bl-nhom__o {
	display: flex;
	flex-direction: column;
	background: var(--bl-giay);
	border: 1px solid var(--bl-vien);
	border-radius: var(--bl-bo);
	overflow: hidden;
	text-decoration: none;
	transition: transform var(--bl-nhanh), box-shadow var(--bl-nhanh), border-color var(--bl-nhanh);
}
.bl-nhom__o:hover { transform: translateY(-5px); box-shadow: var(--bl-bong-2); border-color: var(--bl-lua); }
.bl-nhom__anh { aspect-ratio: 4 / 3; overflow: hidden; background: var(--bl-kem-sau); }
.bl-nhom__anh img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--bl-ease); }
.bl-nhom__o:hover .bl-nhom__anh img { transform: scale(1.05); }
.bl-nhom__than { padding: var(--bl-s-5); display: flex; flex-direction: column; flex: 1; }
.bl-nhom__than h3 { font-size: var(--bl-fs-4); margin-bottom: var(--bl-s-2); }
.bl-nhom__than p { font-size: var(--bl-fs-2); color: var(--bl-xam); flex: 1; }
.bl-nhom__xem {
	display: inline-flex;
	align-items: center;
	gap: var(--bl-s-2);
	margin-top: var(--bl-s-4);
	font-size: var(--bl-fs-2);
	font-weight: 700;
	color: var(--bl-reu);
}
.bl-nhom__xem svg { width: 15px; height: 15px; transition: transform var(--bl-nhanh); }
.bl-nhom__o:hover .bl-nhom__xem svg { transform: translateX(4px); }
.bl-nhom__gia {
	display: block;
	margin-top: var(--bl-s-4);
	padding-top: var(--bl-s-3);
	border-top: 1px solid var(--bl-vien);
	font-size: var(--bl-fs-2);
	color: var(--bl-xam);
}
.bl-nhom__gia b { font-size: var(--bl-fs-3); color: var(--bl-muc); }

/* ── Công suất theo quy mô: bốn bậc, số đếm lên khi vào khung nhìn ── */
.bl-qm { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--bl-s-5); }
.bl-qm__o {
	background: var(--bl-giay);
	border: 1px solid var(--bl-vien);
	border-top: 4px solid var(--bl-lua);
	border-radius: var(--bl-bo);
	padding: var(--bl-s-5);
}
.bl-qm__ai {
	font-size: var(--bl-fs-1);
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--bl-reu-mo);
}
.bl-qm__o h3 { font-size: var(--bl-fs-4); margin: var(--bl-s-2) 0 0; }
.bl-qm__so {
	display: flex;
	align-items: baseline;
	gap: var(--bl-s-2);
	margin: var(--bl-s-4) 0 var(--bl-s-3);
	font-family: 'Bai Jamjuree', sans-serif;
	font-size: var(--bl-fs-5);
	font-weight: 700;
	line-height: 1;
}
/*
 * Ô chứa con số đặt sẵn chiều rộng theo SỐ KÝ TỰ của giá trị cuối (biến
 * `--bl-n` do front-page.php in ra), cộng `tabular-nums` để mọi chữ số rộng
 * bằng nhau. Nhờ vậy số chạy từ 0 lên mà không phần tử nào xê dịch — CLS giữ
 * ở 0. Thiếu hai thứ này là hiệu ứng đếm lên tự tay đẩy CLS lên.
 */
.bl-qm__so b {
	min-width: calc(var(--bl-n, 3) * 1ch);
	font-variant-numeric: tabular-nums;
}
.bl-qm__so span {
	font-family: 'Be Vietnam Pro', sans-serif;
	font-size: var(--bl-fs-2);
	font-weight: 600;
	color: var(--bl-xam);
}
.bl-qm__o p { font-size: var(--bl-fs-2); color: var(--bl-xam); }
.bl-qm__o ul { margin: var(--bl-s-3) 0 0; padding: 0; list-style: none; font-size: var(--bl-fs-2); }
.bl-qm__o li { position: relative; padding-left: var(--bl-s-5); margin-bottom: var(--bl-s-1); }
.bl-qm__o li::before {
	content: '';
	position: absolute;
	left: 0; top: .62em;
	width: 8px; height: 8px;
	background: var(--bl-lua);
	border-radius: 2px;
}
.bl-qm__o > a {
	display: inline-block;
	margin-top: var(--bl-s-4);
	font-size: var(--bl-fs-2);
	font-weight: 700;
	color: var(--bl-reu);
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}

/* ── Sơ đồ dòng chảy chế biến: nét vẽ dần bằng stroke-dashoffset ──── */
.bl-so-do {
	background: var(--bl-reu);
	border-radius: var(--bl-bo);
	padding: var(--bl-s-7) var(--bl-s-5);
	color: var(--bl-kem);
	overflow: hidden;
}
.bl-so-do svg { width: 100%; height: auto; display: block; }
.bl-so-do__hang {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: var(--bl-s-3);
	margin-top: var(--bl-s-5);
	text-align: center;
}
.bl-so-do__hang b { display: block; font-size: var(--bl-fs-2); color: var(--bl-lua-nhat); }
.bl-so-do__hang span { font-size: var(--bl-fs-1); color: rgba(247, 242, 228, .72); }

/* ── Lắp đặt và hướng dẫn vận hành ────────────────────────────────── */
.bl-buoc { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--bl-s-5); counter-reset: bl-b; }
.bl-buoc__o {
	position: relative;
	background: var(--bl-giay);
	border: 1px solid var(--bl-vien);
	border-radius: var(--bl-bo);
	padding: var(--bl-s-7) var(--bl-s-5) var(--bl-s-5);
}
.bl-buoc__o::before {
	counter-increment: bl-b;
	content: counter(bl-b);
	position: absolute;
	top: var(--bl-s-4);
	left: var(--bl-s-5);
	display: grid;
	place-items: center;
	width: 34px; height: 34px;
	background: var(--bl-lua);
	color: var(--bl-muc);
	border-radius: var(--bl-bo);
	font-family: 'Bai Jamjuree', sans-serif;
	font-size: var(--bl-fs-3);
	font-weight: 700;
}
.bl-buoc__o h3 { font-size: var(--bl-fs-4); margin: var(--bl-s-6) 0 var(--bl-s-3); }
.bl-buoc__o p { font-size: var(--bl-fs-2); color: var(--bl-xam); }

.bl-canh {
	display: flex;
	gap: var(--bl-s-4);
	align-items: flex-start;
	margin-top: var(--bl-s-6);
	padding: var(--bl-s-5);
	background: var(--bl-lua-nhat);
	border-left: 4px solid var(--bl-lua);
	border-radius: var(--bl-bo);
	/* Nền vàng nhạt — chữ MỰC. Khối dễ rớt tương phản nhất của bảng màu này. */
	color: var(--bl-muc);
	font-size: var(--bl-fs-2);
}
.bl-canh svg { width: 24px; height: 24px; flex: none; margin-top: 2px; }
.bl-canh a { font-weight: 700; }

/* ── Phụ tùng thay thế ────────────────────────────────────────────── */
.bl-pt { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--bl-s-5); }
.bl-pt__o {
	display: flex;
	gap: var(--bl-s-4);
	background: var(--bl-giay);
	border: 1px solid var(--bl-vien);
	border-radius: var(--bl-bo);
	padding: var(--bl-s-4);
	transition: border-color var(--bl-nhanh), box-shadow var(--bl-nhanh);
}
.bl-pt__o:hover { border-color: var(--bl-lua); box-shadow: var(--bl-bong); }
.bl-pt__anh {
	flex: none;
	width: 96px;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: var(--bl-bo-nho);
	background: var(--bl-kem-sau);
}
.bl-pt__anh img { width: 100%; height: 100%; object-fit: cover; }
.bl-pt__o h3 { font-size: var(--bl-fs-3); margin-bottom: var(--bl-s-1); }
.bl-pt__o p { font-size: var(--bl-fs-2); color: var(--bl-xam); margin: 0; }

/* ── Khối chốt cuối trang chủ ─────────────────────────────────────── */
.bl-chot { display: grid; grid-template-columns: 1.1fr .9fr; gap: var(--bl-s-8); align-items: center; }
.bl-chot__lh { display: grid; gap: var(--bl-s-3); }
/* CHỈ con trực tiếp: trong khối này còn một thẻ `<p>` bọc một nút `.bl-btn`,
   và bộ chọn hậu duệ sẽ nhuộm luôn cái nút ấy. */
.bl-chot__lh > a,
.bl-chot__lh > span {
	display: flex;
	align-items: center;
	gap: var(--bl-s-3);
	padding: var(--bl-s-4);
	background: rgba(247, 242, 228, .08);
	border: 1px solid rgba(247, 242, 228, .22);
	border-radius: var(--bl-bo);
	font-size: var(--bl-fs-3);
	font-weight: 600;
	text-decoration: none;
	transition: background var(--bl-nhanh), border-color var(--bl-nhanh);
}
.bl-chot__lh > a:hover { background: rgba(247, 242, 228, .16); border-color: var(--bl-lua); }
.bl-chot__lh > a svg,
.bl-chot__lh > span svg { width: 20px; height: 20px; flex: none; color: var(--bl-lua); }

/* =====================================================================
 * 6. CỬA HÀNG — LƯỚI VÀ THẺ MÁY
 * ===================================================================== */
.bl-page__head {
	background: var(--bl-reu);
	color: var(--bl-kem);
	padding: var(--bl-s-8) 0 var(--bl-s-8);
}
.bl-crumb { display: flex; flex-wrap: wrap; gap: var(--bl-s-2); font-size: var(--bl-fs-1); margin-bottom: var(--bl-s-4); }
.bl-crumb a { color: var(--bl-lua-nhat); text-decoration: none; }
.bl-crumb a:hover { text-decoration: underline; }
.bl-crumb span[aria-hidden] { opacity: .45; }
.bl-crumb > span:last-child { color: rgba(247, 242, 228, .78); }
.bl-page__title { font-size: var(--bl-fs-5); max-width: 28ch; }
.bl-page__sub { font-size: var(--bl-fs-3); color: rgba(247, 242, 228, .84); max-width: 70ch; margin-top: var(--bl-s-4); }

.bl-shop { padding: var(--bl-s-8) 0 var(--bl-s-9); }

.bl-chips { display: flex; flex-wrap: wrap; gap: var(--bl-s-2); margin-bottom: var(--bl-s-5); }
.bl-chip {
	display: inline-flex;
	align-items: center;
	gap: var(--bl-s-2);
	padding: var(--bl-s-2) var(--bl-s-4);
	background: var(--bl-giay);
	border: 1px solid var(--bl-vien);
	border-radius: var(--bl-bo-tron);
	font-size: var(--bl-fs-2);
	font-weight: 600;
	text-decoration: none;
	transition: background var(--bl-nhanh), border-color var(--bl-nhanh), color var(--bl-nhanh);
}
.bl-chip span { font-size: var(--bl-fs-1); color: var(--bl-xam); }
.bl-chip:hover { border-color: var(--bl-reu); }
.bl-chip.is-on { background: var(--bl-reu); border-color: var(--bl-reu); color: var(--bl-kem); }
.bl-chip.is-on span { color: var(--bl-lua-nhat); }

.bl-loc {
	background: var(--bl-giay);
	border: 1px solid var(--bl-vien);
	border-radius: var(--bl-bo);
	padding: var(--bl-s-5);
	margin-bottom: var(--bl-s-6);
}
.bl-loc__hang { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--bl-s-4); }
.bl-loc__hang > div { flex: 1 1 200px; display: flex; flex-direction: column; gap: var(--bl-s-1); }
.bl-loc label { font-size: var(--bl-fs-1); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--bl-reu-mo); }
.bl-loc select,
.bl-loc input {
	width: 100%;
	padding: var(--bl-s-3) var(--bl-s-4);
	border: 1px solid var(--bl-vien);
	border-radius: var(--bl-bo);
	background: var(--bl-kem);
	color: var(--bl-muc);
	font: inherit;
	font-size: var(--bl-fs-2);
}
.bl-loc select:hover,
.bl-loc input:hover { border-color: var(--bl-reu-mo); }
/* Ô tìm trên trang 404 dùng chung khối `.bl-loc`, nhưng ở giữa và hẹp hơn. */
.bl-trong .bl-loc { max-width: 520px; margin: 0 auto; text-align: left; }
.bl-loc__xoa { font-size: var(--bl-fs-2); font-weight: 600; color: var(--bl-reu); text-decoration: underline; text-underline-offset: 3px; }
.bl-loc__dem { font-size: var(--bl-fs-2); color: var(--bl-xam); margin: var(--bl-s-4) 0 0; }
.bl-loc__dem b { color: var(--bl-muc); }

/*
 * LƯỚI WOOCOMMERCE — ba máy một hàng.
 *
 * Mọi bộ chọn ở đây mang `body.bl-may` VÀ `[class*="columns-"]`, có lý do đo
 * được. WooCommerce viết `.woocommerce ul.products.columns-3 li.product {…}` —
 * bốn lớp, hai phần tử, tức độ ưu tiên (0,4,2) — và đặt ở đó `float: left`,
 * `width: 30.75%`, lề dưới gần 48px, cộng `font-size` riêng cho tên và giá.
 *
 * ĐO ĐƯỢC: với bộ chọn `body.bl-may ul.products li.product` (chỉ (0,3,3)) thẻ
 * máy vẫn chỉ rộng **120px trong ô lưới 390px** — đúng 30,75% — vì nó THUA
 * (0,4,2) của WooCommerce. Thêm `[class*="columns-"]` đưa bộ chọn lên (0,4,3)
 * và thắng, đồng thời bắt được mọi số cột (`columns-2`, `columns-3`,
 * `columns-4`) chứ không riêng ba cột. Thiếu một bậc ưu tiên ở đây là thẻ máy
 * teo lại và thang chữ sáu bậc mất hiệu lực ngay trên trang quan trọng nhất.
 *
 * Các luật trong media query cũng phải mang đủ hai thứ ấy, nếu không chúng lại
 * thua chính luật ba cột ở đây và lưới không về hai cột ở màn hẹp.
 */
body.bl-may ul.products {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--bl-s-5);
	list-style: none;
	margin: 0; padding: 0;
}
body.bl-may ul.products::before,
body.bl-may ul.products::after { content: none; display: none; }
body.bl-may ul.products[class*="columns-"] li.product {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--bl-giay);
	border: 1px solid var(--bl-vien);
	border-radius: var(--bl-bo);
	overflow: hidden;
	margin: 0; padding: 0;
	width: auto;
	float: none;
	transition: transform var(--bl-nhanh), box-shadow var(--bl-nhanh), border-color var(--bl-nhanh);
}
/* Rê chuột: nâng thẻ 5px bằng transform (hiệu ứng cuộn dùng translate riêng). */
body.bl-may ul.products[class*="columns-"] li.product:hover {
	box-shadow: var(--bl-bong-2);
	border-color: var(--bl-lua);
	transform: translateY(-5px);
}
/*
 * Thẻ `<a>` của WooCommerce bọc CẢ ảnh, tên và giá — không phải chỉ ảnh. Nên
 * tỉ lệ 4:3 khai trên chính thẻ `<img>`, còn `overflow: hidden` khai trên thẻ
 * `<a>` để ảnh phóng lên không chìa ra ngoài. Khai tỉ lệ trên thẻ `<a>` là cắt
 * mất tên máy và giá.
 */
body.bl-may ul.products[class*="columns-"] li.product > a.woocommerce-LoopProduct-link {
	display: block;
	overflow: hidden;
	text-decoration: none;
}
body.bl-may ul.products[class*="columns-"] li.product img {
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	margin: 0;
	background: var(--bl-kem-sau);
	transition: transform .5s var(--bl-ease);
}
body.bl-may ul.products[class*="columns-"] li.product:hover img { transform: scale(1.05); }

/* Nhãn nhóm nông sản ở góc ảnh. */
.bl-tag {
	position: absolute;
	top: var(--bl-s-3);
	left: var(--bl-s-3);
	z-index: 3;
	padding: var(--bl-s-1) var(--bl-s-3);
	background: var(--bl-lua);
	color: var(--bl-muc);
	border-radius: var(--bl-bo-nho);
	font-size: var(--bl-fs-1);
	font-weight: 700;
}

/*
 * Nút phụ "Xem máy" trượt lên khi rê chuột.
 *
 * Khung nút trùm ĐÚNG khung ảnh: cùng tỉ lệ 4:3, cùng chiều rộng thẻ, neo ở
 * đỉnh thẻ — nên không cần biết chiều cao ảnh bằng pixel. `pointer-events` để
 * `none` ở khung và `auto` ở dải chữ, để khung trong suốt không chặn chuột trên
 * ảnh; dải chữ lúc chưa hiện nằm ngoài vùng `overflow: hidden` nên cũng không
 * bắt được chuột.
 */
.bl-quick {
	position: absolute;
	top: 0; left: 0; right: 0;
	z-index: 2;
	aspect-ratio: 4 / 3;
	display: flex;
	align-items: flex-end;
	overflow: hidden;
	pointer-events: none;
	text-decoration: none;
}
.bl-quick span {
	display: block;
	width: 100%;
	padding: var(--bl-s-3);
	background: rgba(42, 52, 32, .92);
	color: var(--bl-kem);
	font-size: var(--bl-fs-2);
	font-weight: 600;
	text-align: center;
	pointer-events: auto;
	transform: translateY(100%);
	transition: transform var(--bl-nhanh);
}
body.bl-may ul.products[class*="columns-"] li.product:hover .bl-quick span { transform: translateY(0); }
/* Màn cảm ứng không có "rê chuột" — nút sẽ hiện rồi đứng đó che ảnh. */
@media (hover: none) { .bl-quick { display: none; } }

body.bl-may ul.products[class*="columns-"] li.product .woocommerce-loop-product__title {
	font-family: 'Bai Jamjuree', 'Be Vietnam Pro', sans-serif;
	font-size: var(--bl-fs-3);
	font-weight: 700;
	line-height: 1.3;
	margin: 0;
	padding: var(--bl-s-4) var(--bl-s-4) var(--bl-s-2);
}
body.bl-may ul.products[class*="columns-"] li.product .price {
	display: block;
	padding: 0 var(--bl-s-4);
	margin: 0;
	color: var(--bl-muc);
	font-size: var(--bl-fs-3);
	font-weight: 700;
}
.bl-gia__tu { font-size: var(--bl-fs-1); font-weight: 600; color: var(--bl-xam); }
.bl-gia__ghi { display: block; font-size: var(--bl-fs-1); font-weight: 400; color: var(--bl-xam); }

/* Khối thông số trên thẻ máy: ba dòng quan trọng nhất. */
.bl-ts {
	margin: var(--bl-s-4) 0 0;
	padding: var(--bl-s-4);
	border-top: 1px solid var(--bl-vien);
	font-size: var(--bl-fs-2);
	display: grid;
	gap: var(--bl-s-1);
	flex: 1;
	align-content: start;
}
.bl-ts > div { display: flex; justify-content: space-between; gap: var(--bl-s-3); }
.bl-ts dt { color: var(--bl-xam); margin: 0; }
.bl-ts dd { margin: 0; font-weight: 600; text-align: right; }

.bl-the__nut { margin: 0 var(--bl-s-4) var(--bl-s-4); justify-content: center; }

/*
 * PHÂN TRANG. Bộ chọn phải đi hết đường `nav … ul li a` chứ không rút gọn:
 * WooCommerce viết `.woocommerce nav.woocommerce-pagination ul li span.current`
 * — (0,3,4). Bản rút gọn `body.bl-may .woocommerce-pagination span.current` chỉ
 * là (0,3,2) và THUA, nên ô trang đang xem giữ nguyên màu tím nhạt mặc định:
 * ĐO ĐƯỢC #816F98 trên #E9E6ED, **3,65:1** — dưới ngưỡng 4,5:1.
 */
body.bl-may nav.woocommerce-pagination { margin-top: var(--bl-s-7); }
body.bl-may nav.woocommerce-pagination ul {
	display: flex;
	flex-wrap: wrap;
	gap: var(--bl-s-2);
	list-style: none;
	margin: 0; padding: 0;
	border: 0;
}
body.bl-may nav.woocommerce-pagination ul li { border: 0; margin: 0; }
body.bl-may nav.woocommerce-pagination ul li a,
body.bl-may nav.woocommerce-pagination ul li span {
	display: grid;
	place-items: center;
	min-width: 42px; height: 42px;
	padding: 0 var(--bl-s-3);
	background: var(--bl-giay);
	border: 1px solid var(--bl-vien);
	border-radius: var(--bl-bo);
	font-size: var(--bl-fs-2);
	font-weight: 600;
	text-decoration: none;
}
body.bl-may nav.woocommerce-pagination ul li span.current { background: var(--bl-reu); border-color: var(--bl-reu); color: var(--bl-kem); }

/* ── Trạng thái rỗng: lọc rỗng, tìm kiếm rỗng, 404 ────────────────── */
.bl-trong {
	background: var(--bl-giay);
	border: 1px solid var(--bl-vien);
	border-radius: var(--bl-bo);
	padding: var(--bl-s-8) var(--bl-s-5);
	text-align: center;
}
.bl-trong__hinh { display: block; color: var(--bl-reu-mo); margin: 0 auto var(--bl-s-5); width: 64px; }
.bl-trong__hinh svg { width: 64px; height: 64px; }
.bl-trong h2 { font-size: var(--bl-fs-4); margin-bottom: var(--bl-s-3); }
.bl-trong p { font-size: var(--bl-fs-2); color: var(--bl-xam); max-width: 56ch; margin: 0 auto var(--bl-s-5); }
.bl-trong__cta { display: flex; flex-wrap: wrap; gap: var(--bl-s-3); justify-content: center; }

/* =====================================================================
 * 7. TRANG CHI TIẾT MÁY
 * ===================================================================== */
.bl-single__wrap { padding: var(--bl-s-8) 0 var(--bl-s-9); }

body.bl-may div.product {
	display: grid;
	grid-template-columns: 1.05fr .95fr;
	gap: var(--bl-s-8);
	align-items: start;
}
body.bl-may div.product .woocommerce-product-gallery { width: 100%; margin: 0; float: none; }
body.bl-may div.product .woocommerce-product-gallery__wrapper { margin: 0; }
body.bl-may div.product .woocommerce-product-gallery img { border-radius: var(--bl-bo); }
body.bl-may div.product .summary { width: 100%; margin: 0; float: none; }
body.bl-may div.product .summary .price {
	display: block;
	font-size: var(--bl-fs-5);
	font-weight: 700;
	color: var(--bl-muc);
	margin-bottom: var(--bl-s-4);
}
body.bl-may div.product .woocommerce-product-details__short-description {
	font-size: var(--bl-fs-3);
	color: var(--bl-xam);
	margin-bottom: var(--bl-s-5);
}

.bl-bangts { margin-bottom: var(--bl-s-5); }
.bl-bangts__tieu { font-size: var(--bl-fs-4); margin-bottom: var(--bl-s-3); }
/* Bảng cho cuộn ngang trong KHUNG RIÊNG, không để cả trang tràn ngang. */
.bl-cuon { overflow-x: auto; border: 1px solid var(--bl-vien); border-radius: var(--bl-bo); }
.bl-cuon table { width: 100%; border-collapse: collapse; font-size: var(--bl-fs-2); background: var(--bl-giay); }
.bl-cuon th, .bl-cuon td { padding: var(--bl-s-3) var(--bl-s-4); text-align: left; border-bottom: 1px solid var(--bl-vien); }
.bl-cuon tr:last-child th, .bl-cuon tr:last-child td { border-bottom: 0; }
.bl-cuon th { width: 42%; color: var(--bl-xam); font-weight: 600; }
.bl-cuon td { font-weight: 600; }
.bl-bangts__nhac { font-size: var(--bl-fs-1); color: var(--bl-xam); margin: var(--bl-s-3) 0 0; }

.bl-cta-don { display: flex; flex-wrap: wrap; gap: var(--bl-s-3); margin-bottom: var(--bl-s-3); }
.bl-cta-don__ghi { font-size: var(--bl-fs-2); color: var(--bl-xam); }

/*
 * THẺ "MÔ TẢ" / "ĐÁNH GIÁ" trên trang chi tiết.
 *
 * Bộ chọn phải có cả `div.product`. WooCommerce viết
 * `.woocommerce div.product .woocommerce-tabs ul.tabs li a { color: #515151 }`
 * — (0,4,4). Bộ chọn thiếu `div.product` chỉ là (0,3,4) và THUA, nên chữ trên
 * thẻ giữ màu xám #515151 của WooCommerce trong khi nền thẻ đang bật đã nhận
 * màu rêu của mẫu: ĐO ĐƯỢC #515151 trên nền #3C4A2A, chỉ 1,9:1 — chữ gần như
 * biến mất. Thêm `div.product` đưa lên (0,4,5) và thắng.
 */
body.bl-may div.product .woocommerce-tabs { grid-column: 1 / -1; margin-top: var(--bl-s-7); }
body.bl-may div.product .woocommerce-tabs ul.tabs {
	display: flex;
	flex-wrap: wrap;
	gap: var(--bl-s-2);
	list-style: none;
	margin: 0 0 var(--bl-s-5);
	padding: 0 0 var(--bl-s-3);
	border-bottom: 1px solid var(--bl-vien);
}
body.bl-may div.product .woocommerce-tabs ul.tabs::before,
body.bl-may div.product .woocommerce-tabs ul.tabs::after { content: none; display: none; }
body.bl-may div.product .woocommerce-tabs ul.tabs li {
	background: transparent;
	border: 0;
	border-radius: 0;
	margin: 0; padding: 0;
}
body.bl-may div.product .woocommerce-tabs ul.tabs li::before,
body.bl-may div.product .woocommerce-tabs ul.tabs li::after { content: none; display: none; }
body.bl-may div.product .woocommerce-tabs ul.tabs li a {
	display: block;
	padding: var(--bl-s-2) var(--bl-s-4);
	border-radius: var(--bl-bo-tron);
	font-size: var(--bl-fs-2);
	font-weight: 600;
	color: var(--bl-xam);
	text-decoration: none;
}
body.bl-may div.product .woocommerce-tabs ul.tabs li.active a { background: var(--bl-reu); color: var(--bl-kem); }
body.bl-may div.product .woocommerce-tabs .panel h2 { font-size: var(--bl-fs-4); margin-bottom: var(--bl-s-3); }

body.bl-may .related.products {
	grid-column: 1 / -1;
	margin-top: var(--bl-s-8);
	padding-top: var(--bl-s-7);
	border-top: 1px solid var(--bl-vien);
}
body.bl-may .related.products > h2 { font-size: var(--bl-fs-5); margin-bottom: var(--bl-s-6); }

/* =====================================================================
 * 8. TRANG TĨNH, GIỚI THIỆU, LIÊN HỆ
 * ===================================================================== */
.bl-page__body { padding: var(--bl-s-8) 0 var(--bl-s-9); }
.bl-page__body h2 { font-size: var(--bl-fs-5); margin: var(--bl-s-7) 0 var(--bl-s-4); }
.bl-page__body h3 { font-size: var(--bl-fs-4); margin: var(--bl-s-5) 0 var(--bl-s-3); }

.bl-hai { display: grid; grid-template-columns: 1fr 1fr; gap: var(--bl-s-8); align-items: start; }
.bl-hai--lech { grid-template-columns: 1.15fr .85fr; }

.bl-gt__ds { margin: var(--bl-s-5) 0 0; padding: 0; list-style: none; }
.bl-gt__ds li { position: relative; padding-left: var(--bl-s-7); margin-bottom: var(--bl-s-4); font-size: var(--bl-fs-2); }
.bl-gt__ds li::before {
	content: '';
	position: absolute;
	left: 0; top: .3em;
	width: 20px; height: 20px;
	background: var(--bl-lua);
	border-radius: var(--bl-bo-nho);
}
.bl-gt__ds li b { display: block; font-size: var(--bl-fs-3); margin-bottom: 2px; }

.bl-lh__hai { display: grid; grid-template-columns: .9fr 1.1fr; gap: var(--bl-s-8); align-items: start; }
.bl-lh__the { display: grid; gap: var(--bl-s-4); background: var(--bl-giay); border: 1px solid var(--bl-vien); border-radius: var(--bl-bo); padding: var(--bl-s-5); }
.bl-lh__o b { display: block; font-size: var(--bl-fs-1); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--bl-reu-mo); margin-bottom: var(--bl-s-1); }
.bl-lh__o a { font-size: var(--bl-fs-3); font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--bl-lua); }
.bl-lh__o a:hover { color: var(--bl-reu); }

.bl-form { background: var(--bl-giay); border: 1px solid var(--bl-vien); border-radius: var(--bl-bo); padding: var(--bl-s-6); }
.bl-form h3 { font-size: var(--bl-fs-4); margin-bottom: var(--bl-s-5); }
.bl-form__hang { display: grid; gap: var(--bl-s-4); margin-bottom: var(--bl-s-4); }
.bl-form__hang--2 { grid-template-columns: 1fr 1fr; }
.bl-form__hang > div { display: flex; flex-direction: column; gap: var(--bl-s-1); }
.bl-form label { font-size: var(--bl-fs-1); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--bl-reu-mo); }
.bl-form input,
.bl-form select,
.bl-form textarea {
	width: 100%;
	padding: var(--bl-s-3) var(--bl-s-4);
	border: 1px solid var(--bl-vien);
	border-radius: var(--bl-bo);
	background: var(--bl-kem);
	color: var(--bl-muc);
	font: inherit;
	font-size: var(--bl-fs-2);
}
.bl-form textarea { min-height: 120px; resize: vertical; }
.bl-form input:hover,
.bl-form select:hover,
.bl-form textarea:hover { border-color: var(--bl-reu-mo); }
.bl-form__ghi { font-size: var(--bl-fs-1); color: var(--bl-xam); margin: var(--bl-s-3) 0 0; }
.bl-form .bl-btn { margin-top: var(--bl-s-2); }

/* Lời nhắn sau khi bấm gửi. */
.bl-toast {
	position: fixed;
	left: 50%;
	bottom: var(--bl-s-5);
	z-index: 60;
	width: min(560px, calc(100vw - 2 * var(--bl-s-5)));
	transform: translateX(-50%);
	background: var(--bl-muc);
	color: var(--bl-kem);
	border-left: 4px solid var(--bl-lua);
	border-radius: var(--bl-bo);
	padding: var(--bl-s-4) var(--bl-s-5);
	font-size: var(--bl-fs-2);
	box-shadow: var(--bl-bong-2);
	animation: bl-toast .4s var(--bl-ease) both;
}
@keyframes bl-toast {
	from { opacity: 0; transform: translate(-50%, 16px); }
	to   { opacity: 1; transform: translate(-50%, 0); }
}

/* =====================================================================
 * 9. CHÂN TRANG
 * ===================================================================== */
.bl-foot { background: var(--bl-reu); color: rgba(247, 242, 228, .82); }
.bl-foot__grid {
	display: grid;
	grid-template-columns: 1.4fr .8fr .8fr 1fr;
	gap: var(--bl-s-7);
	padding: var(--bl-s-8) var(--bl-s-5);
}
.bl-foot h2 { font-size: var(--bl-fs-3); color: var(--bl-kem); margin-bottom: var(--bl-s-4); }
.bl-foot__desc { font-size: var(--bl-fs-2); margin-top: var(--bl-s-4); max-width: 44ch; }
.bl-foot__col ul { margin: 0; padding: 0; list-style: none; }
.bl-foot__col li { margin-bottom: var(--bl-s-2); }
.bl-foot__col a { font-size: var(--bl-fs-2); text-decoration: none; }
.bl-foot__col a span { border-bottom: 1px solid transparent; transition: border-color var(--bl-nhanh), color var(--bl-nhanh); }
.bl-foot__col a:hover span { color: var(--bl-lua-nhat); border-color: var(--bl-lua); }
.bl-foot__lh { margin: var(--bl-s-5) 0 0; padding: 0; list-style: none; }
.bl-foot__lh li { display: flex; align-items: center; gap: var(--bl-s-3); margin-bottom: var(--bl-s-3); font-size: var(--bl-fs-2); }
.bl-foot__lh svg { width: 18px; height: 18px; flex: none; color: var(--bl-lua); }
.bl-foot__lh a { text-decoration: none; border-bottom: 1px solid rgba(242, 220, 156, .4); }
.bl-foot__lh a:hover { color: var(--bl-lua-nhat); }
.bl-foot__bot { background: var(--bl-reu-sau); font-size: var(--bl-fs-1); }
.bl-foot__bot .bl-wrap { padding-top: var(--bl-s-4); padding-bottom: var(--bl-s-4); }
.bl-foot__bot p { margin: 0 0 var(--bl-s-1); }
.bl-foot__bot a { color: var(--bl-lua-nhat); }

/* =====================================================================
 * 10. KHỐI CỦA WOOCOMMERCE (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 của theme mẹ.
 * Nút của block KHÔNG mang lớp `.button` nên bộ chọn nút ở trên không bắt
 * được — phải khai lại đủ các họ lớp dưới đây.
 *
 * Ba trang này vẫn phải chạy không lỗi dù site không bán qua giỏ: người dùng
 * có thể tới thẳng bằng địa chỉ, và `page.php` của theme lo phần khung.
 * ===================================================================== */
body.bl-may .wc-block-components-button,
body.bl-may .wc-block-cart__submit-button,
body.bl-may .wc-block-components-checkout-place-order-button,
body.bl-may .wp-block-button__link,
body.bl-may .wc-block-components-product-button a,
body.bl-may .woocommerce a.button,
body.bl-may .woocommerce button.button,
body.bl-may .woocommerce input.button,
body.bl-may .wp-element-button {
	background: var(--bl-reu) !important;
	border: 2px solid var(--bl-reu) !important;
	color: var(--bl-kem) !important;
	border-radius: var(--bl-bo) !important;
	font-family: inherit !important;
	font-size: var(--bl-fs-2) !important;
	font-weight: 600 !important;
	padding: var(--bl-s-3) var(--bl-s-5) !important;
	white-space: nowrap;
	text-decoration: none;
	transition: background var(--bl-nhanh), border-color var(--bl-nhanh);
}
body.bl-may .wc-block-components-button:hover,
body.bl-may .wc-block-cart__submit-button:hover,
body.bl-may .wc-block-components-checkout-place-order-button:hover,
body.bl-may .wp-block-button__link:hover,
body.bl-may .wc-block-components-product-button a:hover,
body.bl-may .woocommerce a.button:hover,
body.bl-may .woocommerce button.button:hover,
body.bl-may .woocommerce input.button:hover,
body.bl-may .wp-element-button:hover {
	background: var(--bl-reu-sau) !important;
	border-color: var(--bl-reu-sau) !important;
	color: var(--bl-kem) !important;
}
body.bl-may .woocommerce-info,
body.bl-may .woocommerce-message,
body.bl-may .woocommerce-error,
body.bl-may .wc-block-components-notice-banner {
	background: var(--bl-giay);
	border: 1px solid var(--bl-vien);
	border-left: 4px solid var(--bl-lua);
	border-radius: var(--bl-bo);
	color: var(--bl-muc);
	padding: var(--bl-s-4) var(--bl-s-5);
	margin-bottom: var(--bl-s-5);
	list-style: none;
}
body.bl-may .woocommerce-info::before,
body.bl-may .woocommerce-message::before,
body.bl-may .woocommerce-error::before { content: none; }
body.bl-may .wc-block-components-title,
body.bl-may .wc-block-cart__empty-cart__title { color: var(--bl-muc); }

/*
 * Lưới "Mới trong cửa hàng" trên trang GIỎ HÀNG RỖNG.
 *
 * Khối này của WooCommerce dùng `margin: 0 -8px` cho thẻ `<ul>` và bù lại bằng
 * `padding: 0 8px` ở mỗi `<li>`. Lề âm ấy đẩy lưới rộng hơn khung 16px và gây
 * TRÀN NGANG 8px — đo được ở 768px: `ul.wc-block-grid__products` rộng 784px
 * trong khung 768px, mép trái ở -8px. Dựng lại bằng grid của mẫu thì vừa hết
 * tràn, vừa cho khối ấy trông cùng một nhà với lưới máy.
 */
body.bl-may ul.wc-block-grid__products {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--bl-s-5);
	margin: 0;
	padding: 0;
	list-style: none;
}
body.bl-may ul.wc-block-grid__products li.wc-block-grid__product {
	width: auto;
	max-width: none;
	margin: 0;
	padding: 0;
	background: var(--bl-giay);
	border: 1px solid var(--bl-vien);
	border-radius: var(--bl-bo);
	overflow: hidden;
	padding-bottom: var(--bl-s-4);
}
body.bl-may ul.wc-block-grid__products .wc-block-grid__product-title,
body.bl-may ul.wc-block-grid__products .wc-block-grid__product-price {
	padding: 0 var(--bl-s-4);
}

/* =====================================================================
 * 11. MÀN HẸP
 * ===================================================================== */
@media (max-width: 1100px) {
	.bl-nhom,
	.bl-qm { grid-template-columns: repeat(2, 1fr); }
	.bl-pt,
	.bl-buoc { grid-template-columns: repeat(2, 1fr); }
	body.bl-may ul.products,
	body.bl-may ul.wc-block-grid__products { grid-template-columns: repeat(2, 1fr); }
	body.bl-may div.product { grid-template-columns: 1fr; gap: var(--bl-s-6); }
	.bl-chot,
	.bl-hai,
	.bl-hai--lech,
	.bl-lh__hai { grid-template-columns: 1fr; gap: var(--bl-s-6); }
	.bl-foot__grid { grid-template-columns: 1fr 1fr; gap: var(--bl-s-6); }
	.bl-so-do__hang { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 920px) {
	:root { --bl-s-9: 72px; --bl-s-8: 56px; }

	.bl-burger { display: block; }

	/*
	 * Menu điện thoại: trôi xuống dưới hàng đầu trang. `position: absolute` nên
	 * không làm hàng đầu trang cao thêm — chiều cao thanh giữ nguyên đúng như
	 * trên máy tính.
	 */
	.bl-nav {
		position: absolute;
		top: 100%;
		left: 0; right: 0;
		margin: 0;
		background: var(--bl-giay);
		border-bottom: 1px solid var(--bl-vien);
		box-shadow: var(--bl-bong);
		display: none;
	}
	.bl-nav.is-open { display: block; animation: bl-menu .26s var(--bl-ease) both; }
	@keyframes bl-menu { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
	.bl-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: var(--bl-s-3) var(--bl-s-5); }
	.bl-nav li + li { border-top: 1px solid var(--bl-vien); }
	.bl-nav a { padding: var(--bl-s-3) 0; font-size: var(--bl-fs-3); }
	.bl-nav a::after { display: none; }

	/*
	 * Nút gọi rời khỏi đầu trang ở màn hẹp; số điện thoại vẫn có ở dải trên
	 * cùng, ở chân trang và ở trang Liên hệ.
	 *
	 * Tiền tố `body.bl-may` là BẮT BUỘC: luật nền của nút là
	 * `body.bl-may .bl-btn { display: inline-flex }` — (0,2,1) — nên một luật
	 * `.bl-tools .bl-btn--lua` (0,2,0) THUA nó dù nằm sau trong tệp, và nút
	 * không ẩn. ĐO ĐƯỢC khi còn thiếu tiền tố: tràn ngang **171px ở 375px trên
	 * MỌI trang**, vì nút có `white-space: nowrap` và số điện thoại không xuống
	 * dòng được. Thêm một lớp cho cả tệp thì phải soát lại mọi luật đè lên nó.
	 */
	body.bl-may .bl-tools .bl-btn--lua { display: none; }
}

@media (max-width: 680px) {
	/*
	 * Ở 375px, hàng đầu trang tràn ngang 23px. Đo được: `.bl-tools` chạm mốc
	 * 398px trong khung 375px. Nguyên nhân là dòng nhãn dưới tên thương hiệu —
	 * 26 chữ hoa với `letter-spacing: .1em` — cộng lề 24px mỗi bên đẩy cả hàng
	 * rộng hơn khung. Hai sửa nhỏ, không bỏ chữ nào:
	 *   lề hai bên về 16px, và nhãn bớt giãn chữ ở riêng đầu trang.
	 * `min-width: 0` để cột chữ co được trong flex thay vì lấy chiều rộng nội
	 * dung làm chiều rộng tối thiểu.
	 */
	.bl-wrap { padding: 0 var(--bl-s-4); }
	.bl-head .bl-brand__tag { letter-spacing: .02em; }
	.bl-brand__text { min-width: 0; }
	.bl-head__row { gap: var(--bl-s-3); }

	.bl-nhom,
	.bl-qm,
	.bl-pt,
	.bl-buoc { grid-template-columns: 1fr; }
	body.bl-may ul.products,
	body.bl-may ul.wc-block-grid__products { grid-template-columns: 1fr; }
	.bl-foot__grid { grid-template-columns: 1fr; }
	.bl-so-do__hang { grid-template-columns: repeat(2, 1fr); }
	.bl-form__hang--2 { grid-template-columns: 1fr; }
	.bl-pt__o { flex-direction: column; }
	.bl-pt__anh { width: 100%; aspect-ratio: 16 / 10; }
	.bl-hero__so { gap: var(--bl-s-5); }
	.bl-dai__in { justify-content: center; text-align: center; }
}

/* =====================================================================
 * 12. CHUYỂN ĐỘNG THEO CUỘN + BA ĐƯỜNG DỰ PHÒNG
 *
 * Bộ chọn khai ở HAI nơi: ở đây, và `SEL` / `SEL_SO` / `SEL_VE` / `SEL_BT` ở
 * đầu `assets/site.js`. Phải khớp từng chữ — lệch là có phần tử CSS giấu mà
 * kịch bản không bao giờ gọi hiện ra, tức là ẩn vĩnh viễn.
 *
 * ĐƯỜNG DỰ PHÒNG 1: chỉ giấu khi thẻ <html> có lớp `bl-js`, và lớp ấy do
 * script NỘI TUYẾN trong <head> (header.php) gắn — không phải do tệp JS
 * `defer` này. Tắt JS là trang hiện đủ nội dung, không chớp một nhịp nào.
 *
 * Hiệu ứng cuộn dùng thuộc tính `translate` RIÊNG, còn hiệu ứng rê chuột dùng
 * `transform`. Cả hai cùng ghi vào `transform` thì chúng tranh nhau một thuộc
 * tính, và thẻ máy vừa hiện ra sẽ nâng lên theo nhịp 700ms của hiện-dần chứ
 * không phải 220ms của rê chuột. Hai thuộc tính riêng thì trình duyệt cộng lại.
 * ===================================================================== */
.bl-js [data-bl-rise] > *,
.bl-js [data-bl-so],
.bl-js [data-bl-ve] {
	opacity: 0;
	translate: 0 20px;
	transition: opacity .7s var(--bl-ease), translate .7s var(--bl-ease);
}
.bl-js [data-bl-rise] > *.is-in,
.bl-js [data-bl-so].is-in,
.bl-js [data-bl-ve].is-in {
	opacity: 1;
	translate: 0 0;
}

/* Lệch nhịp 80ms giữa các phần tử cùng hàng. */
.bl-js [data-bl-rise] > *:nth-child(2) { transition-delay: .08s; }
.bl-js [data-bl-rise] > *:nth-child(3) { transition-delay: .16s; }
.bl-js [data-bl-rise] > *:nth-child(4) { transition-delay: .24s; }
.bl-js [data-bl-rise] > *:nth-child(5) { transition-delay: .32s; }
.bl-js [data-bl-rise] > *:nth-child(6) { transition-delay: .40s; }

/* Nét vẽ dần — sơ đồ dòng chảy chế biến. */
.bl-js [data-bl-ve] .bl-net {
	stroke-dasharray: 900;
	stroke-dashoffset: 900;
	transition: stroke-dashoffset 1.6s var(--bl-ease);
}
.bl-js [data-bl-ve].is-in .bl-net { stroke-dashoffset: 0; }
.bl-js [data-bl-ve] .bl-net--2 { transition-delay: .3s; }
.bl-js [data-bl-ve] .bl-net--3 { transition-delay: .6s; }
/* Các nút trên sơ đồ nở ra sau khi nét đã chạy qua. */
.bl-js [data-bl-ve] .bl-nut { transform: scale(0); transform-origin: center; transition: transform .5s var(--bl-ease); }
.bl-js [data-bl-ve].is-in .bl-nut { transform: scale(1); }
.bl-js [data-bl-ve] .bl-nut:nth-of-type(2) { transition-delay: .25s; }
.bl-js [data-bl-ve] .bl-nut:nth-of-type(3) { transition-delay: .45s; }
.bl-js [data-bl-ve] .bl-nut:nth-of-type(4) { transition-delay: .65s; }
.bl-js [data-bl-ve] .bl-nut:nth-of-type(5) { transition-delay: .85s; }
.bl-js [data-bl-ve] .bl-nut:nth-of-type(6) { transition-delay: 1.05s; }

/*
 * HERO VÀO TRANG. Hero KHÔNG bị ẩn: `opacity` luôn 1, chỉ `translate` đổi, nên
 * phần tử LCP hiện ngay từ khung hình đầu. Năm dòng vào lệch nhịp 80ms.
 */
@media (prefers-reduced-motion: no-preference) {
	.bl-js .bl-hero__in > * { animation: bl-vao .8s var(--bl-ease) both; }
	.bl-js .bl-hero__in > *:nth-child(2) { animation-delay: .08s; }
	.bl-js .bl-hero__in > *:nth-child(3) { animation-delay: .16s; }
	.bl-js .bl-hero__in > *:nth-child(4) { animation-delay: .24s; }
	.bl-js .bl-hero__in > *:nth-child(5) { animation-delay: .32s; }
	@keyframes bl-vao {
		from { translate: 0 18px; }
		to   { translate: 0 0; }
	}

	/* Ảnh nền hero thu rất chậm — 12 giây, một lần, không lặp. */
	.bl-hero__anh img { animation: bl-zoom 12s var(--bl-ease) both; }
	@keyframes bl-zoom {
		from { transform: scale(1.06); }
		to   { transform: scale(1); }
	}

	/* Băng tải trang trí chạy liên tục. */
	.bl-bt i { animation: bl-bt 9s linear infinite; }
	@keyframes bl-bt {
		from { transform: translateX(0); }
		to   { transform: translateX(-33.3333%); }
	}
}

/*
 * ĐƯỜNG DỰ PHÒNG 3 — hẹn giờ 2,5 giây.
 *
 * Script nội tuyến trong <head> gắn `bl-show-all` nếu tới mốc 2,5s mà chưa
 * thấy cờ `data-bl-io`, tức IntersectionObserver chưa kích hoạt lần nào. Đây
 * là rủi ro THẬT, không phải giả định: trong khung xem của công cụ trình duyệt
 * IO không kích hoạt lần nào, và không có đường này thì mọi khối ở lại ẩn
 * vĩnh viễn.
 */
html.bl-show-all [data-bl-rise] > *,
html.bl-show-all [data-bl-so],
html.bl-show-all [data-bl-ve] {
	opacity: 1 !important;
	translate: 0 0 !important;
	transition: none !important;
}
html.bl-show-all [data-bl-ve] .bl-net { stroke-dashoffset: 0 !important; transition: none !important; }
html.bl-show-all [data-bl-ve] .bl-nut { transform: scale(1) !important; transition: none !important; }

/*
 * ĐƯỜNG DỰ PHÒNG 2 — người dùng xin bớt chuyển động thì bỏ hết, hiện hết ngay.
 */
@media (prefers-reduced-motion: reduce) {
	.bl-js [data-bl-rise] > *,
	.bl-js [data-bl-so],
	.bl-js [data-bl-ve] {
		opacity: 1 !important;
		translate: 0 0 !important;
		transition: none !important;
	}
	.bl-js [data-bl-ve] .bl-net { stroke-dashoffset: 0 !important; transition: none !important; }
	.bl-js [data-bl-ve] .bl-nut { transform: scale(1) !important; transition: none !important; }
	body.bl-may *,
	body.bl-may *::before,
	body.bl-may *::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
		scroll-behavior: auto !important;
	}
	.bl-bt i { animation: none !important; }
	.bl-head { transition: none !important; }
}
