/* Sửa Mạch Điện Lạnh — stylesheet. Đổi --main để đổi tông toàn site (nhớ đổi cả --main-2, --main-soft và các màu đậm/nhạt đã tính sẵn).
   Không dùng color-mix(): iPhone iOS < 16.2 bỏ qua cả dòng → nền trắng. */
:root {
  --main: #0b4f8a;
  --main-2: #3c72a1;
  --main-soft: #e9eff4;
  --accent: #f59e0b;
  --accent-ink: #3b2600;
  --sale: #e11d48;
  --ok: #0f9d58;
  --ink: #17212b;
  --ink-2: #4b5866;
  --muted: #7b8794;
  --line: #e5e9ee;
  --bg: #f3f5f7;
  --card: #fff;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 4px 16px rgba(16, 24, 40, .06);
  --shadow-lg: 0 12px 40px rgba(16, 24, 40, .18);
  --container: 1240px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 15px; line-height: 1.55; color: var(--ink); background: var(--bg); overflow-x: hidden;
}
body.lock { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; }
p { margin: 0 0 .8em; }
ul { margin: 0; padding: 0; list-style: none; }
mark { background: rgba(245, 158, 11, .35); color: inherit; border-radius: 3px; padding: 0 1px; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 999; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ico { width: 20px; height: 20px; flex: none; }
.ico.big { width: 56px; height: 56px; stroke-width: 1.3; color: var(--main-2); }
.only-mobile { display: none !important; }
@media (max-width: 991px) { .only-mobile { display: inline-flex !important; } .hide-mobile { display: none !important; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 20px; border-radius: 999px; font-weight: 600; font-size: 14px;
  transition: background .2s, color .2s, transform .1s, box-shadow .2s; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-main { background: var(--main); color: #fff; }
.btn-main:hover { background: #094375; }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: #d88b0a; }
.btn-outline { border: 1.5px solid var(--main); color: var(--main); background: #fff; }
.btn-outline:hover { background: var(--main-soft); }
.btn-lg { height: 50px; padding: 0 28px; font-size: 15px; }
.btn.sm { height: 34px; padding: 0 14px; font-size: 13px; }
.block-btn { width: 100%; }
.icon-btn { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; transition: background .2s; }
.icon-btn:hover { background: var(--main-soft); }
.icon-btn.sm { width: 32px; height: 32px; }
.icon-btn.sm .ico { width: 17px; height: 17px; }
.link { display: inline-flex; align-items: center; gap: 4px; color: var(--main); font-weight: 600; font-size: 14px; }
.link .ico { width: 16px; height: 16px; }
.link:hover { text-decoration: underline; }
.link.danger { color: var(--sale); }

/* Topbar */
.topbar { background: #0a4679; color: #d9e7ea; font-size: 13px; }
.topbar-in { display: flex; justify-content: space-between; align-items: center; gap: 16px; height: 36px; }
.topbar-msg { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-msg b { color: #fff; }
.topbar-links { display: flex; gap: 20px; white-space: nowrap; }
.topbar-links a:hover { color: #fff; }
@media (max-width: 767px) { .topbar-links { display: none; } .topbar-in { justify-content: center; } }

/* Header */
.header { position: sticky; top: 0; z-index: 50; background: var(--main); color: #fff; transition: box-shadow .2s; }
.header.scrolled { box-shadow: 0 6px 20px rgba(0, 0, 0, .15); }
.header-in { display: flex; align-items: center; gap: 24px; height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.logo-mark { width: 42px; height: 42px; border-radius: 12px; background: var(--accent); color: var(--main); display: grid; place-items: center; }
.logo-mark .ico { width: 30px; height: 30px; }
.logo-text { font-weight: 800; font-size: 22px; letter-spacing: -.02em; display: flex; flex-direction: column; line-height: 1.05; }
.logo-text small { font-weight: 500; font-size: 11px; letter-spacing: .04em; opacity: .75; text-transform: uppercase; margin-top: 3px; }
.logo.small .logo-mark { width: 34px; height: 34px; } .logo.small .logo-text { font-size: 18px; color: var(--main); }
.logo.light { color: #fff; }

.search { position: relative; flex: 1; max-width: 620px; display: flex; }
.search input {
  width: 100%; height: 46px; border: 0; border-radius: 999px; padding: 0 56px 0 20px; background: #fff; color: var(--ink); outline: none; font-size: 14px;
}
.search input::-webkit-search-cancel-button { display: none; }
.search-btn { position: absolute; right: 4px; top: 4px; width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; }
.search-panel {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); background: #fff; color: var(--ink); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); max-height: 70vh; overflow: auto; z-index: 60; padding: 6px 0;
}
.sp-sec { padding: 10px 16px; }
.sp-sec + .sp-sec { border-top: 1px solid var(--line); }
.sp-sec > b { display: block; font-size: 13px; color: var(--muted); font-weight: 600; margin-bottom: 8px; }
.sp-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.sp-head b { font-size: 13px; color: var(--muted); font-weight: 600; }
.sp-hist { display: flex; align-items: center; justify-content: space-between; }
.sp-hist > button:first-child { display: flex; align-items: center; gap: 8px; padding: 6px 0; flex: 1; text-align: left; font-size: 14px; }
.sp-hist .ico { width: 16px; height: 16px; color: var(--muted); }
.sp-prod { display: flex; gap: 12px; align-items: center; padding: 8px; border-radius: 10px; }
.sp-prod:hover, .sp-art:hover { background: var(--bg); }
.sp-prod .mini-img { width: 52px; height: 52px; }
.sp-name { display: block; font-size: 14px; font-weight: 500; }
.sp-prod em { font-style: normal; color: var(--sale); font-weight: 700; font-size: 14px; margin-right: 8px; }
.sp-prod s { color: var(--muted); font-size: 12px; }
.sp-art { display: flex; gap: 8px; align-items: center; padding: 8px; border-radius: 10px; font-size: 14px; }
.sp-art .ico { width: 16px; height: 16px; color: var(--muted); }
.sp-all { display: flex; justify-content: center; align-items: center; gap: 4px; padding: 12px; border-top: 1px solid var(--line); color: var(--main); font-weight: 600; font-size: 14px; }
.sp-all .ico { width: 16px; height: 16px; }
.sp-empty { padding: 20px; text-align: center; color: var(--muted); }

.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.hdr-action { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 12px; color: #fff; text-align: left; }
.hdr-action:hover { background: rgba(255, 255, 255, .08); }
.hdr-ico { position: relative; width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .35); display: grid; place-items: center; }
.hdr-label { display: flex; flex-direction: column; line-height: 1.2; }
.hdr-label small { font-size: 12px; opacity: .75; }
.hdr-label b { font-size: 14px; }
.badge-count { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 700; display: grid; place-items: center; transition: transform .2s; }
.badge-count.bump { transform: scale(1.3); }
.header .icon-btn:hover { background: rgba(255, 255, 255, .1); }

/* Navbar */
.navbar { background: #fff; color: var(--ink); border-bottom: 1px solid var(--line); }
.navbar-in { display: flex; align-items: center; gap: 12px; height: 50px; position: relative; }
.mega-wrap { position: relative; flex: none; height: 100%; display: flex; align-items: center; }
.mega-btn { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 999px; background: var(--main-soft); color: var(--main); font-weight: 600; font-size: 14px; }
.mega-btn .ico { width: 18px; height: 18px; }
.mega {
  position: absolute; top: 100%; left: 0; width: min(880px, calc(100vw - 32px)); background: #fff; border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-lg); padding: 20px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s; z-index: 55;
}
.mega-wrap.open .mega { opacity: 1; visibility: visible; transform: none; }
.mega { width: min(640px, calc(100vw - 32px)); }
.mega-in { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.mega-cat { display: flex; align-items: center; gap: 12px; font-weight: 600; padding: 8px; border-radius: 12px; }
.mega-cat:hover { background: var(--main-soft); color: var(--main); }
.mega-cat small { display: block; font-weight: 400; font-size: 12px; color: var(--muted); }
.mega-ico { width: 48px; height: 48px; border-radius: 10px; background: var(--bg); overflow: hidden; display: grid; place-items: center; flex: none; color: var(--main); }
.mega-ico img { width: 100%; height: 100%; object-fit: cover; }
.mega-col li a { display: block; padding: 3px 0 3px 50px; font-size: 14px; color: var(--ink-2); }
.mega-col li a:hover { color: var(--main); }
.nav-list { display: flex; gap: 2px; flex: 1; flex-wrap: wrap; }
.nav-list > li { position: relative; }
.nav-list > li > a { display: flex; align-items: center; gap: 4px; height: 38px; padding: 0 12px; border-radius: 999px; font-weight: 500; font-size: 14px; white-space: nowrap; }
.nav-list > li > a .ico { width: 15px; height: 15px; }
.nav-list > li > a:hover, .has-drop:hover > a { background: var(--bg); }
.nav-list > li.active > a { color: var(--main); background: var(--main-soft); font-weight: 600; }
.drop { position: absolute; top: 100%; left: 0; min-width: 280px; max-width: 360px; background: #fff; border-radius: 12px; box-shadow: var(--shadow-lg); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s; z-index: 56; }
.has-drop:hover .drop, .has-drop:focus-within .drop { opacity: 1; visibility: visible; transform: none; }
.has-drop.closing .drop { opacity: 0; visibility: hidden; }
.drop a { display: block; padding: 8px 12px; border-radius: 8px; font-size: 14px; color: var(--ink-2); }
.drop a:hover { background: var(--main-soft); color: var(--main); }
@media (max-width: 1199px) { .nav-list > li > a { padding: 0 9px; font-size: 13.5px; } }
.pill-hot { background: var(--sale); color: #fff; font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 999px; }
.nav-arrow { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; background: #fff; }
.nav-arrow .ico { width: 16px; height: 16px; }
.nav-arrow[hidden] { display: none; }
@media (max-width: 991px) {
  .navbar { display: none; }
  .header-in { height: 64px; gap: 8px; }
  .logo-text { font-size: 19px; } .logo-text small { display: none; } .logo-mark { width: 36px; height: 36px; }
  /* Nút menu và giỏ hàng không bao giờ bị logo đè/bóp mất; tên web tự rút gọn (…) khi màn hình hẹp hoặc chữ hệ thống to */
  .header-in > .icon-btn, .header-actions, .logo-mark { flex: none; }
  .logo { flex: 0 1 auto; min-width: 0; }
  .logo-text { min-width: 0; overflow: hidden; } .logo-text, .logo-text * { white-space: nowrap; text-overflow: ellipsis; }
  .logo-text { display: block; }
  .search { display: none; position: absolute; left: 0; right: 0; top: 100%; max-width: none; padding: 8px 16px 12px; background: var(--main); }
  .search-btn { right: 20px; top: 12px; }
  .header.search-open .search { display: flex; }
  .hdr-action { padding: 4px; } .hdr-ico { width: 40px; height: 40px; border: 0; }
}

/* Drawers, modal, backdrop */
.backdrop { position: fixed; top: 0; right: 0; bottom: 0; left: 0; background: rgba(10, 18, 26, .5); opacity: 0; visibility: hidden; transition: .25s; z-index: 80; }
.backdrop.show { opacity: 1; visibility: visible; }
.drawer { position: fixed; top: 0; bottom: 0; width: min(400px, 90vw); background: #fff; z-index: 90; display: flex; flex-direction: column; transition: transform .3s ease; }
.drawer-left { left: 0; transform: translateX(-100%); }
.drawer-right { right: 0; transform: translateX(100%); }
.drawer.open { transform: none; box-shadow: var(--shadow-lg); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { font-size: 18px; }
.drawer-body { flex: 1; overflow: auto; padding: 12px 16px; }
.drawer-foot { padding: 16px; border-top: 1px solid var(--line); }
.drawer-foot:empty { display: none; }
.foot-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.m-menu > li { border-bottom: 1px solid var(--line); }
.m-menu a { display: flex; align-items: center; gap: 8px; padding: 13px 0; font-weight: 500; }
.m-row { display: flex; justify-content: space-between; align-items: center; }
.m-row button { width: 40px; height: 40px; display: grid; place-items: center; transition: transform .2s; }
.has-sub.open .m-row button { transform: rotate(180deg); }
.m-sub { display: none; padding: 0 0 8px 14px; }
.has-sub.open .m-sub { display: block; }
.m-sub a { padding: 8px 0; color: var(--ink-2); font-weight: 400; }
.m-menu + .btn { margin-top: 20px; }

.mini-item { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: start; }
.mini-img { display: block; width: 72px; height: 72px; border-radius: 10px; overflow: hidden; background: var(--bg); flex: none; position: relative; }
.mini-img svg { width: 100%; height: 100%; }
.mini-name { font-weight: 500; font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mini-name:hover { color: var(--main); }
.mini-info small { color: var(--muted); font-size: 12px; display: block; }
.mini-row { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; gap: 8px; }
.mini-row b { color: var(--sale); font-size: 14px; }
.sum-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; }
.sum-row.total { border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 12px; font-size: 16px; }
.sum-row.total b { color: var(--sale); font-size: 22px; }
.sum-row.green b { color: var(--ok); }
.shipbar { background: var(--main-soft); border-radius: 10px; padding: 10px 12px; font-size: 13px; margin-bottom: 8px; }
.shipbar p { margin: 0 0 6px; }
.bar { height: 6px; border-radius: 999px; background: #dae5ed; overflow: hidden; }
.bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--main), var(--ok)); border-radius: inherit; transition: width .4s; }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; height: 36px; background: #fff; }
.qty button { width: 34px; height: 100%; display: grid; place-items: center; color: var(--ink-2); }
.qty button:hover { color: var(--main); }
.qty .ico { width: 15px; height: 15px; }
.qty input { width: 34px; text-align: center; border: 0; outline: 0; font-weight: 600; background: transparent; }
.pd-buy .qty { height: 50px; } .pd-buy .qty button { width: 42px; }

.modal { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 100; background: rgba(10, 18, 26, .55); display: grid; place-items: center; padding: 16px; opacity: 0; visibility: hidden; transition: .2s; }
.modal.open { opacity: 1; visibility: visible; }
.modal-box { position: relative; background: #fff; border-radius: 18px; width: min(520px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 24px; transform: scale(.96); transition: transform .2s; }
.modal.open .modal-box { transform: none; }
.modal-box.wide { width: min(920px, 100%); }
.modal-close { position: absolute; right: 10px; top: 10px; z-index: 2; background: #fff; }
.qv { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.qv-img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; }
.qv-img svg { width: 100%; height: 100%; }
.qv h2 { font-size: 22px; margin: 4px 0 8px; }
.qv .link { margin-top: 16px; }
@media (max-width: 767px) { .qv { grid-template-columns: 1fr; gap: 16px; } .qv-img { max-width: 300px; margin: 0 auto; width: 100%; } }
.video-modal h3 { margin: 16px 0 6px; }
.video-stage { position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; background: #111; }
.video-stage svg { width: 100%; height: 100%; }
.video-stage .blades { animation: spin .5s linear infinite; }

.lightbox { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 110; background: rgba(8, 12, 16, .92); display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lb-img { width: min(80vh, 88vw); aspect-ratio: 1; border-radius: 16px; overflow: hidden; }
.lb-img svg { width: 100%; height: 100%; }
.lb-close, .lb-nav { position: absolute; width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; display: grid; place-items: center; }
.lb-close:hover, .lb-nav:hover { background: rgba(255, 255, 255, .25); }
.lb-close { top: 16px; right: 16px; }
.lb-nav.prev { left: 16px; } .lb-nav.next { right: 16px; }
.lb-count { position: absolute; bottom: 20px; color: #fff; font-size: 14px; opacity: .8; }

.toasts { position: fixed; bottom: 16px; left: 16px; z-index: 200; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 12px; box-shadow: var(--shadow-lg); font-size: 14px; max-width: 360px; transform: translateX(-120%); transition: transform .3s; }
.toast.show { transform: none; }
.toast .ico { width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: var(--ok); flex: none; }
.toast.err .ico { background: var(--sale); }
@media (max-width: 575px) { .toasts { left: 16px; right: 16px; top: auto; bottom: 16px; } .toast { max-width: none; transform: translateY(150%); } }
.to-top { position: fixed; right: 16px; bottom: 16px; z-index: 40; width: 44px; height: 44px; border-radius: 50%; background: var(--main); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transition: .25s; }
.to-top.show { opacity: 1; visibility: visible; }

/* Sections */
#app { outline: none; min-height: 60vh; padding-bottom: 32px; }
.block { margin-top: 28px; }
.panel { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.sec-head { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.sec-title { font-size: 22px; font-weight: 700; position: relative; padding-left: 14px; }
.sec-title::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 4px; border-radius: 4px; background: var(--accent); }
.see-all { margin-left: auto; display: inline-flex; align-items: center; gap: 2px; font-size: 14px; font-weight: 600; color: var(--main); }
.see-all .ico { width: 16px; height: 16px; }
.see-all.light { color: #fff; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tabs button { height: 34px; padding: 0 14px; border-radius: 999px; font-size: 14px; font-weight: 500; background: var(--bg); }
.tabs button.active { background: var(--main); color: #fff; }
.tabs.big { border-bottom: 1px solid var(--line); gap: 0; margin: -20px -20px 20px; padding: 0 12px; overflow-x: auto; flex-wrap: nowrap; }
.tabs.big button { height: 54px; border-radius: 0; background: none; padding: 0 16px; font-size: 15px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs.big button.active { color: var(--main); border-color: var(--main); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips.center { justify-content: center; margin-top: 12px; }
.chip { display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; background: #fff; }
.chip:hover { border-color: var(--main); color: var(--main); }
.chip.on { background: var(--main-soft); border-color: transparent; color: var(--main); font-weight: 500; }
.chip .ico { width: 14px; height: 14px; }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 11.5px; font-weight: 700; }
.tag-sale { background: var(--sale); color: #fff; }
.tag-new { background: var(--main); color: #fff; }
.tag-hot { background: var(--accent); color: var(--accent-ink); }
.tag.big { height: 30px; font-size: 14px; padding: 0 12px; }
.dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .5; }

/* Hero */
.hero { position: relative; height: clamp(420px, 52vw, 560px); overflow: hidden; color: #fff; }
.hero-slide { position: absolute; top: 0; right: 0; bottom: 0; left: 0; opacity: 0; visibility: hidden; transition: opacity 1s, visibility 1s; }
.hero-slide.active { opacity: 1; visibility: visible; }
.hero-slide::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: radial-gradient(circle at 75% 50%, rgba(255, 255, 255, .16), transparent 55%); pointer-events: none; }
.hero-in { position: relative; z-index: 1; height: 100%; display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 24px; }
.hero-badge { display: inline-block; background: #fff; color: var(--ink); font-size: 12.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 7px 14px; border-radius: 999px; margin-bottom: 18px; }
.hero h1, .hero .hero-h { font-size: clamp(32px, 4.6vw, 58px); font-weight: 800; letter-spacing: -.02em; margin-bottom: 16px; line-height: 1.15; }
.hero h1 em, .hero .hero-h em { font-style: normal; color: var(--accent); }
/* Danh sách liên kết trong HTML dựng sẵn (trước khi JS chạy) */
.ssr-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ssr-links a { color: var(--main); font-weight: 500; }
.hero p { font-size: 17px; opacity: .9; max-width: 480px; margin-bottom: 28px; }
.hero-art { height: 100%; display: flex; align-items: center; justify-content: center; }
.hero-art svg { height: 88%; width: auto; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .3)); }
.hero-slide.active .blades { animation: spin 1.4s linear infinite; }
.hero-slide.active .hero-text > * { animation: up .8s both; }
.hero-slide.active .hero-text > *:nth-child(2) { animation-delay: .1s; }
.hero-slide.active .hero-text > *:nth-child(3) { animation-delay: .2s; }
.hero-slide.active .hero-text > *:nth-child(4) { animation-delay: .3s; }
.hero-ctrl { position: absolute; left: 0; right: 0; bottom: 24px; z-index: 2; display: flex; justify-content: space-between; align-items: center; }
.hero-dots { display: flex; gap: 8px; }
.hero-dots button { width: 10px; height: 10px; border-radius: 999px; background: rgba(255, 255, 255, .45); transition: width .3s, background .3s; }
.hero-dots button.active { width: 32px; background: #fff; }
.hero-arrows { display: flex; gap: 8px; }
.hero-arrows button { width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, .15); backdrop-filter: blur(6px); color: #fff; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .25); }
.hero-arrows button:hover { background: rgba(255, 255, 255, .3); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.blades { transform-box: view-box; }
@media (max-width: 767px) {
  .hero { height: 560px; }
  .hero-in { grid-template-columns: 1fr; grid-template-rows: auto 1fr; text-align: center; padding-top: 32px; padding-bottom: 64px; gap: 0; }
  .hero p { margin-left: auto; margin-right: auto; font-size: 15px; }
  .hero-art svg { height: 220px; }
  .hero-arrows { display: none; } .hero-ctrl { justify-content: center; }
}

/* Perks */
.perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: -32px; position: relative; z-index: 3; }
.perk { display: flex; gap: 12px; align-items: center; background: #fff; border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.perk .ico { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--main-soft); color: var(--main); }
.perk b { display: block; font-size: 14px; } .perk small { color: var(--muted); font-size: 12.5px; }
@media (max-width: 991px) { .perks { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .perks { gap: 8px; } .perk { padding: 12px; gap: 8px; } .perk .ico { width: 34px; height: 34px; padding: 7px; } .perk small { display: none; } .perk b { font-size: 13px; } }

/* Product card */
.pcard { background: #fff; border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; height: 100%; border: 1px solid var(--line); transition: box-shadow .25s, transform .25s, border-color .25s; }
.pcard:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: transparent; }
.pcard-media { position: relative; }
.pcard-img { display: block; aspect-ratio: 1; overflow: hidden; }
.pcard-img svg { width: 100%; height: 100%; transition: transform .4s; }
.pcard:hover .pcard-img svg { transform: scale(1.04); }
.pcard:hover .blades { animation: spin .7s linear infinite; }
.pcard-badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.pcard-tools { position: absolute; top: 10px; right: 10px; display: flex; flex-direction: column; gap: 6px; opacity: 0; transform: translateX(8px); transition: .25s; }
.pcard:hover .pcard-tools, .pcard:focus-within .pcard-tools { opacity: 1; transform: none; }
.tool { width: 36px; height: 36px; border-radius: 50%; background: #fff; box-shadow: var(--shadow); display: grid; place-items: center; color: var(--ink); }
.tool:hover { background: var(--main); color: #fff; }
.tool .ico { width: 18px; height: 18px; }
@media (hover: none) { .pcard-tools { opacity: 1; transform: none; } }
.pcard-body { padding: 10px 14px 14px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.swatches { display: flex; gap: 6px; min-height: 18px; }
.sw { width: 18px; height: 18px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); outline: 2px solid transparent; outline-offset: 2px; transition: outline-color .2s; }
.sw.active { outline-color: var(--main); }
.pcard-brand { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.pcard-name { font-size: 14.5px; font-weight: 500; line-height: 1.4; min-height: 2.8em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard-name a:hover { color: var(--main); }
.pcard-meta { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.stars { display: inline-flex; gap: 1px; color: #d4d9de; }
.stars .ico { width: 13px; height: 13px; }
.stars .on { color: #f5a524; }
.pcard-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.pcard-price b { font-size: 17px; color: var(--sale); font-weight: 700; }
.pcard-price s { font-size: 13px; color: var(--muted); }
.btn-add { height: 38px; width: 100%; margin-top: 6px; border: 1.5px solid var(--main); color: var(--main); background: #fff; font-size: 13.5px; }
.btn-add .ico { width: 18px; height: 18px; }
.btn-add:hover { background: var(--main); color: #fff; }
.btn-add.done { background: var(--ok); border-color: var(--ok); color: #fff; }
.sold-bar { position: relative; height: 20px; border-radius: 999px; background: #ffd9e1; overflow: hidden; }
.sold-bar span { position: absolute; top: 0; bottom: 0; left: 0; background: linear-gradient(90deg, #ff6b6b, var(--sale)); border-radius: inherit; }
.sold-bar em { position: relative; display: block; text-align: center; font-size: 11.5px; font-style: normal; font-weight: 600; color: #fff; line-height: 20px; text-shadow: 0 1px 1px rgba(0, 0, 0, .2); }
@media (max-width: 575px) {
  .pcard-body { padding: 8px 10px 10px; } .pcard-name { font-size: 13.5px; } .pcard-price b { font-size: 15px; }
  .btn-add span { display: none; } .pcard-meta > span:nth-child(n+3) { display: none; }
}

/* Grids & carousel */
.grid { display: grid; gap: 16px; }
.g5 { grid-template-columns: repeat(5, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1199px) { .g5 { grid-template-columns: repeat(4, 1fr); } .g4 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 991px) { .g5, .g4 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767px) { .grid { gap: 10px; } .g5, .g4 { grid-template-columns: repeat(2, 1fr); } }

.carousel { position: relative; --gap: 16px; --per: 5; }
.carousel.p6 { --per: 6; } .carousel.p4 { --per: 4; }
.car-track { display: flex; gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 2px 8px; margin: -4px -2px -8px; }
.car-track::-webkit-scrollbar { display: none; }
.car-item { flex: 0 0 calc((100% - (var(--per) - 1) * var(--gap)) / var(--per)); scroll-snap-align: start; min-width: 0; }
.car-btn { position: absolute; top: 38%; z-index: 3; width: 40px; height: 40px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-lg); display: grid; place-items: center; transition: opacity .2s; }
.car-btn:hover { background: var(--main); color: #fff; }
.car-btn.prev { left: -14px; } .car-btn.next { right: -14px; }
.car-btn.hide { opacity: 0; pointer-events: none; }
@media (max-width: 1199px) { .carousel { --per: 4; } .carousel.p6 { --per: 5; } .carousel.p4 { --per: 3; } }
@media (max-width: 991px) { .carousel { --per: 3; } .carousel.p6 { --per: 4; } .carousel.p4 { --per: 2.5; } }
@media (max-width: 767px) { .carousel, .carousel.p6 { --per: 2.2; --gap: 10px; } .carousel.p4 { --per: 1.5; } .car-btn { display: none; } }

/* Flash sale */
.flash { background: linear-gradient(135deg, var(--sale), #ff5f3d); border-radius: 18px; padding: 18px 20px 22px; }
.flash-head { display: flex; align-items: center; gap: 16px 24px; flex-wrap: wrap; color: #fff; margin-bottom: 16px; }
.flash-title { display: flex; align-items: center; gap: 8px; font-size: 26px; font-weight: 800; font-style: italic; text-transform: uppercase; letter-spacing: -.01em; }
.flash-title .ico { width: 30px; height: 30px; fill: #ffd25e; stroke: #ffd25e; }
.flash-cd { display: flex; align-items: center; gap: 10px; }
.flash-cd small { opacity: .9; font-size: 13px; }
.cd { display: flex; align-items: center; gap: 4px; font-weight: 700; }
.cd span { min-width: 36px; height: 36px; padding: 0 6px; border-radius: 8px; background: #1b1b1f; color: #fff; display: grid; place-items: center; font-variant-numeric: tabular-nums; font-size: 16px; }
.cd.sm span { min-width: 28px; height: 28px; font-size: 14px; }
.flash .car-btn { top: 42%; }
@media (max-width: 575px) { .flash { padding: 14px 12px 16px; border-radius: 14px; } .flash-title { font-size: 20px; } .flash .see-all { margin-left: 0; } }

/* Categories */
.cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.cat-card { background: #fff; border-radius: var(--radius); padding: 14px 10px 16px; text-align: center; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.cat-card:hover .blades { animation: spin .8s linear infinite; }
.cat-img { width: 100%; max-width: 130px; aspect-ratio: 1; border-radius: 50%; overflow: hidden; margin-bottom: 8px; }
.cat-img svg { width: 100%; height: 100%; }
.cat-card b { font-size: 15px; } .cat-card small { color: var(--muted); font-size: 12.5px; }
@media (max-width: 991px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 575px) { .cat-grid { gap: 8px; } .cat-card { padding: 10px 6px 12px; } .cat-card b { font-size: 13px; } }

/* Showcase & promos */
.showcase { display: grid; grid-template-columns: 1fr 1.6fr; gap: 16px; }
.showcase-banner { position: relative; border-radius: 18px; overflow: hidden; background: linear-gradient(160deg, #3b2a20, #8a5a3b 70%, #b07a4f); color: #fff; padding: 32px; display: flex; flex-direction: column; justify-content: space-between; min-height: 420px; }
.sb-text h3 { font-size: 30px; font-weight: 800; margin-bottom: 8px; }
.sb-text p { opacity: .85; }
.sb-art { position: absolute; right: -40px; bottom: -20px; width: 75%; opacity: .95; }
.sb-art svg { width: 100%; }
.showcase-banner:hover .blades { animation: spin 1s linear infinite; }
.showcase-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (min-width: 1200px) { .showcase-grid { grid-template-columns: repeat(4, 1fr); } .showcase { grid-template-columns: 1fr 2.4fr; } }
@media (max-width: 991px) { .showcase { grid-template-columns: 1fr; } .showcase-banner { min-height: 280px; } .sb-art { width: 50%; } .showcase-grid { gap: 10px; } }
.promo-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.promo { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--bg); border-radius: 18px; padding: 24px 0 24px 28px; min-height: 200px; overflow: hidden; }
.promo small { font-weight: 600; text-transform: uppercase; letter-spacing: .05em; font-size: 12px; color: var(--ink-2); }
.promo h3 { font-size: 24px; font-weight: 800; margin: 6px 0 12px; }
.promo svg { width: 46%; height: 200px; flex: none; }
.promo:hover .blades { animation: spin .8s linear infinite; }
@media (max-width: 767px) { .promo-row { grid-template-columns: 1fr; } .promo h3 { font-size: 20px; } .promo svg { height: 160px; } }

/* Video & news */
.vcard { display: block; width: 100%; text-align: left; }
.vthumb { position: relative; aspect-ratio: 16/10; border-radius: var(--radius); overflow: hidden; margin-bottom: 10px; background: #000; }
.vthumb svg { width: 100%; height: 100%; opacity: .92; transition: transform .4s; }
.vcard:hover .vthumb svg { transform: scale(1.05); }
.vplay { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--sale); display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0, 0, 0, .25); transition: transform .2s; }
.vplay .ico { width: 24px; height: 24px; margin-left: 3px; }
.vplay.big { width: 76px; height: 76px; margin: -38px 0 0 -38px; }
.vcard:hover .vplay { transform: scale(1.1); }
.vdur { position: absolute; right: 8px; bottom: 8px; background: rgba(0, 0, 0, .7); color: #fff; font-size: 12px; padding: 2px 7px; border-radius: 6px; }
.vcard b { font-size: 14.5px; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1199px) { .news-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 991px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .news-grid { grid-template-columns: 1fr; } }
.acard { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.acard-img { position: relative; aspect-ratio: 16/10; overflow: hidden; display: block; }
.acard-img svg { width: 100%; height: 100%; transition: transform .4s; }
.acard:hover .acard-img svg { transform: scale(1.05); }
.acard-img .tag { position: absolute; left: 12px; top: 12px; }
.acard-body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.acard time { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.acard time .ico { width: 14px; height: 14px; }
.acard h3 { font-size: 16px; font-weight: 600; }
.acard h3 a:hover { color: var(--main); }
.acard p { font-size: 14px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0; }
.acard .link { margin-top: auto; padding-top: 6px; }

/* Breadcrumb & page */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 16px; padding-bottom: 16px; font-size: 13.5px; color: var(--muted); }
.crumbs a:hover { color: var(--main); }
.crumbs b { color: var(--ink); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60vw; }
.page-title { font-size: 28px; font-weight: 800; margin-bottom: 20px; }
.page-title small { font-size: 16px; color: var(--muted); font-weight: 500; }
.empty { text-align: center; padding: 48px 16px; display: flex; flex-direction: column; align-items: center; gap: 12px; color: var(--ink-2); }
.empty p { margin: 0; }
.page-empty { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 64px 16px; margin-top: 8px; }
.page-empty h1 { font-size: 26px; }
.success .ico.big { color: #fff; background: var(--ok); border-radius: 50%; padding: 12px; width: 72px; height: 72px; stroke-width: 2.5; }
.big404 { font-size: 96px; font-weight: 800; color: var(--main); line-height: 1; }

/* Collection */
.coll-banner { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: linear-gradient(120deg, var(--main), #177090); color: #fff; border-radius: 18px; padding: 28px 32px; overflow: hidden; height: 160px; margin-bottom: 20px; }
.coll-banner h1 { font-size: 30px; font-weight: 800; margin-bottom: 6px; }
.coll-banner p { margin: 0; opacity: .85; }
.coll-art { height: 200px; width: 200px; flex: none; margin: -20px -10px -40px 0; }
.coll-art svg { width: 100%; height: 100%; }
.coll-banner .blades { animation: spin 1.6s linear infinite; }
@media (max-width: 575px) { .coll-banner { padding: 20px; height: 130px; } .coll-banner h1 { font-size: 22px; } .coll-banner p { font-size: 13px; } .coll-art { width: 120px; height: 140px; } }
.coll-layout { display: grid; grid-template-columns: 260px 1fr; gap: 20px; align-items: start; }
.filters { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px 18px; position: sticky; top: 140px; max-height: calc(100vh - 160px); overflow: auto; }
.f-group { border-bottom: 1px solid var(--line); padding: 6px 0; }
.f-group:last-child { border: 0; }
.f-title { display: flex; width: 100%; justify-content: space-between; align-items: center; padding: 10px 0; font-weight: 700; font-size: 15px; }
.f-title .ico { width: 18px; height: 18px; transition: transform .2s; }
.f-group:not(.open) .f-title .ico { transform: rotate(-90deg); }
.f-body { display: none; padding-bottom: 10px; }
.f-group.open .f-body { display: block; }
.f-link { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; color: var(--ink-2); }
.f-link small { color: var(--muted); }
.f-link:hover, .f-link.active { color: var(--main); font-weight: 600; }
.check { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 14px; cursor: pointer; }
.check input, .color-chk input, .pay-opt input { position: absolute; opacity: 0; pointer-events: none; }
.check span { width: 18px; height: 18px; border: 1.5px solid #c5ccd3; border-radius: 5px; display: grid; place-items: center; transition: .15s; flex: none; }
.check.radio span { border-radius: 50%; }
.check input:checked + span { background: var(--main); border-color: var(--main); box-shadow: inset 0 0 0 3px #fff; }
.check input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.f-body.colors { display: none; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.f-group.open .f-body.colors { display: grid; }
.color-chk { display: flex; flex-direction: column; align-items: center; gap: 3px; cursor: pointer; text-align: center; }
.color-chk span { width: 30px; height: 30px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); outline: 2px solid transparent; outline-offset: 2px; }
.color-chk input:checked + span { outline-color: var(--main); }
.color-chk small { font-size: 11px; color: var(--ink-2); line-height: 1.2; }
.toolbar { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px 16px; margin-bottom: 12px; }
.sort { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); }
.sort select { height: 36px; border: 1px solid var(--line); border-radius: 999px; padding: 0 12px; background: #fff; outline: none; }
.active-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.active-chips:empty { display: none; }
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 24px; }
.pager button { width: 40px; height: 40px; border-radius: 50%; background: #fff; box-shadow: var(--shadow); font-weight: 600; }
.pager button.active { background: var(--main); color: #fff; }
.filters-head { display: none; }
@media (max-width: 991px) {
  .coll-layout { grid-template-columns: 1fr; }
  .filters { position: fixed; top: 0; bottom: 0; left: 0; width: min(340px, 88vw); max-height: none; border-radius: 0; z-index: 90; transform: translateX(-100%); transition: transform .3s; padding-top: 0; }
  .filters.open { transform: none; }
  .filters-head { display: flex !important; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; z-index: 1; }
  .toolbar { padding: 8px 10px; } .sort { font-size: 0; } .sort select { font-size: 13px; }
}

/* Product detail */
.pd { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; background: #fff; border-radius: 18px; box-shadow: var(--shadow); padding: 24px; }
.pd-gallery { min-width: 0; }
.pd-main { position: relative; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; }
.pd-main svg { width: 100%; height: 100%; }
.pd-main .tag { position: absolute; left: 14px; top: 14px; }
.zoom-hint { position: absolute; right: 14px; bottom: 14px; width: 40px; height: 40px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: var(--shadow); }
.pd-main:hover .blades { animation: spin .8s linear infinite; }
.pd-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 4px; }
.pd-thumbs button { width: 78px; height: 78px; flex: none; border-radius: 10px; overflow: hidden; border: 2px solid transparent; opacity: .75; transition: .2s; }
.pd-thumbs button svg { width: 100%; height: 100%; }
.pd-thumbs button.active, .pd-thumbs button:hover { border-color: var(--main); opacity: 1; }
.pd-brand { display: inline-block; font-size: 13px; font-weight: 700; color: var(--main); text-transform: uppercase; letter-spacing: .06em; }
.pd-title { font-size: 28px; font-weight: 700; margin: 6px 0 10px; letter-spacing: -.01em; }
.pd-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 13.5px; color: var(--ink-2); }
.pd-meta a { color: var(--main); }
.pd-meta .stars .ico { width: 15px; height: 15px; }
.pd-flash { margin-top: 16px; display: flex; justify-content: space-between; align-items: center; background: linear-gradient(90deg, var(--sale), #ff5f3d); color: #fff; padding: 8px 14px; border-radius: 12px 12px 0 0; font-weight: 800; font-style: italic; }
.pd-flash span { display: flex; align-items: center; gap: 6px; }
.pd-flash + .pd-price { border-radius: 0 0 12px 12px; margin-top: 0; }
.pd-price { margin-top: 16px; background: var(--bg); border-radius: 12px; padding: 14px 16px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px 14px; }
.pd-price b { font-size: 30px; color: var(--sale); font-weight: 800; }
.pd-price s { color: var(--muted); font-size: 16px; }
.save { background: #ffe4ea; color: var(--sale); font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.pd-opt { margin-top: 18px; font-size: 14px; }
.pd-swatches { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.pd-sw { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 8px; border: 1.5px solid var(--line); border-radius: 999px; font-size: 14px; transition: .15s; }
.pd-sw span { width: 24px; height: 24px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.pd-sw.active { border-color: var(--main); background: var(--main-soft); color: var(--main); font-weight: 600; }
.pd-stock { margin-top: 14px; font-size: 14px; }
.pd-stock .ok { color: var(--ok); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.pd-stock .ok .ico { width: 16px; height: 16px; }
.pd-stock .warn { color: #b45309; font-weight: 600; }
.pd-stock small { color: var(--muted); }
.pd-buy { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.pd-buy .btn { flex: 1; min-width: 150px; }
.pd-perks { margin-top: 20px; border: 1px dashed var(--line); border-radius: 12px; padding: 12px 16px; display: grid; gap: 8px; }
.pd-perks li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); }
.pd-perks .ico { color: var(--main); }
.pd-tabs { margin-top: 24px; }
.ptab { display: none; }
.ptab.active { display: block; }
.prose { color: var(--ink-2); max-width: 820px; }
.prose h3 { color: var(--ink); font-size: 19px; margin: 18px 0 10px; }
.prose h3:first-child { margin-top: 0; }
.prose ul { list-style: disc; padding-left: 22px; margin-bottom: 1em; }
.prose li { margin: 4px 0; }
.prose .lead { font-size: 17px; color: var(--ink); font-weight: 500; }
.desc-art { max-width: 380px; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; margin: 16px 0; }
.desc-art svg { width: 100%; height: 100%; }
.spec { width: 100%; max-width: 720px; border-collapse: collapse; font-size: 14px; }
.spec th, .spec td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.spec th { width: 40%; background: var(--bg); font-weight: 600; color: var(--ink-2); }
.rev-sum { display: flex; gap: 32px; align-items: center; flex-wrap: wrap; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.rev-score { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.rev-score b { font-size: 48px; line-height: 1; color: var(--ink); }
.rev-score .stars .ico { width: 18px; height: 18px; }
.rev-score small { color: var(--muted); }
.rev-bars { flex: 1; min-width: 220px; max-width: 420px; display: grid; gap: 6px; font-size: 13px; }
.rev-bars > div { display: grid; grid-template-columns: 36px 1fr 36px; align-items: center; gap: 10px; }
.rev-bars .bar span { background: #f5a524; }
.rev-form { display: grid; gap: 10px; max-width: 560px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.rev-form input, .rev-form textarea, .form-grid input, .form-grid textarea, .coupon input, .newsletter-form input {
  width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 11px 14px; outline: none; background: #fff; transition: border-color .2s, box-shadow .2s;
}
.rev-form input:focus, .rev-form textarea:focus, .form-grid input:focus, .form-grid textarea:focus, .coupon input:focus {
  border-color: var(--main); box-shadow: 0 0 0 3px var(--main-soft);
}
.invalid { border-color: var(--sale) !important; box-shadow: 0 0 0 3px #ffe4ea !important; }
.rate-pick { display: flex; gap: 2px; }
.rate-pick button { color: #d4d9de; } .rate-pick button.on { color: #f5a524; }
.rate-pick .ico { width: 26px; height: 26px; }
.rev-form .btn { justify-self: start; }
.rev { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.rev:last-child { border: 0; }
.rev-ava { width: 42px; height: 42px; border-radius: 50%; background: var(--main-soft); color: var(--main); font-weight: 700; display: grid; place-items: center; flex: none; }
.rev small { display: block; color: var(--muted); font-size: 12.5px; margin: 2px 0 6px; }
.rev p { margin: 0; color: var(--ink-2); font-size: 14.5px; }
.sticky-buy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: #fff; box-shadow: 0 -6px 24px rgba(0, 0, 0, .1); transform: translateY(110%); transition: transform .3s; }
.sticky-buy.show { transform: none; }
.sticky-in { display: flex; align-items: center; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
.sticky-img { width: 52px; height: 52px; border-radius: 10px; background: var(--bg); flex: none; }
.sticky-img svg { width: 100%; height: 100%; }
.sticky-name { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sticky-name b { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.sticky-name span { color: var(--sale); font-weight: 700; }
@media (max-width: 991px) { .pd { grid-template-columns: 1fr; gap: 20px; padding: 16px; } .pd-title { font-size: 22px; } .pd-price b { font-size: 26px; } }
@media (max-width: 575px) {
  .pd-buy .qty { width: 100%; justify-content: space-between; } .pd-buy .btn { min-width: 0; }
  .sticky-in .btn { padding: 0 14px; height: 40px; } .sticky-img { display: none; }
  .pd-thumbs button { width: 64px; height: 64px; }
}

/* Search page */
.search-hero { background: #fff; border-radius: 18px; box-shadow: var(--shadow); padding: 28px; text-align: center; }
.search-hero h1 { font-size: 24px; margin-bottom: 16px; }
.search.big { display: flex; max-width: 640px; margin: 0 auto 12px; }
.search.big input { border: 1.5px solid var(--line); height: 52px; }
.search.big input:focus { border-color: var(--main); }
.search.big .search-btn { top: 6px; right: 6px; width: 40px; height: 40px; }
@media (max-width: 991px) { .search.big { display: flex; position: relative; padding: 0; background: none; } .search.big .search-btn { right: 6px; top: 6px; } }
.search-hero p { margin: 0; }
.block > .sec-title { margin-bottom: 16px; }

/* Cart & checkout */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 20px; align-items: start; }
.cart-row { display: grid; grid-template-columns: 1fr 130px 130px 130px 40px; gap: 12px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-row.head { padding: 8px 0; font-size: 13px; color: var(--muted); font-weight: 600; }
.cart-prod { display: flex; gap: 14px; align-items: center; min-width: 0; }
.cart-prod small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.cart-price b { display: block; } .cart-price s { color: var(--muted); font-size: 13px; }
.cart-line b { color: var(--sale); font-size: 16px; }
.cart-actions { display: flex; justify-content: space-between; padding-top: 16px; }
.cart-sum { position: sticky; top: 140px; }
.cart-sum h3 { font-size: 18px; margin-bottom: 14px; }
.cart-sum .btn { margin-top: 16px; }
.cart-sum .muted { margin: 12px 0 0; text-align: center; }
.coupon { display: flex; gap: 8px; margin-bottom: 14px; }
.coupon input { padding: 8px 12px; font-size: 14px; }
@media (max-width: 991px) { .cart-layout { grid-template-columns: 1fr; } .cart-sum { position: static; } }
@media (max-width: 767px) {
  .cart-row { grid-template-columns: 1fr auto; grid-template-areas: "prod rm" "price price" "qty line"; gap: 8px; }
  .cart-prod { grid-area: prod; } .cart-row > .icon-btn { grid-area: rm; align-self: start; } .cart-price { grid-area: price; display: none; }
  .cart-row > div:nth-child(3) { grid-area: qty; } .cart-line { grid-area: line; text-align: right; }
}
.checkout-form h3 { font-size: 18px; margin: 4px 0 14px; }
.checkout-form h3 + .pay-opts { margin-bottom: 20px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 20px; }
.form-grid label { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; font-weight: 500; color: var(--ink-2); }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 575px) { .form-grid { grid-template-columns: 1fr; } }
.pay-opts { display: grid; gap: 10px; }
.pay-opt { display: flex; align-items: center; gap: 12px; border: 1.5px solid var(--line); border-radius: 12px; padding: 14px; cursor: pointer; font-size: 14.5px; }
.pay-opt span { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid #c5ccd3; flex: none; }
.pay-opt:has(input:checked) { border-color: var(--main); background: var(--main-soft); }
.pay-opt input:checked + span { border: 6px solid var(--main); }
.co-item { display: grid; grid-template-columns: 60px 1fr auto; gap: 12px; align-items: center; padding: 8px 0; font-size: 14px; }
.co-item .mini-img { width: 60px; height: 60px; overflow: visible; }
.co-item .mini-img svg { border-radius: 10px; }
.co-q { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 50%; background: var(--ink-2); color: #fff; font-size: 11px; display: grid; place-items: center; font-weight: 700; }
.co-item small { display: block; color: var(--muted); }
.co-item > div b { font-weight: 500; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.co-item + .sum-row { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; }

/* Contact & static */
.contact-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.ccard { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--ink-2); }
.ccard .ico { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--main-soft); color: var(--main); margin-bottom: 6px; }
.ccard b { color: var(--ink); font-size: 15px; }
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact-form h3 { font-size: 20px; margin-bottom: 4px; }
.map { position: relative; padding: 0; overflow: hidden; min-height: 360px; }
.map svg { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; }
.map.tall { min-height: 320px; margin-top: 20px; }
.map-pin { position: absolute; left: 50%; top: 45%; transform: translate(-50%, -100%); display: flex; flex-direction: column; align-items: center; }
.map-pin .ico { width: 44px; height: 44px; color: #fff; fill: var(--sale); stroke: #fff; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .3)); animation: bob 1.6s ease-in-out infinite; }
.map-pin span { background: #fff; padding: 4px 10px; border-radius: 8px; font-size: 13px; font-weight: 600; box-shadow: var(--shadow); margin-top: 4px; }
@keyframes bob { 50% { transform: translateY(-6px); } }
@media (max-width: 991px) { .contact-cards { grid-template-columns: repeat(2, 1fr); } .contact-layout { grid-template-columns: 1fr; } }
@media (max-width: 575px) { .contact-cards { gap: 8px; } .ccard { padding: 14px; } }
.static { max-width: 900px; margin: 0 auto; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 20px 0; }
.stats div { background: var(--main-soft); border-radius: 12px; padding: 16px; text-align: center; }
.stats b { display: block; font-size: 28px; color: var(--main); font-weight: 800; }
.stats span { font-size: 13px; }
@media (max-width: 575px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.store-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.store { display: flex; gap: 12px; border: 1px solid var(--line); box-shadow: none; padding: 16px; }
.store > .ico { color: var(--main); width: 26px; height: 26px; }
.store b { color: var(--ink); } .store p { margin: 4px 0 6px; font-size: 14px; }
.store a { display: inline-flex; align-items: center; gap: 6px; color: var(--main); font-weight: 600; font-size: 14px; }
.store a .ico { width: 16px; height: 16px; }
@media (max-width: 767px) { .store-list { grid-template-columns: 1fr; } }

/* Article */
.article-layout { display: grid; grid-template-columns: 1fr 320px; gap: 20px; align-items: start; }
.article { padding: 28px; }
.article h1 { font-size: 30px; font-weight: 800; margin: 12px 0 8px; }
.article time { display: flex; align-items: center; gap: 6px; font-size: 13.5px; }
.article time .ico { width: 15px; height: 15px; }
.article-cover { aspect-ratio: 16/8; border-radius: var(--radius); overflow: hidden; margin: 20px 0; }
.article-cover svg { width: 100%; height: 100%; }
.article-side { display: grid; gap: 16px; position: sticky; top: 140px; }
.article-side h3 { font-size: 17px; margin-bottom: 10px; }
.side-link { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); }
.side-link:last-child { border: 0; }
.side-link b { display: block; font-size: 14px; font-weight: 500; }
.side-link:hover b { color: var(--main); }
.side-link small { color: var(--muted); font-size: 12.5px; }
.side-products { display: grid; gap: 10px; }
.side-prod { display: flex; gap: 10px; align-items: center; }
.side-prod .mini-img { width: 60px; height: 60px; }
.side-prod b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13.5px; font-weight: 500; }
.side-prod em { font-style: normal; color: var(--sale); font-weight: 700; font-size: 14px; }
.side-prod:hover b { color: var(--main); }
@media (max-width: 991px) { .article-layout { grid-template-columns: 1fr; } .article-side { position: static; } .article { padding: 18px; } .article h1 { font-size: 24px; } }

/* Footer */
.footer { background: #0c2a33; color: #b9c8cd; margin-top: 40px; font-size: 14px; }
.newsletter { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 32px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.newsletter h3 { color: #fff; font-size: 22px; margin-bottom: 4px; }
.newsletter p { margin: 0; }
.newsletter-form { display: flex; gap: 8px; flex: 1; max-width: 460px; min-width: 260px; }
.newsletter-form input { border-radius: 999px; border: 0; padding: 0 20px; height: 46px; }
.newsletter-form .btn { height: 46px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; padding: 36px 0; }
.footer h4 { color: #fff; font-size: 16px; margin-bottom: 14px; }
.footer-grid ul li { padding: 4px 0; }
.footer-grid a:hover { color: #fff; }
.footer .logo { margin-bottom: 14px; }
.footer .muted { color: #8fa3a9; }
.contact-list li { display: flex; gap: 10px; align-items: center; }
.contact-list .ico { width: 17px; height: 17px; color: var(--accent); }
.pay-icons { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.pay-icons span { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .15); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 6px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 18px 0; text-align: center; font-size: 13px; color: #8fa3a9; }
@media (max-width: 991px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 575px) { .footer-grid { grid-template-columns: 1fr; gap: 20px; } .newsletter-form { min-width: 0; width: 100%; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ───────── Nội dung thật (suamachdienlanh) ───────── */
.img-ph { display: grid; place-items: center; width: 100%; height: 100%; background: linear-gradient(135deg, var(--main-soft), #fff); color: var(--main-2); }
.img-ph .ico { width: 40%; height: 40%; max-width: 64px; stroke-width: 1.2; }
.hero { background: #0a2540; }
.hero-bg { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-slide::before { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 1; background: linear-gradient(90deg, rgba(6, 22, 40, .92) 0%, rgba(6, 22, 40, .7) 45%, rgba(6, 22, 40, .25) 100%); }
.hero-slide::after { display: none; }
.hero-in { position: relative; z-index: 2; grid-template-columns: minmax(0, 680px); }
.hero-text p { max-width: 560px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-glass { background: rgba(255, 255, 255, .14); color: #fff; border: 1px solid rgba(255, 255, 255, .35); backdrop-filter: blur(6px); }
.btn-glass:hover { background: rgba(255, 255, 255, .26); }
.btn-outline-light { border: 1.5px solid rgba(255, 255, 255, .6); color: #fff; }
.btn-outline-light:hover { background: rgba(255, 255, 255, .1); }
.btn-zalo { background: #0068ff; color: #fff; }
.btn-zalo:hover { background: #0057d6; }
.hero-badge.dark { background: var(--main-soft); color: var(--main); }
@media (max-width: 767px) { .hero-in { grid-template-columns: 1fr; grid-template-rows: auto; align-content: center; } .hero-slide::before { background: rgba(6, 22, 40, .78); } .hero-btns { justify-content: center; } }

.pcard-img { background: #fff; position: relative; }
.pcard-img img { width: 100%; height: 100%; object-fit: contain; transition: opacity .35s, transform .4s; }
.pcard-img img.alt { position: absolute; top: 0; right: 0; bottom: 0; left: 0; opacity: 0; }
.pcard:hover .pcard-img.has-alt img.alt { opacity: 1; }
.pcard:hover .pcard-img.has-alt img:not(.alt) { opacity: 0; }
.pcard:hover .pcard-img:not(.has-alt) img { transform: scale(1.04); }
.pcard-brand { text-transform: none; letter-spacing: 0; }
.pcard-name { -webkit-line-clamp: 3; min-height: 4.2em; }

.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.svc { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; }
.svc:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.svc-img { aspect-ratio: 16/9; overflow: hidden; background: var(--bg); }
.svc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.svc:hover .svc-img img { transform: scale(1.06); }
.svc-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; }
.svc-body b { font-size: 17px; }
.svc-body small { color: var(--muted); font-size: 13.5px; }
.svc-body .link { margin-top: 4px; }
@media (max-width: 991px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .svc-grid { gap: 10px; } .svc-body { padding: 10px 12px 12px; } .svc-body b { font-size: 15px; } .svc-body small { display: none; } }

.intro-band { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; background: #fff; border-radius: 18px; box-shadow: var(--shadow); padding: 28px; }
.intro-text h2 { font-size: 28px; font-weight: 800; margin-bottom: 12px; }
.intro-text p { color: var(--ink-2); }
.ticks { display: grid; gap: 8px; margin: 16px 0 22px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; }
.ticks .ico { color: var(--ok); width: 20px; height: 20px; margin-top: 1px; }
.photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.photo { aspect-ratio: 3/4; border-radius: 12px; overflow: hidden; background: var(--bg); }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.photo:hover img { transform: scale(1.05); }
@media (max-width: 991px) { .intro-band { grid-template-columns: 1fr; padding: 20px; } .intro-text h2 { font-size: 22px; } }
@media (max-width: 575px) { .photo-grid { grid-template-columns: repeat(2, 1fr); } }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 991px) { .two-col { grid-template-columns: 1fr; } }
.code-list li + li { border-top: 1px solid var(--line); }
.code-list a { display: flex; align-items: center; gap: 12px; padding: 11px 4px; font-size: 14.5px; }
.code-list a span { flex: 1; }
.code-list a .ico:first-child { color: var(--accent); }
.code-list a .ico:last-child { width: 16px; height: 16px; color: var(--muted); }
.code-list a:hover { color: var(--main); }
.course-list { display: grid; gap: 10px; }
.course { display: flex; gap: 14px; align-items: center; padding: 8px; border-radius: 12px; border: 1px solid var(--line); }
.course:hover { border-color: var(--main); }
.course img, .course .img-ph { width: 96px; height: 64px; object-fit: cover; border-radius: 8px; flex: none; }
.course b { display: block; font-size: 15px; }
.course small { color: var(--muted); font-size: 12.5px; }
.mini-title { font-size: 16px; margin: 20px 0 10px; }
.chip .ico { width: 15px; height: 15px; }
.chips .chip { height: auto; min-height: 32px; padding: 6px 12px; }

.coll-art { display: grid; place-items: center; width: 140px; height: 140px; margin: 0; opacity: .9; }
.coll-art .ico { width: 110px; height: 110px; stroke-width: 1; color: #fff; }
@media (max-width: 575px) { .coll-art { width: 72px; height: 72px; } .coll-art .ico { width: 64px; height: 64px; } .coll-banner { height: auto; } }
.f-help { display: flex; gap: 10px; padding: 12px 0; font-size: 13px; color: var(--ink-2); }
.f-help .ico { color: var(--main); width: 28px; height: 28px; }
.f-help b { display: block; color: var(--ink); font-size: 14px; }

.pd-main { background: #fff; border: 1px solid var(--line); }
.pd-main img { width: 100%; height: 100%; object-fit: contain; }
.pd-thumbs button { background: #fff; border-color: var(--line); }
.pd-thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.pd-cats { display: flex; gap: 10px; flex-wrap: wrap; }
.pd-meta .ok { color: var(--ok); font-weight: 600; display: inline-flex; gap: 4px; align-items: center; }
.pd-meta .ok .ico { width: 16px; height: 16px; }
.pd-meta .warn { color: #b45309; font-weight: 600; }
.pd-short { margin-top: 14px; font-size: 14.5px; }
.pd-contact { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.pd-contact .btn { flex: 1; min-width: 150px; }
.pd-contact .btn .ico, .btn .ico { flex: none; }
/* Điện thoại: nút Gọi / Nhắn Zalo mỗi nút một hàng, chữ không tràn ra ngoài viền */
@media (max-width: 480px) {
  .pd-contact { flex-direction: column; }
  .pd-contact .btn { flex: none; width: 100%; min-width: 0; height: 46px; font-size: 15px; }
  .pd-buy .btn { padding: 0 12px; }
}
@media (max-width: 440px) {
  .header-in { gap: 6px; } .logo { gap: 8px; }
  .logo-text { font-size: 17px; }
  .header-in > .icon-btn, .hdr-ico { width: 36px; height: 36px; } .header-actions { gap: 2px; }
}
@media (max-width: 380px) {
  .pd-buy .btn { flex: 1 1 100%; }
  .logo-text { font-size: 15.5px; } .header-in { gap: 4px; }
}
.sticky-img img { width: 100%; height: 100%; object-fit: contain; border-radius: 10px; }
.qv-img { background: #fff; border: 1px solid var(--line); }
.qv-img img { width: 100%; height: 100%; object-fit: contain; }
.qv-short { margin-top: 12px; max-height: 160px; overflow: auto; }
.mini-img img { width: 100%; height: 100%; object-fit: cover; }
.acard-img { background: var(--bg); }
.acard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.acard:hover .acard-img img { transform: scale(1.05); }

/* Bài viết / trang chuyển từ WordPress */
.prose { line-height: 1.7; overflow-wrap: anywhere; }
.prose > div, .prose div { max-width: 100%; }
.prose img { max-width: 100%; width: auto; height: auto; max-height: 560px; border-radius: 10px; margin: 12px auto; display: block; }
.prose img.zoomable { cursor: zoom-in; }
.prose a { color: var(--main); text-decoration: underline; text-underline-offset: 2px; }
.prose h2 { color: var(--ink); font-size: 22px; margin: 24px 0 10px; }
.prose h4, .prose h5, .prose h6 { color: var(--ink); margin: 16px 0 8px; }
.prose ol { list-style: decimal; padding-left: 22px; margin-bottom: 1em; }
.prose figure { margin: 16px 0; }
.prose figcaption { font-size: 13px; color: var(--muted); text-align: center; }
.prose blockquote { border-left: 4px solid var(--accent); margin: 16px 0; padding: 8px 16px; background: var(--bg); border-radius: 0 10px 10px 0; }
.prose iframe { width: 100%; aspect-ratio: 16/9; height: auto; border: 0; border-radius: 12px; }
.prose pre { white-space: pre-wrap; background: var(--bg); padding: 12px; border-radius: 8px; }
.table-wrap { overflow-x: auto; margin: 16px 0; max-width: 100%; }
.article-layout > *, .cart-layout > *, .pd > *, .coll-layout > *, .two-col > *, .intro-band > * { min-width: 0; }
.prose table { border-collapse: collapse; width: 100%; font-size: 14px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; vertical-align: top; overflow-wrap: normal; min-width: 64px; }
.prose td:first-child, .prose th:first-child { white-space: nowrap; }
.prose th, .prose thead td { background: var(--main-soft); color: var(--ink); font-weight: 600; }
.prose tr:nth-child(even) td { background: #fafbfc; }
.article-cta { display: flex; gap: 14px; align-items: center; margin-top: 28px; padding: 16px; border-radius: 12px; background: var(--main-soft); }
.article-cta .ico { width: 36px; height: 36px; color: var(--main); flex: none; }
.article-cta b { display: block; }
.article-cta span { font-size: 14px; color: var(--ink-2); }
.article-cta a { color: var(--main); font-weight: 700; }
.article .tag { margin-bottom: 4px; }
.static.narrow { max-width: 960px; margin: 0 auto; }
.static .page-title { margin-bottom: 12px; }
.side-link.current b { color: var(--main); font-weight: 700; }
.news-cats { margin-bottom: 18px; }
.pager a { width: 40px; height: 40px; border-radius: 50%; background: #fff; box-shadow: var(--shadow); font-weight: 600; display: grid; place-items: center; }
.pager a.active { background: var(--main); color: #fff; }
.page-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.page-item { display: flex; gap: 14px; align-items: center; padding: 12px; }
.page-item img, .page-item .img-ph { width: 96px; height: 72px; object-fit: cover; border-radius: 8px; flex: none; }
.page-item b { display: block; }
.page-item small { color: var(--muted); font-size: 13px; }
@media (max-width: 767px) { .page-list { grid-template-columns: 1fr; } }
.map iframe { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; border: 0; }
.co-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.co-btns .btn { flex: 1; min-width: 200px; }
.cart-sum .btn-main { margin-top: 12px; }
.sum-row small { font-size: 13px; color: var(--muted); font-weight: 500; }
.footer a:hover { color: #fff; }
.newsletter-form { justify-content: flex-end; flex-wrap: wrap; }
.newsletter-form .btn .ico { width: 18px; height: 18px; }
.float-contact { position: fixed; left: 16px; bottom: 16px; z-index: 44; display: flex; flex-direction: column; gap: 10px; }
.fc { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: var(--shadow-lg); font-weight: 800; font-size: 13px; }
.fc.zalo { background: #0068ff; }
.fc.call { background: var(--sale); animation: ring 1.6s infinite; }
.fc.call .ico { width: 24px; height: 24px; }
@keyframes ring { 0%, 100% { box-shadow: 0 0 0 0 rgba(225, 29, 72, .5); } 70% { box-shadow: 0 0 0 14px rgba(225, 29, 72, 0); } }
.toasts { left: auto; right: 16px; }
.toast { transform: translateX(120%); }
@media (max-width: 575px) { .toasts { left: 16px; right: 16px; bottom: 84px; } .fc { width: 46px; height: 46px; } }
/* Trang sản phẩm: khi thanh giá dính đáy hiện, nâng nút Gọi/Zalo và nút lên đầu trang lên trên thanh */
.float-contact, .to-top { transition: bottom .3s, opacity .25s, visibility .25s; }
body.sticky-on .float-contact, body.sticky-on .to-top { bottom: calc(var(--sticky-h, 72px) + 12px); }
body.sticky-on .toasts { bottom: calc(var(--sticky-h, 72px) + 16px); }

/* bẫy chống bot trong form */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* ───────── Diễn đàn "Tài liệu" ───────── */
.forum-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.forum-head .page-title { margin-bottom: 6px; }
.forum-head p { margin: 4px 0; }
.member-bar { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 14px; }
.member-bar .ico { width: 16px; height: 16px; color: var(--main); }
.forum-cats { margin-bottom: 14px; }
.forum-cats .chip small { opacity: .7; margin-left: 2px; }
.topic-list { padding: 0; overflow: hidden; }
.topic-row { display: grid; grid-template-columns: 36px 1fr 70px 80px; gap: 12px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.topic-row:last-child { border-bottom: 0; }
.topic-row.pinned { background: #fffbeb; }
.topic-ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--bg); color: var(--main); }
.topic-row.pinned .topic-ico { background: #fef3c7; color: #b45309; }
.topic-ico .ico { width: 18px; height: 18px; }
.topic-main { min-width: 0; }
.topic-title { font-size: 15.5px; font-weight: 600; margin: 0 0 4px; line-height: 1.35; }
.topic-title a:hover { color: var(--main); }
.topic-meta { font-size: 12.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.topic-meta a { color: var(--main); }
.topic-stat { text-align: center; line-height: 1.2; }
.topic-stat b { display: block; font-size: 16px; }
.topic-stat small { font-size: 11.5px; color: var(--muted); }
.tag-lock { background: #fee2e2; color: #b91c1c; }
.forum-loading .ico { animation: spin 1.2s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.forum-topic { max-width: 960px; }
.forum-topic > .panel { margin-bottom: 14px; }
.topic-h1 { font-size: clamp(22px, 3vw, 30px); font-weight: 800; line-height: 1.3; margin: 0 0 6px; display: flex; gap: 8px; align-items: flex-start; }
.topic-h1 .ico { width: 24px; height: 24px; color: #b45309; flex: none; margin-top: 5px; }
.topic-first > .topic-meta { margin-bottom: 14px; }
.fpost-head { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.fpost-head small { display: block; font-size: 12px; color: var(--muted); }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--main-soft); color: var(--main); font-weight: 700; flex: none; }
.avatar.admin { background: var(--main); color: #fff; }
.new-reply { animation: flash 1.6s ease; }
@keyframes flash { from { box-shadow: 0 0 0 3px var(--accent); } }
.reply-box textarea, .new-topic input, .new-topic select, .new-topic textarea, .auth-form input {
  width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 11px 14px; outline: none; background: #fff; font: inherit;
}
.reply-box textarea:focus, .new-topic input:focus, .new-topic select:focus, .new-topic textarea:focus, .auth-form input:focus { border-color: var(--main); box-shadow: 0 0 0 3px var(--main-soft); }
.reply-box form { display: grid; gap: 10px; justify-items: start; }
.reply-box h3 { font-size: 16px; margin: 0; }
.reply-login { text-align: center; }
.reply-login .hero-btns { justify-content: center; }
.panel.narrow { max-width: 760px; margin: 0 auto; }
.new-topic { display: grid; gap: 14px; }
.new-topic label, .auth-form label { display: grid; gap: 6px; font-size: 13.5px; font-weight: 500; }
.auth h2 { font-size: 20px; margin: 0 0 12px; }
.auth .tabs { margin-bottom: 14px; }
.auth-form { display: grid; gap: 12px; }
.auth-form [hidden] { display: none !important; }
.modal-box.auth-modal { max-width: 420px; }
@media (max-width: 640px) {
  .topic-row { grid-template-columns: 30px 1fr 54px; padding: 12px; gap: 10px; }
  .topic-ico { width: 30px; height: 30px; }
  .forum-head .btn { width: 100%; justify-content: center; }
}
/* ───────── Diễn đàn kiểu XenForo ───────── */
.xf { padding-bottom: 30px; }
.xf-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin: 6px 0 14px; }
.xf-title { font-size: clamp(22px, 2.6vw, 28px); font-weight: 800; line-height: 1.3; margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.xf-title small { font-size: .6em; color: var(--muted); font-weight: 600; }
.xf-sub { color: var(--muted); font-size: 14px; margin-top: 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.xf-sub a { color: var(--main); font-weight: 600; }
.xf-member { width: 100%; margin-top: 6px; color: var(--ink-2); }
.xf-member:empty { display: none; }
.xf-btn-new .ico { width: 18px; height: 18px; }
.xf-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.xf-main, .xf-side { min-width: 0; display: grid; gap: 16px; }
.xf-block { background: var(--card); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.xf-block + .xf-block { margin-top: 0; }
.xf-main > .xf-block, .xf-thread-page > .xf-block { margin-bottom: 16px; }
.xf-block-head { margin: 0; padding: 10px 14px; font-size: 15px; font-weight: 700; color: var(--main); background: var(--main-soft); border-bottom: 1px solid var(--line); }
.xf-block-head.minor { background: var(--bg); color: var(--ink-2); font-size: 13.5px; border-top: 1px solid var(--line); }
.xf-block-body { padding: 12px 14px; display: grid; gap: 12px; }
.xf-block-body.flush { padding: 0; gap: 0; }
.xf-meta { font-size: 12.5px; color: var(--muted); }
.xf-empty { padding: 22px 14px; text-align: center; color: var(--muted); margin: 0; }

/* Ảnh đại diện chữ cái */
.xf-av { display: inline-grid; place-items: center; border-radius: 50%; color: #fff; font-weight: 700; flex: none; text-transform: uppercase; line-height: 1; }
.xf-av-s { width: 26px; height: 26px; font-size: 12px; }
.xf-av-m { width: 40px; height: 40px; font-size: 17px; }
.xf-av-l { width: 96px; height: 96px; font-size: 40px; border-radius: 12px; }
.xf-av.admin { background: var(--main); box-shadow: 0 0 0 2px var(--accent) inset; }
.xf-av.c0 { background: #2563eb; } .xf-av.c1 { background: #0891b2; } .xf-av.c2 { background: #059669; } .xf-av.c3 { background: #65a30d; }
.xf-av.c4 { background: #d97706; } .xf-av.c5 { background: #dc2626; } .xf-av.c6 { background: #9333ea; } .xf-av.c7 { background: #db2777; }

/* Box (node) */
.xf-node { display: grid; grid-template-columns: 44px minmax(0, 1fr) 76px 76px minmax(0, 260px); gap: 12px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.xf-node:last-child { border-bottom: 0; }
.xf-node-icon { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #9aa5b1; background: var(--bg); }
.xf-node-icon.has { color: var(--main); background: var(--main-soft); }
.xf-node-icon .ico { width: 22px; height: 22px; }
.xf-node-title { font-size: 15.5px; font-weight: 700; margin: 0; }
.xf-node-title a:hover, .xf-thread-title a:hover, .xf-recent-title:hover, .xf-node-last-title:hover { color: var(--main); text-decoration: underline; }
.xf-node-desc { margin: 3px 0 0; font-size: 13px; color: var(--muted); }
.xf-pair { margin: 0; text-align: center; line-height: 1.25; }
.xf-pair dt { font-size: 11.5px; color: var(--muted); }
.xf-pair dd { margin: 0; font-weight: 700; font-size: 15px; }
.xf-node-last { display: flex; gap: 8px; align-items: center; min-width: 0; }
.xf-node-last-body { min-width: 0; display: grid; }
.xf-node-last-title { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Danh sách chủ đề */
.xf-thread { display: grid; grid-template-columns: 40px minmax(0, 1fr) 70px 70px 150px; gap: 12px; align-items: center; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.xf-thread:last-child { border-bottom: 0; }
.xf-thread.sticky { background: #fffbeb; }
.xf-thread-title { font-size: 15px; font-weight: 600; margin: 0 0 3px; line-height: 1.4; }
.xf-thread-last { display: flex; gap: 8px; align-items: center; justify-content: flex-end; text-align: right; min-width: 0; }
.xf-thread-last > div { display: grid; min-width: 0; }
.xf-thread-last b { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xf-label { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 1px 7px; border-radius: 4px; margin-right: 6px; vertical-align: 2px; }
.xf-title .xf-label { font-size: 12px; margin: 0; vertical-align: middle; }
.xf-label.pin { background: #fef3c7; color: #92400e; }
.xf-label.lock { background: #fee2e2; color: #b91c1c; }

/* Cột phải */
.xf-recent { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 8px; }
.xf-recent > div { display: grid; min-width: 0; }
.xf-recent-title { font-size: 13.5px; font-weight: 600; line-height: 1.35; }
.xf-stats { margin: 0; display: grid; gap: 6px; font-size: 13.5px; }
.xf-stats div { display: flex; justify-content: space-between; gap: 10px; }
.xf-stats dt { color: var(--muted); }
.xf-stats dd { margin: 0; font-weight: 700; }

/* Phân trang */
.xf-pager { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 0 0 14px; }
.xf-pg { min-width: 34px; height: 32px; padding: 0 9px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 6px; background: #fff; font-size: 13.5px; font-weight: 600; color: var(--main); }
a.xf-pg:hover { border-color: var(--main); }
.xf-pg.on { background: var(--main); border-color: var(--main); color: #fff; }
.xf-pg.gap { border: 0; background: none; color: var(--muted); }
.xf-pg-info { margin-left: 6px; font-size: 12.5px; color: var(--muted); }

/* Bài viết trong chủ đề */
.xf-post { display: grid; grid-template-columns: 170px minmax(0, 1fr); background: var(--card); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin-bottom: 14px; scroll-margin-top: 140px; }
.xf-post.xf-flash { animation: flash 1.8s ease; }
.xf-user { background: var(--bg); border-right: 1px solid var(--line); padding: 16px 12px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.xf-user-info { display: grid; gap: 4px; justify-items: center; width: 100%; }
.xf-user-name { font-size: 15px; color: var(--main); word-break: break-word; }
.xf-role { font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 4px; background: #e2e8f0; color: #475569; }
.xf-role.admin { background: var(--main); color: #fff; }
.xf-user-extra { margin: 6px 0 0; width: 100%; display: grid; gap: 3px; font-size: 12px; }
.xf-user-extra div { display: flex; justify-content: space-between; gap: 6px; }
.xf-user-extra dt { color: var(--muted); }
.xf-user-extra dd { margin: 0; font-weight: 600; }
.xf-post-main { min-width: 0; display: flex; flex-direction: column; }
.xf-post-head { display: flex; justify-content: space-between; align-items: center; padding: 9px 16px; border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.xf-post-no { color: var(--muted); font-weight: 600; }
.xf-post-no:hover { color: var(--main); }
.xf-post-body { padding: 14px 16px 18px; }
.xf-reply { padding: 16px; }
.xf-reply-form { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; }
.xf-reply-main { display: grid; gap: 10px; }
.xf-reply-main textarea { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 11px 14px; font: inherit; outline: none; background: #fff; resize: vertical; }
.xf-reply-main textarea:focus { border-color: var(--main); box-shadow: 0 0 0 3px var(--main-soft); }
.xf-reply-act { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }

@media (max-width: 1024px) {
  .xf-wrap { grid-template-columns: 1fr; }
  .xf-node { grid-template-columns: 40px minmax(0, 1fr) 64px 64px; }
  .xf-node-last { grid-column: 2 / -1; }
}
@media (max-width: 640px) {
  .xf-node { grid-template-columns: 36px minmax(0, 1fr); gap: 4px 10px; padding: 12px; }
  .xf-node-icon { width: 36px; height: 36px; grid-row: span 2; }
  .xf-node .xf-pair { display: none; }
  .xf-node-last { grid-column: 2; }
  .xf-thread { grid-template-columns: 36px minmax(0, 1fr) auto; gap: 10px; padding: 11px 12px; }
  .xf-thread .xf-av-m { width: 36px; height: 36px; font-size: 15px; }
  .xf-thread .xf-pair + .xf-pair, .xf-thread-last { display: none; }
  .xf-post { grid-template-columns: 1fr; }
  .xf-user { flex-direction: row; text-align: left; border-right: 0; border-bottom: 1px solid var(--line); padding: 10px 12px; }
  .xf-user .xf-av-l { width: 44px; height: 44px; font-size: 19px; border-radius: 50%; }
  .xf-user-info { justify-items: start; grid-template-columns: auto auto; align-items: center; gap: 4px 8px; }
  .xf-user-extra { display: none; }
  .xf-post-head { padding: 8px 12px; }
  .xf-post-body { padding: 12px; }
  .xf-head-act, .xf-head-act .btn { width: 100%; justify-content: center; }
  .xf-reply-form { grid-template-columns: 1fr; }
  .xf-reply-form > .xf-av { display: none; }
}
/* Ảnh từ link ngoài & icon trong bài diễn đàn */
.prose .ugc-img { display: block; max-width: min(100%, 720px); max-height: 640px; width: auto; height: auto; margin: 8px 0; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); cursor: zoom-in; }
.prose p.emoji-big { font-size: 42px; line-height: 1.25; margin: 4px 0; letter-spacing: 4px; }
.xf-composer { display: grid; gap: 8px; }
.xf-tools { display: flex; gap: 6px; flex-wrap: wrap; }
.xf-tool { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 13.5px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.xf-tool:hover, .xf-tool[aria-expanded="true"] { border-color: var(--main); color: var(--main); background: var(--main-soft); }
.xf-imgrow { display: flex; gap: 6px; flex-wrap: wrap; }
.xf-imgrow[hidden], .xf-emoji[hidden], .xf-preview[hidden] { display: none; }
.xf-imgrow input { flex: 1 1 240px; min-width: 0; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; font: inherit; outline: none; }
.xf-imgrow input:focus { border-color: var(--main); box-shadow: 0 0 0 3px var(--main-soft); }
.xf-emoji { display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); gap: 4px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; max-height: 190px; overflow: auto; }
.xf-emoji button { font-size: 22px; height: 40px; border: 0; border-radius: 8px; background: none; cursor: pointer; }
.xf-emoji button:hover { background: var(--main-soft); transform: scale(1.15); }
.xf-composer textarea { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 11px 14px; font: inherit; outline: none; background: #fff; resize: vertical; }
.xf-composer textarea:focus { border-color: var(--main); box-shadow: 0 0 0 3px var(--main-soft); }
.xf-preview { display: flex; gap: 8px; flex-wrap: wrap; }
.xf-preview figure { margin: 0; width: 96px; height: 96px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: var(--bg); position: relative; }
.xf-preview img { width: 100%; height: 100%; object-fit: cover; }
.xf-preview figcaption { display: none; }
.xf-preview figure.bad img { display: none; }
.xf-preview figure.bad figcaption { display: grid; place-items: center; height: 100%; padding: 6px; text-align: center; font-size: 11px; color: #b91c1c; }
.xf-field { display: grid; gap: 6px; }
.xf-field-label { font-size: 13.5px; font-weight: 500; }
@media (max-width: 640px) { .xf-tool span { display: none; } .xf-tool { font-size: 18px; } }
/* Link chỉ dành cho thành viên */
.xf-locked-link { display: inline-flex; align-items: center; gap: 4px; margin: 2px 0; padding: 4px 10px; border: 1px dashed #d97706; border-radius: 6px; background: #fffbeb; color: #92400e; font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.xf-locked-link:hover { background: #fef3c7; border-style: solid; }
/* Thành viên VIP & chủ đề chỉ VIP */
.xf-label.vip { background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff; }
.xf-role.vip { background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff; }
.prose p.xf-vip-teaser { position: relative; max-height: 9.5em; overflow: hidden; margin: 0; }
.prose p.xf-vip-teaser::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3em; background: linear-gradient(transparent, var(--card)); }
.xf-vip-gate { text-align: center; padding: 26px 20px; margin-bottom: 16px; border: 2px solid #f59e0b; background: linear-gradient(180deg, #fffbeb, #fff); }
.xf-vip-icon { width: 54px; height: 54px; margin: 0 auto 8px; border-radius: 50%; display: grid; place-items: center; font-size: 28px; color: #fff; background: linear-gradient(135deg, #f59e0b, #d97706); }
.xf-vip-gate h2 { font-size: 20px; margin: 0 0 8px; color: #92400e; }
.xf-vip-gate p { margin: 4px auto; max-width: 560px; color: var(--ink-2); }
.xf-vip-act { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 14px; }
/* Video nhúng (Google Drive, YouTube) co giãn 16:9 */
.prose .video-embed { position: relative; padding-top: 56.25%; margin: 14px 0; background: #111; border-radius: 10px; overflow: hidden; }
.prose .video-embed iframe { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; border: 0; }
.prose iframe { max-width: 100%; }
/* Captcha bấm vào hình */
.cap { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: #f8fafc; display: grid; gap: 8px; }
.cap[hidden] { display: none; }
.cap.done { border-color: #16a34a; background: #f0fdf4; }
.cap-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.cap-prompt { color: var(--ink); }
.cap-img { position: relative; width: 100%; max-width: 330px; line-height: 0; }
.cap-img img { width: 100%; height: auto; aspect-ratio: 330 / 180; border-radius: 8px; border: 1px solid var(--line); cursor: crosshair; user-select: none; -webkit-user-drag: none; background: #fff; }
.cap-dot { position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; border: 3px solid #fff; background: rgba(22, 163, 74, .85); box-shadow: 0 0 0 2px #16a34a, 0 2px 6px rgba(0,0,0,.3); pointer-events: none; }
.cap-dot[hidden] { display: none; }
.auth-form .reg-cap:empty { display: none; }
/* Gợi ý số điện thoại khi đăng ký */
.phone-hint { display: block; font-size: 12px; font-weight: 400; color: var(--muted); }
.phone-hint.ok { color: #16a34a; }
.phone-hint.bad { color: #dc2626; }
.auth-form input.invalid { border-color: #dc2626; box-shadow: 0 0 0 3px #fee2e2; }.prose .video-embed.vertical { padding-top: 0; aspect-ratio: 9 / 16; width: 100%; max-width: 360px; margin-left: auto; margin-right: auto; }
/* Quảng cáo Google AdSense */
.ad-box { margin: 18px 0; min-height: 90px; text-align: center; overflow: hidden; }
.ad-label { display: block; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.article-side .ad-box, .xf-side .ad-box { margin: 0 0 16px; min-height: 250px; }
.xf-thread-page > .ad-box { margin: 0 0 14px; }
.prose .ad-here { display: none; } /* dấu vị trí quảng cáo chưa được thay */
/* Xu: hộp mua bài, ví xu */
.xf-label.coin { background: #fef3c7; color: #92400e; border: 1px solid #fcd34d; }
.xf-coin-gate { text-align: center; padding: 26px 20px; margin-bottom: 16px; border: 2px solid #f59e0b; background: linear-gradient(180deg, #fffbeb, #fff); }
.xf-coin-icon { font-size: 40px; line-height: 1; margin-bottom: 6px; }
.xf-coin-gate h2 { font-size: 20px; margin: 0 0 8px; color: #92400e; }
.xf-coin-gate p { margin: 4px auto; max-width: 560px; color: var(--ink-2); }
.xf-coin-price { font-size: 18px; }
.xf-coin-price s { color: var(--muted); }
.xf-bought { margin: -6px 0 12px; color: #15803d; font-weight: 600; font-size: 14px; }
.coin-link { color: #b45309; font-weight: 700; }
.wallet-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-bottom: 16px; }
.wallet-grid .panel h2 { font-size: 17px; margin: 0 0 10px; }
.wallet-bal { display: grid; gap: 6px; align-content: center; text-align: center; background: linear-gradient(135deg, #fffbeb, #fef3c7); }
.wallet-bal span { color: var(--muted); }
.wallet-bal b { font-size: 34px; color: #b45309; }
.wallet-code { font-size: 18px; padding: 2px 8px; border-radius: 6px; background: #fef3c7; color: #92400e; letter-spacing: .03em; }
.wallet-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-height: 420px; overflow: auto; }
.wallet-list li { padding: 8px 10px; border-radius: 8px; background: var(--bg); }
.wallet-list small { display: block; color: var(--muted); font-size: 12.5px; }
.wallet-list li.plus b { color: #15803d; } .wallet-list li.minus b { color: #b91c1c; }
/* Định dạng nội dung soạn bằng trình soạn thảo (khớp với mẫu trình bày trong trang quản trị) */
.prose .box-note, .prose .box-tip, .prose .box-warn, .prose .box-danger { margin: 16px 0; padding: 12px 16px; border-radius: 8px; border-left: 4px solid; }
.prose .box-note { background: #eff6ff; border-color: #3b82f6; }
.prose .box-tip { background: #f0fdf4; border-color: #22c55e; }
.prose .box-warn { background: #fffbeb; border-color: #f59e0b; }
.prose .box-danger { background: #fef2f2; border-color: #ef4444; }
.prose .box-note > :first-child, .prose .box-tip > :first-child, .prose .box-warn > :first-child, .prose .box-danger > :first-child { margin-top: 0; }
.prose .box-note > :last-child, .prose .box-tip > :last-child, .prose .box-warn > :last-child, .prose .box-danger > :last-child { margin-bottom: 0; }
.prose mark { background: #fef08a; padding: 0 2px; border-radius: 2px; }
.prose code, .prose kbd { font-family: Consolas, 'Courier New', monospace; font-size: .92em; background: #f1f5f9; padding: 1px 5px; border-radius: 4px; }
.prose kbd { border: 1px solid #cbd5e1; border-bottom-width: 2px; }
.prose pre { background: #0f172a; color: #e2e8f0; padding: 12px 14px; border-radius: 8px; overflow: auto; font-size: 13.5px; line-height: 1.55; }
.prose pre code { background: none; padding: 0; color: inherit; }
.prose blockquote { margin: 16px 0; padding: 8px 16px; border-left: 4px solid var(--main); background: #f8fafc; color: #334155; font-style: italic; }
.prose a.btn-link { display: inline-block; padding: 9px 18px; border-radius: 8px; background: var(--main); color: #fff; text-decoration: none; font-weight: 600; }
.prose a.btn-link:hover { filter: brightness(1.1); }
.prose img.img-frame { border-radius: 10px; box-shadow: 0 2px 10px rgba(0, 0, 0, .15); }
.prose table.table-striped tr:nth-child(even) td { background: #f8fafc; }
.prose details { border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; margin: 12px 0; background: #fff; }
.prose details > summary { font-weight: 600; cursor: pointer; }
.prose details[open] > summary { margin-bottom: 8px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
.prose sup, .prose sub { font-size: .75em; }
.prose ol[style*="lower-alpha"] { list-style-type: lower-alpha; } .prose ol[style*="upper-roman"] { list-style-type: upper-roman; }
/* Biểu tượng đồng xu tự vẽ (emoji 🪙 không hiện trên Windows 10) */
.coin-ico { display: inline-block; width: 1em; height: 1em; vertical-align: -.15em; border-radius: 50%; position: relative; flex: none;
  background: radial-gradient(circle at 35% 30%, #fde68a 0 18%, #f59e0b 19% 62%, #b45309 63% 100%); box-shadow: inset 0 0 0 .08em #92400e; }
.coin-ico::after { content: ""; position: absolute; top: 28%; right: 28%; bottom: 28%; left: 28%; border-radius: 50%; border: .07em solid rgba(146, 64, 14, .55); }
.coin-ico.big { width: 46px; height: 46px; box-shadow: inset 0 0 0 3px #92400e, 0 3px 8px rgba(180, 83, 9, .35); }/* Bài bán bằng xu chưa mua: chỉ có khung mờ, không có chữ nào của nội dung */
.xf-locked-body { position: relative; padding: 6px 0 4px; display: grid; gap: 10px; }
.xf-locked-body span { display: block; height: 12px; border-radius: 6px; background: linear-gradient(90deg, #e2e8f0, #f1f5f9, #e2e8f0); }
.xf-locked-body span:nth-child(2) { width: 92%; } .xf-locked-body span:nth-child(3) { width: 84%; } .xf-locked-body span:nth-child(4) { width: 60%; }
.xf-locked-body p { margin: 6px 0 0; display: flex; align-items: center; gap: 6px; color: #92400e; font-weight: 600; font-size: 14px; }