/*
Theme Name: Sóng Vui — Trung tâm tiếng Anh cho trẻ
Theme URI: https://mauwebsitedep.net/
Description: Mẫu website trung tâm tiếng Anh cho trẻ mẫu giáo và tiểu học. Theme con của vinasite, chạy WooCommerce ở chế độ danh mục. Bố cục chia theo bốn nhóm tuổi; cam san hô với xanh biển và trắng, phông sans tròn đậm, hình trang trí là sóng, vòng tròn, ngôi sao và bong bóng thoại vẽ bằng SVG nội tuyến.
Author: VinaSite
Author URI: https://vinasite.com.vn/
Template: vinasite
Version: 1.0.0
Text Domain: ngoaingu-mau-04
*/

/* =====================================================================
 * 1. BIẾN
 *
 * Bảng màu: CAM SAN HÔ làm màu chính, XANH BIỂN làm màu thứ hai, TRẮNG làm
 * nền. Cố ý khác bốn mẫu ngoại ngữ kia (01 xanh dương tươi + vàng, 02 than
 * chì + xanh lá, 03 đỏ đô + kem, 05 xám than + xanh dương đậm) và khác
 * `truonghoc-mau-01` (vàng kem + xanh lá).
 *
 * BẪY SỐ 10 — CAM SAN HÔ VỚI CHỮ TRẮNG SÁT NGƯỠNG. Cam tươi `#FF7A59` chỉ
 * đạt khoảng 2,4:1 với chữ trắng, nên nó CHỈ dùng làm nền trang trí không có
 * chữ, hoặc nền của chữ MỰC. Mọi chỗ có chữ trắng dùng `--sgv-cam` (đo được
 * 4,8:1) hoặc đậm hơn.
 * ===================================================================== */
:root {
	--sgv-cam:        #CE4124;   /* cam san hô đậm — nút, nhãn, chữ trắng nằm trên đây (4,77:1) */
	--sgv-cam-sau:    #A82F16;   /* cam nướng — trạng thái rê chuột, chữ trên nền sáng */
	--sgv-cam-tuoi:   #FF7A59;   /* cam san hô tươi — CHỈ nền và hình trang trí, không đặt chữ */
	--sgv-cam-sang:   #FFB8A3;   /* cam phớt — chữ cam TRÊN NỀN TỐI (4,84:1 trên xanh biển) */
	--sgv-cam-nhat:   #FFEDE6;   /* cam rất nhạt — nền khối xen kẽ */

	--sgv-bien:       #14557A;   /* xanh biển sâu — tiêu đề, khối nền tối */
	--sgv-bien-sau:   #0D3C58;   /* xanh biển đêm — chân trang */
	--sgv-bien-sang:  #2A9AB8;   /* xanh biển sáng — hình trang trí, không đặt chữ trắng */
	--sgv-bien-nhat:  #E7F4F8;   /* xanh biển rất nhạt — nền khối */

	--sgv-trang:      #FFFFFF;
	--sgv-nen:        #FFFAF7;   /* trắng ngả hồng — nền trang */
	--sgv-muc:        #2B2320;   /* chữ chính */
	--sgv-muc-nhat:   #5E514B;   /* chữ phụ trên nền sáng */
	--sgv-line:       #F3DCD2;   /* đường kẻ mảnh trên nền sáng */
	--sgv-line-toi:   rgba(255, 255, 255, .22);

	/* Bốn khoang nhóm tuổi: đi một đường từ cam san hô (3 tuổi) sang xanh
	   biển (11 tuổi). Cả bốn đã kiểm ≥ 4,5:1 với chữ trắng. Giá trị trùng
	   với `mau` trong `sgv_do_tuoi()` ở `inc/helpers.php`. */
	--sgv-t-a:        #CE4124;
	--sgv-t-b:        #BE3A52;
	--sgv-t-c:        #0B6B77;
	--sgv-t-d:        #14557A;

	/* Màu nhấn của khoang đang đứng; mỗi khối nhóm tuổi ghi đè biến này. */
	--sgv-nhan:       var(--sgv-cam);

	/* HAI PHÔNG, cả hai đều SANS TRÒN. Baloo 2 cho tiêu đề (mập, đầu nét bo),
	   Quicksand cho chữ chạy (hình học, đầu nét bo). Cả hai có bộ tiếng Việt. */
	--sgv-tron: 'Baloo 2', 'Baloo 2 dp', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
	--sgv-sans: 'Quicksand', 'Quicksand dp', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;

	/* THANG CHỮ — 6 bậc, đúng ngưỡng chuẩn chung. Bước nhảy khoảng 1,25×.
	   Một cỡ CỐ Ý ngoài thang: `--sgv-fs-hero`, vì tiêu đề hero phải lớn hơn
	   bậc 6 để giữ vai trò của nó. */
	--sgv-fs-1: 13px;
	--sgv-fs-2: 15px;
	--sgv-fs-3: 17px;
	--sgv-fs-4: 21px;
	--sgv-fs-5: 28px;
	--sgv-fs-6: clamp(30px, 3.2vw, 44px);
	--sgv-fs-hero: clamp(36px, 4.6vw, 58px);

	/* THANG KHOẢNG CÁCH — bước 4px, không có số lẻ nào. */
	--sgv-s-1: 4px;
	--sgv-s-2: 8px;
	--sgv-s-3: 12px;
	--sgv-s-4: 16px;
	--sgv-s-5: 24px;
	--sgv-s-6: 32px;
	--sgv-s-7: 48px;
	--sgv-s-8: 72px;
	--sgv-s-9: 96px;

	/* Bo góc: mẫu này BO NHIỀU — bố cục vui mắt cho trẻ nhỏ. */
	--sgv-bo:     18px;
	--sgv-bo-to:  28px;
	--sgv-bo-nut: 999px;

	/* Bóng đổ nhẹ, CÙNG MỘT HƯỚNG (xuống dưới) ở mọi chỗ. */
	--sgv-bong:   0 1px 2px rgba(43, 35, 32, .05);
	--sgv-bong-2: 0 6px 18px rgba(43, 35, 32, .08);
	--sgv-bong-3: 0 12px 30px rgba(43, 35, 32, .12);

	--sgv-nhip: cubic-bezier(.2, .7, .3, 1);
	--sgv-dau-trang: 84px;
}

/* =====================================================================
 * 1b. PHÔNG DỰ PHÒNG KHỚP SỐ ĐO — để CLS bằng 0
 *
 * Hai phông Google nạp với `display=swap`, nên tới lúc chúng về, chữ đổi bề
 * rộng và cả hàng đầu trang xê dịch. Đo được ở bản đầu: CLS 0,0026 với 5 lần
 * xê dịch, lần lớn nhất đúng lúc phông về (768ms) và nguồn là menu, logo và
 * nút của đầu trang.
 *
 * Cách sửa KHÔNG phải đổi sang `display=optional` — như vậy là người xem lần
 * đầu không thấy phông tròn, tức là bỏ hẳn hướng thiết kế của mẫu. Cách ở
 * đây là dựng hai họ dự phòng từ phông có sẵn trong máy, kéo giãn cho KHỚP
 * SỐ ĐO của hai phông thật, nên lúc phông thật về thì bề rộng chữ gần như
 * không đổi.
 *
 * Con số lấy từ phép đo trên chính trang này, ở cỡ 100px:
 *   Baloo 2  rộng 2596,09 — Arial rộng 2970,38  → size-adjust 87,4%
 *   Quicksand rộng 2827,91 — Arial rộng 2902,55 → size-adjust 97,43%
 * `ascent-override` và `descent-override` tính theo em ĐÃ kéo giãn, nên
 * phải chia lại cho `size-adjust` (ví dụ 108 / 0,874 = 123,6%).
 * ===================================================================== */
@font-face {
	font-family: 'Baloo 2 dp';
	src: local('Arial'), local('Helvetica Neue'), local('Liberation Sans'), local('Roboto');
	size-adjust: 87.4%;
	ascent-override: 123.6%;
	descent-override: 59.5%;
	line-gap-override: 0%;
}
@font-face {
	font-family: 'Quicksand dp';
	src: local('Arial'), local('Helvetica Neue'), local('Liberation Sans'), local('Roboto');
	size-adjust: 97.43%;
	ascent-override: 102.6%;
	descent-override: 25.7%;
	line-gap-override: 0%;
}

/* =====================================================================
 * 2. NỀN
 * ===================================================================== */
