/*
Theme Name: VinaSite Thiết bị điện 04 — Mạch Nhà
Theme URI: https://vinasite.com.vn/
Description: Mẫu website bán thiết bị điện thông minh và nhà thông minh. Giao diện con của vinasite, chạy WooCommerce với giỏ hàng thật: trang chủ có kịch bản sử dụng và sơ đồ thiết bị, trang cửa hàng lọc theo chuẩn kết nối, chi tiết sản phẩm, giới thiệu và liên hệ. Mẫu demo của VinaSite.
Author: VinaSite
Author URI: https://vinasite.com.vn/
Template: vinasite
Version: 1.0.0
Text Domain: thietbidien-mau-04
*/

/* =====================================================================
 * Mạch Nhà — thiết bị điện thông minh, nhà thông minh.
 *
 * Cố ý khác hẳn các mẫu đã có: nền TÍM THAN `#15102E` cho các khối tối, xanh
 * lam sáng `#3E6BFF` làm màu nhấn, hai phông HÌNH HỌC (Exo 2 cho tiêu đề và
 * con số, Readex Pro cho chữ đọc), và bo góc gần như vuông (4px) thay vì thẻ
 * bo tròn hay viên thuốc. Bốn mẫu thiết bị điện còn lại đi hướng khác: 01 xanh
 * dương tươi, 02 xám thép và cam, 03 đen và vàng ấm, 05 đỏ và xám.
 * ===================================================================== */

