/*
Theme Name: Xưởng Mica Ngọc Minh
Theme URI: https://xuongmicangocminh.com
Description: Giao diện con của webme.vn cho Xưởng Mica Ngọc Minh. Màu, chữ, bo góc, độ rộng và thông tin liên hệ chỉnh ở Giao diện ▸ Tuỳ biến; từng khối trang chủ sửa trong Dựng trang.
Template: webmevn
Version: 1.0.0
Text Domain: ngocminh
*/

/* ===== Biến mặc định (Tuỳ biến ghi đè trong #nm-vars) ===== */
:root {
	--nm-dark: #1c1917;
	--nm-dark-2: #141110;
	--nm-accent: #b45309;
	--nm-accent-soft: #cb8753;
	--nm-hl: #fcd34d;
	--nm-ink: #1b1a33;
	--nm-mut: #565b73;
	--nm-line: #e2e8f0;
	--nm-soft: #fafaf9;
	--nm-wrap: 1200px;
	--nm-r: 8px;
	--nm-hero-ov: .6;
	--nm-hero-h: 620px;
	--nm-font-h: "Montserrat", system-ui, sans-serif;
	--nm-font-b: "Nunito", system-ui, sans-serif;
	--nm-s1: 8px; --nm-s2: 16px; --nm-s3: 24px; --nm-s4: 32px; --nm-s5: 48px; --nm-s6: 64px;
}