body.sgv {
	margin: 0;
	background: var(--sgv-nen);
	color: var(--sgv-muc);
	font-family: var(--sgv-sans);
	font-size: var(--sgv-fs-3);
	font-weight: 500;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

/* BẪY SỐ 6. Theme mẹ có luật riêng cho h1–h3 trong nội dung và nhuộm chúng
   xanh, thắng mọi khai báo một lớp. Khai với HAI lớp thì 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. */
body.sgv h1,
body.sgv h2,
body.sgv h3,
body.sgv h4 {
	color: inherit;
	font-family: var(--sgv-tron);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -.01em;
	margin: 0 0 var(--sgv-s-3);
}

body.sgv p { margin: 0 0 var(--sgv-s-4); }
body.sgv img { max-width: 100%; height: auto; }

/*
 * MÀU LIÊN KẾT MẶC ĐỊNH — và vì sao mọi bộ chọn liên kết khác trong tệp này
 * đều bắt đầu bằng `body.sgv`.
 *
 * Luật này phải đủ nặng để thắng CSS nền của theme mẹ, nên nó là `body.sgv a`
 * = một lớp + hai phần tử. Mọi bộ chọn thành phần viết kiểu `.sgv-btn` (một
 * lớp) hay `.sgv-nav a` (một lớp + một phần tử) đều NHẸ HƠN nó, nên nếu không
 * thêm `body.sgv` ở đầu thì nút, menu và chân trang đều bị nhuộm màu cam này.
 *
 * Đây không phải lo xa: đo được ở bản đầu — nút chính ra chữ cam `#A82F16`
 * trên nền cam `#D9472A` (1,4:1), liên kết chân trang ra cam trên xanh biển
 * đêm, liên kết "Bỏ qua" ra cam trên nền xanh. Đúng BẪY SỐ 10, và nó đánh
 * trúng mọi nút trên site cùng một lúc.
 */
body.sgv a { color: var(--sgv-cam-sau); }

.sgv-wrap {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 var(--sgv-s-5);
	box-sizing: border-box;
}

.sgv-sr {
	position: absolute;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

body.sgv .sgv-boqua {
	position: absolute;
	left: var(--sgv-s-4);
	top: -60px;
	z-index: 60;
	padding: var(--sgv-s-3) var(--sgv-s-5);
	border-radius: var(--sgv-bo-nut);
	background: var(--sgv-bien);
	color: #fff;
	font-weight: 700;
	text-decoration: none;
	transition: top .22s var(--sgv-nhip);
}
body.sgv .sgv-boqua:focus { top: var(--sgv-s-4); }

/* =====================================================================
 * 3. TIÊU ĐIỂM BÀN PHÍM
 *
 * `:focus-visible` chứ không `:focus`, nên người dùng chuột không thấy viền
 * nhảy ra sau mỗi lần bấm. Trên khối nền tối viền ĐỔI SANG TRẮNG — cam san hô
 * trên xanh biển đêm gần như không thấy.
 * ===================================================================== */
body.sgv a:focus-visible,
body.sgv button:focus-visible,
body.sgv input:focus-visible,
body.sgv select:focus-visible,
body.sgv textarea:focus-visible,
body.sgv [tabindex]:focus-visible {
	outline: 3px solid var(--sgv-cam);
	outline-offset: 3px;
	border-radius: var(--sgv-s-1);
}
.sgv-chan a:focus-visible,
.sgv-cta a:focus-visible,
.sgv-so a:focus-visible,
.sgv-hero a:focus-visible,
.sgv-hero button:focus-visible,
.sgv-dt__nut a:focus-visible {
	outline-color: #fff;
}
.sgv-btn:focus-visible,
.sgv-chip:focus-visible { border-radius: var(--sgv-bo-nut); }

/* =====================================================================
 * 4. NÚT
 * ===================================================================== */
body.sgv .sgv-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--sgv-s-2);
	padding: var(--sgv-s-3) var(--sgv-s-5);
	border: 2px solid var(--sgv-cam);
	border-radius: var(--sgv-bo-nut);
	background: var(--sgv-cam);
	color: #fff;
	font-family: var(--sgv-tron);
	font-size: var(--sgv-fs-3);
	font-weight: 700;
	line-height: 1.3;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	box-shadow: var(--sgv-bong);
	transition: background .22s var(--sgv-nhip), border-color .22s var(--sgv-nhip),
		transform .22s var(--sgv-nhip), box-shadow .22s var(--sgv-nhip);
}
body.sgv .sgv-btn:hover {
	background: var(--sgv-cam-sau);
	border-color: var(--sgv-cam-sau);
	color: #fff;
	transform: translateY(-2px);
	box-shadow: var(--sgv-bong-2);
}
/* Loại chuyển động số 8 — phản hồi khi bấm: nút lún xuống. */
body.sgv .sgv-btn:active { transform: translateY(1px); box-shadow: var(--sgv-bong); }

body.sgv .sgv-btn--vien {
	background: transparent;
	border-color: var(--sgv-bien);
	color: var(--sgv-bien);
	box-shadow: none;
}
body.sgv .sgv-btn--vien:hover {
	background: var(--sgv-bien);
	border-color: var(--sgv-bien);
	color: #fff;
}

/* Nút trên khối nền tối: nền trắng, chữ xanh biển đêm — 13,6:1. */
body.sgv .sgv-btn--sang {
	background: #fff;
	border-color: #fff;
	color: var(--sgv-bien-sau);
}
body.sgv .sgv-btn--sang:hover {
	background: var(--sgv-cam-nhat);
	border-color: var(--sgv-cam-nhat);
	color: var(--sgv-cam-sau);
}

.sgv-mt { display: inline-flex; width: 16px; height: 16px; }
.sgv-mt svg { width: 16px; height: 16px; }
.sgv-btn .sgv-mt { transition: transform .22s var(--sgv-nhip); }
.sgv-btn:hover .sgv-mt { transform: translateX(3px); }

/* =====================================================================
 * 5. SÓNG VÀ HÌNH KHỐI TRANG TRÍ
 *
 * Toàn bộ là SVG nội tuyến: sóng, vòng tròn, ngôi sao, bong bóng thoại. Không
 * có nhân vật hoạt hình hay linh vật của bên nào.
 * ===================================================================== */
.sgv-ke {
	display: block;
	width: min(240px, 100%);
	color: var(--sgv-nhan);
	line-height: 0;
}
.sgv-ke svg { width: 100%; height: 14px; }

/* Dải sóng ngăn hai khối. Chiều cao CỐ ĐỊNH nên dải này không đẩy bố cục. */
.sgv-vien {
	position: absolute;
	left: 0; right: 0;
	height: 40px;
	line-height: 0;
	pointer-events: none;
}
.sgv-vien svg { display: block; width: 100%; height: 40px; }
.sgv-vien--duoi { bottom: -1px; color: var(--sgv-nen); }
.sgv-vien--tren { top: -1px; color: var(--sgv-nen); }

.sgv-hinh {
	display: inline-flex;
	width: 48px; height: 48px;
	flex: 0 0 auto;
	color: var(--sgv-nhan);
}
.sgv-hinh svg { width: 100%; height: 100%; }

/* =====================================================================
 * 6. ĐẦU TRANG — bốn trạng thái, CHIỀU CAO KHÔNG ĐỔI
 *
 * Loại chuyển động số 4. Chuẩn chung cấm animate `height`, và 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õ. Ở đây "thu gọn
 * khi cuộn xuống" hiểu là TRƯỢT CẢ THANH ĐI bằng `transform`.
 *
 *   (không lớp)  y ≤ 8px      nền trong mờ, không bóng
 *   is-stuck     y > 8px      nền trắng đặc, có bóng, dòng nhãn mờ đi
 *   is-past      qua hero     thêm dải sóng mảnh màu cam vẽ ra dưới chân
 *   is-hidden    cuộn xuống   trượt lên khỏi khung nhìn
 * ===================================================================== */
.sgv-dau {
	position: sticky;
	top: 0;
	z-index: 50;
	min-height: var(--sgv-dau-trang);
	background: rgba(255, 250, 247, .88);
	backdrop-filter: blur(10px);
	transition: background .25s var(--sgv-nhip), box-shadow .25s var(--sgv-nhip),
		transform .3s var(--sgv-nhip);
}
.sgv-dau.is-stuck { background: var(--sgv-trang); box-shadow: var(--sgv-bong-2); }
.sgv-dau.is-hidden { transform: translateY(-104%); }
.sgv-dau::after {
	content: '';
	position: absolute;
	left: 0; bottom: 0;
	height: 3px;
	width: 100%;
	background: linear-gradient(90deg, var(--sgv-cam), var(--sgv-bien-sang));
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .5s var(--sgv-nhip);
}
.sgv-dau.is-past::after { transform: scaleX(1); }

.sgv-dau__in {
	display: flex;
	align-items: center;
	gap: var(--sgv-s-5);
	min-height: var(--sgv-dau-trang);
}

body.sgv .sgv-logo {
	display: flex;
	align-items: center;
	gap: var(--sgv-s-3);
	text-decoration: none;
	color: var(--sgv-bien);
	flex: 0 0 auto;
}
.sgv-logo__ten {
	display: block;
	font-family: var(--sgv-tron);
	font-size: var(--sgv-fs-4);
	font-weight: 800;
	line-height: 1.1;
}
/* 11px CỐ Ý ngoài thang chữ: bậc 1 (13px) làm dòng này rộng hơn cả tên thương
   hiệu và đẩy vỡ cột đầu của đầu trang ở khoảng 1000–1180px. */
.sgv-logo__nhan {
	display: block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .1em;
	color: var(--sgv-muc-nhat);
	opacity: 1;
	transition: opacity .25s var(--sgv-nhip);
}
/* Mờ dần, KHÔNG thu `max-height`: thu chiều cao là animate thuộc tính bố cục. */
.sgv-dau.is-stuck .sgv-logo__nhan { opacity: .55; }

