/*
Theme Name: Mực In Tây Hồ 2026
Theme URI: https://mucintayho.com/
Description: Theme con Flatsome cho mucintayho.com, dựng theo demo giao diện v10 đã duyệt (so-do/demo-doanh-nghiep-khung.html): bảng màu xanh lá theo lựa chọn của Giám đốc (#77), đầu trang 3 tầng, trang bài khung 1600px (#56), trang chuyên mục, chân trang, nút Gọi/Zalo.
Author: Phòng dự án Mực In Tây Hồ
Template: flatsome
Version: 0.3.18
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: mucintayho-2026
License: GPL-2.0-or-later
*/

/* ==========================================================================
   Quy ước: mọi selector có tiền tố .mth- hoặc nằm trong body.mth,
   để không đè CSS của Flatsome và WooCommerce.
   !important chỉ dùng khi phải thắng style nội tuyến của nội dung cũ, !important của Flatsome,
   thuộc tính [hidden], JS dính của Flatsome, hoặc trong @media print / giảm chuyển động.
   ========================================================================== */

/* ---------- 1. Token màu (0.2.0: Giám đốc chọn bảng màu, chữ theo ugreenvn.com, sổ 18 #77) ----------
   Xanh nguồn #00a35c chỉ dùng cho viền, biểu tượng, mảng trang trí (chữ trắng trên nó 3,28:1).
   Nền nút #00854d (chữ trắng 4,71:1); chữ, link #007d48 (trên nền #f2f4f7 vẫn từ 4,5:1). */
body.mth {
	--mth-brand: #00a35c;
	--mth-btn: #00854d;
	--mth-blue: #007d48;
	--mth-blue2: #00643a;
	--mth-navy: #1f2328;
	--mth-navy2: #007d48;
	--mth-soft: #e6f6ee;
	--mth-sky: #f2f4f7;
	--mth-line: #e3e7eb;
	--mth-fg: #1f2328;
	--mth-muted: #5a6670;
	--mth-white: #fff;
	--mth-zalo: #0062f0;
	--mth-gold: #0062f0;
	--mth-goldtext: #007d48;
	--mth-goldlight: #5fd39b;
	--mth-red: #d80018;
	--mth-field: #7a8690;
	--mth-tint: #eaf7f1;
	--mth-tint2: #d6efe2;
	--mth-ink: #1f2328;
	--mth-dark: #14211b;
	--mth-dark2: #26362e;
	/* Phông hệ thống có đủ dấu tiếng Việt, không tải phông ngoài. Tiêu đề chân Georgia/Playfair hỏng dấu nên bỏ;
	   giữ tên --mth-serif để đổi lại một chỗ khi có phông chân tự lưu đủ dấu. */
	--mth-sans: "Segoe UI", Roboto, system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
	--mth-serif: var(--mth-sans);
	--mth-w: 1600px;
}

