/* ==========================================================================
   Hangcha Việt Nam — theme.css
   Port từ các file .dc.html + component của design system (_ds_bundle.js).
   Giá trị lấy từ tokens/*.css (không đổi).
   ========================================================================== */

/* ---------- Base bổ sung ---------- */
img, svg, video { max-width: 100%; }
img { height: auto; }
.hc-icon { display: inline-block; flex: none; vertical-align: middle; }
button { font: inherit; }
.hc-page { min-height: 100vh; display: flex; flex-direction: column; }
.hc-main { flex: 1 0 auto; }
.hc-skip { position: absolute; left: -9999px; top: 0; z-index: var(--z-toast); background: var(--white); padding: 8px 12px; }
.hc-skip:focus { left: 8px; top: 8px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.hc-container { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--gutter); }
.hc-container--narrow { max-width: 880px; }
[hidden] { display: none !important; }

/* Tiêu đề / eyebrow dùng chung */
.hc-eyebrow { font-family: var(--font-ui); font-size: var(--size-caption); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--text-brand); }
.hc-h1 { margin: 0; font-family: var(--font-display); font-size: var(--size-h1); font-weight: var(--weight-bold); line-height: var(--leading-tight); }
.hc-h2 { margin: 0; font-family: var(--font-display); font-size: var(--size-h2); font-weight: var(--weight-bold); line-height: var(--leading-tight); }
.hc-h3 { margin: 0; font-family: var(--font-display); font-size: var(--size-h3); font-weight: var(--weight-bold); line-height: var(--leading-snug); }
.hc-upper { text-transform: uppercase; }
.hc-muted { color: var(--text-muted); }
.hc-section { padding: var(--space-20) 0; }
.hc-section--subtle { background: var(--surface-subtle); }
.hc-section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--space-5); flex-wrap: wrap; }
.hc-section__titles { display: flex; flex-direction: column; gap: var(--space-2); }

/* Hover tiện ích (thay cho style-hover của bản HTML) */
.hc-hover-border { transition: border-color var(--dur-fast) var(--ease-standard); }
.hc-hover-border:hover { border-color: var(--primary) !important; text-decoration: none; }
.hc-hover-primary:hover { color: var(--primary) !important; text-decoration: none; }
.hc-hover-soft:hover { background: var(--primary-soft) !important; color: var(--primary) !important; text-decoration: none; }
.hc-hover-zoom { overflow: hidden; }
.hc-hover-zoom .hc-zoom { transition: transform var(--dur-slow) var(--ease-standard); }
.hc-hover-zoom:hover .hc-zoom { transform: scale(1.04); }
a.hc-plain, a.hc-plain:hover { text-decoration: none; color: inherit; }

/* ---------- Button (Button.jsx) ---------- */
.hc-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: var(--control-h-md); padding: var(--button-pad-y) var(--button-pad-x); font-family: var(--font-ui); font-size: var(--size-ui); font-weight: var(--weight-semibold); line-height: var(--leading-tight); border-radius: var(--radius-pill); border: 1px solid var(--primary); background: var(--primary); color: var(--on-primary); cursor: pointer; white-space: nowrap; outline: none; text-decoration: none; transition: background-color var(--dur-fast) var(--ease-standard), color var(--dur-fast) var(--ease-standard), border-color var(--dur-fast) var(--ease-standard), transform var(--dur-fast) var(--ease-standard); }
.hc-btn:hover { text-decoration: none; }
.hc-btn:active { transform: scale(0.97); }
.hc-btn:focus-visible { box-shadow: var(--focus-ring); }
.hc-btn__ir { display: inline-flex; }
.hc-btn .hc-nudge { transition: transform var(--dur-fast) var(--ease-standard); }
.hc-btn:hover .hc-nudge { transform: translateX(3px); }
.hc-btn--sm { min-height: var(--control-h-sm); padding: 6px 12px; font-size: var(--size-body); gap: var(--space-1); }
.hc-btn--lg { min-height: var(--control-h-lg); padding: 14px var(--space-7); font-size: var(--size-title); gap: var(--space-3); }
.hc-btn--full { display: flex; width: 100%; }
.hc-btn--primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: var(--on-primary); }
.hc-btn--secondary { background: transparent; color: var(--primary); border-color: var(--primary); }
.hc-btn--secondary:hover { background: var(--primary); color: var(--on-primary); }
.hc-btn--ghost { background: transparent; color: var(--primary); border-color: transparent; }
.hc-btn--ghost:hover { background: var(--primary-soft); color: var(--primary); }
.hc-btn--inverse { background: var(--white); color: var(--primary); border-color: var(--white); }
.hc-btn--inverse:hover { background: var(--primary-soft); color: var(--primary); }
.hc-btn--outline-inverse { background: transparent; color: var(--white); border-color: var(--white); }
.hc-btn--outline-inverse:hover { background: var(--white); color: var(--primary); }
.hc-btn[disabled] { background: var(--surface-elevated); color: var(--text-muted); border-color: var(--surface-elevated); cursor: not-allowed; transform: none; }