.sgv-nav { margin-left: auto; }
.sgv-nav ul {
	display: flex;
	gap: var(--sgv-s-5);
	margin: 0; padding: 0;
	list-style: none;
}
body.sgv .sgv-nav a {
	position: relative;
	display: block;
	padding: var(--sgv-s-2) 0;
	color: var(--sgv-muc);
	font-family: var(--sgv-tron);
	font-size: var(--sgv-fs-3);
	font-weight: 600;
	text-decoration: none;
}
.sgv-nav a::after {
	content: '';
	position: absolute;
	left: 0; right: 0; bottom: 2px;
	height: 3px;
	border-radius: 3px;
	background: var(--sgv-cam);
	transform: scaleX(0);
	transition: transform .22s var(--sgv-nhip);
}
.sgv-nav a:hover::after,
.sgv-nav a[aria-current="page"]::after { transform: scaleX(1); }
body.sgv .sgv-nav a[aria-current="page"] { color: var(--sgv-cam-sau); }

.sgv-dau__nut { display: flex; align-items: center; gap: var(--sgv-s-3); flex: 0 0 auto; }

.sgv-burger {
	display: none;
	position: relative;
	width: 44px; height: 44px;
	border: 2px solid var(--sgv-line);
	border-radius: 14px;
	background: var(--sgv-trang);
	cursor: pointer;
}
.sgv-burger span:first-child,
.sgv-burger span:first-child::before,
.sgv-burger span:first-child::after {
	position: absolute;
	left: 50%;
	width: 20px; height: 2.5px;
	border-radius: 3px;
	background: var(--sgv-bien);
	transform: translateX(-50%);
	transition: transform .22s var(--sgv-nhip), opacity .22s var(--sgv-nhip);
}
.sgv-burger span:first-child { top: 50%; margin-top: -1px; }
.sgv-burger span:first-child::before { content: ''; top: -7px; left: 0; transform: none; }
.sgv-burger span:first-child::after { content: ''; top: 7px; left: 0; transform: none; }
.sgv-burger[aria-expanded="true"] span:first-child { transform: translateX(-50%) rotate(45deg); }
.sgv-burger[aria-expanded="true"] span:first-child::before { opacity: 0; }
.sgv-burger[aria-expanded="true"] span:first-child::after { transform: rotate(-90deg); top: 0; }

.sgv-mnav {
	display: none;
	border-top: 2px solid var(--sgv-line);
	background: var(--sgv-trang);
}
.sgv-mnav.is-open { display: block; animation: sgv-xuong .26s var(--sgv-nhip) both; }
@keyframes sgv-xuong { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.sgv-mnav ul { margin: 0; padding: var(--sgv-s-3) 0; list-style: none; }
body.sgv .sgv-mnav a {
	display: block;
	padding: var(--sgv-s-3) 0;
	border-bottom: 1px solid var(--sgv-line);
	color: var(--sgv-muc);
	font-family: var(--sgv-tron);
	font-weight: 600;
	text-decoration: none;
}
.sgv-mnav li:last-child a { border-bottom: 0; }

@media (max-width: 1060px) {
	.sgv-nav { display: none; }
	.sgv-burger { display: block; }
}
@media (max-width: 560px) {
	/* `body.sgv` ở đầu là bắt buộc: luật nền `body.sgv .sgv-btn` nặng hơn hai
	   lớp, nên thiếu nó thì nút không ẩn và hàng đầu trang tràn ngang ở 375px. */
	body.sgv .sgv-dau__nut .sgv-btn { display: none; }
	/* Dòng nhãn dưới tên thương hiệu dài 37 ký tự, 11px kèm giãn chữ .1em —
	   đo được khoảng 300px, trong khi ở 375px cả hàng đầu trang chỉ còn chừng
	   140px cho phần chữ. Giữ lại là đẩy nút burger ra ngoài khung nhìn. */
	body.sgv .sgv-logo__nhan { display: none; }
	.sgv-dau__in { gap: var(--sgv-s-3); }
	.sgv-logo { min-width: 0; }
	.sgv-logo span { min-width: 0; }
}

/* =====================================================================
 * 7. HERO
 *
 * Loại chuyển động số 1. KHÔNG áp hiệu ứng ẩn/hiện cho hero — ẩn hero là đẩy
 * lùi LCP. Chữ chạy từ `opacity: 1` và chỉ nhích `translate`; ảnh nền zoom
 * rất chậm từ `scale(1.06)` về `1` trong 12 giây.
 * ===================================================================== */
.sgv-hero {
	position: relative;
	overflow: hidden;
	background: var(--sgv-bien);
	color: #fff;
}
.sgv-hero__anh { position: absolute; inset: 0; }
.sgv-hero__anh img {
	width: 100%; height: 100%;
	object-fit: cover;
	animation: sgv-zoom 12s var(--sgv-nhip) both;
}
@keyframes sgv-zoom { from { transform: scale(1.06); } to { transform: scale(1); } }
.sgv-hero__anh::after {
	content: '';
	position: absolute; inset: 0;
	background: linear-gradient(105deg, rgba(13, 60, 88, .93) 0%, rgba(13, 60, 88, .78) 48%, rgba(168, 47, 22, .62) 100%);
}

.sgv-hero__in {
	position: relative;
	padding: var(--sgv-s-9) 0 calc(var(--sgv-s-9) + 40px);
	max-width: 760px;
}
.sgv-hero__nhan {
	display: inline-flex;
	align-items: center;
	gap: var(--sgv-s-2);
	margin-bottom: var(--sgv-s-4);
	padding: var(--sgv-s-2) var(--sgv-s-4);
	border-radius: var(--sgv-bo-nut);
	background: var(--sgv-cam);
	color: #fff;
	font-family: var(--sgv-tron);
	font-size: var(--sgv-fs-1);
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}
.sgv-hero h1 {
	font-size: var(--sgv-fs-hero);
	font-weight: 800;
	margin-bottom: var(--sgv-s-4);
}
.sgv-hero__dan {
	font-size: var(--sgv-fs-4);
	font-weight: 500;
	color: rgba(255, 255, 255, .93);
	margin-bottom: var(--sgv-s-6);
}
.sgv-hero__nut { display: flex; flex-wrap: wrap; gap: var(--sgv-s-3); }
.sgv-hero__dt {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sgv-s-2);
	margin-top: var(--sgv-s-6);
	padding: 0; list-style: none;
}
body.sgv .sgv-hero__dt a {
	display: inline-block;
	padding: var(--sgv-s-2) var(--sgv-s-4);
	border: 2px solid rgba(255, 255, 255, .4);
	border-radius: var(--sgv-bo-nut);
	color: #fff;
	font-family: var(--sgv-tron);
	font-size: var(--sgv-fs-2);
	font-weight: 600;
	text-decoration: none;
	transition: background .2s var(--sgv-nhip), border-color .2s var(--sgv-nhip);
}
body.sgv .sgv-hero__dt a:hover { background: rgba(255, 255, 255, .16); border-color: #fff; }

/* Năm bong bóng tròn trang trí. Chuyển động vô hạn, nhưng CHỈ ở hero và chỉ
   trên hình trang trí — chuẩn chung cho phép đúng ở chỗ này. */
.sgv-hero__bong { position: absolute; inset: 0; pointer-events: none; }
.sgv-hero__bong i {
	position: absolute;
	display: block;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, .22);
	animation: sgv-noi 9s ease-in-out infinite;
	animation-delay: calc(var(--sgv-i) * -1.8s);
}
.sgv-hero__bong i:nth-child(1) { width: 120px; height: 120px; right: 6%; top: 14%; }
.sgv-hero__bong i:nth-child(2) { width: 64px;  height: 64px;  right: 22%; top: 54%; background: rgba(255, 122, 89, .18); }
.sgv-hero__bong i:nth-child(3) { width: 180px; height: 180px; right: -40px; bottom: 8%; }
.sgv-hero__bong i:nth-child(4) { width: 40px;  height: 40px;  right: 38%; top: 22%; background: rgba(42, 154, 184, .22); }
.sgv-hero__bong i:nth-child(5) { width: 88px;  height: 88px;  right: 14%; bottom: 30%; }
@keyframes sgv-noi {
	0%, 100% { transform: translateY(0); }
	50%      { transform: translateY(-14px); }
}
@media (max-width: 860px) { .sgv-hero__bong { display: none; } }

/* =====================================================================
 * 8. KHỐI CHUNG
 * ===================================================================== */