/* Dock điện thoại cao 61px (chưa tính vùng an toàn); chừa 72px để không che dòng cuối và ô đang focus. */
body.mth.mth-has-dock { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
@media (max-width: 1023.98px) { html:has(body.mth-has-dock) { scroll-padding-bottom: 80px; } }
@media (min-width: 1024px) { body.mth.mth-has-dock { padding-bottom: 0; } }
/* Nền html của Flatsome là xám đậm (#5b5b5b), lộ ở vùng chừa cho dock và ở trang ngắn: đổi về màu chân trang. */
html:has(body.mth) { background-color: #f2f4f7; }
body.mth { background-color: #14211b; min-height: 100vh; }
body.mth #wrapper, body.mth #main:not(.dark) { background-color: #f2f4f7; }

.mth-page { background: var(--mth-sky); color: var(--mth-fg); font-family: var(--mth-sans); font-size: 16px; line-height: 1.6; }
.mth-page *, .mth-hdr *, .mth-ft *, .mth-dock *, .mth-float * { box-sizing: border-box; }
.mth-page a, .mth-hdr a, .mth-ft a { color: var(--mth-blue); }
.mth-page img, .mth-hdr img, .mth-ft img { max-width: 100%; height: auto; }
.mth-page :focus-visible, .mth-hdr :focus-visible, .mth-ft :focus-visible, .mth-dock :focus-visible, .mth-float :focus-visible { outline: 3px solid var(--mth-gold); outline-offset: 2px; border-radius: 4px; }
.mth-page h1, .mth-page h2, .mth-page h3, .mth-page h4, .mth-page h5, .mth-page h6 { font-family: var(--mth-sans); }
.mth-entry [id] { scroll-margin-top: 72px; }
html:has(body.mth-custom-header) { scroll-padding-top: 66px; }
body.mth-custom-header .mth-entry [id] { scroll-margin-top: 6px; }

.mth-w { max-width: var(--mth-w); margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.mth-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Nút */
.mth-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; margin: 0; border-radius: 8px; font-family: inherit; font-weight: 700; font-size: 15px; line-height: 1.2; letter-spacing: 0; text-transform: none; text-decoration: none; border: 0; cursor: pointer; white-space: nowrap; box-shadow: none; }
.mth-page a.mth-btn, .mth-hdr a.mth-btn { text-decoration: none; }
.mth-btn.mth-btn--blue { background: var(--mth-btn); color: #fff; }
.mth-btn.mth-btn--blue:hover { background: var(--mth-blue2); color: #fff; }
.mth-btn.mth-btn--zalo { background: var(--mth-zalo); color: #fff; }
.mth-btn.mth-btn--line { background: transparent; color: var(--mth-blue); border: 1.5px solid var(--mth-blue); }
.mth-btn.mth-btn--out { background: #fff; color: var(--mth-navy); border: 1.5px solid var(--mth-navy); }
.mth-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.mth-hotline { font-weight: 700; color: var(--mth-red); text-decoration: none; font-variant-numeric: tabular-nums; }

/* ---------- 2. Đầu trang 3 tầng ---------- */
/* Vô hiệu hiệu ứng dính của Flatsome khi dùng đầu trang của theme (menu tự dính bằng JS). */
body.mth-custom-header #header .header-wrapper.stuck { position: relative !important; top: auto !important; box-shadow: none !important; animation: none !important; }
body.mth-custom-header #header .header-wrapper { background: #fff; }

.mth-hdr { font-family: var(--mth-sans); color: var(--mth-fg); line-height: 1.5; }
.mth-bar { background: var(--mth-tint); color: #5a6670; font-size: 12.5px; border-bottom: 1px solid var(--mth-line); }
.mth-bar .mth-w { display: flex; justify-content: flex-end; gap: 10px; padding-top: 6px; padding-bottom: 6px; }
.mth-hdr .mth-bar a { color: var(--mth-navy); text-decoration: none; font-weight: 600; }
.mth-bar__hs, .mth-bar__addr { display: none; }
@media (min-width: 768px) { .mth-bar .mth-w { justify-content: space-between; } .mth-bar__hs, .mth-bar__addr { display: inline; } }

.mth-hd { background: #fff; }
.mth-hd .mth-w { display: flex; align-items: center; gap: 18px; min-height: 76px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.mth-hdr a.mth-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--mth-navy); }
.mth-logo__mk { width: 42px; height: 42px; border-radius: 8px; background: var(--mth-btn); color: #fff; display: flex; align-items: center; justify-content: center; }
.mth-logo__img { max-height: 56px; width: auto; }
.mth-logo b { font-family: var(--mth-serif); font-size: 22px; font-weight: 700; line-height: 1.1; display: block; }
.mth-logo small { display: block; font-size: 12px; color: var(--mth-muted); letter-spacing: .04em; text-transform: uppercase; }
@media (max-width: 767.98px) { .mth-bar { display: none; } .mth-hd .mth-w { gap: 10px; min-height: 0; } }
@media (max-width: 359.98px) { .mth-logo small { display: none; } }
@media (max-width: 399.98px) { .mth-hd--2 .mth-logo small { display: none; } }

.mth-srch { order: 3; flex: 1 1 100%; display: flex; margin: 0; }
@media (min-width: 900px) { .mth-srch { order: 0; flex: 1 1 auto; } }
.mth-srch input[type="search"] { flex: 1; min-width: 0; height: 48px; margin: 0; border: 2px solid var(--mth-brand); border-right: 0; border-radius: 8px 0 0 8px; padding: 0 16px; font: inherit; font-size: 15px; box-shadow: none; background: #fff; color: var(--mth-fg); }
.mth-srch button { height: 48px; min-height: 48px; margin: 0; padding: 0 20px; border: 0; border-radius: 0 8px 8px 0; background: var(--mth-btn); color: #fff; font: inherit; font-weight: 700; letter-spacing: 0; text-transform: none; line-height: 1; cursor: pointer; }

.mth-hdr a.mth-hot { display: none; flex-direction: column; line-height: 1.15; text-decoration: none; }
.mth-hot small { font-size: 12px; color: var(--mth-muted); }
.mth-hot strong { font-size: 20px; color: var(--mth-navy); font-variant-numeric: tabular-nums; }
@media (min-width: 1024px) { .mth-hdr a.mth-hot { display: flex; } }
.mth-hdr a.mth-ib { margin-left: auto; width: 44px; height: 44px; border-radius: 8px; border: 1px solid var(--mth-line); background: #fff; color: var(--mth-navy); display: inline-flex; align-items: center; justify-content: center; }
@media (min-width: 1024px) { .mth-hdr a.mth-ib { display: none; } }
.mth-hdr a.mth-cart { margin-left: auto; min-width: 44px; height: 44px; border-radius: 8px; border: 1px solid var(--mth-line); background: #fff; color: var(--mth-navy); display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; font-weight: 700; font-size: 14.5px; white-space: nowrap; }
.mth-hdr a.mth-ib + a.mth-cart { margin-left: 0; }
.mth-hdr a.mth-cart:hover { border-color: var(--mth-blue); color: var(--mth-blue); }
.mth-cart__t { display: none; }
@media (min-width: 1180px) { .mth-hdr a.mth-cart { margin-left: 0; padding: 0 14px; } .mth-cart__t { display: inline; } }
/* Ô tìm: vòng focus rõ (Flatsome đặt outline 0 cho input). */
.mth-srch input[type="search"]:focus-visible, .mth-finder input[type="search"]:focus-visible { outline: 3px solid var(--mth-gold) !important; outline-offset: 1px; }

/* Thanh menu */
.mth-menu { background: #fff; color: var(--mth-navy); border-top: 1px solid var(--mth-line); border-bottom: 1px solid var(--mth-line); box-shadow: 0 2px 8px rgba(16, 24, 40, .06); position: relative; z-index: 40; }
.mth-menu.is-fixed { position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 99; }
@media (min-width: 783px) { body.mth.admin-bar .mth-menu.is-fixed { top: 32px; } }
.mth-menu__in { display: flex; align-items: center; gap: 4px; }
.mth-menu__cat { display: flex; align-items: center; gap: 8px; background: var(--mth-btn); color: #fff; padding: 0 16px; min-height: 48px; margin: 0; border: 0; border-radius: 0; font: inherit; font-weight: 700; letter-spacing: 0; text-transform: none; line-height: 1; cursor: pointer; white-space: nowrap; }
.mth-menu__links { display: none; align-items: center; }
.mth-hdr .mth-menu__l { color: var(--mth-navy); text-decoration: none; font-weight: 600; font-size: 15px; padding: 0 10px; min-height: 48px; display: flex; align-items: center; white-space: nowrap; }
.mth-hdr .mth-menu__l:hover { background: var(--mth-tint); }
.mth-hdr .mth-menu__l[aria-current="page"] { color: var(--mth-blue); }
.mth-hdr a.mth-menu__hot { display: none; color: var(--mth-red); text-decoration: none; font-weight: 700; margin-left: auto; margin-right: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mth-hdr a.mth-menu__q { margin-left: auto; white-space: nowrap; background: var(--mth-btn); color: #fff; font-weight: 700; border-radius: 8px; padding: 0 14px; min-height: 44px; display: flex; align-items: center; text-decoration: none; font-size: 14.5px; }
/* Zalo trên thanh menu: thay nút nổi ở màn 1280–1759px (nút nổi ẩn để không đè nội dung). */
.mth-hdr a.mth-menu__zalo { display: none; }
@media (min-width: 1280px) and (max-width: 1759.98px) { .mth-hdr a.mth-menu__zalo { display: flex; align-items: center; min-height: 44px; padding: 0 12px; margin-right: 8px; border-radius: 8px; background: var(--mth-zalo); color: #fff; font-weight: 700; font-size: 14.5px; text-decoration: none; } }
/* Dưới 1024px: hai nút chia đôi bề ngang. Không có trang báo giá thì nút thứ hai là Gọi. */
.mth-hdr a.mth-menu__call { display: none; }
@media (max-width: 1023.98px) {
	.mth-hdr a.mth-menu__q--pc { display: none; }
	.mth-hdr a.mth-menu__call { display: flex; align-items: center; background: var(--mth-btn); color: #fff; font-weight: 700; text-decoration: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
	.mth-menu__in { gap: 8px; padding-top: 6px; padding-bottom: 6px; }
	.mth-menu__cat, .mth-hdr a.mth-menu__call, .mth-hdr a.mth-menu__q:not(.mth-menu__q--pc) { flex: 1 1 0; min-width: 0; min-height: 44px; margin-left: 0; justify-content: center; border-radius: 8px; padding: 0 10px; font-size: 14.5px; }
}
@media (min-width: 1024px) {
	.mth-hdr a.mth-menu__hot ~ a.mth-menu__q { margin-left: 0; }
	.mth-menu__links { display: flex; }
	.mth-hdr a.mth-menu__hot { display: block; }
	.mth-hdr .mth-menu__l { padding: 0 8px; font-size: 14.5px; }
	.mth-menu__cat { padding: 0 12px; }
}
@media (max-width: 359.98px) { .mth-menu__cat, .mth-hdr a.mth-menu__call { padding: 0 4px; font-size: 14px; } }
@media (min-width: 1024px) and (max-width: 1179.98px) {
	.mth-hdr .mth-menu__l { padding: 0 6px; font-size: 14px; }
	.mth-hdr a.mth-menu__hot { font-size: 14px; margin-right: 8px; }
	.mth-hdr a.mth-menu__q { padding: 0 10px; font-size: 14px; }
}
@media (min-width: 1180px) { .mth-hdr .mth-menu__l { padding: 0 14px; font-size: 15px; } }

/* Menu thả xuống (v10) */
.mth-dd { position: relative; display: flex; }
.mth-dd > .mth-menu__l svg { margin-left: 5px; opacity: .7; }
.mth-ddm { display: none; position: absolute; top: 100%; left: 0; min-width: 260px; background: #fff; border: 1px solid var(--mth-line); border-top: 3px solid var(--mth-blue); box-shadow: 0 12px 28px -12px rgba(16, 24, 40, .28); padding: 6px 0; z-index: 60; }
.mth-hdr .mth-ddm a { display: flex; align-items: center; min-height: 44px; padding: 0 16px; color: var(--mth-fg); text-decoration: none; font-size: 15px; white-space: nowrap; }
.mth-hdr .mth-ddm a:hover, .mth-hdr .mth-ddm a:focus-visible { background: var(--mth-tint); color: var(--mth-blue); }
.mth-dd:hover .mth-ddm, .mth-dd:focus-within .mth-ddm, .mth-dd.is-open .mth-ddm { display: block; }
.mth-dd.is-closed .mth-ddm { display: none; } /* Đã bấm Esc (mth.js). */

/* Ngăn kéo "Danh mục" (di động và máy tính) */
.mth-drawer { max-height: 70vh; overflow-y: auto; background: #fff; border-bottom: 1px solid var(--mth-line); box-shadow: 0 10px 20px -12px rgba(16, 24, 40, .28); }
.mth-drawer[hidden] { display: none !important; }
.mth-drawer__in { display: grid; gap: 0 24px; align-items: start; padding-top: 8px; padding-bottom: 8px; }
/* Từ 760px: cột báo, nhóm ngắn xếp nối nhau nên không hở mảng trống. */
@media (min-width: 760px) { .mth-drawer__in { display: block; columns: 3; column-gap: 24px; } }
.mth-drawer__g { display: grid; align-content: start; break-inside: avoid; }
.mth-hdr .mth-drawer__t, .mth-drawer p.mth-drawer__t { display: block; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--mth-muted); padding: 10px 0 4px; margin: 0; min-height: 0; border-bottom: 0; font-weight: 700; text-decoration: none; }
.mth-hdr .mth-drawer a:not(.mth-drawer__t) { display: flex; align-items: center; gap: 10px; min-height: 46px; color: var(--mth-fg); text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--mth-line); }
.mth-drawer a img { width: 32px; height: 32px; object-fit: contain; border: 1px solid var(--mth-line); border-radius: 6px; }
.mth-drawer :focus-visible { outline-color: var(--mth-navy); }

/* ---------- 3. Khối chung ---------- */
.mth-sec { padding-top: 44px; padding-bottom: 44px; }
.mth-white { background: #fff; }
.mth-shd { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; justify-content: space-between; margin-bottom: 20px; }
.mth-kk { font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--mth-blue); display: flex; align-items: center; gap: 10px; }
.mth-kk::before { content: ""; width: 28px; height: 2px; background: var(--mth-brand); }
.mth-page .mth-h2 { font-family: var(--mth-serif); font-weight: 700; font-size: clamp(24px, 2.4vw, 30px); line-height: 1.25; margin: 8px 0 0; color: var(--mth-navy); text-wrap: balance; }
.mth-page a.mth-more { font-weight: 700; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; white-space: nowrap; flex: none; }

/* ---------- 4. Trang chủ ---------- */
/* Dịch vụ đứng trước nhóm hàng trong mã (điện thoại, máy tính bảng); từ 1024px xếp lại thứ tự như demo. */
@media (min-width: 1024px) {
	.mth-page--svc1 { display: flex; flex-direction: column; }
	.mth-page--svc1 > * { order: 9; min-width: 0; }
	.mth-page--svc1 > .mth-top { order: 1; }
	.mth-page--svc1 > .mth-trust { order: 2; }
	.mth-page--svc1 > .mth-svcband { order: 3; }
	.mth-page--svc1 > .mth-catsec { order: 4; }
	.mth-page--svc1 > .mth-blkw { order: 5; }
	.mth-page--svc1 > .mth-o-kt { order: 7; }
	.mth-page--svc1 > .mth-o-content { order: 8; }
}
.mth-top { padding-top: 18px; padding-bottom: 18px; }
.mth-top__in { display: grid; gap: 16px; }
/* Số cột theo khối có thật: chỉ banner (1 cột), có danh mục, có khuyến mãi, có cả hai. */
.mth-top__in { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1080px) {
	.mth-top__in--side { grid-template-columns: 260px minmax(0, 1fr); }
	.mth-top__in--promo { grid-template-columns: minmax(0, 1fr) 320px; }
	.mth-top__in--side.mth-top__in--promo { grid-template-columns: 260px minmax(0, 1fr) 320px; }
}
.mth-side { display: none; background: #fff; border-radius: 8px; border: 1px solid var(--mth-line); overflow: hidden; align-self: start; }
@media (min-width: 1080px) { .mth-side { display: block; } }
.mth-side__h { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--mth-muted); padding: 14px 16px 6px; margin: 0; font-weight: 700; }
.mth-page .mth-side a { display: flex; align-items: center; gap: 10px; padding: 9px 16px; color: var(--mth-fg); text-decoration: none; font-size: 14.5px; font-weight: 600; }
.mth-page .mth-side a:hover { background: var(--mth-sky); color: var(--mth-blue); }
.mth-side a img { width: 30px; height: 30px; border-radius: 6px; object-fit: cover; border: 1px solid var(--mth-line); }

.mth-banner { position: relative; overflow: hidden; border-radius: 8px; background: linear-gradient(120deg, #e6f6ee, #f5faf8 65%, #e6f6ee); color: var(--mth-fg); border: 1px solid var(--mth-line); display: grid; }
@media (min-width: 760px) { .mth-banner { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; min-height: 360px; } }
.mth-banner__tx { position: relative; padding: 30px 28px; z-index: 1; }
.mth-banner__ey { font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--mth-blue); font-weight: 700; }
.mth-page .mth-banner h1 { font-family: var(--mth-serif); font-weight: 700; color: var(--mth-navy); font-size: clamp(28px, 3.6vw, 44px); line-height: 1.2; margin: 12px 0 0; text-wrap: balance; }
.mth-banner p { color: #3b444d; margin: 14px 0 22px; font-size: 16.5px; }
.mth-banner__art { display: none; align-self: end; padding: 0 12px; }
.mth-banner__art picture { display: block; }
.mth-banner__art img { width: 100%; height: auto; display: block; }
@media (min-width: 760px) { .mth-banner__art { display: block; } }
@media (min-width: 1080px) { .mth-banner__tx { padding: 36px 30px; } .mth-page .mth-banner h1 { font-size: 40px; } }
.mth-banner--noimg { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .mth-banner--noimg { min-height: 300px; } }
.mth-banner--noimg .mth-banner__tx > h1, .mth-banner--noimg .mth-banner__tx > p { max-width: 900px; }
@media (min-width: 1080px) { .mth-banner--noimg .mth-banner__tx { padding: 44px 48px; } }

.mth-promos { display: none; gap: 16px; }
@media (min-width: 760px) { .mth-promos { display: grid; grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .mth-promos { grid-template-columns: 1fr; align-content: start; } }
.mth-page a.mth-promo { position: relative; border-radius: 8px; overflow: hidden; background: #fff; border: 1px solid var(--mth-line); display: grid; grid-template-columns: minmax(0, 1fr) 104px; gap: 10px; align-items: center; padding: 16px; text-decoration: none; color: var(--mth-fg); min-height: 150px; }
.mth-promo__k { display: block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--mth-goldtext); }
.mth-promo b { display: block; font-family: var(--mth-serif); font-size: 19px; color: var(--mth-navy); line-height: 1.2; margin: 4px 0; }
.mth-promo > span > span:last-child { font-size: 13.5px; color: var(--mth-muted); }
.mth-promo img { width: 104px; height: 104px; object-fit: contain; }
.mth-page a.mth-promo--dark { background: var(--mth-btn); border-color: var(--mth-blue); color: #fff; }
.mth-promo--dark b { color: #fff; }
.mth-promo--dark .mth-promo__k { color: var(--mth-goldlight); }
.mth-promo--dark > span > span:last-child { color: #c6d1cb; }
.mth-promo--dark img { background: #fff; border-radius: 8px; }

.mth-trust { background: #fff; border-top: 1px solid var(--mth-line); border-bottom: 1px solid var(--mth-line); }
.mth-trust__in { display: grid; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 1024px) { .mth-trust__in { grid-template-columns: repeat(4, 1fr); } }
.mth-tr { display: flex; align-items: center; gap: 12px; padding: 16px 10px; }
.mth-tr i { width: 44px; height: 44px; border-radius: 50%; background: var(--mth-soft); display: flex; align-items: center; justify-content: center; color: var(--mth-blue); flex: none; font-style: normal; }
.mth-tr b { display: block; color: var(--mth-navy); font-size: 15px; }
.mth-tr span { font-size: 13px; color: var(--mth-muted); }

.mth-cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (min-width: 760px) { .mth-cats { grid-template-columns: repeat(6, 1fr); } }
@media (min-width: 1080px) { .mth-catsec { display: none; } }
.mth-page a.mth-ct { display: flex; flex-direction: column; align-items: center; gap: 10px; text-decoration: none; color: var(--mth-fg); font-weight: 600; font-size: 14.5px; text-align: center; }
.mth-ct__im { width: 100%; max-width: 130px; aspect-ratio: 1; border-radius: 50%; background: #fff; border: 1px solid var(--mth-line); overflow: hidden; display: flex; align-items: center; justify-content: center; transition: border-color .2s, box-shadow .2s; }
.mth-ct:hover .mth-ct__im { border-color: var(--mth-blue); box-shadow: 0 8px 22px -12px rgba(16, 24, 40, .28); }
.mth-page .mth-ct__im img { width: 78%; height: 78%; object-fit: contain; }
.mth-page a.mth-ct--txt { justify-content: center; min-height: 64px; padding: 10px; background: #fff; border: 1px solid var(--mth-line); border-radius: 8px; align-self: center; }

/* Lưới sản phẩm */
.mth-pg { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .mth-pg { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .mth-pg { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.mth-pc { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--mth-line); border-radius: 8px; overflow: hidden; color: var(--mth-fg); transition: box-shadow .2s, border-color .2s; min-width: 0; }
.mth-pc:hover { border-color: var(--mth-blue); box-shadow: 0 14px 30px -18px rgba(16, 24, 40, .28); }
.mth-page a.mth-pc__t { color: var(--mth-fg); text-decoration: none; }
.mth-pc__ph { aspect-ratio: 1; background: #fff; display: flex; align-items: center; justify-content: center; padding: 10px; border-bottom: 1px solid var(--mth-line); }
.mth-pc__ph img { width: 100%; height: 100%; object-fit: contain; }
.mth-pc__bd { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.mth-pc__br { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--mth-muted); }
.mth-pc__name { display: block; font-size: 14.5px; font-weight: 600; color: var(--mth-fg); line-height: 1.4; }
.mth-pc__cd { font-size: 12.5px; color: var(--mth-muted); }
.mth-pc__pr { margin-top: auto; font-size: 18px; font-weight: 700; color: var(--mth-red); font-variant-numeric: tabular-nums; }
.mth-page a.mth-pc__z { display: flex; align-items: center; justify-content: center; min-height: 44px; margin-top: auto; font-size: 14px; font-weight: 700; border-radius: 8px; background: var(--mth-zalo); color: #fff; text-decoration: none; }
.mth-pc__pr + a.mth-pc__z { margin-top: 8px; }

/* Hai cột mực / máy in */
.mth-two { display: grid; gap: 18px; }
@media (min-width: 980px) { .mth-two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.mth-panel { background: #fff; border: 1px solid var(--mth-line); border-radius: 8px; overflow: hidden; }
.mth-panel__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--mth-line); background: linear-gradient(90deg, var(--mth-soft), #fff); }
.mth-page .mth-panel__top h2 { font-family: var(--mth-serif); font-size: 22px; font-weight: 700; line-height: 1.25; color: var(--mth-navy); margin: 0; min-width: 0; width: auto; }
.mth-page .mth-panel__top a.mth-more { white-space: nowrap; flex: none; }
.mth-finder { display: flex; gap: 8px; padding: 14px 18px; margin: 0; border-bottom: 1px solid var(--mth-line); }
.mth-finder input[type="search"] { flex: 1; min-width: 0; height: 46px; margin: 0; border: 1.5px solid #7a8690; border-radius: 8px; padding: 0 12px; font: inherit; box-shadow: none; }
.mth-rows { display: grid; }
.mth-page a.mth-row { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--mth-line); text-decoration: none; color: var(--mth-fg); }
.mth-page a.mth-row:last-child { border-bottom: 0; }
.mth-page a.mth-row:hover { background: var(--mth-sky); }
.mth-row img { width: 76px; height: 76px; object-fit: contain; border: 1px solid var(--mth-line); border-radius: 8px; background: #fff; }
.mth-row__ph { width: 76px; height: 76px; border: 1px solid var(--mth-line); border-radius: 8px; background: var(--mth-tint); color: var(--mth-blue); display: flex; align-items: center; justify-content: center; }
.mth-pc__ph, .mth-ct__im { color: var(--mth-blue); }
.mth-pc__ph > svg { opacity: .55; }
.mth-page a.mth-promo--noimg { grid-template-columns: minmax(0, 1fr); }
.mth-row b { display: block; font-size: 15px; }
.mth-row small { display: block; color: var(--mth-muted); font-size: 13px; }
.mth-row__go { font-weight: 700; color: var(--mth-blue); font-size: 14px; white-space: nowrap; }

/* Dải dịch vụ */
.mth-svcband { background: var(--mth-tint); }
.mth-sv { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .mth-sv { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .mth-sv { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.mth-page a.mth-svc { background: #fff; border: 1px solid var(--mth-line); border-radius: 8px; overflow: hidden; text-decoration: none; color: var(--mth-fg); display: flex; flex-direction: column; box-shadow: 0 1px 3px rgba(16, 24, 40, .06); }
.mth-page a.mth-svc:hover { border-color: var(--mth-blue); }
.mth-svc__il { display: none; aspect-ratio: 16 / 10; align-items: center; justify-content: center; background: linear-gradient(160deg, #dff3e8, #f3fbf7); }
.mth-svc__il svg { width: 78%; height: auto; }
@media (min-width: 700px) { .mth-svc__il { display: flex; } }
.mth-svc__t { padding: 16px 18px 18px; display: grid; gap: 6px; }
.mth-svc__h { color: var(--mth-navy); font-family: var(--mth-serif); font-size: 21px; font-weight: 700; line-height: 1.25; }
.mth-svc__p { color: #5a6670; font-size: 14.5px; }
.mth-svc__go { color: var(--mth-blue); font-weight: 700; font-size: 14.5px; margin-top: 4px; }

/* Kiến thức trang chủ */
.mth-kb { display: grid; gap: 16px; }
@media (min-width: 620px) { .mth-kb { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.mth-page .mth-kb a { background: #fff; border: 1px solid var(--mth-line); border-radius: 8px; overflow: hidden; text-decoration: none; color: var(--mth-fg); display: flex; flex-direction: column; }
.mth-kb__il { aspect-ratio: 16 / 9; background: linear-gradient(135deg, #eef8f3, #d6efe2); color: var(--mth-blue); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.mth-kb__il img { width: 100%; height: 100%; object-fit: cover; }
.mth-kb__t { padding: 16px 18px 18px; display: grid; gap: 6px; }
.mth-kb small { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--mth-blue); }
.mth-kb b { font-family: var(--mth-serif); font-size: 19px; color: var(--mth-navy); line-height: 1.3; }

.mth-band__in { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }

/* ---------- 5. Breadcrumb ---------- */
.mth-crumb { font-size: 13.5px; color: var(--mth-muted); padding: 0 0 4px; line-height: 1.5; }
.mth-page .mth-crumb a { color: var(--mth-muted); text-decoration: none; }
.mth-page .mth-crumb a:hover { text-decoration: underline; }
.mth-crumb__sep { padding: 0 4px; }
.mth-crumb p, .mth-crumb nav { margin: 0; }
.mth-crumb .separator { padding: 0 4px; }
@media (max-width: 700px) { .mth-crumb [aria-current="page"], .mth-crumb .last { display: none; } .mth-crumb a:last-of-type + .mth-crumb__sep, .mth-crumb a:last-of-type + .separator { display: none; } }
/* Không ẩn .divider (WooCommerce): mục cuối ở đó là chữ trần, vẫn hiện sau dấu. */

/* ---------- 6. Bài viết (#56: khung 1600px, cột 9/3, H1 27px, H2 25.6px, H3 20px, thân 16px/1.6) ---------- */
.mth-post-w { padding-top: 34px; padding-bottom: 56px; }
.mth-postg { display: grid; gap: 0; }
@media (min-width: 1024px) { .mth-postg { grid-template-columns: minmax(0, 9fr) minmax(0, 3fr); align-items: start; } }
.mth-pa { min-width: 0; color: var(--mth-ink); }
@media (min-width: 1024px) { .mth-pa { padding-right: 30px; } }
.mth-page .mth-pa__title { font-family: var(--mth-sans); font-weight: 700; font-size: 27px; line-height: 1.3; margin: 8px 0 14px; color: var(--mth-navy); text-transform: none; letter-spacing: 0; text-wrap: balance; }
/* H1 nằm trong nội dung (trang không có khối đầu): cùng màu và cỡ với H1 của mẫu; thắng màu nội tuyến. */
.mth-page .mth-entry h1:not(.dark *) { font-family: var(--mth-sans); font-weight: 700; font-size: 27px; line-height: 1.3; margin: 8px 0 14px; color: var(--mth-navy) !important; text-transform: none; letter-spacing: 0; }

.mth-by { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; color: var(--mth-muted); font-size: 14px; margin: 8px 0 14px; }
.mth-page .mth-by a { color: var(--mth-muted); }

.mth-entry { font-size: 16px; line-height: 1.6; color: var(--mth-ink); }
.mth-entry p { margin: 0 0 8px; }
.mth-page .mth-entry h2 { font-family: var(--mth-sans); font-weight: 700; font-size: 25.6px; line-height: 1.3; margin: 20px 0 13px; color: var(--mth-ink); text-transform: none; letter-spacing: 0; }
.mth-entry h2 em { font-style: normal; color: var(--mth-red); font-weight: 700; }
.mth-page .mth-entry h3 { font-family: var(--mth-sans); font-size: 20px; font-weight: 700; line-height: 1.35; color: var(--mth-ink); margin: 6px 0 10px; text-transform: none; letter-spacing: 0; }
.mth-entry ul, .mth-entry ol { margin: 0 0 8px; padding-left: 22px; }
.mth-entry ul { list-style: disc; }
/* Danh sách cũ đặt padding 0 và tự gõ dấu "•" trong nội dung: không thêm dấu chấm của theme (dấu đó nằm ngoài hộp). */
body.mth .mth-entry ul:is([style*="padding: 0;"], [style*="padding:0;"], [style$="padding: 0"], [style$="padding:0"], [style*="padding: 0px;"], [style*="padding:0px;"], [style*="list-style: none"], [style*="list-style:none"], [style*="list-style-type: none"], [style*="list-style-type:none"]) { list-style: none; }
.mth-entry ol { list-style: decimal; }
.mth-entry li { margin: 0 0 4px; }
.mth-entry a.red, .mth-entry .mth-red { color: var(--mth-red); font-weight: 700; text-decoration: none; }
.mth-entry img { max-width: 100%; height: auto; }

/* Mục lục */
.mth-toc { background: var(--mth-tint); border: 0; border-radius: 0; padding: 2px 16px; margin: 8px 0 18px; }
.mth-toc summary { cursor: pointer; font-size: 16px; font-weight: 700; color: var(--mth-ink); min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 12px; list-style: none; }
.mth-toc summary::-webkit-details-marker { display: none; }
.mth-toc summary::after { content: ""; flex: none; width: 10px; height: 10px; margin: -5px 4px 0 0; border: solid var(--mth-blue); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); transition: transform .2s; }
.mth-toc[open] summary::after { margin-top: 5px; transform: rotate(225deg); }
.mth-entry .mth-toc ol { margin: 0 0 12px; padding-left: 22px; display: grid; gap: 2px; }
.mth-entry .mth-toc li { margin: 0; }
.mth-toc a { display: inline-flex; min-height: 36px; align-items: center; }

/* Ảnh, chú thích */
.mth-entry figure { margin: 6px 0 10px; max-width: 100%; }
.mth-entry figure img { display: block; width: 100%; height: auto; }
.mth-entry figcaption, .mth-entry .wp-caption-text, .mth-entry .wp-element-caption { font-size: 14px; color: var(--mth-muted); margin-top: 8px; line-height: 1.5; text-align: left; font-style: normal; }
.mth-entry .wp-caption { max-width: 100%; }
/* Chú thích của Flatsome có nền xám; ảnh cỡ lớn rộng bằng cột (style nội tuyến đặt bề rộng nên cần !important). */
.mth-entry .wp-caption .wp-caption-text { background: none; padding: 0; text-align: left; font-style: normal; }
.mth-entry .wp-caption:has(img.size-large) { width: 100% !important; }
.mth-entry .wp-caption img { margin: 0; }

/* Bảng */
.mth-entry .wp-block-table, .mth-entry .mth-tblw { overflow-x: auto; margin: 0 0 16px; border: 1px solid #e3e7eb; -webkit-overflow-scrolling: touch; }
.mth-entry table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 0 0 16px; }
.mth-entry .wp-block-table table, .mth-entry .mth-tblw table { margin: 0; min-width: 460px; }
.mth-entry th, .mth-entry td { text-align: left; border: 1px solid #e3e7eb; padding: 10px; vertical-align: top; font-size: 15px; } /* Flatsome đặt td .9em */
.mth-entry th, .mth-entry thead td { background: var(--mth-tint); color: var(--mth-navy); text-transform: uppercase; font-weight: 700; border-bottom: 2px solid var(--mth-blue); }
/* Bảng cũ dùng td cho hàng tiêu đề: chỉ khi bảng có từ 3 hàng và hàng đầu không có ảnh (hàng có ảnh là dữ liệu). */
.mth-entry table:not(:has(th, thead)):has(> tbody:first-of-type > tr:nth-child(3)) > tbody:first-of-type > tr:first-child:not(:has(img)) > td { background: var(--mth-tint); color: var(--mth-navy); font-weight: 700; }

/* Trích dẫn */
.mth-entry blockquote { margin: 4px 0 20px; background: #fff; border: 1px solid var(--mth-line); border-left: 4px solid var(--mth-blue); border-radius: 6px; padding: 14px 28px 14px 40px; font-size: 18px; color: #1f2328; font-style: normal; }
.mth-entry blockquote p:last-child { margin-bottom: 0; }

/* Chuẩn hóa nội dung cũ khi hiển thị (body.mth-normalize; tắt trong Customizer).
   Nội dung cũ có style nội tuyến nên cần !important. Không đụng phông biểu tượng, code/pre. */
.mth-entry { overflow-wrap: break-word; }
.mth-entry td { color: inherit; }
body.mth-normalize .mth-entry *:not(code):not(pre):not(kbd):not(samp):not([class*="icon"]):not([class*="fa-"]):not(.fa):not(.dashicons) { font-family: inherit !important; }
body.mth-normalize .mth-entry [style*="font-size"]:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6), body.mth-normalize .mth-entry font { font-size: inherit !important; }
body.mth-normalize .mth-entry p[style*="font-size"] { font-size: 16px !important; }
body.mth-normalize .mth-entry li[style*="font-size"] { font-size: 16px !important; }
body.mth-normalize .mth-entry td[style*="font-size"], body.mth-normalize .mth-entry th[style*="font-size"] { font-size: 15px !important; }
body.mth-normalize .mth-entry h1[style*="font-size"] { font-size: 27px !important; }
body.mth-normalize .mth-entry h2[style*="font-size"] { font-size: 25.6px !important; }
body.mth-normalize .mth-entry h3[style*="font-size"] { font-size: 20px !important; }
body.mth-normalize .mth-entry h4[style*="font-size"], body.mth-normalize .mth-entry h5[style*="font-size"], body.mth-normalize .mth-entry h6[style*="font-size"] { font-size: 17px !important; }
body.mth-normalize .mth-entry [style*="line-height"] { line-height: inherit !important; }
body.mth-normalize .mth-entry :is(h1, h2, h3, h4, h5, h6)[style*="line-height"] { line-height: 1.35 !important; }
body.mth-normalize .mth-entry p, body.mth-normalize .mth-entry li { line-height: 1.6; }
body.mth-normalize .mth-entry td, body.mth-normalize .mth-entry th { line-height: 1.5; }
body.mth-normalize .mth-entry [style*="text-align"], body.mth-normalize .mth-entry [align], body.mth-normalize .mth-entry .has-text-align-justify, body.mth-normalize .mth-entry .text-justify { text-align: left !important; }
/* Màu chữ, nền chữ nội tuyến (đỏ, vàng): trả về màu chữ bài. Bỏ qua khối div có nền riêng và vùng nền tối của UX Builder.
   Link có màu nội tuyến (đỏ #f00 chỉ 3,83:1) về xanh của theme, trừ link có nền riêng (nút). */
body.mth-normalize .mth-entry a[style*="color"]:not([style*="background"]):not(.button):not(.mth-btn):not(div[style*="background"] *):not(.dark *) { color: var(--mth-blue) !important; }
body.mth-normalize .mth-entry :is(p, span, strong, b, em, i, u, font, li, td, th, h2, h3, h4, h5, h6)[style*="color"]:not(div[style*="background"] *):not(.dark *) { color: inherit !important; background-color: transparent !important; }
body.mth-normalize .mth-entry :is(p, span, strong, b, em, i, u, li, td, th)[style*="background"]:not(div[style*="background"] *):not(.dark *) { background-color: transparent !important; }
body.mth-normalize .mth-entry font[color]:not(div[style*="background"] *):not(.dark *) { color: inherit !important; }
body.mth-normalize .mth-entry img, body.mth-normalize .mth-entry iframe, body.mth-normalize .mth-entry video, body.mth-normalize .mth-entry embed, body.mth-normalize .mth-entry object, body.mth-normalize .mth-entry table, body.mth-normalize .mth-entry figure, body.mth-normalize .mth-entry .wp-caption { max-width: 100% !important; }
body.mth-normalize .mth-entry :is(p, div, a, figure, picture) > img[style*="height"] { height: auto !important; }
body.mth-normalize .mth-entry table[style*="width"], body.mth-normalize .mth-entry table[width] { width: 100% !important; }
/* Bảng không có khung cuộn: trên màn hẹp tự cuộn ngang trong chính nó, không làm tràn trang. */
@media (max-width: 700px) {
	.mth-entry table { display: block; overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; }
	.mth-entry .wp-block-table table, .mth-entry .mth-tblw table { display: table; overflow: visible; max-width: none; }
	body.mth-normalize .mth-entry .wp-block-table table, body.mth-normalize .mth-entry .mth-tblw table { max-width: none !important; }
}

/* Băng tiêu đề trên ảnh (khi theme dựng bằng khối riêng) */
.mth-bf { margin: 6px 0 10px; }
.mth-bfimg { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg, #dff3e8, #f5faf8); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.mth-bft { position: absolute; top: 7%; left: 50%; transform: translateX(-50%); background: rgba(255, 255, 255, .92); color: var(--mth-navy); font-weight: 700; font-size: clamp(15px, 2.2vw, 28px); padding: 8px 22px; white-space: nowrap; max-width: 92%; overflow: hidden; text-overflow: ellipsis; }
.mth-bfb { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; gap: 10px; background: var(--mth-btn); color: #fff; font-size: clamp(12px, 1.3vw, 16px); padding: 8px 16px; }
@media (max-width: 700px) { .mth-bft { white-space: normal; text-overflow: clip; text-align: center; width: max-content; } }

.mth-src { font-size: 14.5px; color: var(--mth-muted); }

/* Hộp tác giả */
.mth-author { display: flex; gap: 14px; align-items: flex-start; border-top: 1px solid var(--mth-line); padding-top: 18px; margin-top: 26px; }
.mth-author .mth-av { flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--mth-btn); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.mth-author b { display: block; color: var(--mth-navy); }
.mth-author > div > span { display: block; color: var(--mth-muted); font-size: 14.5px; }
.mth-author a { font-size: 14.5px; }

/* Bài viết liên quan */
.mth-page .mth-relh { font-family: var(--mth-sans); font-size: 22px; font-weight: 700; color: var(--mth-navy); margin: 28px 0 10px; border-top: 1px solid #e3e7eb; padding-top: 18px; text-transform: none; letter-spacing: 0; }
.mth-rel { margin: 0; padding-left: 20px; list-style: disc; }
.mth-rel li { margin: 0 0 6px; }
.mth-page .mth-rel a { color: var(--mth-blue); text-decoration: none; font-weight: 600; }

/* Cột phải .wg */
.mth-pr { display: grid; gap: 22px; padding: 24px 0 0; border-top: 1px solid #e3e7eb; min-width: 0; align-content: start; }
@media (min-width: 1024px) { .mth-pr { padding: 0 0 30px 30px; border-top: 0; border-left: 1px solid #e3e7eb; } }
/* Cột phải cao bằng bài; khung cuối dính dưới thanh menu. */
@media (min-width: 1024px) { .mth-postg { align-items: stretch; } .mth-pr { display: flex; flex-direction: column; } .mth-pr > .mth-wg:last-child { position: sticky; top: 64px; } }
.mth-wg { display: grid; gap: 0; }
.mth-wg__h, .mth-wg .widget-title, .mth-wg .widgettitle { font-family: var(--mth-sans); background: var(--mth-tint); color: var(--mth-navy); font-size: 16px; font-weight: 600; text-transform: uppercase; letter-spacing: 0; line-height: 1.4; padding: 10px 12px; margin: 0 0 6px; border-left: 4px solid var(--mth-blue); }
.mth-wg ul { list-style: none; margin: 0; padding: 0; }
.mth-wg li { margin: 0; }
.mth-page .mth-wg li a { display: flex; align-items: center; min-height: 44px; padding: 6px 0; color: var(--mth-ink); text-decoration: none; font-size: 16px; border-bottom: 1px dashed var(--mth-line); }
.mth-page .mth-wg li a:hover { color: var(--mth-blue); }
.mth-page .mth-wg a.mth-mini { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: center; padding: 8px 0; text-decoration: none; color: var(--mth-fg); font-weight: 600; border-bottom: 1px solid var(--mth-line); }
.mth-mini img { width: 64px; height: 64px; object-fit: contain; border: 1px solid var(--mth-line); border-radius: 8px; }
.mth-page .mth-wg a.mth-mini--noimg { grid-template-columns: minmax(0, 1fr); min-height: 44px; }
.mth-mini small { display: block; color: var(--mth-blue); font-weight: 700; }
.mth-page a.mth-wgmore { display: inline-flex; min-height: 44px; align-items: center; font-size: 14.5px; color: var(--mth-blue); text-decoration: none; }

.mth-hot2 { border: 2px solid var(--mth-line); padding: 0 0 14px; }
.mth-hot2 .mth-wg__h { margin: 0; }
.mth-page a.mth-hot2__num { display: block; text-align: center; font-size: 28px; font-weight: 700; color: var(--mth-red); text-decoration: none; padding: 10px 0 2px; font-variant-numeric: tabular-nums; }
.mth-hot2__tx { margin: 0 14px 10px; color: var(--mth-muted); font-size: 14.5px; text-align: center; }
/* Một cột (dưới 1024px): khung này nằm ngay dưới hộp "Cần hỗ trợ?" có cùng hai nút, nên chỉ giữ hộp đó. */
@media (max-width: 1023.98px) { .mth-postg:has(.mth-ctabox) .mth-hot2 { display: none; } }
.mth-two2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 14px; }

/* ---------- 7. Trang chuyên mục (v10) ---------- */
.mth-cat-w { padding-top: 16px; padding-bottom: 56px; }
.mth-cat-w > .mth-crumb { padding-bottom: 10px; }
.mth-cmh { padding: 6px 0 18px; border-bottom: 1px solid var(--mth-line); margin-bottom: 22px; }
.mth-page .mth-cmh h1 { font-family: var(--mth-sans); font-weight: 700; font-size: clamp(24px, 2.6vw, 30px); line-height: 1.25; color: var(--mth-navy); margin: 4px 0 6px; text-transform: none; letter-spacing: 0; }
.mth-cmh__desc { color: var(--mth-muted); max-width: 75ch; }
.mth-cmh__desc p { margin: 0; }
.mth-catdesc { max-width: 1060px; margin: 34px 0 0; padding-top: 18px; border-top: 1px solid var(--mth-line); }
.mth-cmh__cnt { display: inline-block; margin-top: 10px; font-size: 14px; color: var(--mth-blue); background: var(--mth-tint); border-radius: 999px; padding: 3px 12px; font-weight: 600; }
.mth-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.mth-page .mth-chips a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--mth-line); border-radius: 999px; background: #fff; color: var(--mth-navy); text-decoration: none; font-size: 14.5px; }
.mth-page .mth-chips a[aria-current="page"] { background: var(--mth-btn); border-color: var(--mth-blue); color: #fff; }
.mth-cml { display: grid; gap: 0 28px; grid-template-columns: minmax(0, 1fr); list-style: none; margin: 0; padding: 0; }
@media (min-width: 760px) { .mth-cml { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1180px) { .mth-cml { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.mth-cml li { margin: 0; }
.mth-page .mth-cml a { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 6px 0; border-bottom: 1px dashed var(--mth-line); color: var(--mth-fg); text-decoration: none; }
.mth-page .mth-cml a:hover { color: var(--mth-blue); }
.mth-cml a::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--mth-brand); opacity: 1; }
.mth-cmk { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .mth-cmk { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .mth-cmk { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.mth-page .mth-cmk a { display: flex; flex-direction: column; gap: 8px; background: #fff; border: 1px solid var(--mth-line); border-radius: 8px; padding: 16px; text-decoration: none; color: var(--mth-fg); min-height: 120px; }
.mth-page .mth-cmk a:hover { border-color: var(--mth-blue); }
.mth-cmk b { color: var(--mth-navy); font-weight: 600; line-height: 1.4; }
.mth-cmk span { font-size: 13px; color: var(--mth-blue); margin-top: auto; }
.mth-empty { color: var(--mth-muted); }

/* Thẻ bài (chuyên mục, lưu trữ, tìm kiếm, bài liên quan) */
.mth-cards { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 620px) { .mth-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .mth-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .mth-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 620px) { .mth-cards--rel { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .mth-cards--rel { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.mth-card { position: relative; display: flex; flex-direction: column; min-width: 0; background: #fff; border: 1px solid var(--mth-line); border-radius: 8px; overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.mth-card:hover { border-color: var(--mth-blue); box-shadow: 0 14px 30px -20px rgba(16, 24, 40, .28); }
.mth-card:focus-within { border-color: var(--mth-blue); }
.mth-card__im { aspect-ratio: 16 / 9; background: linear-gradient(135deg, #eef8f3, #d6efe2); color: var(--mth-blue); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.mth-page .mth-card__im img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mth-card__ic { opacity: .55; line-height: 0; }
.mth-card__bd { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.mth-card__k { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mth-blue); }
.mth-page .mth-card__t { display: block; font-family: var(--mth-sans); font-size: 16.5px; font-weight: 600; line-height: 1.4; color: var(--mth-navy); margin: 0; text-transform: none; letter-spacing: 0; }
.mth-page .mth-card__t a { color: var(--mth-navy); text-decoration: none; }
.mth-page .mth-card__t a::after { content: ""; position: absolute; inset: 0; }
.mth-page .mth-card:hover .mth-card__t a { color: var(--mth-blue); }
.mth-card__x { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--mth-muted); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }

/* Thẻ sản phẩm ở trang tìm kiếm: ảnh trọn khung, có giá */
.mth-card--prod .mth-card__im { background: #fff; padding: 10px; border-bottom: 1px solid var(--mth-line); }
.mth-page .mth-card--prod .mth-card__im img { object-fit: contain; }
.mth-card__pr { margin-top: auto; font-size: 17px; font-weight: 700; color: var(--mth-red); font-variant-numeric: tabular-nums; }
.mth-card__pr.mth-ask { font-size: 15px; }

/* Ô tìm trong thân trang, trang rỗng, 404 */
.mth-srch.mth-srch--in { max-width: 680px; margin: 0 0 22px; }
.mth-none .mth-empty { margin: 0 0 14px; }
.mth-page .mth-cmh h1 { overflow-wrap: anywhere; }

/* Khối đầu trang dịch vụ (.pghero của demo v10) */
.mth-pghero { background: linear-gradient(120deg, #e6f6ee, #f5faf8 70%); color: var(--mth-fg); border-bottom: 1px solid var(--mth-line); }
.mth-pghero__in { display: grid; gap: 24px; padding-top: 18px; }
@media (min-width: 980px) { .mth-pghero__in { grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); align-items: end; } .mth-pghero__in--txt { grid-template-columns: minmax(0, 1fr); } }
.mth-pghero__tx { padding-bottom: 30px; min-width: 0; }
.mth-page .mth-pghero h1 { font-family: var(--mth-sans); font-weight: 700; font-size: clamp(27px, 3.4vw, 44px); line-height: 1.18; color: var(--mth-navy); margin: 8px 0 0; text-transform: none; letter-spacing: 0; text-wrap: balance; overflow-wrap: break-word; }
.mth-pghero p { color: #3b444d; margin: 12px 0 20px; font-size: 17px; max-width: 60ch; }
.mth-pghero .mth-crumb p { font-size: inherit; color: inherit; margin: 0; max-width: none; }
.mth-pghero__art { display: none; }
.mth-pghero__art svg { display: block; width: 100%; max-width: 420px; height: auto; margin: 0 auto; }
@media (min-width: 980px) { .mth-pghero__art { display: block; } .mth-pghero__tx { padding-bottom: 40px; } }
.mth-page--svc .mth-post-w { padding-top: 26px; }

/* Trang tĩnh */
.mth-cta--top { margin: 0 0 18px; }
.mth-ctabox { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; background: var(--mth-tint); border: 1px solid var(--mth-line); border-radius: 8px; padding: 16px 18px; margin: 26px 0 0; }
.mth-ctabox__t { margin: 0; font-weight: 600; color: var(--mth-navy); }
@media (min-width: 1024px) {
	.mth-postg--wide { grid-template-columns: minmax(0, 1fr); }
	.mth-postg--wide .mth-pa { padding-right: 0; }
}
.mth-entry--wide .row { max-width: none; }

/* Phân trang */
.mth-pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 22px; }
.mth-pager a, .mth-pager span.page-numbers, .mth-pager .post-page-numbers { min-width: 44px; height: 44px; padding: 0 10px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--mth-line); border-radius: 8px; background: #fff; text-decoration: none; color: var(--mth-fg); font-weight: 600; }
.mth-pager span.page-numbers.current, .mth-pager .page-numbers[aria-current="page"], .mth-pager .post-page-numbers.current { background: var(--mth-btn); color: #fff; border-color: var(--mth-blue); }
.mth-pager span.page-numbers.dots { border: 0; background: transparent; }

/* ---------- 8. Chân trang ---------- */
.mth-ft { background: #f2f4f7; color: #5a6670; border-top: 1px solid var(--mth-line); font-family: var(--mth-sans); line-height: 1.5; }
.mth-ft__in { display: grid; gap: 26px; padding-top: 48px; padding-bottom: 48px; }
@media (min-width: 600px) { .mth-ft__in { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Số cột theo số cột liên kết có thật (0–4) cộng cột thông tin. */
@media (min-width: 900px) {
	.mth-ft__in--0 { grid-template-columns: minmax(0, 1fr); }
	.mth-ft__in--1 { grid-template-columns: 1.5fr 1fr; }
	.mth-ft__in--2 { grid-template-columns: 1.5fr 1fr 1fr; }
	.mth-ft__in--3 { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
	.mth-ft__in--4 { grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; }
}
.mth-ft__h { margin: 0 0 12px; color: var(--mth-navy); font-size: 15px; font-weight: 700; }
.mth-ft__n { font-family: var(--mth-serif); color: var(--mth-navy); font-size: 22px; font-weight: 700; display: block; margin: 0 0 10px; }
.mth-ft ul, .mth-ft__ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; font-size: 14.5px; }
.mth-ft li { min-height: 36px; display: flex; align-items: center; margin: 0; }
.mth-ft li a { min-height: 44px; display: flex; align-items: center; }
.mth-ft a { color: #2a4f8a; text-decoration: none; }
.mth-ft a:hover { text-decoration: underline; }
.mth-ft__cp { grid-column: 1 / -1; border-top: 1px solid var(--mth-line); padding-top: 16px; margin: 0; font-size: 13px; color: #5d6b82; }

/* ---------- 9. Nút Gọi/Zalo nổi (máy tính) và dock (điện thoại) ---------- */
.mth-dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; background: #fff; border-top: 1px solid var(--mth-line); padding: 6px max(8px, env(safe-area-inset-right, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px)); font-family: var(--mth-sans); }
.mth-dock--2 { grid-template-columns: 1.4fr 1fr; }
.mth-dock a { display: flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; min-height: 48px; border-radius: 8px; font-weight: 700; text-decoration: none; font-size: 15px; }
.mth-dock a.mth-dock__call { background: var(--mth-btn); color: #fff; }
.mth-dock a.mth-dock__zalo { background: var(--mth-zalo); color: #fff; }
.mth-dock a.mth-dock__quote { background: var(--mth-sky); color: var(--mth-navy); border: 1px solid var(--mth-line); }
@media (min-width: 1024px) { .mth-dock { display: none; } }

.mth-float { display: none; }
@media (min-width: 1024px) {
	.mth-float { display: grid; gap: 10px; position: fixed; right: calc(20px + env(safe-area-inset-right, 0px)); bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 44; font-family: var(--mth-sans); }
	.mth-float a { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; text-decoration: none; font-weight: 700; font-size: 12.5px; box-shadow: 0 8px 22px -8px rgba(16, 24, 40, .28); }
	.mth-float a.mth-float__zalo { background: var(--mth-zalo); }
	.mth-float a.mth-float__call { background: var(--mth-btn); }
}
/* Có đầu trang của theme: hotline luôn thấy trên thanh menu dính, nên dưới 1760px ẩn nút nổi (khung đầy màn, nút sẽ đè lưới);
   từ 1760px đặt nút ở lề ngoài khung 1600px. */
@media (min-width: 1024px) and (max-width: 1759.98px) { body.mth-custom-header .mth-float { display: none; } }
@media (min-width: 1760px) { body.mth-custom-header .mth-float { right: calc((100vw - 1600px) / 2 - 68px); } }
/* Nút "lên đầu trang" của Flatsome nằm góc phải dưới: không đè dock và nút nổi. */
body.mth.mth-has-dock #top-link { bottom: 84px; }
@media (min-width: 1024px) { body.mth.mth-has-dock #top-link { bottom: 160px; } }
/* Dưới 1760px khung đầy màn, không có lề trống: nút này đè lên nút Zalo, giá. Ẩn như nút nổi; thanh menu dính vẫn luôn ở trên. */
@media (max-width: 1759.98px) { body.mth.mth-custom-header #top-link { display: none; } }
/* Từ 1760px: cùng trục dọc với nút nổi (nút nổi rộng 56px, nút này 39px). */
@media (min-width: 1760px) { body.mth.mth-custom-header #top-link { right: calc((100vw - 1600px) / 2 - 68px + 8.5px) !important; left: auto !important; } }

/* ---------- 10. WooCommerce (chỉ CSS, chưa ghi đè template Woo) ---------- */
body.mth .product-small.box, body.mth .product-small .box { background: #fff; }
body.mth .products .product-small .col-inner { background: #fff; border: 1px solid var(--mth-line); border-radius: 8px; overflow: hidden; transition: box-shadow .2s, border-color .2s; height: 100%; }
body.mth .products .product-small .col-inner:hover { border-color: var(--mth-blue); box-shadow: 0 14px 30px -18px rgba(16, 24, 40, .28); }
body.mth .product-small .box-image { background: #fff; border-bottom: 1px solid var(--mth-line); }
body.mth .product-small .box-image img { object-fit: contain; }
body.mth .product-small .box-text { padding: 12px 14px 14px; }
body.mth .product-small .product-title, body.mth .product-small .product-title a { font-family: var(--mth-sans); font-size: 14.5px; font-weight: 600; color: var(--mth-fg); line-height: 1.4; }
body.mth .product-small .price, body.mth .product-small .price .amount { color: var(--mth-red); font-weight: 700; font-size: 17px; font-variant-numeric: tabular-nums; }
body.mth .product-small .category { color: var(--mth-muted); opacity: 1; font-size: 12px; line-height: 1.4; letter-spacing: .04em; }
body.mth .product-small .price { display: block; margin-top: 6px; }
body.mth .product-small .mth-ask { color: var(--mth-blue); font-size: 15px; }
/* Thẻ đã có nút "Hỏi giá qua Zalo" thì không in thêm chữ "Hỏi giá". */
body.mth .product-small .box-text:has(.mth-loopz) .mth-ask { display: none; }
/* Nút Zalo trong thẻ hàng: dồn xuống đáy thẻ (chỉ kiểu thẻ dọc thường). */
body.mth a.mth-loopz { display: flex; align-items: center; justify-content: center; min-height: 44px; margin: 10px 0 0; padding: 0 8px; border-radius: 8px; background: var(--mth-zalo); color: #fff; font-size: 14px; font-weight: 700; line-height: 1.25; text-align: center; text-decoration: none; }
body.mth a.mth-loopz:hover { background: var(--mth-blue2); color: #fff; }
body.mth .products .product-small .col-inner { display: flex; flex-direction: column; }
body.mth .products .product-small.box:not(.box-vertical):not(.box-overlay):not(.box-shade) { display: flex; flex-direction: column; flex: 1; }
body.mth .products .product-small.box:not(.box-vertical):not(.box-overlay):not(.box-shade) > .box-image { width: 100%; flex: none; }
body.mth .products .product-small.box:not(.box-vertical):not(.box-overlay):not(.box-shade) > .box-text:not(.grid-style-3) { display: flex; flex-direction: column; flex: 1; }
body.mth .products .product-small.box > .box-text:not(.grid-style-3) > .mth-loopz { margin-top: auto; }
body.mth .products .product-small.box > .box-text:not(.grid-style-3) > .price-wrapper { margin-top: auto; margin-bottom: 10px; }
body.mth .products .product-small.box > .box-text:not(.grid-style-3) > .price-wrapper + .mth-loopz { margin-top: 0; }
/* Đã thêm vào giỏ: hiện lại link tới giỏ (flatsome-shop.css ẩn .wc-forward). */
body.mth .message-container .wc-forward { display: inline-flex !important; align-items: center; min-height: 44px; margin: 0 15px 0 0; padding: 0 16px; border-radius: 8px; background: var(--mth-btn); color: #fff; font-weight: 700; text-decoration: none; text-transform: none; letter-spacing: 0; }
body.mth .message-container { max-width: var(--mth-w); }
body.mth #wrapper > .message-wrapper { background: #fff; margin: 0; padding: 10px 0; border-bottom: 1px solid var(--mth-line); }
body.mth .message-wrapper:focus { outline: none; } /* WooCommerce tự đặt tiêu điểm vào thông báo, không phải phần tử bấm được. */
body.mth .badge-inner.on-sale { background: var(--mth-red); }

body.mth.single-product .product-info .product-title { font-family: var(--mth-sans); font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; line-height: 1.3; color: var(--mth-navy); text-transform: none; letter-spacing: 0; }
body.mth.single-product .product-info .price, body.mth.single-product .product-info .price .amount { font-size: 32px; font-weight: 700; color: var(--mth-red); font-variant-numeric: tabular-nums; }
body.mth.single-product .product-info .price .mth-ask { font-size: 22px; color: var(--mth-blue); }
body.mth.single-product .product-info .single_add_to_cart_button { background: var(--mth-btn); border-radius: 8px; min-height: 52px; font-size: 16px; text-transform: none; letter-spacing: 0; }
body.mth.single-product .product-gallery .woocommerce-product-gallery__image { border: 1px solid var(--mth-line); border-radius: 8px; background: #fff; }
body.mth.single-product .product-gallery .flickity-enabled:focus-visible { outline: 3px solid var(--mth-gold); outline-offset: 2px; border-radius: 8px; }
body.mth.single-product .woocommerce-product-attributes th { width: 38%; color: var(--mth-muted); font-weight: 600; background: var(--mth-sky); }
body.mth.single-product .woocommerce-product-attributes th, body.mth.single-product .woocommerce-product-attributes td { padding: 11px 14px; border-bottom: 1px solid var(--mth-line); }
body.mth.single-product .product-footer .woocommerce-tabs .tabs li.active a { color: var(--mth-blue); }

/* Trang cửa hàng, sản phẩm, giỏ, thanh toán, tài khoản (body.mth-woo; tắt trong Customizer) */
body.mth-woo { font-family: var(--mth-sans); }
body.mth-woo #main, body.mth-woo .page-title:not(.dark) { color: var(--mth-fg); }
body.mth-woo :is(#main, .page-title) :is(h1, h2, h3, h4, h5, h6, .heading-font, .nav > li > a, .button, button, input, select, textarea, .widget-title) { font-family: var(--mth-sans); letter-spacing: 0; }
body.mth-woo #main :is(h1, h2, h3, h4):not(.dark *) { color: var(--mth-navy); }
body.mth-woo #main td, body.mth-woo #main label { color: inherit; }
body.mth-woo #main .button, body.mth-woo #main button { text-transform: none; }

/* Khung 1600px trùng .mth-w */
body.mth-woo #main .container, body.mth-woo .page-title .container, body.mth-woo #main .row { max-width: var(--mth-w); }
body.mth-woo #main .col .row, body.mth-woo #main .container .row { max-width: none; }
body.mth-woo .page-title-inner { min-height: 0; padding-top: 20px; padding-bottom: 12px; }
body.mth-woo .category-page-title { border-bottom: 1px solid var(--mth-line); margin-bottom: 18px; }
body.mth-woo .page-title .mth-woo-h1 { font-size: clamp(24px, 2.6vw, 30px); font-weight: 700; line-height: 1.25; margin: 4px 0 0; text-transform: none; }
body.mth-woo .page-title:not(.dark) .mth-woo-h1 { color: var(--mth-navy); }
body.mth-woo .mth-crumb.breadcrumbs { font-size: 13.5px; font-weight: 400; color: var(--mth-muted); text-transform: none; letter-spacing: 0; line-height: 1.5; padding: 0 0 4px; }
body.mth-woo .page-title:not(.dark) .mth-crumb a, body.mth-woo #main .mth-crumb a { color: var(--mth-muted); font-weight: 400; text-decoration: none; }
body.mth-woo .page-title:not(.dark) .mth-crumb a:hover, body.mth-woo #main .mth-crumb a:hover, body.mth-woo .mth-flowhead .mth-crumb a:hover { color: var(--mth-muted); text-decoration: underline; }
/* 8px: bằng dấu cách + 4px đệm của breadcrumb bài viết, chuyên mục (dấu của WooCommerce không có dấu cách). */
body.mth-woo .mth-crumb .divider { margin: 0 4px; opacity: 1; font-weight: 400; }
@media (min-width: 1200px) {
	body.mth-woo .category-page-row .products.row:not(.slider) > .col { flex-basis: 25%; max-width: 25%; }
	body.mth-woo.single-product .product-main > .content-row > .product-gallery { flex-basis: 42%; max-width: 42%; }
}
@media (max-width: 549px) { body.mth-woo .category-page-row .products.row:not(.slider) > .col { flex-basis: 50%; max-width: 50%; } }

/* Nền, tiêu đề trang: cùng nền và canh trái như các trang khác (Flatsome canh giữa dưới 850px bằng !important). */
body.mth-woo .page-title:not(.dark):not(.featured-title) { background: #f2f4f7; border-top: 0; border-bottom: 1px solid var(--mth-line); }
body.mth-woo .page-title-inner, body.mth-woo .page-title-inner .flex-col, body.mth-woo .my-account-header .social-login { text-align: left !important; }
body.mth-woo .my-account-header h1 { font-size: clamp(24px, 2.6vw, 30px); font-weight: 600; text-transform: none; }
body.mth-woo .my-account-header h1 + small, body.mth-woo #main .uppercase { text-transform: none; letter-spacing: 0; }
body.mth-woo #main .entry-title { font-size: clamp(24px, 2.6vw, 30px); font-weight: 700; text-transform: none; }
@media (max-width: 849px) { body.mth-woo .page-title-inner > .flex-col { width: 100%; } }

/* Giỏ hàng, thanh toán, tài khoản: breadcrumb, H1, các bước */
.mth-flowhead { background: #f2f4f7; padding: 22px 0 0; }
body.mth-woo .mth-flowhead .container { max-width: var(--mth-w); }
body.mth-woo .mth-flowhead .mth-crumb a { color: var(--mth-muted); text-decoration: none; }
body.mth-woo .my-account-header:not(.featured-title) .page-title-inner { padding-top: 4px; }
/* Đã có H1 ở trên thì điện thoại, máy tính bảng dọc không lặp tên bước. */
@media (max-width: 849.98px) { body.mth-woo:has(.mth-flowhead .mth-woo-h1) .checkout-page-title { display: none; } }
body.mth-woo .mth-flowhead .mth-woo-h1 { font-family: var(--mth-sans); font-size: clamp(24px, 2.6vw, 30px); font-weight: 700; line-height: 1.25; color: var(--mth-navy); margin: 4px 0 0; }
body.mth-woo .checkout-page-title.page-title { border-bottom: 0; }
body.mth-woo .checkout-page-title .checkout-breadcrumbs { justify-content: flex-start; text-transform: none; font-size: 16px; font-weight: 600; letter-spacing: 0; padding: 4px 0; }
body.mth-woo .checkout-page-title .checkout-breadcrumbs a { color: var(--mth-muted); min-height: 32px; }
body.mth-woo .checkout-page-title .checkout-breadcrumbs a.current { color: var(--mth-navy); font-weight: 700; }
body.mth-woo #main .woocommerce-form-login, body.mth-woo #main .woocommerce-form-register { max-width: 480px; }

/* Nút mua, thanh toán, đăng nhập, về cửa hàng (chỉ màu và kiểu, không đổi hành vi) */
body.mth-woo #main :is(.single_add_to_cart_button, .checkout-button, #place_order, .button.alt, .button.primary, .woocommerce-Button, .woocommerce-button, .wc-backward, .wc-block-components-button:not(.is-link):not(.wc-block-components-button--outlined)):not(.is-outline):not(.is-link) { background-color: var(--mth-btn); color: #fff; border-radius: 8px; min-height: 46px; text-transform: none; letter-spacing: 0; font-weight: 700; }
body.mth-woo #main :is(.single_add_to_cart_button, .checkout-button, #place_order, .button.alt, .button.primary, .woocommerce-Button, .woocommerce-button, .wc-backward):not(.is-outline):not(.is-link):hover { background-color: var(--mth-blue2); }
body.mth-woo #main .quantity .qty { height: 52px; }
body.mth-woo #main .quantity .button { min-height: 52px; }
body.mth-woo #main .shop_table .quantity :is(.qty, .button) { height: 44px; min-height: 44px; }

/* Phân trang cửa hàng: cùng kiểu .mth-pager */
body.mth-woo .nav-pagination > li > :is(a, span) { min-width: 44px; height: 44px; line-height: 42px; border: 1px solid var(--mth-line); border-radius: 8px; background: #fff; color: var(--mth-fg); font-size: 15px; font-weight: 600; }
body.mth-woo .nav-pagination > li > :is(.current, a:hover) { background: var(--mth-btn); border-color: var(--mth-blue); color: #fff; }
body.mth-woo .nav-pagination > li { margin-bottom: 5px; }
@media (max-width: 479.98px) {
	body.mth-woo ul.nav-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
	body.mth-woo .nav-pagination > li { margin: 0; }
	body.mth-woo .nav-pagination > li > :is(a, span) { min-width: 32px; height: 40px; line-height: 38px; padding: 0 4px; font-size: 14px; }
}
body.mth-woo .nav-pagination > li > .dots { border: 0; background: transparent; }

/* Trang sản phẩm */
body.mth-woo.single-product .woocommerce-breadcrumb { padding-top: 14px; }
body.mth-woo.single-product .product-main { padding-top: 14px; }
body.mth-woo .next-prev-thumbs { display: none; }
body.mth-woo .tabs > li > a { color: var(--mth-muted); opacity: 1; font-size: 15px; text-transform: none; letter-spacing: 0; }
body.mth-woo .woocommerce-tabs .panel { max-width: 960px; }
body.mth-woo .woocommerce-tabs .panel :is(td, th) { font-size: 15px; padding: 11px 14px; text-align: left; text-transform: none; letter-spacing: 0; border-bottom: 1px solid var(--mth-line); }
body.mth-woo .woocommerce-tabs .panel :is(td, th):first-child { background: var(--mth-tint); font-weight: 600; }
body.mth-woo .product-section-title.container-width { max-width: none; padding-left: 0; text-transform: none; font-size: 22px; }
body.mth-woo .related .product-small .col-inner { background: #fff; border: 1px solid var(--mth-line); border-radius: 8px; overflow: hidden; }
@media (min-width: 550px) and (max-width: 849.98px) {
	body.mth-woo.single-product .product-main > .content-row > .product-gallery { flex-basis: 45%; max-width: 45%; }
	body.mth-woo.single-product .product-main > .content-row > .product-info { flex-basis: 55%; max-width: 55%; }
}
@media (max-width: 1023.98px) { body.mth-woo .product-gallery .woocommerce-product-gallery__image img { max-height: 420px; object-fit: contain; } }
@media (max-width: 549px) { body.mth-woo .product-gallery .woocommerce-product-gallery__image img { max-height: 300px; } }
body.mth-woo #main :is(input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="number"]:not(.qty), textarea, select) { border-color: var(--mth-field); border-radius: 8px; box-shadow: none; }
/* Giỏ, thanh toán: chữ thường, khung thẻ một kiểu, nút một kiểu. */
body.mth-woo #main :is(h3, th, .widget-title) { text-transform: none; letter-spacing: 0; }
body.mth-woo #main :is(.woocommerce-cart-form, .cart-sidebar, .woocommerce-checkout .has-border) { background: #fff; border: 1px solid var(--mth-line); border-radius: 8px; padding: 16px; }
body.mth-woo #main .woocommerce-checkout-review-order { background: #fff; }
body.mth-woo #main .row-divided > .cart-collaterals { border-left: 0; }
body.mth-woo #main .woocommerce-cart-form { margin-bottom: 18px; }
body.mth-woo #main .woocommerce-cart-form .shop_table { margin-bottom: 0; }
body.mth-woo #main .woocommerce-cart-form .actions { padding: 14px 0 0; border: 0; }
body.mth-woo #main .woocommerce-cart-form .actions .button { margin: 0 8px 8px 0; }
body.mth-woo #main :is(.woocommerce-cart-form, .cart-sidebar, .woocommerce-checkout, .checkout_coupon, .return-to-shop, .woocommerce-form) .button:not(.is-link):not(.plus):not(.minus):not(.icon) { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; line-height: 1.2; border-radius: 8px; letter-spacing: 0; font-weight: 700; }
body.mth-woo #main :is(.cart-sidebar, .checkout_coupon) .button.is-form { background: #fff; border: 1.5px solid var(--mth-blue); color: var(--mth-blue); text-shadow: none; }
body.mth-woo #main :is(.cart-sidebar, .checkout_coupon) .button.is-form:hover { background: var(--mth-tint); color: var(--mth-blue); box-shadow: none; }
body.mth-woo #main .woocommerce-cart-form .button.is-outline { background: #fff; border: 1.5px solid var(--mth-blue); color: var(--mth-blue); }
body.mth-woo #main .woocommerce-cart-form .button.is-outline:hover { background: var(--mth-tint); color: var(--mth-blue); box-shadow: none; }
body.mth-woo .woocommerce-ordering select, body.mth-woo .woocommerce-ordering select:hover { min-height: 44px; border: 1px solid var(--mth-field); border-radius: 8px; background-color: #fff; box-shadow: none; }
.mth-woo-contact { margin: 14px 0 18px; }
.mth-woo-contact a.mth-btn { color: #fff; }
.mth-woo-contact--c .mth-cta { justify-content: center; }
.mth-ask, .mth-card__pr.mth-ask { color: var(--mth-blue); font-weight: 700; }

/* ---------- 11. Giảm chuyển động ---------- */
@media (prefers-reduced-motion: reduce) {
	.mth-page *, .mth-toc summary::after, .mth-hdr *, body.mth .products .product-small .col-inner { transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- 12. In ấn ---------- */
@media print {
	.mth-dock, .mth-float, .mth-menu, .mth-pr, .mth-bar { display: none !important; }
	.mth-postg { display: block; }
}

/* 0.1.5: E1 ô chọn Woo cùng kiểu ô nhập; E3 thứ bậc chữ trang chủ màn nhỏ */
body.mth-woo #main select { background-color: #fff; min-height: 40px; border: 1px solid var(--mth-field); border-radius: 8px; box-shadow: none; }
body.mth-woo .select2-container .select2-selection { background-color: #fff; border: 1px solid var(--mth-field); border-radius: 8px; box-shadow: none; }
@media (max-width: 1023.98px) { .mth-page .mth-svc__h { font-size: 18px; font-weight: 600; } .mth-page .mth-kb b { font-size: 17px; font-weight: 600; } .mth-page .mth-panel__top h2 { font-size: 20px; } }
/* H4-01 bấm mục lục: bỏ khoảng sticky cộng chồng của Flatsome */
html:has(body.mth-custom-header) { --flatsome--header--sticky-height: 0px !important; --flatsome-scroll-padding-top: 0px !important; }
/* H4-02 bảng một cột đầy khung trên điện thoại */
@media (max-width: 700px) { .mth-entry table > tbody:only-child { display: table; width: 100%; } }
/* 0.1.5: điện thoại, danh sách bài dạng hàng gọn, ảnh 150px */
.mth-card__im picture { display: block; width: 100%; height: 100%; }
@media (max-width: 619.98px) {
  .mth-cards { gap: 12px; }
  .mth-cards .mth-card { flex-direction: row; align-items: stretch; }
  .mth-cards .mth-card__im { flex: 0 0 112px; width: 112px; aspect-ratio: auto; min-height: 112px; border-bottom: 0; }
  .mth-cards .mth-card__im img { position: absolute; inset: 0; width: 112px; height: 100%; }
  .mth-cards .mth-card__im { position: relative; }
  .mth-cards .mth-card__bd { padding: 12px 14px; min-width: 0; }
  .mth-page .mth-cards .mth-card__t { font-size: 16px; }
}
/* 0.1.6: F2 thứ bậc tiêu đề khối và tên thẻ ở mọi cỡ */
.mth-page .mth-svc__h { font-size: 18px; font-weight: 600; }
.mth-page .mth-relh { font-size: 24px; }
/* 0.1.8: sản phẩm liên kết (ACF của theme cũ) */
.mth-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.mth-links__i { display: flex; flex-direction: column; min-height: 44px; padding: 8px 12px; border: 1px solid var(--mth-line); border-radius: 8px; background: #fff; color: var(--mth-navy); text-decoration: none; font-size: 14px; }
.mth-links__i.is-on { border-color: var(--mth-blue); }
/* 0.1.9: link chuyên mục, thẻ cuối bài (giữ link nội bộ như theme cũ) */
.mth-terms { margin: 18px 0 0; font-size: 14.5px; line-height: 1.8; color: var(--mth-muted); display: flex; flex-wrap: wrap; gap: 2px 18px; }
.mth-page .mth-terms a { color: var(--mth-blue); }
/* 0.1.11: <picture> bọc ảnh nội dung, không đổi cách dàn ảnh */
.mth-pic { display: contents; }
/* 0.1.11: ngăn Danh mục kèm menu cũ trong mục gập */
.mth-drawer__all { column-span: all; border-top: 1px solid var(--mth-line); margin-top: 6px; }
.mth-drawer__all summary { min-height: 46px; display: flex; align-items: center; font-weight: 600; color: var(--mth-blue); cursor: pointer; }
.mth-drawer__all summary::after { content: ""; width: 8px; height: 8px; margin-left: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); }
.mth-drawer__all[open] summary::after { transform: rotate(-135deg); }
.mth-allmenu, .mth-allmenu ul { list-style: none; margin: 0; padding: 0; }
.mth-allmenu > li > a { font-weight: 700; }
@media (min-width: 760px) { .mth-allmenu { columns: 3; column-gap: 24px; } .mth-allmenu > li { break-inside: avoid; } }
.mth-hdr .mth-drawer .mth-allmenu a { min-height: 40px; font-size: 14.5px; }
/* 0.1.12: phân cấp menu cũ trong ngăn Danh mục (H11-01, G1) */
.mth-hdr .mth-drawer .mth-allmenu > li > a { font-weight: 700; color: var(--mth-navy); }
.mth-hdr .mth-drawer .mth-allmenu .sub-menu a { font-weight: 400; padding-left: 14px; }
.mth-hdr .mth-drawer .mth-allmenu .sub-menu .sub-menu a { padding-left: 28px; }
.mth-drawer .mth-allmenu li { margin: 0; }
.mth-drawer .mth-allmenu > li { margin-bottom: 8px; }
@media (min-width: 760px) { .mth-allmenu > li { break-inside: auto; } .mth-allmenu a, .mth-allmenu li:not(.menu-item-has-children) { break-inside: avoid; } .mth-allmenu .menu-item-has-children > a { break-after: avoid; } }
/* 0.1.12: danh mục sản phẩm, tìm hàng không có kết quả (H11-02, G2) */
.mth-nores { display: grid; gap: 16px; margin: 0 0 24px; }
.mth-nores p { margin: 0; }
.mth-nores .mth-srch { order: 0; margin: 0; }
/* 0.1.16: chân trang 900–1179 px; cột phụ rỗng ở trang sản phẩm */
@media (min-width: 900px) and (max-width: 1179.98px) { .mth-ft__in--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.mth-ft li { padding: 0; } .mth-ft li a { padding: 4px 0; }
body.mth-woo.single-product #product-sidebar:not(:has(.widget)) { display: none; }
@media (min-width: 850px) { body.mth-woo.single-product .product-main:not(:has(#product-sidebar .widget)) > .content-row > .product-info { flex: 1 1 0; max-width: none; } }
/* 0.1.18: thẻ liên quan thẳng hàng; ảnh canh giữa mọi cỡ; link thẻ dịch vụ thẳng đáy */
body.mth-woo .related .product-small .product-title a { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; min-height: calc(3 * 1.4em); }
:is(.mth-entry, body.mth-woo .woocommerce-tabs .panel) :is(img, figure, .wp-caption).aligncenter { display: block; margin-left: auto; margin-right: auto; }
.mth-svc__t { flex: 1; grid-template-rows: auto 1fr auto; }
@media (max-width: 619.98px) { .mth-cards .mth-card--prod .mth-card__im img { inset: 8px; width: 96px; height: calc(100% - 16px); } }
/* 0.1.20: ảnh thẻ liên quan vuông, thẻ có giá và không giá cùng cao */
body.mth-woo .related .product-small .box-image :is(div, a) { display: block; }
body.mth-woo .related .product-small .box-image img { aspect-ratio: 1 / 1; width: 100%; height: auto; object-fit: contain; }
/* 0.1.21: nội dung cũ dùng lớp section trùng Flatsome (không phải khối UX Builder) */
.mth-entry .section:not([id^="section_"]) { display: block; padding: 0; min-height: 0; }

/* ---------- 0.2.0: phối màu, chữ theo lựa chọn của Giám đốc (#77) ---------- */
.mth-page { font-size: 15px; }
.mth-entry { font-size: 16px; }
/* Đầu trang: thanh trên xanh đậm, nền trắng, bóng nhẹ */
.mth-bar { background: var(--mth-blue); color: #fff; border-bottom: 0; }
.mth-hdr .mth-bar a { color: #fff; }
.mth-menu { box-shadow: 0 2px 12px rgba(16, 24, 40, .06); }
.mth-logo__mk { background: var(--mth-brand); }
.mth-hot strong { font-size: 18px; }
.mth-menu__cat, .mth-srch button { font-weight: 700; }
@media (min-width: 1024px) { .mth-menu__cat { border-radius: 8px; min-height: 44px; margin: 4px 8px 4px 0; } }
.mth-hdr .mth-menu__l:hover { color: var(--mth-blue); }
/* Banner: mảng xanh đen, chữ trắng */
.mth-banner { background: linear-gradient(115deg, #14211b 0%, #123527 55%, #0b5a3a 100%); color: #fff; border-color: #14211b; }
.mth-banner__ey { color: #5fd39b; }
.mth-page .mth-banner h1 { color: #fff; }
.mth-banner p { color: rgba(255, 255, 255, .84); }
.mth-banner .mth-btn.mth-btn--out { background: #fff; color: var(--mth-navy); border-color: #fff; }
.mth-banner .mth-btn.mth-btn--line { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.mth-banner :focus-visible { outline-color: #fff; }
.mth-btn.mth-btn--out { border-color: var(--mth-btn); color: var(--mth-blue); }
.mth-page a.mth-promo--dark { background: linear-gradient(120deg, #14211b, #0b5a3a); border-color: #14211b; }
.mth-promo--dark :focus-visible { outline-color: #fff; }
/* Tiêu đề khối trang chủ: chữ hoa, xanh đậm */
.mth-page .mth-h2, .mth-page .mth-panel__top h2 { color: var(--mth-blue); text-transform: uppercase; font-size: clamp(18px, 1.6vw, 22px); }
.mth-panel__top { background: #fff; }
.mth-svcband { background: var(--mth-sky); }
.mth-svc__il { background: linear-gradient(160deg, #dff3e8, #f3fbf7); }
.mth-page .mth-svc__h { font-weight: 700; }
.mth-tr i { color: var(--mth-btn); }
.mth-ct:hover .mth-ct__im { border-color: var(--mth-brand); }
/* Sản phẩm: tên 14px, giá đỏ đậm */
.mth-pc__name, body.mth .product-small .product-title, body.mth .product-small .product-title a { font-size: 14px; font-weight: 600; }
.mth-pc__pr { font-size: 16.5px; }
body.mth .product-small .price, body.mth .product-small .price .amount { font-size: 16px; }
body.mth-woo #main :is(h1, h2, h3, h4):not(.dark *) { font-weight: 700; }
/* Chân trang xanh đen */
html:has(body.mth) { background-color: #14211b; }
.mth-ft { background: var(--mth-dark); color: #c6d1cb; border-top: 0; }
.mth-ft__h { color: #fff; text-transform: uppercase; font-size: 14px; }
.mth-ft__n { color: #fff; }
.mth-ft a { color: #c6d1cb; }
.mth-ft a:hover { color: #5fd39b; }
.mth-ft a[href^="tel:"] { color: #5fd39b; }
.mth-ft__cp { border-top-color: var(--mth-dark2); color: #9fb0a7; }
.mth-ft :focus-visible { outline-color: #5fd39b; }
body.mth a.mth-loopz:hover { background: #004fc4; }
/* Nền xám nhạt, nội dung trên thẻ trắng */
body.mth #main { background-color: #f2f4f7; }
@media (min-width: 1024px) {
	.mth-post-w .mth-pa { background: #fff; border-radius: 8px; padding: 22px 28px 28px; }
	.mth-post-w > .mth-postg > .mth-pa { margin-bottom: 0; }
	.mth-postg { gap: 18px; }
	.mth-pr { border-left: 0; padding: 0 0 30px; gap: 14px; }
	.mth-pr > .mth-wg { background: #fff; border-radius: 8px; overflow: hidden; padding: 0 14px 12px; }
	.mth-pr > .mth-wg > .mth-wg__h:first-child, .mth-pr > .mth-wg > .widget-title:first-child { margin: 0 -14px 8px; }
	.mth-pr > .mth-hot2 { padding: 0 0 14px; }
	.mth-pr > .mth-hot2 > .mth-wg__h:first-child { margin: 0; }
}
@media (max-width: 1023.98px) {
	.mth-post-w { padding-left: 10px; padding-right: 10px; }
	.mth-post-w .mth-pa { background: #fff; border-radius: 8px; padding: 14px 14px 20px; }
	.mth-post-w .mth-pa:has(+ .mth-pr) { margin-bottom: 0; }
	.mth-pr { background: #fff; border-radius: 8px; border-top: 0; margin-top: 12px; padding: 16px 14px; }
}
.mth-hot2 { border-color: var(--mth-tint2); }
.mth-cat-w .mth-cmh, .mth-catdesc { background: #fff; border-radius: 8px; border: 0; padding: 16px 18px; }
.mth-catdesc { padding: 20px 18px; }
/* Sản phẩm: khối chính và mô tả trên thẻ trắng */
body.mth-woo.single-product .product-main { padding-top: 14px; }
body.mth-woo.single-product .product-main > .content-row { background: #fff; border-radius: 8px; padding-top: 16px; padding-bottom: 8px; }
body.mth-woo.single-product .product-footer > .container > .woocommerce-tabs { background: #fff; border-radius: 8px; border-top: 0; padding: 0 18px 18px; margin: 0 0 18px; }
body.mth-woo .nav-line > li.active > a::before, body.mth-woo .nav > li.active > a::before, body.mth-woo .nav-line > li > a::before { background-color: var(--mth-brand); }
body.mth-woo .is-divider { background-color: var(--mth-line); }
body.mth-woo.single-product .product-main > .content-row { width: calc(100% - 30px); margin-left: auto; margin-right: auto; }
body.mth-woo.single-product .product-footer > .container > .woocommerce-tabs { padding-top: 12px; }
body.mth-woo.single-product .woocommerce-tabs .tabs { margin-top: 0; margin-bottom: 8px; }
/* Nút Zalo trong thẻ hàng: viền xanh lá, nền trắng (ít mảng xanh dương) */
body.mth a.mth-loopz, .mth-page a.mth-pc__z { background: #fff; color: var(--mth-blue); border: 1.5px solid var(--mth-brand); }
body.mth a.mth-loopz:hover, .mth-page a.mth-pc__z:hover { background: var(--mth-btn); color: #fff; border-color: var(--mth-btn); }
/* ---------- 0.2.1: trang chủ có hàng thật (khối hàng, ô nhóm hàng, ảnh hàng ở banner) ---------- */
.mth-page--home { padding-bottom: 0; }
.mth-page--home .mth-sec { padding-top: 26px; padding-bottom: 26px; }
.mth-page--home .mth-svcband { padding-top: 22px; padding-bottom: 12px; }
.mth-page--home .mth-trust { background: transparent; border: 0; }
.mth-page--home .mth-trust__in { gap: 12px; }
.mth-page--home .mth-tr { background: #fff; border-radius: 8px; padding: 14px 16px; }
@media (max-width: 559.98px) { .mth-page--home .mth-tr { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; } }
.mth-page--home .mth-svc__il { aspect-ratio: 16 / 8; }
/* Banner kèm ba ảnh hàng thật */
.mth-banner--goods { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .mth-banner--goods { min-height: 320px; } }
.mth-goods { display: none; }
@media (min-width: 1280px) {
	.mth-banner--goods { grid-template-columns: minmax(0, 1.5fr) minmax(220px, .7fr); }
	.mth-goods { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 24px 28px 24px 0; align-self: center; }
	.mth-goods__i { background: #fff; border-radius: 8px; padding: 10px; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; }
	.mth-goods__i:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
	.mth-page .mth-goods__i img { width: 100%; height: 100%; object-fit: contain; }
	.mth-page .mth-banner--goods h1 { font-size: 36px; }
}
/* Ô nhóm hàng cạnh banner */
.mth-page a.mth-tile { display: grid; grid-template-columns: minmax(0, 1fr) 96px; gap: 8px; align-items: center; border-radius: 8px; padding: 12px 12px 12px 16px; text-decoration: none; color: var(--mth-fg); border: 1px solid var(--mth-line); min-height: 100px; }
.mth-tile--1 { background: linear-gradient(90deg, #eaf7f1, #f7fcf9); }
.mth-tile--2 { background: linear-gradient(90deg, #eef2fb, #f8fafd); }
.mth-tile--3 { background: linear-gradient(90deg, #fff3e6, #fffaf4); }
.mth-tile__t { display: grid; gap: 2px; min-width: 0; }
.mth-tile b { font-size: 17px; font-weight: 700; line-height: 1.25; color: var(--mth-navy); }
.mth-tile__t > span { font-size: 13px; color: var(--mth-muted); }
.mth-tile em { font-style: normal; font-size: 13.5px; font-weight: 700; color: var(--mth-blue); margin-top: 4px; }
.mth-page .mth-tile img { width: 96px; height: 96px; object-fit: contain; background: #fff; border-radius: 8px; padding: 4px; }
.mth-page a.mth-tile:hover { border-color: var(--mth-brand); }
@media (min-width: 760px) and (max-width: 1079.98px) { .mth-promos.mth-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } .mth-page a.mth-tile { grid-template-columns: minmax(0, 1fr) 64px; padding: 10px; } .mth-page .mth-tile img { width: 64px; height: 64px; } }
@media (min-width: 760px) and (max-width: 899.98px) { .mth-tile__t { align-self: stretch; grid-template-rows: auto minmax(0, 1fr) auto; } }
@media (min-width: 1080px) { .mth-promos.mth-tiles { gap: 12px; align-content: stretch; grid-auto-rows: 1fr; } }
/* Khối hàng: thẻ trắng, tiêu đề xanh, ô hàng kẻ mảnh */
.mth-blkw { padding: 7px 0; }
.mth-blk { background: #fff; border-radius: 8px; overflow: hidden; }
.mth-blk__h { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 12px 18px; border-bottom: 1px solid var(--mth-line); }
.mth-page .mth-blk__h h2 { margin: 0; font-size: clamp(18px, 1.6vw, 20px); font-weight: 700; text-transform: uppercase; color: var(--mth-blue); line-height: 1.3; letter-spacing: 0; width: auto; }
.mth-blk__c { display: flex; flex-wrap: wrap; gap: 8px; }
.mth-page .mth-blk__c a { display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border: 1px solid var(--mth-line); border-radius: 999px; font-size: 13px; color: var(--mth-muted); text-decoration: none; }
.mth-page .mth-blk__c a:hover { border-color: var(--mth-brand); color: var(--mth-blue); }
.mth-blk__h .mth-more { margin-left: auto; }
.mth-blk__h .mth-finder { margin-left: auto; padding: 0; border: 0; flex: 0 1 400px; }
.mth-blk .mth-pg { gap: 0; }
.mth-blk .mth-pc { border: 0; border-radius: 0; border-right: 1px solid var(--mth-line); border-bottom: 1px solid var(--mth-line); margin: 0 -1px -1px 0; }
.mth-blk .mth-pc:hover { box-shadow: inset 0 0 0 1.5px var(--mth-brand); }
.mth-blk .mth-pc__ph { border-bottom: 0; padding: 14px 14px 4px; }
.mth-blk .mth-pc__name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; min-height: calc(3 * 1.4em); font-weight: 500; font-size: 13.5px; }
.mth-blk .mth-pc__bd { padding: 6px 14px 14px; }
@media (max-width: 759.98px) {
	.mth-blk .mth-pc:nth-child(n+5) { display: none; }
	.mth-blk__h { padding: 12px 14px; }
	.mth-blk__h .mth-finder { flex: 1 1 100%; margin: 0; }
	.mth-page .mth-blk__c a { min-height: 44px; }
	.mth-blkw .mth-w { padding-left: 10px; padding-right: 10px; }
}
@media (min-width: 760px) and (max-width: 1099.98px) { .mth-blk .mth-pg { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .mth-page--home .mth-side { align-self: stretch; display: flex; flex-direction: column; padding-bottom: 6px; } .mth-page--home .mth-side a { flex: 1; padding-top: 5px; padding-bottom: 5px; } }
.mth-pc__name { overflow-wrap: break-word; }
.mth-cats .mth-ct:nth-child(n+7) { display: none; }
/* ---------- 0.3.0: gợi ý liên quan ở bài viết, sản phẩm (#78) ---------- */
.mth-more3 { background: var(--mth-tint); border-left: 4px solid var(--mth-brand); border-radius: 0 8px 8px 0; padding: 12px 16px; margin: 18px 0; }
.mth-more3 > b { display: block; font-size: 14px; text-transform: uppercase; color: var(--mth-blue); margin-bottom: 4px; }
.mth-entry .mth-more3 ul { margin: 0; padding-left: 18px; }
.mth-entry .mth-more3 li { margin: 0; }
.mth-entry .mth-more3 a { display: inline-block; padding: 5px 0; font-weight: 600; text-decoration: none; }
.mth-pa .mth-blk { border: 1px solid var(--mth-line); margin-top: 24px; }
.mth-blk--4 .mth-pg { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 700px) { .mth-blk--4 .mth-pg { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.mth-page .mth-relh { text-transform: none; }
.mth-kw { margin-top: 24px; }
.mth-page .mth-kw__h { font-size: 16px; font-weight: 700; margin: 0 0 10px; color: var(--mth-navy); }
ul.mth-kw__l { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.mth-kw__l li { margin: 0; }
.mth-page .mth-kw__l a { display: inline-flex; align-items: center; min-height: 36px; padding: 4px 14px; border: 1px solid var(--mth-line); border-radius: 999px; background: var(--mth-sky); font-size: 14px; color: var(--mth-fg); text-decoration: none; }
.mth-page .mth-kw__l a:hover { border-color: var(--mth-brand); color: var(--mth-blue); background: var(--mth-tint); }
@media (max-width: 759.98px) { .mth-page .mth-kw__l a { min-height: 44px; } }
.mth-pn { display: grid; gap: 10px; margin-top: 24px; border-top: 1px solid var(--mth-line); padding-top: 18px; }
@media (min-width: 700px) { .mth-pn { grid-template-columns: 1fr 1fr; } .mth-pn__n { text-align: right; grid-column: 2; } }
.mth-page .mth-pn a { display: grid; gap: 2px; padding: 12px 14px; border: 1px solid var(--mth-line); border-radius: 8px; text-decoration: none; color: var(--mth-fg); }
.mth-page .mth-pn a:hover { border-color: var(--mth-brand); }
.mth-pn small { color: var(--mth-muted); font-size: 13px; }
.mth-pn b { font-size: 15px; font-weight: 600; line-height: 1.4; }
.mth-page .mth-wg a.mth-mini--post { font-weight: 500; font-size: 14.5px; line-height: 1.4; }
.mth-mini--post img { object-fit: cover; }
.mth-page .mth-wg a.mth-mini:last-child { border-bottom: 0; }
.mth-mini > span { min-width: 0; overflow-wrap: anywhere; }
/* Trang sản phẩm */
.mth-facts { margin: 4px 0 14px; }
.mth-facts dl { margin: 0 0 12px; border: 1px solid var(--mth-line); border-radius: 8px; overflow: hidden; }
.mth-facts dl > div { display: grid; grid-template-columns: minmax(110px, 38%) minmax(0, 1fr); }
.mth-facts dl > div + div { border-top: 1px solid var(--mth-line); }
.mth-facts dt, .mth-facts dd { margin: 0; padding: 8px 12px; font-size: 14.5px; font-weight: 400; }
.mth-facts dt { background: var(--mth-sky); color: var(--mth-muted); }
.mth-facts dd a { color: var(--mth-blue); }
.mth-facts ul.mth-facts__l { list-style: none; margin: 0; padding: 12px 14px; background: var(--mth-tint); border-radius: 8px; display: grid; gap: 6px; font-size: 14.5px; }
.mth-facts__l li { margin: 0; padding-left: 20px; position: relative; }
.mth-facts__l li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 8px; height: 8px; border-radius: 50%; background: var(--mth-brand); }
.mth-page--pend { background: transparent; max-width: var(--mth-w); margin: 0 auto; padding: 0 0 24px; display: grid; gap: 16px; }
.mth-page--pend > * { min-width: 0; }
.mth-wcard { background: #fff; border-radius: 8px; padding: 16px 18px 18px; }
.mth-wcard .mth-relh { border-top: 0; margin-top: 0; padding-top: 0; }
.mth-wcard.mth-kw { margin-top: 0; }
body.mth-woo.single-product .product-footer > .mth-page--pend { padding-top: 0; }
@media (max-width: 759.98px) { .mth-wcard { padding: 14px; } .mth-page--pend { padding: 0 0 20px; } }
/* Trang sản phẩm: mô tả và cột phải */
.mth-spg { background: transparent; max-width: var(--mth-w); margin: 0 auto 16px; padding: 0; display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) { .mth-spg { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } }
.mth-spg__m { background: #fff; border-radius: 8px; padding: 8px 20px 20px; min-width: 0; }
.mth-spg__s { display: grid; gap: 14px; align-content: start; min-width: 0; }
@media (min-width: 1024px) { .mth-spg__s { position: sticky; top: min(64px, calc(100vh - var(--mth-sph, 0px) - 16px)); } }
.mth-spg__s:has(:focus-visible) { position: static; }
.mth-spg__s .mth-wg { background: #fff; border-radius: 8px; overflow: hidden; padding: 0 14px 12px; }
.mth-spg__s .mth-wg > .mth-wg__h { margin: 0 -14px 8px; }
.mth-spg__s .mth-hot2 { padding: 0 0 14px; }
.mth-spg__s .mth-hot2 > .mth-wg__h { margin: 0; }
body.mth-woo .mth-spg .product-section .row, body.mth-woo .mth-spg .product-section > .row { display: block; max-width: none; margin: 0; }
body.mth-woo .mth-spg .product-section .row > .large-2, body.mth-woo .mth-spg .product-section .row > .large-10 { flex: none; max-width: none; width: 100%; padding: 0; }
body.mth-woo .mth-spg .product-section { border-top: 1px solid var(--mth-line); padding: 0; }
body.mth-woo .mth-spg .product-section:first-child { border-top: 0; }
body.mth-woo .mth-spg .product-section h5 { font-size: 18px; font-weight: 700; color: var(--mth-blue); text-transform: uppercase; margin: 14px 0 10px; }
body.mth-woo .mth-spg .panel { max-width: none; font-size: 16px; line-height: 1.6; padding-top: 4px; }
body.mth-woo .mth-spg .panel img { max-width: 100%; height: auto; }
body.mth-woo .mth-spg .panel table { display: block; overflow-x: auto; max-width: 100%; }
@media (max-width: 1023.98px) { .mth-spg__m { padding: 4px 14px 16px; } }
.mth-facts dt, .mth-facts dd { text-transform: none; letter-spacing: 0; }
body.mth-woo #main .mth-blk__h h2, .mth-page .mth-blk__h h2 { color: var(--mth-blue); }
body.mth-woo .mth-kw .mth-kw__l a, body.mth-woo .mth-blk__h .mth-more { text-decoration: none; }
/* Khối hàng ít sản phẩm: ô không giãn quá rộng */
.mth-cat-w .mth-blk { margin-top: 24px; }
.mth-cat-w .mth-kw { background: #fff; border-radius: 8px; padding: 14px 18px; }
body.mth-woo .mth-spg .panel, body.mth-woo .product-short-description { overflow-wrap: anywhere; }
/* ---------- 0.3.2: sửa theo phiếu chấm 0.3.1 ---------- */
/* Mô tả sản phẩm in mở */
body.mth-woo .mth-spg .panel table { display: table; width: 100%; border-collapse: collapse; }
body.mth-woo .mth-spg .panel :is(td, th) { line-height: 1.3; font-size: 15px; padding: 10px 14px; text-align: left; text-transform: none; letter-spacing: 0; border-bottom: 1px solid var(--mth-line); }
body.mth-woo .mth-spg .panel :is(td, th):first-child { background: var(--mth-tint); font-weight: 600; }
@media (max-width: 699.98px) { body.mth-woo .mth-spg .panel table { display: block; overflow-x: auto; } body.mth-woo .mth-spg .panel table > tbody:only-child { display: table; width: 100%; } }
body.mth-woo .mth-spg .panel :is(img, figure, .wp-caption).aligncenter { display: block; margin-left: auto; margin-right: auto; }
body.mth-woo .mth-spg .panel > :last-child { margin-bottom: 0; }
body.mth-woo .product-short-description :is(p, span, li, b, strong, font, div, td) { font-size: 15px !important; line-height: 1.6 !important; }
.mth-spg__m.is-cut { max-height: 900px; overflow: hidden; position: relative; }
.mth-spg__m.is-cut::after { content: ""; position: absolute; inset: auto 0 0; height: 120px; background: linear-gradient(rgba(255, 255, 255, 0), #fff); pointer-events: none; }
.mth-spg__b { width: 100%; margin-top: -6px; }
.mth-page--ptop { margin-top: 16px; padding-bottom: 16px; }
/* Thẻ bài không có ảnh nào thì bỏ ô ảnh */
.mth-cards--rel:not(:has(.mth-card__im img)) .mth-card__im { display: none; }
.mth-page .mth-mini small.is-price { color: var(--mth-red); font-size: 14px; }
/* Một kiểu tiêu đề khối */
.mth-page .mth-relh, .mth-page .mth-kw__h, .mth-page .mth-blk__h h2, body.mth-woo #main .mth-relh { font-size: 18px; font-weight: 700; text-transform: uppercase; color: var(--mth-blue); }
.mth-page--home .mth-kk { display: none; }
.mth-page--home .mth-shd { align-items: center; }
.mth-page--home :is(.mth-shd, .mth-band__in) .mth-h2 { margin-top: 0; }
.mth-pa .mth-blk { border: 0; border-top: 1px solid var(--mth-line); border-radius: 0; padding-top: 4px; }
.mth-pa .mth-blk__h { padding-left: 0; padding-right: 0; border-bottom: 0; }
@media (min-width: 1100px) { .mth-page--pend .mth-blk--4 .mth-pg { grid-template-columns: repeat(4, minmax(0, 1fr)); } .mth-page--pend .mth-blk--4 .mth-pc__ph { aspect-ratio: 16 / 9; } }
/* Cột phải dính theo mép dưới khi bài dài */
@media (min-width: 1024px) { .mth-postg { align-items: stretch; } .mth-pr { align-self: start; position: sticky; top: min(64px, calc(100vh - var(--mth-prh, 0px) - 16px)); } .mth-pr:has(:focus-visible) { position: static; } .mth-pr > .mth-wg:last-child { position: static; } }
/* Màn 700–1100 */
@media (min-width: 700px) { .mth-srch:not(.mth-srch--in) { order: 0; flex: 1 1 auto; } }
@media (min-width: 760px) and (max-width: 1079.98px) {
	.mth-banner--goods { grid-template-columns: minmax(0, 1.4fr) minmax(200px, .6fr); min-height: 0; }
	.mth-goods { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 20px 24px 20px 0; align-self: center; }
	.mth-goods__i { background: #fff; border-radius: 8px; padding: 8px; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; }
	.mth-goods__i:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
	.mth-page .mth-goods__i img { width: 100%; height: 100%; object-fit: contain; }
}
@media (min-width: 1080px) and (max-width: 1279.98px) { .mth-page .mth-banner h1 { font-size: 34px; } }
@media (min-width: 760px) and (max-width: 1023.98px) { .mth-blk .mth-pc__ph { aspect-ratio: 4 / 3; } }
@media (min-width: 1024px) and (max-width: 1099.98px) { .mth-blk:not(.mth-blk--4) .mth-pg { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (min-width: 760px) and (max-width: 1099.98px) { .mth-blk__h .mth-finder { flex: 1 1 100%; margin-left: 0; } }
/* Danh sách nhỏ: ô giữ chỗ khi không có ảnh */
.mth-page .mth-wg a.mth-mini--post.mth-mini--noimg { grid-template-columns: 64px minmax(0, 1fr); }
.mth-mini__ic { width: 64px; height: 64px; border-radius: 8px; background: var(--mth-tint); color: var(--mth-blue); display: flex; align-items: center; justify-content: center; }
/* Đầu trang cửa hàng trong thẻ trắng */
body.mth-woo .category-page-title.page-title:not(.dark):not(.featured-title) { background: transparent; border-bottom: 0; margin-bottom: 12px; }
body.mth-woo .category-page-title .page-title-inner { background: #fff; border-radius: 8px; padding: 14px 18px; max-width: calc(var(--mth-w) - 30px); width: calc(100% - 30px); margin: 14px auto 0; }
body.mth-woo .category-page-title + #main .category-page-row, body.mth-woo .category-page-row { padding-top: 3px; }
body.mth #footer, body.mth .footer-wrapper { background: #14211b; margin-bottom: -1px; }
/* Bảng thông tin nhanh */
.mth-facts dl > div { grid-template-columns: 130px minmax(0, 1fr); }
.mth-facts dd { color: var(--mth-fg); }
.mth-facts ul.mth-facts__l li { margin-left: 0; }
body.mth-woo.single-product .product-info .is-divider { display: none; }
body.mth-woo.single-product .product-info { padding-bottom: 8px; }
.mth-facts { margin-top: 14px; }
@media (max-width: 479.98px) { .mth-woo-contact .mth-cta { flex-wrap: nowrap; } .mth-woo-contact .mth-btn { flex: 1 1 0; min-width: 0; padding: 0 6px; font-size: 14px; } .mth-banner .mth-cta .mth-btn { flex: 1 1 100%; } }
.mth-blk .mth-pc__name { min-height: 0; }
.mth-blk .mth-pc__bd > .mth-pc__z { margin-top: auto; }
/* Điện thoại: không lặp khung hàng, dịch vụ, gọi */
@media (max-width: 1023.98px) { .mth-pr .mth-wg--pc, .mth-postg:has(.mth-kw) .mth-pr .mth-wg--svc, .mth-spg__s .mth-hot2 { display: none; } }
.mth-pa .mth-ctabox + .mth-ctabox, .mth-blk + .mth-ctabox { margin-top: 18px; }
body.mth .product-small .woocommerce-loop-product__title, body.mth .product-small .woocommerce-loop-product__title a, .mth-pc__name, .mth-mini span, .mth-page .mth-card b { overflow-wrap: break-word; }
body.mth .product-small .box-image :is(a, div) > img { aspect-ratio: 1 / 1; width: 100%; height: auto; object-fit: contain; }
/* ---------- 0.3.4: sửa theo phiếu chấm 0.3.3 ---------- */
body.mth { --fs-color-primary: #00854d; --primary-color: #00854d; }
body.mth .product-small .grid-tools { display: none; }
body.mth-woo:is(.search-results, .search-no-results) #main :is(.post-item, .box-blog-post) .box-text { text-align: left; background: #fff; border-radius: 8px; padding: 14px 16px; }
body.mth-woo:is(.search-results, .search-no-results) #main :is(.post-item, .box-blog-post) .post-title { color: var(--mth-fg); font-size: 16px; }
body.mth-woo.search-results #main :is(.post-item, .box-blog-post) .is-divider { display: none; }
body.mth-woo.search-no-results #main :is(.post-item, .box-blog-post) .is-divider { display: none; }
body.mth-woo:is(.search-results, .search-no-results) #main .page-box .box-image:not(:has(img)) { display: none; }
body.mth-woo:is(.search-results, .search-no-results) #main :is(.box-blog-post, .page-box) { background: #fff; border-radius: 8px; overflow: hidden; }
body.mth-woo:is(.search-results, .search-no-results) #main .page-box .box-text { padding: 14px 16px; }
body.mth-woo:is(.search-results, .search-no-results) #main .row-slider:has(.box-image img) :is(.box-blog-post, .page-box):not(:has(.box-image img))::before { content: ''; display: block; aspect-ratio: 16 / 9; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 24 24' fill='none' stroke='%23007d48' stroke-width='2' opacity='.55'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6M8 13h8M8 17h6'/%3E%3C/svg%3E") center / 40px 40px no-repeat, linear-gradient(135deg, #eef8f3, #d6efe2); }
body.mth-woo:is(.search-results, .search-no-results) #main .page-box .box-text p { font-size: 16px; font-weight: 700; line-height: 1.35; color: var(--mth-fg); overflow-wrap: anywhere; }
body.mth-woo:is(.search-results, .search-no-results) #main .flickity-slider > :is(.post-item, .page-col) { min-height: 100%; display: flex; }
body.mth-woo:is(.search-results, .search-no-results) #main :is(.post-item, .page-col) > .col-inner { width: 100%; }
body.mth-woo:is(.search-results, .search-no-results) #main .flickity-slider > :is(.post-item, .page-col) > .col-inner { height: auto; }
body.mth-woo:is(.search-results, .search-no-results) #main .flickity-slider > :is(.post-item, .page-col) :is(.col-inner > a, .col-inner > .box, a > .box) { height: 100%; }
@media (max-width: 849px) {
	body.mth-woo:is(.search-results, .search-no-results) #main .row-slider.flickity-enabled { overflow: visible; }
	body.mth-woo:is(.search-results, .search-no-results) #main .row-slider .flickity-prev-next-button { top: -52px !important; bottom: auto; left: auto !important; right: 15px !important; width: 40px !important; height: 40px !important; min-width: 0; padding: 0 !important; background: #fff !important; border: 1px solid var(--mth-line); border-radius: 8px; box-shadow: none; transform: none !important; }
	body.mth-woo:is(.search-results, .search-no-results) #main .row-slider .flickity-prev-next-button:not(:disabled) { opacity: 1 !important; }
	body.mth-woo:is(.search-results, .search-no-results) #main .row-slider .flickity-prev-next-button.previous { right: 61px !important; }
	body.mth-woo:is(.search-results, .search-no-results) #main .row-slider .flickity-prev-next-button svg { margin-top: 0; padding: 0 !important; width: 16px; height: 16px !important; }
	body.mth-woo:is(.search-results, .search-no-results) #main hr + h4 { padding-right: 100px; min-height: 44px; display: flex; align-items: center; }
}
body.mth-woo:is(.search-results, .search-no-results) #main hr + h4, body.mth-woo:is(.search-results, .search-no-results) #main .page-description h4 { font-size: 18px; font-weight: 700; text-transform: uppercase; color: var(--mth-blue); }
@media (min-width: 700px) {
	:is(.mth-page--pend, .mth-pa) .mth-pg:has(> .mth-pc:last-child:nth-child(1)) { grid-template-columns: minmax(0, 1fr); }
	:is(.mth-page--pend, .mth-pa) .mth-pg:has(> .mth-pc:last-child:nth-child(2)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	:is(.mth-page--pend, .mth-pa) .mth-pg:has(> .mth-pc:last-child:nth-child(3)) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	:is(.mth-page--pend, .mth-pa) .mth-pg:has(> .mth-pc:last-child:nth-child(-n+3)) .mth-pc { display: grid; grid-template-columns: 130px minmax(0, 1fr); align-items: center; }
	:is(.mth-page--pend, .mth-pa) .mth-pg:has(> .mth-pc:last-child:nth-child(-n+3)) .mth-pc__ph { aspect-ratio: 1; padding: 10px; }
}
body.mth-woo.single-product .product-main { padding-bottom: 0; }
body.mth-woo.single-product .product-main > .content-row > .col { padding-bottom: 8px; margin-bottom: 0; }
body.mth-woo .mth-spg .product-section .row > .col, body.mth-woo .mth-spg .panel.entry-content { padding-bottom: 0; margin-bottom: 0; }
.mth-wg:not(:has(.mth-mini img)) .mth-mini__ic { display: none; }
.mth-page .mth-wg:not(:has(.mth-mini img)) a.mth-mini--post.mth-mini--noimg { grid-template-columns: minmax(0, 1fr); min-height: 44px; }
.mth-blk .mth-pc__bd { gap: 8px; }
/* ---------- 0.3.5 ---------- */
.mth-blk .mth-pc__bd > .mth-pc__pr + a.mth-pc__z { margin-top: 0; }
.mth-page--pend > .mth-ctabox { margin-top: 0; }
/* ---------- 0.3.6 ---------- */
@media (max-width: 1023.98px) { .mth-spg__s:not(:has(> :not(.mth-hot2))) { display: none; } }
/* ---------- 0.3.8: ảnh và chú thích trong bài luôn căn giữa (Giám đốc, #92) ---------- */
.mth-entry :is(figure:not(.wp-block-table), .wp-caption, .wp-block-image), body.mth-woo .mth-spg .panel :is(figure:not(.wp-block-table), .wp-caption, .wp-block-image) { float: none !important; margin-left: auto !important; margin-right: auto !important; text-align: center; }
body.mth.mth .mth-entry :is(figcaption, .wp-caption-text, .wp-element-caption), body.mth.mth .mth-entry :is(figcaption, .wp-caption-text, .wp-element-caption) :is(p, div, span, em), body.mth.mth-woo .mth-spg .panel :is(figcaption, .wp-caption-text, .wp-element-caption) { text-align: center !important; }
/* Khối có nền riêng (WordPress .has-background): link theo màu chữ của khối, có gạch chân. */
.mth-page .mth-entry .has-background a:not(.button):not(.wp-block-button__link):not([class*="mth-"]) { color: inherit; text-decoration: underline; }
.mth-entry img:not(.emoji):not(.wp-smiley):not([hidden]):not([class*="mth-"]), body.mth-woo .mth-spg .panel img:not(.emoji):not(.wp-smiley):not([hidden]):not([class*="mth-"]) { display: block; float: none !important; margin-left: auto !important; margin-right: auto !important; }
/* Biểu tượng nhỏ cùng dòng chữ (mth_content_small_img gắn lớp mth-ico). */
.mth-entry img.mth-ico, body.mth-woo .mth-spg .panel img.mth-ico { display: inline-block; float: none; margin: 0 2px; vertical-align: middle; }
/* Nút nền đặc của Flatsome trong bài: luật màu link của theme làm chữ chìm vào nền. */
.mth-page .mth-entry a.button:not(.is-outline):not(.is-link):not(.is-underline):not(.white):not([style*="background"]):not([style*="color"]) { color: #fff; }
/* ---------- 0.3.13: lưới không để ô trống khi ít mục (X1, H312-01) ---------- */
@media (min-width: 700px) {
	.mth-blk .mth-pg:has(> .mth-pc:last-child:nth-child(1)) { grid-template-columns: minmax(0, 1fr); }
	.mth-blk .mth-pg:has(> .mth-pc:last-child:nth-child(2)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mth-blk .mth-pg:has(> .mth-pc:last-child:nth-child(3)) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.mth-blk .mth-pg:has(> .mth-pc:last-child:nth-child(4)) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.mth-blk .mth-pg:has(> .mth-pc:last-child:nth-child(-n+3)) .mth-pc { display: grid; grid-template-columns: 130px minmax(0, 1fr); align-items: center; }
	.mth-blk .mth-pg:has(> .mth-pc:last-child:nth-child(-n+3)) .mth-pc__ph { aspect-ratio: 1; padding: 10px; }
	.mth-blk .mth-pg > .mth-pc:only-child .mth-pc__bd { max-width: 460px; }
	.mth-blk .mth-pg:has(> .mth-pc:last-child:nth-child(3)) .mth-pc__bd { align-self: stretch; padding-top: 14px; padding-bottom: 16px; }
}
@media (min-width: 1024px) { .mth-blk:not(.mth-blk--4) .mth-pg:has(> .mth-pc:last-child:nth-child(5)) { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 760px) and (max-width: 1023.98px) {
	.mth-blk:not(.mth-blk--4) .mth-pg:has(> .mth-pc:last-child:nth-child(5)) { grid-template-columns: repeat(6, minmax(0, 1fr)); }
	.mth-blk:not(.mth-blk--4) .mth-pg:has(> .mth-pc:last-child:nth-child(5)) > .mth-pc { grid-column: span 2; }
	.mth-blk:not(.mth-blk--4) .mth-pg:has(> .mth-pc:last-child:nth-child(5)) > .mth-pc:nth-child(n+4) { grid-column: span 3; }
}
@media (min-width: 620px) {
	.mth-cards--rel:has(> :last-child:nth-child(2)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mth-cards--rel:has(> :last-child:nth-child(3)) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 699.98px) {
	.mth-blk .mth-pg > .mth-pc:only-child { grid-column: 1 / -1; }
	.mth-blk .mth-pg > .mth-pc:last-child:nth-child(3) { grid-column: 1 / -1; }
	.mth-blk .mth-pg > .mth-pc:is(:only-child, :last-child:nth-child(3)) { display: grid; grid-template-columns: 130px minmax(0, 1fr); align-items: center; }
	.mth-blk .mth-pg > .mth-pc:is(:only-child, :last-child:nth-child(3)) .mth-pc__ph { aspect-ratio: 1; padding: 10px; }
}
/* ---------- 0.3.14: khối 3 và 5 hàng ở máy tính bảng (Y1, Y2) ---------- */
@media (min-width: 700px) and (max-width: 1023.98px) {
	.mth-blk .mth-pg:has(> .mth-pc:last-child:nth-child(3)) .mth-pc { display: flex; align-items: stretch; }
	.mth-blk .mth-pg:has(> .mth-pc:last-child:nth-child(3)) .mth-pc__ph { aspect-ratio: 4 / 3; padding: 14px 14px 4px; }
	.mth-blk .mth-pg:has(> .mth-pc:last-child:nth-child(3)) .mth-pc__bd { padding: 6px 14px 14px; }
}
@media (min-width: 1024px) and (max-width: 1279.98px) {
	.mth-pa .mth-blk .mth-pg:has(> .mth-pc:last-child:nth-child(3)) .mth-pc { display: flex; align-items: stretch; }
	.mth-pa .mth-blk .mth-pg:has(> .mth-pc:last-child:nth-child(3)) .mth-pc__ph { aspect-ratio: 4 / 3; padding: 14px 14px 4px; }
	.mth-pa .mth-blk .mth-pg:has(> .mth-pc:last-child:nth-child(3)) .mth-pc__bd { padding: 6px 14px 14px; }
}
@media (min-width: 760px) and (max-width: 1023.98px) {
	.mth-blk:not(.mth-blk--4) .mth-pg:has(> .mth-pc:last-child:nth-child(5)) > .mth-pc:nth-child(n+4) .mth-pc__ph { aspect-ratio: 2 / 1; }
}