/* ---------- IconButton ---------- */
.hc-iconbtn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border-radius: var(--radius-pill); border: 1px solid transparent; cursor: pointer; outline: none; background: transparent; text-decoration: none; transition: background-color var(--dur-fast) var(--ease-standard), color var(--dur-fast) var(--ease-standard); flex: none; }
.hc-iconbtn:hover { text-decoration: none; }
.hc-iconbtn:focus-visible { box-shadow: var(--focus-ring); }
.hc-iconbtn--sm { width: 32px; height: 32px; }
.hc-iconbtn--lg { width: 52px; height: 52px; }
.hc-iconbtn--primary { background: var(--primary); color: var(--on-primary); }
.hc-iconbtn--primary:hover { background: var(--primary-hover); color: var(--on-primary); }
.hc-iconbtn--secondary { color: var(--primary); border-color: var(--primary); }
.hc-iconbtn--secondary:hover { background: var(--primary); color: var(--on-primary); }
.hc-iconbtn--ghost { color: var(--text-primary); }
.hc-iconbtn--ghost:hover { background: var(--primary-soft); color: var(--text-primary); }
.hc-iconbtn--inverse { color: var(--white); border-color: var(--white); }
.hc-iconbtn--inverse:hover { background: var(--white); color: var(--primary); }
.hc-iconbtn[disabled] { opacity: .4; cursor: not-allowed; }
/* biến thể 36px dùng cho carousel/pager */
.hc-iconbtn--36 { width: 36px; height: 36px; }

/* ---------- Link (Link.jsx) ---------- */
.hc-link { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--link); font-family: var(--font-ui); font-size: var(--size-ui); font-weight: var(--weight-semibold); line-height: var(--leading-tight); text-decoration: none; }
.hc-link--body { font-size: var(--size-body); }
.hc-link:hover { color: var(--link-hover); text-decoration: underline; }
.hc-link--arrow:hover { text-decoration: none; }
.hc-link--onBrand, .hc-link--onBrand:hover { color: var(--link-on-brand); }
.hc-link--ink, .hc-link--ink:hover { color: var(--text-primary); }
.hc-link__circle { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: var(--radius-pill); border: 1px solid currentColor; transition: transform var(--dur-fast) var(--ease-standard); }
.hc-link:hover .hc-link__circle { transform: translateX(4px); }