.sgv-khoi { position: relative; padding: var(--sgv-s-9) 0; }
.sgv-khoi--nhat { background: var(--sgv-cam-nhat); }
.sgv-khoi--bien { background: var(--sgv-bien-nhat); }
.sgv-khoi--toi  { background: var(--sgv-bien); color: #fff; }
.sgv-khoi--mong { padding: var(--sgv-s-7) 0; }

.sgv-dau-khoi { max-width: 720px; margin-bottom: var(--sgv-s-7); }
.sgv-dau-khoi--giua { margin-left: auto; margin-right: auto; text-align: center; }
.sgv-dau-khoi--giua .sgv-ke { margin: 0 auto; }
.sgv-nhan-khoi {
	display: inline-flex;
	align-items: center;
	gap: var(--sgv-s-2);
	margin-bottom: var(--sgv-s-3);
	/* Cam ĐẬM chứ không phải `--sgv-nhan`: nhãn này 13px và nằm trên nền kem
	   hoặc nền xanh rất nhạt, nơi cam `#CE4124` chỉ đạt 4,2:1 (BẪY SỐ 10). */
	color: var(--sgv-cam-sau);
	font-family: var(--sgv-tron);
	font-size: var(--sgv-fs-1);
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
}
.sgv-khoi--toi .sgv-nhan-khoi { color: var(--sgv-cam-sang); }
.sgv-khoi h2 { font-size: var(--sgv-fs-6); font-weight: 800; }
.sgv-dau-khoi p { font-size: var(--sgv-fs-4); color: var(--sgv-muc-nhat); margin-bottom: var(--sgv-s-3); }
.sgv-khoi--toi .sgv-dau-khoi p { color: rgba(255, 255, 255, .88); }

.sgv-ghi {
	margin-top: var(--sgv-s-5);
	font-size: var(--sgv-fs-2);
	color: var(--sgv-muc-nhat);
}
.sgv-khoi--toi .sgv-ghi { color: rgba(255, 255, 255, .78); }

/* =====================================================================
 * 9. KHỐI LỚP THEO ĐỘ TUỔI — bố cục chính của mẫu
 *
 * Bốn khoang, mỗi khoang một màu nhấn. Khoang ghi đè `--sgv-nhan` nên mọi
 * hình khối, nhãn và viền bên trong tự đổi màu theo một biến duy nhất.
 * ===================================================================== */
.sgv-nn--a { --sgv-nhan: var(--sgv-t-a); }
.sgv-nn--b { --sgv-nhan: var(--sgv-t-b); }
.sgv-nn--c { --sgv-nhan: var(--sgv-t-c); }
.sgv-nn--d { --sgv-nhan: var(--sgv-t-d); }

.sgv-dt {
	padding: var(--sgv-s-8) 0;
	border-top: 2px dashed var(--sgv-line);
}
.sgv-dt:first-of-type { border-top: 0; }
.sgv-dt__dau {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: var(--sgv-s-5);
	margin-bottom: var(--sgv-s-6);
}
.sgv-dt__chu { flex: 1 1 420px; }
.sgv-dt__tuoi {
	display: inline-flex;
	align-items: center;
	gap: var(--sgv-s-2);
	margin-bottom: var(--sgv-s-3);
	padding: var(--sgv-s-2) var(--sgv-s-4);
	border-radius: var(--sgv-bo-nut);
	background: var(--sgv-nhan);
	color: #fff;
	font-family: var(--sgv-tron);
	font-size: var(--sgv-fs-2);
	font-weight: 700;
}
.sgv-dt h2 { font-size: var(--sgv-fs-5); color: var(--sgv-nhan); }
.sgv-dt__ngan { font-size: var(--sgv-fs-3); color: var(--sgv-muc-nhat); margin-bottom: 0; }
.sgv-dt__nut { flex: 0 0 auto; }

/* =====================================================================
 * 10. THẺ LỚP HỌC
 *
 * Loại chuyển động số 3. Thẻ nâng 5px, ảnh trong khung `overflow: hidden`
 * phóng `1.05`, và nút phụ "Xem lớp" trượt lên hiện ra.
 *
 * HAI THUỘC TÍNH, KHÔNG MỘT. Hiệu ứng cuộn dùng `translate`/`scale` riêng,
 * hiệu ứng rê chuột dùng `transform`. Nếu cả hai cùng ghi vào `transform` thì
 * chúng tranh nhau một thuộc tính, và thẻ 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 — cảm giác nặng và sai
 * hẳn. Hai thuộc tính riêng thì trình duyệt cộng chúng lại.
 * ===================================================================== */
ul.products {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--sgv-s-5);
	margin: 0; padding: 0;
	list-style: none;
}
@media (max-width: 1040px) { ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px)  { ul.products { grid-template-columns: 1fr; } }

li.sgv-the {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 2px solid var(--sgv-line);
	border-radius: var(--sgv-bo-to);
	background: var(--sgv-trang);
	box-shadow: var(--sgv-bong);
	transition: transform .22s var(--sgv-nhip), box-shadow .22s var(--sgv-nhip),
		border-color .22s var(--sgv-nhip);
}
li.sgv-the:hover {
	transform: translateY(-5px);
	box-shadow: var(--sgv-bong-3);
	border-color: var(--sgv-nhan);
}

.sgv-the__anh {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	background: var(--sgv-cam-nhat);
}
.sgv-the__anh img {
	width: 100%; height: 100%;
	object-fit: cover;
	transition: transform .4s var(--sgv-nhip);
}
li.sgv-the:hover .sgv-the__anh img { transform: scale(1.05); }

.sgv-the__dt {
	position: absolute;
	left: var(--sgv-s-3); top: var(--sgv-s-3);
	padding: var(--sgv-s-1) var(--sgv-s-3);
	border-radius: var(--sgv-bo-nut);
	background: var(--sgv-nhan);
	color: #fff;
	font-family: var(--sgv-tron);
	font-size: var(--sgv-fs-1);
	font-weight: 700;
}
/* Nút phụ trượt lên. `position: absolute` nên nó không làm thẻ cao thêm. */
.sgv-the__xem {
	position: absolute;
	left: 0; right: 0; bottom: 0;
	padding: var(--sgv-s-3);
	background: var(--sgv-nhan);
	color: #fff;
	font-family: var(--sgv-tron);
	font-size: var(--sgv-fs-2);
	font-weight: 700;
	text-align: center;
	transform: translateY(100%);
	transition: transform .26s var(--sgv-nhip);
}
li.sgv-the:hover .sgv-the__xem,
li.sgv-the:focus-within .sgv-the__xem { transform: none; }

.sgv-the__than { display: flex; flex-direction: column; flex: 1 1 auto; padding: var(--sgv-s-5); }
.sgv-the__md {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--sgv-s-2);
	margin-bottom: var(--sgv-s-2);
	color: var(--sgv-nhan);
	font-family: var(--sgv-tron);
	font-size: var(--sgv-fs-1);
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
}
.sgv-the__md i { font-style: normal; opacity: .5; }
.sgv-the__than h3 { font-size: var(--sgv-fs-4); margin-bottom: var(--sgv-s-2); }
body.sgv .sgv-the__than h3 a { color: var(--sgv-muc); text-decoration: none; }
body.sgv .sgv-the__than h3 a:hover { color: var(--sgv-nhan); }
.sgv-the__mo {
	flex: 1 1 auto;
	font-size: var(--sgv-fs-2);
	color: var(--sgv-muc-nhat);
	margin-bottom: var(--sgv-s-4);
}
.sgv-the__chan {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: var(--sgv-s-3);
	padding-top: var(--sgv-s-3);
	border-top: 2px dashed var(--sgv-line);
}
.sgv-the__ds { font-size: var(--sgv-fs-1); font-weight: 700; color: var(--sgv-muc-nhat); }

/* =====================================================================
 * 11. HỌC PHÍ
 * ===================================================================== */
.sgv-gia { display: block; font-family: var(--sgv-tron); line-height: 1.2; }
.sgv-gia__tu { font-size: var(--sgv-fs-1); font-weight: 600; color: var(--sgv-muc-nhat); }
.sgv-gia__so { font-size: var(--sgv-fs-4); font-weight: 800; color: var(--sgv-nhan); }
.sgv-gia__so .woocommerce-Price-amount { color: inherit; }
.sgv-gia__dv { font-size: var(--sgv-fs-1); font-weight: 600; color: var(--sgv-muc-nhat); }
/* Nhãn này nhỏ, nên KHÔNG để trên nền cam: chữ cam đậm trên nền trắng đo được
   5,2:1, còn chữ trắng trên cam tươi chỉ 2,4:1 (BẪY SỐ 10). */
.sgv-gia__nhac {
	display: block;
	margin-top: var(--sgv-s-1);
	font-size: var(--sgv-fs-1);
	font-weight: 700;
	color: var(--sgv-cam-sau);
}
.sgv-gia--rong { font-size: var(--sgv-fs-3); font-weight: 700; color: var(--sgv-muc-nhat); }

/* =====================================================================
 * 12. HOẠT ĐỘNG TRONG LỚP
 * ===================================================================== */
