/* Theme v2: khung chung (topbar, header, giỏ hàng, footer). Màu lấy từ prototype Flixtor. */
:root {
  --brand-yellow: #fad016; --brand-blue: #266cde;
  --bg: #fff; --bg-soft: #f7f8fb; --surface: #fff; --text: #23262d; --muted: #6b7280;
  --border: #e7e9ee; --link: #1f8fbf; --shadow: rgba(16,24,43,.10); --surface-2: #f3f5f9; --text-2: #4b5563;
  /* Header/footer dùng xanh thương hiệu như theme cũ */
  --chrome: #266cde; --chrome-top: #1d58bb; --chrome-text: #eef3ff; --chrome-muted: #c9d8f5;
  --chrome-line: rgba(255,255,255,.22); --chrome-hover: rgba(255,255,255,.14); --on-yellow: #10182b;
  --pk-ease: cubic-bezier(.22,.8,.3,1);
  --bw: 2px;
}
:root[data-theme="dark"] {
  /* Dark: nền xám xanh, header/footer xanh đậm */
  --bg: #1a2230; --bg-soft: #202a3b; --surface: #253145; --text: #e8edf5; --muted: #95a3ba;
  --border: #34425a; --link: #6cc6ec; --shadow: rgba(4,10,22,.45); --surface-2: #2b384f; --text-2: #bcc7d8;
  --chrome: #1b3d78; --chrome-top: #15305f; --chrome-muted: #a9bde0;
  --chrome-line: rgba(255,255,255,.12); --chrome-hover: rgba(255,255,255,.10);
  --bw: 1px;
}
body { font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif; background: var(--bg); color: var(--text); transition: background-color .2s, color .2s; }
a { color: var(--link); }
.pk-wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; width: 100%; }