.nm-site { font-family: var(--nm-font-b); color: var(--nm-ink); background: #fff; font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
.nm-site h1, .nm-site h2, .nm-site h3, .nm-site h4 { font-family: var(--nm-font-h); font-weight: 800; color: var(--nm-dark); line-height: 1.2; margin: 0; }
:where(.nm-site) a { color: inherit; text-decoration: none; }
:where(.nm-site) img { max-width: 100%; height: auto; display: block; }
.nm-site .nm-i { flex: none; display: block; }
.nm-wrap { width: 100%; max-width: var(--nm-wrap); margin: 0 auto; padding: 0 20px; box-sizing: border-box; }
.nm-skip { position: absolute; left: -9999px; top: 0; z-index: 200; background: #fff; padding: 10px 14px; }
.nm-skip:focus { left: 8px; top: 8px; }
[hidden] { display: none !important; }

/* ===== Nút ===== */
.nm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border: 1px solid transparent; border-radius: var(--nm-r); font: 700 15px/1 var(--nm-font-b); letter-spacing: .02em; cursor: pointer; transition: background-color .18s, color .18s, border-color .18s; white-space: nowrap; }
.nm-btn--accent { background: var(--nm-accent); color: #fff; }
.nm-btn--accent:hover { background: color-mix(in srgb, var(--nm-accent) 86%, #000); }
.nm-btn--primary { background: var(--nm-dark); color: #fff; }
.nm-btn--primary:hover { background: var(--nm-accent); }
.nm-btn--outline { background: transparent; color: var(--nm-dark); border-color: var(--nm-dark); }
.nm-btn--outline:hover { background: var(--nm-dark); color: #fff; }
.nm-btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .85); }
.nm-btn--ghost:hover { background: #fff; color: var(--nm-dark); border-color: #fff; }
.nm-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--nm-dark); }
.nm-link:hover { color: var(--nm-accent); }
.nm-btnrow { display: flex; flex-wrap: wrap; gap: 12px; }

/* ===== Đầu trang ===== */
.nm-top { background: var(--nm-dark); color: rgba(255, 255, 255, .8); font-size: 13px; padding: 6px 0; }
.nm-header { position: sticky; top: 0; z-index: 90; background: #fff; border-bottom: 1px solid var(--nm-line); }
.nm-header__in { display: flex; align-items: center; gap: 24px; height: 84px; transition: height .2s; }
.nm-header.is-stuck .nm-header__in { height: 68px; }
.nm-logo { flex: none; display: flex; align-items: center; }
.nm-logo img, .nm-logo .custom-logo { max-height: 56px; width: auto; }
.nm-nav { flex: 1; }
.nm-menu { display: flex; align-items: center; justify-content: flex-end; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nm-menu > li { position: relative; }
.nm-menu a { display: block; padding: 10px 14px; font: 700 15px/1.2 var(--nm-font-b); color: var(--nm-dark); }
.nm-menu > li > a:hover, .nm-menu > li.current-menu-item > a { color: var(--nm-accent); }
.nm-menu .sub-menu { position: absolute; left: 0; top: 100%; min-width: 240px; margin: 0; padding: 8px; list-style: none; background: #fff; border: 1px solid var(--nm-line); border-radius: var(--nm-r); opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .16s, transform .16s, visibility .16s; box-shadow: 0 8px 24px rgba(28, 25, 23, .1); }
.nm-menu li:hover > .sub-menu, .nm-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nm-menu .sub-menu a { padding: 9px 12px; font-weight: 600; border-radius: calc(var(--nm-r) - 2px); }
.nm-menu .sub-menu a:hover { background: var(--nm-soft); color: var(--nm-accent); }
.nm-menu > li.menu-item-has-children > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 0 3px 8px; border: solid currentColor; border-width: 0 1.8px 1.8px 0; transform: rotate(45deg); }
.nm-header__right { display: flex; align-items: center; gap: 14px; flex: none; }
.nm-iconbtn { display: grid; place-items: center; width: 40px; height: 40px; border: 0; background: transparent; color: var(--nm-dark); border-radius: var(--nm-r); cursor: pointer; }
.nm-iconbtn:hover { background: var(--nm-soft); }
.nm-hotline { display: flex; align-items: center; gap: 10px; }
.nm-hotline__ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--nm-soft); color: var(--nm-accent); border: 1px solid var(--nm-line); }
.nm-hotline__t { display: flex; flex-direction: column; line-height: 1.2; }
.nm-hotline__t small { font-size: 12px; color: var(--nm-mut); }
.nm-hotline__t strong { font: 800 16px/1.2 var(--nm-font-h); color: var(--nm-dark); }
.nm-header__cta { min-height: 44px; }
.nm-burger, .nm-mcall { display: none; }
.nm-header .nm-wrap { max-width: 1320px; }

/* ngăn kéo menu + hộp tìm kiếm */
.nm-drawer { position: fixed; inset: 0; z-index: 120; }
.nm-drawer__bg, .nm-modal__bg { position: absolute; inset: 0; background: rgba(12, 10, 9, .55); }
.nm-drawer__box { position: absolute; left: 0; top: 0; bottom: 0; width: min(88vw, 360px); background: #fff; padding: 16px 20px 24px; overflow-y: auto; }
.nm-drawer__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.nm-menu--m { flex-direction: column; align-items: stretch; gap: 0; margin-top: 12px; }
.nm-menu--m a { padding: 13px 4px; border-bottom: 1px solid var(--nm-line); }
.nm-menu--m .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; border: 0; box-shadow: none; padding: 0 0 0 14px; }
.nm-menu--m > li.menu-item-has-children > a::after { display: none; }
.nm-modal { position: fixed; inset: 0; z-index: 130; display: grid; place-items: start center; padding-top: 14vh; }
.nm-modal__box { position: relative; width: min(92vw, 620px); background: #fff; border-radius: var(--nm-r); border-top: 4px solid var(--nm-accent); padding: 28px; }
.nm-modal__box h2 { font-size: 22px; margin-bottom: 16px; }
.nm-modal__box p { margin: 12px 0 0; font-size: 13px; color: var(--nm-mut); }
.nm-search { display: flex; gap: 8px; }
.nm-search input { flex: 1; min-width: 0; height: 48px; padding: 0 14px; border: 1px solid var(--nm-line); border-radius: var(--nm-r); font: 500 15px var(--nm-font-b); }
.nm-search input:focus { outline: 0; border-color: var(--nm-dark); }
.nm-search--drawer button { width: 48px; border: 0; border-radius: var(--nm-r); background: var(--nm-dark); color: #fff; cursor: pointer; display: grid; place-items: center; }

/* ===== Khối trang ===== */
.hdnt-ub-page { padding: 0 !important; }
.nm-site main.py-8 { padding-top: 0; padding-bottom: 0; }
.nm-sec { padding: var(--nm-s5) 0; }
.nm-sec--light { background: #fff; }
.nm-sec--soft { background: var(--nm-soft); }
.nm-sec--dark { background: var(--nm-dark); color: rgba(255, 255, 255, .85); }
.nm-site .nm-sec--dark h2, .nm-site .nm-sec--dark h3 { color: #fff; }
.nm-sec--tight { padding: var(--nm-s4) 0; }
.nm-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: var(--nm-s3); flex-wrap: wrap; }
.nm-head--center { justify-content: center; text-align: center; }
.nm-eb { display: inline-block; margin: 0 0 10px; padding-left: 14px; border-left: 4px solid var(--nm-accent); font: 700 13px/1.2 var(--nm-font-b); letter-spacing: .14em; text-transform: uppercase; color: var(--nm-dark); }
.nm-sec--dark .nm-eb, .nm-eb--light { color: var(--nm-accent-soft); border-color: var(--nm-accent-soft); }
.nm-h2 { font-size: 40px; text-transform: uppercase; margin: 0 0 12px; }
.nm-h2--s { font-size: 30px; }
.nm-sub { margin: 0; max-width: 680px; font-size: 16px; color: var(--nm-mut); }
.nm-sec--dark .nm-sub { color: rgba(255, 255, 255, .78); }
.nm-grid { display: grid; gap: 20px; }
.nm-grid--2 { grid-template-columns: repeat(2, 1fr); }
.nm-grid--3 { grid-template-columns: repeat(3, 1fr); }
.nm-grid--4 { grid-template-columns: repeat(4, 1fr); }

/* banner */
.nm-hero { position: relative; overflow: hidden; background: var(--nm-dark-2); color: #fff; }
.nm-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 60%; }
.nm-hero__ov { position: absolute; inset: 0; background: rgb(12 10 9 / var(--nm-hero-ov)); }
.nm-hero__in { position: relative; min-height: var(--nm-hero-h); display: flex; align-items: center; justify-content: center; padding-top: 56px; padding-bottom: 56px; }
.nm-hero__box { text-align: center; max-width: 840px; }
.nm-pill { display: inline-block; margin: 0 0 18px; padding: 6px 14px; border-radius: 6px; background: var(--nm-accent); color: #fff; font: 700 13px/1.4 var(--nm-font-b); letter-spacing: .06em; text-transform: uppercase; }
.nm-site .nm-hero__h { margin: 0 0 16px; font-size: 56px; line-height: 1.1; color: #fff; text-transform: uppercase; letter-spacing: .01em; }
.nm-site .nm-hero__h span { color: var(--nm-hl); }
.nm-hero__p { margin: 0 auto 26px; max-width: 640px; font-size: 17px; color: rgba(255, 255, 255, .92); }
.nm-hero__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.nm-tag { position: absolute; bottom: 40px; width: 260px; padding: 14px 16px; border-radius: var(--nm-r); border-left: 4px solid var(--nm-dark); background: #fff; color: var(--nm-ink); }
.nm-tag strong { display: block; font: 800 17px/1.3 var(--nm-font-h); text-transform: uppercase; color: var(--nm-dark); }
.nm-tag span { display: block; font-size: 13px; }
.nm-tag--l { left: 20px; }
.nm-tag--r { right: 20px; }
.nm-tag--hl { background: var(--nm-accent); border-left-color: var(--nm-dark); }
.nm-tag--hl strong, .nm-tag--hl span { color: #fff; }
.nm-why__img .nm-tag--l { bottom: 20px; left: 20px; }

/* thẻ giá + dịch vụ + bài viết */
.nm-card, .nm-svc, .nm-post, .nm-step, .nm-rv { background: #fff; border: 1px solid var(--nm-line); border-radius: var(--nm-r); overflow: hidden; transition: border-color .18s; }
.nm-card:hover, .nm-svc:hover, .nm-post:hover { border-color: var(--nm-dark); }
.nm-card { display: flex; flex-direction: column; }
.nm-card__img { background: var(--nm-soft); overflow: hidden; }
.nm-card__img img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.nm-card__body { flex: 1; padding: 18px 18px 0; }
.nm-card h3 { font-size: 20px; text-transform: uppercase; margin-bottom: 6px; }
.nm-card__for { margin: 0 0 4px; font-size: 14px; }
.nm-card__unit { margin: 0 0 14px; font-size: 13.5px; color: var(--nm-mut); }
.nm-card__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; margin: 0; padding: 12px 0 0; border-top: 1px dashed var(--nm-line); }
.nm-card__price strong { font: 800 26px/1 var(--nm-font-h); color: var(--nm-dark); font-variant-numeric: tabular-nums; }
.nm-card__price .nm-price-ask { font-size: 18px; }
.nm-card__price span { font-size: 13px; color: var(--nm-mut); }
.nm-card__btn { margin: 16px 18px 18px; }
.nm-commit { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.nm-commit__i { display: flex; gap: 14px; padding: 18px; border-radius: var(--nm-r); border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .06); }
.nm-commit__ic { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: var(--nm-r); background: var(--nm-accent); color: #fff; }
.nm-commit h3 { font-size: 17px; text-transform: uppercase; margin-bottom: 4px; }
.nm-commit p { margin: 0; font-size: 14px; color: rgba(255, 255, 255, .8); line-height: 1.55; }
.nm-svc { display: grid; grid-template-columns: 5fr 7fr; }
.nm-svc__img { display: block; height: 100%; min-height: 220px; background: var(--nm-soft); }
.nm-svc__img img { width: 100%; height: 100%; object-fit: cover; }
.nm-svc__body { padding: 20px 22px; display: flex; flex-direction: column; }
.nm-svc h3 { font-size: 20px; text-transform: uppercase; margin-bottom: 8px; }
.nm-svc p { margin: 0 0 12px; font-size: 14.5px; color: var(--nm-mut); line-height: 1.6; flex: 1; }
.nm-why { display: grid; grid-template-columns: 1fr 1fr; gap: var(--nm-s5); align-items: center; }
.nm-why__img { position: relative; border-radius: var(--nm-r); overflow: hidden; }
.nm-why__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.nm-ticks { margin: 0 0 24px; padding: 0; list-style: none; }
.nm-ticks li { position: relative; margin: 0 0 12px; padding-left: 34px; font-size: 15.5px; color: #2e3047; }
.nm-ticks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 6px; background: var(--nm-accent); }
.nm-ticks li::after { content: ""; position: absolute; left: 6px; top: 9px; width: 10px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }
.nm-ticks strong { color: var(--nm-dark); }
.nm-step { padding: 24px 20px; border-top: 4px solid var(--nm-accent); }
.nm-step__ic { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 14px; border-radius: var(--nm-r); background: var(--nm-soft); border: 1px solid var(--nm-line); color: var(--nm-accent); }
.nm-step__n { margin: 0 0 4px; font: 700 14px/1 var(--nm-font-h); letter-spacing: .08em; text-transform: uppercase; color: var(--nm-accent); }
.nm-step h3 { font-size: 19px; text-transform: uppercase; margin-bottom: 6px; }
.nm-step p:last-child { margin: 0; font-size: 14.5px; color: var(--nm-mut); line-height: 1.6; }
.nm-rv { padding: 24px 22px 20px; display: flex; flex-direction: column; margin: 0; }
.nm-rv__stars { display: flex; gap: 2px; color: var(--nm-accent); margin-bottom: 12px; }
.nm-rv__stars .nm-i { fill: currentColor; }
.nm-rv blockquote { margin: 0 0 16px; flex: 1; font-size: 15px; color: var(--nm-ink); }
.nm-rv figcaption { display: flex; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid var(--nm-line); }
.nm-rv figcaption img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.nm-rv figcaption strong { display: block; font-size: 15px; color: var(--nm-dark); }
.nm-rv figcaption small { color: var(--nm-mut); font-size: 13px; }
.nm-faq { max-width: 860px; }
.nm-acc { background: #fff; border: 1px solid var(--nm-line); border-radius: var(--nm-r); margin-bottom: 10px; }
.nm-acc summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; font-weight: 700; color: var(--nm-dark); cursor: pointer; list-style: none; }
.nm-acc summary::-webkit-details-marker { display: none; }
.nm-acc[open] { border-left: 4px solid var(--nm-accent); }
.nm-acc[open] summary .nm-i { transform: rotate(180deg); }
.nm-acc__body { padding: 0 18px 16px; }
.nm-acc__body p { margin: 0; font-size: 15px; color: var(--nm-mut); }
.nm-post { display: flex; flex-direction: column; }
.nm-post__img { display: block; background: var(--nm-soft); overflow: hidden; }
.nm-post__img img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.nm-post__body { padding: 16px 18px 20px; }
.nm-post h3 { font-size: 16.5px; line-height: 1.4; margin-bottom: 4px; }
.nm-post h3 a:hover { color: var(--nm-accent); }
.nm-post time { display: block; margin-bottom: 8px; font-size: 13px; color: var(--nm-mut); }
.nm-post p { margin: 0; font-size: 14px; color: var(--nm-mut); line-height: 1.55; }

/* liên hệ + form */
.nm-quote__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--nm-s5); align-items: start; }
.nm-quote__txt ul { margin: 20px 0 0; padding: 0; list-style: none; }
.nm-quote__txt li { margin: 0 0 10px; font-size: 15.5px; color: rgba(255, 255, 255, .85); }
.nm-quote__txt li span { color: var(--nm-accent-soft); font-weight: 700; }
.nm-quote__txt a { color: #fff; }
.nm-form { background: #fff; color: var(--nm-ink); border-radius: var(--nm-r); border-top: 5px solid var(--nm-accent); padding: 28px 28px 22px; position: relative; }
.nm-site .nm-form h3 { color: var(--nm-dark); font-size: 22px; text-transform: uppercase; margin-bottom: 16px; }
.nm-field { display: block; margin-bottom: 14px; }
.nm-field > span { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 700; color: var(--nm-dark); }
.nm-field b { color: #b91c1c; }
.nm-field input, .nm-field select, .nm-field textarea { width: 100%; box-sizing: border-box; min-height: 46px; padding: 10px 14px; border: 1px solid var(--nm-line); border-radius: var(--nm-r); background: #fff; font: 500 15px var(--nm-font-b); color: var(--nm-ink); }
.nm-field textarea { resize: vertical; }
.nm-field input:focus, .nm-field select:focus, .nm-field textarea:focus { outline: 0; border-color: var(--nm-dark); box-shadow: 0 0 0 3px rgb(28 25 23 / .12); }
.nm-form__btn { width: 100%; }
.nm-form__note { margin: 12px 0 0; font-size: 13px; color: var(--nm-mut); text-align: center; }

/* trang con */
.nm-pagehead { background: var(--nm-dark); color: #fff; padding: 56px 0; }
.nm-site .nm-pagehead h1 { color: #fff; font-size: 40px; text-transform: uppercase; margin-bottom: 10px; }
.nm-pagehead p:not(.nm-eb) { margin: 0; max-width: 680px; color: rgba(255, 255, 255, .8); }
.nm-detail { display: grid; grid-template-columns: 1fr 1fr; gap: var(--nm-s5); align-items: center; }
.nm-detail--flip .nm-detail__img { order: 2; }
.nm-detail__img img { width: 100%; border-radius: var(--nm-r); aspect-ratio: 4 / 3; object-fit: cover; }
.nm-detail__txt .nm-sub { margin-bottom: 16px; }
.nm-tbl-wrap { overflow-x: auto; margin-top: 16px; }
.nm-tbl { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--nm-line); border-radius: var(--nm-r); overflow: hidden; font-size: 15px; }
.nm-tbl th { background: var(--nm-dark); color: #fff; font-weight: 700; text-align: left; padding: 14px 16px; }
.nm-tbl td { padding: 13px 16px; border-top: 1px solid var(--nm-line); color: #2e3047; }
.nm-tbl tbody tr:nth-child(even) td { background: var(--nm-soft); }
.nm-tbl .nm-tbl__price { font-weight: 800; color: var(--nm-dark); white-space: nowrap; font-variant-numeric: tabular-nums; }
.nm-note { margin: 14px 0 0; font-size: 14px; color: var(--nm-mut); }

/* chân trang */
.nm-footer { background: var(--nm-dark-2); color: rgba(255, 255, 255, .72); font-size: 15px; }
.nm-footer__main { padding: 56px 0 40px; }
.nm-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; }
.nm-footer h3 { margin: 0 0 14px; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: #fff; }
.nm-footer ul { margin: 0; padding: 0; list-style: none; }
.nm-footer li { margin: 0 0 9px; }
.nm-footer a:hover { color: #fff; }
.nm-footer__brand { font: 800 20px/1.2 var(--nm-font-h); color: #fff; text-transform: uppercase; }
.nm-footer__logo { margin-bottom: 12px; }
.nm-footer__logo img { max-height: 52px; width: auto; }
.nm-footer p { margin: 0; max-width: 340px; }
.nm-footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.nm-footer__contact .nm-i { margin-top: 3px; color: var(--nm-accent-soft); }
.nm-footer__soc { display: flex; gap: 10px; margin-top: 16px; }
.nm-footer__soc a { display: grid; place-items: center; min-width: 38px; height: 38px; padding: 0 10px; border-radius: var(--nm-r); border: 1px solid rgba(255, 255, 255, .22); color: #fff; font-weight: 700; font-size: 13px; }
.nm-footer__soc a:hover { background: var(--nm-accent); border-color: var(--nm-accent); }
.nm-footer__bar { background: #0a0908; padding: 16px 0; font-size: 13.5px; }
.nm-mbar { display: none; }

/* ===== Trang nội dung mặc định của theme cha ===== */
.nm-site main .prose, .nm-site main article { font-family: var(--nm-font-b); }

/* ===== Khổ nhỏ ===== */
@media (max-width: 1100px) {
	.nm-menu a { padding: 10px 9px; }
	.nm-hotline__t small { display: none; }
	.nm-grid--4, .nm-commit { grid-template-columns: repeat(2, 1fr); }
	.nm-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 849px) {
	.nm-header__in { height: 66px; gap: 12px; }
	.nm-nav, .nm-hotline, .nm-header__cta { display: none; }
	.nm-burger, .nm-mcall { display: grid; place-items: center; width: 42px; height: 42px; border: 0; background: transparent; color: var(--nm-dark); }
	.nm-mcall { color: #fff; background: var(--nm-accent); border-radius: 50%; width: 38px; height: 38px; }
	.nm-logo { flex: 1; justify-content: center; }
	.nm-header__right { margin-left: 0; }
	.nm-site .nm-hero__h { font-size: 38px; }
	.nm-h2 { font-size: 30px; }
	.nm-tag { display: none; }
	.nm-grid--2, .nm-grid--3, .nm-why, .nm-detail, .nm-quote__grid { grid-template-columns: 1fr; }
	.nm-svc { grid-template-columns: 1fr; }
	.nm-svc__img { min-height: 0; aspect-ratio: 16 / 9; }
	.nm-detail--flip .nm-detail__img { order: 0; }
	.nm-sec { padding: 40px 0; }
	.nm-site .nm-pagehead h1 { font-size: 30px; }
	body.nm-site { padding-bottom: 64px; }
	.nm-mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: #fff; border-top: 1px solid var(--nm-line); padding-bottom: env(safe-area-inset-bottom); }
	.nm-mbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 8px 2px; font-size: 11.5px; font-weight: 700; color: var(--nm-dark); }
	.nm-mbar a.is-main { color: var(--nm-accent); }
	.nm-zalo-ic { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; background: #0068ff; color: #fff; font: 800 12px/1 var(--nm-font-h); }
}
@media (max-width: 549px) {
	.nm-hero__in { min-height: 520px; }
	.nm-site .nm-hero__h { font-size: 32px; }
	.nm-grid--4, .nm-commit, .nm-footer__grid { grid-template-columns: 1fr; }
	.nm-rv-row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 -20px; padding: 0 20px 6px; }
	.nm-rv-row .nm-rv { flex: 0 0 86%; scroll-snap-align: start; }
	.nm-form { padding: 22px 18px 18px; }
	.nm-btn { white-space: normal; text-align: center; }
	.nm-hero__btns .nm-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }


/* ===== Logo mũi phay CNC ===== */
.nm-logo-text { display: inline-flex; align-items: center; gap: 10px; --lm-tile: var(--nm-dark); --lm-bit: #fff; --lm-cut: var(--nm-accent); --lm-chip: var(--nm-hl); }
.nm-lm { display: block; flex: none; }
.nm-lm__t { fill: var(--lm-tile); }
.nm-lm__b { fill: var(--lm-bit); }
.nm-lm__f { stroke: var(--lm-tile); stroke-width: 2; fill: none; }
.nm-lm__c { stroke: var(--lm-cut); stroke-width: 3; stroke-linecap: round; fill: none; }
.nm-lm__d { fill: var(--lm-chip); }
.nm-logo-name { display: flex; flex-direction: column; line-height: 1.05; white-space: nowrap; }
.nm-logo-name small { font: 700 11px/1 var(--nm-font-b); letter-spacing: .22em; text-transform: uppercase; color: var(--nm-accent); margin-bottom: 3px; }
.nm-logo-name strong { font: 800 19px/1 var(--nm-font-h); letter-spacing: .01em; text-transform: uppercase; color: var(--nm-dark); }
.nm-logo-text--foot { --lm-tile: #fff; --lm-bit: var(--nm-dark); --lm-cut: var(--nm-accent-soft); --lm-chip: var(--nm-accent); }
.nm-logo-text--foot .nm-logo-name small { color: var(--nm-accent-soft); }
.nm-logo-text--foot .nm-logo-name strong { color: #fff; }

/* ===== Menu một dòng ===== */
.nm-nav { flex: 1; min-width: 0; }
.nm-menu { justify-content: center; flex-wrap: nowrap; }
.nm-menu a { white-space: nowrap; }
.nm-header__right { gap: 10px; }
.nm-header__cta { padding: 0 18px; font-size: 14px; }
@media (max-width: 1280px) {
	.nm-header__in { gap: 14px; }
	.nm-menu a { padding: 10px 9px; font-size: 14px; }
	.nm-hotline__t small { display: none; }
	.nm-header__cta { padding: 0 14px; }
}
@media (max-width: 1100px) {
	.nm-hotline__t { display: none; }
	.nm-logo-name strong { font-size: 17px; }
}

/* ===== Nút Gọi + Zalo nổi (máy tính) ===== */
.nm-fabs { position: fixed; right: 20px; bottom: 24px; z-index: 80; display: flex; flex-direction: column; gap: 12px; }
.nm-fab { position: relative; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; color: #fff; box-shadow: 0 6px 16px rgba(15, 23, 42, .22); transition: transform .15s; }
.nm-fab:hover { transform: scale(1.06); }
.nm-fab .nm-i, .nm-fab b { position: relative; z-index: 1; }
.nm-fab b { font: 800 13px/1 var(--nm-font-h); letter-spacing: -.02em; }
.nm-fab--call, .nm-fab--call .nm-fab__ping { background: #16a34a; }
.nm-fab--zalo, .nm-fab--zalo .nm-fab__ping { background: #0068ff; }
.nm-fab__ping { position: absolute; inset: 0; border-radius: 50%; opacity: .5; animation: nm-ping 2.2s cubic-bezier(0, 0, .2, 1) infinite; }
@keyframes nm-ping { 0% { transform: scale(1); opacity: .5; } 75%, 100% { transform: scale(1.8); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .nm-fab__ping { animation: none; display: none; } }
@media (max-width: 849px) { .nm-fabs { display: none; } }

/* ===== Điện thoại: 2 cột, chữ nhỏ hơn, thanh dưới gọn ===== */
@media (max-width: 849px) {
	.nm-site { font-size: 15px; }
	.nm-logo { flex: 1; justify-content: center; }
	.nm-logo-text { gap: 8px; }
	.nm-logo-text .nm-lm { width: 34px; height: 34px; }
	.nm-logo-name small { font-size: 9.5px; margin-bottom: 2px; }
	.nm-logo-name strong { font-size: 15px; }
	.nm-grid--4, .nm-commit, .nm-grid--2 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
	.nm-grid--3 { grid-template-columns: 1fr; gap: 12px; }
	.nm-footer__grid { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
	.nm-footer__col:first-child { grid-column: 1 / -1; }
	.nm-sec { padding: 32px 0; }
	.nm-sec--tight { padding: 20px 0; }
	.nm-head { margin-bottom: 16px; gap: 12px; }
	.nm-head__act { width: 100%; }
	.nm-head__act .nm-btn { min-height: 40px; width: 100%; }
	.nm-eb { font-size: 11.5px; margin-bottom: 8px; }
	.nm-site .nm-h2 { font-size: 24px; margin-bottom: 8px; }
	.nm-site .nm-h2--s { font-size: 22px; }
	.nm-sub { font-size: 14px; }
	.nm-site .nm-hero__h { font-size: 29px; margin-bottom: 12px; }
	.nm-hero__p { font-size: 14.5px; margin-bottom: 20px; }
	.nm-hero__in { min-height: 460px; padding-top: 40px; padding-bottom: 40px; }
	.nm-pill { font-size: 11px; padding: 5px 10px; margin-bottom: 14px; }
	.nm-btn { min-height: 42px; padding: 0 16px; font-size: 14px; }
	.nm-card__body { padding: 12px 12px 0; }
	.nm-card h3 { font-size: 14.5px; line-height: 1.25; }
	.nm-card__for, .nm-card__unit { font-size: 12px; margin-bottom: 6px; }
	.nm-card__price { padding-top: 8px; }
	.nm-card__price strong { font-size: 17px; }
	.nm-card__price .nm-price-ask { font-size: 14px; }
	.nm-card__price span { font-size: 11.5px; }
	.nm-card__btn { margin: 10px 12px 12px; min-height: 38px; font-size: 13px; }
	.nm-commit__i { flex-direction: column; gap: 8px; padding: 12px; }
	.nm-commit__ic { width: 36px; height: 36px; }
	.nm-commit__ic .nm-i { width: 20px; height: 20px; }
	.nm-commit h3 { font-size: 13.5px; }
	.nm-commit p { font-size: 12.5px; }
	.nm-svc { grid-template-columns: 1fr; }
	.nm-svc__img { min-height: 0; aspect-ratio: 4 / 3; }
	.nm-svc__body { padding: 12px; }
	.nm-svc h3 { font-size: 14.5px; margin-bottom: 4px; }
	.nm-svc p { font-size: 12.5px; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
	.nm-link { font-size: 13px; }
	.nm-post__body { padding: 10px 12px 14px; }
	.nm-post h3 { font-size: 13.5px; }
	.nm-post time { font-size: 11.5px; margin-bottom: 0; }
	.nm-post p { display: none; }
	.nm-step { padding: 16px 14px; }
	.nm-step h3 { font-size: 16px; }
	.nm-step p:last-child { font-size: 13.5px; }
	.nm-ticks li { font-size: 14px; }
	.nm-acc summary { padding: 13px 14px; font-size: 14.5px; }
	.nm-acc__body p { font-size: 14px; }
	.nm-form { padding: 20px 16px 16px; }
	.nm-site .nm-form h3 { font-size: 18px; }
	.nm-quote__txt li { font-size: 14.5px; }
	.nm-tbl { font-size: 13.5px; }
	.nm-tbl th, .nm-tbl td { padding: 10px 12px; }
	.nm-pagehead { padding: 36px 0; }
	.nm-site .nm-pagehead h1 { font-size: 26px; }

	/* thanh liên hệ dưới: thấp, chữ nhỏ */
	body.nm-site { padding-bottom: 46px; }
	.nm-mbar { box-shadow: 0 -1px 0 var(--nm-line); }
	.nm-mbar a { flex-direction: column; gap: 2px; padding: 0; height: 42px; font-size: 10px; line-height: 1; justify-content: center; }
	.nm-mbar a.is-main { background: var(--nm-accent); color: #fff; }
	.nm-zalo-ic { width: 18px; height: 18px; font-size: 11px; border-radius: 5px; }
}
@media (max-width: 549px) {
	.nm-wrap { padding: 0 14px; }
	.nm-rv-row { margin: 0 -14px; padding: 0 14px 6px; }
	.nm-grid--4 { grid-template-columns: repeat(2, 1fr); }
	.nm-footer__main { padding: 36px 0 24px; }
	.nm-footer { font-size: 14px; }
}


/* ===== Bài đọc (trang nội dung thường, bài Cẩm nang, mô tả danh mục) ===== */
.nm-prose, .nm-site .hdnt-content { font-size: 16.5px; line-height: 1.8; color: #2e3047; overflow-wrap: break-word; }
.nm-prose { max-width: 820px; }
.nm-prose > :first-child, .nm-site .hdnt-content > :first-child { margin-top: 0; }
.nm-prose h2, .nm-site .hdnt-content h2 { margin: 2.2em 0 .6em; font-size: 28px; line-height: 1.25; padding-left: 14px; border-left: 4px solid var(--nm-accent); }
.nm-prose h3, .nm-site .hdnt-content h3 { margin: 1.8em 0 .5em; font-size: 21px; line-height: 1.3; }
.nm-prose h4, .nm-site .hdnt-content h4 { margin: 1.5em 0 .4em; font-size: 17px; }
.nm-prose p, .nm-site .hdnt-content p { margin: 0 0 1.1em; }
.nm-prose ul, .nm-prose ol, .nm-site .hdnt-content ul, .nm-site .hdnt-content ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.nm-prose ul, .nm-site .hdnt-content ul { list-style: disc; }
.nm-prose ol, .nm-site .hdnt-content ol { list-style: decimal; }
.nm-prose li, .nm-site .hdnt-content li { margin: 0 0 .45em; padding-left: .2em; }
.nm-prose li::marker, .nm-site .hdnt-content li::marker { color: var(--nm-accent); }
.nm-prose a, .nm-site .hdnt-content a { color: var(--nm-accent); text-decoration: underline; text-underline-offset: 3px; }
.nm-prose a:hover, .nm-site .hdnt-content a:hover { color: var(--nm-dark); }
.nm-prose strong, .nm-site .hdnt-content strong { color: var(--nm-dark); }
.nm-prose blockquote, .nm-site .hdnt-content blockquote { margin: 1.6em 0; padding: 14px 18px; border-left: 4px solid var(--nm-accent); background: var(--nm-soft); border-radius: 0 var(--nm-r) var(--nm-r) 0; }
.nm-prose blockquote p:last-child, .nm-site .hdnt-content blockquote p:last-child { margin-bottom: 0; }
.nm-prose hr, .nm-site .hdnt-content hr { margin: 2em 0; border: 0; border-top: 1px solid var(--nm-line); }
.nm-prose img, .nm-site .hdnt-content img { max-width: 100%; height: auto; border-radius: var(--nm-r); }
.nm-prose figure, .nm-site .hdnt-content figure { margin: 1.6em 0; }
.nm-prose figure img, .nm-site .hdnt-content figure img { display: block; width: 100%; }
.nm-prose figcaption, .nm-site .hdnt-content figcaption { margin-top: 8px; font-size: 13.5px; color: var(--nm-mut); text-align: center; }
.nm-prose table, .nm-site .hdnt-content table { display: block; width: 100%; max-width: 100%; margin: 1.6em 0; overflow-x: auto; border-collapse: separate; border-spacing: 0; border: 1px solid var(--nm-line); border-radius: var(--nm-r); font-size: 15px; line-height: 1.55; }
.nm-prose th, .nm-site .hdnt-content th { background: var(--nm-dark); color: #fff; font-weight: 700; text-align: left; padding: 12px 14px; white-space: nowrap; }
.nm-prose td, .nm-site .hdnt-content td { padding: 11px 14px; border-top: 1px solid var(--nm-line); min-width: 110px; }
.nm-prose tbody tr:nth-child(even) td, .nm-site .hdnt-content tbody tr:nth-child(even) td { background: var(--nm-soft); }
.nm-site .hdnt-content .wp-block-image, .nm-site .hdnt-content .alignwide { max-width: 100%; }
.nm-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 13.5px; color: rgba(255, 255, 255, .7); }
.nm-crumb a:hover { color: #fff; }
.nm-crumb b { font-weight: 600; color: #fff; }
.nm-catcard { display: flex; flex-direction: column; }
.nm-catcard .nm-card__body { padding: 16px 16px 18px; }
.nm-catcard h3 { margin: 0; }
.nm-cat .navigation.pagination { margin-top: 28px; text-align: center; }
.nm-cat .page-numbers { display: inline-grid; place-items: center; min-width: 38px; height: 38px; margin: 0 3px; border: 1px solid var(--nm-line); border-radius: var(--nm-r); }
.nm-cat .page-numbers.current { background: var(--nm-dark); border-color: var(--nm-dark); color: #fff; }
@media (max-width: 849px) {
	.nm-prose, .nm-site .hdnt-content { font-size: 15.5px; line-height: 1.75; }
	.nm-prose h2, .nm-site .hdnt-content h2 { font-size: 22px; margin-top: 1.9em; }
	.nm-prose h3, .nm-site .hdnt-content h3 { font-size: 18px; }
	.nm-prose table, .nm-site .hdnt-content table { font-size: 13.5px; }
}

/* Banner không có ảnh: nền tối có lưới mảnh gợi đường cắt CNC */
.nm-hero--plain { background-color: var(--nm-dark-2); 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: 48px 48px; }
.nm-hero--plain .nm-hero__ov { display: none; }
.nm-hero--plain .nm-hero__in { min-height: min(var(--nm-hero-h), 520px); }