.sgv-hd {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--sgv-s-5);
	margin: 0; padding: 0;
	list-style: none;
}
@media (max-width: 1040px) { .sgv-hd { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px)  { .sgv-hd { grid-template-columns: 1fr; } }

.sgv-hd li {
	padding: var(--sgv-s-6);
	border: 2px solid var(--sgv-line);
	border-radius: var(--sgv-bo-to);
	background: var(--sgv-trang);
	box-shadow: var(--sgv-bong);
	transition: transform .22s var(--sgv-nhip), box-shadow .22s var(--sgv-nhip);
}
.sgv-hd li:hover { transform: translateY(-4px); box-shadow: var(--sgv-bong-2); }
.sgv-hd li:nth-child(6n+1) { --sgv-nhan: var(--sgv-t-a); }
.sgv-hd li:nth-child(6n+2) { --sgv-nhan: var(--sgv-t-c); }
.sgv-hd li:nth-child(6n+3) { --sgv-nhan: var(--sgv-t-b); }
.sgv-hd li:nth-child(6n+4) { --sgv-nhan: var(--sgv-t-d); }
.sgv-hd li:nth-child(6n+5) { --sgv-nhan: var(--sgv-t-a); }
.sgv-hd li:nth-child(6n+6) { --sgv-nhan: var(--sgv-t-c); }
.sgv-hd h3 { font-size: var(--sgv-fs-4); margin: var(--sgv-s-4) 0 var(--sgv-s-2); }
.sgv-hd p { font-size: var(--sgv-fs-2); color: var(--sgv-muc-nhat); margin: 0; }

/* =====================================================================
 * 13. BONG BÓNG THOẠI — chuyển động riêng theo chủ đề
 *
 * Loại chuyển động số 9. Mặt trước là một câu tiếng Anh lớp dùng trong giờ,
 * mặt sau là cách nói tương ứng bằng tiếng Việt. Lật khi rê chuột, khi được
 * tiêu điểm bàn phím, và khi bấm (JS lo phần bấm — màn hình cảm ứng không có
 * trạng thái rê chuột nào).
 *
 * KHÔNG tự lật vô hạn: chuẩn chung cấm chuyển động vô hạn ở khu vực đọc nội
 * dung, và một khối chữ tự lật liên tục thì đọc không kịp.
 * ===================================================================== */
.sgv-bb {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: var(--sgv-s-4);
	margin: 0; padding: 0;
	list-style: none;
}
@media (max-width: 1040px) { .sgv-bb { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px)  { .sgv-bb { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.sgv-lat {
	/* `display: block` + `width: 100%` là bắt buộc: một `<button>` mặc định co
	   theo nội dung, mà nội dung ở đây lại `position: absolute` — nên không có
	   hai dòng này thì nút ra đúng 0×0 và cả khối bong bóng biến mất. */
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	perspective: 800px;
	cursor: pointer;
	border: 0;
	padding: 0;
	background: none;
	font: inherit;
	color: inherit;
}
.sgv-lat__in {
	/* `<span>` mặc định là inline, mà `width`/`height` không áp cho inline —
	   thiếu dòng này thì khung lật cao 0 và hai mặt bong bóng không hiện. */
	display: block;
	position: relative;
	width: 100%; height: 100%;
	transform-style: preserve-3d;
	transition: transform .5s var(--sgv-nhip);
}
.sgv-lat:hover .sgv-lat__in,
.sgv-lat:focus-visible .sgv-lat__in,
.sgv-lat.is-lat .sgv-lat__in { transform: rotateY(180deg); }

.sgv-lat__a,
.sgv-lat__b {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: var(--sgv-s-3);
	border-radius: 50% 50% 50% 14px;
	backface-visibility: hidden;
	font-family: var(--sgv-tron);
	font-size: var(--sgv-fs-3);
	font-weight: 700;
	line-height: 1.25;
	text-align: center;
	box-sizing: border-box;
}
.sgv-lat__a { background: var(--sgv-trang); color: var(--sgv-cam-sau); border: 2px solid var(--sgv-cam); }
.sgv-lat__b { background: var(--sgv-bien); color: #fff; transform: rotateY(180deg); }

/* =====================================================================
 * 14. LỚP HỌC THỬ — bốn bước
 * ===================================================================== */
.sgv-buoc {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--sgv-s-5);
	margin: 0; padding: 0;
	list-style: none;
	counter-reset: sgv-b;
}
@media (max-width: 980px) { .sgv-buoc { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .sgv-buoc { grid-template-columns: 1fr; } }

.sgv-buoc li {
	position: relative;
	padding: var(--sgv-s-6) var(--sgv-s-5) var(--sgv-s-5);
	border-radius: var(--sgv-bo-to);
	background: rgba(255, 255, 255, .1);
	border: 2px solid rgba(255, 255, 255, .22);
}
.sgv-buoc__so {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px; height: 44px;
	margin-bottom: var(--sgv-s-4);
	border-radius: 50%;
	background: var(--sgv-cam);
	color: #fff;
	font-family: var(--sgv-tron);
	font-size: var(--sgv-fs-4);
	font-weight: 800;
}
.sgv-buoc h3 { font-size: var(--sgv-fs-4); margin-bottom: var(--sgv-s-2); }
.sgv-buoc p { font-size: var(--sgv-fs-2); color: rgba(255, 255, 255, .88); margin: 0; }

/* =====================================================================
 * 15. THƯ VIỆN ẢNH
 *
 * Loại chuyển động số 7. Chuyển ảnh bằng MỜ CHỒNG: cả sáu ảnh nằm cùng một
 * khung có `aspect-ratio` cố định, chỉ `opacity` đổi, nên không có lần nhảy
 * khung nào và CLS vẫn bằng 0.
 *
 * Không có JS thì ảnh đầu hiện và sáu ô nhỏ bên dưới trở thành liên kết nhảy
 * trong trang — vẫn xem được cả sáu ảnh.
 * ===================================================================== */
.sgv-tv { display: grid; grid-template-columns: 1fr 300px; gap: var(--sgv-s-6); align-items: start; }
@media (max-width: 980px) { .sgv-tv { grid-template-columns: 1fr; } }

.sgv-tv__khung {
	position: relative;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	border-radius: var(--sgv-bo-to);
	background: var(--sgv-bien-nhat);
	box-shadow: var(--sgv-bong-2);
}
.sgv-tv__khung figure { position: absolute; inset: 0; margin: 0; }
.sgv-tv__khung img { width: 100%; height: 100%; object-fit: cover; }
.sgv-tv__khung figcaption {
	position: absolute;
	left: 0; right: 0; bottom: 0;
	padding: var(--sgv-s-6) var(--sgv-s-5) var(--sgv-s-4);
	background: linear-gradient(rgba(13, 60, 88, 0), rgba(13, 60, 88, .88) 55%, rgba(13, 60, 88, .96));
	color: #fff;
	font-family: var(--sgv-tron);
	font-size: var(--sgv-fs-3);
	font-weight: 600;
}
/* Mờ chồng: chỉ khi CÓ JS. Tắt JS thì cả sáu ảnh xếp dọc và vẫn xem được. */
.sgv-js .sgv-tv__khung figure {
	opacity: 0;
	transition: opacity .5s var(--sgv-nhip);
	pointer-events: none;
}
.sgv-js .sgv-tv__khung figure.is-xem { opacity: 1; pointer-events: auto; }
html:not(.sgv-js) .sgv-tv__khung { aspect-ratio: auto; }
html:not(.sgv-js) .sgv-tv__khung figure { position: relative; margin-bottom: var(--sgv-s-3); }

.sgv-tv__o {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--sgv-s-3);
	margin: 0; padding: 0;
	list-style: none;
}
@media (max-width: 980px) { .sgv-tv__o { grid-template-columns: repeat(6, 1fr); } }
@media (max-width: 560px) { .sgv-tv__o { grid-template-columns: repeat(3, 1fr); } }

.sgv-tv__o button,
.sgv-tv__o a {
	display: block;
	width: 100%;
	overflow: hidden;
	aspect-ratio: 1 / 1;
	padding: 0;
	border: 3px solid transparent;
	border-radius: 14px;
	background: none;
	cursor: pointer;
	transition: border-color .2s var(--sgv-nhip), transform .2s var(--sgv-nhip);
}
.sgv-tv__o img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sgv-tv__o button:hover,
.sgv-tv__o a:hover { transform: translateY(-2px); border-color: var(--sgv-cam-tuoi); }
.sgv-tv__o [aria-current="true"] { border-color: var(--sgv-cam); }

/* =====================================================================
 * 16. DÀNH CHO PHỤ HUYNH
 * ===================================================================== */
.sgv-ph { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--sgv-s-7); align-items: center; }
@media (max-width: 980px) { .sgv-ph { grid-template-columns: 1fr; } }

.sgv-ph__ds { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--sgv-s-4); }
.sgv-ph__ds li {
	display: flex;
	gap: var(--sgv-s-4);
	padding: var(--sgv-s-5);
	border-radius: var(--sgv-bo);
	background: var(--sgv-trang);
	border: 2px solid var(--sgv-line);
}
.sgv-ph__ds li:nth-child(4n+1) { --sgv-nhan: var(--sgv-t-a); }
.sgv-ph__ds li:nth-child(4n+2) { --sgv-nhan: var(--sgv-t-c); }
.sgv-ph__ds li:nth-child(4n+3) { --sgv-nhan: var(--sgv-t-b); }
.sgv-ph__ds li:nth-child(4n+4) { --sgv-nhan: var(--sgv-t-d); }
.sgv-ph__ds h3 { font-size: var(--sgv-fs-3); margin-bottom: var(--sgv-s-1); }
.sgv-ph__ds p { font-size: var(--sgv-fs-2); color: var(--sgv-muc-nhat); margin: 0; }
.sgv-ph__ds .sgv-hinh { width: 40px; height: 40px; }

.sgv-ph__anh {
	overflow: hidden;
	aspect-ratio: 4 / 3;
	border-radius: var(--sgv-bo-to);
	box-shadow: var(--sgv-bong-2);
}
.sgv-ph__anh img { width: 100%; height: 100%; object-fit: cover; }

/* =====================================================================
 * 17. SỐ LIỆU ĐẾM LÊN
 *
 * Loại chuyển động số 5. Số đích in sẵn trong HTML, nên tắt JS là thấy đúng
 * số ngay. Mỗi con số là một SỰ THẬT VỀ DỮ LIỆU MẪU — số nhóm tuổi, số lớp,
 * sĩ số tối đa, số buổi mỗi tuần; không có số học viên hay số năm hoạt động.
 * ===================================================================== */
.sgv-so {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--sgv-s-5);
	margin: 0; padding: 0;
	list-style: none;
}
@media (max-width: 760px) { .sgv-so { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.sgv-so li { text-align: center; }
.sgv-so b {
	display: block;
	font-family: var(--sgv-tron);
	font-size: var(--sgv-fs-6);
	font-weight: 800;
	line-height: 1.1;
	color: var(--sgv-cam-sang);
}
.sgv-so span {
	display: block;
	font-family: var(--sgv-tron);
	font-size: var(--sgv-fs-3);
	font-weight: 700;
}
.sgv-so em {
	display: block;
	margin-top: var(--sgv-s-1);
	font-size: var(--sgv-fs-2);
	font-style: normal;
	color: rgba(255, 255, 255, .78);
}

/* =====================================================================
 * 18. CHUYỂN ĐỘNG THEO CUỘN
 *
 * Loại chuyển động số 2. Dịch lên 20px + mờ dần 700ms, lệch nhịp 80ms giữa
 * các phần tử cùng khối cha.
 *
 * BỘ CHỌN KHAI Ở HAI NƠI và phải khớp từng chữ: ba hằng `SEL`, `SEL_CON` và
 * `SEL_KE` ở đầu `assets/site.js`, và ba bộ chọn cùng nghĩa ngay dưới đây.
 * Lệch một chữ là có phần tử ẩn vĩnh viễn với người dùng thật.
 *
 * BA ĐƯỜNG DỰ PHÒNG — thiếu một đường là nội dung có thể ẩn vĩnh viễn:
 *   1. Lớp `sgv-js` gắn bằng script NỘI TUYẾN trong `<head>` (header.php).
 *      CSS chỉ giấu khi có lớp này, nên tắt JS là thấy đủ nội dung. Không
 *      được đợi tệp JS `defer` mới gắn — đợi là chớp nội dung một nhịp.
 *   2. `prefers-reduced-motion: reduce` → tắt hẳn luật giấu (mục 27).
 *   3. Hẹn giờ 2,5 giây → gắn `sgv-hien-het` nếu IntersectionObserver chưa
 *      kích hoạt lần nào. Cũng ở script nội tuyến trong `<head>`. Đây là rủi
 *      ro thật: trong khung xem của công cụ trình duyệt, IO không kích hoạt
 *      lần nào.
 * ===================================================================== */
.sgv-js [data-sgv-vao],
.sgv-js [data-sgv-rise] > * {
	opacity: 0;
	translate: 0 20px;
	transition: opacity .7s var(--sgv-nhip), translate .7s var(--sgv-nhip);
}
.sgv-js [data-sgv-vao].is-vao,
.sgv-js [data-sgv-rise] > .is-vao {
	opacity: 1;
	translate: none;
}

/* Đường dự phòng số 3 — hẹn giờ 2,5s ép hiện hết. */
.sgv-hien-het [data-sgv-vao],
.sgv-hien-het [data-sgv-rise] > * {
	opacity: 1 !important;
	translate: none !important;
}

/* Loại chuyển động số 6 — nét sóng vẽ dần. `stroke-dashoffset` là thuộc tính
   SVG, không buộc trình duyệt tính lại bố cục trang. */
.sgv-js [data-sgv-ke] svg path {
	stroke-dasharray: 420;
	stroke-dashoffset: 420;
	transition: stroke-dashoffset 1s var(--sgv-nhip);
}
.sgv-js [data-sgv-ke].is-ve svg path { stroke-dashoffset: 0; }
.sgv-hien-het [data-sgv-ke] svg path { stroke-dashoffset: 0 !important; }

/* Hero vào trang (loại số 1) — chạy từ `opacity: 1`, KHÔNG ẩn hero. Chỉ
   `translate`, nên phần tử LCP đã hiện ngay từ khung hình đầu. */
.sgv-js .sgv-hero__nhan,
.sgv-js .sgv-hero h1,
.sgv-js .sgv-hero__dan,
.sgv-js .sgv-hero__nut,
.sgv-js .sgv-hero__dt { animation: sgv-hero-vao .72s var(--sgv-nhip) both; }
.sgv-js .sgv-hero h1      { animation-delay: .08s; }
.sgv-js .sgv-hero__dan    { animation-delay: .16s; }
.sgv-js .sgv-hero__nut    { animation-delay: .24s; }
.sgv-js .sgv-hero__dt     { animation-delay: .32s; }
@keyframes sgv-hero-vao {
	from { translate: 0 14px; }
	to   { translate: none; }
}

/* =====================================================================
 * 19. TRANG DANH SÁCH LỚP HỌC
 * ===================================================================== */
.sgv-page__head {
	position: relative;
	padding: var(--sgv-s-8) 0 calc(var(--sgv-s-8) + 40px);
	background: var(--sgv-bien-nhat);
}
.sgv-page__title { font-size: var(--sgv-fs-6); font-weight: 800; }
.sgv-page__dan { font-size: var(--sgv-fs-4); color: var(--sgv-muc-nhat); max-width: 760px; }
.sgv-page__body { padding: var(--sgv-s-8) 0 var(--sgv-s-9); }

.sgv-crumb {
	margin-bottom: var(--sgv-s-4);
	font-size: var(--sgv-fs-2);
	font-weight: 600;
	color: var(--sgv-muc-nhat);
}
body.sgv .sgv-crumb a { color: var(--sgv-bien); text-decoration: none; }
body.sgv .sgv-crumb a:hover { text-decoration: underline; }
.sgv-crumb span[aria-hidden] { margin: 0 var(--sgv-s-2); opacity: .5; }

.sgv-loc {
	position: sticky;
	top: var(--sgv-dau-trang);
	z-index: 20;
	padding: var(--sgv-s-4) 0;
	border-bottom: 2px solid var(--sgv-line);
	background: rgba(255, 250, 247, .95);
	backdrop-filter: blur(8px);
}
.sgv-loc__hang { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sgv-s-3); }
.sgv-loc__nhan {
	font-family: var(--sgv-tron);
	font-size: var(--sgv-fs-1);
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--sgv-muc-nhat);
	min-width: 76px;
}
.sgv-loc__nhom { display: flex; flex-wrap: wrap; gap: var(--sgv-s-2); }
.sgv-loc__cuoi { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sgv-s-3); margin-left: auto; }
.sgv-loc__dem { font-size: var(--sgv-fs-2); font-weight: 700; color: var(--sgv-muc-nhat); }