/* ---------- Badge ---------- */
.hc-badge { display: inline-flex; align-items: center; gap: var(--space-1); height: 22px; padding: 0 var(--space-2); border-radius: var(--radius-pill); border: 1px solid; font-family: var(--font-ui); font-size: var(--size-caption); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-caps); text-transform: uppercase; line-height: 1; white-space: nowrap; }
.hc-badge--solid { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.hc-badge--soft { background: var(--primary-soft); color: var(--primary); border-color: var(--primary-soft); }
.hc-badge--outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.hc-badge--neutral { background: var(--surface-subtle); color: var(--text-primary); border-color: var(--surface-subtle); }
.hc-badge--ink { background: var(--black); color: var(--white); border-color: var(--black); }

/* ---------- Tag (tab lọc pill) ---------- */
.hc-tag { display: inline-flex; align-items: center; gap: var(--space-2); height: var(--control-h-sm); padding: 0 var(--space-3); border-radius: var(--radius-pill); border: 1px solid var(--border-default); background: var(--surface-card); color: var(--text-primary); font-family: var(--font-ui); font-size: var(--size-body); font-weight: var(--weight-medium); cursor: pointer; user-select: none; text-decoration: none; transition: all var(--dur-fast) var(--ease-standard); }
.hc-tag:hover { border-color: var(--primary); color: var(--text-primary); text-decoration: none; }
.hc-tag.is-selected, .hc-tag.is-selected:hover { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }

/* ---------- Form controls (Input/Select) ---------- */
.hc-field { display: flex; flex-direction: column; gap: var(--space-2); font-family: var(--font-ui); }
.hc-field > label, .hc-label { font-size: var(--size-body); font-weight: var(--weight-semibold); line-height: var(--leading-tight); color: var(--text-primary); }
.hc-input, .hc-select, .hc-textarea,
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"], .wpcf7 input[type="url"], .wpcf7 select, .wpcf7 textarea {
	width: 100%; min-height: var(--control-h-md); padding: 0 var(--space-4); background: var(--surface-card); border: 1px solid var(--border-default); border-radius: var(--radius-md); font-family: var(--font-body); font-size: var(--size-ui); line-height: var(--leading-snug); color: var(--text-primary); outline: 0; transition: border-color var(--dur-fast) var(--ease-standard), box-shadow var(--dur-fast) var(--ease-standard);
}
.hc-textarea, .wpcf7 textarea { padding: var(--space-3) var(--space-4); resize: vertical; min-height: 120px; }
.hc-input:hover, .wpcf7 input:hover, .wpcf7 textarea:hover { border-color: var(--text-muted); }
.hc-input:focus, .hc-select:focus, .hc-textarea:focus, .wpcf7 input:focus, .wpcf7 select:focus, .wpcf7 textarea:focus { border-color: var(--primary); box-shadow: var(--focus-ring); }
.hc-select, .wpcf7 select { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%232222AC' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }

/* ---------- Top bar ---------- */
.hc-topbar { background: var(--indigo-600); color: var(--white); font-family: var(--font-ui); font-size: var(--size-body); }
.hc-topbar__in { padding-top: 8px; padding-bottom: 8px; display: flex; justify-content: space-between; align-items: center; gap: var(--space-5); flex-wrap: wrap; }
.hc-topbar__info { display: flex; gap: var(--space-6); flex-wrap: wrap; align-items: center; }
.hc-topbar__info > * { display: flex; gap: var(--space-2); align-items: center; color: var(--white); }
.hc-topbar__info a:hover { color: var(--white); text-decoration: underline; }
.hc-lang { display: flex; gap: var(--space-1); align-items: center; font-weight: var(--weight-semibold); }
.hc-lang__a { color: var(--white); padding: 2px 6px; opacity: .6; }
.hc-lang__a.is-current, .hc-lang__a:hover { opacity: 1; color: var(--white); text-decoration: none; }
.hc-lang__sep { opacity: .5; }

/* ---------- Header ---------- */
.hc-header { position: sticky; top: 0; z-index: var(--z-nav); background: var(--white); border-bottom: 1px solid var(--border-subtle); }
.hc-header__in { height: 88px; display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); }
.hc-header__logo { display: flex; align-items: center; flex: none; }
.hc-header__logo img { height: 64px; width: auto; display: block; }
.hc-header__actions { display: flex; align-items: center; gap: var(--space-3); }
.hc-burger { display: none; }

