/*
 * Hà My Care – design system và component (Flatsome child).
 * Màu, chữ, khoảng cách theo mục 4, 20, 28, 39, 40 của đặc tả.
 * Chỉ nhắm class hmc-* và một số class Flatsome đã kiểm tra trên bản 3.20.x; không reset toàn bộ Flatsome.
 */

/* ---------- 1. Token ---------- */
:root {
	--hmc-primary: #00689c;
	--hmc-primary-hover: #00537d;
	--hmc-primary-soft: #eaf5fa;
	--hmc-coral: #d97e7e;
	--hmc-blush: #f8d9d2;
	--hmc-blush-soft: #fff4f1;
	--hmc-accent: #c14b21;
	--hmc-accent-hover: #a23c18;
	--hmc-heading: #10243a;
	--hmc-text: #334155;
	--hmc-muted: #64748b;
	--hmc-surface: #f5f8fa;
	--hmc-border: #e2e8f0;
	--hmc-success: #166534;
	--hmc-warning: #92400e;
	--hmc-error: #b91c1c;
	--hmc-font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--hmc-container: 1400px;
	--hmc-gutter: 16px;
	--hmc-gap: 12px;
	--hmc-section: 32px;
	--hmc-radius-sm: 8px;
	--hmc-radius: 12px;
	--hmc-radius-lg: 16px;
	--hmc-shadow: 0 4px 16px rgba(16, 36, 58, .06);
	--hmc-shadow-hover: 0 8px 24px rgba(16, 36, 58, .10);
	--hmc-sticky-top: 72px;
	--hmc-motion-fast: 160ms;
	--hmc-motion-base: 220ms;
	--hmc-motion-enter: 420ms;
	--hmc-ease-out: cubic-bezier(.22, 1, .36, 1);
	--hmc-ease-ui: cubic-bezier(.2, .7, .2, 1);
}
@media (min-width: 550px) { :root { --hmc-gutter: 20px; --hmc-gap: 16px; --hmc-section: 48px; } }
@media (min-width: 1024px) { :root { --hmc-gutter: 24px; --hmc-gap: 24px; --hmc-section: 72px; --hmc-sticky-top: 96px; } }
@media (min-width: 1280px) { :root { --hmc-gutter: 32px; --hmc-section: 80px; } }