body.sgv .sgv-chip {
	display: inline-block;
	padding: var(--sgv-s-2) var(--sgv-s-4);
	border: 2px solid var(--sgv-line);
	border-radius: var(--sgv-bo-nut);
	background: var(--sgv-trang);
	color: var(--sgv-muc);
	font-family: var(--sgv-tron);
	font-size: var(--sgv-fs-2);
	font-weight: 600;
	text-decoration: none;
	transition: background .2s var(--sgv-nhip), border-color .2s var(--sgv-nhip),
		color .2s var(--sgv-nhip), transform .2s var(--sgv-nhip);
}
body.sgv .sgv-chip:hover { border-color: var(--sgv-cam); color: var(--sgv-cam-sau); transform: translateY(-2px); }
body.sgv .sgv-chip[aria-current="true"] {
	background: var(--sgv-cam);
	border-color: var(--sgv-cam);
	color: #fff;
}
.sgv-chip--a[aria-current="true"] { background: var(--sgv-t-a); border-color: var(--sgv-t-a); }
.sgv-chip--b[aria-current="true"] { background: var(--sgv-t-b); border-color: var(--sgv-t-b); }
.sgv-chip--c[aria-current="true"] { background: var(--sgv-t-c); border-color: var(--sgv-t-c); }
.sgv-chip--d[aria-current="true"] { background: var(--sgv-t-d); border-color: var(--sgv-t-d); }
body.sgv .sgv-chip--bo { border-style: dashed; color: var(--sgv-cam-sau); }

.sgv-sel {
	padding: var(--sgv-s-2) var(--sgv-s-4);
	border: 2px solid var(--sgv-line);
	border-radius: var(--sgv-bo-nut);
	background: var(--sgv-trang);
	color: var(--sgv-muc);
	font-family: var(--sgv-sans);
	font-size: var(--sgv-fs-2);
	font-weight: 600;
}
/*
 * Nút "Áp dụng" CHỈ hiện khi KHÔNG có JS: có JS thì ô sắp xếp tự gửi form.
 *
 * `body.sgv` ở luật thứ hai là bắt buộc — luật nền `body.sgv .sgv-btn` nặng
 * hơn `.sgv-js .sgv-loc__gui`, nên thiếu nó thì nút vẫn hiện cả khi có JS và
 * hàng lọc có hai cách gửi cùng lúc.
 */
.sgv-loc__gui { display: inline-flex; }
.sgv-js body.sgv .sgv-loc__gui { display: none; }