/* Nav desktop */
.hc-nav { display: flex; align-items: stretch; height: 100%; gap: var(--space-1); }
.hc-nav__item { position: relative; display: flex; align-items: center; }
.hc-nav__link { display: flex; align-items: center; gap: 4px; height: 100%; padding: 0 12px; font-family: var(--font-ui); font-size: 15px; font-weight: var(--weight-semibold); color: var(--text-primary); border-bottom: 2px solid transparent; border-top: 2px solid transparent; white-space: nowrap; }
.hc-nav__link:hover { text-decoration: none; }
.hc-nav__item:hover > .hc-nav__link, .hc-nav__item.is-open > .hc-nav__link { color: var(--primary); }
.hc-nav__item.is-active > .hc-nav__link { color: var(--primary); border-bottom-color: var(--primary); }
.hc-nav__sub { position: absolute; top: 100%; left: 0; min-width: 240px; background: var(--white); border: 1px solid var(--border-subtle); border-top: 2px solid var(--primary); border-radius: 0 0 var(--radius-md) var(--radius-md); padding: var(--space-2) 0; display: none; grid-template-columns: 1fr; }
.hc-nav__sub--2col { min-width: 480px; grid-template-columns: 1fr 1fr; }
.hc-nav__sublink { padding: 10px var(--space-5); font-family: var(--font-ui); font-size: 14px; color: var(--text-primary); }
.hc-nav__sublink:hover, .hc-nav__sublink.is-active { background: var(--primary-soft); color: var(--primary); text-decoration: none; }
.hc-mega { position: absolute; top: 100%; left: -180px; width: min(880px, calc(100vw - 48px)); background: var(--white); border: 1px solid var(--border-subtle); border-top: 2px solid var(--primary); border-radius: 0 0 var(--radius-md) var(--radius-md); padding: var(--space-5) var(--space-3); display: none; }
.hc-mega__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hc-mega__col { display: flex; flex-direction: column; padding: 0 var(--space-3); border-left: 1px solid var(--border-subtle); }
.hc-mega__col:first-child { border-left-color: transparent; }
.hc-mega__title { padding: 8px 12px; margin-bottom: var(--space-1); border-bottom: 1px solid var(--border-subtle); font-family: var(--font-ui); font-size: 13px; font-weight: var(--weight-bold); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--text-primary); }
.hc-mega__title:hover { color: var(--primary); text-decoration: none; }
.hc-mega__link { padding: 8px 12px; border-radius: var(--radius-md); font-family: var(--font-ui); font-size: 14px; line-height: 1.35; color: var(--text-muted); }
.hc-mega__link:hover, .hc-mega__link.is-active { background: var(--primary-soft); color: var(--primary); text-decoration: none; }
.hc-nav__item.is-open > .hc-nav__sub { display: grid; }
.hc-nav__item.is-open > .hc-mega { display: block; }
@media (hover: hover) {
	.hc-nav__item:hover > .hc-nav__sub { display: grid; }
	.hc-nav__item:hover > .hc-mega { display: block; }
}

/* Search panel */
.hc-search { position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--border-subtle); }
.hc-search__in { max-width: 880px; margin: 0 auto; padding: var(--space-6) var(--gutter); display: flex; flex-direction: column; gap: var(--space-3); }
.hc-search__box { display: flex; align-items: center; gap: var(--space-3); border: 1px solid var(--primary); border-radius: var(--radius-md); padding: 0 var(--space-4); height: 52px; box-shadow: var(--focus-ring); color: var(--primary); }
.hc-search__box input[type="search"] { flex: 1; border: 0; outline: none; font-family: var(--font-ui); font-size: var(--size-ui); background: transparent; color: var(--text-primary); min-width: 0; }
.hc-search__results { display: flex; flex-direction: column; }
.hc-search__results a { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); padding: 10px var(--space-2); border-bottom: 1px solid var(--border-subtle); font-family: var(--font-ui); font-size: 14px; color: var(--text-primary); }
.hc-search__results a:hover { color: var(--primary); background: var(--primary-soft); text-decoration: none; }
.hc-search__results small { font-size: var(--size-caption); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--text-muted); white-space: nowrap; }