:root {
	--mnh-deep: #15102E;        /* tím than: khối tối, chân trang, nền nút */
	--mnh-deep-2: #1E1846;      /* tím than nhạt hơn một bậc */
	--mnh-ink: #1B1640;         /* chữ tiêu đề trên nền sáng */
	--mnh-body: #54597C;        /* chữ nội dung */
	--mnh-muted: #8B90B0;       /* chữ phụ, nhãn nhỏ */
	--mnh-line: #E3E6F4;        /* đường kẻ */
	--mnh-tint: #F5F6FD;        /* dải nền phụ, hơi ngả xanh */
	--mnh-white: #FFFFFF;
	--mnh-blue: #3E6BFF;        /* xanh lam sáng: nhấn chính */
	--mnh-blue-d: #2A52DB;
	--mnh-blue-l: #8CA8FF;
	--mnh-cyan: #0E8C9B;        /* nhãn Zigbee, nét sơ đồ */
	--mnh-violet: #6B4BE0;      /* nhãn Bluetooth */
	--mnh-ok: #0F7A55;          /* trạng thái: không cần hub, còn hàng */
	--mnh-sale: #D92D5B;        /* giá giảm */

	--mnh-head: "Exo 2", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--mnh-font: "Readex Pro", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

	--mnh-max: 1300px;
	--mnh-gut: clamp(16px, 3.2vw, 44px);
	--mnh-pad: clamp(56px, 6vw, 100px);
	--mnh-r: 4px;
	--mnh-r-sm: 3px;
	--mnh-shadow: 0 1px 2px rgba(21, 16, 46, .05), 0 16px 34px -20px rgba(21, 16, 46, .28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body.mnh-shop {
	margin: 0;
	background: var(--mnh-white);
	color: var(--mnh-body);
	font: 400 16px/1.7 var(--mnh-font);
	-webkit-font-smoothing: antialiased;
}

body.mnh-shop a { color: inherit; text-decoration: none; }
body.mnh-shop img { display: block; max-width: 100%; height: auto; }
body.mnh-shop button, body.mnh-shop input, body.mnh-shop select, body.mnh-shop textarea { font: inherit; }
body.mnh-shop svg { display: block; }

/*
 * Theme mẹ có luật riêng cho h1–h3 trong nội dung và nhuộm chúng về màu xanh
 * của nó. Mẫu này cũng tông xanh tím nên KHÔNG nhận ra bằng mắt được — phải
 * kiểm bằng mã màu cụ thể. Khai `color: inherit` với HAI lớp để thắng luật
 * của theme mẹ mà vẫn để tiêu đề tự đúng màu trong cả khối nền sáng lẫn tối.
 */
body.mnh-shop h1, body.mnh-shop h2, body.mnh-shop h3,
body.mnh-shop h4, body.mnh-shop h5 {
	margin: 0;
	color: inherit;
	font-family: var(--mnh-head);
	font-weight: 700;
	line-height: 1.18;
	letter-spacing: -.015em;
}

/*
 * Theme mẹ còn một luật nữa, `.vs-scope { color; font-family; font-size }`, đặt
 * TRỰC TIẾP lên chính khối bọc mỗi trang. Luật đặt trực tiếp luôn thắng phần
 * thừa hưởng từ `body`, nên không khai lại ở đây thì chữ trong mọi khối rơi về
 * phông và màu của theme mẹ — kể cả trên các trang phụ. Hai lớp để thắng.
 *
 * Mọi luật màu cho khối tối bên dưới cũng phải có tiền tố `body.mnh-shop`:
 * một lớp (`.mnh-hero`) thì thua luật này, hai lớp thì thắng, và luật nào viết
 * sau thì thắng khi bằng điểm.
 */
body.mnh-shop .vs-scope {
	color: var(--mnh-body);
	font-family: var(--mnh-font);
	font-size: 16px;
	line-height: 1.7;
}

.mnh-wrap { width: min(var(--mnh-max), calc(100% - var(--mnh-gut) * 2)); margin-inline: auto; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.mnh-skip { position: absolute; z-index: 100; top: 10px; left: 10px; transform: translateY(-200%);
	padding: 10px 16px; border-radius: var(--mnh-r); background: var(--mnh-deep); color: #fff !important;
	font-size: 14px; font-weight: 600; transition: transform .2s ease; }
.mnh-skip:focus { transform: translateY(0); }

:where(body.mnh-shop) :focus-visible { outline: 2px solid var(--mnh-blue); outline-offset: 2px; }

.mnh-main, .mnh-main [id] { scroll-margin-top: 108px; }

/* =====================================================================
 * NÚT VÀ LIÊN KẾT
 * ===================================================================== */
.mnh-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 9px;
	min-height: 50px; padding: 0 26px;
	border: 1.5px solid var(--mnh-blue); border-radius: var(--mnh-r);
	background: var(--mnh-blue); color: #fff !important;
	font-family: var(--mnh-head); font-size: 14.5px; font-weight: 600;
	letter-spacing: .04em; text-transform: uppercase; white-space: nowrap;
	transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.mnh-btn:hover { background: var(--mnh-blue-d); border-color: var(--mnh-blue-d); transform: translateY(-2px); }
.mnh-btn svg { width: 16px; height: 16px; transition: transform .25s cubic-bezier(.22,.8,.3,1); }
.mnh-btn:hover svg { transform: translateX(3px); }

.mnh-btn--ghost { background: transparent; border-color: var(--mnh-line); color: var(--mnh-ink) !important; }
.mnh-btn--ghost:hover { background: var(--mnh-deep); border-color: var(--mnh-deep); color: #fff !important; }

.mnh-btn--sm { min-height: 42px; padding: 0 18px; font-size: 13px; }

.mnh-link { position: relative; display: inline-flex; align-items: center; gap: 8px;
	font-family: var(--mnh-head); font-size: 14px; font-weight: 600;
	letter-spacing: .04em; text-transform: uppercase; color: var(--mnh-blue) !important; }
.mnh-link::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 1.5px;
	background: currentColor; transform: scaleX(0); transform-origin: left;
	transition: transform .28s cubic-bezier(.22,.8,.3,1); }
.mnh-link:hover::after, .mnh-link:focus-visible::after { transform: scaleX(1); }
.mnh-link svg { width: 15px; height: 15px; transition: transform .25s cubic-bezier(.22,.8,.3,1); }
.mnh-link:hover svg { transform: translateX(3px); }

/* Nhãn chữ nhỏ in hoa, dùng ở đầu mọi khối. */
.mnh-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px;
	color: var(--mnh-blue); font-family: var(--mnh-head); font-size: 12.5px; font-weight: 700;
	letter-spacing: .18em; text-transform: uppercase; }
.mnh-eyebrow::before { content: ''; width: 22px; height: 2px; background: currentColor; }

/* =====================================================================
 * ĐẦU TRANG
 * ===================================================================== */
.mnh-bar { background: var(--mnh-deep); color: #D8DAEC; font-size: 13px; }
.mnh-bar__in { min-height: 40px; display: flex; justify-content: center; align-items: center; gap: 24px;
	flex-wrap: wrap; text-align: center; }
.mnh-bar strong { color: #fff; font-weight: 600; }
.mnh-bar a { display: inline-flex; align-items: center; gap: 6px; color: var(--mnh-blue-l) !important;
	font-weight: 600; white-space: nowrap; transition: color .2s ease; }
.mnh-bar a svg { width: 15px; height: 15px; transition: transform .25s cubic-bezier(.22,.8,.3,1); }
.mnh-bar a:hover { color: #fff !important; }
.mnh-bar a:hover svg { transform: translateX(4px); }

.mnh-head {
	position: sticky; top: 0; z-index: 60;
	background: rgba(255, 255, 255, .92); backdrop-filter: saturate(160%) blur(10px);
	border-bottom: 1px solid var(--mnh-line);
	transition: background .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.mnh-head.is-stuck { background: rgba(255, 255, 255, .98); border-bottom-color: transparent;
	box-shadow: 0 10px 26px -18px rgba(21, 16, 46, .45); }
.mnh-head__row { min-height: 86px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 26px; }

.mnh-brand { display: inline-flex; align-items: center; gap: 12px; width: fit-content; }
.mnh-brand__mark { width: 42px; height: 42px; flex: none; }
.mnh-brand__mark svg { width: 100%; height: 100%; transition: transform .3s cubic-bezier(.22,.8,.3,1); }
.mnh-brand:hover .mnh-brand__mark svg { transform: translateY(-3px); }
.mnh-brand__text { display: block; }
.mnh-brand__name { display: block; color: var(--mnh-ink); font-family: var(--mnh-head); font-size: 22px;
	font-weight: 700; letter-spacing: -.01em; white-space: nowrap; }
.mnh-brand__tag { display: block; max-height: 15px; margin-top: 3px; overflow: hidden; color: var(--mnh-muted);
	font-family: var(--mnh-head); font-size: 10.5px; font-weight: 600; letter-spacing: .2em; white-space: nowrap;
	transition: opacity .25s ease, max-height .25s ease, margin-top .25s ease; }
.mnh-head.is-stuck .mnh-brand__tag { opacity: 0; max-height: 0; margin-top: 0; }

/*
 * `min-width: 0` cho cột giữa của lưới đầu trang: không có nó thì cột `1fr`
 * không co xuống dưới bề rộng nội dung tối thiểu của menu, và cả hàng đầu
 * trang đẩy rộng ra làm trang tràn ngang ở 1440px. Có nó cộng `flex-wrap` thì
 * menu tự xuống dòng thay vì đẩy trang.
 */
.mnh-nav { min-width: 0; }
.mnh-nav ul { display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
	gap: 4px 24px; list-style: none; margin: 0; padding: 0; }
.mnh-nav a { position: relative; display: inline-block; padding: 12px 0; color: var(--mnh-ink);
	font-family: var(--mnh-head); font-size: 14.5px; font-weight: 600; white-space: nowrap; transition: color .2s ease; }
.mnh-nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px;
	background: var(--mnh-blue); transform: scaleX(0); transform-origin: left;
	transition: transform .28s cubic-bezier(.22,.8,.3,1); }
.mnh-nav a:hover, .mnh-nav a:focus-visible { color: var(--mnh-blue); }
.mnh-nav a:hover::after, .mnh-nav a:focus-visible::after { transform: scaleX(1); }
.mnh-nav a[aria-current="page"] { color: var(--mnh-blue); }
.mnh-nav a[aria-current="page"]::after { transform: scaleX(1); }

.mnh-tools { display: flex; justify-content: flex-end; align-items: center; gap: 12px; }

.mnh-search { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 5px 0 13px;
	border: 1px solid var(--mnh-line); border-radius: var(--mnh-r); background: var(--mnh-tint);
	transition: border-color .2s ease, background .2s ease, box-shadow .2s ease; }
.mnh-search:focus-within { border-color: var(--mnh-blue); background: var(--mnh-white);
	box-shadow: 0 0 0 3px rgba(62, 107, 255, .14); }
.mnh-search svg { width: 18px; height: 18px; flex: none; color: var(--mnh-muted); transition: color .25s ease; }
.mnh-search:focus-within svg { color: var(--mnh-blue); }
.mnh-search input { width: 136px; border: 0; outline: 0; background: transparent; font-size: 14px;
	color: var(--mnh-ink); transition: width .28s cubic-bezier(.22,.8,.3,1); }
.mnh-search input::placeholder { color: var(--mnh-muted); }
.mnh-search:focus-within input { width: 190px; }
.mnh-search button { height: 36px; flex: none; border: 0; border-radius: var(--mnh-r-sm); padding: 0 14px;
	background: var(--mnh-deep); color: #fff; font-family: var(--mnh-head); font-size: 12.5px; font-weight: 600;
	letter-spacing: .06em; text-transform: uppercase; cursor: pointer; transition: background .2s ease; }
.mnh-search button:hover { background: var(--mnh-blue); }

.mnh-cart { position: relative; min-height: 46px; display: inline-flex; align-items: center; gap: 9px;
	padding: 0 14px; border: 1px solid var(--mnh-line); border-radius: var(--mnh-r);
	color: var(--mnh-ink); font-family: var(--mnh-head); font-size: 14px; font-weight: 600;
	transition: border-color .2s ease, color .2s ease; }
.mnh-cart:hover { border-color: var(--mnh-blue); color: var(--mnh-blue); }
.mnh-cart svg { width: 21px; height: 21px; flex: none; transition: transform .3s cubic-bezier(.22,.8,.3,1); }
.mnh-cart:hover svg { transform: translateY(-2px); }
.mnh-cart__n { min-width: 21px; height: 21px; display: inline-grid; place-items: center; padding: 0 6px;
	border-radius: var(--mnh-r-sm); background: var(--mnh-blue); color: #fff;
	font-family: var(--mnh-head); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.mnh-cart__n[data-mnh-n="0"] { display: none; }
.mnh-cart__n.is-bump { animation: mnh-bump .45s cubic-bezier(.22,.8,.3,1); }
@keyframes mnh-bump { 0% { transform: scale(1); } 35% { transform: scale(1.35); } 100% { transform: scale(1); } }

.mnh-burger { width: 46px; height: 46px; display: none; align-items: center; justify-content: center;
	border: 1px solid var(--mnh-line); border-radius: var(--mnh-r); background: transparent;
	color: var(--mnh-ink); cursor: pointer; transition: border-color .2s ease; }
.mnh-burger:hover { border-color: var(--mnh-blue); }
.mnh-burger > span[aria-hidden] { position: relative; display: block; width: 19px; height: 13px; }
.mnh-burger i { position: absolute; left: 0; right: 0; height: 2px; background: currentColor;
	transition: transform .25s cubic-bezier(.22,.8,.3,1), opacity .2s ease; }
.mnh-burger i:nth-child(1) { top: 0; }
.mnh-burger i:nth-child(2) { top: 5.5px; }
.mnh-burger i:nth-child(3) { top: 11px; }
.mnh-burger[aria-expanded="true"] i:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.mnh-burger[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.mnh-burger[aria-expanded="true"] i:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* =====================================================================
 * CHÂN TRANG
 * ===================================================================== */
.mnh-foot { background: var(--mnh-deep); color: #C6C9E2; }
.mnh-foot__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.35fr; gap: 48px; padding: 66px 0 50px; }
.mnh-foot__brand .mnh-brand__name { color: #fff; }
.mnh-foot__brand .mnh-brand__tag { color: #8086AD; }
.mnh-foot p { margin: 0; }
.mnh-foot__desc { max-width: 340px; margin-top: 18px; color: #A1A6C8; font-size: 14.5px; line-height: 1.75; }
body.mnh-shop .mnh-foot h2 { margin: 0 0 18px; color: #fff; font-size: 12.5px; font-weight: 700;
	letter-spacing: .16em; text-transform: uppercase; }
.mnh-foot ul { list-style: none; margin: 0; padding: 0; }
.mnh-foot li + li { margin-top: 11px; }
.mnh-foot li, .mnh-foot a { color: #B6BAD6; font-size: 14.5px; }
.mnh-foot a:hover { color: #fff; }
.mnh-foot__col a span { display: inline-block; transition: transform .25s cubic-bezier(.22,.8,.3,1); }
.mnh-foot__col a:hover span, .mnh-foot__col a:focus-visible span { transform: translateX(5px); }

.mnh-foot__lh { margin-top: 22px; }
.mnh-foot__lh li { display: flex; align-items: center; gap: 10px; }
.mnh-foot__lh svg { width: 18px; height: 18px; flex: none; color: var(--mnh-blue-l); }

.mnh-foot__bot { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; color: #8086AD; font-size: 13px; }
.mnh-foot__bot .mnh-wrap { display: flex; justify-content: space-between; align-items: center; gap: 22px; }
.mnh-foot__bot a { color: #B6BAD6; text-decoration: underline; text-underline-offset: 2px; }

/* Ô nhận bản tin ở chân trang. */
.mnh-sub { display: flex; gap: 8px; margin-top: 18px; }
.mnh-sub__in { flex: 1 1 auto; min-width: 0; height: 48px; border: 1px solid rgba(255,255,255,.18);
	border-radius: var(--mnh-r); padding: 0 14px; background: rgba(255,255,255,.06); color: #fff; font-size: 14.5px; }
.mnh-sub__in::placeholder { color: #8086AD; }
.mnh-sub__in:focus { outline: 0; border-color: var(--mnh-blue); background: rgba(255,255,255,.1);
	box-shadow: 0 0 0 3px rgba(62, 107, 255, .22); }
.mnh-sub__go { height: 48px; flex: none; border: 0; border-radius: var(--mnh-r); padding: 0 20px;
	background: var(--mnh-blue); color: #fff; font-family: var(--mnh-head); font-size: 13px; font-weight: 600;
	letter-spacing: .05em; text-transform: uppercase; cursor: pointer; transition: background .2s ease, transform .2s ease; }
.mnh-sub__go:hover { background: var(--mnh-blue-d); transform: translateY(-1px); }
.mnh-sub__note { margin: 12px 0 0; color: #8086AD; font-size: 12.5px; line-height: 1.65; }

.mnh-toast { position: fixed; z-index: 80; right: 18px; bottom: 18px; max-width: 350px;
	padding: 16px 18px; border-left: 3px solid var(--mnh-blue); border-radius: var(--mnh-r);
	background: var(--mnh-deep); color: #D8DAEC; font-size: 14px; line-height: 1.6;
	box-shadow: 0 20px 46px -22px rgba(21,16,46,.7);
	animation: mnh-toast-in .3s cubic-bezier(.22,.8,.3,1) both, mnh-toast-out .4s ease 9s both; }
@keyframes mnh-toast-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes mnh-toast-out { to { opacity: 0; visibility: hidden; } }

/* =====================================================================
 * HIỆN DẦN KHI CUỘN TỚI (lớp do kịch bản gắn vào, không viết sẵn trong HTML)
 * ===================================================================== */
.mnh-rise { opacity: 0; transform: translateY(18px);
	transition: opacity .6s ease, transform .6s cubic-bezier(.22,.8,.3,1); }
.mnh-rise.is-in { opacity: 1; transform: none; }

/* =====================================================================
 * DẢI ĐẦU TRANG PHỤ
 * ===================================================================== */
body.mnh-shop .mnh-page__head { position: relative; padding: 52px 0 44px; background: var(--mnh-deep); color: #C6C9E2; overflow: hidden; }
/* Lưới mờ vẽ bằng gradient: không thêm tệp ảnh nào, và tự co theo khung. */
.mnh-page__head::before { content: ''; position: absolute; inset: 0; pointer-events: none;
	background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
	background-size: 46px 46px; mask-image: linear-gradient(180deg, #000, transparent 85%); }
.mnh-page__head > .mnh-wrap { position: relative; z-index: 2; }
.mnh-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: #8086AD; font-size: 13.5px; }
.mnh-crumb a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.mnh-crumb span[aria-hidden] { color: #4B4F7A; }
body.mnh-shop .mnh-page__title { margin-top: 14px; color: #fff; font-size: clamp(30px, 4vw, 48px); }
.mnh-page__sub { max-width: 640px; margin: 14px 0 0; color: #A1A6C8; font-size: 16px; }

/* =====================================================================
 * TRANG CỬA HÀNG
 * ===================================================================== */
.mnh-shop { padding: 36px 0 var(--mnh-pad); }
.mnh-shop__bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
	gap: 16px; margin-bottom: 30px; }
.mnh-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mnh-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px;
	border: 1px solid var(--mnh-line); border-radius: var(--mnh-r); color: var(--mnh-ink);
	font-family: var(--mnh-head); font-size: 14px; font-weight: 600;
	transition: border-color .2s ease, background .2s ease, color .2s ease; }
.mnh-chip span { color: var(--mnh-muted); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.mnh-chip:hover { border-color: var(--mnh-blue); color: var(--mnh-blue); }
.mnh-chip.is-on { background: var(--mnh-deep); border-color: var(--mnh-deep); color: #fff; }
.mnh-chip.is-on span { color: var(--mnh-blue-l); }

.mnh-shop__sort form.woocommerce-ordering { margin: 0; }
.mnh-shop__sort select, body.mnh-shop .woocommerce-ordering select {
	min-height: 42px; max-width: 100%; border: 1px solid var(--mnh-line); border-radius: var(--mnh-r);
	padding: 0 12px; background: var(--mnh-white); color: var(--mnh-ink); font-size: 14px; }

.mnh-trong { padding: 40px 0; color: var(--mnh-body); }

/* Lưới sản phẩm — WooCommerce in `ul.products` nên phải ghi đè float của nó. */
body.mnh-shop ul.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 34px 22px; list-style: none; margin: 0; padding: 0; }
body.mnh-shop ul.products::before, body.mnh-shop ul.products::after { display: none; }
body.mnh-shop ul.products li.product { position: relative; float: none; width: auto; margin: 0; min-width: 0;
	text-align: left; }
body.mnh-shop ul.products li.product > a { display: block; overflow: hidden; border: 1px solid var(--mnh-line);
	border-radius: var(--mnh-r); background: var(--mnh-tint); transition: border-color .25s ease; }
body.mnh-shop ul.products li.product:hover > a { border-color: var(--mnh-blue); }
body.mnh-shop ul.products li.product a img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; margin: 0;
	transition: transform .5s cubic-bezier(.22,.8,.3,1); }
body.mnh-shop ul.products li.product:hover a img { transform: scale(1.04); }

/* Nhãn mặc định của WooCommerce bị ẩn: mẫu này tự in nhãn riêng (xem inc/shop.php). */
body.mnh-shop span.onsale { display: none; }

.mnh-tags { position: absolute; z-index: 2; top: 10px; left: 10px; right: 10px;
	display: flex; flex-wrap: wrap; gap: 5px; }
.mnh-tag { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: var(--mnh-r-sm);
	background: var(--mnh-deep); color: #fff; font-family: var(--mnh-head); font-size: 11px; font-weight: 700;
	letter-spacing: .06em; text-transform: uppercase; }
.mnh-tag--wifi { background: var(--mnh-blue); }
.mnh-tag--zigbee { background: var(--mnh-cyan); }
.mnh-tag--bluetooth { background: var(--mnh-violet); }
.mnh-tag--hub { background: #fff; color: var(--mnh-ink); box-shadow: inset 0 0 0 1px var(--mnh-line); }
.mnh-tag--hub.is-khong { color: var(--mnh-ok); box-shadow: inset 0 0 0 1px rgba(15,122,85,.3); }
.mnh-tag--sale { background: var(--mnh-sale); }

body.mnh-shop ul.products li.product .woocommerce-loop-product__title {
	margin: 14px 0 0; padding: 0; color: var(--mnh-ink); font-family: var(--mnh-head);
	font-size: 16.5px; font-weight: 600; line-height: 1.35; }
body.mnh-shop ul.products li.product .price { display: block; margin: 7px 0 0; color: var(--mnh-ink);
	font-family: var(--mnh-head); font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
body.mnh-shop ul.products li.product .price del { margin-right: 7px; color: var(--mnh-muted); font-weight: 500; }
body.mnh-shop ul.products li.product .price ins { text-decoration: none; color: var(--mnh-sale); }
body.mnh-shop ul.products li.product .button { margin-top: 13px; }

/* Nút của WooCommerce: `white-space: nowrap` vì "Thêm vào giỏ" gãy hai dòng ở
   lưới ba cột trên tablet. */
body.mnh-shop .woocommerce a.button, body.mnh-shop a.button, body.mnh-shop button.button,
body.mnh-shop input.button, body.mnh-shop .button.alt, body.mnh-shop #place_order {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 46px; padding: 0 20px; border: 1.5px solid var(--mnh-blue); border-radius: var(--mnh-r);
	background: var(--mnh-blue); color: #fff; font-family: var(--mnh-head); font-size: 13.5px; font-weight: 600;
	letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; cursor: pointer;
	transition: background .2s ease, border-color .2s ease, transform .2s ease; }
body.mnh-shop .woocommerce a.button:hover, body.mnh-shop a.button:hover, body.mnh-shop button.button:hover,
body.mnh-shop input.button:hover, body.mnh-shop .button.alt:hover, body.mnh-shop #place_order:hover {
	background: var(--mnh-blue-d); border-color: var(--mnh-blue-d); color: #fff; transform: translateY(-2px); }
body.mnh-shop a.added_to_cart { display: inline-block; margin-left: 10px; color: var(--mnh-blue);
	font-size: 13.5px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

body.mnh-shop .woocommerce-pagination { grid-column: 1 / -1; margin-top: 44px; }
body.mnh-shop .woocommerce-pagination ul { display: flex; justify-content: center; gap: 8px; border: 0; margin: 0; padding: 0; }
body.mnh-shop .woocommerce-pagination li { border: 0; margin: 0; }
body.mnh-shop .woocommerce-pagination a, body.mnh-shop .woocommerce-pagination span {
	display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px;
	border: 1px solid var(--mnh-line); border-radius: var(--mnh-r); color: var(--mnh-ink);
	font-family: var(--mnh-head); font-weight: 600; }
body.mnh-shop .woocommerce-pagination span.current { background: var(--mnh-deep); border-color: var(--mnh-deep); color: #fff; }

/* =====================================================================
 * TRANG CHI TIẾT SẢN PHẨM
 * ===================================================================== */
.mnh-single__wrap { padding: 44px 0 var(--mnh-pad); }
body.mnh-shop div.product { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); }
body.mnh-shop div.product div.images, body.mnh-shop div.product div.summary { float: none; width: 100%; margin: 0; }
body.mnh-shop div.product div.images img { width: 100%; border: 1px solid var(--mnh-line); border-radius: var(--mnh-r); }
body.mnh-shop div.product .woocommerce-product-gallery__wrapper { margin: 0; }
body.mnh-shop div.product p.price, body.mnh-shop div.product span.price {
	margin: 0 0 18px; color: var(--mnh-ink); font-family: var(--mnh-head); font-size: 30px; font-weight: 700;
	font-variant-numeric: tabular-nums; }
body.mnh-shop div.product p.price del { margin-right: 10px; color: var(--mnh-muted); font-size: 20px; font-weight: 500; }
body.mnh-shop div.product p.price ins { text-decoration: none; color: var(--mnh-sale); }
body.mnh-shop div.product .woocommerce-product-details__short-description {
	margin: 0 0 20px; color: var(--mnh-body); font-size: 16.5px; }

/* Ba thông số in giữa mô tả ngắn và nút thêm vào giỏ (xem inc/shop.php). */
.mnh-specs { display: grid; gap: 0; list-style: none; margin: 0 0 14px; padding: 0;
	border: 1px solid var(--mnh-line); border-radius: var(--mnh-r); }
.mnh-specs li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
	padding: 13px 16px; }
.mnh-specs li + li { border-top: 1px solid var(--mnh-line); }
.mnh-specs span { color: var(--mnh-muted); font-size: 12.5px; font-weight: 500;
	letter-spacing: .1em; text-transform: uppercase; }
.mnh-specs strong { color: var(--mnh-ink); font-family: var(--mnh-head); font-size: 14.5px; font-weight: 600; text-align: right; }
.mnh-specs__note { margin: 0 0 22px; color: var(--mnh-muted); font-size: 13px; line-height: 1.6; }

body.mnh-shop div.product form.cart { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 22px; }
body.mnh-shop .quantity input.qty { width: 86px; min-height: 46px; border: 1px solid var(--mnh-line);
	border-radius: var(--mnh-r); padding: 0 10px; text-align: center; color: var(--mnh-ink); font-weight: 600; }
body.mnh-shop div.product .product_meta { padding-top: 18px; border-top: 1px solid var(--mnh-line);
	color: var(--mnh-muted); font-size: 13.5px; }
body.mnh-shop div.product .product_meta > span { display: block; margin-bottom: 5px; }
body.mnh-shop div.product .product_meta a { color: var(--mnh-ink); }
body.mnh-shop div.product .product_meta a:hover { color: var(--mnh-blue); }

body.mnh-shop div.product .woocommerce-tabs,
body.mnh-shop div.product .related,
body.mnh-shop div.product .upsells { grid-column: 1 / -1; }

body.mnh-shop .woocommerce-tabs { margin-top: 54px; }
body.mnh-shop .woocommerce-tabs ul.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; padding: 0; border: 0; list-style: none; }
body.mnh-shop .woocommerce-tabs ul.tabs::before, body.mnh-shop .woocommerce-tabs ul.tabs::after { display: none; }
body.mnh-shop .woocommerce-tabs ul.tabs li { margin: 0; padding: 0; border: 1px solid var(--mnh-line);
	border-radius: var(--mnh-r); background: transparent; }
body.mnh-shop .woocommerce-tabs ul.tabs li::before, body.mnh-shop .woocommerce-tabs ul.tabs li::after { display: none; }
body.mnh-shop .woocommerce-tabs ul.tabs li a { display: block; padding: 11px 20px; color: var(--mnh-body);
	font-family: var(--mnh-head); font-size: 14px; font-weight: 600; }
body.mnh-shop .woocommerce-tabs ul.tabs li.active { background: var(--mnh-deep); border-color: var(--mnh-deep); }
body.mnh-shop .woocommerce-tabs ul.tabs li.active a { color: #fff; }
body.mnh-shop .woocommerce-Tabs-panel h2 { margin: 0 0 12px; font-size: 23px; }
body.mnh-shop .woocommerce-Tabs-panel p { max-width: 780px; margin: 0; color: var(--mnh-body); font-size: 16.5px; }

body.mnh-shop div.product .related { margin-top: 62px; }
body.mnh-shop div.product .related > h2 { margin: 0 0 24px; color: var(--mnh-ink); font-size: clamp(23px, 2.6vw, 31px); }
body.mnh-shop div.product .related ul.products { width: 100%; }

/* =====================================================================
 * TRANG TĨNH, 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 "Tiến hành thanh toán" mặc định ra
 * xanh dương của WooCommerce. Phải khai lại đúng ba lớp dưới đây.
 * ===================================================================== */
.mnh-page__body { padding: 44px 0 var(--mnh-pad); }
body.mnh-shop .mnh-page__body h2, body.mnh-shop .mnh-page__body h3 { color: var(--mnh-ink); margin: 28px 0 12px; }
.mnh-page__body p, .mnh-page__body li { color: var(--mnh-body); }
.mnh-page__body a { color: var(--mnh-blue); text-decoration: underline; text-underline-offset: 3px; }

body.mnh-shop .wc-block-components-button:not(.is-link),
body.mnh-shop .wc-block-cart__submit-button,
body.mnh-shop .wc-block-components-checkout-place-order-button {
	border-radius: var(--mnh-r); background: var(--mnh-blue); color: #fff;
	font-family: var(--mnh-head); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
body.mnh-shop .wc-block-components-button:not(.is-link):hover,
body.mnh-shop .wc-block-cart__submit-button:hover,
body.mnh-shop .wc-block-components-checkout-place-order-button:hover {
	background: var(--mnh-blue-d); color: #fff; }
body.mnh-shop .wc-block-components-button.is-link { color: var(--mnh-blue); }
body.mnh-shop .wc-block-components-totals-item__value,
body.mnh-shop .wc-block-components-product-price { color: var(--mnh-ink); font-family: var(--mnh-head); font-weight: 700; }
body.mnh-shop .wc-block-cart-items__row { border-color: var(--mnh-line); }
body.mnh-shop .wc-block-components-product-name { color: var(--mnh-ink); font-weight: 600; }
body.mnh-shop .wc-block-components-product-name:hover { color: var(--mnh-blue); }
body.mnh-shop .wc-block-components-text-input input,
body.mnh-shop .wc-block-components-address-form input,
body.mnh-shop .wc-block-components-quantity-selector { border-radius: var(--mnh-r-sm); }
body.mnh-shop .wc-block-components-panel__button { color: var(--mnh-ink); }
body.mnh-shop .wc-block-components-title, body.mnh-shop .wp-block-woocommerce-checkout-order-summary-block { color: var(--mnh-ink); }

/* Giỏ hàng và tài khoản bản cổ điển (shortcode) nếu quản trị viên đổi sang. */
body.mnh-shop table.shop_table { border-color: var(--mnh-line); }
body.mnh-shop table.shop_table th { color: var(--mnh-ink); font-family: var(--mnh-head); }
body.mnh-shop .woocommerce-message, body.mnh-shop .woocommerce-info,
body.mnh-shop .woocommerce-error, body.mnh-shop .woocommerce-notices-wrapper .woocommerce-message {
	border-top-color: var(--mnh-blue); }
body.mnh-shop .woocommerce form .form-row input.input-text,
body.mnh-shop .woocommerce form .form-row textarea,
body.mnh-shop .woocommerce form .form-row select {
	min-height: 46px; border: 1px solid var(--mnh-line); border-radius: var(--mnh-r); padding: 0 12px; }

/* =====================================================================
 * TRANG CHỦ
 * ===================================================================== */

/* ── Hero: cột chữ bên trái, sơ đồ thiết bị bên phải, nền tím than ── */
body.mnh-shop .mnh-hero { position: relative; background: var(--mnh-deep); color: #C6C9E2; overflow: hidden; }
.mnh-hero::before { content: ''; position: absolute; inset: 0; pointer-events: none;
	background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
	background-size: 52px 52px; }
.mnh-hero::after { content: ''; position: absolute; width: 60vw; height: 60vw; max-width: 760px; max-height: 760px;
	top: -22%; right: -14%; border-radius: 50%; pointer-events: none;
	background: radial-gradient(circle, rgba(62,107,255,.34), transparent 66%); }
.mnh-hero__in { position: relative; z-index: 2; display: grid; grid-template-columns: 1.02fr .98fr;
	align-items: center; gap: clamp(32px, 5vw, 70px); padding: clamp(50px, 6vw, 92px) 0; }
.mnh-hero .mnh-eyebrow { color: var(--mnh-blue-l); }
body.mnh-shop .mnh-hero h1 { color: #fff; font-size: clamp(32px, 4.6vw, 58px); }
.mnh-hero h1 em { font-style: normal; color: var(--mnh-blue-l); }
.mnh-hero__sub { max-width: 540px; margin: 20px 0 0; color: #A1A6C8; font-size: clamp(15.5px, 1.1vw, 18px); }
.mnh-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.mnh-hero__cta .mnh-btn--ghost { border-color: rgba(255,255,255,.28); color: #fff !important; }
.mnh-hero__cta .mnh-btn--ghost:hover { background: #fff; border-color: #fff; color: var(--mnh-deep) !important; }
.mnh-hero__stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start;
	gap: 28px; margin-top: 36px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.12); }
.mnh-hero__stats strong { display: block; color: #fff; font-family: var(--mnh-head); font-size: 26px;
	font-weight: 700; font-variant-numeric: tabular-nums; }
.mnh-hero__stats span { display: block; margin-top: 3px; color: #8086AD; font-size: 13px; }
.mnh-hero__note { margin: 22px 0 0; color: #70769F; font-size: 13px; }

/* ── Sơ đồ thiết bị kết nối, vẽ bằng SVG nội tuyến ──
   `viewBox` cộng `width: 100%` nên hình tự co theo khung, không tràn ngang. */
.mnh-so-do { position: relative; }
.mnh-so-do svg { width: 100%; height: auto; }
.mnh-so-do__cap { margin: 14px 0 0; color: #70769F; font-size: 12.5px; text-align: center; }
.mnh-so-do .mnh-sd-line { stroke: rgba(140,168,255,.5); stroke-width: 1.6; fill: none; stroke-dasharray: 5 5; }
.mnh-so-do .mnh-sd-line--on { stroke: var(--mnh-blue-l); stroke-dasharray: none; }
.mnh-so-do .mnh-sd-node { fill: #221C4F; stroke: rgba(140,168,255,.45); stroke-width: 1.4; }
.mnh-so-do .mnh-sd-hub { fill: var(--mnh-blue); stroke: none; }
.mnh-so-do .mnh-sd-ico { fill: none; stroke: #C6C9E2; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.mnh-so-do .mnh-sd-ico--hub { stroke: #fff; }
.mnh-so-do .mnh-sd-txt { fill: #9095BC; font-family: var(--mnh-head); font-size: 10.5px; font-weight: 600;
	letter-spacing: .06em; text-anchor: middle; }
.mnh-so-do .mnh-sd-txt--hub { fill: #fff; }
.mnh-so-do .mnh-sd-pulse { animation: mnh-pulse 2.8s ease-in-out infinite; }
@keyframes mnh-pulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }

/* ── Dải bốn lời hứa ── */
.mnh-promise { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--mnh-line); }
.mnh-promise__item { display: flex; align-items: flex-start; gap: 13px; padding: 26px 24px; }
.mnh-promise__item + .mnh-promise__item { border-left: 1px solid var(--mnh-line); }
.mnh-promise svg { width: 24px; height: 24px; flex: none; margin-top: 2px; color: var(--mnh-blue); }
.mnh-promise strong { display: block; color: var(--mnh-ink); font-family: var(--mnh-head); font-size: 15px; font-weight: 600; }
.mnh-promise span { display: block; margin-top: 4px; color: var(--mnh-muted); font-size: 13.5px; line-height: 1.55; }

/* ── Khối chung ── */
.mnh-sec { padding: var(--mnh-pad) 0; }
.mnh-sec--tint { background: var(--mnh-tint); }
body.mnh-shop .mnh-sec--dark { background: var(--mnh-deep); color: #A1A6C8; }
body.mnh-shop .mnh-sec--dark h2, body.mnh-shop .mnh-sec--dark h3 { color: #fff; }
.mnh-sec--dark .mnh-eyebrow { color: var(--mnh-blue-l); }
.mnh-sec__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end;
	gap: 22px; margin-bottom: 34px; }
body.mnh-shop .mnh-sec__head h2 { color: var(--mnh-ink); font-size: clamp(26px, 3.1vw, 40px); }
body.mnh-shop .mnh-sec--dark .mnh-sec__head h2 { color: #fff; }
.mnh-sec__head p { max-width: 560px; margin: 12px 0 0; font-size: 16px; }

/* ── Bốn danh mục ── */
.mnh-dm { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.mnh-dm__item { display: flex; flex-direction: column; overflow: hidden;
	border: 1px solid var(--mnh-line); border-radius: var(--mnh-r); background: var(--mnh-white);
	transition: border-color .25s ease, transform .25s cubic-bezier(.22,.8,.3,1); }
.mnh-dm__item:hover { border-color: var(--mnh-blue); transform: translateY(-3px); }
.mnh-dm__item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
	transition: transform .5s cubic-bezier(.22,.8,.3,1); }
.mnh-dm__item:hover img { transform: scale(1.04); }
.mnh-dm__media { overflow: hidden; background: var(--mnh-tint); }
.mnh-dm__body { display: flex; flex-direction: column; gap: 6px; padding: 20px; }
.mnh-dm__body strong { color: var(--mnh-ink); font-family: var(--mnh-head); font-size: 17.5px; font-weight: 600; }
.mnh-dm__body span { color: var(--mnh-muted); font-size: 14px; line-height: 1.55; }
.mnh-dm__body em { margin-top: 6px; color: var(--mnh-blue); font-style: normal;
	font-family: var(--mnh-head); font-size: 12.5px; font-weight: 700;
	letter-spacing: .1em; text-transform: uppercase; }

/* ── Kịch bản sử dụng ── */
.mnh-kb { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mnh-kb__item { padding: 28px 26px 30px; border: 1px solid rgba(255,255,255,.12); border-radius: var(--mnh-r);
	background: rgba(255,255,255,.035); transition: border-color .25s ease, background .25s ease; }
.mnh-kb__item:hover { border-color: rgba(140,168,255,.5); background: rgba(255,255,255,.06); }
.mnh-kb__top { display: flex; align-items: center; gap: 12px; }
.mnh-kb__ico { width: 44px; height: 44px; flex: none; display: grid; place-items: center;
	border-radius: var(--mnh-r); background: rgba(62,107,255,.18); color: var(--mnh-blue-l); }
.mnh-kb__ico svg { width: 22px; height: 22px; }
body.mnh-shop .mnh-kb__item h3 { font-size: 20px; }
.mnh-kb__item > p { margin: 14px 0 0; color: #A1A6C8; font-size: 15px; }
.mnh-kb__steps { list-style: none; margin: 18px 0 0; padding: 0; counter-reset: mnh-kb; }
.mnh-kb__steps li { position: relative; padding: 10px 0 10px 34px; border-top: 1px solid rgba(255,255,255,.1);
	color: #C6C9E2; font-size: 14.5px; counter-increment: mnh-kb; }
.mnh-kb__steps li::before { content: counter(mnh-kb, decimal-leading-zero); position: absolute; left: 0; top: 10px;
	color: var(--mnh-blue-l); font-family: var(--mnh-head); font-size: 12.5px; font-weight: 700;
	font-variant-numeric: tabular-nums; }

/* ── Khối tương thích theo chuẩn kết nối ── */
.mnh-tt { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mnh-tt__item { display: flex; flex-direction: column; padding: 26px 24px 28px;
	border: 1px solid var(--mnh-line); border-top: 3px solid var(--mnh-blue); border-radius: var(--mnh-r);
	background: var(--mnh-white); }
.mnh-tt__item--zigbee { border-top-color: var(--mnh-cyan); }
.mnh-tt__item--ble { border-top-color: var(--mnh-violet); }
.mnh-tt__name { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
body.mnh-shop .mnh-tt__name h3 { color: var(--mnh-ink); font-size: 21px; }
.mnh-tt__item > p { margin: 14px 0 0; color: var(--mnh-body); font-size: 15px; }
.mnh-tt__list { list-style: none; margin: 18px 0 0; padding: 0; }
.mnh-tt__list li { display: flex; align-items: flex-start; gap: 9px; padding: 8px 0;
	color: var(--mnh-body); font-size: 14.5px; }
.mnh-tt__list svg { width: 17px; height: 17px; flex: none; margin-top: 4px; color: var(--mnh-blue); }
.mnh-tt__note { margin: 26px 0 0; padding: 18px 20px; border-left: 3px solid var(--mnh-blue);
	border-radius: var(--mnh-r); background: var(--mnh-tint); color: var(--mnh-body); font-size: 14.5px; line-height: 1.7; }

/* ── Khối hai cột: ảnh và chữ ── */
.mnh-story { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(28px, 5vw, 66px); }
.mnh-story__media { overflow: hidden; border: 1px solid var(--mnh-line); border-radius: var(--mnh-r); }
.mnh-story__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
body.mnh-shop .mnh-story__copy h2 { color: var(--mnh-ink); font-size: clamp(25px, 2.9vw, 38px); }
.mnh-story__copy > p { margin: 18px 0 0; color: var(--mnh-body); font-size: 16.5px; }
.mnh-story__copy .mnh-btn { margin-top: 28px; }
.mnh-story__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-top: 28px;
	background: var(--mnh-line); border: 1px solid var(--mnh-line); border-radius: var(--mnh-r); overflow: hidden; }
.mnh-story__grid div { padding: 18px 20px; background: var(--mnh-white); }
.mnh-story__grid strong { display: block; color: var(--mnh-ink); font-family: var(--mnh-head);
	font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.mnh-story__grid span { display: block; margin-top: 3px; color: var(--mnh-muted); font-size: 13.5px; }

/* ── Khối cuối: đăng ký nhận bản tin ── */
body.mnh-shop .mnh-dangky { padding: var(--mnh-pad) 0; background: var(--mnh-deep-2); color: #A1A6C8; }
.mnh-dangky__in { display: grid; grid-template-columns: 1fr .9fr; align-items: center; gap: clamp(28px, 5vw, 60px); }
body.mnh-shop .mnh-dangky h2 { color: #fff; font-size: clamp(25px, 2.9vw, 38px); }
.mnh-dangky > .mnh-wrap p { margin: 0; }
.mnh-dangky__copy > p { max-width: 520px; margin: 16px 0 0; font-size: 16.5px; }
.mnh-dangky__form { display: flex; flex-wrap: wrap; gap: 10px; }
.mnh-dangky__field { flex: 1 1 220px; min-width: 0; height: 52px; border: 1px solid rgba(255,255,255,.2);
	border-radius: var(--mnh-r); padding: 0 16px; background: rgba(255,255,255,.07); color: #fff; font-size: 15px; }
.mnh-dangky__field::placeholder { color: #8086AD; }
.mnh-dangky__field:focus { outline: 0; border-color: var(--mnh-blue); background: rgba(255,255,255,.12);
	box-shadow: 0 0 0 3px rgba(62,107,255,.22); }
.mnh-dangky__form .mnh-btn { flex: none; min-height: 52px; }
.mnh-dangky__note { margin: 14px 0 0; color: #70769F; font-size: 13px; line-height: 1.65; }

/* Khối gọi nhanh thay biểu mẫu trên điện thoại. */
.mnh-goi { display: none; }
.mnh-goi .mnh-wrap { display: grid; gap: 16px; justify-items: start; }
.mnh-goi p { margin: 0; color: #A1A6C8; font-size: 16px; }
.mnh-goi strong { color: #fff; }

/* =====================================================================
 * TRANG GIỚI THIỆU
 * ===================================================================== */
.mnh-gt { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mnh-gt__item { padding: 26px 24px; border: 1px solid var(--mnh-line); border-radius: var(--mnh-r);
	background: var(--mnh-white); transition: border-color .2s ease, transform .2s ease; }
.mnh-gt__item:hover { border-color: var(--mnh-blue); transform: translateY(-3px); }
body.mnh-shop .mnh-gt__item h3 { margin: 0 0 10px; color: var(--mnh-ink); font-size: 18px; }
.mnh-gt__item p { margin: 0; color: var(--mnh-body); font-size: 15.5px; }
.mnh-gt__num { display: block; margin-bottom: 12px; color: var(--mnh-blue); font-family: var(--mnh-head);
	font-size: 13px; font-weight: 700; letter-spacing: .12em; }

.mnh-gt__cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px;
	margin-top: 46px; padding: 32px 34px; border: 1px solid var(--mnh-line); border-radius: var(--mnh-r);
	background: var(--mnh-tint); }
body.mnh-shop .mnh-gt__cta h2 { color: var(--mnh-ink); font-size: clamp(22px, 2.3vw, 30px); }
.mnh-gt__cta p { max-width: 540px; margin: 12px 0 0; color: var(--mnh-body); font-size: 16px; }
.mnh-gt__cta-btn { display: flex; flex-wrap: wrap; gap: 11px; }

/* =====================================================================
 * TRANG LIÊN HỆ
 * ===================================================================== */
.mnh-lh { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
body.mnh-shop .mnh-lh h2 { color: var(--mnh-ink); font-size: clamp(23px, 2.5vw, 32px); }
.mnh-lh > div > p { margin: 14px 0 0; color: var(--mnh-body); font-size: 16px; }
.mnh-lh__list { list-style: none; margin: 26px 0 0; padding: 0; }
.mnh-lh__list li { display: flex; align-items: flex-start; gap: 13px; padding: 16px 0; border-top: 1px solid var(--mnh-line); }
.mnh-lh__list li:last-child { border-bottom: 1px solid var(--mnh-line); }
.mnh-lh__list svg { width: 20px; height: 20px; flex: none; margin-top: 4px; color: var(--mnh-blue); }
.mnh-lh__list strong { display: block; margin-bottom: 2px; color: var(--mnh-muted); font-family: var(--mnh-head);
	font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.mnh-lh__list span { color: var(--mnh-ink); font-size: 16.5px; }
.mnh-lh__anh { width: 100%; margin-top: 28px; aspect-ratio: 16 / 10; object-fit: cover;
	border: 1px solid var(--mnh-line); border-radius: var(--mnh-r); }

.mnh-form { margin-top: 22px; }
.mnh-form__row { display: grid; gap: 7px; margin: 0 0 16px; }
.mnh-form__row label { color: var(--mnh-ink); font-family: var(--mnh-head); font-size: 14px; font-weight: 600; }
.mnh-form input, .mnh-form textarea, .mnh-form select {
	width: 100%; border: 1px solid var(--mnh-line); border-radius: var(--mnh-r); padding: 12px 14px;
	background: var(--mnh-white); color: var(--mnh-ink); font-size: 15.5px; }
.mnh-form input, .mnh-form select { min-height: 48px; }
.mnh-form textarea { resize: vertical; min-height: 126px; }
.mnh-form input:focus, .mnh-form textarea:focus, .mnh-form select:focus {
	outline: 0; border-color: var(--mnh-blue); box-shadow: 0 0 0 3px rgba(62,107,255,.14); }
.mnh-form__note { margin: 14px 0 0; color: var(--mnh-muted); font-size: 13px; line-height: 1.65; }
.mnh-form__card { padding: 28px 28px 30px; border: 1px solid var(--mnh-line); border-radius: var(--mnh-r);
	background: var(--mnh-white); box-shadow: var(--mnh-shadow); }

.mnh-goi--lh { padding: 0 0 var(--mnh-pad); background: transparent; }
.mnh-goi--lh p { color: var(--mnh-body); }
.mnh-goi--lh strong { color: var(--mnh-ink); }

/* =====================================================================
 * MÀN HÌNH HẸP
 * Chỉ bốn bề ngang được kiểm: 1920 / 1440 / 768 / 375.
 * ===================================================================== */
@media (max-width: 1240px) {
	.mnh-search { display: none; }
	.mnh-nav ul { gap: 18px; }
}
@media (max-width: 1160px) {
	body.mnh-shop ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.mnh-dm { grid-template-columns: repeat(2, 1fr); }
	.mnh-promise { grid-template-columns: repeat(2, 1fr); }
	.mnh-promise__item:nth-child(2n+1) { border-left: 0; }
	.mnh-promise__item:nth-child(n+3) { border-top: 1px solid var(--mnh-line); }
}
@media (max-width: 1040px) {
	.mnh-head__row { grid-template-columns: 1fr auto; }
	.mnh-burger { display: inline-flex; }
	.mnh-nav { position: absolute; inset: 100% 0 auto; display: none; padding: 10px var(--mnh-gut) 18px;
		border-bottom: 1px solid var(--mnh-line); background: var(--mnh-white);
		box-shadow: 0 18px 32px -22px rgba(21,16,46,.5); }
	/* Chỉ chạy lúc mở. Đóng thì ẩn ngay, vì `display: none` cắt mọi chuyển cảnh. */
	.mnh-nav.is-open { display: block; animation: mnh-drop .28s cubic-bezier(.22,.8,.3,1) both; }
	@keyframes mnh-drop { from { opacity: 0; transform: translateY(-9px); } to { opacity: 1; transform: translateY(0); } }
	.mnh-nav ul { display: grid; gap: 0; }
	.mnh-nav a { display: block; padding: 13px 2px; border-bottom: 1px solid var(--mnh-line); }
	.mnh-nav a::after { display: none; }

	.mnh-hero__in { grid-template-columns: 1fr; }
	.mnh-so-do { max-width: 560px; }
	.mnh-kb, .mnh-tt, .mnh-gt { grid-template-columns: 1fr; }
	.mnh-story { grid-template-columns: 1fr; }
	.mnh-story__media { order: -1; }
	.mnh-lh { grid-template-columns: 1fr; }
	.mnh-dangky__in { grid-template-columns: 1fr; }
	.mnh-foot__grid { grid-template-columns: 1.3fr 1fr 1fr; gap: 38px; }
	.mnh-foot__news { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
	body.mnh-shop div.product { grid-template-columns: 1fr; gap: 26px; }
	.mnh-page__head { padding: 38px 0 32px; }
}
@media (max-width: 760px) {
	.mnh-head__row { min-height: 70px; gap: 12px; }
	.mnh-brand__mark { width: 36px; height: 36px; }
	.mnh-brand__name { font-size: 19px; }
	/*
	 * Dòng "THIẾT BỊ ĐIỆN THÔNG MINH" có `white-space: nowrap` và giãn chữ .2em
	 * nên bề rộng tối thiểu của nó ~190px — ở 375px nó đẩy cả hàng đầu trang
	 * rộng ra 17px và trang tràn ngang. Dưới 760px thì ẩn hẳn.
	 */
	.mnh-brand__tag { display: none; }
	.mnh-cart__label { display: none; }
	.mnh-cart { padding: 0 11px; }
	.mnh-bar a { display: none; }
	.mnh-bar__in { min-height: 34px; font-size: 12.5px; }

	.mnh-hero__stats { grid-template-columns: 1fr 1fr; gap: 18px 24px; }
	.mnh-promise { grid-template-columns: 1fr; }
	.mnh-promise__item { border-left: 0 !important; }
	.mnh-promise__item + .mnh-promise__item { border-top: 1px solid var(--mnh-line); }
	.mnh-dm { grid-template-columns: 1fr; }
	.mnh-story__grid { grid-template-columns: 1fr; }
	.mnh-gt__cta { padding: 26px 22px; }

	.mnh-foot__grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; padding: 46px 0 34px; }
	.mnh-foot__brand { grid-column: 1 / -1; }
	/*
	 * Cùng quy tắc với biểu mẫu trên trang chủ và trang liên hệ: trên điện thoại
	 * không bắt khách gõ email. Giấu cả cột cho gọn — để lại mỗi tiêu đề
	 * "Nhận bản tin" mà không có ô nhập thì chẳng để làm gì. `display: none`
	 * cũng đưa ô nhập ra khỏi thứ tự tiêu điểm bàn phím.
	 */
	.mnh-foot__news { display: none; }
	.mnh-foot__bot .mnh-wrap { flex-direction: column; align-items: flex-start; gap: 7px; }
}
@media (max-width: 640px) {
	body.mnh-shop ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 14px; }
	body.mnh-shop ul.products li.product .woocommerce-loop-product__title { font-size: 15px; }
	body.mnh-shop ul.products li.product .price { font-size: 15px; }
	body.mnh-shop ul.products li.product .button { width: 100%; font-size: 12.5px; padding: 0 10px; }
	.mnh-tags { gap: 4px; }
	.mnh-tag { height: 22px; padding: 0 7px; font-size: 10px; }
	.mnh-shop__bar { gap: 12px; }
	.mnh-chip { min-height: 38px; padding: 0 13px; font-size: 13.5px; }
	.mnh-specs li { flex-direction: column; gap: 3px; }
	.mnh-specs strong { text-align: left; }
}

/* Dưới 960px: ba biểu mẫu email đổi sang khối gọi nhanh (xem README). */
@media (max-width: 960px) {
	.mnh-dangky__in { display: none; }
	.mnh-dangky .mnh-goi, .mnh-goi--lh { display: block; }
	.mnh-form { display: none; }
}

/* Ai xin bớt chuyển động thì không thấy gì chạy. */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important;
		transition-duration: .01ms !important; }
}