.woocommerce-pagination { margin-top: var(--sgv-s-7); }
.woocommerce-pagination ul {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sgv-s-2);
	margin: 0; padding: 0;
	list-style: none;
	border: 0;
}
.woocommerce-pagination li { border: 0; }
body.sgv .woocommerce-pagination a,
body.sgv .woocommerce-pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px; height: 44px;
	border: 2px solid var(--sgv-line);
	border-radius: 50%;
	background: var(--sgv-trang);
	color: var(--sgv-muc);
	font-family: var(--sgv-tron);
	font-weight: 700;
	text-decoration: none;
}
body.sgv .woocommerce-pagination .current { background: var(--sgv-cam); border-color: var(--sgv-cam); color: #fff; }

/* =====================================================================
 * 20. TRANG RỖNG — giỏ rỗng, kết quả lọc rỗng, 404
 *
 * Chuẩn chung mục 5 nói đúng: đây là chỗ hay bị bỏ quên và hay rớt tương phản
 * nhất. Ba trang rỗng dùng CHUNG khối này nên chúng trông cùng một nhà.
 * ===================================================================== */
.sgv-trong {
	max-width: 560px;
	margin: var(--sgv-s-8) auto;
	padding: var(--sgv-s-8) var(--sgv-s-6);
	border: 2px dashed var(--sgv-line);
	border-radius: var(--sgv-bo-to);
	background: var(--sgv-trang);
	text-align: center;
	color: var(--sgv-bien);
}
.sgv-trong h2 { font-size: var(--sgv-fs-5); margin: var(--sgv-s-4) 0 var(--sgv-s-2); color: var(--sgv-muc); }
.sgv-trong p { color: var(--sgv-muc-nhat); }
.sgv-trong__nut { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sgv-s-3); }
.sgv-trong form { display: flex; gap: var(--sgv-s-2); justify-content: center; margin-bottom: var(--sgv-s-5); }
.sgv-trong input[type="search"] {
	min-width: 0;
	flex: 1 1 220px;
	padding: var(--sgv-s-3) var(--sgv-s-4);
	border: 2px solid var(--sgv-line);
	border-radius: var(--sgv-bo-nut);
	background: var(--sgv-nen);
	font-family: var(--sgv-sans);
	font-size: var(--sgv-fs-3);
	color: var(--sgv-muc);
}

/* =====================================================================
 * 21. TRANG MỘT LỚP HỌC
 * ===================================================================== */
.sgv-sp { padding: var(--sgv-s-8) 0 var(--sgv-s-9); }
.sgv-sp__luoi { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sgv-s-7); align-items: start; }
@media (max-width: 900px) { .sgv-sp__luoi { grid-template-columns: 1fr; } }

.sgv-sp__anh {
	overflow: hidden;
	aspect-ratio: 4 / 3;
	border-radius: var(--sgv-bo-to);
	background: var(--sgv-cam-nhat);
	box-shadow: var(--sgv-bong-2);
}
.sgv-sp__anh img { width: 100%; height: 100%; object-fit: cover; }

body.sgv .product_title { font-size: var(--sgv-fs-6); font-weight: 800; margin-bottom: var(--sgv-s-3); }
body.sgv .woocommerce-product-details__short-description {
	font-size: var(--sgv-fs-4);
	color: var(--sgv-muc-nhat);
	margin-bottom: var(--sgv-s-5);
}
body.sgv .summary .price { margin-bottom: var(--sgv-s-5); }

.sgv-ttl {
	margin-bottom: var(--sgv-s-5);
	padding: var(--sgv-s-5);
	border: 2px solid var(--sgv-line);
	border-radius: var(--sgv-bo);
	background: var(--sgv-trang);
}
.sgv-ttl__h {
	display: flex;
	align-items: center;
	gap: var(--sgv-s-3);
	margin-bottom: var(--sgv-s-3);
	font-family: var(--sgv-tron);
	font-size: var(--sgv-fs-4);
	font-weight: 700;
	color: var(--sgv-nhan);
}
.sgv-ttl__h .sgv-hinh { width: 32px; height: 32px; }
.sgv-ttl dl { display: grid; grid-template-columns: auto 1fr; gap: var(--sgv-s-2) var(--sgv-s-4); margin: 0; }
.sgv-ttl dt { font-size: var(--sgv-fs-2); font-weight: 700; color: var(--sgv-muc-nhat); }
.sgv-ttl dd { margin: 0; font-size: var(--sgv-fs-3); font-weight: 600; }

.sgv-dk {
	padding: var(--sgv-s-5);
	border-radius: var(--sgv-bo);
	background: var(--sgv-cam-nhat);
}
.sgv-dk p { font-size: var(--sgv-fs-2); color: var(--sgv-muc-nhat); }
.sgv-dk__nhac { margin: var(--sgv-s-4) 0 0; font-size: var(--sgv-fs-1); }

body.sgv .woocommerce-tabs { margin-top: var(--sgv-s-8); }
body.sgv .woocommerce-tabs ul.tabs { margin: 0 0 var(--sgv-s-5); padding: 0; list-style: none; border: 0; }
body.sgv .woocommerce-tabs ul.tabs::before { display: none; }
body.sgv .woocommerce-tabs ul.tabs li {
	border: 0; background: none; margin: 0; padding: 0;
	border-radius: 0;
}
body.sgv .woocommerce-tabs ul.tabs li::before,
body.sgv .woocommerce-tabs ul.tabs li::after { display: none; }
body.sgv .woocommerce-tabs ul.tabs li a {
	padding: 0;
	color: var(--sgv-muc);
	font-family: var(--sgv-tron);
	font-size: var(--sgv-fs-5);
	font-weight: 800;
}
body.sgv .woocommerce-tabs .panel > h2:first-child { display: none; }
body.sgv .woocommerce-tabs .panel { max-width: 760px; }
body.sgv .woocommerce-tabs .panel p { margin-bottom: var(--sgv-s-4); }
body.sgv .related > h2,
body.sgv .up-sells > h2 { font-size: var(--sgv-fs-5); margin-bottom: var(--sgv-s-5); }
body.sgv .related, body.sgv .up-sells { margin-top: var(--sgv-s-8); }
body.sgv table.shop_attributes th { font-family: var(--sgv-tron); }

/* =====================================================================
 * 22. BIỂU MẪU
 * ===================================================================== */
.sgv-form { display: grid; gap: var(--sgv-s-4); }
.sgv-form label {
	display: block;
	margin-bottom: var(--sgv-s-1);
	font-family: var(--sgv-tron);
	font-size: var(--sgv-fs-2);
	font-weight: 700;
}
.sgv-form input,
.sgv-form select,
.sgv-form textarea {
	width: 100%;
	box-sizing: border-box;
	padding: var(--sgv-s-3) var(--sgv-s-4);
	border: 2px solid var(--sgv-line);
	border-radius: var(--sgv-bo);
	background: var(--sgv-trang);
	font-family: var(--sgv-sans);
	font-size: var(--sgv-fs-3);
	font-weight: 500;
	color: var(--sgv-muc);
}
.sgv-form textarea { min-height: 120px; resize: vertical; }
.sgv-form__hai { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sgv-s-4); }
@media (max-width: 560px) { .sgv-form__hai { grid-template-columns: 1fr; } }
.sgv-form__ghi { font-size: var(--sgv-fs-1); color: var(--sgv-muc-nhat); margin: 0; }

.sgv-toast {
	position: fixed;
	left: 50%; bottom: var(--sgv-s-5);
	z-index: 70;
	max-width: 560px;
	width: calc(100% - var(--sgv-s-8));
	padding: var(--sgv-s-4) var(--sgv-s-5);
	border-radius: var(--sgv-bo);
	background: var(--sgv-bien-sau);
	color: #fff;
	font-size: var(--sgv-fs-2);
	box-shadow: var(--sgv-bong-3);
	transform: translateX(-50%);
	animation: sgv-toast-vao .4s var(--sgv-nhip) both;
}
@keyframes sgv-toast-vao {
	from { opacity: 0; transform: translate(-50%, 16px); }
	to   { opacity: 1; transform: translateX(-50%); }
}

.sgv-nhac {
	margin-bottom: var(--sgv-s-5);
	padding: var(--sgv-s-4) var(--sgv-s-5);
	border-left: 4px solid var(--sgv-cam);
	border-radius: var(--sgv-bo);
	background: var(--sgv-cam-nhat);
	font-size: var(--sgv-fs-2);
}

/* =====================================================================
 * 23. KHỐI GỌI HÀNH ĐỘNG
 * ===================================================================== */