/* ===== Topbar ===== */
.pk-topbar { background: var(--chrome-top); color: var(--chrome-text); font-size: 12.5px; }
.pk-topbar .pk-wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; height: 50px; white-space: nowrap; }
.pk-topbar-side { display: flex; align-items: center; gap: 16px; min-width: 0; }
.pk-topbar a { color: var(--chrome-text); display: inline-flex; align-items: center; gap: 6px; text-decoration: none; transition: color .15s; }
.pk-topbar a:hover { color: #fff; }
.pk-rating b { color: var(--brand-yellow); font-weight: 700; }
.pk-theme-switch { display: inline-flex; background: var(--chrome-hover); border-radius: 999px; padding: 2px; gap: 2px; }
.pk-theme-switch button { border: 0; background: transparent; color: var(--chrome-muted); cursor: pointer; width: 26px; height: 22px; border-radius: 999px; display: flex; align-items: center; justify-content: center; padding: 0; font-size: 12px; transition: background-color .2s, color .2s; }
.pk-theme-switch button:hover { color: #fff; }
.pk-theme-switch button[aria-pressed="true"] { background: var(--brand-yellow); color: var(--on-yellow); }

/* ===== Header ===== */
.pk-header { background: var(--chrome); position: sticky; top: 0; z-index: 1030; transition: box-shadow .25s; }
.pk-header.is-stuck { box-shadow: 0 4px 18px var(--shadow); }
.pk-header-row { display: flex; align-items: center; gap: 40px; height: 92px; }
.pk-logo img { height: 40px; width: auto; display: block; }
.pk-shop-btn { white-space: nowrap; flex: none; display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--chrome-line); background: transparent; color: var(--chrome-text); font-size: 14px; font-weight: 500; padding: 8px 14px; border-radius: 999px; cursor: pointer; transition: background-color .2s, color .2s; }
.pk-shop-btn:hover { background: var(--chrome-hover); color: #fff; }
.pk-nav { display: flex; gap: 14px; }
.pk-nav a { white-space: nowrap; color: var(--chrome-text); font-size: 14px; font-weight: 500; padding: 12px 26px; border-radius: 999px; text-decoration: none; transition: background-color .2s, color .2s; }
.pk-nav a:hover { background: var(--chrome-hover); color: #fff; }
.pk-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.pk-action { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-size: 13px; font-weight: 500; padding: 8px 12px; border: 0; background: transparent; border-radius: 999px; text-decoration: none; cursor: pointer; transition: background-color .2s; }
.pk-action:hover, .pk-action.show { background: var(--chrome-hover); color: #fff; }
.pk-action.dropdown-toggle::after { display: none; }
.pk-action i { font-size: 17px; }
.pk-cart-btn #cart-total { background: var(--brand-yellow); color: var(--on-yellow); border-radius: 999px; padding: 1px 9px; font-weight: 700; font-size: 12px; }

/* ===== Dropdown giỏ hàng ===== */
.pk-cart-menu { min-width: 340px; max-width: 92vw; padding: 0; border-radius: 14px; border-color: var(--border); box-shadow: 0 14px 36px var(--shadow); overflow: hidden; }
.pk-cart-menu.show { animation: pk-pop .18s var(--pk-ease); }
.pk-cart-head { display: flex; justify-content: space-between; gap: 10px; padding: 12px 16px; background: var(--bg-soft); border-bottom: 1px solid var(--border); font-size: 14px; }
.pk-cart-table { width: 100%; }
.pk-cart-table td { padding: 10px 12px; vertical-align: middle; border-bottom: 1px solid var(--border); font-size: 13px; }
.pk-cart-thumb { width: 64px; }
.pk-cart-thumb img { width: 52px; height: 52px; object-fit: contain; border-radius: 8px; }
.cart-price { color: var(--link); font-style: normal; font-weight: 600; }
.pk-cart-foot { padding: 12px 16px; }
.dropdown-menu { background: var(--surface); }

/* ===== Modal danh mục ===== */
.tmenu li a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--text); text-decoration: none; transition: background-color .15s; }
.tmenu .tparent a { font-weight: 700; margin-top: 10px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.tmenu .tchildren a:hover { background: var(--bg-soft); }

/* ===== Footer ===== */
.pk-footer { background: var(--chrome); color: var(--chrome-muted); font-size: 13px; margin-top: 48px; }
.pk-footer-main { padding: 44px 0 28px; }
.pk-foot-title { color: #fff; font-size: 15px; font-weight: 600; margin-bottom: 14px; }
.pk-foot-list li { margin-bottom: 8px; line-height: 1.5; }
.pk-foot-list a { color: var(--chrome-muted); text-decoration: none; transition: color .15s; }
.pk-foot-list a:hover { color: #fff; }
.pk-foot-acc .accordion-item { background: transparent; border-color: var(--chrome-line); }
.pk-foot-acc .accordion-button { background: transparent; color: #fff; box-shadow: none; font-weight: 600; font-size: 15px; }
.pk-foot-acc .accordion-button::after { filter: invert(1); }
.pk-footer-bottom { border-top: 1px solid var(--chrome-line); padding: 16px 0; }
.pk-footer-bottom-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.pk-socials { display: flex; gap: 14px; margin: 0; font-size: 20px; align-items: center; }
.pk-socials a { color: var(--chrome-muted); transition: color .15s, transform .15s; display: inline-block; }
.pk-socials a:hover { color: #fff; transform: translateY(-2px); }
.pk-sep { opacity: .4; }

/* ===== Nút lên đầu trang ===== */
.scrollToTop { position: fixed; right: 18px; bottom: 90px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--brand-blue); color: #fff; box-shadow: 0 6px 18px var(--shadow); cursor: pointer; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .25s, transform .25s var(--pk-ease); z-index: 1020; }
.scrollToTop.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.scrollToTop:hover { filter: brightness(1.1); }

/* ===== Hiệu ứng ===== */
@keyframes pk-pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .pk-cart-menu.show { animation: none; }
  .scrollToTop, .pk-header, body { transition: none; }
}

/* ===== Responsive ===== */
/* Màn laptop: thu khoảng cách để giỏ hàng không tràn lề phải */
@media (max-width: 1399.98px) {
  .pk-header-row { gap: 16px; }
  .pk-nav { gap: 4px; }
  .pk-nav a { padding: 10px 16px; }
  .pk-actions { gap: 4px; }
}
@media (max-width: 1199.98px) {
  .pk-action-label { display: none; }
}
@media (max-width: 991.98px) {
  .pk-nav { display: none; }
  .pk-header-row { gap: 12px; }
  .pk-shop-btn span { display: none; }
  .pk-topbar-side:first-child a:last-child { display: none; }
}
@media (max-width: 575.98px) {
  .pk-only-wide { display: none; }
  .pk-header-row { gap: 8px; }
  .pk-logo { min-width: 0; flex: 0 1 auto; }
  .pk-logo img { height: 32px; max-width: 100%; object-fit: contain; object-position: left center; }
  .pk-action { padding: 8px; }
  .pk-cart-btn #cart-total { font-size: 11px; padding: 1px 7px; white-space: nowrap; }
  .pk-footer-bottom-row { justify-content: center; text-align: center; }
}

/* ===== Trang danh mục / sản phẩm (product/category) ===== */
.pd-hero { background: var(--brand-blue); padding: 28px 0; color: #f2f6ff; }
.pd-crumb { font-size: 12.5px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.pd-crumb a { color: #f2f6ff; text-decoration: none; }
.pd-crumb a:hover { text-decoration: underline; }
.pd-crumb i { font-size: 9px; opacity: .7; }
.pd-section { padding: 48px 0; }
.pd-layout { display: grid; grid-template-columns: 1fr 1.15fr; gap: 44px; align-items: start; }
.pd-layout > * { min-width: 0; }
.pd-media { background: #fff; border: var(--bw) solid var(--border); border-radius: 18px; padding: 40px; display: flex; align-items: center; justify-content: center; min-height: 240px; }
.pd-media img { max-width: 260px; width: 100%; height: auto; border-radius: 10px; }
.pd-media-name { font-size: 28px; font-weight: 800; }
.pd-info h1 { font-size: 30px; font-weight: 800; margin: 0 0 14px; }
.pd-price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 18px; }
.pd-from { font-size: 14px; color: var(--muted); }
.pd-price strong { font-size: 34px; font-weight: 800; }
.pd-options { margin-bottom: 22px; }
.pd-opt-label { display: block; font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 10px; }
/* Một hàng, vuốt ngang; padding 4px để viền focus của gói đang chọn không bị cắt */
.pd-opt-group { display: flex; flex-wrap: wrap; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; padding: 4px; margin: -4px; }
.pd-opt { position: relative; cursor: pointer; flex: none; margin: 0; }
.pd-opt input { position: absolute; opacity: 0; pointer-events: none; }
.pd-opt span { display: block; height: 100%; font-size: 14px; color: var(--text); padding: 11px 18px; border: var(--bw) solid var(--border); border-radius: 10px; background: var(--surface); transition: border-color .15s, background .15s; }
.pd-opt b { display: block; font-weight: 600; white-space: nowrap; }
.pd-opt em { display: block; font-style: normal; font-size: 13px; font-weight: 700; color: var(--brand-blue); margin-top: 2px; }
.pd-opt em s { color: var(--muted); font-weight: 400; margin-right: 4px; }
.pd-opt input:checked + span { border-color: var(--brand-blue); background: rgba(38,108,222,.06); box-shadow: 0 0 0 3px rgba(38,108,222,.12); }
.pd-opt input:focus-visible + span { outline: 2px solid var(--brand-blue); outline-offset: 2px; }
.pd-buy { margin-bottom: 22px; }
.pd-btn { display: block; width: 100%; text-align: center; background: var(--brand-yellow); color: var(--on-yellow); font-weight: 700; font-size: 16px; padding: 15px 30px; border-radius: 999px; border: 0; cursor: pointer; text-decoration: none; }
.pd-btn:hover { filter: brightness(.97); color: var(--on-yellow); }
.pd-btn:disabled { opacity: .6; cursor: wait; }
.pd-error { color: #d93025; font-size: 13px; margin: 10px 0 0; }
.pd-trust { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.pd-trust li { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 500; color: var(--text-2); }
.pd-trust i { width: 22px; text-align: center; color: var(--brand-blue); font-size: 17px; }
.pd-tabs { margin-top: 44px; }
.pd-tabs-nav { display: flex; gap: 2px; margin-bottom: 26px; overflow-x: auto; scrollbar-width: none; box-shadow: inset 0 -2px 0 var(--border); }
.pd-tabs-nav::-webkit-scrollbar { display: none; }
.pd-tab { border: 0; background: transparent; cursor: pointer; font: inherit; font-size: 14.5px; font-weight: 600; color: var(--muted); flex: none; white-space: nowrap; padding: 12px 18px; border-bottom: 3px solid transparent; transition: color .15s, border-color .15s; }
.pd-tab:hover { color: var(--text); }
.pd-tab.is-active { color: var(--text); border-bottom-color: var(--brand-blue); }
.pd-panel { display: none; font-size: 15px; line-height: 1.75; color: var(--text-2); max-width: 820px; overflow-wrap: anywhere; }
.pd-panel.is-active { display: block; }
.pd-panel img { max-width: 100%; height: auto; }
.pd-panel a { color: var(--brand-blue); text-decoration: underline; text-underline-offset: 2px; }
.pd-refine { margin-top: 44px; }
.pd-refine h2 { font-size: 18px; font-weight: 700; }
.pd-refine ul { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 16px 0 0; }
.pd-title { font-size: 30px; font-weight: 800; line-height: 1.2; margin: 0 0 6px; }
.pd-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 8px 8px 16px; border: var(--bw) solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text); font-size: 14px; font-weight: 500; text-decoration: none; transition: border-color .15s, background-color .15s, transform .15s; }
.pd-chip small { min-width: 24px; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 12px; font-weight: 700; text-align: center; }
.pd-chip:hover { border-color: var(--brand-blue); color: var(--text); transform: translateY(-1px); }
.pd-chip:focus-visible { outline: 2px solid var(--brand-blue); outline-offset: 2px; }
.pd-empty { color: var(--muted); }
.pd-btn-auto { display: inline-block; width: auto; }
@media (max-width: 700px) {
  .pd-title { font-size: 24px; }
  .pd-layout { grid-template-columns: 1fr; gap: 28px; }
  .pd-media { padding: 28px; }
  .pd-opt-group { flex-wrap: nowrap; margin: -4px -20px; padding: 4px 20px; scrollbar-width: none; }
  .pd-opt-group::-webkit-scrollbar { display: none; }
  .pd-tabs-nav { margin-left: -20px; margin-right: -20px; padding: 0 20px; }
}

/* ===== Trang chủ (common/home) ===== */
.hm-hero { background: var(--bg-soft); border-bottom: 1px solid var(--border); padding: 44px 0 48px; text-align: center; }
.hm-title { font-size: 30px; font-weight: 800; margin: 0 0 10px; }
.hm-lead { color: var(--text-2); font-size: 15px; line-height: 1.6; max-width: 640px; margin: 0 auto; }
.hm-steps { list-style: none; padding: 0; margin: 34px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: hm; }
.hm-step { background: var(--surface); border: var(--bw) solid var(--border); border-radius: 18px; padding: 26px 22px; position: relative; counter-increment: hm; }
.hm-step::before { content: counter(hm); position: absolute; top: 14px; left: 14px; width: 26px; height: 26px; border-radius: 50%; background: var(--brand-yellow); color: var(--on-yellow); font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.hm-step img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }
.hm-step h3 { font-size: 18px; font-weight: 700; margin: 16px 0 8px; }
.hm-step-des { font-size: 14px; line-height: 1.6; color: var(--text-2); }
.hm-section { padding: 48px 0 56px; }
.hm-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.hm-head h2 { font-size: 24px; font-weight: 800; margin: 0; }
/* Khối đánh giá Trustpilot: điểm | phân bố sao | kêu gọi viết review */
:root { --tp-green: #00b67a; --tp-red: #d84c3e; }
.hm-trust { padding-top: 8px; }
.hm-tp-card { background: var(--surface); border: var(--bw) solid var(--border); border-radius: 18px; display: grid; grid-template-columns: 260px 1fr 300px; overflow: hidden; }
.hm-tp-card > div { padding: 32px 36px; }
.hm-tp-card h3 { font-size: 15px; font-weight: 700; margin: 0; }
.hm-tp-score { text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; border-right: 1px solid var(--border); }
.hm-tp-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.hm-tp-num { font-size: 52px; font-weight: 800; line-height: 1; margin-top: 10px; color: var(--text); }
.hm-tp-num span { font-size: 20px; font-weight: 600; color: var(--muted); }
.hm-tp-stars { display: flex; gap: 3px; margin: 12px 0 8px; }
.hm-tp-stars i { width: 26px; height: 26px; background: var(--border); display: flex; align-items: center; justify-content: center; }
.hm-tp-stars i.on { background: var(--tp-green); }
.hm-tp-stars i.half { background: linear-gradient(90deg, var(--tp-green) 60%, var(--border) 60%); }
.hm-tp-stars svg { width: 17px; height: 17px; fill: #fff; }
.hm-tp-count { font-size: 12.5px; color: var(--muted); }
.hm-tp-bars { display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.hm-tp-row { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--text-2); }
.hm-tp-lbl { width: 48px; flex-shrink: 0; }
.hm-tp-bar { flex: 1; height: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.hm-tp-bar i { display: block; height: 100%; background: var(--tp-green); border-radius: 999px; min-width: 4px; }
.hm-tp-bar--bad i { background: var(--tp-red); }
.hm-tp-pct { width: 38px; text-align: right; flex-shrink: 0; font-weight: 600; }
.hm-tp-cta { background: var(--bg-soft); border-left: 1px solid var(--border); display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.hm-tp-cta p { font-size: 13px; color: var(--muted); line-height: 1.6; margin: 6px 0 0; }
.hm-tp-actions { display: flex; flex-direction: column; gap: 10px; }
.hm-tp-actions .btn { font-weight: 600; padding: 12px 20px; font-size: 14px; }
.hm-tp-readall { font-size: 13px; font-weight: 600; text-align: center; color: var(--brand-blue); text-decoration: none; }
.hm-tp-readall:hover { text-decoration: underline; }
.hm-tp-note { margin: 16px 0 0; font-size: 11.5px; color: var(--muted); line-height: 1.6; text-align: center; }
.hm-tp-note a { color: inherit; }
@media (max-width: 1024px) {
  .hm-tp-card { grid-template-columns: 220px 1fr; }
  .hm-tp-cta { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--border); flex-direction: row; align-items: center; flex-wrap: wrap; }
  .hm-tp-cta > div { flex: 1; min-width: 220px; }
}
@media (max-width: 640px) {
  .hm-tp-card { grid-template-columns: 1fr; }
  .hm-tp-card > div { padding: 24px 22px; }
  .hm-tp-score { border-right: 0; border-bottom: 1px solid var(--border); }
  .hm-tp-actions { flex: 1 1 100%; }
}
.hm-search { max-width: 320px; border-width: var(--bw); border-radius: 999px; padding: 9px 18px; background: var(--surface); color: var(--text); border-color: var(--border); }
.hm-search:focus { background: var(--surface); color: var(--text); border-color: var(--brand-blue); box-shadow: 0 0 0 3px rgba(38,108,222,.15); }
.hm-search::placeholder { color: var(--muted); }
.hm-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.hm-chip { border: var(--bw) solid var(--border); background: var(--surface); color: var(--text); border-radius: 999px; padding: 6px 14px; font-size: 13.5px; font-weight: 500; cursor: pointer; transition: background .15s, border-color .15s; }
.hm-chip:hover { border-color: var(--muted); }
.hm-chip small { color: var(--muted); margin-left: 2px; }
.hm-chip.is-active { background: var(--brand-yellow); border-color: var(--brand-yellow); color: var(--on-yellow); }
.hm-chip.is-active small { color: var(--on-yellow); opacity: .7; }
.hm-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; transition: opacity .15s; }
.hm-grid.is-loading { opacity: .5; }
.hm-card { display: flex; flex-direction: column; background: var(--surface); border: var(--bw) solid var(--border); border-radius: 14px; overflow: hidden; text-decoration: none; color: var(--text); transition: transform .18s var(--pk-ease), box-shadow .18s, border-color .18s; }
.hm-card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px var(--shadow); border-color: transparent; color: var(--text); }
/* Logo cũ có nền trắng: khung ảnh luôn trắng để không lộ viền ở chế độ tối */
.hm-card-media { background: #fff; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; padding: 18px; border-bottom: 1px solid var(--border); }
.hm-card-media img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.hm-card-media.is-text { color: #23262d; font-size: 18px; font-weight: 700; }
.hm-card-body { padding: 12px 16px; display: flex; flex-direction: column; align-items: stretch; gap: 8px; text-align: center; }
.hm-card-name { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.hm-card-price { cursor: pointer; padding: 7px 12px; border-radius: 999px; transition: background .15s, color .15s; font-size: 13px; font-weight: 700; color: var(--brand-blue); white-space: nowrap; text-align: center; border: var(--bw) solid currentColor; }
.hm-card-price:hover { background: var(--brand-blue); color: #fff; }
:root[data-theme="dark"] .hm-card-price { color: var(--link); }
.hm-empty { text-align: center; padding: 40px 0; color: var(--muted); }
.hm-more { text-align: center; margin-top: 28px; }
.hm-more-btn { border: var(--bw) solid var(--border); background: var(--surface); color: var(--text); font-weight: 600; font-size: 14px; padding: 11px 30px; border-radius: 999px; cursor: pointer; }
.hm-more-btn:hover { border-color: var(--brand-blue); color: var(--brand-blue); }
@media (max-width: 991.98px) {
  /* Tablet: 3 cột (LIMIT 18 chia hết cho 6, 3, 2), tên và giá xếp dọc để không bị cắt */
  .hm-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hm-grid { gap: 12px; }
  .hm-card-media { padding: 10px; }
  .hm-card-body { flex-direction: column; gap: 2px; padding: 10px 12px; }
  .hm-card-name { width: 100%; font-size: 13px; }
}
@media (max-width: 767.98px) {
  .hm-hero { padding: 30px 0 32px; }
  .hm-title { font-size: 24px; }
  .hm-steps { grid-template-columns: 1fr; gap: 12px; margin-top: 24px; }
  .hm-step { display: grid; grid-template-columns: 64px 1fr; column-gap: 14px; text-align: left; padding: 16px; align-items: center; }
  .hm-step::before { top: 8px; left: 8px; width: 22px; height: 22px; font-size: 12px; }
  .hm-step img { width: 64px; height: 64px; grid-row: span 2; }
  .hm-step h3 { margin: 0 0 4px; font-size: 16px; }
  .hm-step-des { font-size: 13px; }
  .hm-section { padding: 32px 0 40px; }
  .hm-search { max-width: none; flex: 1 1 100%; }
  .hm-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -20px 20px; padding: 0 20px; }
  .hm-chips::-webkit-scrollbar { display: none; }
  .hm-chip { flex: none; }
  .hm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .hm-card-media { height: 84px; }
}

/* Trang chủ: form chọn thương hiệu trên mobile (giữ từ bản gốc) */
.hm-mobile { padding: 0 0 8px; }
.hm-goto { max-width: 420px; margin: 0 auto; }
.hm-goto-title { display: block; text-align: center; font-weight: 700; font-size: 1.1rem; margin-bottom: 8px; }

/* Trang chủ: banner đầu trang (chữ bên trái, thẻ nền tảng bán chạy bên phải) */
.hm-banner { background: linear-gradient(135deg, var(--chrome) 0%, var(--chrome-top) 100%); color: var(--chrome-text); padding: 56px 0 60px; overflow: hidden; }
.hm-banner-row { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.hm-eyebrow { display: inline-block; font-size: 12.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; background: var(--chrome-hover); border: 1px solid var(--chrome-line); }
.hm-banner h1 { font-size: 40px; line-height: 1.15; font-weight: 800; margin: 18px 0 14px; color: #fff; }
.hm-banner h1 span { color: var(--brand-yellow); }
.hm-banner p { font-size: 16px; line-height: 1.65; color: var(--chrome-muted); max-width: 560px; margin: 0; }
.hm-banner-cta { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 26px; }
.hm-banner-btn { font-weight: 700; padding: 13px 26px; border-radius: 999px; color: var(--on-yellow); }
.hm-banner-link { color: #fff; font-weight: 600; text-decoration: none; }
.hm-banner-link:hover { color: var(--brand-yellow); }
.hm-banner-stats { display: flex; gap: 36px; margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--chrome-line); }
.hm-banner-stats b { display: block; font-size: 26px; font-weight: 800; color: #fff; line-height: 1.1; }
.hm-banner-stats span { font-size: 13px; color: var(--chrome-muted); }
.hm-banner-stack { position: relative; display: flex; flex-direction: column; gap: 10px; background: var(--chrome-hover); border: 1px solid var(--chrome-line); border-radius: 20px; padding: 16px; }
.hm-banner-stack::before { content: "Recent sales"; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--chrome-muted); padding: 0 4px 2px; }
.hm-stack-row { cursor: pointer; display: flex; align-items: center; gap: 14px; background: var(--surface); color: var(--text); border-radius: 12px; padding: 10px 14px; text-decoration: none; box-shadow: 0 6px 18px rgba(4,10,22,.18); transition: transform .3s var(--pk-ease), box-shadow .3s, background-color .3s; }
.hm-stack-row:hover { transform: translateX(-6px) scale(1.025); box-shadow: 0 12px 28px rgba(4,10,22,.32); color: var(--text); }
.hm-stack-row img { width: 64px; height: 32px; object-fit: contain; background: #fff; border-radius: 6px; flex-shrink: 0; }
.hm-stack-name { flex: 1; min-width: 0; font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hm-stack-price { font-weight: 700; font-size: 13px; color: var(--brand-blue); white-space: nowrap; }
:root[data-theme="dark"] .hm-stack-price { color: var(--link); }

/* Dải cam kết ngay dưới banner */
.hm-commit { background: var(--surface); border-bottom: 1px solid var(--border); }
.hm-commit-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding-top: 16px; padding-bottom: 16px; }
.hm-commit-item { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--text-2); }
.hm-commit-item i { color: var(--brand-blue); font-size: 18px; }
:root[data-theme="dark"] .hm-commit-item i { color: var(--link); }

.hm-head-link { font-size: 14px; font-weight: 600; color: var(--brand-blue); text-decoration: none; }
.hm-head-link:hover { text-decoration: underline; }
:root[data-theme="dark"] .hm-head-link { color: var(--link); }

/* Phương thức thanh toán: lấy từ các cổng đang bật */
.hm-pay-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.hm-pay-item { display: flex; align-items: center; gap: 12px; background: var(--surface); border: var(--bw) solid var(--border); border-radius: 14px; padding: 14px 16px; font-size: 14px; font-weight: 600; }
.hm-pay-item i { width: 36px; height: 36px; border-radius: 10px; background: var(--surface-2); color: var(--brand-blue); display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
:root[data-theme="dark"] .hm-pay-item i { color: var(--link); }
.hm-pay-note { margin: 14px 0 0; font-size: 13px; color: var(--muted); }

/* FAQ: dùng details/summary, không cần JS */
.hm-faq { background: var(--bg-soft); border-top: 1px solid var(--border); }
.hm-faq-list { display: flex; flex-direction: column; gap: 10px; max-width: 880px; }
.hm-faq-item { background: var(--surface); border: var(--bw) solid var(--border); border-radius: 14px; }
.hm-faq-item summary { list-style: none; cursor: pointer; padding: 16px 52px 16px 20px; font-weight: 700; font-size: 15px; position: relative; }
.hm-faq-item summary::-webkit-details-marker { display: none; }
.hm-faq-item summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; border-radius: 50%; background: var(--surface-2); display: flex; align-items: center; justify-content: center; font-weight: 600; color: var(--muted); }
.hm-faq-item[open] summary::after { content: "−"; background: var(--brand-yellow); color: var(--on-yellow); }
.hm-faq-item summary:focus-visible { outline: 2px solid var(--brand-blue); outline-offset: 2px; border-radius: 14px; }
.hm-faq-item > div { padding: 0 20px 18px; font-size: 14px; line-height: 1.7; color: var(--text-2); }
.hm-faq-item a { color: var(--link); }

@media (max-width: 991.98px) {
  .hm-banner-row { grid-template-columns: 1fr; gap: 32px; }
  .hm-banner-visual { max-width: 460px; }
  .hm-commit-row { grid-template-columns: repeat(2, 1fr); }
  .hm-commit-item { justify-content: flex-start; }
}
@media (max-width: 767.98px) {
  .hm-banner { padding: 36px 0 40px; }
  .hm-banner h1 { font-size: 28px; }
  .hm-banner p { font-size: 15px; }
  .hm-banner-stats { gap: 22px; }
  .hm-banner-stats b { font-size: 21px; }
  .hm-banner-visual { display: none; }
  .hm-commit-item { font-size: 13px; }
  .hm-pay-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .hm-pay-item { padding: 12px; font-size: 13px; }
  .hm-faq-item summary { font-size: 14px; }
}


/* ===== Hiệu ứng chuyển động ===== */
/* Hiện dần khi cuộn tới: JS gắn .is-in; nếu JS tắt thì phần tử vẫn hiện bình thường */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .6s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.2,.7,.2,1); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .hm-steps.is-in .hm-step { animation: pk-rise .6s cubic-bezier(.2,.7,.2,1) both; }
.hm-steps .hm-step:nth-child(2) { animation-delay: .1s; } .hm-steps .hm-step:nth-child(3) { animation-delay: .2s; }
@keyframes pk-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes pk-card-in { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes pk-chip-pop { 0% { transform: scale(.92); } 60% { transform: scale(1.06); } 100% { transform: scale(1); } }
@keyframes pk-drop { from { opacity: 0; transform: translateY(-14px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes pk-pulse { 0% { box-shadow: 0 0 0 0 rgba(52,211,153,.6); } 100% { box-shadow: 0 0 0 9px rgba(52,211,153,0); } }
.hm-card.is-new { animation: pk-card-in .45s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--i, 0) * 40ms); }
.hm-card { transition: transform .2s, box-shadow .2s, border-color .2s; }
.hm-grid { transition: opacity .2s; }
.hm-chip { transition: background-color .2s, border-color .2s, color .2s, transform .15s; }
.hm-chip:active { transform: scale(.95); }
.hm-chip.is-pop { animation: pk-chip-pop .3s ease; }
.hm-more-btn { transition: border-color .2s, color .2s, transform .15s, opacity .2s; }
.hm-more-btn:active { transform: scale(.97); }
.hm-more-btn.is-busy { opacity: .6; pointer-events: none; }
.hm-more-btn.is-busy::after { content: ""; display: inline-block; width: 13px; height: 13px; margin-left: 10px; vertical-align: -2px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: pk-spin .7s linear infinite; }
@keyframes pk-spin { to { transform: rotate(360deg); } }
html { scroll-behavior: smooth; }
#pkb, #hm-faq, #reviews { scroll-margin-top: 90px; }

/* Tab ở trang category */
.pd-panel.is-entering { animation: pk-rise .35s cubic-bezier(.2,.7,.2,1) both; }
.pd-tab { position: relative; }

/* ===== Just delivered (hero) ===== */
.hm-live { position: absolute; top: 18px; right: 20px; display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #34d399; }
.hm-live i { width: 8px; height: 8px; border-radius: 50%; background: #34d399; animation: pk-pulse 1.6s ease-out infinite; }
.hm-stack-row.is-in { animation: pk-drop .5s cubic-bezier(.2,.7,.2,1) backwards; animation-delay: calc(var(--i, 0) * 70ms); }
.hm-stack-row.is-drop { animation: pk-drop .55s cubic-bezier(.2,.7,.2,1) backwards; }
.hm-stack-time { font-size: 12px; color: var(--muted); white-space: nowrap; }

/* ===== FAQ hai cột ===== */
.hm-faq-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.hm-faq-side { position: sticky; top: 100px; }
.hm-faq-side h2 { font-size: 28px; font-weight: 800; margin: 0 0 12px; }
.hm-faq-side > p { color: var(--text-2); font-size: 15px; line-height: 1.7; margin: 0 0 22px; }
.hm-faq-help { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: center; background: var(--surface); border: var(--bw) solid var(--border); border-radius: 16px; padding: 18px 20px; }
.hm-faq-help > i { grid-row: span 2; width: 44px; height: 44px; border-radius: 12px; background: var(--surface-2); color: var(--brand-blue); display: flex; align-items: center; justify-content: center; font-size: 19px; }
:root[data-theme="dark"] .hm-faq-help > i { color: var(--link); }
.hm-faq-help b { display: block; font-size: 14.5px; }
.hm-faq-help span { font-size: 13px; color: var(--muted); }
.hm-faq-help .btn { grid-column: 1 / -1; margin-top: 12px; font-weight: 600; border-radius: 999px; }
.hm-faq-list { max-width: none; }
.hm-faq-item { transition: border-color .2s, box-shadow .2s; }
.hm-faq-item[open] { border-color: var(--brand-blue); box-shadow: 0 6px 20px var(--shadow); }
.hm-faq-item summary { transition: color .2s; }
.hm-faq-item summary::after { transition: background-color .2s, color .2s, transform .25s; }
.hm-faq-item[open] > div { animation: pk-rise .3s ease both; }
@media (max-width: 900px) {
  .hm-faq-row { grid-template-columns: 1fr; gap: 24px; }
  .hm-faq-side { position: static; }
  .hm-faq-side h2 { font-size: 24px; }
}

/* ===== Ô tìm có gợi ý phím / ===== */
.hm-search-wrap { position: relative; max-width: 320px; width: 100%; }
.hm-search-wrap .hm-search { max-width: none; padding-right: 44px; }
.hm-kbd, .pk-qs kbd { font: 600 11.5px/1 'Poppins', system-ui, sans-serif; color: var(--muted); background: var(--surface-2); border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 6px; padding: 4px 7px; }
.hm-kbd { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.hm-search-wrap:focus-within .hm-kbd { opacity: 0; }
@media (max-width: 700px) { .hm-search-wrap { max-width: none; flex: 1 1 100%; } .hm-kbd { display: none; } }

/* ===== Tìm nhanh (phím /) ===== */
.pk-qs { position: fixed; inset: 0; z-index: 2000; display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 16px; }
.pk-qs[hidden] { display: none; }
.pk-qs-backdrop { position: absolute; inset: 0; background: rgba(10,16,30,.55); backdrop-filter: blur(3px); opacity: 0; transition: opacity .2s; }
.pk-qs-box { position: relative; width: 100%; max-width: 620px; max-height: 76vh; display: flex; flex-direction: column; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 18px; box-shadow: 0 24px 64px rgba(4,10,22,.4); overflow: hidden; opacity: 0; transform: translateY(-14px) scale(.97); transition: opacity .2s, transform .22s cubic-bezier(.2,.7,.2,1); }
.pk-qs.is-open .pk-qs-backdrop { opacity: 1; }
.pk-qs.is-open .pk-qs-box { opacity: 1; transform: none; }
.pk-qs-bar { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--border); }
.pk-qs-bar > i { color: var(--muted); font-size: 16px; }
.pk-qs-bar input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: 16px; }
.pk-qs-results { overflow-y: auto; padding: 8px; min-height: 64px; }
.pk-qs-group { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 10px 12px 6px; }
.pk-qs-item { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; color: var(--text); text-decoration: none; opacity: 0; animation: pk-rise .28s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: calc(var(--i, 0) * 35ms); }
.pk-qs-item:hover, .pk-qs-item.is-sel { background: var(--surface-2); color: var(--text); }
.pk-qs-item.is-sel { box-shadow: inset 3px 0 0 var(--brand-blue); }
.pk-qs-logo { width: 56px; height: 28px; flex: none; display: flex; align-items: center; justify-content: center; background: #fff; border-radius: 6px; }
.pk-qs-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pk-qs-logo.is-ico { background: var(--surface-2); color: var(--muted); }
.pk-qs-name { flex: 1; min-width: 0; font-size: 14.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk-qs-name mark { background: rgba(250,208,22,.45); color: inherit; border-radius: 3px; padding: 0 1px; }
.pk-qs-price { font-size: 12.5px; font-weight: 700; color: var(--brand-blue); white-space: nowrap; }
:root[data-theme="dark"] .pk-qs-price { color: var(--link); }
.pk-qs-msg { text-align: center; color: var(--muted); font-size: 14px; padding: 26px 12px; }
.pk-qs-foot { display: flex; gap: 18px; padding: 10px 18px; border-top: 1px solid var(--border); font-size: 12px; color: var(--muted); }
.pk-qs-foot kbd { margin-right: 4px; }
.pk-qs-skel { height: 46px; margin: 4px 8px; border-radius: 10px; background: linear-gradient(90deg, var(--surface-2) 25%, var(--bg-soft) 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: pk-shimmer 1.2s linear infinite; }
@keyframes pk-shimmer { to { background-position: -200% 0; } }
@media (max-width: 700px) { .pk-qs { padding-top: 8vh; } .pk-qs-foot { display: none; } .pk-qs-bar kbd { display: none; } }

/* ===== Footer: hàng dưới ===== */
.pk-footer-bottom-row { align-items: center; gap: 16px 28px; }
.pk-footer-legal { display: flex; flex-direction: column; gap: 8px; }
.pk-legal { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; padding: 0; }
.pk-legal a { color: var(--chrome-text); text-decoration: none; font-weight: 500; position: relative; }
.pk-legal a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.pk-legal a:hover { color: #fff; }
.pk-legal a:hover::after { transform: scaleX(1); }
.pk-footer-icons { display: flex; align-items: center; gap: 14px 22px; flex-wrap: wrap; }
.pk-pay { display: flex; gap: 10px; margin: 0; padding: 0; font-size: 26px; opacity: .85; }
.pk-footer-icons .pk-socials { padding: 0 0 0 22px; border-left: 1px solid var(--chrome-line); }
@media (max-width: 700px) {
  .pk-footer-legal, .pk-footer-icons { align-items: center; justify-content: center; text-align: center; width: 100%; }
  .pk-legal { justify-content: center; }
  .pk-footer-icons .pk-socials { border-left: 0; padding-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hm-card.is-new, .hm-chip.is-pop, .hm-steps .hm-step, .hm-stack-row, .hm-faq-item[open] > div, .pd-panel.is-entering, .pk-qs-item { animation: none; opacity: 1; }
  .hm-live i { animation: none; }
  .pk-qs-box, .pk-qs-backdrop { transition: none; }
}

/* ===== v3: một tông xanh cho topbar, header và hero ===== */
:root { --chrome-top: var(--chrome); }
:root[data-theme="dark"] { --chrome-top: var(--chrome); }
.pk-topbar { border-bottom: 1px solid var(--chrome-line); }
.hm-banner { background: var(--chrome); }
.pk-header.is-stuck { box-shadow: 0 4px 18px var(--shadow); }

/* ===== v3: nút thống nhất (pill, màu thương hiệu) cho cả class Bootstrap 3 cũ ===== */
.btn { border-radius: 999px; font-weight: 600; padding: 9px 22px; border-width: 1px; transition: transform .15s var(--pk-ease), box-shadow .15s, background-color .15s, filter .15s; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary, .btn-warning, .btn-success, .btn-info { background: var(--brand-yellow); border-color: var(--brand-yellow); color: var(--on-yellow); }
.btn-primary:hover, .btn-warning:hover, .btn-success:hover, .btn-info:hover,
.btn-primary:focus, .btn-warning:focus, .btn-success:focus, .btn-info:focus { background: var(--brand-yellow); border-color: var(--brand-yellow); color: var(--on-yellow); filter: brightness(.96); box-shadow: 0 6px 16px rgba(250,208,22,.35); }
.btn-default, .btn-secondary, .btn-light { background: var(--surface); border-color: var(--border); color: var(--text); }
.btn-default:hover, .btn-secondary:hover, .btn-light:hover { border-color: var(--brand-blue); color: var(--brand-blue); background: var(--surface); }
.btn-danger { border-radius: 999px; }
.btn-sm, .btn-xs { padding: 5px 14px; font-size: 13px; }
.btn-lg { padding: 13px 30px; }

/* ===== v3: trang con (khung .container của template mặc định) ===== */
.container { max-width: 1200px; padding-left: 20px; padding-right: 20px; }
.container > .breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 0; list-style: none; margin: 22px 0 0; padding: 0; font-size: 13px; background: none; }
.container > .breadcrumb li { display: inline-flex; align-items: center; color: var(--muted); }
.container > .breadcrumb li + li::before { content: "\f054"; font-family: "Font Awesome 7 Free", "Font Awesome 6 Free", "FontAwesome"; font-weight: 900; font-size: 9px; margin: 0 10px; opacity: .55; }
.container > .breadcrumb a { color: var(--muted); text-decoration: none; transition: color .15s; }
.container > .breadcrumb a:hover { color: var(--brand-blue); }
.container > .breadcrumb li:last-child a { color: var(--text); font-weight: 600; }
.container > .breadcrumb li:first-child a .fa, .container > .breadcrumb li:first-child a i { color: var(--brand-blue); }
.container > hr.after-breadcrumb { display: none; }
#content > h1, .container h1 { font-size: 32px; font-weight: 800; margin: 22px 0 18px; padding-top: 4px; line-height: 1.2; }
#content > h2, #content > h3 { font-weight: 700; margin: 22px 0 12px; }
#content { padding-bottom: 28px; }
#content .panel, .panel-default { border: var(--bw) solid var(--border); border-radius: 14px; background: var(--surface); }
#content .panel-body { padding: 18px; }
#content .form-control, #content select, #content input[type=text], #content input[type=password], #content input[type=email], #content textarea { border-radius: 10px; }

/* ===== v3: cuộn mượt tới mục neo, chừa chỗ cho header dính ===== */
html { scroll-behavior: smooth; }
[id="pkb"], [id="hm-faq"] { scroll-margin-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ===== v3: Recent sales rung zic-zắc khi kéo chuột ===== */
.hm-stack-row { will-change: transform; }
.hm-banner-stack.is-drag { cursor: grabbing; user-select: none; }
.hm-banner-visual { pointer-events: auto; }
@keyframes pk-wobble { 0% { transform: translateX(var(--wx, 0)); } 25% { transform: translateX(calc(var(--wx, 0px) * -.55)); } 50% { transform: translateX(calc(var(--wx, 0px) * .3)); } 75% { transform: translateX(calc(var(--wx, 0px) * -.12)); } 100% { transform: none; } }
.hm-stack-row.is-wobble { animation: pk-wobble .6s cubic-bezier(.3,.7,.3,1) both; animation-delay: calc(var(--k, 0) * 45ms); }
.container > .breadcrumb { margin-bottom: 22px; }
#content > h1:first-child, #content > h2:first-child { margin-top: 0; }
/* Select Brands nổi bật: nền vàng, chữ đậm */
.pk-shop-btn { background: var(--brand-yellow); color: var(--on-yellow); border-color: var(--brand-yellow); font-weight: 700; font-size: 15px; padding: 10px 20px; box-shadow: 0 2px 10px rgba(0,0,0,.18); }
.pk-shop-btn:hover { background: #ffe04d; color: var(--on-yellow); transform: translateY(-1px); }
.pk-shop-btn i { font-size: 15px; }

/* ===== v4: footer luôn nằm đáy khung nhìn, FAQ trái có liên kết nhanh ===== */
.pk-footer { margin-top: 48px; }
body > .container:last-of-type { margin-bottom: 48px; }
.hm-faq-links { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.hm-faq-links a { display: flex; align-items: center; gap: 14px; background: var(--surface); border: var(--bw) solid var(--border); border-radius: 14px; padding: 12px 16px; text-decoration: none; color: var(--text-2); font-size: 13px; transition: border-color .2s, transform .2s, box-shadow .2s; }
.hm-faq-links a:hover { border-color: var(--brand-blue); transform: translateX(4px); box-shadow: 0 6px 20px var(--shadow); }
.hm-faq-links i { width: 36px; height: 36px; border-radius: 10px; background: var(--surface-2); color: var(--brand-blue); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
:root[data-theme="dark"] .hm-faq-links i { color: var(--link); }
.hm-faq-links b { display: block; color: var(--text); font-size: 14px; }

/* ===== v4: trang Information đồng bộ ===== */
.pk-doc { max-width: none; margin: 0; padding: 8px 0 24px; }
.pk-doc > h1 { font-size: 34px; font-weight: 800; margin: 18px 0 8px; }
.pk-doc-lead { color: var(--muted); font-size: 15px; margin: 0 0 24px; }
.pk-doc-body { background: var(--surface); border: var(--bw) solid var(--border); border-radius: 18px; padding: 32px 36px; font-size: 15px; line-height: 1.75; color: var(--text-2); }
.pk-doc-body h2 { font-size: 20px; font-weight: 700; color: var(--text); margin: 30px 0 10px; padding-top: 22px; border-top: 1px solid var(--border); }
.pk-doc-body h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.pk-doc-body h3 { font-size: 16px; font-weight: 700; color: var(--text); margin: 20px 0 8px; }
.pk-doc-body p { margin: 0 0 14px; }
.pk-doc-body ul, .pk-doc-body ol { margin: 0 0 14px; padding-left: 22px; }
.pk-doc-body li { margin-bottom: 6px; }
.pk-doc-body a { color: var(--link); }
.pk-doc-body img { max-width: 100%; height: auto; border-radius: 10px; }
.pk-doc-body table { width: 100%; border-collapse: collapse; margin: 0 0 14px; }
.pk-doc-body td, .pk-doc-body th { border: 1px solid var(--border); padding: 8px 12px; }
.pk-doc-note { background: var(--surface-2); border-left: 3px solid var(--brand-yellow); border-radius: 8px; padding: 12px 16px; margin: 0 0 14px; }
.pk-doc-body, .pk-doc-body * { color: inherit; }
.pk-doc-body h2, .pk-doc-body h3, .pk-doc-body b, .pk-doc-body strong { color: var(--text); }
.pk-doc-body a { color: var(--link); }
@media (max-width: 575px) { .pk-doc > h1 { font-size: 26px; } .pk-doc-body { padding: 22px 18px; border-radius: 14px; } }

/* Chuyển trạng thái lưới: thẻ cũ mờ dần trước khi thay */
.hm-grid.is-swapping { overflow: hidden; }
.hm-grid.is-swapping .hm-card { opacity: 0; transform: translateY(6px) scale(.98); transition: opacity .18s ease, transform .18s ease; pointer-events: none; }
.hm-grid.is-loading { opacity: 1; }

/* Danh sách review mới nhất từ DB */
.hm-rv-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-top: 20px; }
.hm-rv { background: var(--surface); border: var(--bw) solid var(--border); border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.hm-rv-stars { display: flex; gap: 2px; }
.hm-rv-stars i { width: 20px; height: 20px; background: var(--border); display: flex; align-items: center; justify-content: center; }
.hm-rv-stars i.on { background: var(--tp-green); }
.hm-rv-stars svg { width: 13px; height: 13px; fill: #fff; }
.hm-rv-text { margin: 0; line-height: 1.55; overflow-wrap: anywhere; }
.hm-rv-reply { margin: 0; padding-left: 12px; border-left: 3px solid var(--border); font-size: 13px; color: var(--muted); }
.hm-rv-by { margin-top: auto; font-size: 12px; color: var(--muted); }
.hm-rv-by a { color: inherit; text-decoration: underline; }

/* ===== v4: nút nổi mượt, thanh menu thoáng hơn ===== */
.hm-banner-btn, .hm-banner-link, .scrollToTop { transition: transform .35s cubic-bezier(.34,1.56,.64,1), box-shadow .3s, filter .3s, color .2s; will-change: transform; }
.hm-banner-btn:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(0,0,0,.25); }
.hm-banner-link { display: inline-block; }
.hm-banner-link:hover { transform: translateY(-3px); }
.scrollToTop.is-visible:hover { transform: translateY(-5px) scale(1.08); box-shadow: 0 12px 26px var(--shadow); }
@keyframes pk-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.scrollToTop.is-visible:not(:hover) { animation: pk-float 3s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .scrollToTop.is-visible:not(:hover) { animation: none; } }
@media (max-width: 1100px) { .pk-nav a { padding: 12px 18px; } .pk-header-row { gap: 20px; } }

/* Logo cổng thanh toán trên trang chủ */
.hm-pay-logo { width: 56px; height: 36px; object-fit: contain; background: #fff; border-radius: 8px; padding: 2px 4px; flex: none; }

/* Tab khu vực của khối thanh toán */
.hm-pay-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 16px; }
.hm-pay-tab { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: var(--bw) solid var(--border); background: var(--surface); color: var(--text); font-size: 14px; font-weight: 600; cursor: pointer; transition: background .2s, border-color .2s, color .2s, transform .15s; }
.hm-pay-tab:hover { border-color: var(--brand-blue); }
.hm-pay-tab:active { transform: scale(.97); }
.hm-pay-tab:focus-visible { outline: 2px solid var(--brand-blue); outline-offset: 2px; }
.hm-pay-tab[aria-selected="true"] { background: var(--brand-blue); border-color: var(--brand-blue); color: #fff; }
.hm-pay-count { font-size: 12px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-variant-numeric: tabular-nums; }
.hm-pay-tab[aria-selected="true"] .hm-pay-count { background: rgba(255,255,255,.22); color: #fff; }
.hm-pay-mine { font-size: 11px; font-weight: 700; color: #16a34a; }
.hm-pay-tab[aria-selected="true"] .hm-pay-mine { color: #d1fae5; }
.hm-pay-list.is-swap { animation: hmPaySwap .28s ease-out; }
@keyframes hmPaySwap { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hm-pay-list.is-swap { animation: none; } }
@media (max-width: 600px) {
  .hm-pay-tabs { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding: 0 16px 4px; scrollbar-width: none; }
  .hm-pay-tabs::-webkit-scrollbar { display: none; }
  .hm-pay-tab { flex: none; padding: 8px 14px; font-size: 13px; }
}

/* Chân trang dính đáy: trang ngắn không để hở nền trống dưới footer (màn hình lớn) */
body { min-height: 100vh; display: flex; flex-direction: column; }
body > .pk-footer { margin-top: auto; }
body > .container { width: 100%; }

/* ===== Trang Contact Us ===== */
.pk-contact { padding: 8px 0 24px; }
.pk-contact > h1 { font-size: 34px; font-weight: 800; margin: 18px 0 8px; }
.pk-contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 24px; align-items: start; }
.pk-card { background: var(--surface); border: var(--bw) solid var(--border); border-radius: 18px; padding: 22px 24px; }
.pk-contact-info { display: flex; flex-direction: column; gap: 14px; }
.pk-contact-store { display: flex; gap: 16px; align-items: flex-start; }
/* Logo có chữ trắng: luôn đặt trên nền tối ở cả light và dark mode */
.pk-contact-logo { width: 150px; height: 64px; object-fit: contain; border-radius: 12px; padding: 10px 12px; background: #1a2230; flex: none; }
.pk-contact-mapbox { padding: 0; overflow: hidden; }
.pk-contact-mapbox iframe { display: block; width: 100%; height: 240px; border: 0; }
:root[data-theme="dark"] .pk-contact-mapbox iframe { filter: invert(.92) hue-rotate(180deg) brightness(.95) contrast(.9); }
.pk-contact-store address { margin: 4px 0 8px; color: var(--text-2); font-size: 14px; line-height: 1.55; }
.pk-contact-meta { font-size: 13px; color: var(--text-2); margin-bottom: 4px; }
.pk-contact-map { display: inline-block; margin-top: 6px; font-size: 13px; font-weight: 600; text-decoration: none; }
.pk-contact-channels { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pk-channel { display: flex; align-items: center; gap: 12px; padding: 14px 16px; text-decoration: none; color: var(--text); transition: transform .18s var(--pk-ease), border-color .18s, box-shadow .18s; }
.pk-channel:hover { transform: translateY(-2px); border-color: var(--brand-yellow); box-shadow: 0 8px 22px var(--shadow); color: var(--text); text-decoration: none; }
.pk-channel > i { flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--brand-yellow); color: var(--on-yellow); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.pk-channel span { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.pk-channel b { font-size: 14px; font-weight: 700; }
.pk-channel small { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk-channel-kb { background: var(--surface-2); }
.pk-channel-kb small { white-space: normal; }
.pk-contact-form { padding: 28px 30px; }
.pk-contact-form h2 { font-size: 20px; font-weight: 700; margin: 0 0 18px; }
.pk-contact-form .form-group { margin-bottom: 16px; }
.pk-contact-form .control-label { font-size: 13px; font-weight: 600; margin-bottom: 6px; display: block; color: var(--text); }
.pk-contact-form .form-control { padding: 10px 14px; height: auto; background: var(--bg); color: var(--text); border-color: var(--border); }
.pk-contact-form .form-control:focus { border-color: var(--brand-blue); box-shadow: 0 0 0 3px rgba(38,108,222,.15); }
.pk-contact-form fieldset legend { font-size: 15px; font-weight: 700; border: 0; margin-bottom: 8px; }
.pk-contact-submit { text-align: right; margin-top: 8px; }
.pk-contact-submit .btn { padding: 11px 36px; font-weight: 700; }
.pk-contact-sub { font-size: 20px; font-weight: 700; margin: 28px 0 12px; }
@media (max-width: 991px) { .pk-contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 575px) { .pk-contact > h1 { font-size: 26px; } .pk-contact-channels { grid-template-columns: 1fr; } .pk-contact-form { padding: 22px 18px; } }
/* Captcha dùng lưới col-sm-3/9 của form ngang: ép về cột đơn trong form liên hệ */
.pk-contact-form legend { display: none; }
.pk-contact-form [class*="col-sm-"] { float: none; width: 100%; padding-left: 0; padding-right: 0; }
.pk-contact-form .g-recaptcha { max-width: 100%; overflow: hidden; }

/* ===== Modal đăng nhập (header) ===== */
.pk-login { background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 18px; box-shadow: 0 24px 64px rgba(4,10,22,.4); }
.pk-login .modal-header { border-bottom: 1px solid var(--border); padding: 18px 22px; }
.pk-login .modal-title { font-size: 18px; font-weight: 600; margin: 0; }
.pk-login .modal-body { padding: 20px 22px 8px; }
.pk-login .form-control { background: var(--bg-soft); color: var(--text); border-color: var(--border); border-radius: 10px; padding: 10px 14px; }
.pk-login .form-control:focus { border-color: var(--brand-blue); box-shadow: 0 0 0 3px rgba(38,108,222,.2); }
.pk-login-forgot { font-size: 13px; }
.pk-login-foot { flex-direction: column; align-items: stretch; border-top: 0; padding: 8px 22px 22px; gap: 12px; }
.pk-login-foot .btn { border-radius: 10px; padding: 10px; font-weight: 600; }
.pk-login-new { margin: 0; text-align: center; font-size: 13.5px; color: var(--muted); }

/* Modal login: neo cách đỉnh cố định để hộp lỗi chỉ kéo dài xuống, không đẩy cả khung nhảy lên. */
#pk-login-modal .pk-login-dialog { margin-top: max(24px, 14vh); }
#pk-login-modal.fade .modal-dialog { transform: translateY(10px); transition: transform .22s ease-out; }
#pk-login-modal.show .modal-dialog { transform: none; }
#pk-login-modal .pk-login-error { animation: pk-pop .18s ease-out; }
@media (max-width: 575.98px) { #pk-login-modal .pk-login-dialog { margin-top: 24px; } }
@media (prefers-reduced-motion: reduce) { #pk-login-modal.fade .modal-dialog { transition: none; transform: none; } }

/* ===== v5: dropdown tài khoản, trang My Account (address/order/transaction), khối Credit ===== */
.myaccount .dropdown-menu { min-width: 220px; padding: 8px; margin-top: 12px !important; background: var(--surface); border: var(--bw) solid var(--border); border-radius: 14px; box-shadow: 0 16px 40px var(--shadow); }
.myaccount .dropdown-menu::before { content: ""; position: absolute; top: -7px; right: 22px; width: 12px; height: 12px; background: var(--surface); border-left: var(--bw) solid var(--border); border-top: var(--bw) solid var(--border); transform: rotate(45deg); }
.myaccount .dropdown-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px; font-size: 13.5px; font-weight: 500; color: var(--text); transition: background-color .15s, color .15s; }
.myaccount .dropdown-item:hover, .myaccount .dropdown-item:focus { background: var(--surface-2); color: var(--brand-blue); }
:root[data-theme="dark"] .myaccount .dropdown-item:hover { color: var(--link); }
.myaccount .dropdown-item::before { font-family: "Font Awesome 7 Free", "Font Awesome 6 Free", "FontAwesome"; font-weight: 900; width: 16px; text-align: center; color: var(--muted); font-size: 13px; }
.myaccount li:nth-child(1) .dropdown-item::before { content: "\f007"; }
.myaccount li:nth-child(2) .dropdown-item::before { content: "\f291"; }
.myaccount li:nth-child(3) .dropdown-item::before { content: "\f09d"; }
.myaccount li:nth-child(4) .dropdown-item::before { content: "\f019"; }
.myaccount li:last-child { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--border); }
.myaccount li:last-child .dropdown-item::before { content: "\f2f5"; }
.myaccount li:last-child .dropdown-item:hover { background: rgba(220,53,69,.1); color: #dc3545; }

/* Khung .contain (address/order/transaction) = hàng 2 cột như .row */
.container > .contain { display: flex; flex-wrap: wrap; margin-left: -12px; margin-right: -12px; }
.container > .contain > #content { flex: 0 0 auto; width: 75%; padding: 0 12px; }
.container > .contain > #column-right, .container > .contain > #column-left { flex: 0 0 auto; width: 25%; padding: 0 12px; }
@media (max-width: 767.98px) { .container > .contain > #content, .container > .contain > #column-right, .container > .contain > #column-left { width: 100%; } }

/* Menu bên + khối Credit */
.list-group { border-radius: 14px; overflow: hidden; border: var(--bw) solid var(--border); background: var(--surface); }
.list-group-item, .list-group a.list-group-item { background: var(--surface); color: var(--text); border: 0; border-bottom: 1px solid var(--border); padding: 11px 16px; font-size: 13.5px; border-radius: 0; }
.list-group a.list-group-item:last-child { border-bottom: 0; }
.list-group a.list-group-item:hover { background: var(--surface-2); color: var(--link); }
.content-with-background { background: var(--surface); border: var(--bw) solid var(--border); border-radius: 14px; margin-bottom: 16px; overflow: hidden; }
.content-with-background > div { color: var(--text) !important; padding-top: 16px !important; font-size: 14px !important; font-weight: 600; }
.content-with-background > p { color: var(--brand-blue) !important; font-size: 26px; font-weight: 700; margin: 0; padding-bottom: 16px !important; }
:root[data-theme="dark"] .content-with-background > p { color: var(--brand-yellow) !important; }
.content-with-background > hr { margin: 10px 16px; border-color: var(--border); opacity: 1; }

/* Bảng trong My Account */
#content .table { color: var(--text); --bs-table-bg: transparent; --bs-table-color: var(--text); border-color: var(--border); }
#content .table-bordered { border: var(--bw) solid var(--border); border-collapse: separate; border-spacing: 0; border-radius: 14px; overflow: hidden; }
#content .table > :not(caption) > * > * { background: var(--surface); color: var(--text); border-color: var(--border); padding: 12px 14px; vertical-align: middle; }
#content .table > thead > tr > td, #content .table > thead > tr > th { background: var(--surface-2); font-weight: 600; }
#content .table-hover > tbody > tr:hover > * { background: var(--surface-2); }
#content .text-left { text-align: left; } #content .text-right { text-align: right; } #content .text-center { text-align: center; }
#content .table td .btn + .btn, #content .table td .btn { margin: 2px; }
#content .table td .btn-info, #content .table td .btn-danger { border-radius: 8px; }
#content .table td .btn-danger { color: #fff; }
#content .buttons.clearfix { display: flex; justify-content: space-between; gap: 12px; }
#content .buttons .pull-left, #content .buttons .pull-right { float: none; }
#content .btn-default { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); border-radius: 10px; }
#content .btn-primary { border-radius: 10px; }
#content .pagination { margin: 12px 0; }
#content .row .text-right { text-align: right; }
#content .buttons.clearfix::before, #content .buttons.clearfix::after { display: none; }

/* ===== v3: form tài khoản — cùng kiểu input với checkout ===== */
#content .form-horizontal .form-group { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 6px 16px; align-items: start; margin: 0 0 16px; }
#content .form-horizontal .form-group > [class*="col-"] { width: auto; max-width: none; flex: none; padding: 0; float: none; }
#content .form-horizontal .control-label { padding: 12px 0 0; margin: 0; font-size: 13px; font-weight: 600; color: var(--text-2); text-align: left; }
#content .form-horizontal .form-control, #content .form-horizontal select, #content .form-horizontal textarea { border: 1.5px solid var(--border); border-radius: 10px; background-color: var(--bg); color: var(--text); font-size: 14px; padding: 11px 13px; height: auto; box-shadow: none; }
#content .form-horizontal .form-control::placeholder { color: var(--muted); opacity: .8; }
#content .form-horizontal .form-control:focus, #content .form-horizontal select:focus, #content .form-horizontal textarea:focus { border-color: var(--brand-blue); box-shadow: 0 0 0 4px rgba(38,108,222,.15); outline: 0; background-color: var(--bg); color: var(--text); }
#content .form-horizontal select.form-control { appearance: none; padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2395a3ba' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
#content .form-horizontal .has-error .form-control { border-color: #dc3545; }
#content .form-horizontal .text-danger { font-size: 12px; margin-top: 4px; }
#content .form-horizontal legend { font-size: 20px; font-weight: 700; border: 0; padding: 0; margin: 8px 0 16px; color: var(--text); }
@media (max-width: 767px) { #content .form-horizontal .form-group { grid-template-columns: minmax(0, 1fr); } #content .form-horizontal .control-label { padding-top: 0; } }

/* radio / checkbox dạng thẻ chọn (Newsletter, địa chỉ mặc định…) */
#content .radio-inline, #content .checkbox-inline { display: inline-flex; align-items: center; gap: 8px; margin: 0 10px 0 0; padding: 10px 18px; border: 1.5px solid var(--border); border-radius: 999px; background: var(--bg); color: var(--text); font-size: 14px; font-weight: 500; cursor: pointer; transition: border-color .15s, background-color .15s, box-shadow .15s; }
#content .radio-inline input, #content .checkbox-inline input { margin: 0 !important; position: static; width: 18px; height: 18px; accent-color: var(--brand-blue); cursor: pointer; flex: none; }
#content .radio-inline:hover, #content .checkbox-inline:hover { border-color: var(--brand-blue); }
#content .radio-inline:has(input:checked), #content .checkbox-inline:has(input:checked) { border-color: var(--brand-blue); background: rgba(38,108,222,.10); box-shadow: 0 0 0 3px rgba(38,108,222,.12); font-weight: 600; }
#content .form-horizontal .radio, #content .form-horizontal .checkbox { padding-left: 0; min-height: 0; }
#content .form-horizontal .radio label, #content .form-horizontal .checkbox label { display: inline-flex; align-items: center; gap: 8px; }
#content .form-horizontal .radio input[type=radio], #content .form-horizontal .checkbox input[type=checkbox] { float: none; margin: 0; accent-color: var(--brand-blue); }

/* phân trang (OpenCart sinh markup Bootstrap 3: ul.pagination > li > a|span) */
#content .pagination { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 12px 0; }
#content .pagination > li > a, #content .pagination > li > span { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 12px; border: 1.5px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); font-size: 14px; font-weight: 600; text-decoration: none; transition: border-color .15s, color .15s; }
#content .pagination > li > a:hover { border-color: var(--brand-blue); color: var(--brand-blue); }
#content .pagination > li.active > span { background: var(--brand-yellow); border-color: var(--brand-yellow); color: var(--on-yellow); }
#content .row > .text-right { line-height: 38px; color: var(--text-2); }
#content .buttons.clearfix .pull-right { margin-left: auto; }

/* ===== checkout success (common/success.tpl) — tiền tố ok- ===== */
.ok-wrap { padding: 8px 0 24px; display: grid; gap: 20px; }
.ok-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 24px; align-items: start; }
.ok-side { display: grid; gap: 20px; }
.ok-card { background: var(--surface); border: var(--bw) solid var(--border); border-radius: 18px; padding: 24px; }
.ok-done { --ok-accent: #1faa6b; --ok-soft: rgba(31,170,107,.12); }
.ok-wait { --ok-accent: var(--brand-yellow); --ok-soft: rgba(250,208,22,.18); }
.ok-info { --ok-accent: var(--brand-blue); --ok-soft: rgba(38,108,222,.12); }
.ok-head { padding: 10px 0 0; }
.ok-card--center { text-align: center; max-width: 720px; margin: 0 auto; width: 100%; }
.ok-card--center .ok-icon { margin: 0 0 14px; width: 64px; height: 64px; font-size: 27px; }
.ok-card--center .ok-title { justify-content: center; flex-direction: column; font-size: 26px; }
.ok-card--center .ok-head { padding: 0; }
.ok-card--center .ok-title { margin: 0 0 10px; }
.ok-card--center .ok-lead { margin: 0 auto; }
.ok-card.ok-card--center .ok-actions { text-align: center; margin-top: 24px; }
.ok-card.ok-card--center .ok-small { text-align: center; }
.ok-icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: var(--ok-soft); color: var(--ok-accent); font-size: 21px; margin-right: 14px; vertical-align: middle; flex: none; }
.ok-wait .ok-icon { color: #b58900; }
[data-theme="dark"] .ok-wait .ok-icon { color: var(--brand-yellow); }
.ok-done .ok-icon { animation: ok-pop .5s var(--pk-ease, ease-out) both; }
@keyframes ok-pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.ok-title { font-size: 34px; font-weight: 800; margin: 8px 0 10px; color: var(--text); line-height: 1.2; display: flex; align-items: center; }
.ok-lead { font-size: 15.5px; color: var(--text-2); max-width: 720px; margin: 0; line-height: 1.6; }
.ok-summary { margin: 0 0 8px; border: var(--bw) solid var(--border); border-radius: 14px; background: var(--surface-2); overflow: hidden; }
.ok-summary > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; align-items: center; padding: 13px 16px; }
.ok-summary > div + div { border-top: 1px solid var(--border); }
.ok-summary dt { font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 0; }
.ok-summary dd { margin: 0; font-size: 15px; color: var(--text); font-weight: 600; min-width: 0; }
.ok-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 16px; margin-right: 8px; }
.ok-email { overflow-wrap: anywhere; }
.ok-copy { border: 1.5px solid var(--border); background: var(--surface); color: var(--text-2); border-radius: 999px; font-size: 12.5px; font-weight: 600; padding: 3px 12px; cursor: pointer; transition: border-color .15s, color .15s; }
.ok-copy:hover { border-color: var(--brand-blue); color: var(--brand-blue); }
.ok-badge { display: inline-block; border-radius: 999px; padding: 3px 12px; font-size: 13px; font-weight: 700; background: var(--ok-soft); color: var(--text); border: 1.5px solid var(--ok-accent); }
.ok-small { font-size: 13px; color: var(--muted); margin: 10px 0 0; text-align: left; line-height: 1.55; }
.ok-small--left { text-align: left; margin: 10px 2px 0; }
.ok-actions { text-align: left; margin-top: 20px; }
.ok-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--brand-yellow); color: var(--on-yellow); font-weight: 700; font-size: 15px; padding: 12px 26px; border-radius: 999px; border: var(--bw) solid var(--brand-yellow); text-decoration: none; cursor: pointer; transition: transform .15s var(--pk-ease, ease-out), box-shadow .15s; }
.ok-btn:hover { color: var(--on-yellow); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(250,208,22,.35); }
.ok-btn--lg { font-size: 17px; padding: 15px 36px; }
.ok-btn--ghost { background: transparent; color: var(--text); border-color: var(--border); }
.ok-btn--ghost:hover { color: var(--brand-blue); border-color: var(--brand-blue); box-shadow: none; }
.ok-note { display: flex; gap: 10px; align-items: flex-start; border-radius: 12px; padding: 12px 14px; font-size: 14px; line-height: 1.55; margin: 0 0 16px; text-align: left; }
.ok-note i { margin-top: 3px; flex: none; }
.ok-note--warm { background: var(--ok-soft); color: var(--text); }
.ok-note--warn { background: rgba(250,208,22,.14); border: 1px solid rgba(250,208,22,.5); color: var(--text); margin: 20px 0 0; }
.ok-note a { color: var(--link); font-weight: 600; }
.ok-h2 { font-size: 20px; font-weight: 700; margin: 0 0 14px; color: var(--text); }
.ok-steps { list-style: none; counter-reset: ok; margin: 0; padding: 0; display: grid; gap: 12px; }
.ok-steps li { counter-increment: ok; position: relative; padding-left: 44px; color: var(--text-2); font-size: 14.5px; line-height: 1.55; }
.ok-steps li::before { content: counter(ok); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--brand-blue); color: #fff; font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.ok-steps b { color: var(--text); }
.ok-help { display: block; }
.ok-help .ok-h2 { margin-bottom: 6px; }
.ok-help p { margin: 0 0 14px; font-size: 14px; color: var(--text-2); line-height: 1.55; }
.ok-help-links { display: grid; gap: 16px; }
.ok-help-group { display: grid; gap: 8px; }
.ok-help-label { font-size: 13px; font-weight: 700; color: var(--text); }
.ok-help-label i { color: var(--brand-blue); margin-right: 4px; }
.ok-help-links .ok-btn { width: 100%; }
.ok-chat { display: flex; gap: 10px; flex-wrap: wrap; }
.ok-chat .ok-btn { flex: 1 1 100%; }
@media (max-width: 575px) {
  .ok-grid { grid-template-columns: minmax(0, 1fr); }
  .ok-card { padding: 20px 16px; border-radius: 14px; }
  .ok-title { font-size: 26px; }
  .ok-icon { width: 40px; height: 40px; font-size: 18px; margin-right: 10px; }
  .ok-btn--lg { width: 100%; }
  .ok-summary > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .ok-btn--lg { width: 100%; padding: 15px 20px; }
  .ok-help-links .ok-btn, .ok-chat { width: 100%; }
  .ok-chat .ok-btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { .ok-done .ok-icon { animation: none; } .ok-btn { transition: none; } }

/* Khung chọn gói trên trang chủ */
.hm-buy-back { position: fixed; inset: 0; background: rgba(10,14,25,.55); z-index: 1040; }
.hm-buy-back[hidden] { display: none; }
body.hm-modal-open { overflow: hidden; }
.hm-buy { position: fixed; z-index: 1050; top: 50%; left: 50%; transform: translate(-50%,-50%); width: min(680px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow-y: auto; display: flex; gap: 24px; align-items: center; background: var(--surface); border: var(--bw) solid var(--border); border-radius: 18px; padding: 26px 28px; box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.hm-buy[hidden] { display: none; }
.hm-buy-media { flex: 0 0 200px; height: 100px; display: flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 10px; color: #23262d; font-weight: 700; text-align: center; }
.hm-buy-media img { max-width: 100%; max-height: 100%; object-fit: contain; }
.hm-buy-main { flex: 1; min-width: 0; }
.hm-buy-main h3 { margin: 0 0 12px; font-size: 22px; font-weight: 800; color: var(--text); }
.hm-buy-opts { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.hm-buy-opt { margin: 0; cursor: pointer; }
.hm-buy-opt input { position: absolute; opacity: 0; pointer-events: none; }
.hm-buy-opt span { display: block; padding: 9px 16px; border: var(--bw) solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); font-size: 14px; transition: border-color .15s, background .15s; }
.hm-buy-opt b { display: block; font-weight: 600; }
.hm-buy-opt em { font-style: normal; color: var(--muted); font-size: 13px; }
.hm-buy-opt:hover span { border-color: var(--brand-blue); }
.hm-buy-opt input:checked + span { border-color: var(--brand-blue); background: var(--surface-2); }
.hm-buy-opt input:focus-visible + span { outline: 2px solid var(--brand-blue); outline-offset: 2px; }
.hm-buy-btn { background: var(--brand-yellow); color: var(--on-yellow); font-weight: 700; font-size: 16px; padding: 12px 34px; border-radius: 999px; border: 0; cursor: pointer; }
.hm-buy-btn:disabled { opacity: .6; cursor: default; }
.hm-buy-err { margin: 10px 0 0; color: var(--tp-red); font-size: 14px; }
.hm-card-price:hover { background: var(--surface-2); }
.hm-buy-close { position: absolute; top: 8px; right: 14px; border: 0; background: none; color: var(--muted); font-size: 26px; line-height: 1; cursor: pointer; }
@media (max-width: 640px) { .hm-buy { flex-direction: column; align-items: stretch; padding: 18px; } .hm-buy-media { flex-basis: auto; } }

/* Thẻ trang chủ: tên bên trái, nút Buy nằm góc phải */
.hm-card-body { flex-direction: row; align-items: center; justify-content: space-between; gap: 8px; text-align: left; }
.hm-card-name { flex: 1 1 auto; }
.hm-card-price { flex: none; padding: 4px 9px; font-size: 12px; }
.hm-card-body { padding: 8px 8px 8px 12px; }