/* Drawer mobile */
.hc-drawer { position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--border-subtle); max-height: 70vh; overflow: auto; }
.hc-drawer__menu, .hc-drawer__sub { list-style: none; margin: 0; padding: 0; }
.hc-drawer__row { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--border-subtle); padding-right: var(--gutter); }
.hc-drawer__row > a { flex: 1; padding: 16px var(--gutter); font-family: var(--font-ui); font-size: var(--size-ui); font-weight: var(--weight-semibold); color: var(--text-primary); }
.hc-drawer__row > a:hover { text-decoration: none; color: var(--primary); }
.hc-drawer__item.is-active > .hc-drawer__row > a { color: var(--primary); }
.hc-drawer__chev { flex: none; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; color: var(--text-primary); }
.hc-drawer__toggle { border: 0; background: transparent; cursor: pointer; padding: 0; border-radius: var(--radius-pill); }
.hc-drawer__toggle:hover { background: var(--primary-soft); color: var(--primary); }
.hc-drawer__chev svg { transition: transform var(--dur-fast) var(--ease-standard); }
.hc-drawer__toggle[aria-expanded="true"] { color: var(--primary); }
.hc-drawer__toggle[aria-expanded="true"] svg { transform: rotate(90deg); }
.hc-drawer__sub { padding-bottom: var(--space-2); }
.hc-drawer__sublink { display: block; padding: 10px calc(var(--gutter) + 16px); font-family: var(--font-ui); font-size: 14px; color: var(--text-muted); }
.hc-drawer__sublink:hover, .hc-drawer__sublink.is-active { color: var(--primary); background: var(--primary-soft); text-decoration: none; }
.hc-drawer__foot { padding: var(--space-5) var(--gutter); display: flex; flex-direction: column; gap: var(--space-4); border-top: 1px solid var(--border-subtle); }
.hc-lang--drawer .hc-lang__a { color: var(--text-primary); }
.hc-lang--drawer .hc-lang__a.is-current { color: var(--primary); }

@media (max-width: 1240px) {
	.hc-nav { display: none; }
	.hc-burger { display: inline-flex; }
}
@media (max-width: 768px) {
	.hc-header__in { height: 80px; }
	.hc-header__logo img { height: 52px; }
	/* Mobile: top bar chỉ giữ chuyển ngôn ngữ (hotline + Zalo đã có nút nổi góc phải) */
	.hc-topbar__info { display: none; }
	.hc-topbar__in { justify-content: flex-end; padding-top: 6px; padding-bottom: 6px; }
}

/* ---------- Page hero (01 Page hero) ---------- */
.hc-hero { position: relative; min-height: 360px; display: flex; align-items: flex-end; overflow: hidden; background: var(--indigo-600); color: var(--white); }
.hc-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.hc-hero__scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(27,27,138,.92) 0%, rgba(27,27,138,.7) 40%, rgba(27,27,138,0) 75%); }
.hc-hero__in { position: relative; width: 100%; max-width: var(--container-max); margin: 0 auto; padding: var(--space-20) var(--gutter) var(--space-12); display: flex; flex-direction: column; gap: var(--space-4); }
.hc-hero__title { margin: 0; font-family: var(--font-display); font-size: clamp(32px, 5vw, var(--size-display)); font-weight: var(--weight-bold); line-height: var(--leading-tight); letter-spacing: var(--tracking-display); text-transform: uppercase; text-wrap: balance; }
.hc-hero__desc { margin: 0; max-width: 720px; font-size: var(--size-ui); line-height: 1.6; text-wrap: pretty; }
.hc-crumbs { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; font-family: var(--font-ui); font-size: 14px; }
.hc-crumbs a { color: var(--white); }
.hc-crumbs a:hover { color: var(--white); }
.hc-crumbs--ink, .hc-crumbs--ink a { color: var(--text-muted); }

/* ---------- CTA band ---------- */
.hc-cta { background: var(--primary); color: var(--white); }
.hc-cta__in { padding-top: var(--space-12); padding-bottom: var(--space-12); display: flex; justify-content: space-between; align-items: center; gap: var(--space-6); flex-wrap: wrap; }
.hc-cta__text { display: flex; flex-direction: column; gap: var(--space-2); }
.hc-cta__title { font-family: var(--font-display); font-size: var(--size-h1); font-weight: var(--weight-bold); text-transform: uppercase; line-height: var(--leading-tight); }
.hc-cta__sub { font-size: var(--size-ui); }
.hc-cta__actions { display: flex; gap: var(--space-3); flex-wrap: wrap; }