.sgv-cta { position: relative; padding: var(--sgv-s-8) 0; background: var(--sgv-cam); color: #fff; }
.sgv-cta__in {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--sgv-s-6);
}
.sgv-cta h2 { font-size: var(--sgv-fs-5); font-weight: 800; }
.sgv-cta p { max-width: 560px; color: #fff; margin: 0; }
.sgv-cta__nut { display: flex; flex-wrap: wrap; gap: var(--sgv-s-3); }

/* =====================================================================
 * 24. CHÂN TRANG
 * ===================================================================== */
.sgv-chan { background: var(--sgv-bien-sau); color: rgba(255, 255, 255, .86); }
.sgv-chan__tren {
	display: grid;
	grid-template-columns: 1.6fr 1fr 1fr 1fr;
	gap: var(--sgv-s-6);
	padding: var(--sgv-s-8) var(--sgv-s-5);
}
@media (max-width: 980px) { .sgv-chan__tren { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .sgv-chan__tren { grid-template-columns: 1fr; } }

body.sgv .sgv-chan__logo {
	display: inline-flex;
	align-items: center;
	gap: var(--sgv-s-3);
	margin-bottom: var(--sgv-s-3);
	color: #fff;
	font-family: var(--sgv-tron);
	font-size: var(--sgv-fs-4);
	font-weight: 800;
	text-decoration: none;
}
.sgv-chan__mo { font-size: var(--sgv-fs-2); margin-bottom: var(--sgv-s-4); }
.sgv-chan h3 {
	font-size: var(--sgv-fs-1);
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--sgv-cam-sang);
	margin-bottom: var(--sgv-s-3);
}
.sgv-chan ul { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--sgv-s-2); }
.sgv-chan ul li { font-size: var(--sgv-fs-2); }
body.sgv .sgv-chan a { color: rgba(255, 255, 255, .86); text-decoration: none; }
body.sgv .sgv-chan a:hover { color: #fff; text-decoration: underline; }
.sgv-chan .sgv-ke { color: var(--sgv-cam-sang); }

.sgv-chan__duoi {
	padding: var(--sgv-s-5);
	border-top: 1px solid var(--sgv-line-toi);
}
.sgv-chan__duoi p { font-size: var(--sgv-fs-1); margin-bottom: var(--sgv-s-2); }
.sgv-chan__mau { font-weight: 700; color: #fff; }

/* =====================================================================
 * 25. TRANG GIỚI THIỆU · LIÊN HỆ
 * ===================================================================== */
.sgv-gt__hai { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sgv-s-7); align-items: center; }
@media (max-width: 900px) { .sgv-gt__hai { grid-template-columns: 1fr; } }
.sgv-gt__anh {
	overflow: hidden;
	aspect-ratio: 4 / 3;
	border-radius: var(--sgv-bo-to);
	box-shadow: var(--sgv-bong-2);
}
.sgv-gt__anh img { width: 100%; height: 100%; object-fit: cover; }
.sgv-gt__chu { max-width: 620px; }
.sgv-gt__chu h2 { font-size: var(--sgv-fs-5); margin-top: var(--sgv-s-6); }
.sgv-gt__chu h2:first-child { margin-top: 0; }

.sgv-lh { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sgv-s-7); align-items: start; }
@media (max-width: 900px) { .sgv-lh { grid-template-columns: 1fr; } }
.sgv-lh__ds { margin: 0 0 var(--sgv-s-6); padding: 0; list-style: none; display: grid; gap: var(--sgv-s-4); }
.sgv-lh__ds li {
	display: flex;
	gap: var(--sgv-s-4);
	padding: var(--sgv-s-5);
	border-radius: var(--sgv-bo);
	background: var(--sgv-trang);
	border: 2px solid var(--sgv-line);
}
.sgv-lh__ds b { display: block; font-family: var(--sgv-tron); font-size: var(--sgv-fs-1); color: var(--sgv-muc-nhat); letter-spacing: .08em; text-transform: uppercase; }
body.sgv .sgv-lh__ds span, body.sgv .sgv-lh__ds a { font-family: var(--sgv-tron); font-size: var(--sgv-fs-4); font-weight: 700; color: var(--sgv-muc); text-decoration: none; }
body.sgv .sgv-lh__ds a:hover { color: var(--sgv-cam-sau); }
.sgv-lh__hop {
	padding: var(--sgv-s-6);
	border-radius: var(--sgv-bo-to);
	background: var(--sgv-trang);
	border: 2px solid var(--sgv-line);
	box-shadow: var(--sgv-bong);
}
.sgv-lh__hop h2 { font-size: var(--sgv-fs-5); }

/* =====================================================================
 * 26. BẪY SỐ 7 — NÚT CỦA TRANG GIỎ HÀNG / THANH TOÁN / TÀI KHOẢN
 *
 * WooCommerce 8+ dựng ba trang này bằng BLOCK, và nút của block lấy màu từ
 * `theme.json` chứ không từ CSS của theme con — nên mặc định ra xanh dương
 * của theme mẹ. Nút của block KHÔNG mang lớp `.button`, nên phải liệt kê đủ
 * các họ lớp dưới đây.
 * ===================================================================== */
body.sgv .button,
body.sgv .wp-block-button__link,
body.sgv .wp-element-button,
body.sgv .wc-block-components-button,
body.sgv .wc-block-cart__submit-button,
body.sgv .wc-block-components-checkout-place-order-button,
body.sgv .wc-block-components-product-button a,
body.sgv .woocommerce-button,
body.sgv button.woocommerce-form-login__submit,
body.sgv input.button,
body.sgv button[type="submit"].button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--sgv-s-2);
	padding: var(--sgv-s-3) var(--sgv-s-5);
	border: 2px solid var(--sgv-cam);
	border-radius: var(--sgv-bo-nut);
	background: var(--sgv-cam);
	background-image: none;
	color: #fff;
	font-family: var(--sgv-tron);
	font-size: var(--sgv-fs-3);
	font-weight: 700;
	line-height: 1.3;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background .22s var(--sgv-nhip), transform .22s var(--sgv-nhip);
}
body.sgv .button:hover,
body.sgv .wp-block-button__link:hover,
body.sgv .wp-element-button:hover,
body.sgv .wc-block-components-button:hover,
body.sgv .wc-block-cart__submit-button:hover,
body.sgv .wc-block-components-checkout-place-order-button:hover,
body.sgv .wc-block-components-product-button a:hover,
body.sgv .woocommerce-button:hover,
body.sgv input.button:hover {
	background: var(--sgv-cam-sau);
	border-color: var(--sgv-cam-sau);
	color: #fff;
	transform: translateY(-2px);
}
body.sgv .wc-block-components-button__text { color: inherit; }

/* Thông báo của WooCommerce. */
body.sgv .woocommerce-message,
body.sgv .woocommerce-info,
body.sgv .woocommerce-error,
body.sgv .wc-block-components-notice-banner {
	border-radius: var(--sgv-bo);
	border-left: 4px solid var(--sgv-cam);
	background: var(--sgv-cam-nhat);
	color: var(--sgv-muc);
	font-size: var(--sgv-fs-2);
}
body.sgv .woocommerce-message::before,
body.sgv .woocommerce-info::before { color: var(--sgv-cam-sau); }

/* Bảng và ô nhập của ba trang ấy, cho khỏi lọt phông và viền của theme mẹ. */
body.sgv .woocommerce table.shop_table,
body.sgv .wc-block-cart-items { border-radius: var(--sgv-bo); border-color: var(--sgv-line); }
body.sgv .woocommerce form .form-row input.input-text,
body.sgv .woocommerce form .form-row textarea,
body.sgv .woocommerce form .form-row select,
body.sgv .wc-block-components-text-input input {
	border: 2px solid var(--sgv-line);
	border-radius: var(--sgv-bo);
	background: var(--sgv-trang);
	font-family: var(--sgv-sans);
	color: var(--sgv-muc);
}
body.sgv .wc-block-components-totals-item__value,
body.sgv .woocommerce-Price-amount { color: var(--sgv-cam-sau); font-weight: 700; }

/*
 * Lưới "Mới trong cửa hàng" của trang giỏ hàng RỖNG.
 *
 * WooCommerce đặt `margin: 0 -8px` cho thẻ `<ul>` của lưới block, nên ở 375px
 * trang giỏ rỗng tràn ngang đúng 8px — đo được. Trang giỏ rỗng là một trong
 * ba trang hay bị bỏ quên mà chuẩn chung nhắc tới, và đây đúng là kiểu lỗi
 * chỉ lộ ra ở màn hẹp.
 */
body.sgv .wc-block-grid__products { margin-left: 0; margin-right: 0; }

/* =====================================================================
 * 27. ĐƯỜNG DỰ PHÒNG SỐ 2 — prefers-reduced-motion
 *
 * Hiện hết ngay, bỏ mọi chuyển động. Phải TẮT HẲN LUẬT GIẤU ở mục 18, không
 * chỉ rút thời lượng về 0: rút thời lượng mà vẫn giữ `opacity: 0` là nội dung
 * ẩn vĩnh viễn với đúng những người đã xin bớt chuyển động.
 * ===================================================================== */
@media (prefers-reduced-motion: reduce) {
	.sgv-js [data-sgv-vao],
	.sgv-js [data-sgv-rise] > * {
		opacity: 1 !important;
		translate: none !important;
		transition: none !important;
	}
	.sgv-js [data-sgv-ke] svg path {
		stroke-dasharray: none !important;
		stroke-dashoffset: 0 !important;
		transition: none !important;
	}
	body.sgv *,
	body.sgv *::before,
	body.sgv *::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
		scroll-behavior: auto !important;
	}
	.sgv-hero__anh img { animation: none !important; transform: none !important; }
	.sgv-hero__bong i { animation: none !important; }
	li.sgv-the:hover { transform: none; }
	li.sgv-the:hover .sgv-the__anh img { transform: none; }
	/* Thẻ lật VẪN lật — đó là cách duy nhất đọc được mặt sau; chỉ bỏ thời
	   lượng, nên nó đổi mặt ngay lập tức thay vì quay. */
	.sgv-lat:hover .sgv-lat__in,
	.sgv-lat:focus-visible .sgv-lat__in,
	.sgv-lat.is-lat .sgv-lat__in { transform: rotateY(180deg); }
	.sgv-js .sgv-tv__khung figure.is-xem { opacity: 1; }
}

/* =====================================================================
 * 28. IN GIẤY — bỏ phần trang trí, giữ nội dung đọc được
 * ===================================================================== */
@media print {
	.sgv-dau, .sgv-mnav, .sgv-chan, .sgv-cta, .sgv-loc, .sgv-boqua, .sgv-toast,
	.sgv-vien, .sgv-hero__bong { display: none !important; }
	body.sgv { background: #fff; color: #000; }
	.sgv-js [data-sgv-vao],
	.sgv-js [data-sgv-rise] > * { opacity: 1 !important; translate: none !important; }
	.sgv-js .sgv-tv__khung figure { opacity: 1 !important; position: relative; }
	.sgv-tv__khung { aspect-ratio: auto; }
}
