/* hungwar - 15.11.2026 - skins/hw2: design of /demo on the CubeCart pages.
   Loaded after ui2.css and the admin colour (THEME_CSS): sets the --hw3-* / --hw2-* colours of the
   existing v2 pages, and styles the hw2 header, homepage and footer (classes hx-*, so nothing clashes
   with Bootstrap 4 that the old pages still use). */

body.hw3-ui {
	--c-brand: #16a36a;
	--c-brand-ink: #0d7a4e;
	--c-brand-ink-hover: #0a6340;
	--c-brand-soft: #e8f6ef;
	--c-ink: #17212b;
	--c-ink-2: #334155;
	--c-muted: #64748b;
	--c-bg: #f8fafc;
	--c-surface: #ffffff;
	--c-line: #e5e7eb;
	--c-line-strong: #cbd5e1;
	--c-sale: #c2410c;
	--c-warn-soft: #fff8e6;
	--c-focus: #2563eb;
	--c-stage: #0e3a2b;
	--c-stage-line: rgba(255, 255, 255, 0.12);
	--c-stage-glass: rgba(255, 255, 255, 0.06);
	--c-stage-muted: #b7d3c6;
	--c-neon: #b9f0d6;
	--sh-pop: 0 12px 32px -8px rgba(23, 33, 43, 0.18), 0 2px 6px rgba(23, 33, 43, 0.06);
	--sh-card: 0 14px 28px -16px rgba(23, 33, 43, 0.35), 0 2px 6px rgba(23, 33, 43, 0.05);
	--sh-float: 0 28px 64px -24px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.08);
	--r-sm: 8px;
	--r-md: 10px;
	--r-lg: 14px;
	--gutter: 16px;
	--ctl-h: 44px;
	--font: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

	/* colours of the v2 pages (ui2.css, catpage-v2.css) */
	--hw3-brand: #16a36a;
	--hw3-brand-dark: #0d7a4e;
	--hw3-brand-deep: #0e3a2b;
	--hw3-brand-soft: #e8f6ef;
	--hw3-brand-light: #34b37f;
	--hw3-brand-line: #9fd9bd;
	--hw3-brand-line2: #b9e4cf;
	--hw3-brand-tint: #eff9f4;
	--hw3-brand-hint1: #f1f9f4;
	--hw3-brand-hint3: #e4f4ee;
	--hw3-brand-rgb: 22, 163, 106;
	--hw3-brand-deep-rgb: 14, 58, 43;
	--hw3-text: #17212b;
	--hw3-muted: #64748b;
	--hw3-line: #e5e7eb;
	--hw3-bg: #f8fafc;
	--hw3-radius: 14px;

	font-family: var(--font);
	background: var(--c-bg);
	color: var(--c-ink);
	-webkit-font-smoothing: antialiased;
}
body.hw3-ui .hw2-page {
	--hw2-brand: #16a36a;
	--hw2-brand-dark: #0d7a4e;
	--hw2-brand-soft: #e8f6ef;
	--hw2-text: #17212b;
	--hw2-muted: #64748b;
	--hw2-line: #e5e7eb;
}
html { overflow-x: clip; }
body.hw3-ui :focus-visible { outline: 3px solid var(--c-focus); outline-offset: 2px; }
body.hw3-ui .container.hx-main { max-width: 1240px; padding: 0 var(--gutter); }
.hx-c { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.hx-bleed { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
@media (min-width: 768px) { body.hw3-ui { --gutter: 24px; } }

/* ---------- small parts ---------- */
.hx-i { width: 22px; height: 22px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hx-i-sm { width: 18px; height: 18px; }
.hx-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--ctl-h); padding: 0 20px;
	border-radius: var(--r-md); border: 1px solid transparent; font: 600 1rem/1.2 var(--font); white-space: nowrap; cursor: pointer;
	text-decoration: none !important; transition: background .16s, border-color .16s, color .16s;
}
.hx-btn-p { background: var(--c-brand-ink); color: #fff !important; }
.hx-btn-p:hover { background: var(--c-brand-ink-hover); }
.hx-btn-g { background: #fff; color: var(--c-ink-2); border-color: var(--c-line); }
.hx-btn-g:hover { border-color: var(--c-line-strong); }
.hx-btn[disabled] { background: var(--c-line); color: var(--c-muted) !important; border-color: var(--c-line); cursor: not-allowed; }
.hx-ib {
	position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: var(--ctl-h); height: var(--ctl-h);
	padding: 0 8px; border-radius: var(--r-md); background: none; border: 0; color: var(--c-ink) !important; font: 500 .875rem var(--font);
	text-decoration: none !important; cursor: pointer;
}
.hx-ib:hover { background: var(--c-bg); }
.hx-icw { position: relative; display: inline-flex; }
.hx-badge {
	position: absolute; top: -6px; right: -9px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
	background: var(--c-sale); color: #fff; font-size: .75rem; font-weight: 700; line-height: 18px; text-align: center;
}
.hx-av { width: 30px; height: 30px; border-radius: 999px; background: var(--c-brand-soft); color: var(--c-brand-ink); display: grid; place-items: center; font-weight: 700; }

/* ---------- header ---------- */
.hw3-header.hx-hdr { position: sticky; top: 0; z-index: 1000; background: #fff; border-bottom: 1px solid var(--c-line); box-shadow: none; padding: 0; }
.hx-hdr-row { display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: 56px auto; column-gap: 12px; align-items: center; }
.hx-logo { display: inline-flex; align-items: center; gap: 8px; color: var(--c-brand-ink) !important; font-weight: 700; font-size: 1.25rem; letter-spacing: -0.02em; text-decoration: none !important; }
.hx-logo img { width: 34px; height: 34px; object-fit: contain; }
.hx-logo span { color: inherit; font-weight: 500; }
.hx-logo .hx-logo-w { font-weight: 700; }
.hx-search { position: relative; grid-column: 1 / -1; grid-row: 2; padding-bottom: 12px; min-width: 0; margin: 0; }
.hx-sbox {
	display: flex; align-items: center; gap: 8px; height: var(--ctl-h); padding: 0 6px 0 12px;
	border: 1.5px solid var(--c-line-strong); border-radius: var(--r-md); background: #fff;
}
.hx-sbox:focus-within { border-color: var(--c-brand); box-shadow: 0 0 0 3px var(--c-brand-soft); }
.hx-sbox .hx-i { color: var(--c-muted); }
.hx-sbox input { flex: 1; min-width: 0; height: 100%; border: 0 !important; outline: 0; background: none; font: 400 1rem var(--font); color: var(--c-ink); box-shadow: none !important; padding: 0; }
.hx-sbox .hx-btn { min-height: 34px; padding: 0 12px; font-size: .875rem; }
.hx-search .hw3-sugg-box { top: calc(100% - 6px); }
.hx-acts { display: flex; justify-content: flex-end; align-items: center; gap: 2px; }
.hx-lbl { display: none; }
.hx-pref { display: none; }
.hx-acts .hw3-menu { right: 0; left: auto; }
@media (min-width: 768px) {
	.hx-hdr-row { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: 72px; gap: 24px; }
	.hx-search { grid-column: 2; grid-row: 1; padding: 0; max-width: 680px; }
	.hx-search .hw3-sugg-box { top: calc(100% + 6px); }
	.hx-pref { display: inline-flex; position: relative; }
}
@media (min-width: 1100px) { .hx-lbl { display: inline; } }

.hx-nav { border-top: 1px solid var(--c-line); display: none; }
.hx-navl { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
.hx-navl::-webkit-scrollbar { display: none; }
.hx-navl a, .hx-navl button {
	display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 12px; white-space: nowrap;
	color: var(--c-ink-2) !important; font: 500 .875rem var(--font); border: 0; background: none; border-bottom: 2px solid transparent;
	text-decoration: none !important; cursor: pointer; border-radius: 0;
}
.hx-navl a:hover, .hx-navl button:hover { color: var(--c-ink) !important; }
.hx-navl a[aria-current='page'], .hx-navl button[aria-expanded='true'] { color: var(--c-brand-ink) !important; border-bottom-color: var(--c-brand); }
.hx-navl .hx-deal { color: var(--c-sale) !important; }
@media (min-width: 768px) { .hx-nav { display: block; } }
.hx-hdr .hw3-catpanel { top: 100%; }

/* bottom tab bar on phones */
.hx-tab {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 1001; display: grid; grid-template-columns: repeat(5, 1fr);
	background: #fff; border-top: 1px solid var(--c-line); padding-bottom: env(safe-area-inset-bottom);
}
.hx-tab a, .hx-tab button {
	position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: 58px;
	font: 500 .75rem var(--font); color: var(--c-muted) !important; background: none; border: 0; text-decoration: none !important; cursor: pointer;
}
.hx-tab [aria-current='page'] { color: var(--c-brand-ink) !important; }
body.hw3-ui { padding-bottom: calc(58px + env(safe-area-inset-bottom)); }
@media (max-width: 767px) { #hwChatBtn { bottom: 76px !important; } html.hw3-lift-chat #hwChatBtn { bottom: 140px !important; } }
@media (min-width: 768px) { .hx-tab { display: none; } body.hw3-ui { padding-bottom: 0; } }

/* ---------- homepage ---------- */
.hx-hero { background: var(--c-stage); color: #fff; padding: 24px 0 32px; }
.hx-hero-grid { display: grid; gap: 24px; }
/* grid items may shrink below their content (the brand tabs scroll inside instead of widening the page) */
.hx-hero-grid > * { min-width: 0; }
.hx-hero h1 { color: #fff; font: 700 1.25rem/1.2 var(--font); letter-spacing: -0.025em; margin: 0; max-width: 18ch; }
.hx-lead { color: var(--c-stage-muted); margin: 12px 0 0; max-width: 46ch; line-height: 1.55; display: none; }
.hx-needs { display: grid; grid-auto-flow: column; grid-auto-columns: max-content; gap: 8px; margin-top: 12px; overflow-x: auto; scrollbar-width: none; }
.hx-needs::-webkit-scrollbar { display: none; }
.hx-needs a {
	display: flex; align-items: center; gap: 12px; min-height: var(--ctl-h); padding: 8px 12px; border-radius: var(--r-md);
	background: var(--c-stage-glass); border: 1px solid var(--c-stage-line); color: #fff !important; text-decoration: none !important;
}
.hx-needs a:hover { border-color: var(--c-neon); background: rgba(255, 255, 255, 0.1); }
.hx-needs .hx-i { color: var(--c-neon); }
.hx-needs b { display: block; font-size: .875rem; white-space: nowrap; }
.hx-needs small { display: none; font-size: .75rem; color: var(--c-stage-muted); }
@media (min-width: 768px) {
	.hx-hero h1 { font-size: 1.953rem; }
	.hx-lead { display: block; }
	.hx-needs { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: 1fr 1fr; max-width: 560px; margin-top: 24px; overflow: visible; }
	.hx-needs a { min-height: 60px; padding: 8px 16px; }
	.hx-needs b { white-space: normal; }
	.hx-needs small { display: block; }
}
@media (min-width: 1024px) {
	.hx-hero { padding: 48px 0; }
	.hx-hero-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; gap: 48px; }
	.hx-hero h1 { font-size: 2.441rem; }
}

/* Mua nhanh: a white card like a gift card, notches on the tear line */
.hx-qb { position: relative; background: #fff; color: var(--c-ink); border-radius: 18px; box-shadow: var(--sh-float); }
.hx-qb-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 16px 20px 0; flex-wrap: wrap; }
.hx-qb-head h2 { display: flex; align-items: center; gap: 6px; margin: 0; font: 700 1rem var(--font); color: var(--c-brand-ink); }
.hx-qb-head span { font-size: .75rem; color: var(--c-muted); }
.hx-qb-tabs { display: flex; overflow-x: auto; border-bottom: 1px solid var(--c-line); scrollbar-width: none; margin-top: 8px; }
.hx-qb-tabs::-webkit-scrollbar { display: none; }
.hx-qb-tab {
	flex: none; display: flex; align-items: center; gap: 8px; padding: 10px 16px; border: 0; background: none; cursor: pointer;
	border-bottom: 3px solid transparent; font: 500 .875rem var(--font); color: var(--c-ink-2); white-space: nowrap;
}
.hx-qb-tab img { width: 44px; height: 30px; object-fit: cover; border-radius: 6px; background: #f1f5f9; }
.hx-qb-tab[aria-selected='true'] { border-bottom-color: var(--c-brand); color: var(--c-ink); font-weight: 600; }
.hx-qb-body { padding: 16px 20px; display: grid; gap: 16px; }
.hx-qb-step { display: grid; gap: 8px; }
.hx-qb-step > span { font-size: .875rem; font-weight: 600; }
.hx-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.hx-chip {
	display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border: 1px solid var(--c-line); border-radius: 999px;
	background: #fff; font: 400 .875rem var(--font); color: var(--c-ink-2); cursor: pointer; white-space: nowrap;
}
.hx-chip:hover { border-color: var(--c-line-strong); }
.hx-chip[aria-checked='true'] { border-color: var(--c-brand); background: var(--c-brand-soft); color: var(--c-brand-ink); font-weight: 600; }
.hx-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 600px) { .hx-opts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.hx-opt {
	display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 12px; border: 1px solid var(--c-line); border-radius: var(--r-md);
	background: #fff; text-align: left; cursor: pointer; font-family: var(--font); color: var(--c-ink);
}
.hx-opt:hover { border-color: var(--c-line-strong); }
.hx-opt[aria-checked='true'] { border: 2px solid var(--c-brand); padding: 9px 11px; background: var(--c-brand-soft); }
.hx-opt[disabled] { opacity: .5; cursor: not-allowed; background: #f8fafc; }
.hx-opt-l { font-size: .875rem; font-weight: 600; }
.hx-opt-p { font-size: .875rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.hx-opt-x { font-size: .75rem; color: var(--c-muted); }
.hx-qb-more { font-size: .875rem; }
.hx-note { display: flex; gap: 12px; padding: 12px 16px; border-radius: var(--r-md); font-size: .875rem; background: var(--c-warn-soft); color: #5b3b00; margin: 0; }
.hx-note .hx-i { width: 18px; height: 18px; margin-top: 1px; }
.hx-qb-foot {
	position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
	padding: 16px 20px; border-top: 2px dashed var(--c-line-strong);
}
.hx-qb-foot::before, .hx-qb-foot::after { content: ''; position: absolute; top: -12px; width: 22px; height: 22px; border-radius: 50%; background: var(--c-stage); }
.hx-qb-foot::before { left: -11px; }
.hx-qb-foot::after { right: -11px; }
.hx-qb-total { font: 700 1.5625rem var(--font); font-variant-numeric: tabular-nums; }
.hx-qb-total small { display: block; font-size: .75rem; font-weight: 400; color: var(--c-muted); }
.hx-qb-btns { display: flex; gap: 8px; }
@media (max-width: 599px) { .hx-qb-btns { width: 100%; } .hx-qb-btns .hx-btn { flex: 1; } .hx-qb-total small { display: none; } }

/* toast after "Thêm vào giỏ" */
.hx-toast {
	position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); z-index: 2000; display: flex; gap: 16px; align-items: center;
	max-width: calc(100% - 32px); padding: 12px 16px; border-radius: var(--r-md); background: var(--c-ink); color: #fff; font-size: .875rem; box-shadow: var(--sh-pop);
}
.hx-toast a { color: var(--c-neon) !important; font-weight: 600; white-space: nowrap; }
@media (min-width: 768px) { .hx-toast { bottom: 24px; } }

/* trust strip */
.hx-trust { list-style: none; margin: 0; padding: 24px 0 8px; display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hx-trust li { display: flex; gap: 12px; align-items: flex-start; }
.hx-trust .hx-i { color: var(--c-brand-ink); margin-top: 2px; }
.hx-trust b { display: block; font-size: .875rem; }
.hx-trust small { display: none; font-size: .75rem; color: var(--c-muted); line-height: 1.45; }
@media (min-width: 768px) { .hx-trust small { display: block; } }
@media (min-width: 1024px) { .hx-trust { grid-template-columns: repeat(4, minmax(0, 1fr)); padding-top: 32px; } .hx-trust li + li { border-left: 1px solid var(--c-line); padding-left: 16px; } }

/* sections and cards */
.hx-sec { padding: 24px 0 8px; }
.hx-sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.hx-sec-h h2 { font: 700 1.25rem/1.2 var(--font); margin: 0; letter-spacing: -0.01em; color: var(--c-ink); }
.hx-sec-h a { font-size: .875rem; font-weight: 600; white-space: nowrap; color: var(--c-brand-ink); }
@media (min-width: 768px) { .hx-sec { padding-top: 40px; } .hx-sec-h h2 { font-size: 1.5625rem; } }
.hx-hscroll { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 42%); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; }
.hx-hscroll > * { scroll-snap-align: start; }
@media (min-width: 768px) { .hx-hscroll { grid-auto-columns: calc((100% - 3 * 16px) / 4); gap: 16px; } }
@media (min-width: 1200px) { .hx-hscroll { grid-auto-columns: calc((100% - 4 * 16px) / 5); } }
.hx-pc { display: flex; flex-direction: column; min-width: 0; background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-lg); overflow: hidden; color: var(--c-ink) !important; text-decoration: none !important; transition: box-shadow .16s, transform .16s; }
.hx-pc:hover { box-shadow: var(--sh-card); transform: translateY(-2px); }
.hx-pc-media { position: relative; display: block; height: 0; padding-top: 75%; background: #f1f5f9; border-bottom: 1px solid var(--c-line); overflow: hidden; }
.hw3-ui .container .hx-pc-media img, .hx-pc-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hx-pc-body { display: flex; flex-direction: column; gap: 4px; padding: 12px; flex: 1; }
.hx-pc-name { font-size: .875rem; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.hx-pc-foot { margin-top: auto; padding-top: 6px; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.hx-price { font-weight: 700; font-variant-numeric: tabular-nums; }
.hx-was { color: var(--c-muted); font-size: .75rem; }
.hx-was:empty { display: none; }

.hx-types { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 768px) { .hx-types { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; } }
@media (min-width: 1200px) { .hx-types { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.hx-type { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--c-line); color: var(--c-ink) !important; text-decoration: none !important; min-height: 104px; }
.hx-type:hover { border-color: var(--c-brand); }
.hx-type .hx-i { color: var(--c-brand-ink); width: 26px; height: 26px; margin-bottom: 4px; }
.hx-type b { font-size: 1rem; }
.hx-type span { font-size: .75rem; color: var(--c-muted); }
.hx-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
@media (min-width: 768px) { .hx-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; } }
.hx-tile { display: flex; align-items: center; gap: 12px; padding: 10px; background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-md); color: var(--c-ink) !important; text-decoration: none !important; min-width: 0; }
.hx-tile:hover { border-color: var(--c-brand); }
.hw3-ui .container .hx-tile img, .hx-tile img { width: 64px; height: 44px; object-fit: cover; border-radius: var(--r-sm); flex: none; }
.hx-tile span { font-weight: 600; font-size: .875rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.hx-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: s; }
.hx-steps li { counter-increment: s; display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; padding: 16px; background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-lg); }
.hx-steps li::before { content: counter(s); width: 36px; height: 36px; border-radius: 999px; background: var(--c-brand-soft); color: var(--c-brand-ink); font-weight: 700; display: grid; place-items: center; }
.hx-steps b { display: block; margin-bottom: 2px; }
.hx-steps span { font-size: .875rem; color: var(--c-ink-2); }
@media (min-width: 768px) { .hx-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* recently browsed, news and guides of the v2 homepage in the same look */
body.hw3-ui .hw3-section-head .hw3-h2, body.hw3-ui .hw3-h2 { font-family: var(--font); font-weight: 700; color: var(--c-ink); letter-spacing: -0.01em; }
body.hw3-ui .hw3-more { color: var(--c-brand-ink); font-weight: 600; }
body.hw3-ui .hw3-news-card { border: 1px solid var(--c-line); border-radius: var(--r-lg); box-shadow: none; }
body.hw3-ui .hw3-news-card:hover { box-shadow: var(--sh-card); }
body.hw3-ui .hw3-news-date { color: var(--c-muted); }

/* ---------- footer ---------- */
body.hw3-ui .hw3-footer { background: var(--c-stage); color: var(--c-stage-muted); margin-top: 48px; padding: 40px 0 24px; font-size: .875rem; }
body.hw3-ui .hw3-footer .hw3-wrap { max-width: 1240px; padding: 0 var(--gutter); }
body.hw3-ui .hw3-footer a { color: #d5deea !important; font-weight: 400; }
body.hw3-ui .hw3-footer a:hover { color: #fff !important; }
.hx-foot-grid { display: grid; gap: 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hx-foot-brand { grid-column: 1 / -1; }
.hx-foot-brand p { margin: 12px 0 0; max-width: 42ch; }
.hx-foot-grid h2 { color: #fff; font: 600 .875rem var(--font); margin: 0 0 12px; }
.hx-foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
body.hw3-ui .hw3-footer .hx-logo { color: var(--c-neon) !important; font-weight: 700; }
.hx-pays { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.hx-pay { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 32px; padding: 4px; border-radius: var(--r-sm); background: #fff; }
.hw3-ui .container .hx-pay img, .hx-pay img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.hx-foot-note { margin-top: 24px; display: grid; gap: 6px; font-size: .75rem; opacity: .8; }
.hx-foot-bottom { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--c-stage-line); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: .75rem; }
body.hw3-ui .hw3-footer .hx-foot-bottom a { opacity: .6; }
@media (min-width: 768px) { .hx-foot-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; } .hx-foot-brand { grid-column: auto; } }

/* ---------- checkout: cart, email step, payment step (skins/hw2 content/cart.tpl, step1.tpl, gateway.tpl) ---------- */
.hw3-checkout { margin: 16px 0 40px; }
.hw3-steps { counter-reset: none; margin: 0 0 20px; padding: 0; gap: 0; }
.hw3-steps li { font-size: .875rem; color: var(--c-muted); }
.hw3-steps li:not(:last-child)::after { background: var(--c-line); margin: 0 10px; }
.hw3-steps li.is-done:not(:last-child)::after { background: var(--c-brand); }
.hw3-step-no { width: 28px !important; height: 28px !important; font-size: .8125rem; }
.hw3-steps li.is-done .hw3-step-no { background: var(--c-brand-soft); color: var(--c-brand-ink); }
.hw3-steps li.is-current { color: var(--c-ink); }
.hw3-steps li.is-current .hw3-step-no { background: var(--c-brand-ink); color: #fff; box-shadow: 0 0 0 4px rgba(22, 163, 106, .18); }

/* ui2.css gives every checkout form a card; the hw2 pages draw their own panels */
.hw3-checkout .hx-co form, .hw3-checkout .hx-co form[name="gateway"] { display: block; background: none; box-shadow: none; border-radius: 0; padding: 0; margin: 0; grid-template-columns: none; }
.hw3-checkout .hx-co form.hx-panel { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg); }
.hw3-checkout .hx-co form.hx-pad { padding: 20px; }
.hw3-checkout .hx-co form.hx-co-grid, .hw3-checkout .hx-co form.hx-form { display: grid; }
@media (min-width: 1024px) { .hw3-checkout .hx-co form.hx-co-grid { grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; } }
.hw3-checkout .hx-co form.hx-form { gap: 8px; }
.hx-co .hx-btn-g { color: var(--c-ink-2) !important; }
.hx-co { color: var(--c-ink); }
.hx-co-grid { display: grid; gap: 20px; align-items: start; }
.hx-co-grid > * { min-width: 0; }
@media (min-width: 1024px) {
	.hx-co-grid { grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; }
	.hx-sum { position: sticky; top: 140px; }
}
.hx-panel { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg); }
.hx-pad { padding: 20px; }
@media (min-width: 768px) { .hx-pad, .hw3-checkout .hx-co form.hx-pad { padding: 24px 28px; } }
.hx-co-h { font: 700 1.25rem/1.3 var(--font); margin: 0 0 6px; letter-spacing: -0.01em; }
.hx-co-h small { font-size: .875rem; font-weight: 500; color: var(--c-muted); margin-left: 6px; }
.hx-muted { color: var(--c-muted); font-size: .9375rem; margin: 0 0 16px; }
.hx-hint { display: block; color: var(--c-muted); font-size: .8125rem; margin: 10px 0 0; line-height: 1.5; }
.hx-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hx-hide { display: none !important; }
.hx-btn-block { display: flex; width: 100%; }
.hx-btn-lg { min-height: 50px; font-size: 1.0625rem; }
.hx-btn-block + .hx-btn-block { margin-top: 8px; }
.hx-btn[aria-busy="true"] { opacity: .7; pointer-events: none; }
.hx-alert { margin: 0 0 14px; padding: 10px 14px; border-radius: var(--r-md); background: #fdecec; color: #9b1c1c; font-size: .9375rem; }
.hx-note-ok { background: var(--c-brand-soft); color: var(--c-brand-ink); font-weight: 600; margin: 0 0 14px; }
.hx-co .hx-note { margin: 8px 0 0; }

/* empty cart */
.hx-empty { text-align: center; padding: 48px 20px; display: grid; justify-items: center; gap: 10px; }
.hx-empty h1 { font: 700 1.25rem var(--font); margin: 0; }
.hx-empty p { color: var(--c-muted); margin: 0 0 8px; max-width: 40ch; }
.hx-empty-i { width: 56px; height: 56px; fill: none; stroke: var(--c-brand-ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; background: var(--c-brand-soft); border-radius: 999px; padding: 12px; }

/* cart lines */
.hx-co-lines { padding: 20px 20px 8px; }
.hx-line { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 14px; padding: 16px 0; border-top: 1px solid var(--c-line); }
.hx-co-h + .hx-line { border-top: 0; }
.hx-line-img img { width: 72px; height: 72px; object-fit: contain; border-radius: var(--r-sm); background: #f1f5f9; border: 1px solid var(--c-line); display: block; }
.hx-line-name { font: 600 .9375rem/1.4 var(--font); margin: 0; }
.hx-line-name a { color: inherit !important; }
.hx-line-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; font-size: .8125rem; color: var(--c-muted); }
.hx-line-opt { color: var(--c-ink-2); font-weight: 600; }
.hx-line-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 10px; flex-wrap: wrap; }
.hx-line-end { display: flex; align-items: center; gap: 8px; }
.hx-line-end .hx-price { font-size: 1rem; }
.hw3-checkout .hx-line input[name^="quan["] { width: 54px; height: 38px; text-align: center; }
.hw3-checkout .hx-line .hw3-qty input[name^="quan["] { width: 42px; }
.hx-co-update { border-top: 1px solid var(--c-line); padding: 12px 0; display: flex; justify-content: flex-end; }
.hx-co-update .hx-btn { min-height: 36px; font-size: .875rem; }
.hx-co-lines:has(.hw3-qty) .hx-co-update { display: none; }

/* summary */
.hx-sum { padding: 20px; }
.hx-sum h2 { font: 700 1.0625rem var(--font); margin: 0 0 12px; }
.hx-sum dl { margin: 0; display: grid; gap: 8px; }
.hx-sum dl > div { display: flex; justify-content: space-between; gap: 12px; font-size: .9375rem; }
.hx-sum dt { font-weight: 400; color: var(--c-ink-2); }
.hx-sum dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.hx-sum .hx-sum-total { border-top: 1px solid var(--c-line); padding-top: 12px; margin-top: 4px; align-items: baseline; }
.hx-sum .hx-sum-total dt { font-weight: 600; color: var(--c-ink); }
.hx-sum .hx-sum-total dd { font: 700 1.375rem var(--font); color: var(--c-ink); }
.hx-sum .hx-btn-lg { margin-top: 16px; }
.hx-sum-lines { list-style: none; margin: 0 0 12px; padding: 0 0 12px; border-bottom: 1px solid var(--c-line); display: grid; gap: 10px; }
.hx-sum-lines li { display: flex; justify-content: space-between; gap: 12px; font-size: .875rem; line-height: 1.4; }
.hx-sum-lines small { color: var(--c-muted); white-space: nowrap; }
.hx-sum-lines b { white-space: nowrap; font-variant-numeric: tabular-nums; }

/* forms of the email step */
.hx-form { display: grid; gap: 8px; }
.hx-label { font-size: .875rem; font-weight: 600; color: var(--c-ink-2); margin: 4px 0 0; }
.hx-input { width: 100%; min-height: var(--ctl-h); padding: 10px 14px; border: 1px solid var(--c-line-strong); border-radius: var(--r-md); font: 400 1rem var(--font); color: var(--c-ink); background: #fff; }
.hx-input:focus { border-color: var(--c-brand); outline: 3px solid rgba(22, 163, 106, .2); outline-offset: 0; }
textarea.hx-input { min-height: 64px; resize: vertical; }
.hx-otp { font-size: 1.5rem; letter-spacing: .4em; text-align: center; font-variant-numeric: tabular-nums; max-width: 260px; }
.hx-check { display: flex; align-items: center; gap: 8px; font-size: .875rem; color: var(--c-ink-2); font-weight: 400; margin: 4px 0; }
.hx-form .hx-btn-block { margin-top: 8px; }
.hx-co-sent { margin: 0 0 12px; font-size: .9375rem; }
.hx-co-links { display: flex; gap: 20px; margin-top: 8px; }
.hx-linkbtn { background: none; border: 0; padding: 8px 0; color: var(--c-brand-ink); font: 600 .875rem var(--font); cursor: pointer; }
.hx-linkbtn[disabled] { color: var(--c-muted); cursor: default; }
.hx-pw { margin-top: 20px; border-top: 1px solid var(--c-line); padding-top: 14px; }
.hx-pw summary { cursor: pointer; font-size: .875rem; color: var(--c-muted); padding: 6px 0; }
.hx-pw summary span { color: var(--c-brand-ink); font-weight: 600; }
.hx-pw[open] summary { margin-bottom: 8px; }
.hx-co .cf-turnstile { margin: 8px 0 0; }

/* payment step */
.hx-gw .hx-bal { margin: 0 0 16px; }
.hx-gw .hx-bal.cartProgress { display: none; }
.hx-bal dl { margin: 0; padding: 14px 16px; border-radius: var(--r-md); background: var(--c-brand-soft); display: grid; gap: 6px; }
.hx-bal-row { display: flex; justify-content: space-between; gap: 12px; font-size: .9375rem; }
.hx-bal-row:has(> dt:empty) { display: none; }
.hx-bal-row dt { font-weight: 400; color: var(--c-ink-2); }
.hx-bal-row dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.hx-bal-credit dd { color: var(--c-brand-ink); }
.hx-bal-sum { border-top: 1px solid var(--hw3-brand-line2); padding-top: 6px; }
.hx-bal-wide dt { font-size: .8125rem; color: var(--c-muted); }
.hx-gw-h { font: 700 1rem var(--font); margin: 8px 0 12px; outline: none; }

.hx-gw-group { margin: 0 0 18px; }
.hx-gw-group.cartProgress-ab-none, .hx-gw-group:not(:has(input)) { display: none; }
.hx-gw-h[data-show=""] { display: none; }
.hx-gw-group h3 { font: 600 .875rem var(--font); color: var(--c-ink-2); margin: 0 0 8px; }
.hx-gw-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 600px) { .hx-gw-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.hx-pm { position: relative; display: flex; align-items: center; gap: 10px; min-height: 60px; padding: 8px 12px; margin: 0; border: 1.5px solid var(--c-line); border-radius: var(--r-md); background: #fff; cursor: pointer; font-weight: 400; transition: border-color .12s, background .12s; }
.hx-pm:hover { border-color: var(--c-line-strong); }
.hx-pm:has(input:checked) { border-color: var(--c-brand); background: var(--c-brand-soft); box-shadow: 0 0 0 1px var(--c-brand) inset; }
.hx-pm:has(input:focus-visible) { outline: 3px solid var(--c-focus); outline-offset: 2px; }
.hw3-checkout .hx-pm input[type="radio"] { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.hx-pm-logo { flex: none; width: 64px; height: 34px; display: flex; align-items: center; justify-content: center; border-radius: var(--r-sm); background: #fff; border: 1px solid var(--c-line); padding: 3px; overflow: hidden; }
.hx-pm-logo img { max-width: 100%; max-height: 100%; width: auto !important; height: auto !important; object-fit: contain; }
.hx-pm-name { min-width: 0; font-size: .8125rem; font-weight: 600; line-height: 1.3; color: var(--c-ink); }
.hx-pm-name small { display: block; font-weight: 400; color: var(--c-muted); font-size: .75rem; margin-top: 2px; }
.hx-pm-name small:empty, .hx-pm-name small[data-v="0"] { display: none; }
.hx-pm-name::before { display: block; }
.hx-pm[data-gw="VTB_Bank"] .hx-pm-name::before { content: "VietinBank"; }
.hx-pm[data-gw="BIDV_Bank"] .hx-pm-name::before { content: "BIDV"; }
.hx-pm[data-gw="AGRI_Bank"] .hx-pm-name::before { content: "Agribank"; }
.hx-pm[data-gw="Techcom_Bank"] .hx-pm-name::before { content: "Techcombank"; }
.hx-pm[data-gw="TPB_Bank"] .hx-pm-name::before { content: "TPBank"; }
.hx-pm[data-gw="MB_Bank"] .hx-pm-name::before { content: "MB Bank"; }
.hx-pm[data-gw="PVCB_Bank"] .hx-pm-name::before { content: "PVcomBank"; }
.hx-pm[data-gw="Zalo_pay"] .hx-pm-name::before { content: "ZaloPay"; }
.hx-pm[data-gw="Momo_pay"] .hx-pm-name::before { content: "MoMo"; }
.hx-pm[data-gw="Viettel_pay"] .hx-pm-name::before { content: "Viettel Money"; }
.hx-pm[data-gw="Air_pay"] .hx-pm-name::before { content: "ShopeePay"; }
.hx-pm[data-gw="PayPal_Shopping_Cart"] .hx-pm-name::before { content: "PayPal"; }
.hx-pm[data-gw="PayPal_Shopping_Cart_CC"] .hx-pm-name::before { content: "Visa / Mastercard"; }
.hx-pm[data-gw="Webmoney"] .hx-pm-name::before { content: "WebMoney"; }
.hx-pm[data-gw="Webmoney_Bitcoin"] .hx-pm-name::before { content: "Bitcoin"; }
.hx-pm[data-gw="Webmoney_USDT"] .hx-pm-name::before { content: "USDT"; }
.hx-gw-extra { margin-top: 8px; border-top: 1px solid var(--c-line); padding-top: 14px; display: grid; gap: 6px; }
.hx-gw-extra .hx-hint { margin: 0; }
.hx-gw .hw-vn-note, .hx-gw > .alert { margin: 0 0 14px; }
.hx-transfer { display: grid; justify-items: center; gap: 12px; padding: 32px 0; text-align: center; }
.hx-spin { width: 36px; height: 36px; border: 3px solid var(--c-brand-soft); border-top-color: var(--c-brand); border-radius: 999px; animation: hx-spin 0.9s linear infinite; }
@keyframes hx-spin { to { transform: rotate(360deg); } }
.hx-gw-err { margin-top: 12px; }
@media (max-width: 599px) {
	.hx-pm { min-height: 54px; padding: 8px; gap: 8px; }
	.hx-pm-logo { width: 52px; height: 30px; }
	.hw3-steps .hw3-step-name { display: none; }
	.hw3-steps li.is-current .hw3-step-name { display: inline; }
}
/* ---------- account area (phase 3): the v2 account pages in the /demo look ---------- */
.hw3-crumbs { background: var(--c-surface); border-bottom: 1px solid var(--c-line); }
.hw3-crumbs .hw3-wrap { max-width: 1240px; padding-left: var(--gutter); padding-right: var(--gutter); }
.hw3-account { max-width: 1240px; margin: 24px auto 40px; padding: 0 var(--gutter); gap: 28px; grid-template-columns: 240px minmax(0, 1fr); }
.hw3-acc-side, .hw3-stat, .hw3-table-card, .hw3-vo-card, .hw3-vo-steps, .hw3-bal-stat, .hw3-acc-legacy, .hw3-cf-card {
	border: 1px solid var(--c-line); border-radius: var(--r-lg); box-shadow: none;
}
.hw3-help, .hw3-vo-help { border-radius: var(--r-lg); box-shadow: none; border: 1px solid #cfeadd; }
.hw3-bal-main { border-radius: var(--r-lg); background: var(--c-stage); box-shadow: none; }
.hw3-acc-nav a { font-size: .9375rem; color: var(--c-ink-2) !important; }
.hw3-acc-nav a.is-active { background: var(--c-brand-soft); color: var(--c-brand-ink) !important; }
.hw3-acc-profile-name { color: var(--c-ink) !important; font-weight: 700; }
.hw3-acc-avatar { color: var(--c-brand-ink); }
.hw3-acc-title, .hw3-acc-h2, .hw3-help-title {
	font-family: var(--font); font-stretch: normal; text-transform: none; letter-spacing: -0.01em; color: var(--c-ink); font-weight: 700;
}
.hw3-acc-title { font-size: 1.75rem; margin-bottom: 18px; }
.hw3-acc-h2 { font-size: 1.25rem; margin: 28px 0 12px; }
.hw3-help-title { font-size: 1.125rem; }
.hw3-stat-head, .hw3-table th, .hw3-vo-sub, .hw3-bal-label { text-transform: none; letter-spacing: 0; font-size: .8125rem; font-weight: 600; color: var(--c-muted); }
.hw3-stat-head { background: var(--c-bg); }
.hw3-stat-value { font-size: 1.75rem; font-weight: 700; color: var(--c-ink); font-variant-numeric: tabular-nums; }
.hw3-table th { background: var(--c-bg); padding: 12px 18px; }
.hw3-table td { color: var(--c-ink-2); font-size: .9375rem; }
.hw3-table td.hw3-right { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--c-ink); }
.hw3-table a { color: var(--c-brand-ink) !important; font-weight: 600; }
.hw3-table-foot { background: var(--c-bg); }
.hw3-status { font-weight: 600; font-size: .8125rem; }
/* buttons: the /demo button (rounded rectangle, normal case) */
.hw3-btn-pill, .hw3-btn-white, .hw3-btn-outline, .hw3-tu-submit {
	display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 18px; border-radius: var(--r-md);
	font: 600 .9375rem/1.2 var(--font); text-transform: none; letter-spacing: 0; box-shadow: none;
}
.hw3-btn-pill { background: var(--c-brand-ink); border: 1px solid var(--c-brand-ink); }
.hw3-btn-pill:hover { background: var(--c-brand-ink-hover); border-color: var(--c-brand-ink-hover); }
.hw3-btn-ghost { background: #fff; color: var(--c-brand-ink) !important; border-color: var(--c-line-strong); }
.hw3-btn-ghost:hover { background: var(--c-brand-soft); border-color: var(--c-brand); }
.hw3-btn-white { border: 1px solid var(--c-line); }
.hw3-btn-outline { border-color: var(--c-line); }
.hw3-tu-submit { display: flex; width: 100%; min-height: var(--ctl-h); background: var(--c-brand-ink); }
.hw3-tu-submit:hover { background: var(--c-brand-ink-hover); }
.hw3-tu-input { border-width: 1px; border-color: var(--c-line-strong); border-radius: var(--r-md); }
.hw3-tu-pick { border-width: 1px; border-radius: var(--r-md); background: #fff; color: var(--c-ink-2); }
.hw3-tu-pick.is-active { border-color: var(--c-brand); background: var(--c-brand-soft); color: var(--c-brand-ink); }
.hw3-bal-filter a { border-color: var(--c-line); }
@media (max-width: 991px) {
	.hw3-account { grid-template-columns: 1fr; gap: 18px; margin-top: 16px; }
	.hw3-acc-nav a.is-active { background: var(--c-brand-soft); }
}
@media (max-width: 575px) {
	.hw3-acc-title { font-size: 1.375rem; }
}/* step bar on phones: the current step name never pushes the page wider than the screen */
@media (max-width: 599px) {
	.hw3-steps li.is-current { flex-shrink: 0; }
	.hw3-steps li.is-current .hw3-step-name { max-width: 40vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}/* account area on narrow screens: the grid columns may shrink below their content (the menu scrolls inside its box) */
.hw3-account > * { min-width: 0; }/* order lists on phones: one compact row per order (number + amount, then date + status) */
.hx-orders .hw3-status { white-space: nowrap; }
@media (max-width: 575px) {
	.hx-orders thead { display: none; }
	.hx-orders tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--c-line); }
	.hx-orders tbody tr:last-child { border-bottom: 0; }
	.hx-orders tbody td { padding: 0 !important; border: 0 !important; font-size: .9375rem; }
	.hx-orders .hx-o-id { grid-column: 1; grid-row: 1; }
	.hx-orders .hx-o-amount { grid-column: 2; grid-row: 1; }
	.hx-orders .hx-o-date { grid-column: 1; grid-row: 2; color: var(--c-muted); font-size: .8125rem; }
	.hx-orders .hx-o-status { grid-column: 2; grid-row: 2; text-align: right; }
	.hx-orders .hw3-empty { grid-column: 1 / -1; }
}
/* "Mua nhanh" as on /demo: flags / GL badge in the region chips, square brand pictures (the old skin's
   ".container img" rules are more specific than ".hx-qb-tab img", hence the longer selectors) */
.hx-chip { display: inline-flex; align-items: center; gap: 8px; }
.hw3-ui .container .hx-flag, .hx-flag { width: 24px; height: 18px; max-width: none; object-fit: cover; border-radius: 3px; box-shadow: 0 0 0 1px rgba(23, 33, 43, .1); flex: none; }
.hx-rc { display: inline-flex; align-items: center; gap: 3px; padding: 1px 6px; border: 1.5px solid currentColor; border-radius: 6px; font-size: .75rem; font-weight: 700; color: var(--c-brand-ink); }
.hx-rc .hx-i { width: 14px; height: 14px; }
.hw3-ui .container .hx-qb-tab img, .hx-qb-tab img { width: 44px; height: 44px; max-width: none; object-fit: cover; border-radius: 8px; background: var(--c-bg); flex: none; }
@media (max-width: 767px) {
	.hx-hero h1 { max-width: none; }
}
@media (max-width: 599px) {
	.hx-qb-head span { display: none; }
}