/* ---------- Footer ---------- */
.hc-footer { background: var(--black); color: var(--white); }
.hc-footer__grid { padding-top: var(--space-20); padding-bottom: var(--space-12); display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--space-9); }
.hc-footer__brand { display: flex; flex-direction: column; gap: var(--space-5); grid-column: span 2; min-width: 0; max-width: 420px; }
.hc-footer__mark { display: flex; flex-direction: column; line-height: 1; }
.hc-footer__word { font-family: var(--font-display); font-weight: var(--weight-bold); font-size: 26px; letter-spacing: 0.12em; }
.hc-footer__tag { font-family: var(--font-ui); font-weight: var(--weight-semibold); font-size: var(--size-caption); letter-spacing: 0.32em; margin-top: 4px; }
.hc-footer__company { font-size: 14px; font-weight: var(--weight-semibold); }
.hc-footer__contact { display: flex; flex-direction: column; gap: var(--space-3); font-size: 14px; line-height: 1.5; }
.hc-footer__contact > * { display: flex; gap: var(--space-3); color: var(--white); }
.hc-footer__contact svg { margin-top: 3px; }
.hc-footer__contact a:hover { color: var(--white); }
.hc-footer__tax { opacity: .75; }
.hc-footer__social { display: flex; gap: var(--space-2); }
.hc-footer__col { display: flex; flex-direction: column; gap: var(--space-3); }
.hc-footer__h { font-family: var(--font-ui); font-size: var(--size-caption); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-caps); text-transform: uppercase; opacity: .7; margin-bottom: var(--space-2); }
.hc-footer__col a { font-size: 14px; color: var(--white); }
.hc-footer__col a:hover { color: var(--white); text-decoration: underline; }
.hc-footer__bottom { border-top: 1px solid rgba(255,255,255,.2); }
.hc-footer__bottom-in { padding-top: var(--space-5); padding-bottom: var(--space-5); display: flex; justify-content: space-between; gap: var(--space-5); flex-wrap: wrap; font-size: var(--size-body); }
@media (max-width: 940px) {
	.hc-footer__col { display: none; }
	.hc-footer__brand { grid-column: auto; }
}

/* ---------- Thẻ (cards) dùng chung ---------- */
.hc-grid { display: grid; gap: var(--space-5); }
.hc-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hc-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .hc-grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 940px) { .hc-grid--3, .hc-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .hc-grid--3, .hc-grid--4 { grid-template-columns: minmax(0, 1fr); } }