/* ---------- 2. Nền tảng ---------- */
body.hmc {
	font-family: var(--hmc-font);
	color: var(--hmc-text);
	font-size: 16px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
.hmc h1, .hmc h2, .hmc h3, .hmc h4, .hmc h5, .hmc h6,
.hmc .heading-font, .hmc .nav > li > a, .hmc button, .hmc input, .hmc select, .hmc textarea, .hmc .button {
	font-family: var(--hmc-font);
}
.hmc h1, .hmc h2, .hmc h3, .hmc h4 { color: var(--hmc-heading); letter-spacing: -.01em; }
.hmc h1 { font-size: clamp(28px, 2.6vw, 40px); line-height: 1.25; font-weight: 700; }
.hmc h2 { font-size: clamp(24px, 2.2vw, 32px); line-height: 1.3; font-weight: 700; }
.hmc h3 { font-size: clamp(20px, 1.6vw, 24px); line-height: 1.4; font-weight: 600; }
.hmc h4 { font-size: clamp(17px, 1.2vw, 18px); line-height: 1.45; font-weight: 600; }
.hmc a { color: var(--hmc-primary); }
.hmc a:hover { color: var(--hmc-primary-hover); }
.hmc :focus-visible { outline: 2px solid var(--hmc-primary); outline-offset: 2px; }
.hmc [id] { scroll-margin-top: calc(var(--hmc-sticky-top) + 16px); }
.hmc .price, .hmc .amount, .hmc-card__price, .hmc-pdp__price { font-variant-numeric: tabular-nums; }
/* Flatsome tô .amount màu #111: số tiền kế thừa màu của khung giá (#C14B21; giá gạch giữ màu xám của del). */
.hmc .hmc-pdp__price .amount, .hmc .hmc-card__price .amount, .hmc .hmc-contactbox__price .amount, .hmc .hmc-sg__price .amount, .hmc .hmc-compare__price .amount, .hmc .hmc-sticky-cta .amount { color: inherit; }
.hmc-icon { flex: none; display: inline-block; vertical-align: middle; }
/* Thuộc tính hidden luôn thắng các quy tắc display của thành phần. */
.hmc [hidden] { display: none !important; }
/* Flatsome thụt lề mọi li (1.3em): bỏ cho danh sách giao diện của Hà My Care. */
.hmc ul[class*="hmc-"], .hmc ol[class*="hmc-"] { margin-left: 0; padding-left: 0; }
.hmc ul[class*="hmc-"] > li, .hmc ol[class*="hmc-"] > li, .hmc .hmc-catnav li, .hmc .hmc-toc li, .hmc .hmc-mega__col li, .hmc .hmc-mnav li, .hmc .hmc-fcontact li { margin-left: 0; }
.hmc .screen-reader-text:focus { clip: auto; height: auto; width: auto; }

/* Flatsome: container 1400px gồm cả gutter, các hàng UX Builder thẳng trục với container. */
.hmc .container, .hmc .container-width { max-width: var(--hmc-container); width: 100%; padding-left: var(--hmc-gutter); padding-right: var(--hmc-gutter); }
.hmc #main > .row:not(.row-collapse),
.hmc .custom-product-page > .row:not(.row-collapse),
.hmc .section-content > .row:not(.row-collapse),
.hmc .page-wrapper > .row:not(.row-collapse) {
	max-width: var(--hmc-container);
	padding-left: max(0px, calc(var(--hmc-gutter) - 15px));
	padding-right: max(0px, calc(var(--hmc-gutter) - 15px));
}
.hmc-container { box-sizing: border-box; width: 100%; max-width: var(--hmc-container); margin-inline: auto; padding-inline: var(--hmc-gutter); }
.hmc-section { padding-block: var(--hmc-section); }
/* Section của UX Builder: Flatsome ghi padding theo #id, nên cần !important để dùng nhịp khoảng cách chung. */
.hmc .section.hmc-section { padding-top: var(--hmc-section) !important; padding-bottom: var(--hmc-section) !important; }
.hmc .section.hmc-section > .section-content > .row > .col { padding-bottom: 0; }
.hmc .section.hmc-page-head { padding-top: 0 !important; padding-bottom: calc(var(--hmc-section) / 2) !important; }
.hmc .section.hmc-home-hero { padding-top: calc(var(--hmc-section) * .75) !important; padding-bottom: calc(var(--hmc-section) * .75) !important; }
.hmc .section.hmc-home-trust { padding-top: 24px !important; padding-bottom: 0 !important; }
.hmc-section--surface { background: var(--hmc-surface); }
.hmc-section--blush { background: var(--hmc-blush-soft); }
.hmc-section--soft { background: var(--hmc-primary-soft); }
.hmc-note { padding: 12px 16px; border: 1px dashed var(--hmc-border); border-radius: var(--hmc-radius-sm); color: var(--hmc-muted); font-size: 14px; }

/* ---------- 3. Nút, chip, nhãn ---------- */
.hmc-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 10px 20px; border-radius: 10px; border: 1px solid transparent;
	font: 600 15px/1.3 var(--hmc-font); text-decoration: none; text-transform: none; letter-spacing: 0;
	cursor: pointer; white-space: nowrap; margin: 0;
	transition: background-color var(--hmc-motion-fast) var(--hmc-ease-ui), color var(--hmc-motion-fast), border-color var(--hmc-motion-fast), box-shadow var(--hmc-motion-fast), transform var(--hmc-motion-fast);
}
.hmc-btn--primary { background: var(--hmc-primary); color: #fff !important; }
.hmc-btn--primary:hover { background: var(--hmc-primary-hover); color: #fff; box-shadow: 0 6px 18px rgba(0, 104, 156, .22); }
.hmc-btn--outline { background: #fff; color: var(--hmc-primary) !important; border-color: var(--hmc-primary); }
.hmc-btn--outline:hover { background: var(--hmc-primary-soft); }
.hmc-btn--accent { background: var(--hmc-accent); color: #fff !important; }
.hmc-btn--accent:hover { background: var(--hmc-accent-hover); }
.hmc-btn--ghost { background: transparent; color: var(--hmc-heading) !important; border-color: var(--hmc-border); }
.hmc-btn--ghost:hover { border-color: var(--hmc-primary); color: var(--hmc-primary) !important; }
.hmc-btn:active { transform: translateY(1px); }
.hmc-btn > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.hmc-textbtn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 2px; background: none; border: 0; color: var(--hmc-primary); font: 500 14px/1.4 var(--hmc-font); cursor: pointer; text-decoration: none; text-transform: none; letter-spacing: 0; margin: 0; min-height: 44px; }
.hmc-textbtn:hover { color: var(--hmc-primary-hover); text-decoration: underline; }
.hmc-textbtn[aria-pressed="true"] { color: var(--hmc-success); }
.hmc-iconbtn { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; margin: 0; border: 0; border-radius: 10px; background: transparent; color: var(--hmc-heading); cursor: pointer; }
.hmc-iconbtn:hover { background: var(--hmc-surface); }
.hmc-morelink { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; }
.hmc-morelink .hmc-icon { transition: transform var(--hmc-motion-fast) var(--hmc-ease-ui); }
.hmc-morelink:hover .hmc-icon { transform: translateX(3px); }
.hmc-badge { position: absolute; top: 10px; left: 10px; z-index: 1; padding: 3px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.5; }
.hmc-badge--sale { background: var(--hmc-accent); color: #fff; }
.hmc-badge--out { background: #fff; color: var(--hmc-muted); border: 1px solid var(--hmc-border); }
.hmc-badge--sale + .hmc-badge--out { top: 40px; }
.hmc-eyebrow { margin: 0 0 8px; color: var(--hmc-primary); font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.hmc-noprice { color: var(--hmc-primary); font-weight: 700; }
.hmc-stock { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; }
.hmc-stock.is-out { color: var(--hmc-error); }

/* ---------- 4. Đầu trang ---------- */
/* Chưa có file logo gốc: hiện tên Hà My Care bằng chữ. */
.hmc #logo a { color: var(--hmc-primary); font-size: 26px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; text-decoration: none; white-space: nowrap; text-transform: none; }
.hmc #logo a:hover { color: var(--hmc-primary-hover); }
@media (max-width: 849px) { .hmc #logo a { font-size: 21px; } }
.hmc .header-top { border-bottom: 1px solid var(--hmc-border); }
.hmc-topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; font-size: 13px; color: var(--hmc-text); }
.hmc-topbar__text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hmc-topbar__links { display: flex; align-items: center; gap: 16px; white-space: nowrap; }
.hmc-topbar__links a { display: inline-flex; align-items: center; gap: 4px; color: var(--hmc-text); text-decoration: none; }
.hmc-topbar__links a:hover { color: var(--hmc-primary); }
.hmc .header-top .html_topbar_left { flex: 1; }
.hmc .header-top .flex-left { flex: 1; }

.hmc .header-main .html_top_right_text { flex: 1 1 auto; width: 100%; }
.hmc .header-main .flex-left { flex: 1 1 auto; max-width: 600px; }
.hmc-search { position: relative; display: flex; align-items: center; width: 100%; max-width: 600px; margin: 0; }
.hmc-search__icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--hmc-muted); pointer-events: none; display: flex; }
.hmc .hmc-search__input {
	width: 100%; height: 48px; margin: 0; padding: 0 92px 0 44px;
	border: 1px solid var(--hmc-border); border-radius: 12px; background: var(--hmc-surface);
	font-size: 15px; color: var(--hmc-heading); box-shadow: none;
	transition: border-color var(--hmc-motion-fast), background-color var(--hmc-motion-fast), box-shadow var(--hmc-motion-fast);
}
.hmc .hmc-search__input:focus { background: #fff; border-color: var(--hmc-primary); box-shadow: 0 0 0 3px rgba(0, 104, 156, .12); outline: none; }
.hmc-search__input::-webkit-search-cancel-button { display: none; }
.hmc-search__clear, .hmc-search__submit { position: absolute; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 40px; height: 40px; margin: 0; padding: 0; border: 0; border-radius: 10px; cursor: pointer; }
.hmc-search__clear { right: 48px; background: transparent; color: var(--hmc-muted); }
.hmc-search__submit { right: 4px; background: var(--hmc-primary); color: #fff; }
.hmc-search__submit:hover { background: var(--hmc-primary-hover); }
.hmc-search__panel {
	position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 1000;
	max-height: min(70vh, 560px); overflow: auto; overscroll-behavior: contain;
	background: #fff; border: 1px solid var(--hmc-border); border-radius: 12px; box-shadow: var(--hmc-shadow-hover);
	animation: hmc-drop var(--hmc-motion-fast) var(--hmc-ease-out);
}
.hmc-search__panel[hidden] { display: none; }
.hmc-sg__group { padding: 8px 0; border-bottom: 1px solid var(--hmc-border); }
.hmc-sg__group:last-child { border-bottom: 0; }
.hmc-sg__label { margin: 0; padding: 4px 16px; font-size: 12px; font-weight: 600; color: var(--hmc-muted); text-transform: uppercase; letter-spacing: .04em; }
.hmc-sg__list { list-style: none; margin: 0; padding: 0; }
.hmc-sg__item { margin: 0; }
.hmc-sg__link { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px 16px; color: var(--hmc-heading); text-decoration: none; }
.hmc-sg__link--term { grid-template-columns: 20px minmax(0, 1fr) auto; }
.hmc-sg__item[aria-selected="true"] .hmc-sg__link, .hmc-sg__link:hover { background: var(--hmc-primary-soft); color: var(--hmc-heading); }
.hmc-sg__thumb { width: 56px; height: 56px; border: 1px solid var(--hmc-border); border-radius: 8px; background: #fff; object-fit: contain; }
.hmc-sg__name { display: block; font-size: 14px; font-weight: 600; line-height: 1.4; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.hmc-sg__name mark { background: none; color: var(--hmc-primary); padding: 0; }
.hmc-sg__meta { display: block; font-size: 12px; color: var(--hmc-muted); }
.hmc-sg__price { font-size: 14px; font-weight: 700; color: var(--hmc-accent); white-space: nowrap; }
.hmc-sg__all { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 12px 16px; font-weight: 600; font-size: 14px; text-decoration: none; border-top: 1px solid var(--hmc-border); }
.hmc-sg__empty { margin: 0; padding: 16px; color: var(--hmc-muted); font-size: 14px; }

.hmc-hcta { display: flex; align-items: center; gap: 8px; }
.hmc-hcta__item { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 4px 12px 4px 4px; border-radius: 12px; color: var(--hmc-heading) !important; text-decoration: none; transition: background-color var(--hmc-motion-fast); }
.hmc-hcta__item:hover { background: var(--hmc-primary-soft); }
.hmc-hcta__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--hmc-primary); color: #fff; }
.hmc-hcta__item--zalo .hmc-hcta__icon { background: #fff; color: var(--hmc-primary); border: 1px solid var(--hmc-primary); }
.hmc-hcta__text { display: flex; flex-direction: column; line-height: 1.25; }
.hmc-hcta__text small { font-size: 12px; color: var(--hmc-muted); }
.hmc-hcta__text strong { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.hmc-iconlink { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; color: var(--hmc-heading) !important; }
.hmc-iconlink:hover { background: var(--hmc-surface); }
.hmc-iconlink__badge { position: absolute; top: 2px; right: 2px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px; background: var(--hmc-accent); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.hmc-iconlink__badge[hidden] { display: none; }
.hmc .html_nav_position_text_top { display: flex; align-items: center; gap: 4px; }

/* Thanh điều hướng + bảng danh mục lớn */
.hmc .header-bottom { border-top: 1px solid var(--hmc-border); border-bottom: 1px solid var(--hmc-border); }
.hmc .header-bottom .nav > li > a { font-size: 15px; font-weight: 600; color: var(--hmc-heading); text-transform: none; letter-spacing: 0; }
.hmc .header-bottom .nav > li.active > a, .hmc .header-bottom .nav > li > a:hover, .hmc .header-bottom .nav > li.current-menu-item > a { color: var(--hmc-primary); }
.hmc-navcat { position: static; }
.hmc-navcat__btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; margin: 0; padding: 0 16px; border: 0; border-radius: 10px; background: var(--hmc-primary); color: #fff; font: 600 15px/1 var(--hmc-font); cursor: pointer; text-transform: none; letter-spacing: 0; }
.hmc-navcat__btn:hover, .hmc-navcat__btn[aria-expanded="true"] { background: var(--hmc-primary-hover); }
.hmc-navcat__chev { transition: transform var(--hmc-motion-base) var(--hmc-ease-ui); }
.hmc-navcat__btn[aria-expanded="true"] .hmc-navcat__chev { transform: rotate(180deg); }
/* Bảng danh mục neo vào .container của hàng menu (1400px): bỏ định vị của li/ul Flatsome để không bị bó theo nút. */
.hmc .header-bottom .header-bottom-nav, .hmc .header-bottom .header-bottom-nav > li.html { position: static; }
.hmc .header-bottom .flex-row.container { position: relative; }
.hmc-navcat__panel { position: absolute; left: 0; right: 0; top: 100%; z-index: 999; padding: 0 var(--hmc-gutter); }
.hmc-navcat__panel[hidden] { display: none; }
.hmc-navcat__inner { max-width: calc(var(--hmc-container) - 2 * var(--hmc-gutter)); margin: 8px auto 0; padding: 24px; background: #fff; border: 1px solid var(--hmc-border); border-radius: 16px; box-shadow: var(--hmc-shadow-hover); animation: hmc-drop var(--hmc-motion-base) var(--hmc-ease-out); }
.hmc .header-bottom .flex-row { position: relative; }
.hmc-mega { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 24px; text-align: left; }
.hmc-mega__cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 32px; }
.hmc-mega__title { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; color: var(--hmc-heading) !important; font-weight: 700; font-size: 15px; text-decoration: none; }
.hmc-mega__title .hmc-icon { color: var(--hmc-primary); }
.hmc-mega__col ul { list-style: none; margin: 0; padding: 0; }
.hmc-mega__col li { margin: 0; }
.hmc-mega__col li a { display: block; padding: 6px 0 6px 28px; color: var(--hmc-text); font-size: 14px; line-height: 1.4; text-decoration: none; }
.hmc-mega__col li a:hover { color: var(--hmc-primary); }
.hmc-mega__side { display: flex; flex-direction: column; gap: 16px; padding-left: 24px; border-left: 1px solid var(--hmc-border); }
.hmc-mega__label { margin: 0; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--hmc-muted); }
.hmc-mega__brands { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.hmc-mega__brands li { margin: 0; }
.hmc-mega__brands a { display: inline-block; padding: 6px 12px; border: 1px solid var(--hmc-border); border-radius: 999px; color: var(--hmc-heading); font-size: 14px; font-weight: 600; text-decoration: none; }
.hmc-mega__brands a:hover { border-color: var(--hmc-primary); color: var(--hmc-primary); }
.hmc-mega__banner { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 12px; background: var(--hmc-primary-soft); }
.hmc-mega__banner strong { color: var(--hmc-heading); font-size: 16px; }
.hmc-mega__banner span { font-size: 14px; color: var(--hmc-text); }
.hmc-mega__banner .hmc-btn { align-self: flex-start; min-height: 44px; }

/* Menu điện thoại */
.hmc-mnav { padding: 8px 0; }
.hmc-mnav__title { margin: 0; padding: 8px 20px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--hmc-muted); }
.hmc-mnav__group > summary { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 20px; cursor: pointer; list-style: none; font-weight: 600; color: var(--hmc-heading); }
.hmc-mnav__group > summary::-webkit-details-marker { display: none; }
.hmc-mnav__group > summary > .hmc-icon:first-child { color: var(--hmc-primary); }
.hmc-mnav__group > summary > span { flex: 1; }
.hmc-mnav__group[open] > summary > .hmc-icon:last-child { transform: rotate(180deg); }
.hmc-mnav__group ul { list-style: none; margin: 0; padding: 0 0 8px 50px; }
.hmc-mnav__group li { margin: 0; }
.hmc-mnav__group li a { display: block; padding: 10px 20px 10px 0; color: var(--hmc-text); font-size: 15px; text-decoration: none; }
.hmc .off-canvas .hmc-search { padding: 12px 20px; }
.hmc .off-canvas .hmc-search__panel { left: 20px; right: 20px; }

@media (max-width: 849px) {
	.hmc .header-bottom { border: 0; }
	.hmc-hcta__text { display: none; }
	.hmc-hcta__item { padding: 4px; }
	.hmc-hcta { gap: 4px; }
	.hmc .header-main .hmc-search { display: none; }
	.hmc .header-main .html_nav_position_text_top .hmc-iconlink { display: none; }
	.hmc .header-bottom .hmc-search { margin: 8px 0; max-width: none; }
	/* Ô tìm kiếm giãn hết chiều ngang (Flatsome căn giữa ul.mobile-nav và li co theo nội dung). */
	.hmc .header-bottom .mobile-nav { width: 100%; }
	.hmc .header-bottom .mobile-nav > li.html_top_right_text { flex: 1 1 auto; width: 100%; margin: 0; }
}
@media (max-width: 1023px) {
	.hmc-mega { grid-template-columns: 1fr; }
	.hmc-mega__cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hmc-mega__side { padding-left: 0; border-left: 0; }
}

/* ---------- 5. Breadcrumb ---------- */
.hmc-breadcrumbs { margin: 16px 0 12px; font-size: 14px; color: var(--hmc-muted); }
.hmc-breadcrumbs .rank-math-breadcrumb p { margin: 0; }
.hmc-breadcrumbs a { color: var(--hmc-muted); text-decoration: none; }
.hmc-breadcrumbs a:hover { color: var(--hmc-primary); text-decoration: underline; }
.hmc-breadcrumbs .separator { margin: 0 6px; color: #94a3b8; }
.hmc-breadcrumbs .last { color: var(--hmc-heading); }

/* ---------- 6. Thẻ và lưới ---------- */
.hmc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--hmc-gap); }
@media (min-width: 850px) { .hmc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .hmc-grid { grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); } }
@media (max-width: 359px) { .hmc-grid { grid-template-columns: 1fr; } }

.hmc-card {
	position: relative; display: flex; flex-direction: column; min-width: 0;
	background: #fff; border: 1px solid var(--hmc-border); border-radius: var(--hmc-radius);
	overflow: hidden;
	transition: transform var(--hmc-motion-base) var(--hmc-ease-ui), box-shadow var(--hmc-motion-base) var(--hmc-ease-ui), border-color var(--hmc-motion-base);
}
@media (hover: hover) {
	.hmc-card:hover { transform: translateY(-2px); box-shadow: var(--hmc-shadow-hover); border-color: #cbd5e1; }
	.hmc-card:hover .hmc-card__img { transform: scale(1.03); }
}
.hmc-card__media { position: relative; display: block; aspect-ratio: 1 / 1; padding: 12px; background: #fff; overflow: hidden; }
.hmc-card__img { width: 100%; height: 100%; object-fit: contain; transition: transform var(--hmc-motion-base) var(--hmc-ease-ui); }
.hmc-card__noimg { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; height: 100%; color: #94a3b8; font-size: 13px; background: var(--hmc-surface); border-radius: 8px; }
.hmc-card__body { display: flex; flex-direction: column; flex: 1; gap: 6px; padding: 12px 14px 14px; border-top: 1px solid var(--hmc-border); }
.hmc-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0; font-size: 12px; line-height: 1.5; }
.hmc-card__brand { color: var(--hmc-primary); font-weight: 600; text-decoration: none; text-transform: uppercase; letter-spacing: .03em; }
.hmc-card__model { color: var(--hmc-muted); }
.hmc .hmc-card__title { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.4; letter-spacing: 0; }
.hmc-card__title a { color: var(--hmc-heading); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hmc-card__title a:hover { color: var(--hmc-primary); }
.hmc-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.hmc-card__specs { list-style: none; margin: 0; padding: 0; font-size: 13px; line-height: 1.5; color: var(--hmc-text); }
.hmc-card__specs li { margin: 0; padding-left: 12px; position: relative; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hmc-card__specs li::before { content: ""; position: absolute; left: 0; top: .65em; width: 4px; height: 4px; border-radius: 50%; background: var(--hmc-coral); }
.hmc-card__specs span { color: var(--hmc-muted); }
.hmc-card__specs strong { font-weight: 600; color: var(--hmc-heading); }
.hmc-card__foot { margin-top: auto; padding-top: 8px; display: flex; flex-direction: column; gap: 10px; }
.hmc-card__price { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 2px 8px; margin: 0; padding-top: 10px; border-top: 1px dashed var(--hmc-border); text-align: center; font-size: 18px; font-weight: 700; line-height: 1.3; color: var(--hmc-accent); }
.hmc-card__price-label { color: var(--hmc-muted); font-size: 13px; font-weight: 500; }
.hmc-card__price del { color: var(--hmc-muted); font-size: 14px; font-weight: 400; margin-right: 6px; }
.hmc-card__price ins { text-decoration: none; }
.hmc-card__actions { position: relative; z-index: 1; display: flex; gap: 8px; }
.hmc-btn--card { flex: 1; min-height: 44px; padding: 8px 12px; font-size: 14px; }
.hmc-btn--card .hmc-icon { transition: transform var(--hmc-motion-fast) var(--hmc-ease-ui); }
.hmc-btn--card:hover .hmc-icon { transform: translateX(3px); }
.hmc-card__compare { display: grid; place-items: center; width: 44px; height: 44px; margin: 0; padding: 0; border: 1px solid var(--hmc-border); border-radius: 10px; background: #fff; color: var(--hmc-muted); cursor: pointer; }
.hmc-card__compare:hover { color: var(--hmc-primary); border-color: var(--hmc-primary); }
.hmc-card__compare[aria-pressed="true"] { background: var(--hmc-primary-soft); color: var(--hmc-primary); border-color: var(--hmc-primary); }
.hmc-card__compare[hidden] { display: none; }
@media (max-width: 549px) {
	.hmc-card__body { padding: 10px 10px 12px; }
	.hmc .hmc-card__title { font-size: 14px; }
	.hmc-card__actions { gap: 6px; }
	.hmc-btn--card { min-width: 0; padding: 6px 8px; font-size: 13px; }
	.hmc-btn--card .hmc-icon { display: none; }
	.hmc-card__compare { width: 40px; }
	.hmc-card__price { font-size: 16px; }
	.hmc-card__specs { display: none; }
	.hmc-card__media { padding: 8px; }
}

/* Danh mục */
.hmc-catgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--hmc-gap); }
@media (min-width: 850px) { .hmc-catgrid { grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); } }
.hmc-cat { position: relative; display: flex; gap: 16px; padding: 16px; background: #fff; border: 1px solid var(--hmc-border); border-radius: var(--hmc-radius); transition: transform var(--hmc-motion-base) var(--hmc-ease-ui), box-shadow var(--hmc-motion-base); }
@media (hover: hover) { .hmc-cat:hover { transform: translateY(-2px); box-shadow: var(--hmc-shadow-hover); } .hmc-cat:hover .hmc-cat__media img { transform: scale(1.04); } }
.hmc-cat__media { flex: none; display: grid; place-items: center; width: 88px; height: 88px; border-radius: 12px; background: var(--hmc-primary-soft); overflow: hidden; }
.hmc-cat__media img { width: 100%; height: 100%; object-fit: contain; transition: transform var(--hmc-motion-base) var(--hmc-ease-ui); }
.hmc-cat__icon { color: var(--hmc-primary); display: flex; }
.hmc-cat__body { min-width: 0; }
.hmc .hmc-cat__title { margin: 0 0 4px; font-size: 17px; line-height: 1.35; }
.hmc-cat__title a { color: var(--hmc-heading); text-decoration: none; }
.hmc-cat__title a::after { content: ""; position: absolute; inset: 0; }
.hmc-cat__text { margin: 0 0 8px; font-size: 14px; color: var(--hmc-text); line-height: 1.5; }
.hmc-cat__kids { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.hmc-cat__kids li { margin: 0; }
.hmc-cat__kids a { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--hmc-surface); color: var(--hmc-text); font-size: 13px; text-decoration: none; }
.hmc-cat__kids a:hover { background: var(--hmc-primary-soft); color: var(--hmc-primary); }
@media (max-width: 549px) { .hmc-catgrid { grid-template-columns: 1fr; } .hmc-cat__media { width: 64px; height: 64px; } }

/* Thương hiệu */
.hmc-brands { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--hmc-gap); }
.hmc-brand { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 24px; background: #fff; border: 1px solid var(--hmc-border); border-radius: var(--hmc-radius); transition: box-shadow var(--hmc-motion-base), transform var(--hmc-motion-base) var(--hmc-ease-ui); }
@media (hover: hover) { .hmc-brand:hover { transform: translateY(-2px); box-shadow: var(--hmc-shadow-hover); } }
.hmc .hmc-brand__name { margin: 0; font-size: 22px; }
.hmc-brand__name a { color: var(--hmc-heading); text-decoration: none; }
.hmc-brand__name a::after { content: ""; position: absolute; inset: 0; }
.hmc-brand__name img { max-height: 48px; width: auto; }
.hmc-brand p { margin: 0; font-size: 15px; }
.hmc-brand__more { display: flex; align-items: center; gap: 6px; margin-top: auto !important; color: var(--hmc-primary); font-weight: 600; }

/* Bài viết */
.hmc-posts { display: grid; grid-template-columns: 1fr; gap: var(--hmc-gap); }
@media (min-width: 550px) { .hmc-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .hmc-posts { grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); } }
.hmc-post { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--hmc-border); border-radius: var(--hmc-radius); overflow: hidden; transition: box-shadow var(--hmc-motion-base), transform var(--hmc-motion-base) var(--hmc-ease-ui); }
@media (hover: hover) { .hmc-post:hover { transform: translateY(-2px); box-shadow: var(--hmc-shadow-hover); } .hmc-post:hover .hmc-post__img { transform: scale(1.03); } }
.hmc-post__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--hmc-surface); }
.hmc-post__img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--hmc-motion-base) var(--hmc-ease-ui); }
.hmc-post__noimg { display: grid; place-items: center; height: 100%; color: #94a3b8; }
.hmc-post__body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 16px 20px 20px; }
.hmc-post__cat { position: relative; z-index: 1; align-self: flex-start; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; text-decoration: none; }
.hmc .hmc-post__title { margin: 0; font-size: 18px; line-height: 1.4; }
.hmc-post__title a { color: var(--hmc-heading); text-decoration: none; }
.hmc-post__title a::after { content: ""; position: absolute; inset: 0; }
.hmc-post__excerpt { margin: 0; font-size: 15px; color: var(--hmc-text); }
.hmc-post__meta { display: flex; align-items: center; gap: 6px; margin: auto 0 0; font-size: 13px; color: var(--hmc-muted); }
.hmc-post__meta span::before { content: "·"; margin: 0 6px; }

/* ---------- 7. Danh sách sản phẩm ---------- */
.hmc-archive { padding-bottom: var(--hmc-section); }
.hmc-archive__head { padding-bottom: 8px; }
.hmc-archive__title { margin: 0 0 12px; }
.hmc-archive__page { font-weight: 500; color: var(--hmc-muted); font-size: .7em; }
.hmc-archive__intro { max-width: none; margin-bottom: 20px; font-size: 16px; line-height: 1.65; }
.hmc-archive__intro p:last-child { margin-bottom: 0; }
.hmc-subcats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; list-style: none; margin: 0 0 24px; padding: 0; }
.hmc-subcats li { margin: 0; }
.hmc-subcat { display: flex; align-items: center; gap: 12px; height: 100%; min-height: 64px; padding: 12px 14px; border: 1px solid var(--hmc-border); border-radius: 12px; background: #fff; color: var(--hmc-heading); text-decoration: none; transition: border-color var(--hmc-motion-fast) var(--hmc-ease-ui), box-shadow var(--hmc-motion-fast) var(--hmc-ease-ui), transform var(--hmc-motion-fast) var(--hmc-ease-ui); }
.hmc-subcat__icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--hmc-primary-soft); color: var(--hmc-primary); }
.hmc-subcat__text { display: flex; flex-direction: column; min-width: 0; }
.hmc-subcat__name { font-size: 15px; font-weight: 600; line-height: 1.3; }
.hmc-subcat.is-current { border-color: var(--hmc-primary); background: var(--hmc-primary-soft); box-shadow: inset 0 0 0 1px var(--hmc-primary); }
.hmc-subcat.is-current .hmc-subcat__icon { background: var(--hmc-primary); color: #fff; }
.hmc-subcat:hover { border-color: var(--hmc-primary); color: var(--hmc-heading); box-shadow: var(--hmc-shadow); transform: translateY(-2px); }
.hmc-subcat__count { color: var(--hmc-muted); font-weight: 500; font-size: 13px; line-height: 1.3; }
/* Mobile: chip danh mục con thành một hàng cuộn ngang, không đẩy lưới sản phẩm xuống sâu. */
@media (max-width: 767px) {
	.hmc-subcats { display: flex; flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scroll-padding-inline: var(--hmc-gutter); margin-inline: calc(-1 * var(--hmc-gutter)); padding: 0 var(--hmc-gutter) 4px; scrollbar-width: none; }
	.hmc-subcats::-webkit-scrollbar { display: none; }
	.hmc-subcats li { flex: none; scroll-snap-align: start; }
	.hmc-subcat { white-space: nowrap; min-height: 56px; padding: 8px 14px 8px 10px; }
	.hmc-subcat__icon { width: 36px; height: 36px; }
}

.hmc-layout-sidebar { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--hmc-gap); align-items: start; }
@media (min-width: 1024px) { .hmc-layout-sidebar { grid-template-columns: 272px minmax(0, 1fr); } }
.hmc-catalog__main { min-width: 0; }
.hmc-sidebar-panel { min-width: 0; padding: 20px; border: 1px solid var(--hmc-border); border-radius: 14px; background: #fff; }
.hmc-panel__title { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 15px; font-weight: 700; color: var(--hmc-heading); }
/* Sidebar dính (desktop): vị trí top do JS tính (--hmc-stick) để sidebar cao hơn màn hình vẫn thấy được đáy. */
@media (min-width: 1024px) {
	.hmc-sticky, [data-hmc-sticky] { position: sticky; top: var(--hmc-stick, calc(var(--hmc-sticky-top) + 16px)); align-self: start; transition: top var(--hmc-motion-base) var(--hmc-ease-ui); }
	/* Cột sidebar PDP (UX Block, hàng dạng grid) giãn hết chiều cao phần mô tả để có chỗ dính. */
	.hmc .hmc-pdp-body > .hmc-pdp-aside { align-self: stretch; }
	.hmc .hmc-pdp-aside > .col-inner, .hmc-pdp__side { height: 100%; }
}

.hmc-filters__panel { background: #fff; border: 1px solid var(--hmc-border); border-radius: 14px; }
.hmc-filters__head { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 12px 20px; border-bottom: 1px solid var(--hmc-border); }
.hmc-filters__title { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 700; color: var(--hmc-heading); }
.hmc-filters__body { padding: 8px 20px 16px; }
.hmc-filters__foot { display: none; }
.hmc-filters__head .hmc-iconbtn { display: none; }
.hmc-catnav { padding: 8px 0 12px; border-bottom: 1px solid var(--hmc-border); }
.hmc-catnav__title { margin: 4px 0 6px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--hmc-muted); }
.hmc-catnav ul { list-style: none; margin: 0; padding: 0; }
.hmc-catnav li { margin: 0; }
.hmc-catnav a { display: flex; justify-content: space-between; gap: 8px; padding: 7px 10px; margin: 0 -10px; border-radius: 8px; color: var(--hmc-text); font-size: 14px; text-decoration: none; }
.hmc-catnav a:hover { background: var(--hmc-surface); color: var(--hmc-heading); }
.hmc-catnav a[aria-current="page"] { background: var(--hmc-primary-soft); color: var(--hmc-primary); font-weight: 600; }
.hmc-catnav__count { color: var(--hmc-muted); font-size: 13px; }
.hmc-facets { margin: 0; }
.hmc-facet { border-bottom: 1px solid var(--hmc-border); }
.hmc-facet > summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 48px; cursor: pointer; list-style: none; font-weight: 600; font-size: 15px; color: var(--hmc-heading); }
.hmc-facet > summary::-webkit-details-marker { display: none; }
.hmc-facet > summary .hmc-icon { color: var(--hmc-muted); transition: transform var(--hmc-motion-base) var(--hmc-ease-ui); }
.hmc-facet[open] > summary .hmc-icon { transform: rotate(180deg); }
.hmc-facet__list { display: flex; flex-direction: column; padding-bottom: 12px; }
.hmc-js .hmc-facet__list:not(.is-expanded) .hmc-check.is-more { display: none; }
.hmc-facet__more { align-self: flex-start; margin: 4px 0 0; padding: 6px 0; border: 0; background: none; color: var(--hmc-primary); font: 600 14px/1.4 var(--hmc-font); cursor: pointer; min-height: 36px; }
.hmc-facet__more[hidden] { display: none; }
.hmc-facet--flat { padding: 12px 0; }
.hmc-check { position: relative; display: flex; align-items: center; gap: 10px; min-height: 36px; margin: 0; padding: 4px 0; cursor: pointer; font-size: 14px; font-weight: 400; color: var(--hmc-text); }
.hmc-check input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.hmc-check__box { flex: none; display: grid; place-items: center; width: 20px; height: 20px; border: 1.5px solid #94a3b8; border-radius: 6px; background: #fff; color: transparent; transition: background-color var(--hmc-motion-fast), border-color var(--hmc-motion-fast); }
.hmc-check input:checked + .hmc-check__box { background: var(--hmc-primary); border-color: var(--hmc-primary); color: #fff; }
.hmc-check input:focus-visible + .hmc-check__box { outline: 2px solid var(--hmc-primary); outline-offset: 2px; }
.hmc-check__label { flex: 1; min-width: 0; }
.hmc-check__count { color: var(--hmc-muted); font-size: 13px; }
.hmc-check:hover .hmc-check__box { border-color: var(--hmc-primary); }
.hmc-facet__price { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding-bottom: 12px; }
.hmc-facet__price label { display: flex; flex-direction: column; gap: 4px; margin: 0; font-size: 13px; color: var(--hmc-muted); font-weight: 400; }
.hmc .hmc-facet__price input { height: 44px; margin: 0; border: 1px solid var(--hmc-border); border-radius: 8px; box-shadow: none; font-size: 14px; }
.hmc-facets__submit { width: 100%; margin-top: 16px; }
.hmc-js .hmc-facets__submit { display: none; }

.hmc-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.hmc-toolbar__filter { display: none; min-height: 44px; }
.hmc-toolbar__count { flex: 1; margin: 0; font-size: 15px; color: var(--hmc-text); }
.hmc-toolbar__sort { display: flex; align-items: center; gap: 8px; margin: 0; }
.hmc-toolbar__sort label { display: flex; margin: 0; color: var(--hmc-muted); }
.hmc .hmc-toolbar__sort select { height: 44px; margin: 0; padding: 0 36px 0 12px; border: 1px solid var(--hmc-border); border-radius: 10px; background-color: #fff; font-size: 14px; box-shadow: none; }
@media (max-width: 549px) {
	.hmc-toolbar { gap: 8px 12px; }
	.hmc-toolbar__sort { margin-left: auto; }
	.hmc-toolbar__count { order: 3; flex-basis: 100%; font-size: 14px; color: var(--hmc-muted); }
}
.hmc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.hmc-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 4px 12px; border-radius: 999px; background: var(--hmc-primary-soft); color: var(--hmc-primary); font-size: 14px; font-weight: 600; text-decoration: none; }
.hmc-chip:hover { background: #d6ebf5; }
.hmc-chip--clear { background: transparent; color: var(--hmc-text); border: 1px solid var(--hmc-border); }
.hmc-grid--catalog { transition: opacity var(--hmc-motion-fast); }
.hmc-catalog.is-loading .hmc-grid--catalog { opacity: .45; pointer-events: none; }
.hmc-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 32px; }
.hmc-page { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 10px; border: 1px solid var(--hmc-border); border-radius: 10px; background: #fff; color: var(--hmc-heading); font-weight: 600; font-size: 15px; text-decoration: none; }
.hmc-page:hover { border-color: var(--hmc-primary); color: var(--hmc-primary); }
.hmc-page.is-current { background: var(--hmc-primary); border-color: var(--hmc-primary); color: #fff; }
.hmc-page--gap { border: 0; background: none; min-width: 24px; }
.hmc-empty { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 48px 24px; text-align: center; color: var(--hmc-muted); border: 1px dashed var(--hmc-border); border-radius: var(--hmc-radius); }
.hmc-empty__title { margin: 0; font-size: 18px; font-weight: 700; color: var(--hmc-heading); }
.hmc-empty p { margin: 0; max-width: 480px; }
.hmc-empty .hmc-btn { margin-top: 8px; }
.hmc-archive__after { display: grid; gap: 32px; margin-top: var(--hmc-section); padding-top: var(--hmc-section); border-top: 1px solid var(--hmc-border); }
.hmc-archive__guide { max-width: 860px; }

@media (max-width: 1023px) {
	.hmc-toolbar__filter { display: inline-flex; }
	.hmc-filters { position: fixed; inset: 0; z-index: 1100; display: flex; justify-content: flex-start; background: rgba(16, 36, 58, .45); opacity: 0; visibility: hidden; transition: opacity var(--hmc-motion-base), visibility 0s linear var(--hmc-motion-base); }
	.hmc-filters.is-open { opacity: 1; visibility: visible; transition: opacity var(--hmc-motion-base); }
	.hmc-filters__panel { display: flex; flex-direction: column; width: min(88vw, 380px); height: 100%; border: 0; border-radius: 0; transform: translateX(-100%); transition: transform var(--hmc-motion-base) var(--hmc-ease-out); }
	.hmc-filters.is-open .hmc-filters__panel { transform: none; }
	.hmc-filters__body { flex: 1; overflow: auto; overscroll-behavior: contain; }
	.hmc-filters__head .hmc-iconbtn { display: inline-grid; }
	.hmc-filters__foot { display: block; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--hmc-border); }
	.hmc-filters__foot .hmc-btn { width: 100%; }
	html:not(.hmc-js) .hmc-filters { position: static; opacity: 1; visibility: visible; background: none; }
	html:not(.hmc-js) .hmc-filters__panel { transform: none; width: auto; height: auto; border: 1px solid var(--hmc-border); border-radius: 14px; }
}
html.hmc-lock, html.hmc-lock body { overflow: hidden; }

/* ---------- 8. Trang sản phẩm ---------- */
.hmc .custom-product-page { padding-bottom: var(--hmc-section); }
.hmc .custom-product-page > .row { margin-bottom: 0; }
.hmc-pdp-top { display: grid !important; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
.hmc-pdp-top > .col { max-width: none !important; flex-basis: auto !important; width: auto; padding: 0 !important; min-width: 0; }
/* Hàng dạng lưới: cột không có padding nên hàng tự giữ gutter để thẳng trục container 1400px. */
.hmc .custom-product-page > .hmc-pdp-top, .hmc .custom-product-page > .hmc-pdp-body { padding-left: var(--hmc-gutter) !important; padding-right: var(--hmc-gutter) !important; margin-left: auto !important; margin-right: auto !important; }
@media (min-width: 850px) { .hmc-pdp-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.hmc-pdp-gallery .product-gallery { margin: 0; }
@media (min-width: 1024px) { .hmc-pdp-gallery > .col-inner { position: sticky; top: calc(var(--hmc-sticky-top) + 16px); } }
.hmc-pdp-gallery .product-images { border: 1px solid var(--hmc-border); border-radius: 16px; background: #fff; overflow: hidden; }
.hmc-pdp-gallery .woocommerce-product-gallery__image { aspect-ratio: 1 / 1; background: #fff; }
.hmc-pdp-gallery .woocommerce-product-gallery__image a { display: block; width: 100%; height: 100%; }
.hmc-pdp-gallery .woocommerce-product-gallery__image img,
.hmc-pdp-gallery .woocommerce-product-gallery__image .wp-post-image { width: 100% !important; height: 100% !important; object-fit: contain; padding: 16px; }
.hmc-pdp-gallery .product-thumbnails { margin: 12px 0 0 !important; padding: 0 !important; }
.hmc-pdp-gallery .product-thumbnails .col { padding: 0 12px 0 0 !important; }
.hmc-pdp-gallery .product-thumbnails .flickity-viewport { margin: 0 -12px 0 0; }
.hmc-pdp-gallery .product-thumbnails a { display: block; aspect-ratio: 1 / 1; border: 1px solid var(--hmc-border); border-radius: 10px; background: #fff; overflow: hidden; transform: none !important; }
.hmc-pdp-gallery .product-thumbnails img { width: 100%; height: 100%; object-fit: contain; padding: 6px; opacity: .8; transition: opacity var(--hmc-motion-fast); }
.hmc-pdp-gallery .product-thumbnails .is-nav-selected a { border-color: var(--hmc-primary); box-shadow: 0 0 0 1px var(--hmc-primary); }
.hmc-pdp-gallery .product-thumbnails .is-nav-selected img, .hmc-pdp-gallery .product-thumbnails a:hover img { opacity: 1; }
.hmc-pdp-gallery .image-tools { display: none; }
.hmc-pdp-gallery .flickity-prev-next-button { width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .92); box-shadow: var(--hmc-shadow); opacity: 1; }
.hmc-pdp-gallery .woocommerce-product-gallery__image:not(:first-child) { display: none; }
.hmc-pdp-gallery .flickity-enabled .woocommerce-product-gallery__image { display: block; }
.hmc-pdp-gallery .flickity-slider > .woocommerce-product-gallery__image { width: 100%; }

.hmc-pdp-summary > .col-inner { display: flex; flex-direction: column; gap: 16px; }
.hmc-pdp__head { display: flex; flex-direction: column; gap: 6px; }
.hmc-pdp__brand { margin: 0; font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.hmc-pdp__brand a { text-decoration: none; }
.hmc .hmc-pdp__title { margin: 0; font-size: clamp(24px, 2.3vw, 34px); line-height: 1.3; font-weight: 700; letter-spacing: -.015em; color: var(--hmc-heading); }
.hmc-pdp__codes { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; font-size: 14px; color: var(--hmc-muted); }
.hmc-pdp__codes strong { color: var(--hmc-heading); font-weight: 600; }
.hmc-pdp__rating { display: inline-flex; align-items: center; gap: 4px; color: var(--hmc-text); text-decoration: none; }
.hmc-pdp__rating .hmc-icon { color: #b45309; }
.hmc-pdp__excerpt { padding: 14px 16px; border: 1px solid var(--hmc-border); border-radius: 12px; background: var(--hmc-surface); font-size: 16px; line-height: 1.6; color: var(--hmc-text); }
.hmc-pdp__excerpt p { margin: 0; }
.hmc-pdp__excerpt p + p { margin-top: 8px; }
/* Khối giá: nhãn "Giá sản phẩm" + giá nổi bật (40.2: #C14B21, 26–30px). */
.hmc-pdp__price { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; padding: 14px 18px; border: 1px solid #f3d3c6; border-left: 4px solid var(--hmc-accent); border-radius: 12px; background: #fff6f2; }
.hmc-pdp__price-label { display: inline-flex; align-items: center; gap: 8px; color: var(--hmc-heading); font-size: 15px; font-weight: 600; line-height: 1.3; }
.hmc-pdp__price-label .hmc-icon { color: var(--hmc-accent); }
.hmc-pdp__price .price { margin: 0; font-size: clamp(26px, 2.1vw, 30px); line-height: 1.2; font-weight: 800; letter-spacing: -.01em; color: var(--hmc-accent); }
.hmc-pdp__price .hmc-stock { flex-basis: 100%; }
.hmc-pdp__price .price del { margin-right: 8px; color: var(--hmc-muted); font-size: .6em; font-weight: 500; }
.hmc-pdp__price .price ins { text-decoration: none; }
.hmc-pdp__price .hmc-noprice { color: var(--hmc-accent); }

.hmc-specs { border: 1px solid var(--hmc-border); border-radius: 12px; background: #fff; overflow: hidden; }
.hmc-specs__table { width: 100%; margin: 0; border: 0; border-collapse: collapse; table-layout: fixed; font-size: 15px; }
.hmc-specs__caption { padding: 12px 16px; text-align: left; caption-side: top; font-size: 16px; font-weight: 700; color: var(--hmc-heading); background: var(--hmc-surface); border-bottom: 1px solid var(--hmc-border); }
.hmc-specs__table th, .hmc-specs__table td { padding: 12px 16px; border: 0; border-bottom: 1px solid var(--hmc-border); vertical-align: top; line-height: 1.5; text-align: left; overflow-wrap: anywhere; }
.hmc-specs__table th { width: 48%; font-weight: 400; color: var(--hmc-muted); text-transform: none; letter-spacing: 0; font-size: 15px; }
.hmc-specs__table td { font-weight: 600; color: var(--hmc-heading); font-size: 15px; /* Flatsome đặt td .9em */ }
.hmc-specs__table tr:last-child th, .hmc-specs__table tr:last-child td { border-bottom: 0; }
.hmc-js .hmc-specs:not(.is-open) tr.is-extra { display: none; }
.hmc-js .hmc-specs:not(.is-open) .hmc-specs__toggle ~ * { display: none; }
.hmc-specs__toggle { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; min-height: 48px; margin: 0; padding: 8px 16px; border: 0; border-top: 1px solid var(--hmc-border); background: #fff; color: var(--hmc-primary); font: 600 15px/1.3 var(--hmc-font); cursor: pointer; text-transform: none; letter-spacing: 0; }
.hmc-specs__toggle:hover { background: var(--hmc-primary-soft); }
.hmc-specs__toggle[hidden] { display: none; }
.hmc-specs__toggle .hmc-icon { transition: transform var(--hmc-motion-base) var(--hmc-ease-ui); }
.hmc-specs.is-open .hmc-specs__toggle .hmc-icon { transform: rotate(180deg); }
@media (max-width: 549px) { .hmc-specs__table, .hmc-specs__table th, .hmc-specs__table td { font-size: 14px; } .hmc-specs__table th, .hmc-specs__table td { padding: 12px; } }

.hmc-ctas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.hmc-ctas > :only-child { grid-column: 1 / -1; }
.hmc-ctas .hmc-btn { min-height: 50px; border-radius: 10px; font-size: 15px; padding-inline: 14px; }
@media (max-width: 379px) { .hmc-ctas--pdp, .hmc-ctas--box { grid-template-columns: 1fr; } }
.hmc-pdp__cta { display: flex; flex-direction: column; gap: 8px; }
.hmc-pdp__links { display: flex; flex-wrap: wrap; gap: 0 20px; }
.hmc-pdp__links:empty { display: none; }
.hmc-pdp__links [hidden] { display: none; }

.hmc-pdp-trust { margin-top: 32px !important; }
.hmc-pdp-trust:not(:has(.hmc-tiles)) { display: none !important; }
.hmc-pdp-crumbs > .col, .hmc-pdp-trust > .col, .hmc-pdp-related > .col { padding-bottom: 0 !important; }
.hmc-pdp-crumbs .hmc-breadcrumbs { margin-bottom: 16px; }
.hmc-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--hmc-gap); list-style: none; margin: 0; padding: 0; }
@media (min-width: 850px) { .hmc-tiles { grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); } }
@media (max-width: 379px) { .hmc-tiles { grid-template-columns: 1fr; } }
.hmc-tile { margin: 0; min-width: 0; }
.hmc-tile__inner { display: flex; align-items: flex-start; gap: 14px; height: 100%; padding: 18px; border: 1px solid var(--hmc-border); border-radius: var(--hmc-radius); background: #fff; color: var(--hmc-text); text-decoration: none; transition: border-color var(--hmc-motion-base), box-shadow var(--hmc-motion-base), transform var(--hmc-motion-base) var(--hmc-ease-ui); }
a.hmc-tile__inner:hover { border-color: var(--hmc-primary); box-shadow: var(--hmc-shadow); color: var(--hmc-text); }
.hmc-tile__icon { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--hmc-primary-soft); color: var(--hmc-primary); }
.hmc-tile__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.hmc-tile__title { color: var(--hmc-heading); font-size: 16px; font-weight: 700; line-height: 1.35; }
.hmc-tile__text { font-size: 14px; line-height: 1.5; }
.hmc-tile__cta { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; color: var(--hmc-primary); font-size: 14px; font-weight: 600; }
.hmc-tiles--needs .hmc-tile__icon { background: var(--hmc-blush-soft); color: var(--hmc-accent); }
.hmc-tiles--steps { counter-reset: hmc-step; }
.hmc-tiles--steps .hmc-tile { counter-increment: hmc-step; }
.hmc-tiles--steps .hmc-tile__title::before { content: counter(hmc-step) ". "; color: var(--hmc-primary); }
@media (max-width: 549px) { .hmc-tile__inner { flex-direction: column; gap: 10px; padding: 14px; } .hmc-tile__icon { width: 40px; height: 40px; } }

.hmc-pdp-body { display: grid !important; grid-template-columns: minmax(0, 1fr); gap: 32px; margin-top: 40px !important; align-items: start; }
.hmc-pdp-body > .col { max-width: none !important; flex-basis: auto !important; padding: 0 !important; min-width: 0; }
@media (min-width: 1024px) { .hmc-pdp-body { grid-template-columns: minmax(0, 1fr) 300px; } }
.hmc-pdp-main > .col-inner { display: flex; flex-direction: column; gap: 24px; }
.hmc-prose { max-width: 800px; font-size: 16px; line-height: 1.75; color: var(--hmc-text); }
.hmc-prose > :first-child { margin-top: 0; }
.hmc-prose h2 { margin: 40px 0 12px; font-size: clamp(22px, 2vw, 28px); }
.hmc-prose h3 { margin: 28px 0 8px; font-size: 20px; }
.hmc-prose p, .hmc-prose ul, .hmc-prose ol { margin: 0 0 16px; }
.hmc-prose ul, .hmc-prose ol { padding-left: 22px; }
.hmc-prose li { margin-bottom: 6px; margin-left: 0; }
.hmc-prose ul li { list-style: disc; }
.hmc-prose ol li { list-style: decimal; }
.hmc-prose ul li::marker { color: var(--hmc-coral); }
.hmc-prose a { text-decoration: underline; text-underline-offset: 3px; }
.hmc-prose img { height: auto; border-radius: 12px; }
/* Ảnh mô tả dài: bản vuông 1000×1000, hiện vừa cột nội dung, giữ tỉ lệ 1:1 để không nhảy bố cục. */
.hmc-prose img.hmc-desc-img { display: block; width: 100%; max-width: 1000px; height: auto; aspect-ratio: 1 / 1; margin: 24px auto; border: 1px solid var(--hmc-border); border-radius: 16px; background: #fff; object-fit: contain; }
.hmc-prose p > img.hmc-desc-img:only-child { margin-block: 8px; }
.hmc-prose .hmc-figure img.hmc-desc-img, .hmc-prose img.hmc-desc-img { max-height: none; }
.hmc-prose .hmc-figure img.hmc-desc-img { margin: 0 auto; }
.hmc-prose table { width: 100%; display: block; overflow-x: auto; border-collapse: collapse; font-size: 15px; }
.hmc-prose th, .hmc-prose td { padding: 10px 12px; border: 1px solid var(--hmc-border); }
.hmc-figure { margin: 24px 0; }
.hmc-figure img { display: block; width: 100%; max-height: 560px; object-fit: contain; background: #fff; border: 1px solid var(--hmc-border); border-radius: 14px; }
.hmc-figure figcaption { margin-top: 8px; font-size: 14px; color: var(--hmc-muted); text-align: center; }
.hmc-pdp__content { max-width: 860px; }

.hmc-contactbox { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: center; max-width: 860px; padding: 20px; border: 1px solid var(--hmc-border); border-radius: 14px; background: var(--hmc-primary-soft); }
@media (min-width: 850px) { .hmc-contactbox { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); padding: 24px; } }
.hmc-contactbox p { margin: 0; }
.hmc-contactbox__info { display: flex; flex-direction: column; gap: 4px; }
.hmc-contactbox__name { color: var(--hmc-heading); font-weight: 700; font-size: 17px; line-height: 1.4; }
.hmc-contactbox__price { font-size: 20px; font-weight: 700; color: var(--hmc-accent); }
.hmc-contactbox__price .hmc-noprice { color: var(--hmc-accent); }
.hmc-contactbox__phone { font-size: 15px; }
.hmc-contactbox__note { font-size: 14px; color: var(--hmc-muted); }

.hmc-box { max-width: 860px; padding: 20px; border: 1px solid var(--hmc-border); border-radius: 14px; background: #fff; }
.hmc .hmc-box__title { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 18px; }
.hmc-box__title .hmc-icon { color: var(--hmc-primary); }
.hmc-box__body { font-size: 15px; }
.hmc-box__body ul { margin: 0; padding-left: 20px; }
.hmc-box__body li { margin: 0 0 4px; list-style: disc; }
.hmc-box__body p:last-child { margin-bottom: 0; }
.hmc-box--warn { background: #fffbeb; border-color: #fde68a; }
.hmc-box--warn .hmc-box__title .hmc-icon { color: var(--hmc-warning); }
.hmc-section-block { max-width: 860px; }
.hmc .hmc-h2 { margin: 0 0 16px; font-size: clamp(22px, 2vw, 28px); }

.hmc-faq { display: flex; flex-direction: column; gap: 8px; }
.hmc-faq__item { border: 1px solid var(--hmc-border); border-radius: 12px; background: #fff; }
.hmc-faq__item > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 12px 16px; cursor: pointer; list-style: none; font-weight: 600; font-size: 16px; color: var(--hmc-heading); line-height: 1.45; }
.hmc-faq__item > summary::-webkit-details-marker { display: none; }
.hmc-faq__item > summary .hmc-icon { color: var(--hmc-muted); transition: transform var(--hmc-motion-base) var(--hmc-ease-ui); }
.hmc-faq__item[open] > summary .hmc-icon { transform: rotate(180deg); }
.hmc-faq__item[open] { border-color: #cbd5e1; }
.hmc-faq__answer { padding: 0 16px 16px; font-size: 15px; }
.hmc-faq__answer p:last-child { margin-bottom: 0; }

.hmc-pdp__side .hmc-sticky { display: flex; flex-direction: column; gap: 16px; }
.hmc-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: hmc-toc; }
.hmc-toc li { margin: 0; counter-increment: hmc-toc; }
.hmc-toc a { display: flex; gap: 8px; padding: 8px 10px; margin: 0 -10px; border-radius: 8px; color: var(--hmc-text); font-size: 14px; line-height: 1.45; text-decoration: none; }
.hmc-toc a::before { content: counter(hmc-toc); flex: none; min-width: 18px; color: var(--hmc-muted); font-variant-numeric: tabular-nums; }
.hmc-toc a:hover { background: var(--hmc-surface); color: var(--hmc-heading); }
.hmc-toc a.is-active { background: var(--hmc-primary-soft); color: var(--hmc-primary); font-weight: 600; }
.hmc-minilist { list-style: none; margin: 0 0 8px; padding: 0; }
.hmc-minilist li { margin: 0; }
.hmc-minilist a { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 10px; align-items: center; padding: 8px 0; color: var(--hmc-heading); font-size: 14px; line-height: 1.4; text-decoration: none; border-bottom: 1px solid var(--hmc-border); }
.hmc-minilist li:last-child a { border-bottom: 0; }
.hmc-minilist img { width: 56px; height: 56px; object-fit: contain; border: 1px solid var(--hmc-border); border-radius: 8px; background: #fff; }
.hmc-minilist a:hover span { color: var(--hmc-primary); }
@media (max-width: 1023px) { .hmc-pdp__side .hmc-toc { display: none; } }

.hmc-related { max-width: none; margin-top: var(--hmc-section); }

/* Thanh hai nút trên điện thoại */
.hmc-stickybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 990; padding: 10px var(--hmc-gutter) calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .97); border-top: 1px solid var(--hmc-border); box-shadow: 0 -6px 20px rgba(16, 36, 58, .08); transform: translateY(110%); transition: transform var(--hmc-motion-base) var(--hmc-ease-out); }
.hmc-stickybar.is-visible { transform: none; }
.hmc-stickybar[hidden] { display: none; }
.hmc-stickybar .hmc-btn { min-height: 48px; }
body.hmc-has-stickybar { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
@media (min-width: 850px) { .hmc-stickybar { display: none !important; } body.hmc-has-stickybar { padding-bottom: 0; } }

/* ---------- 9. Tiêu đề khối, trang chủ ---------- */
.hmc-heading { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 24px; }
.hmc-heading--center { flex-direction: column; align-items: center; text-align: center; }
.hmc-heading__main { min-width: 0; max-width: none; }
.hmc-heading--left .hmc-heading__main { flex: 1 1 320px; }
.hmc-heading__text { max-width: 760px; }
.hmc-heading--center .hmc-heading__text { margin-inline: auto; }
.hmc-heading__title { margin: 0; }
.hmc-heading__text { margin: 8px 0 0; font-size: 16px; color: var(--hmc-text); }
.hmc-features ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
.hmc-feature { display: flex; gap: 12px; margin: 0; padding: 14px; border: 1px solid var(--hmc-border); border-radius: 12px; background: #fff; }
.hmc-feature__icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: var(--hmc-primary-soft); color: var(--hmc-primary); }
.hmc-feature strong { display: block; color: var(--hmc-heading); font-size: 15px; }
.hmc-feature span span { display: block; font-size: 14px; color: var(--hmc-text); }

/* Hero trang chủ: tiêu đề cả hàng; dưới chia 56/44 – trái đoạn trả lời trước + nút + 3 dữ kiện, phải 3 ảnh sản phẩm. */
.hmc .section.hmc-home-hero { background: linear-gradient(180deg, #eaf5fa 0%, #f4f9fc 100%); }
.hmc-hero { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "body" "media"; gap: 24px; }
.hmc-hero__head { grid-area: head; min-width: 0; }
.hmc-hero__body { grid-area: body; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 24px; }
.hmc-hero__media { grid-area: media; }
@media (min-width: 1024px) {
	.hmc-hero { grid-template-columns: minmax(0, 56fr) minmax(0, 44fr); grid-template-areas: "head head" "body media"; column-gap: 56px; row-gap: 32px; }
}
.hmc-hero__eyebrow { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; margin: 0 0 16px; padding: 6px 16px 6px 10px; border: 1px solid rgba(0, 104, 156, .18); border-radius: 999px; background: #fff; color: var(--hmc-muted); font-size: 14px; line-height: 1.4; box-shadow: 0 1px 2px rgba(16, 36, 58, .05); }
.hmc-hero__eyebrow .hmc-icon { flex: none; color: var(--hmc-primary); }
.hmc-hero__eyebrow strong { color: var(--hmc-primary); font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.hmc-hero__eyebrow span { padding-left: 10px; border-left: 1px solid var(--hmc-border); }
.hmc .hmc-hero__title { margin: 0; color: var(--hmc-heading); font-size: clamp(30px, 3.5vw, 48px) !important; line-height: 1.15 !important; letter-spacing: -.025em !important; }
.hmc .hmc-hero__answer { margin: 0; padding: 18px 22px; border: 1px solid rgba(0, 104, 156, .14); border-left: 4px solid var(--hmc-primary); border-radius: 14px; background: #fff; color: var(--hmc-text); font-size: 16.5px; line-height: 1.7; box-shadow: 0 1px 2px rgba(16, 36, 58, .04), 0 12px 32px rgba(16, 36, 58, .06); }
.hmc-hero__answer strong { color: var(--hmc-heading); font-weight: 700; }
.hmc-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hmc-hero__actions .hmc-ctas { display: contents; }
.hmc-hero__actions .hmc-btn { min-height: 50px; padding-inline: 22px; border-radius: 12px; font-size: 15px; }
.hmc-hero__actions .hmc-cta-call { background: #fff; color: var(--hmc-primary) !important; border-color: var(--hmc-primary); }
.hmc-hero__actions .hmc-cta-call:hover { background: var(--hmc-primary-soft); box-shadow: none; }
.hmc-hero__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 20px 0 0; border-top: 1px solid rgba(0, 104, 156, .15); list-style: none; }
.hmc-hero__facts li { margin: 0; min-width: 0; }
.hmc-hero__fact { display: flex; align-items: flex-start; gap: 12px; color: inherit; text-decoration: none; }
.hmc-hero__fact .hmc-icon { flex: none; box-sizing: content-box; padding: 8px; border-radius: 10px; background: #fff; color: var(--hmc-primary); box-shadow: 0 1px 2px rgba(16, 36, 58, .08); }
.hmc-hero__fact > span { min-width: 0; }
.hmc-hero__fact b { display: block; color: var(--hmc-heading); font-size: 15px; font-weight: 700; line-height: 1.35; }
.hmc-hero__fact small { display: -webkit-box; margin-top: 2px; overflow: hidden; color: var(--hmc-muted); font-size: 13px; line-height: 1.45; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
a.hmc-hero__fact:hover b { color: var(--hmc-primary); }

.hmc-hero__media { position: relative; isolation: isolate; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(0, 1fr); gap: 14px; height: clamp(300px, 80vw, 460px); }
.hmc-hero__media::before { content: ""; position: absolute; inset: -28px 0 -28px 4%; z-index: -1; background: radial-gradient(ellipse closest-side at 74% 30%, rgba(248, 217, 210, .95), transparent), radial-gradient(ellipse closest-side at 24% 78%, rgba(0, 104, 156, .12), transparent); pointer-events: none; }
.hmc-hero__tile { position: relative; display: block; min-width: 0; min-height: 0; overflow: hidden; border: 1px solid var(--hmc-border); border-radius: 18px; background: #fff; box-shadow: 0 1px 2px rgba(16, 36, 58, .04), 0 10px 28px rgba(16, 36, 58, .07); transition: transform var(--hmc-motion-base) var(--hmc-ease-ui), box-shadow var(--hmc-motion-base) var(--hmc-ease-ui), border-color var(--hmc-motion-base); }
.hmc-hero__tile:hover { transform: translateY(-3px); border-color: rgba(0, 104, 156, .3); box-shadow: var(--hmc-shadow-hover); }
.hmc-hero__tile img { position: absolute; top: 16px; left: 16px; width: calc(100% - 32px); height: calc(100% - 32px); object-fit: contain; transition: transform var(--hmc-motion-base) var(--hmc-ease-ui); }
.hmc-hero__tile:hover img { transform: scale(1.04); }
@media (min-width: 1024px) {
	.hmc-hero__media { height: auto; min-height: 460px; gap: 16px; }
}
@media (min-width: 1024px) and (max-width: 1199px) {
	.hmc-hero__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hmc-hero__actions > .hmc-btn:first-child { grid-column: 1 / -1; }
	.hmc-hero__actions .hmc-btn { padding-inline: 12px; }
}
@media (max-width: 549px) {
	.hmc-hero { gap: 20px; }
	.hmc-hero__body { gap: 20px; }
	.hmc-hero__eyebrow { padding: 6px 14px 6px 10px; border-radius: 14px; font-size: 13px; }
	.hmc-hero__eyebrow span { flex-basis: 100%; padding-left: 26px; border-left: 0; }
	.hmc-hero__eyebrow strong { font-size: 11.5px; }
	.hmc .hmc-hero__answer { padding: 14px 16px; font-size: 15.5px; line-height: 1.65; }
	.hmc-hero__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.hmc-hero__actions > .hmc-btn:first-child { grid-column: 1 / -1; }
	.hmc-hero__actions .hmc-btn { padding-inline: 10px; font-size: 14.5px; }
	.hmc-hero__facts { gap: 10px; padding-top: 16px; }
	.hmc-hero__fact { flex-direction: column; gap: 8px; }
	.hmc-hero__fact b { font-size: 13.5px; }
	.hmc-hero__fact small { display: none; }
	.hmc-hero__media { gap: 10px; }
	.hmc-hero__tile { border-radius: 14px; }
	.hmc-hero__tile img { top: 10px; left: 10px; width: calc(100% - 20px); height: calc(100% - 20px); }
}
@media (prefers-reduced-motion: reduce) { .hmc-hero__tile, .hmc-hero__tile:hover, .hmc-hero__tile img, .hmc-hero__tile:hover img { transition: none; transform: none; } }
.hmc-band { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: center; padding: 28px; border-radius: 20px; background: var(--hmc-primary); color: #fff; }
@media (min-width: 850px) { .hmc-band { grid-template-columns: minmax(0, 1fr) auto; padding: 40px 48px; } }
.hmc-band h2 { color: #fff; margin: 0 0 8px; }
.hmc-band p { margin: 0; color: rgba(255, 255, 255, .92); font-size: 16px; }
.hmc-band .hmc-btn--primary { background: #fff; color: var(--hmc-primary) !important; }
.hmc-band .hmc-btn--primary:hover { background: var(--hmc-primary-soft); }
.hmc-band .hmc-btn--outline { background: transparent; color: #fff !important; border-color: rgba(255, 255, 255, .8); }
.hmc-band .hmc-btn--outline:hover { background: rgba(255, 255, 255, .12); }
.hmc-band .hmc-ctas { min-width: min(100%, 420px); }

/* ---------- 10. So sánh ---------- */
.hmc-compare__scroll { overflow-x: auto; border: 1px solid var(--hmc-border); border-radius: 14px; }
.hmc-compare__table { min-width: 640px; width: 100%; margin: 0; border-collapse: separate; border-spacing: 0; font-size: 15px; }
.hmc-compare__table th, .hmc-compare__table td { padding: 12px 14px; border: 0; border-bottom: 1px solid var(--hmc-border); vertical-align: top; text-align: left; }
.hmc-compare__table thead th { background: #fff; }
.hmc-compare__table tbody th { position: sticky; left: 0; z-index: 1; width: 200px; background: var(--hmc-surface); color: var(--hmc-muted); font-weight: 500; text-transform: none; letter-spacing: 0; }
.hmc-compare__table td { font-weight: 600; color: var(--hmc-heading); }
.hmc-compare__table tr.is-diff td { background: #fffaf3; }
.hmc-compare__table td.is-missing { color: var(--hmc-muted); font-weight: 400; font-style: italic; }
.hmc-compare__head { display: flex; flex-direction: column; gap: 8px; }
.hmc-compare__head a:first-child { display: flex; flex-direction: column; gap: 8px; color: var(--hmc-heading); font-weight: 600; text-decoration: none; }
.hmc-compare__head img { width: 120px; height: 120px; object-fit: contain; }
.hmc-compare__price { color: var(--hmc-accent); font-weight: 700; }
.hmc-compare__remove { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--hmc-muted); }
.hmc-compare__note { margin-top: 12px; font-size: 14px; color: var(--hmc-muted); }
.hmc-cmpbar { position: fixed; left: 50%; bottom: 16px; z-index: 980; display: flex; align-items: center; gap: 12px; max-width: calc(100% - 32px); padding: 10px 10px 10px 18px; border-radius: 14px; background: var(--hmc-heading); color: #fff; box-shadow: var(--hmc-shadow-hover); transform: translateX(-50%); font-size: 14px; }
.hmc-cmpbar[hidden] { display: none; }
.hmc-cmpbar .hmc-btn { min-height: 40px; padding: 6px 14px; background: #fff; color: var(--hmc-heading) !important; }
.hmc-cmpbar button.hmc-iconbtn { color: #fff; width: 40px; height: 40px; }
.hmc-cmpbar button.hmc-iconbtn:hover { background: rgba(255, 255, 255, .12); }
body.hmc-has-stickybar .hmc-cmpbar { bottom: calc(80px + env(safe-area-inset-bottom)); }

/* ---------- 11. Liên hệ ---------- */
.hmc-contacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--hmc-gap); list-style: none; margin: 0; padding: 0; }
.hmc-contact { display: flex; gap: 14px; margin: 0; padding: 20px; border: 1px solid var(--hmc-border); border-radius: 14px; background: #fff; }
.hmc-contact__icon { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--hmc-primary-soft); color: var(--hmc-primary); }
.hmc-contact strong { display: block; color: var(--hmc-heading); }
.hmc-contact a, .hmc-contact span span { font-size: 16px; overflow-wrap: anywhere; }
.hmc-contactnote { display: flex; gap: 12px; align-items: flex-start; padding: 16px 20px; border: 1px solid var(--hmc-border); border-radius: 14px; background: var(--hmc-surface); }
.hmc-contactnote p { margin: 0; }

/* ---------- 12. Chân trang ----------
 * Bố cục: dải tư vấn (gọi kèm số, Zalo) → lưới chính → dòng cuối.
 * Lưới chính: ≥1024px 5 cột (giới thiệu rộng hơn, 4 cột liên kết bằng nhau); 600–1023px giới thiệu một hàng, 4 cột liên kết;
 * <600px liên kết 2 cột (không đóng/mở). Cột giới thiệu không lặp hotline/Zalo đã có ở dải tư vấn.
 */
.hmc .footer-wrapper { background: var(--hmc-heading); color: rgba(255, 255, 255, .8); }
.hmc-footer { padding-block: 48px 0; }
.hmc-footer .row { row-gap: 0; }
/* Bỏ khoảng trống thừa cuối trang (padding của section UX Builder theo #id + cột Flatsome). */
.footer-wrapper .hmc-footer { padding-bottom: 0 !important; }
.hmc-footer .row:last-child > .col { padding-bottom: 0; }
/* Dải tư vấn */
.hmc-fcta { display: flex; align-items: center; gap: 20px; margin: 0 0 40px; padding: 24px 28px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 16px; background: linear-gradient(135deg, rgba(0, 104, 156, .35), rgba(255, 255, 255, .04)); }
.hmc-fcta__icon { display: grid; place-items: center; flex: none; width: 56px; height: 56px; border-radius: 14px; background: var(--hmc-primary); color: #fff; }
.hmc-fcta__text { flex: 1; min-width: 0; }
.hmc-fcta__title { margin: 0 0 4px; color: #fff; font-size: 20px; font-weight: 700; line-height: 1.3; }
.hmc-fcta__text p:last-child { margin: 0; color: rgba(255, 255, 255, .78); font-size: 15px; }
.hmc-fcta .hmc-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hmc-fcta .hmc-btn { min-height: 48px; }
.hmc-fcta .hmc-btn--primary { background: #fff; border-color: #fff; color: var(--hmc-heading) !important; }
.hmc-fcta .hmc-btn--primary:hover { background: var(--hmc-primary-soft); border-color: var(--hmc-primary-soft); }
.hmc-fcta .hmc-btn--outline { background: transparent; border-color: rgba(255, 255, 255, .55); color: #fff !important; }
.hmc-fcta .hmc-btn--outline:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }
/* Lưới chính (giữ padding 15px của cột Flatsome để thẳng mép với dải tư vấn) */
.hmc-footer .hmc-footer__row { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr)); gap: 28px 4px; align-items: start; }
.hmc-footer__row > .col { width: auto; max-width: none; flex-basis: auto; padding-bottom: 0; }
/* Cột giới thiệu */
.hmc-fbrand { max-width: 360px; }
.hmc-fbrand__logo { display: inline-block; margin-bottom: 16px; color: #fff !important; font-size: 24px; text-decoration: none; }
/* Logo đủ màu đặt trên nền trắng bo góc để giữ đúng màu thương hiệu trên nền tối. */
.hmc-fbrand__logo:has(img) { padding: 10px 14px; border-radius: 12px; background: #fff; box-shadow: 0 6px 20px rgba(0, 0, 0, .18); }
.hmc-fbrand__logo img { display: block; width: 196px; max-width: 100%; height: auto; }
.hmc-fbrand > p { margin: 0 0 18px; font-size: 15px; line-height: 1.65; color: rgba(255, 255, 255, .78); }
.hmc-fbrand__contact { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.hmc .hmc-fbrand__contact li { margin: 0; }
.hmc-fbrand__item { display: flex; align-items: flex-start; gap: 12px; }
.hmc-fbrand__item > .hmc-icon { flex: none; width: 34px; height: 34px; padding: 8px; border-radius: 10px; background: rgba(255, 255, 255, .08); color: var(--hmc-blush); }
.hmc-fbrand__item > a, .hmc-fbrand__item > span { display: flex; flex-direction: column; color: #fff; text-decoration: none; }
.hmc-fbrand__item > a:hover .hmc-fbrand__value { text-decoration: underline; }
.hmc-fbrand__label { font-size: 12px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.hmc-fbrand__value { font-size: 15px; font-weight: 600; line-height: 1.45; color: #fff; }
.hmc-fbrand__item--hotline .hmc-fbrand__value { font-size: 18px; }
.hmc-fbrand__note { margin-top: 2px; color: var(--hmc-blush); font-size: 13px; font-weight: 500; }
.hmc-fbrand__social { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 16px 0 0; padding: 0; }
.hmc-fbrand__social a { display: inline-block; padding: 6px 12px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px; color: #fff; font-size: 13px; text-decoration: none; }
/* Cột liên kết (sitelink) */
.hmc-fmenu__title { margin: 0 0 12px; color: #fff; font-size: 15px; font-weight: 700; line-height: 1.4; letter-spacing: .02em; }
.hmc .hmc-fmenu__list { display: grid; gap: 2px; list-style: none; margin: 0; padding: 0; }
.hmc .hmc-fmenu__list li, .hmc .hmc-fcontact li, .hmc .hmc-fbrand__social li { margin-left: 0; margin-bottom: 0; }
.hmc-fmenu__list a, .hmc-fcontact a { display: inline-flex; align-items: center; min-height: 32px; padding: 4px 0; color: rgba(255, 255, 255, .78); font-size: 15px; line-height: 1.4; text-decoration: none; transition: color var(--hmc-motion-fast) var(--hmc-ease-ui); }
.hmc-fmenu__list a:hover, .hmc-fcontact a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.hmc-fcontact ul { list-style: none; margin: 0; padding: 0; }
.hmc-fcontact li { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 8px; font-size: 15px; }
.hmc-fcontact li .hmc-icon { margin-top: 7px; color: var(--hmc-blush); }
.hmc-fcontact p { margin: 0; font-size: 15px; }
@media (max-width: 1023px) {
	.hmc-footer .hmc-footer__row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.hmc-footer__row > .col:first-child { grid-column: 1 / -1; }
	.hmc-footer__row > .col:first-child > .col-inner { padding-bottom: 24px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
	.hmc-fbrand { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 32px; max-width: none; }
	.hmc-fbrand__logo { grid-row: 1 / span 3; align-self: start; margin-bottom: 0; }
}
@media (max-width: 849px) {
	.hmc-fcta { flex-direction: column; align-items: flex-start; padding: 20px; margin-bottom: 28px; }
	.hmc-fcta .hmc-ctas { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
	.hmc-fcta .hmc-btn { width: 100%; justify-content: center; }
}
@media (max-width: 599px) {
	.hmc-fcta .hmc-ctas { grid-template-columns: 1fr; }
	.hmc-footer .hmc-footer__row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 0; }
	.hmc-fbrand { display: block; }
	.hmc-fbrand__logo { margin-bottom: 16px; }
	.hmc-fbrand__logo img { width: 176px; }
	.hmc-fmenu__list a { min-height: 40px; font-size: 14.5px; }
}
/* Dòng cuối: bản quyền (trái) + dòng phân phối (phải) cùng hàng, ghi chú bên dưới; màn hình hẹp xếp dọc, căn trái. */
.hmc-fbottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; margin-top: 40px; padding: 20px 0 28px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 14px; color: rgba(255, 255, 255, .7); }
.hmc-fbottom p { margin: 0; }
.hmc-fbottom__about { order: 1; margin-left: auto; color: rgba(255, 255, 255, .85); font-weight: 500; text-align: right; }
.hmc-fbottom__note { flex-basis: 100%; order: 3; font-size: 13px; color: rgba(255, 255, 255, .6); }
.hmc-fbottom__links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.hmc-fbottom a { color: rgba(255, 255, 255, .8); text-decoration: none; }
.hmc-fbottom a:hover { color: #fff; text-decoration: underline; }
@media (max-width: 599px) { .hmc-fbottom { margin-top: 32px; } .hmc-fbottom__about { margin-left: 0; text-align: left; } }
.hmc .absolute-footer { display: none; }

/* Dải chữ chạy trước chân trang */
.hmc-marquee { position: relative; display: flex; align-items: center; min-height: 40px; background: var(--hmc-primary); color: #fff; overflow: hidden; }
.hmc-marquee--blush { background: var(--hmc-blush); color: var(--hmc-heading); }
.hmc-marquee--navy { background: #0b1b2d; color: #fff; }
.hmc-marquee__viewport { flex: 1; min-width: 0; overflow: hidden; }
.hmc-marquee__track { display: flex; width: max-content; will-change: auto; }
.hmc-marquee.is-running .hmc-marquee__track { animation: hmc-marquee var(--hmc-mq-dur, 30s) linear infinite; will-change: transform; }
.hmc-marquee.is-paused .hmc-marquee__track, .hmc-marquee.is-offscreen .hmc-marquee__track { animation-play-state: paused; }
.hmc-marquee__group { display: flex; align-items: center; flex: none; gap: 32px; padding-right: 32px; white-space: nowrap; }
.hmc-marquee__item { font-size: 14px; font-weight: 600; letter-spacing: .03em; }
.hmc-marquee__sep { opacity: .85; }
.hmc-marquee.is-static .hmc-marquee__track, html:not(.hmc-js) .hmc-marquee__track { width: auto; justify-content: center; }
.hmc-marquee.is-static .hmc-marquee__group, html:not(.hmc-js) .hmc-marquee__group { flex-wrap: wrap; justify-content: center; white-space: normal; gap: 8px 24px; padding: 8px var(--hmc-gutter); }
.hmc-marquee__pause { flex: none; display: grid; place-items: center; width: 44px; height: 44px; margin: 0 max(4px, calc(var(--hmc-gutter) - 14px)) 0 0; padding: 0; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; }
.hmc-marquee__pause:hover { background: rgba(255, 255, 255, .14); }
.hmc-marquee--blush .hmc-marquee__pause:hover { background: rgba(16, 36, 58, .08); }
.hmc-marquee__pause[hidden] { display: none; }
.hmc-marquee__pause .is-play, .hmc-marquee.is-paused .hmc-marquee__pause .is-pause { display: none; }
.hmc-marquee.is-paused .hmc-marquee__pause .is-play { display: inline-block; }
@media (max-width: 549px) { .hmc-marquee { min-height: 34px; } .hmc-marquee__group { gap: 20px; padding-right: 20px; } .hmc-marquee__item { font-size: 13px; } }
@keyframes hmc-marquee { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(calc(-1 * var(--hmc-mq-dist, 50%)), 0, 0); } }

/* ---------- 13. Chuyển động ---------- */
@keyframes hmc-drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.hmc-js [data-hmc-reveal] { opacity: 0; transform: translateY(12px); transition: opacity var(--hmc-motion-enter) var(--hmc-ease-out), transform var(--hmc-motion-enter) var(--hmc-ease-out); transition-delay: var(--hmc-delay, 0ms); }
.hmc-js [data-hmc-reveal].is-in { opacity: 1; transform: none; }
.hmc-no-motion [data-hmc-reveal] { opacity: 1 !important; transform: none !important; }
@media (prefers-reduced-motion: reduce) {
	.hmc *, .hmc *::before, .hmc *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
	.hmc-js [data-hmc-reveal] { opacity: 1; transform: none; }
	.hmc-card:hover, .hmc-cat:hover, .hmc-post:hover, .hmc-brand:hover { transform: none; }
	.hmc-marquee__track { animation: none !important; }
}
@media print {
	.hmc-stickybar, .hmc-marquee, .hmc-filters, .hmc-toolbar, .hmc-cmpbar, .header-wrapper, .footer-wrapper { display: none !important; }
	.hmc-js .hmc-specs tr.is-extra { display: table-row !important; }
}

/* ---------- 14. Cụm nút liên hệ nổi góc trái (Gọi, Zalo, Messenger) ---------- */
.hmc-fab { position: fixed; left: max(16px, env(safe-area-inset-left)); bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 985; }
.hmc-fab ul { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.hmc .hmc-fab li { margin: 0; }
.hmc-fab__btn { position: relative; display: block; width: 52px; height: 52px; border-radius: 50%; color: #fff !important; text-decoration: none !important; box-shadow: 0 6px 18px rgba(16, 36, 58, .22); transition: transform var(--hmc-motion-fast) var(--hmc-ease-ui), box-shadow var(--hmc-motion-fast) var(--hmc-ease-ui); }
.hmc-fab__icon { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: var(--hmc-primary); }
.hmc-fab__btn--zalo .hmc-fab__icon { background: #0068ff; }
.hmc-fab__btn--messenger .hmc-fab__icon { background: linear-gradient(135deg, #0a7cff 0%, #a033ff 100%); }
.hmc-fab__zalo { font: 700 13px/1 var(--hmc-font); letter-spacing: .01em; }
.hmc-fab__label { position: absolute; left: calc(100% + 10px); top: 50%; padding: 8px 12px; border-radius: 999px; background: var(--hmc-heading); color: #fff; font: 600 14px/1.2 var(--hmc-font); white-space: nowrap; box-shadow: var(--hmc-shadow-hover); opacity: 0; transform: translate(-6px, -50%); pointer-events: none; transition: opacity var(--hmc-motion-fast) var(--hmc-ease-ui), transform var(--hmc-motion-fast) var(--hmc-ease-ui); }
.hmc-fab__btn:hover, .hmc-fab__btn:focus-visible { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(16, 36, 58, .28); }
.hmc-fab__btn:hover .hmc-fab__label, .hmc-fab__btn:focus-visible .hmc-fab__label { opacity: 1; transform: translate(0, -50%); }
.hmc-fab__btn:focus-visible { outline: 3px solid var(--hmc-heading); outline-offset: 3px; }
.hmc-fab__btn:active { transform: scale(.96); }
@media (prefers-reduced-motion: no-preference) {
	.hmc-fab li { animation: hmc-fab-in var(--hmc-motion-enter) var(--hmc-ease-out) both; }
	.hmc-fab li:nth-child(2) { animation-delay: 60ms; }
	.hmc-fab li:nth-child(3) { animation-delay: 120ms; }
}
@keyframes hmc-fab-in { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }
/* Không che thanh so sánh. */
body:has(.hmc-cmpbar:not([hidden])) .hmc-fab { bottom: calc(88px + env(safe-area-inset-bottom)); }
@media (max-width: 849px) {
	.hmc-fab { left: max(12px, env(safe-area-inset-left)); bottom: calc(16px + env(safe-area-inset-bottom)); }
	.hmc-fab ul { gap: 8px; }
	.hmc-fab__btn { width: 48px; height: 48px; }
	.hmc-fab__label { display: none; }
	/* Trang sản phẩm: thanh liên hệ dưới đáy đã có Gọi/Zalo, ẩn cụm nổi để không che nội dung. */
	body.hmc-has-stickybar .hmc-fab { opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity var(--hmc-motion-base), transform var(--hmc-motion-base), visibility 0s var(--hmc-motion-base); }
	body:has(.hmc-cmpbar:not([hidden])) .hmc-fab { bottom: calc(84px + env(safe-area-inset-bottom)); }
}
/* Chân trang đã có Gọi/Zalo (dải tư vấn): ẩn cụm nổi khi chân trang hiện (hmc.js fabFooter). */
body.hmc-in-footer .hmc-fab { opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity var(--hmc-motion-base), transform var(--hmc-motion-base), visibility 0s var(--hmc-motion-base); }
@media print { .hmc-fab { display: none !important; } }

/* ---------- 15. Header: menu xổ xuống (desktop) và sidebar mobile ---------- */
.hmc .header-bottom .nav-dropdown { min-width: 260px; padding: 8px; border: 1px solid var(--hmc-border); border-radius: 12px; background: #fff; box-shadow: var(--hmc-shadow-hover); }
.hmc .header-bottom .nav-dropdown-default > li > a { width: auto; margin: 0; padding: 10px 12px; border: 0 !important; border-radius: 8px; color: var(--hmc-heading); font-size: 15px; font-weight: 500; line-height: 1.35; transition: background var(--hmc-motion-fast) var(--hmc-ease-ui), color var(--hmc-motion-fast) var(--hmc-ease-ui); }
.hmc .header-bottom .nav-dropdown-default > li > a:hover, .hmc .header-bottom .nav-dropdown-default > li > a:focus-visible, .hmc .header-bottom .nav-dropdown-default > li.current-menu-item > a { background: var(--hmc-primary-soft); color: var(--hmc-primary); }
.hmc .header-bottom .header-bottom-nav > li > a { font-size: 15px; font-weight: 600; color: var(--hmc-heading); }
.hmc .header-bottom .header-bottom-nav > li > a:hover, .hmc .header-bottom .header-bottom-nav > li.active > a, .hmc .header-bottom .header-bottom-nav > li.current-menu-ancestor > a { color: var(--hmc-primary); }

.hmc-mnav__section { margin: 8px 20px 0; padding-top: 12px; border-top: 1px solid var(--hmc-border); }
.hmc-mnav__links { margin: 0; padding: 0; list-style: none; }
.hmc .hmc-mnav__links li { margin: 0; }
.hmc-mnav__links a { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 0; color: var(--hmc-heading); font-size: 15px; font-weight: 600; text-decoration: none; }
.hmc-mnav__links .sub-menu { margin: 0 0 6px; padding: 0 0 0 14px; list-style: none; border-left: 2px solid var(--hmc-border); }
.hmc-mnav__links .sub-menu a { min-height: 40px; font-weight: 500; color: var(--hmc-text); }
.hmc-mnav__contact { display: grid; gap: 8px; margin: 12px 20px 24px; padding: 16px; border-radius: 12px; background: var(--hmc-primary-soft); }
.hmc-mnav__contact p { margin: 0 0 4px; color: var(--hmc-heading); font-weight: 600; }
.hmc-mnav__contact .hmc-ctas { display: grid; gap: 8px; }
.hmc-mnav__contact .hmc-btn { width: 100%; min-height: 48px; justify-content: center; }
/* Flatsome tự thêm chữ in hoa và đường kẻ cho menu mobile gốc; sidebar mới không dùng menu gốc. */
.hmc .mobile-sidebar .hmc-mnav { padding-bottom: 0; }
.hmc .hmc-mega__banner .hmc-ctas { display: grid; gap: 8px; }
.hmc .hmc-mega__banner .hmc-btn { width: 100%; justify-content: center; }
.hmc .hmc-mega__banner .hmc-btn--primary, .hmc .hmc-mega__banner .hmc-btn--primary:hover { color: #fff !important; }
.hmc .mobile-sidebar .hmc-mnav__links a { text-transform: none; letter-spacing: 0; font-size: 15px; }
.hmc .mobile-sidebar .hmc-mnav__contact .hmc-ctas { display: grid !important; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.hmc .mobile-sidebar .hmc-mnav__contact .hmc-btn span { white-space: normal; overflow: visible; text-overflow: clip; }
@media (min-width: 850px) and (max-width: 1499px) {
	.hmc-fab { left: 8px; }
	.hmc-fab__btn { width: 44px; height: 44px; }
	.hmc-fab__btn .hmc-icon { width: 22px; height: 22px; }
}

/* ---------- 16. Thanh "Lọc nhanh" (AJAX, cùng trạng thái với bộ lọc cột trái) ---------- */
html:not(.hmc-js) .hmc-quick { display: none; }
.hmc-quick { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; padding: 12px 14px; border: 1px solid var(--hmc-border); border-radius: 14px; background: var(--hmc-surface); }
.hmc-quick__label { display: inline-flex; align-items: center; gap: 6px; flex: none; color: var(--hmc-heading); font-size: 14px; font-weight: 700; }
.hmc-quick__label .hmc-icon { color: var(--hmc-primary); }
.hmc-quick__list { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.hmc-quick__item { position: relative; }
.hmc-quick__btn { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; margin: 0; padding: 0 12px 0 14px; border: 1px solid var(--hmc-border); border-radius: 999px; background: #fff; color: var(--hmc-heading); font: 600 14px/1.2 var(--hmc-font); text-transform: none; letter-spacing: 0; white-space: nowrap; cursor: pointer; transition: border-color var(--hmc-motion-fast) var(--hmc-ease-ui), background var(--hmc-motion-fast) var(--hmc-ease-ui); }
.hmc-quick__btn:hover { border-color: var(--hmc-primary); }
.hmc-quick__btn[aria-expanded="true"] .hmc-icon { transform: rotate(180deg); }
.hmc-quick__btn .hmc-icon { transition: transform var(--hmc-motion-base) var(--hmc-ease-ui); }
.hmc-quick__btn.is-active { border-color: var(--hmc-primary); background: var(--hmc-primary-soft); color: var(--hmc-primary); }
.hmc-quick__n { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--hmc-primary); color: #fff; font-size: 12px; font-weight: 700; }
.hmc-quick__pop { position: absolute; top: calc(100% + 8px); left: 0; z-index: 60; width: 300px; max-width: calc(100vw - 32px); padding: 14px; border: 1px solid var(--hmc-border); border-radius: 14px; background: #fff; box-shadow: var(--hmc-shadow-hover); animation: hmc-drop var(--hmc-motion-base) var(--hmc-ease-out); }
.hmc-quick__pop[hidden] { display: none; }
.hmc-quick__title { margin: 0 0 8px; color: var(--hmc-heading); font-size: 15px; font-weight: 700; }
.hmc-quick__opts { display: grid; gap: 2px; max-height: 300px; overflow-y: auto; overscroll-behavior: contain; }
.hmc-qopt { display: flex; align-items: center; gap: 10px; min-height: 40px; margin: 0; padding: 4px 8px; border-radius: 8px; color: var(--hmc-text); font-size: 15px; font-weight: 500; cursor: pointer; }
.hmc-qopt:hover { background: var(--hmc-surface); }
.hmc-qopt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.hmc-qopt .hmc-check__box { display: grid; place-items: center; flex: none; width: 20px; height: 20px; border: 1.5px solid #94a3b8; border-radius: 6px; background: #fff; color: transparent; }
.hmc-qopt input:checked + .hmc-check__box { border-color: var(--hmc-primary); background: var(--hmc-primary); color: #fff; }
.hmc-qopt input:focus-visible + .hmc-check__box { outline: 2px solid var(--hmc-primary); outline-offset: 2px; }
.hmc-qopt__label { flex: 1; min-width: 0; }
.hmc-qopt__count { color: var(--hmc-muted); font-size: 13px; }
.hmc-quick__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--hmc-border); }
.hmc-quick__foot .hmc-btn { min-height: 40px; padding: 6px 14px; font-size: 14px; }
.hmc-quick__foot .hmc-textbtn[disabled] { opacity: .45; cursor: default; }
.hmc-catalog.is-loading .hmc-quick__opts { opacity: .6; }
@media (max-width: 767px) {
	.hmc-quick { margin-inline: calc(-1 * var(--hmc-gutter)); padding: 10px var(--hmc-gutter); border-radius: 0; border-inline: 0; }
	.hmc-quick__label { display: none; }
	.hmc-quick__list { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
	.hmc-quick__list::-webkit-scrollbar { display: none; }
	.hmc-quick__item { position: static; flex: none; }
	.hmc-quick__pop { position: fixed; top: auto; left: 0; right: 0; bottom: 0; width: auto; max-width: none; padding: 16px var(--hmc-gutter) calc(16px + env(safe-area-inset-bottom)); border-radius: 16px 16px 0 0; box-shadow: 0 -10px 30px rgba(16, 36, 58, .18); z-index: 1001; }
	.hmc-quick__opts { max-height: 50vh; }
	.hmc-quick__foot .hmc-btn { flex: 1; justify-content: center; min-height: 48px; }
}

/* ---------- 17. Blog "Kiến thức" (danh sách + chi tiết, sidebar dính desktop) ---------- */
.hmc-blog { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: start; margin-bottom: var(--hmc-section); }
@media (min-width: 1024px) { .hmc-blog { grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; } }
.hmc-blog__main { min-width: 0; }
.hmc-blog__side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.hmc-blog__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.hmc-blog__grid--3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.hmc-blogpage .hmc-post__media, .hmc-related-posts .hmc-post__media { background: #fff; border-bottom: 1px solid var(--hmc-border); }
.hmc-blogpage .hmc-post__img { object-fit: contain; padding: 12px; }
.hmc-post--featured { grid-column: 1 / -1; }
@media (min-width: 768px) {
	.hmc-post--featured { flex-direction: row; }
	.hmc-post--featured .hmc-post__media { flex: 0 0 50%; aspect-ratio: 4 / 3; border-bottom: 0; border-right: 1px solid var(--hmc-border); }
	.hmc-post--featured .hmc-post__body { justify-content: center; gap: 12px; padding: 28px 32px; }
	.hmc .hmc-post--featured .hmc-post__title { font-size: 26px; line-height: 1.3; }
	.hmc-post--featured .hmc-post__excerpt { font-size: 16px; }
	.hmc-post--featured .hmc-post__meta { margin-top: 8px; }
}
/* Sidebar */
.hmc-blogcats ul { list-style: none; margin: 0; padding: 0; }
.hmc .hmc-blogcats li { margin: 0; }
.hmc-blogcats a { display: flex; justify-content: space-between; gap: 8px; margin: 0 -10px; padding: 9px 10px; border-radius: 8px; color: var(--hmc-text); font-size: 15px; text-decoration: none; }
.hmc-blogcats a:hover { background: var(--hmc-surface); color: var(--hmc-heading); }
.hmc-blogcats a[aria-current] { background: var(--hmc-primary-soft); color: var(--hmc-primary); font-weight: 600; }
.hmc-blogcats .hmc-catnav__count { color: var(--hmc-muted); font-size: 13px; }
.hmc-blogsearch { display: flex; gap: 8px; margin: 0; }
.hmc .hmc-blogsearch input[type="search"] { flex: 1; min-width: 0; height: 44px; margin: 0; padding: 0 12px; border: 1px solid var(--hmc-border); border-radius: 10px; box-shadow: none; font-size: 15px; }
.hmc-blogsearch .hmc-iconbtn { flex: none; width: 44px; height: 44px; border-radius: 10px; background: var(--hmc-primary); color: #fff; }
.hmc-minilist--posts strong { display: block; color: var(--hmc-heading); font-size: 14px; font-weight: 600; line-height: 1.4; }
.hmc-minilist--posts time { display: block; margin-top: 2px; color: var(--hmc-muted); font-size: 12px; }
.hmc-blogcta { border-color: transparent; background: var(--hmc-primary-soft); }
.hmc-blogcta > p:not(.hmc-panel__title) { margin: 0 0 12px; font-size: 14px; }
.hmc-blogcta .hmc-ctas { display: grid; gap: 8px; }
.hmc-blogcta .hmc-btn { width: 100%; justify-content: center; min-height: 44px; }
/* Bài viết */
.hmc-article { max-width: 800px; }
.hmc-article__head { margin: 4px 0 20px; }
.hmc .hmc-article__title { margin: 10px 0 14px; font-size: clamp(28px, 3vw, 40px); line-height: 1.2; }
.hmc-article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin: 0; color: var(--hmc-muted); font-size: 14px; }
.hmc-article__meta > span { display: inline-flex; align-items: center; gap: 6px; }
.hmc-article__meta .hmc-icon { color: var(--hmc-primary); }
.hmc-article__meta > .hmc-icon { margin-right: -12px; }
.hmc-article__review { display: flex; align-items: center; gap: 6px; margin: 8px 0 0; font-size: 14px; color: var(--hmc-success); }
.hmc-article__answer { margin: 0 0 24px; padding: 16px 18px; border: 1px solid var(--hmc-border); border-left: 4px solid var(--hmc-primary); border-radius: 12px; background: var(--hmc-surface); }
.hmc-article__answer-label { margin: 0 0 4px; color: var(--hmc-primary); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.hmc-article__answer p:last-child { margin: 0; color: var(--hmc-heading); font-size: 16px; line-height: 1.65; }
.hmc-article__cover { margin: 0 0 28px; }
.hmc-article__cover img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; padding: 16px; background: #fff; border: 1px solid var(--hmc-border); border-radius: 16px; }
.hmc-article__cover figcaption { margin-top: 8px; color: var(--hmc-muted); font-size: 14px; text-align: center; }
.hmc-article__content table { width: 100%; margin: 16px 0 24px; border-collapse: collapse; font-size: 15px; }
.hmc-article__content th, .hmc-article__content td { padding: 10px 12px; border: 1px solid var(--hmc-border); text-align: left; vertical-align: top; }
.hmc-article__content thead th { background: var(--hmc-surface); color: var(--hmc-heading); font-weight: 600; }
.hmc-article__note { display: flex; gap: 10px; margin: 28px 0; padding: 14px 16px; border-radius: 12px; background: var(--hmc-blush-soft); color: var(--hmc-text); font-size: 14px; }
.hmc-article__note p { margin: 0; }
.hmc-article__note .hmc-icon { flex: none; margin-top: 2px; color: var(--hmc-accent); }
.hmc-article__sources { margin: 0; padding-top: 20px; border-top: 1px solid var(--hmc-border); }
.hmc .hmc-article__sources h2 { margin: 0 0 10px; font-size: 18px; }
.hmc-article__sources ol { margin: 0; padding-left: 20px; font-size: 14px; }
.hmc .hmc-article__sources li { margin: 0 0 6px; }
.hmc-article__sources a { word-break: break-word; }
/* Box tác giả (E-E-A-T): cuối bài và trang hồ sơ /tac-gia/… */
.hmc-author { margin: 32px 0 0; padding: 24px; border: 1px solid var(--hmc-border); border-radius: 16px; background: #fff; box-shadow: 0 1px 2px rgba(16, 36, 58, .04), 0 10px 30px rgba(16, 36, 58, .05); }
.hmc .hmc-author p { margin: 0; }
.hmc-author__head { display: flex; align-items: center; gap: 18px; }
.hmc-author__avatar { flex: none; width: 88px; height: 88px; border-radius: 50%; overflow: hidden; background: #fff; box-shadow: 0 0 0 3px #fff, 0 0 0 4px rgba(0, 104, 156, .25), 0 6px 16px rgba(16, 36, 58, .12); }
.hmc-author__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hmc-author__initials { display: grid; place-items: center; width: 100%; height: 100%; background: linear-gradient(135deg, var(--hmc-primary), #0a86c2); color: #fff; font-size: 30px; font-weight: 700; letter-spacing: .02em; }
.hmc-author__id { min-width: 0; display: grid; gap: 3px; }
.hmc-author__label { color: var(--hmc-primary); font-size: 12px; font-weight: 700; letter-spacing: .08em; line-height: 1.4; text-transform: uppercase; }
.hmc .hmc-author__name { color: var(--hmc-heading); font-size: 21px; font-weight: 700; line-height: 1.3; }
.hmc-author__name a { color: inherit; text-decoration: none; }
.hmc-author__name a:hover { color: var(--hmc-primary); text-decoration: underline; text-underline-offset: 3px; }
.hmc .hmc-author__role, .hmc .hmc-author__exp { display: flex; align-items: center; gap: 6px; color: var(--hmc-muted); font-size: 14px; line-height: 1.45; }
.hmc-author__role .hmc-icon, .hmc-author__exp .hmc-icon { flex: none; color: var(--hmc-primary); }
.hmc .hmc-author .hmc-author__bio { margin-top: 16px; color: var(--hmc-text); font-size: 15.5px; line-height: 1.7; }
.hmc-author__facts { display: grid; gap: 12px; margin: 16px 0 0; }
.hmc-author__facts, .hmc-author__facts dt, .hmc-author__facts dd, .hmc-author__facts li { text-transform: none; letter-spacing: 0; }
.hmc-author__fact { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 4px 12px; align-items: start; }
.hmc-author__fact dt { display: flex; align-items: center; gap: 6px; margin: 0; padding-top: 4px; color: var(--hmc-heading); font-size: 13.5px; font-weight: 600; }
.hmc-author__fact dt .hmc-icon { color: var(--hmc-accent); }
.hmc-author__fact dd { margin: 0; }
.hmc .hmc-author__chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.hmc .hmc-author__chips li { margin: 0; padding: 4px 12px; border-radius: 999px; background: var(--hmc-primary-soft); color: var(--hmc-primary); font-size: 13px; font-weight: 600; line-height: 1.5; }
.hmc-author__chips a { color: inherit; text-decoration: none; }
.hmc-author__chips a:hover { text-decoration: underline; }
.hmc .hmc-author__creds { margin: 0; padding-left: 18px; font-size: 14px; }
.hmc .hmc-author__creds li { margin: 0 0 4px; }
.hmc-author__about { margin-top: 18px; padding: 14px 16px; border-radius: 12px; background: #f6f9fb; border: 1px solid #e8eef3; }
.hmc .hmc-author .hmc-author__about-title { margin-bottom: 8px; color: var(--hmc-heading); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.hmc .hmc-author__about ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 20px; margin: 0; padding: 0; list-style: none; }
.hmc .hmc-author__about li { display: flex; align-items: flex-start; gap: 8px; margin: 0; color: var(--hmc-text); font-size: 14px; line-height: 1.45; }
.hmc-author__about li .hmc-icon { flex: none; margin-top: 2px; color: var(--hmc-primary); }
.hmc-author__about a { color: var(--hmc-primary); font-weight: 600; }
.hmc-author__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--hmc-border); }
.hmc-author__more { display: inline-flex; align-items: center; gap: 6px; color: var(--hmc-primary); font-size: 14.5px; font-weight: 600; text-decoration: none; }
.hmc-author__more:hover { text-decoration: underline; text-underline-offset: 3px; }
.hmc-author__more .hmc-icon { transition: transform var(--hmc-motion-fast) var(--hmc-ease-ui); }
.hmc-author__more:hover .hmc-icon { transform: translateX(3px); }
.hmc-author__social { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--hmc-muted); font-size: 13.5px; }
.hmc .hmc-author__social ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.hmc .hmc-author__social li { margin: 0; }
.hmc-author__social a { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border: 1px solid var(--hmc-border); border-radius: 999px; color: var(--hmc-heading); font-size: 13px; font-weight: 600; text-decoration: none; }
.hmc-author__social a:hover { border-color: var(--hmc-primary); color: var(--hmc-primary); }
/* Trang hồ sơ tác giả */
.hmc-author--profile { margin: 8px 0 0; }
.hmc-author--profile .hmc-author__avatar { width: 120px; height: 120px; }
.hmc-author--profile .hmc-author__initials { font-size: 40px; }
.hmc-author-policy { margin: 16px 0 8px; padding: 18px 22px; border-radius: 14px; background: var(--hmc-primary-soft); }
.hmc .hmc-author-policy h2 { margin: 0 0 10px; font-size: 17px; }
.hmc .hmc-author-policy ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.hmc .hmc-author-policy li { display: flex; align-items: flex-start; gap: 10px; margin: 0; font-size: 14.5px; line-height: 1.55; }
.hmc-author-policy li .hmc-icon { flex: none; margin-top: 2px; color: var(--hmc-primary); }
.hmc .hmc-author-posts__title { margin: 8px 0 16px; font-size: 22px !important; }
@media (max-width: 767px) {
	.hmc-author__fact { grid-template-columns: minmax(0, 1fr); }
	.hmc .hmc-author__about ul { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 549px) {
	.hmc-author { padding: 18px 16px; }
	.hmc-author__head { gap: 14px; }
	.hmc-author__avatar, .hmc-author--profile .hmc-author__avatar { width: 68px; height: 68px; }
	.hmc-author__initials, .hmc-author--profile .hmc-author__initials { font-size: 24px; }
	.hmc .hmc-author__name { font-size: 18px; }
	.hmc .hmc-author__bio { font-size: 14.5px; }
	.hmc-author__foot { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 1023px) { .hmc-blog--single .hmc-toc { display: none; } }
@media (max-width: 767px) { .hmc-article__content { overflow-x: auto; } }
.hmc .hmc-blogcta .hmc-ctas { display: grid !important; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.hmc .hmc-blogcta .hmc-btn span { white-space: normal; overflow: visible; text-overflow: clip; }

/* ---------- 18. Menu con của menu chính (desktop): trải hết trục 1400px, dạng ô ---------- */
@media (min-width: 850px) {
	.hmc .header-bottom .header-bottom-nav > li.has-dropdown { position: static; }
	.hmc .header-bottom .header-bottom-nav > li.has-dropdown::before, .hmc .header-bottom .header-bottom-nav > li.has-dropdown::after { display: none !important; }
	.hmc .header-bottom .header-bottom-nav > li.has-dropdown > .nav-dropdown { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; width: auto; min-width: 0; max-width: none; margin: 0; padding: 16px; border: 1px solid var(--hmc-border); border-radius: 0 0 16px 16px; box-shadow: var(--hmc-shadow-hover); }
	.hmc .header-bottom .header-bottom-nav > li.has-dropdown:hover > .nav-dropdown,
	.hmc .header-bottom .header-bottom-nav > li.has-dropdown.current-dropdown > .nav-dropdown,
	.hmc .header-bottom .header-bottom-nav > li.has-dropdown:focus-within > .nav-dropdown { left: var(--hmc-gutter) !important; right: var(--hmc-gutter) !important; }
	.hmc .header-bottom .header-bottom-nav > li.has-dropdown > .nav-dropdown > li { margin: 0; }
	.hmc .header-bottom .header-bottom-nav > li.has-dropdown > .nav-dropdown > li > a { display: flex; align-items: center; gap: 12px; height: 100%; min-height: 64px; padding: 12px 14px; border: 1px solid var(--hmc-border) !important; border-radius: 12px; background: #fff; color: var(--hmc-heading); white-space: normal; }
	.hmc .header-bottom .header-bottom-nav > li.has-dropdown > .nav-dropdown > li > a:hover, .hmc .header-bottom .header-bottom-nav > li.has-dropdown > .nav-dropdown > li > a:focus-visible, .hmc .header-bottom .header-bottom-nav > li.has-dropdown > .nav-dropdown > li.current-menu-item > a { border-color: var(--hmc-primary) !important; background: var(--hmc-primary-soft); }
	.hmc-dd__icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--hmc-primary-soft); color: var(--hmc-primary); }
	.hmc-dd__text { display: flex; flex-direction: column; min-width: 0; }
	.hmc-dd__name { color: var(--hmc-heading); font-size: 15px; font-weight: 600; line-height: 1.3; }
	.hmc-dd__count { color: var(--hmc-muted); font-size: 13px; font-weight: 500; line-height: 1.3; }
	.hmc .header-bottom .nav-dropdown > li.hmc-dd-all > a { border-style: dashed !important; }
	.hmc .nav-dropdown > li.hmc-dd-all .hmc-dd__icon { background: var(--hmc-primary); color: #fff; }
	.hmc .nav-dropdown > li.hmc-dd-all .hmc-dd__name { color: var(--hmc-primary); }
}

/* ---------- 19. Nội dung đóng khung, trải hết cột chính tới sidebar: mô tả sản phẩm, bài viết ---------- */
.hmc-pdp-main .hmc-prose, .hmc-pdp-main .hmc-pdp__content, .hmc-pdp-main .hmc-contactbox, .hmc-pdp-main .hmc-box, .hmc-pdp-main .hmc-section-block,
.hmc-blog--single .hmc-article, .hmc-blog--single .hmc-prose { max-width: none; }
.hmc-pdp-main .hmc-pdp__content, .hmc-blog--single .hmc-article__content { padding: 28px 32px; border: 1px solid var(--hmc-border); border-radius: 16px; background: #fff; }
.hmc-pdp-main .hmc-pdp__content > :first-child, .hmc-blog--single .hmc-article__content > :first-child { margin-top: 0; }
.hmc-pdp-main .hmc-pdp__content > :last-child, .hmc-blog--single .hmc-article__content > :last-child { margin-bottom: 0; }
.hmc-pdp-main .hmc-pdp__content h2:not(:first-child), .hmc-blog--single .hmc-article__content h2:not(:first-child) { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--hmc-border); }
.hmc-pdp-main .hmc-contactbox { margin-top: 20px; }
@media (max-width: 767px) { .hmc-pdp-main .hmc-pdp__content, .hmc-blog--single .hmc-article__content { padding: 20px 16px; border-radius: 14px; } }
/* Số thứ tự H2 của mô tả sản phẩm: chỉ là hiển thị (CSS), chữ tiêu đề không đổi.
   Khớp số trong mục lục sidebar; mục "Thông số sản phẩm" trong mục lục dùng icon, không chiếm số. */
.hmc-pdp-main .hmc-pdp__content { counter-reset: hmc-h2; }
.hmc-pdp-main .hmc-pdp__content h2 { display: flex; align-items: center; gap: 14px; counter-increment: hmc-h2; }
.hmc-pdp-main .hmc-pdp__content h2::before { content: counter(hmc-h2); flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--hmc-primary-soft); color: var(--hmc-primary); font-size: 17px; font-weight: 700; line-height: 1; letter-spacing: 0; font-variant-numeric: tabular-nums; }
@media (max-width: 767px) {
	.hmc-pdp-main .hmc-pdp__content h2 { gap: 10px; }
	.hmc-pdp-main .hmc-pdp__content h2::before { width: 30px; height: 30px; border-radius: 8px; font-size: 15px; }
}
.hmc-toc li.hmc-toc__spec { counter-increment: none; }
.hmc-toc li.hmc-toc__spec a::before { content: none; }
.hmc-toc li.hmc-toc__spec .hmc-icon { flex: none; margin: 2px 2px 0 0; color: var(--hmc-muted); }
.hmc-toc li.hmc-toc__spec a.is-active .hmc-icon { color: var(--hmc-primary); }

/* ---------- 20. Showroom: topbar, chân trang, trang Liên hệ, hộp liên hệ, bài viết, menu mobile ---------- */
.hmc-topbar__links a.hmc-topbar__showroom { min-width: 0; }
.hmc-topbar__showroom .hmc-icon { flex: none; color: var(--hmc-coral); }
.hmc-topbar__showroom span { overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1099px) { .hmc-topbar__links a.hmc-topbar__showroom { display: none; } }
.hmc-contact .hmc-contact__note { display: block; margin-top: 4px; color: var(--hmc-primary); font-size: 14px; font-weight: 600; }
.hmc-showroom { display: flex; align-items: flex-start; gap: 8px; margin: 0; color: var(--hmc-text); font-size: 14px; line-height: 1.5; }
.hmc-showroom .hmc-icon { flex: none; margin-top: 1px; color: var(--hmc-coral); }
.hmc-showroom__label { color: var(--hmc-heading); font-weight: 600; }
.hmc-showroom a { color: var(--hmc-heading); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.hmc-showroom a:hover { color: var(--hmc-primary); }
.hmc-showroom__note { display: block; color: var(--hmc-primary); font-size: 13px; font-weight: 600; }
.hmc-blogcta .hmc-showroom { margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(15, 76, 110, .12); }
.hmc-mnav__contact .hmc-showroom { margin-top: 4px; }
.hmc-contactbox__showroom { margin-top: 6px; }

/* ---------- 21. Tiêu đề h1–h3: desktop ép 1 dòng (JS hmc_fit_headings, chỉ giảm cỡ chữ khi cần, có cỡ tối thiểu); mobile chia dòng đều ---------- */
.hmc h1, .hmc h2, .hmc h3 { text-wrap: balance; }
@media (min-width: 1024px) { .hmc .hmc-fit { white-space: nowrap; } }
/* Hero trang chủ: desktop đặt sẵn cỡ gần cỡ 1 dòng để script không phải đổi nhiều (không nhảy bố cục). */