.hc-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); overflow: hidden; color: var(--text-primary); transition: border-color var(--dur-fast) var(--ease-standard); }
.hc-card:hover { border-color: var(--primary); color: var(--text-primary); text-decoration: none; }
.hc-card__media { position: relative; overflow: hidden; background: var(--surface-subtle); }
.hc-card__media img, .hc-card__media .hc-card__bg { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--dur-slow) var(--ease-standard); }
.hc-card:hover .hc-card__media img, .hc-card:hover .hc-card__bg { transform: scale(1.04); }
.hc-card__media--contain img { object-fit: contain; background: var(--white); }
.hc-card__badge { position: absolute; top: 12px; left: 12px; pointer-events: none; }
.hc-card__body { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-6); flex: 1; }
.hc-card__title { font-family: var(--font-display); font-size: var(--size-title); font-weight: var(--weight-bold); line-height: var(--leading-snug); color: var(--text-primary); text-wrap: pretty; }
a.hc-card__title:hover, .hc-card:hover a.hc-card__title { color: var(--primary); text-decoration: none; }
.hc-card__meta { display: flex; align-items: center; gap: var(--space-2); font-size: var(--size-body); color: var(--text-muted); }
.hc-card__excerpt { margin: 0; font-size: 14px; line-height: 1.55; color: var(--text-muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hc-card__more { margin-top: auto; padding-top: var(--space-3); display: flex; align-items: center; gap: var(--space-2); font-family: var(--font-ui); font-size: 14px; font-weight: var(--weight-semibold); color: var(--primary); }
.hc-card__more .hc-icon { transition: transform var(--dur-fast) var(--ease-standard); }
.hc-card:hover .hc-card__more .hc-icon { transform: translateX(3px); }
.hc-noimg { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--gray-400); background: var(--surface-subtle); }

/* Thẻ sản phẩm (danh mục / trang chủ) */
/* Ảnh sản phẩm: khung vuông, nền #F3F3F3, contain — không kéo giãn, không crop */
.hc-pcard__media { aspect-ratio: 1 / 1; background: var(--surface-subtle); }
.hc-pcard__media img { object-fit: contain; background: transparent; }
.hc-pcard__body { gap: var(--space-4); padding: var(--space-5) var(--space-6) var(--space-6); }
.hc-pcard__names { display: flex; flex-direction: column; gap: var(--space-1); }
.hc-pcard__en { font-size: var(--size-body); line-height: 1.4; color: var(--text-muted); }
.hc-pcard__specs { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
.hc-pcard__spec { display: flex; flex-direction: column; gap: 2px; padding: var(--space-3) 0 var(--space-3) var(--space-3); }
.hc-pcard__spec:first-child { padding: var(--space-3) var(--space-3) var(--space-3) 0; border-right: 1px solid var(--border-subtle); }
.hc-pcard__v { font-family: var(--font-ui); font-size: 13px; font-weight: var(--weight-bold); color: var(--primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hc-pcard__k { font-size: 12px; color: var(--text-muted); }

/* Pager */
.hc-pager { display: flex; justify-content: center; align-items: center; gap: var(--space-2); padding-top: var(--space-6); flex-wrap: wrap; }
.hc-pager__n { box-sizing: border-box; cursor: pointer; min-width: 36px; height: 36px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius-pill); border: 1px solid var(--border-subtle); background: var(--white); color: var(--text-primary); font-family: var(--font-ui); font-size: 14px; font-weight: var(--weight-semibold); text-decoration: none; }
.hc-pager__n:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }
.hc-pager__n.is-current { border-color: var(--primary); background: var(--primary); color: var(--white); }
.hc-pager__dots { color: var(--text-muted); padding: 0 4px; }

/* Carousel ray ngang (snap) */
.hc-rail { display: flex; gap: var(--space-5); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding-bottom: 2px; }
.hc-rail::-webkit-scrollbar { display: none; }
.hc-rail > * { flex: 0 0 calc((100% - 60px) / 4); scroll-snap-align: start; }
@media (max-width: 1099px) { .hc-rail > * { flex-basis: calc((100% - 40px) / 3); } }
@media (max-width: 759px) { .hc-rail > * { flex-basis: calc((100% - 20px) / 2); } }
@media (max-width: 519px) { .hc-rail > * { flex-basis: 80%; } }

/* ---------- Nội dung bài viết (Gutenberg output) ---------- */
.hc-prose { font-size: var(--size-ui); line-height: 1.7; color: var(--text-primary); }
.hc-prose > * { margin: 0 0 var(--space-5); }
.hc-prose > *:last-child { margin-bottom: 0; }
.hc-prose h2 { font-family: var(--font-display); font-size: var(--size-h2); font-weight: var(--weight-bold); line-height: var(--leading-snug); margin-top: var(--space-9); }
.hc-prose h3 { font-family: var(--font-display); font-size: var(--size-h3); font-weight: var(--weight-bold); line-height: var(--leading-snug); margin-top: var(--space-8); }
.hc-prose ul, .hc-prose ol { padding-left: 1.4em; }
.hc-prose li { margin-bottom: var(--space-2); }
.hc-prose img { border-radius: var(--radius-md); display: block; }
.hc-prose figure { margin-left: 0; margin-right: 0; }
.hc-prose figcaption, .hc-prose .hc-cap { font-size: var(--size-body); color: var(--text-muted); text-align: center; margin-top: var(--space-2); }
.hc-prose p.hc-cap { margin-top: calc(-1 * var(--space-3)); }
.hc-prose blockquote { margin-left: 0; margin-right: 0; padding: var(--space-5) var(--space-6); border-left: 3px solid var(--primary); background: var(--surface-subtle); border-radius: 0 var(--radius-md) var(--radius-md) 0; font-style: normal; }
.hc-prose blockquote p { margin: 0; }
.hc-prose .wp-block-embed iframe, .hc-prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--radius-md); }
.hc-prose .wp-block-embed__wrapper { position: relative; }
.hc-prose a { text-decoration: underline; }

/* Video lightbox / modal chung */
.hc-modal { position: fixed; inset: 0; z-index: var(--z-overlay); background: var(--overlay); display: flex; align-items: center; justify-content: center; padding: var(--space-6); }
.hc-modal__box { position: relative; width: min(960px, 100%); background: var(--white); border-radius: var(--radius-md); overflow: hidden; max-height: calc(100vh - 48px); overflow-y: auto; }
.hc-modal__box--video { background: var(--black); aspect-ratio: 16 / 9; }
.hc-modal__box--video iframe { width: 100%; height: 100%; border: 0; display: block; }
.hc-modal__box--img { background: transparent; width: auto; max-width: min(1100px, 100%); }
.hc-modal__box--img img { display: block; max-height: calc(100vh - 96px); width: auto; margin: 0 auto; border-radius: var(--radius-md); }
.hc-modal__box--form { width: min(560px, 100%); padding: var(--space-8); }
.hc-modal__close { position: absolute; top: 12px; right: 12px; z-index: 2; }
.hc-modal__nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; }
.hc-modal__nav--prev { left: 12px; }
.hc-modal__nav--next { right: 12px; }
body.hc-noscroll { overflow: hidden; }

/* CF7 */
.wpcf7 form { display: flex; flex-direction: column; gap: var(--space-4); }
.wpcf7 p { margin: 0; }
.hc-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
.hc-form-grid .hc-span2 { grid-column: 1 / -1; }
@media (max-width: 600px) { .hc-form-grid { grid-template-columns: minmax(0, 1fr); } }
.wpcf7 label { display: flex; flex-direction: column; gap: var(--space-2); font-family: var(--font-ui); font-size: var(--size-body); font-weight: var(--weight-semibold); }
.wpcf7-not-valid-tip { color: var(--primary); font-size: var(--size-body); font-weight: var(--weight-medium); margin-top: 4px; }
.wpcf7 form .wpcf7-response-output { margin: 0; padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); border: 1px solid var(--primary); font-size: 14px; }
.wpcf7-spinner { margin: 0 0 0 12px; }
.wpcf7 input[type="submit"], .wpcf7 button[type="submit"] { align-self: flex-start; }

/* 404 / trang chung */
.hc-empty { padding: var(--space-12); text-align: center; border: 1px dashed var(--border-default); border-radius: var(--radius-md); color: var(--text-muted); font-size: var(--size-ui); }

@media (max-width: 940px) {
	.hc-h1, .hc-cta__title { font-size: var(--size-h1-sm); }
	.hc-section { padding: var(--space-12) 0; }
}

/* ---------- Widget JS ---------- */
.hc-dot { border: 0; padding: 0; cursor: pointer; height: 8px; width: 8px; border-radius: var(--radius-pill); background: var(--gray-300); transition: all var(--dur-base) var(--ease-standard); }
.hc-dot.is-active { width: 32px; background: var(--carousel-blue); }
.hc-dots { display: flex; gap: var(--space-2); justify-content: center; align-items: center; }
[data-hc-carousel] { overflow: hidden; }
[data-hc-track] { display: flex; transition: transform var(--dur-slow) var(--ease-standard); }
[data-hc-slide] { opacity: 0; pointer-events: none; transition: opacity 900ms var(--ease-standard); }
[data-hc-slide].is-active { opacity: 1; pointer-events: auto; }
.hc-acc__icon-minus { display: none; }
.is-open > [data-hc-acc-btn] .hc-acc__icon-plus { display: none; }
.is-open > [data-hc-acc-btn] .hc-acc__icon-minus { display: inline-block; }

/* Thẻ sản phẩm biến thể ray (trang chủ) */
.hc-rcard__media { aspect-ratio: 1 / 1; background: var(--surface-subtle); }
.hc-rcard__media img { object-fit: contain; }
.hc-pcard__imglink { position: absolute; inset: 0; display: block; }
.hc-pcard__imglink img { width: 100%; height: 100%; object-fit: contain; }

/* Nút nổi Zalo + Hotline */
.hc-float { position: fixed; right: 20px; bottom: 20px; z-index: 99998; display: flex; flex-direction: column; align-items: flex-end; gap: var(--space-2); }
.hc-float__zalo { display: block; width: 48px; height: 48px; border-radius: var(--radius-pill); overflow: hidden; transition: transform var(--dur-fast) var(--ease-standard); }
.hc-float__zalo:hover { transform: scale(1.06); }
.hc-float__zalo img { width: 100%; height: 100%; display: block; }
