/* Về Nhà Mới — giao diện thương mại điện tử kiểu Alibaba, màu theo logo (xanh #0E56DA + cam #FB6D19) */
:root {
    --blue: #0e56da;
    --blue-d: #0a43b3;
    --blue-l: #eaf1ff;
    --orange: #fb6d19;
    --orange-d: #e45a08;
    --orange-l: #fff3ea;
    --ink: #1f2a44;
    --text: #2a3347;
    --muted: #6b7488;
    --line: #e8e8e8;
    --bg: #f5f5f5;
    --white: #fff;
    --ok: #16a34a;
    --err: #d92d20;
    --radius: 10px;
    --shadow: 0 2px 10px rgba(31, 42, 68, .08);
    --w: 1440px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.5 Inter, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--orange); }
h1, h2, h3 { color: var(--ink); line-height: 1.3; margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.container { width: 100%; max-width: var(--w); margin: 0 auto; padding: 0 40px; }
.muted { color: var(--muted); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--blue); color: #fff; padding: 8px 14px; z-index: 999; }
.skip-link:focus { left: 8px; top: 8px; }
.i { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* ---------- Nút ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 18px; border: 1.5px solid transparent; border-radius: 999px; font-weight: 600; line-height: 1.2; text-align: center; transition: background .15s, color .15s, border-color .15s; white-space: nowrap; }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-d); color: #fff; }
.btn-outline { background: #fff; color: var(--blue); border-color: var(--blue); }
.btn-outline:hover { background: var(--blue-l); color: var(--blue-d); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-dark { background: var(--blue); color: #fff; }
.btn-dark:hover { background: var(--blue-d); color: #fff; }
.btn-light { background: #fff; color: var(--blue); }
.btn-light:hover { background: var(--orange-l); color: var(--orange-d); }
.btn-lg { padding: 13px 26px; font-size: 15px; }
.btn-block { display: flex; width: 100%; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--blue); display: inline-flex; align-items: center; gap: 4px; }
.linkbtn:hover { color: var(--orange); }
.badge { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--orange); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }

/* ---------- Thông báo ---------- */
.alert { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0; padding: 12px 14px; border-radius: var(--radius); border: 1px solid; }
.alert-ok { background: #ecfdf3; border-color: #a6f4c5; color: #067647; }
.alert-err { background: #fef3f2; border-color: #fecdca; color: #b42318; }
.alert-warn { background: var(--orange-l); border-color: #ffd5b8; color: #b54708; }
.toast { position: fixed; left: 50%; bottom: 84px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: .25s; z-index: 300; max-width: 90vw; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.toast.is-err { background: var(--err); }

/* ---------- Header (kiểu Alibaba: logo – tìm kiếm – tiện ích, hàng điều hướng bên dưới) ---------- */
.hd { position: sticky; top: 0; z-index: 100; background: #fff; }
.is-home .hd { background: transparent; }
.is-home.scrolled .hd { background: #fff; box-shadow: 0 2px 12px rgba(0, 0, 0, .08); }
.hd-main { display: flex; align-items: center; gap: 18px; height: 74px; }
.hd-logo { flex: none; display: block; }
.hd-logo img { height: 44px; width: auto; }
.hd-burger { display: none; background: none; border: 0; color: var(--ink); padding: 6px; font-size: 24px; }
.hd-search { position: relative; flex: 0 1 560px; margin-left: 14px; display: flex; align-items: center; background: #fff; border: 2px solid var(--orange); border-radius: 999px; padding: 3px; min-width: 0; }
.hd-search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; padding: 8px 14px; color: var(--ink); }
.hd-search button, .hs-btn { border: 0; color: #fff; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; background: linear-gradient(90deg, #ff8a1f, #ff5a1a); }
.hd-search button { padding: 9px 20px; }
.hd-search button:hover, .hs-btn:hover { filter: brightness(.95); }
.is-home:not(.scrolled) .hd-search { display: none; }
.hd-actions { display: flex; align-items: center; gap: 18px; margin-left: auto; flex: none; }
.hd-ship { display: flex; flex-direction: column; line-height: 1.15; font-size: 13px; color: #222; }
.hd-ship small { font-size: 12px; color: #444; }
.hd-ship strong { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.flag { border-radius: 2px; }
.hd-lang { display: inline-flex; align-items: center; gap: 8px; color: #222; font-size: 14px; white-space: nowrap; }
.hd-lang .i { font-size: 20px; }
.hd-ico { position: relative; color: #222; display: inline-flex; padding: 4px; font-size: 24px; }
.hd-ico:hover { color: var(--orange); }
.hd-ico .badge { top: -3px; right: -5px; }
.hd-cta { background: var(--orange); color: #fff; font-weight: 700; padding: 11px 22px; border-radius: 999px; white-space: nowrap; }
.hd-cta:hover { background: var(--orange-d); color: #fff; }

.hd-nav { display: flex; align-items: center; gap: 28px; height: 40px; font-size: 14px; }
.hd-nav a, .hd-allcat-btn { color: #222; white-space: nowrap; }
.hd-nav a:hover, .hd-allcat-btn:hover { color: var(--orange); }
.hd-nav-r { margin-left: auto; display: flex; align-items: center; gap: 28px; }
.hd-hot { font-weight: 700; color: var(--blue) !important; display: inline-flex; align-items: center; gap: 6px; }
.hd-allcat { position: relative; }
.hd-allcat-btn { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; padding: 0; height: 40px; }
.hd-allcat-panel { display: none; position: absolute; left: 0; top: 100%; z-index: 110; padding-top: 4px; }
.hd-allcat.is-open .hd-allcat-panel { display: block; }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 8px); background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 10px 34px rgba(0, 0, 0, .16); z-index: 120; overflow: hidden; text-align: left; }
.suggest a { display: flex; align-items: center; gap: 12px; padding: 8px 14px; color: var(--text); }
.suggest a:hover, .suggest a.is-on { background: #fff4ec; color: var(--orange-d); }
.suggest img { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; background: var(--bg); }
.suggest .sg-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest .sg-p { color: var(--ink); font-weight: 700; }
.suggest .sg-h { padding: 8px 14px 4px; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }

/* Menu ngành hàng (thẻ trắng + bảng bay ra bên phải) */
.catmenu-roots { width: 270px; padding: 6px; background: #fff; border-radius: 16px; }
.catmenu-drop .catmenu-roots { box-shadow: 0 10px 34px rgba(0, 0, 0, .18); }
.catmenu-root > a { display: flex; align-items: center; gap: 12px; padding: 11px 10px; color: #222; font-weight: 600; font-size: 15px; border-radius: 10px; }
.catmenu-root > a span { flex: 1; }
.catmenu-root > a .chevron-right, .catmenu-root > a > .i:last-child { font-size: 14px; color: #999; }
.catmenu-ic { font-size: 20px; color: #444; }
.catmenu-root:hover > a, .catmenu-root.is-active > a { background: #f5f5f5; }
.catmenu-fly { display: none; position: absolute; left: calc(100% + 8px); top: 0; min-height: 100%; width: 720px; background: #fff; border-radius: 16px; box-shadow: 0 10px 34px rgba(0, 0, 0, .16); padding: 20px 24px; z-index: 5; }
.catmenu-root.is-active > .catmenu-fly, .catmenu-hero .catmenu-root:hover > .catmenu-fly { display: block; }
.catmenu-cols { columns: 3; column-gap: 28px; }
.catmenu-col { break-inside: avoid; margin-bottom: 14px; }
.catmenu-col a { display: block; padding: 3px 0; color: #555; }
.catmenu-col a:hover { color: var(--orange); }
.catmenu-col .catmenu-h { color: #222; font-weight: 700; margin-bottom: 2px; }

/* Ngăn kéo danh mục (di động) */
.drawer { position: fixed; inset: 0; z-index: 200; }
.drawer-bg { position: absolute; inset: 0; background: rgba(15, 23, 42, .5); }
.drawer-panel { position: absolute; left: 0; top: 0; bottom: 0; width: min(86vw, 340px); background: #fff; overflow-y: auto; }
.drawer-hd { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; background: var(--blue); color: #fff; position: sticky; top: 0; }
.drawer-hd button { background: none; border: 0; color: #fff; font-size: 20px; }
.drawer-list > li { border-bottom: 1px solid var(--line); }
.drawer-list a, .drawer-toggle { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 13px 16px; background: none; border: 0; color: var(--ink); font-weight: 500; text-align: left; }
.drawer-sub { background: #fafafa; }
.drawer-sub a { padding-left: 28px; font-weight: 400; color: var(--text); }
.drawer-toggle[aria-expanded="true"] .i { transform: rotate(180deg); }

/* ---------- Trang chủ ---------- */
body.is-home { background: linear-gradient(180deg, #fff1e6 0, #fdebf2 300px, #f5f5f5 560px) no-repeat #f5f5f5; }
.hs { padding-top: 28px; padding-bottom: 36px; text-align: center; }
.hs-tabs { display: flex; justify-content: center; gap: 48px; margin-bottom: 22px; }
.hs-tabs a { position: relative; font-size: 32px; font-weight: 700; color: #222; padding-bottom: 6px; line-height: 1.2; }
.hs-tabs a:hover { color: var(--orange); }
.hs-tabs a.is-on { color: var(--orange); }
.hs-tabs a.is-on::after { content: ""; position: absolute; left: 12%; right: 12%; bottom: 0; height: 3px; border-radius: 2px; background: var(--orange); }
.hs-box { position: relative; max-width: 960px; margin: 0 auto; background: #fff; border: 2px solid #ff8a3d; border-radius: 16px; padding: 14px 18px 14px 22px; text-align: left; box-shadow: 0 8px 28px rgba(251, 109, 25, .14); }
.hs-box input { width: 100%; border: 0; outline: 0; font-size: 17px; padding: 10px 0 22px; background: none; color: var(--ink); }
.hs-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.hs-scope { position: relative; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: #222; }
.hs-scope select { appearance: none; border: 0; background: none; font-weight: 600; padding-right: 20px; color: inherit; cursor: pointer; }
.hs-scope .i:last-child { position: absolute; right: 0; pointer-events: none; font-size: 14px; }
.hs-btn { padding: 12px 30px; font-size: 16px; }

.welcome { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 18px; padding-bottom: 20px; }
.welcome h2 { font-size: 24px; font-weight: 700; color: #222; }
.welcome-links { display: flex; align-items: center; }
.welcome-links a { display: inline-flex; align-items: center; gap: 8px; padding: 0 20px; border-left: 1px solid #cfcfcf; font-weight: 700; font-size: 16px; color: #222; }
.welcome-links a:first-child { border-left: 0; }
.welcome-links .i { font-size: 22px; }
.welcome-links a:hover { color: var(--orange); }

.hero { display: grid; grid-template-columns: 300px 232px 232px minmax(0, 1fr); gap: 12px; align-items: stretch; }
.hcard { background: #fff; border-radius: 16px; padding: 14px; min-width: 0; }
.hero-cats { position: relative; padding: 0; }
.hero-cats .catmenu, .hero-cats .catmenu-roots { height: 100%; }
.hero-cats .catmenu-roots { width: 100%; padding: 10px; }
.hero-cats .catmenu { position: static; }
.hero-cats .catmenu-fly { left: 100%; margin-left: 8px; width: min(760px, calc(100vw - 340px)); }
.mcard { display: flex; flex-direction: column; }
.mcard h2 { font-size: 20px; font-weight: 700; }
.mcard-sub { color: #666; font-size: 14px; display: inline-flex; align-items: center; gap: 2px; margin-bottom: 12px; }
.mcard-sub:hover { color: var(--orange); }
.mcard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; flex: 1; align-content: start; }
.mthumb { position: relative; display: block; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: #f2f2f2; }
.mthumb img { width: 100%; height: 100%; object-fit: cover; }
.mprice { position: absolute; left: 5px; bottom: 5px; max-width: calc(100% - 10px); background: rgba(255, 255, 255, .94); border-radius: 999px; padding: 1px 8px; font-weight: 700; font-size: 12px; color: #222; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-slider { position: relative; min-width: 0; min-height: 340px; border-radius: 16px; overflow: hidden; background: #e8eefc; }
.slides, .slide { position: absolute; inset: 0; }
.slide { opacity: 0; transition: opacity .5s; display: block; }
.slide.is-on { opacity: 1; z-index: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.sl-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .9); color: var(--ink); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow); opacity: 0; transition: opacity .2s; }
.hero-slider:hover .sl-btn { opacity: 1; }
.sl-prev { left: 12px; } .sl-next { right: 12px; }
.sl-dots { position: absolute; z-index: 2; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 7px; }
.sl-dots button { width: 8px; height: 8px; padding: 0; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .75); }
.sl-dots button.is-on { width: 22px; border-radius: 4px; background: var(--orange); }
.hero-fallback { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; justify-content: center; padding: 6%; background: linear-gradient(120deg, var(--blue), #3b82f6); color: #fff; }
.hero-fallback h1 { color: #fff; font-size: clamp(22px, 3vw, 34px); }

.gband { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 24px; margin-top: 40px; padding: 28px; border-radius: 16px; color: #fff; background: linear-gradient(120deg, #0a2a6e 0%, #0e4bbd 60%, #1c63e6 100%); align-items: center; }
.gband h2 { color: #fff; font-size: 30px; margin-bottom: 14px; }
.gband h2 em { font-style: normal; color: #ff9a4d; }
.gband ul { display: grid; gap: 10px; margin-bottom: 20px; }
.gband li { display: flex; align-items: center; gap: 8px; }
.gband li .i { color: #7fe3a5; }
.btn-white { background: #fff; color: #222; }
.btn-white:hover { background: #fff4ec; color: var(--orange-d); }
.gband-items { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.gitem { display: flex; flex-direction: column; background: #fff; border-radius: 12px; overflow: hidden; color: #222; padding-bottom: 10px; }
.gitem:hover { color: #222; box-shadow: 0 6px 20px rgba(0, 0, 0, .25); }
.gitem-img { display: block; aspect-ratio: 1; background: #f2f2f2; margin-bottom: 8px; }
.gitem-img img { width: 100%; height: 100%; object-fit: cover; }
.gitem strong { padding: 0 10px; font-size: 18px; }
.gitem-note { padding: 0 10px; color: #e6491e; font-size: 13px; }

.sec-title { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 38px 0 18px; font-size: 16px; font-weight: 400; color: #666; }
.sec-title::before, .sec-title::after { content: ""; flex: 1; max-width: 180px; height: 1px; background: #d6d6d6; }
.more { text-align: center; margin: 22px 0 0; }

.block { margin-top: 36px; }
.block-hd { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; gap: 12px; }
.block-hd h2 { font-size: 24px; }
.block-hd > a { display: inline-flex; align-items: center; gap: 2px; font-weight: 600; white-space: nowrap; color: #222; }
.block-hd > a:hover { color: var(--orange); }

.rfq-band { margin-top: 40px; background: linear-gradient(100deg, var(--blue) 0%, #2f74ee 60%, #5a95f2 100%); color: #fff; }
.rfq-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 28px; padding-bottom: 28px; }
.rfq-in h2 { color: #fff; font-size: 26px; margin-bottom: 4px; }
.rfq-in p { margin: 0; opacity: .92; }

.showcase { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 10px; }
.showcase-ban { position: relative; border-radius: 12px; overflow: hidden; min-height: 280px; background: #e8eefc; display: block; }
.showcase-ban img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.showcase-ban span { position: absolute; inset: auto 0 0 0; padding: 40px 16px 16px; background: linear-gradient(transparent, rgba(10, 30, 80, .85)); color: #fff; display: flex; flex-direction: column; gap: 6px; }
.showcase-ban strong { font-size: 18px; }
.showcase-ban em { font-style: normal; display: inline-flex; align-items: center; background: var(--orange); width: fit-content; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; }

.news-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.news-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.news-card { background: #fff; border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; color: var(--ink); transition: box-shadow .15s; }
.news-card:hover { box-shadow: 0 6px 22px rgba(0, 0, 0, .12); color: var(--ink); }
.news-img { aspect-ratio: 8 / 5; background: var(--bg); overflow: hidden; }
.news-img img { width: 100%; height: 100%; object-fit: cover; }
.news-card strong { padding: 12px 14px 4px; font-size: 15px; line-height: 1.35; }
.news-card small { padding: 0 14px 14px; color: var(--muted); }

/* ---------- Thẻ sản phẩm (kiểu Alibaba: ảnh bo góc trong thẻ trắng, giá đậm, MOQ) ---------- */
.pgrid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.pgrid-6 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pgrid-6x { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.pgrid-list-list { grid-template-columns: 1fr; }
.pc { position: relative; background: #fff; border-radius: 12px; padding: 10px 10px 12px; display: flex; flex-direction: column; transition: box-shadow .15s; }
.pc:hover { box-shadow: 0 8px 24px rgba(0, 0, 0, .13); }
.pc-img { position: relative; display: block; aspect-ratio: 1; background: #f2f2f2; border-radius: 8px; overflow: hidden; }
.pc-img img { width: 100%; height: 100%; object-fit: cover; }
.pc-tag { position: absolute; left: 8px; top: 8px; background: var(--orange); color: #fff; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.pc-tag-inline { position: static; margin-left: 8px; display: inline-block; }
.pc-wish { position: absolute; right: 18px; top: 18px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: #666; display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 4px rgba(0, 0, 0, .15); z-index: 2; opacity: 0; transition: opacity .15s; }
.pc:hover .pc-wish, .pc-wish.is-on, .pdp-wish { opacity: 1; }
.pc-wish:hover { color: var(--orange); }
.pc-wish.is-on { color: var(--orange); }
.pc-wish.is-on .i { fill: var(--orange); }
.pc-body { padding: 10px 2px 0; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.pc-title { font-size: 14px; font-weight: 400; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.8em; }
.pc-title a { color: #222; }
.pc-title a:hover { color: var(--orange); }
.pc-assure { margin: 0; display: flex; align-items: center; gap: 4px; font-size: 12.5px; color: #2e7d32; }
.pc-assure .i { font-size: 14px; }
.pc-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px; }
.pc-price strong { font-size: 20px; font-weight: 700; color: #222; letter-spacing: -.2px; }
.pc-price .pc-contact { font-size: 15px; color: var(--blue); }
.pc-price strong.is-range { font-size: 17px; }
.pc-price del { color: #999; font-size: 12.5px; }
.pc-meta { margin: 0; font-size: 13px; color: #666; }
.pc-seller { margin: 2px 0 0; display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: #666; }
.pc-seller b { display: inline-flex; align-items: center; gap: 3px; color: var(--blue); font-weight: 800; font-style: italic; }
.pc-seller .i { font-size: 15px; }
.pgrid-list-list .pc { flex-direction: row; gap: 14px; }
.pgrid-list-list .pc-img { width: 200px; flex: none; }
.pgrid-list-list .pc-title { -webkit-line-clamp: 3; font-size: 15px; }

/* ---------- Breadcrumb / tiêu đề trang ---------- */
.crumbs { padding-top: 14px; padding-bottom: 4px; }
.crumbs ol { display: flex; flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; scrollbar-width: none; align-items: center; gap: 2px; font-size: 13px; color: var(--muted); }
.crumbs li { display: inline-flex; align-items: center; gap: 2px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--orange); }
.crumbs .i { font-size: 12px; }
.page-h { font-size: 24px; margin: 10px 0 16px; }
.page-h small { font-size: 15px; color: var(--muted); font-weight: 400; }

/* ---------- Danh sách / tìm kiếm ---------- */
.lst { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 18px; align-items: start; padding-top: 6px; }
.lst-side { background: #fff; border-radius: var(--radius); padding: 14px 16px; border: 1px solid var(--line); position: sticky; top: 130px; max-height: calc(100vh - 150px); overflow-y: auto; }
.filter-box > summary { list-style: none; font-weight: 700; color: var(--ink); display: none; align-items: center; gap: 8px; cursor: pointer; }
.filter-box > summary::-webkit-details-marker { display: none; }
.fgroup { padding: 12px 0; border-top: 1px solid var(--line); display: block; }
.fgroup:first-of-type { border-top: 0; padding-top: 0; }
.fgroup h3 { font-size: 14px; margin-bottom: 8px; }
.ftree a { display: flex; justify-content: space-between; gap: 6px; padding: 5px 0; color: var(--text); }
.ftree a small { color: #9aa3b5; }
.ftree a:hover, .ftree a.is-on { color: var(--blue); }
.ftree a.is-on { font-weight: 700; }
.ftree ul { padding-left: 12px; border-left: 2px solid var(--blue-l); margin: 2px 0 6px 2px; }
.price-range { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.price-range input { width: 100%; min-width: 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; }
.price-range input:focus { border-color: var(--blue); outline: none; }
.reset { display: inline-block; margin-top: 8px; font-size: 13px; }
.fchip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--text); }
.fchip.is-on, .fchip:hover { border-color: var(--orange); color: var(--orange); background: var(--orange-l); }
.lst-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; margin-bottom: 12px; flex-wrap: wrap; }
.lst-head h1 { font-size: 22px; }
.lst-count { margin: 2px 0 0; color: var(--muted); }
.lst-count strong { color: var(--ink); }
.lst-tools { display: flex; align-items: center; gap: 12px; }
.sort { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.sort select { padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); }
.viewsw { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff; }
.viewsw a { padding: 8px 12px; color: var(--muted); display: flex; }
.viewsw a.is-on { background: var(--blue); color: #fff; }
.subcats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.subcats a { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; color: var(--ink); }
.subcats a:hover { border-color: var(--blue); color: var(--blue); }
.lst-main .pgrid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.lst-main .pgrid-list-list { grid-template-columns: 1fr; }
.empty { background: #fff; border-radius: var(--radius); padding: 48px 20px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; border: 1px solid var(--line); margin: 16px 0; }
.empty > .i { font-size: 48px; color: #b7c2d9; }
.empty p { margin: 0; color: var(--muted); max-width: 460px; }
.err-code { font-size: 72px; font-weight: 800; color: var(--blue); line-height: 1; }
.seo-text { margin-top: 20px; background: #fff; border-radius: var(--radius); padding: 18px; border: 1px solid var(--line); }
.pager { display: flex; justify-content: center; gap: 6px; margin: 26px 0 10px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 38px; height: 38px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); }
.pager a:hover { border-color: var(--blue); color: var(--blue); }
.pager .is-on { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 700; }
.pager .pager-gap { border: 0; background: none; }

/* ---------- Chi tiết sản phẩm (kiểu Alibaba) ---------- */
body.is-pdp { background: #fff; }
.pdp-page .container { max-width: 1272px; padding: 0 16px; }
.pdp-page .crumbs { padding-top: 14px; padding-bottom: 14px; }
.pdp-page .crumbs ol { font-size: 13px; color: #222; }
.pdp-page .crumbs a { color: #222; }
.pdp-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.pdp-main { min-width: 0; }
.pdp-top { display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: 28px; align-items: start; }
.pdp-left { min-width: 0; }
.pdp-gallery { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 12px; }
.gal-thumbs { min-width: 0; display: flex; flex-direction: column; gap: 10px; max-height: 372px; overflow-y: auto; scrollbar-width: none; }
.gal-thumbs::-webkit-scrollbar { display: none; }
.gal-th { width: 70px; height: 70px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: #f5f5f5; flex: none; }
.gal-th img { width: 100%; height: 100%; object-fit: cover; }
.gal-th.is-on { border-color: #222; }
.gal-th:hover { border-color: #888; }
.gal-main { position: relative; aspect-ratio: 1; background: #f5f5f5; border-radius: 12px; overflow: hidden; }
.gal-main img, .gal-main video { width: 100%; height: 100%; object-fit: contain; }
.gal-tools { position: absolute; right: 12px; top: 12px; display: flex; flex-direction: column; gap: 8px; z-index: 2; }
.gal-ico { width: 38px; height: 38px; border: 0; border-radius: 50%; background: #fff; color: #222; display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 6px rgba(0, 0, 0, .18); font-size: 18px; }
.gal-ico:hover { color: var(--orange); }
.gal-ico.is-on { color: var(--orange); }
.gal-ico.is-on .i { fill: var(--orange); }
.gal-next { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; border-radius: 50%; background: #fff; color: #222; display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 6px rgba(0, 0, 0, .22); z-index: 2; }
.gal-seg { display: flex; width: fit-content; margin: 16px auto 18px; padding: 3px; background: #f0f0f0; border-radius: 10px; }
.gal-seg button { border: 0; background: none; padding: 8px 20px; border-radius: 8px; font-weight: 600; color: #444; }
.gal-seg button.is-on { background: #fff; color: #222; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }

.sup-card { background: #f7f7f7; border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.sup-hd { display: flex; gap: 12px; align-items: center; }
.sup-hd img { border-radius: 10px; }
.sup-name { display: block; font-weight: 700; color: #222; text-decoration: underline; font-size: 15px; }
.sup-sub { display: inline-flex; align-items: center; gap: 6px; color: #555; font-size: 13px; }
.sup-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; background: #fff; border-radius: 10px; padding: 12px; }
.sup-stats strong { display: block; font-size: 15px; color: #222; }
.sup-stats span { font-size: 12.5px; color: #666; }
.sup-link { display: flex; align-items: center; gap: 6px; background: #fff; border-radius: 10px; padding: 11px 12px; color: var(--orange-d); font-weight: 700; font-size: 13.5px; }
.sup-link .i:last-child { margin-left: auto; color: #888; }

.pdp-mid { min-width: 0; }
.promo-strip { display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-radius: 12px; background: linear-gradient(90deg, #ffd9c4, #fff1e8); color: #222; margin-bottom: 16px; }
.promo-strip .i { color: var(--orange); font-size: 20px; }
.promo-strip span { flex: 1; }
.promo-strip strong { color: #d4380d; }
.pdp-mid h1 { font-size: 20px; line-height: 1.4; font-weight: 600; color: #222; }
.pdp-rate { margin: 8px 0 14px; color: #666; font-size: 14px; display: flex; align-items: center; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid #e8e8e8; }
.pdp-pricebox { padding-bottom: 16px; border-bottom: 1px solid #e8e8e8; }
.pdp-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.pdp-price strong { font-size: 30px; color: #222; font-weight: 700; letter-spacing: -.3px; }
.pdp-price del { color: #999; }
.pdp-moq { margin: 8px 0 0; color: #666; font-size: 14px; }
.tiers { display: flex; flex-wrap: wrap; gap: 8px; }
.tier { flex: 1 1 130px; padding: 12px 16px; background: #f5f5f5; border: 1.5px solid transparent; border-radius: 10px; display: flex; flex-direction: column; gap: 2px; }
.tier-q { color: #666; font-size: 13px; }
.tier strong { font-size: 24px; color: #222; }
.tier.is-on { background: #fff; border-color: #222; }

.pdp-opts { padding: 16px 0; border-bottom: 1px solid #e8e8e8; }
.opt-h { font-size: 16px; font-weight: 700; color: #222; margin-bottom: 12px; }
.opt-h small { font-weight: 400; color: #666; font-size: 14px; }
.vlist { display: grid; gap: 14px; }
.vrow { display: flex; align-items: center; gap: 14px; }
.vimg { width: 64px; height: 64px; padding: 0; border: 1.5px solid #e0e0e0; border-radius: 10px; overflow: hidden; background: #fff; flex: none; }
.vimg:hover { border-color: #222; }
.vimg img { width: 100%; height: 100%; object-fit: cover; }
.vname { flex: 1; min-width: 0; color: #222; line-height: 1.35; }
.vprice { color: #444; white-space: nowrap; font-size: 15px; }
.vrow.has-qty .vname { font-weight: 600; }
.vrow-single { justify-content: space-between; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff; flex: none; }
.qty button { width: 32px; height: 34px; border: 0; background: none; color: var(--ink); display: flex; align-items: center; justify-content: center; }
.qty button:hover { background: #f5f5f5; color: var(--orange); }
.qty input { width: 52px; border: 0; text-align: center; padding: 6px 0; -moz-appearance: textfield; font-weight: 600; background: none; color: var(--ink); }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty input:focus { outline: none; }
.pdp .qty { border: 0; background: none; border-radius: 0; gap: 6px; overflow: visible; }
.pdp .qty button { width: 30px; height: 30px; border: 1px solid #c9c9c9; border-radius: 50%; color: #222; background: #fff; }
.pdp .qty button:hover { border-color: #222; background: #fff; color: #222; }
.pdp .qty input { width: 46px; font-size: 15px; font-weight: 500; }
.pdp-keys { padding: 16px 0; border-bottom: 1px solid #e8e8e8; }
.keys { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; background: #f7f7f7; border-radius: 12px; padding: 6px 0; }
.keys div { padding: 12px 16px; border-left: 1px solid #e3e3e3; }
.keys div:nth-child(3n+1) { border-left: 0; }
.keys dt { color: #666; font-size: 13.5px; }
.keys dd { margin: 2px 0 0; font-weight: 700; color: #222; font-size: 15px; overflow-wrap: anywhere; }
.pdp-brief { margin-top: 16px; color: #555; font-size: 14px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-line; }

.pdp-buy { position: sticky; top: 118px; }
.buy-card { background: #fff; border-radius: 16px; box-shadow: 0 2px 18px rgba(0, 0, 0, .09); overflow: hidden; padding-bottom: 18px; display: flex; flex-direction: column; gap: 10px; max-height: calc(100vh - 134px); }
.buy-card > .buy-tabs { flex: none; }
.buy-card > .buy-order { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 0; padding: 0; }
.buy-scroll { flex: 1 1 auto; min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; display: flex; flex-direction: column; gap: 10px; padding-bottom: 4px; }
.buy-scroll > * { flex: none; }
.buy-foot { flex: none; display: flex; flex-direction: column; gap: 10px; padding-top: 10px; }
.vlist-buy { gap: 8px; margin: 0; padding: 2px 0; }
.vlist-buy .vrow { gap: 10px; padding: 6px; border-radius: 10px; border: 1px solid transparent; transition: background .2s, border-color .2s; }
.vlist-buy .vrow.has-qty { background: #fff7f1; border-color: #ffd9bf; }
.vlist-buy .vrow.is-flash { background: #ffeadb; }
.vlist-buy .vimg { width: 44px; height: 44px; border-radius: 8px; }
.vinfo { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.vinfo .vname { font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vinfo .vprice { font-size: 13px; color: #666; }
.vlist-buy .vrow.has-qty .vprice { color: var(--orange-d); font-weight: 600; }
.vlist-buy .qty { gap: 4px; }
.vlist-buy .qty button { width: 26px; height: 26px; }
.vlist-buy .qty input { width: 40px; font-size: 14px; }
.vsub { font-size: 12.5px; white-space: nowrap; font-weight: 700; color: var(--orange-d); }
.buy-hint { margin: 0; font-size: 13px; color: #777; text-align: center; }
.buy-hint[hidden] { display: none; }
.buy-card .btn:disabled { opacity: .45; cursor: not-allowed; }
.t-m { display: none; }
.vtiers { display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: 12px; color: #777; margin-top: 2px; }
.vt b { font-weight: 600; }
.vt.is-on { color: var(--orange-d); font-weight: 700; }
.vact { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 10px; }
.vclear { border: 0; background: none; padding: 2px 0; font-size: 12.5px; color: #888; text-decoration: underline; }
.vclear:hover { color: var(--err); }
.bsec-clear { font-size: 13px; margin-right: 4px; }
.bsec-clear[hidden], .vclear[hidden], .vsub[hidden], .bsec-sub[hidden] { display: none; }
.tier-note { margin: 0; font-size: 12.5px; color: #777; }
.bsec-sub { color: #888; font-size: 12.5px; }
.bsec-hd h3 small { font-weight: 400; color: #666; font-size: 13.5px; }
.buy-order .vrow-single { margin: 4px 0; }
.promo-sm { margin-bottom: 0; padding: 8px 12px; font-size: 13px; }
.sw-lg { width: 56px; height: 56px; border-radius: 10px; border-color: #e3e3e3; }
.opt-hint { margin: 10px 0 0; color: #888; font-size: 13px; }
.buy-card > * { margin-left: 18px; margin-right: 18px; }
.bsec-hd h3 { font-size: 17px; font-weight: 700; color: #222; }
.buy-tabs { display: grid; grid-template-columns: 1fr 1fr; margin: 0 -18px; }
.buy-tabs button { border: 0; background: #f5f5f5; padding: 14px 10px; font-size: 17px; color: #222; border-top: 3px solid transparent; }
.buy-tabs button.is-on { background: #fff; font-weight: 700; border-top-color: var(--orange); }
.buy-pane { display: flex; flex-direction: column; gap: 10px; padding-top: 2px; }
.tgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; padding-top: 6px; }
.tgrid-one { grid-template-columns: 1fr; }
.tg strong { display: block; font-size: 24px; line-height: 1.2; color: #222; letter-spacing: -.3px; }
.tg span { color: #666; font-size: 14px; }
.tg.is-on strong { color: var(--orange-d); }
.buy-min { display: flex; gap: 10px; align-items: center; background: #f7f7f7; border-radius: 10px; padding: 12px 14px; font-size: 14px; }
.buy-min .i { font-size: 20px; }
.bsec { border-top: 1px solid #e8e8e8; padding-top: 10px; }
.bsec-hd { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.pill { border: 1.5px solid #222; background: #fff; color: #222; border-radius: 999px; padding: 6px 16px; font-weight: 600; font-size: 14px; }
.pill:hover { background: #f5f5f5; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.sw { width: 44px; height: 44px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: #f2f2f2; display: flex; align-items: center; justify-content: center; font-weight: 700; color: #444; }
.sw img { width: 100%; height: 100%; object-fit: cover; }
.sw:hover { border-color: #999; }
.sw.is-on { border-color: #222; }
.sw-more { font-size: 13px; }
.buy-quote { margin: 0; color: #555; }
.buy-card .btn-block { width: auto; }
.buy-sum { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; padding: 10px 12px; background: #f7f7f7; border-radius: 12px; }
.buy-sum div { display: flex; flex-direction: column; gap: 2px; }
.buy-sum span { color: #666; font-size: 12.5px; }
.buy-sum strong { font-size: 15px; color: #222; }
.buy-total { grid-column: 1 / -1; flex-direction: row !important; justify-content: space-between; align-items: baseline; border-top: 1px dashed #d8d8d8; padding-top: 6px; }
.buy-total strong { font-size: 22px; color: #222; }
.buy-err { color: var(--err); margin-top: -4px; margin-bottom: 0; font-weight: 500; font-size: 13.5px; }
.buy-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.buy-two .btn { padding: 12px 8px; font-size: 14px; }
.btn-dark-outline { background: #fff; color: #222; border-color: #222; }
.btn-dark-outline:hover { background: #f5f5f5; color: #222; }
.buy-hot { text-align: center; font-size: 13.5px; color: #555; display: flex; justify-content: center; gap: 6px; align-items: center; }
.buy-hot strong { color: var(--blue); }
.pdp-policy { padding: 16px 0; border-bottom: 1px solid #e8e8e8; }
.policy { display: grid; gap: 12px; }
.policy li { display: flex; gap: 10px; align-items: flex-start; }
.policy .i { color: #2e7d32; font-size: 20px; margin-top: 1px; }
.policy strong { display: block; color: #222; font-size: 14px; }
.policy span { color: #666; font-size: 13px; line-height: 1.4; }

.pdp-body { margin-top: 34px; }
.pdp-tabs { position: sticky; top: 114px; z-index: 20; display: flex; gap: 32px; background: #fff; border-bottom: 1px solid #e8e8e8; overflow-x: auto; scrollbar-width: none; }
.pdp-tabs a { padding: 16px 2px; color: #444; font-size: 16px; white-space: nowrap; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.pdp-tabs a.is-on { color: #222; font-weight: 700; border-bottom-color: #222; }
.pdp-tabs a:hover { color: #222; }
.pdp-sec { padding: 26px 0 8px; scroll-margin-top: 175px; }
.pdp-sec > h2 { font-size: 20px; font-weight: 700; margin-bottom: 16px; color: #222; }
.attr-table { margin: 0 0 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid #ececec; border-bottom: 0; border-right: 0; }
.attr-table div { display: grid; grid-template-columns: 38% 1fr; border-bottom: 1px solid #ececec; }
.attr-table dt { background: #f7f7f7; padding: 14px 16px; color: #555; border-right: 1px solid #ececec; }
.attr-table dd { margin: 0; padding: 14px 16px; font-weight: 700; color: #222; border-right: 1px solid #ececec; overflow-wrap: anywhere; }
.sup-full { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; background: #f7f7f7; border-radius: 14px; padding: 20px; }
.sup-full ul { display: grid; gap: 8px; }
.sup-full li { display: flex; gap: 8px; align-items: center; }
.sup-full li .i { color: #2e7d32; }
.rich { overflow-wrap: anywhere; }
.rich img { max-width: 100%; height: auto; margin: 0 auto; }
.rich table { border-collapse: collapse; max-width: 100%; display: block; overflow-x: auto; }
.rich td, .rich th { border: 1px solid var(--line); padding: 6px 10px; }
.rv-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; align-items: start; }
.rv-list { display: grid; gap: 16px; }
.rv-list li { display: flex; gap: 12px; }
.rv-list small { color: var(--muted); margin-left: 8px; }
.rv-list p { margin: 4px 0 0; }
.rv-av { width: 38px; height: 38px; border-radius: 50%; background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; flex: none; }
.photos-note { margin: -6px 0 14px; }
.pdp-sec > h2 small { font-weight: 400; color: #777; font-size: 16px; }
.photos { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.photo { position: relative; padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: #f2f2f2; aspect-ratio: 1; cursor: zoom-in; }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.photo:hover img { transform: scale(1.05); }
.photo-more span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .55); color: #fff; font-size: 26px; font-weight: 700; }

/* Trình xem ảnh dạng slide */
.lb { position: fixed; inset: 0; z-index: 400; background: rgba(10, 12, 18, .94); display: grid; grid-template-columns: 72px minmax(0, 1fr) 72px; grid-template-rows: minmax(0, 1fr) auto; }
.lb-stage { grid-column: 2; grid-row: 1; position: relative; display: flex; align-items: center; justify-content: center; padding: 56px 0 12px; touch-action: pan-y; cursor: zoom-out; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; background: #fff; transition: opacity .2s; cursor: default; user-select: none; }
.lb-stage img.is-loading { opacity: .25; }
.lb-spin { position: absolute; width: 36px; height: 36px; border: 3px solid rgba(255, 255, 255, .25); border-top-color: #fff; border-radius: 50%; animation: lbspin .8s linear infinite; }
@keyframes lbspin { to { transform: rotate(360deg); } }
.lb-nav { grid-row: 1; align-self: center; justify-self: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; font-size: 24px; display: flex; align-items: center; justify-content: center; }
.lb-nav:hover { background: rgba(255, 255, 255, .28); }
.lb-prev { grid-column: 1; } .lb-next { grid-column: 3; }
.lb-close { position: absolute; top: 14px; right: 16px; z-index: 2; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; font-size: 22px; display: flex; align-items: center; justify-content: center; }
.lb-close:hover { background: rgba(255, 255, 255, .28); }
.lb-count { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); color: #fff; font-weight: 600; z-index: 2; }
.lb-thumbs { grid-column: 1 / -1; grid-row: 2; display: flex; gap: 8px; justify-content: center; padding: 10px 16px 16px; overflow-x: auto; scrollbar-width: thin; }
.lb-thumbs button { flex: none; width: 64px; height: 64px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: #222; opacity: .6; }
.lb-thumbs button.is-on { border-color: #fff; opacity: 1; }
.lb-thumbs button:hover { opacity: 1; }
.lb-thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Form / thẻ ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.form { display: flex; flex-direction: column; gap: 14px; }
.form h2, .form h3 { font-size: 17px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 500; color: var(--ink); }
.form input, .form textarea, .form select { padding: 10px 12px; border: 1px solid #cfd6e4; border-radius: 8px; background: #fff; font-weight: 400; width: 100%; }
.form input:focus, .form textarea:focus, .form select:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(14, 86, 218, .15); }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label { font-weight: 500; color: var(--ink); }
.field-hint { margin: -4px 0 0; font-size: 12.5px; color: #8a8f99; }
.addr-preview { display: flex; align-items: flex-start; gap: 8px; margin: 0; padding: 10px 12px; background: #f1f6ff; border: 1px solid #d6e4ff; border-radius: 8px; font-size: 13.5px; color: #234; line-height: 1.45; }
.addr-preview[hidden] { display: none; }
.addr-preview .i { color: var(--blue); flex: none; margin-top: 2px; }
/* Ô chọn có tìm kiếm */
.combo { position: relative; }
.form .combo-native, .combo-native { position: absolute; left: 0; bottom: 0; opacity: 0; pointer-events: none; width: 1px; height: 1px; padding: 0; border: 0; overflow: hidden; }
.form .combo-input { padding-right: 36px; text-overflow: ellipsis; cursor: pointer; }
.combo-input:disabled { background: #f4f5f7; color: #9aa0ab; cursor: not-allowed; }
.combo-arrow { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: #8a8f99; pointer-events: none; display: flex; font-size: 16px; }
.combo.is-disabled .combo-arrow { opacity: .4; }
.combo-input[aria-expanded="true"] + .combo-arrow { transform: translateY(-50%) rotate(180deg); }
.combo-list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 60; margin: 0; padding: 4px; list-style: none; max-height: 280px; overflow-y: auto; overscroll-behavior: contain; background: #fff; border: 1px solid #cfd6e4; border-radius: 10px; box-shadow: 0 10px 28px rgba(15, 25, 50, .16); }
.combo-list li { padding: 10px 12px; border-radius: 7px; cursor: pointer; line-height: 1.3; }
.combo-list li.is-active { background: #eef3ff; }
.combo-list li[aria-selected="true"] { font-weight: 600; color: var(--blue); }
.combo-list li.combo-empty { color: #8a8f99; cursor: default; text-align: center; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.rfq-form .form-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kv { display: grid; gap: 8px; margin: 12px 0; }
.kv div { display: grid; grid-template-columns: 120px 1fr; gap: 10px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }

/* ---------- Giỏ hàng / xác nhận đơn (kiểu Alibaba) ---------- */
body.is-cart { background: #f5f5f5; }
body.bg-white, body.is-pdp { background: #fff; }
.cartpg { padding-top: 22px; padding-bottom: 12px; }
.cart-h { font-size: 28px; font-weight: 700; color: #222; margin-bottom: 14px; }
.cart-h small { font-size: 18px; font-weight: 400; color: #666; }
.cart-promo { max-width: none; margin-bottom: 16px; }
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.cart-list { min-width: 0; }
.cart-bar { display: flex; justify-content: space-between; align-items: center; background: #fff; border-radius: 12px; padding: 14px 18px; margin-bottom: 10px; }
.chk { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; color: #222; }
.chk input { width: 18px; height: 18px; accent-color: #222; cursor: pointer; }
.linkbtn.danger { color: #555; }
.linkbtn.danger:hover { color: var(--err); }
.cseller { background: #fff; border-radius: 12px; padding: 0 18px 6px; }
.cseller-hd { display: flex; align-items: center; gap: 10px; padding: 16px 0 12px; border-bottom: 1px solid #eee; }
.cseller-hd strong { font-size: 16px; color: #222; }
.cseller-hd a { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: #444; border: 1px solid #ccc; border-radius: 999px; padding: 4px 14px; font-size: 13px; }
.cseller-hd a:hover { border-color: #222; color: #222; }
.cp { display: grid; grid-template-columns: 22px 100px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-bottom: 1px solid #eee; }
.cp:last-child { border-bottom: 0; }
.cp-chk { align-self: start; padding-top: 38px; }
.cp-img { display: block; width: 100px; height: 100px; border-radius: 10px; overflow: hidden; background: #f2f2f2; }
.cp-img img { width: 100%; height: 100%; object-fit: cover; }
.cp-main { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.cp-title { color: #222; font-weight: 600; font-size: 15px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cp-title:hover { color: var(--orange); }
.cp-code { font-size: 13px; }
.cp-hint { margin: 0; display: flex; gap: 6px; align-items: center; color: #d4380d; background: #fff3ea; border-radius: 8px; padding: 6px 10px; font-size: 13px; width: fit-content; }
.cl-list { display: grid; margin-top: 6px; }
.cl { display: grid; grid-template-columns: minmax(0, 1fr) 120px auto 120px 32px; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px dashed #e6e6e6; }
.cl:first-child { border-top: 0; }
.cl-name { color: #222; line-height: 1.35; }
.cl-unit { color: #555; text-align: right; }
.cl-total { text-align: right; color: #222; font-size: 16px; }
.cl-del { background: none; border: 0; color: #999; padding: 6px; border-radius: 50%; display: flex; justify-content: center; }
.cl-del:hover { color: var(--err); background: #fef3f2; }
.cl .qty { border: 0; background: none; gap: 6px; overflow: visible; }
.cl .qty button { width: 28px; height: 28px; border: 1px solid #c9c9c9; border-radius: 50%; background: #fff; }
.cl .qty button:hover { border-color: #222; color: #222; background: #fff; }
.cl .qty input { width: 44px; font-weight: 500; }
.cp-sub { margin: 4px 0 0; text-align: right; color: #555; }
.cp-sub strong { color: #222; font-size: 16px; margin-left: 4px; }
.cart-foot { margin: 14px 4px 0; }

.cart-sum { position: sticky; top: 118px; display: flex; flex-direction: column; gap: 14px; padding: 20px; border: 0; border-radius: 16px; box-shadow: 0 2px 18px rgba(0, 0, 0, .08); }
.cart-sum h2 { font-size: 18px; }
.cart-sum dl { margin: 0; display: grid; gap: 12px; }
.cart-sum dl div { display: flex; justify-content: space-between; gap: 10px; }
.cart-sum dt { color: #555; }
.cart-sum dd { margin: 0; font-weight: 600; text-align: right; color: #222; }
.sum-total { padding-top: 12px; border-top: 1px dashed #ddd; font-size: 16px; }
.sum-total dt { color: #222; font-weight: 700; }
.sum-total dd { font-size: 24px; }
.btn.is-disabled { opacity: .45; pointer-events: none; }
.cart-policy { display: grid; gap: 10px; }
.cart-policy li { display: flex; gap: 10px; align-items: center; color: #222; }
.cart-policy .i { color: #2e7d32; font-size: 20px; }
.cart-policy.small { gap: 8px; font-size: 13px; color: #555; }
.cart-policy.small li { color: #555; }
.back { text-align: center; font-size: 13px; }
.co-terms { margin: -4px 0 0; font-size: 12.5px; color: #777; line-height: 1.5; }

.cart-empty { display: flex; gap: 40px; align-items: center; justify-content: center; padding: 30px 0 26px; }
.cart-ill { width: 190px; flex: none; }
.cart-empty-txt h2 { font-size: 22px; margin-bottom: 8px; }
.cart-empty-txt .cart-policy { margin: 12px 0 20px; }

.steps { display: flex; gap: 8px 22px; margin: 0 0 16px; color: #777; counter-reset: s; flex-wrap: wrap; }
.steps li { counter-increment: s; display: flex; align-items: center; gap: 8px; }
.steps li::before { content: counter(s); width: 24px; height: 24px; border-radius: 50%; background: #d4d4d4; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.steps .on { color: #222; font-weight: 700; }
.steps .on::before { background: var(--orange); }
.steps .done::before { background: #222; }

.co-main { display: grid; gap: 14px; min-width: 0; }
.co-sec { border: 0; border-radius: 12px; padding: 20px 22px; }
.co-sec > h2 { display: flex; align-items: center; gap: 10px; font-size: 18px; margin-bottom: 16px; }
.co-n { width: 26px; height: 26px; border-radius: 50%; background: #222; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; }
.co-edit { margin-left: auto; font-size: 14px; font-weight: 400; color: var(--blue); }
.co-item { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 14px; padding: 14px 0; border-bottom: 1px solid #eee; }
.co-item:last-child { border-bottom: 0; }
.co-item img { width: 70px; height: 70px; border-radius: 8px; object-fit: cover; background: #f2f2f2; }
.co-item-main > a { color: #222; font-weight: 600; display: block; margin-bottom: 6px; }
.co-item-main ul { display: grid; gap: 6px; }
.co-item-main li { display: grid; grid-template-columns: minmax(0, 1fr) auto 120px; gap: 12px; font-size: 14px; align-items: baseline; }
.co-item-main li strong { text-align: right; color: #222; }
.pay { display: grid; gap: 10px; }
.pay-opt { flex-direction: row !important; align-items: center; gap: 12px; border: 1.5px solid #e0e0e0; border-radius: 12px; padding: 14px 16px; cursor: pointer; display: flex; }
.pay-opt:has(input:checked) { border-color: #222; background: #fafafa; }
.pay-opt input { width: auto !important; accent-color: #222; }
.pay-opt > span { display: flex; gap: 10px; align-items: center; }
.bank-info { background: #f7f7f7; border-radius: 12px; padding: 14px 16px; display: grid; gap: 8px; font-size: 14px; }
.bank-info p { margin: 0; }
.note-l { display: flex; flex-direction: column; gap: 6px; margin-top: 16px; font-weight: 500; }
.note-l textarea { padding: 10px 12px; border: 1px solid #cfd6e4; border-radius: 8px; font-weight: 400; width: 100%; }
.note-l textarea:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(14, 86, 218, .15); }

.done-layout { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 20px; align-items: start; }
.done-card { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 40px 24px; border: 0; border-radius: 12px; }
.done-ic { width: 64px; height: 64px; border-radius: 50%; background: #ecfdf3; color: var(--ok); display: flex; align-items: center; justify-content: center; font-size: 32px; }
.done-card .code { font-size: 22px; color: #222; }
.done-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.done-sum { border: 0; border-radius: 12px; display: grid; gap: 14px; }
.done-sum h2 { font-size: 18px; }
.order-lines table { width: 100%; border-collapse: collapse; font-size: 13px; }
.order-lines th, .order-lines td { padding: 8px 6px; border-bottom: 1px solid #eee; text-align: left; }

/* ---------- Bảng / bài viết / liên hệ ---------- */
.tbl-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.tbl { width: 100%; border-collapse: collapse; }
.tbl th, .tbl td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.tbl th { background: #f8faff; color: var(--muted); font-weight: 600; width: 140px; }
.cmp td { min-width: 200px; }
.cmp-t { display: block; margin: 8px 0 4px; color: var(--ink); font-weight: 500; }
.cmp-b { color: var(--muted); font-size: 13px; }
/* ---------- Trung tâm hỗ trợ / liên hệ (kiểu Help Center của Alibaba) ---------- */
.hc-hero { background: linear-gradient(120deg, #fff1e6 0%, #fdebf2 45%, #e9f0ff 100%); padding: 46px 0 52px; text-align: center; }
.hc-hero h1 { font-size: 38px; font-weight: 700; color: #222; }
.hc-hero p { margin: 8px 0 22px; font-size: 18px; color: #555; }
.hc-search { position: relative; display: flex; max-width: 720px; margin: 0 auto; background: #fff; border: 2px solid var(--orange); border-radius: 999px; padding: 4px; box-shadow: 0 8px 28px rgba(251, 109, 25, .14); }
.hc-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; padding: 12px 20px; font-size: 16px; }
.hc-search button { width: 52px; border: 0; border-radius: 999px; background: linear-gradient(90deg, #ff8a1f, #ff5a1a); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.hc { padding-top: 22px; display: grid; gap: 16px; }
.hc-card { background: #fff; border-radius: 12px; padding: 22px 26px; }
.hc-card h2 { font-size: 20px; margin-bottom: 16px; }
.hc-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.hc-tile { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 18px 12px; border-radius: 12px; color: #222; transition: background .15s; }
.hc-tile:hover { background: #fff5ee; color: #222; }
.hc-ic { width: 64px; height: 64px; border-radius: 18px; background: #fff3ea; color: var(--orange); display: flex; align-items: center; justify-content: center; font-size: 34px; margin-bottom: 6px; }
.hc-tile strong { font-size: 16px; }
.hc-tile small { color: #888; font-size: 13.5px; }
.hc-faq { padding: 0; overflow: hidden; }
.hc-tabs { display: flex; background: #f5f5f5; overflow-x: auto; scrollbar-width: none; }
.hc-tabs button { flex: 1 1 0; min-width: max-content; padding: 18px 22px; border: 0; background: none; font-size: 16px; color: #444; border-right: 1px solid #e5e5e5; }
.hc-tabs button:last-child { border-right: 0; }
.hc-tabs button.is-on { background: #4a7df0; color: #fff; font-weight: 600; }
.hc-list { columns: 3; column-gap: 40px; padding: 26px 30px 30px; }
.hc-list li { break-inside: avoid; padding: 7px 0 7px 14px; position: relative; }
.hc-list li::before { content: ""; position: absolute; left: 0; top: 16px; width: 5px; height: 5px; border-radius: 50%; background: var(--orange); }
.hc-list a { color: #222; line-height: 1.4; }
.hc-list a:hover { color: var(--orange); }
.hc-none { margin: 0; padding: 26px 30px; color: #666; }
.hc-contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.hc-ct { display: flex; gap: 14px; align-items: center; background: #fff; border-radius: 12px; padding: 20px 22px; color: #222; transition: box-shadow .15s; }
.hc-ct:hover { box-shadow: 0 6px 22px rgba(0, 0, 0, .1); color: #222; }
.hc-ct > .i { font-size: 34px; color: var(--orange); flex: none; }
.hc-ct strong { display: block; font-size: 16px; margin-bottom: 2px; }
.hc-ct span { color: #666; font-size: 14px; line-height: 1.4; }
.hc-formwrap { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 30px; scroll-margin-top: 130px; }
.hc-formhd h2 { margin-bottom: 8px; }
.seg2 { display: flex; width: fit-content; padding: 3px; background: #f0f0f0; border-radius: 10px; }
.seg2 label { flex-direction: row; }
.seg2 input { position: absolute; opacity: 0; pointer-events: none; width: 0 !important; }
.seg2 span { display: block; padding: 8px 20px; border-radius: 8px; font-weight: 600; color: #444; cursor: pointer; }
.seg2 input:checked + span { background: #fff; color: #222; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.seg2 input:focus-visible + span { outline: 2px solid var(--blue); }

/* ---------- Tin tức & bài viết ---------- */
.newspg { padding-bottom: 8px; }
.news-head { margin: 8px 0 20px; }
.news-head h1 { font-size: 30px; }
.news-tag { display: inline-block; width: fit-content; background: #fff3ea; color: var(--orange-d); font-size: 12.5px; font-weight: 700; padding: 2px 10px; border-radius: 999px; }
.news-feat { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 0; background: #fff; border-radius: 16px; overflow: hidden; margin-bottom: 18px; color: #222; transition: box-shadow .15s; }
.news-feat:hover { box-shadow: 0 8px 28px rgba(0, 0, 0, .12); color: #222; }
.news-feat .news-img { aspect-ratio: 16 / 10; }
.news-feat-b { display: flex; flex-direction: column; gap: 12px; justify-content: center; padding: 28px 32px; }
.news-feat-b strong { font-size: 26px; line-height: 1.3; }
.news-feat-b small { display: inline-flex; align-items: center; gap: 6px; color: #888; }
.news-card .news-tag { margin: 12px 14px 0; }
.news-card strong { padding-top: 8px; }
.news-card em { padding: 0 14px 14px; font-style: normal; color: #999; font-size: 13px; margin-top: auto; }
.art { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; margin-top: 8px; }
.art-main { padding: 30px 36px; }
.art-main h1, .help-main h1 { font-size: 30px; line-height: 1.3; margin: 10px 0 8px; }
.art-meta { display: flex; align-items: center; gap: 8px; color: #888; font-size: 14px; margin: 0 0 20px; }
.art-side { position: sticky; top: 130px; }
.art-side h2 { font-size: 18px; margin-bottom: 12px; }
.art-latest { display: grid; gap: 14px; }
.art-latest a { display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 12px; color: #222; align-items: start; }
.art-latest img { width: 60px; height: 60px; border-radius: 8px; object-fit: cover; background: #f2f2f2; }
.art-latest small { display: block; color: #999; margin-top: 2px; }
.helppg { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 18px; align-items: start; margin-top: 8px; }
.help-nav { position: sticky; top: 130px; padding: 18px 12px; }
.help-nav h2 { font-size: 18px; padding: 0 12px 10px; margin: 0; }
.help-cat { display: block; padding: 10px 12px; border-radius: 8px; color: #222; font-weight: 600; }
.help-cat:hover { background: #f5f5f5; color: #222; }
.help-grp.is-open > .help-cat { color: var(--orange-d); }
.help-grp ul { margin: 2px 0 8px 12px; border-left: 2px solid #eee; }
.help-grp ul a { display: block; padding: 7px 12px; color: #444; font-size: 14px; line-height: 1.4; }
.help-grp ul a:hover { color: var(--orange); }
.help-grp ul a.is-on { color: var(--orange-d); font-weight: 700; }
.help-contact { margin-top: 8px; border-top: 1px solid #eee; border-radius: 0; padding-top: 14px; color: var(--blue); }
.help-main { min-width: 0; padding: 28px 34px; }
.help-main h1 { margin-top: 0; }
.help-rows { display: grid; }
.help-rows a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 4px; border-bottom: 1px solid #eee; color: #222; font-size: 16px; }
.help-rows li:last-child a { border-bottom: 0; }
.help-rows a:hover { color: var(--orange); }
.help-rows .i { color: #aaa; }
.help-foot { margin-top: 26px; padding-top: 18px; border-top: 1px solid #eee; color: #555; }

/* ---------- Footer (nền sáng như Alibaba) ---------- */
.assure { margin-top: 40px; background: #fff; }
.assure-in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-top: 20px; padding-bottom: 20px; }
.assure-in > div { display: flex; gap: 12px; align-items: center; }
.assure-in .i { font-size: 32px; color: var(--blue); }
.assure-in strong { display: block; color: var(--ink); }
.assure-in span { color: var(--muted); font-size: 13px; }
.ft { background: #fff; color: #444; border-top: 1px solid #e8e8e8; }
.ft a { color: #444; }
.ft a:hover { color: var(--orange); }
.ft-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 32px; padding-top: 36px; padding-bottom: 30px; }
.ft-brand img { width: 240px; height: auto; }
.ft-brand p { margin: 12px 0 0; font-size: 13px; line-height: 1.6; }
.ft-line { display: flex; gap: 8px; align-items: center; }
.ft-col h3 { color: #222; font-size: 16px; margin-bottom: 12px; }
.ft-col li { margin-bottom: 9px; font-size: 14px; }
.ft-bottom { border-top: 1px solid #e8e8e8; font-size: 13px; color: #666; }
.ft-bottom-in { display: flex; justify-content: space-between; gap: 12px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.ft-pay { display: inline-flex; gap: 6px; align-items: center; }

/* Thanh điều hướng đáy (di động) */
.mnav { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1360px) {
    .pgrid, .pgrid-6x { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .lst-main .pgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .hero { grid-template-columns: 280px 210px 210px minmax(0, 1fr); }
}
@media (max-width: 1180px) {
    .container { padding: 0 24px; }
    .hero { grid-template-columns: 280px minmax(0, 1fr); }
    .hero .mcard { display: none; }
    .pgrid, .pgrid-6x { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .lst-main .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .gband { grid-template-columns: 1fr; }
    .hd-ship, .hd-lang { display: none; }
    .pdp-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; }
    .pdp-top { grid-template-columns: minmax(0, 1fr); }
    .tg strong { font-size: 20px; }
    .attr-table { grid-template-columns: minmax(0, 1fr); }
    .rfq-form .form-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ft-grid { grid-template-columns: repeat(2, 1fr); }
    .welcome h2 { font-size: 20px; }
}
@media (max-width: 900px) {
    .hd-nav { display: none; }
    .hd-burger { display: block; }
    .hd-main { flex-wrap: wrap; height: auto; gap: 8px 10px; padding-top: 8px; padding-bottom: 10px; }
    .hd-logo { order: 1; }
    .hd-logo img { height: 36px; }
    .hd-actions { order: 2; gap: 8px; }
    .hd-cta { display: none; }
    .hd-search { order: 3; flex-basis: 100%; margin-left: 0; }
    .hd-search button span { display: none; }
    .hd-search button { padding: 9px 16px; }
    .hd { position: static; }
    .is-home:not(.scrolled) .hd-search { display: flex; }
    .hs { padding-top: 6px; padding-bottom: 18px; }
    .hs-box { display: none; }
    .hs-tabs { gap: 22px; margin-bottom: 0; }
    .hs-tabs a { font-size: 20px; }
    .welcome { flex-direction: column; align-items: flex-start; padding-top: 4px; }
    .welcome h2 { font-size: 18px; }
    .welcome-links { overflow-x: auto; max-width: 100%; }
    .welcome-links a { padding: 0 12px; font-size: 14px; white-space: nowrap; }
    .hero { grid-template-columns: 1fr; }
    .hero-cats { display: none; }
    .hero-slider { min-height: 0; aspect-ratio: 16 / 8; }
    .lst { grid-template-columns: 1fr; }
    .lst-side { position: static; max-height: none; padding: 12px 14px; }
    .filter-box > summary { display: flex; }
    .filter-box:not([open]) > .fgroup { display: none; }
    .pdp-layout { grid-template-columns: minmax(0, 1fr); }
    .pdp-main { display: contents; }
    .pdp-top { order: 1; grid-template-columns: minmax(0, 1fr); min-width: 0; }
    .pdp-body, .pdp-buy { min-width: 0; }
    .pdp-body { order: 3; margin-top: 10px; }
    .photos { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .lb { grid-template-columns: 0 minmax(0, 1fr) 0; }
    .lb-nav { position: absolute; top: 50%; z-index: 2; width: 40px; height: 40px; transform: translateY(-50%); background: rgba(0, 0, 0, .45); }
    .lb-prev { left: 8px; } .lb-next { right: 8px; }
    .lb-stage { padding: 56px 0 8px; }
    .lb-thumbs button { width: 52px; height: 52px; }
    .pdp-left { display: contents; }
    .pdp-gallery { grid-template-columns: minmax(0, 1fr); order: 1; }
    .gal-seg { order: 2; margin: 0 auto; }
    .pdp-mid { order: 3; }
    .sup-card { order: 4; }
    .gal-thumbs { flex-direction: row; order: 2; max-height: none; overflow-x: auto; }
    .keys { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .keys div:nth-child(3n+1) { border-left: 1px solid #e3e3e3; }
    .keys div:nth-child(2n+1) { border-left: 0; }
    .pdp-tabs { top: 0; gap: 20px; }
    .pdp-sec { scroll-margin-top: 60px; }
    .rv-grid, .art, .cart-layout, .done-layout, .helppg, .hc-formwrap, .news-feat { grid-template-columns: minmax(0, 1fr); }
    .art-side, .help-nav { position: static; }
    .help-nav { order: 2; }
    .help-main { order: 1; }
    .hc-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hc-list { columns: 2; padding: 20px; }
    .hc-hero { padding: 30px 0 34px; }
    .hc-hero h1 { font-size: 28px; }
    .art-main, .help-main { padding: 20px; }
    .news-feat-b { padding: 20px; }
    .news-feat-b strong { font-size: 21px; }
    .cart-sum { position: static; }
    .cart-empty { flex-direction: column; text-align: center; gap: 12px; }
    .cart-empty .cart-policy li { justify-content: center; }
    .showcase { grid-template-columns: 1fr; }
    .showcase-ban { min-height: 140px; }
    .pgrid-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .news-grid, .news-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .assure-in { grid-template-columns: repeat(2, 1fr); }
    .rfq-in { flex-direction: column; align-items: flex-start; }
    .gband-items { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .gband-items .gitem:nth-child(n+4) { display: none; }
    .pc-wish { opacity: 1; }
    body { padding-bottom: 62px; }
    .mnav { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 150; background: #fff; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
    .mnav a, .mnav button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0; background: none; border: 0; color: var(--muted); font-size: 11.5px; }
    .mnav .i { font-size: 22px; }
    .mnav .is-on { color: var(--orange); }
    .mnav .badge { top: 2px; right: calc(50% - 22px); }
    .toast { bottom: 90px; }
}
@media (max-width: 640px) {
    .container { padding: 0 12px; }
    .pgrid, .pgrid-6, .pgrid-6x, .lst-main .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .pc { padding: 8px 8px 10px; }
    .pc-price strong { font-size: 17px; }
    .pc-seller span { display: none; }
    .pgrid-list-list .pc-img { width: 120px; }
    .block-hd h2 { font-size: 18px; }
    .sec-title { margin-top: 26px; }
    .form-row, .rfq-form .form-row { grid-template-columns: 1fr; }
    .cp { grid-template-columns: 22px 72px minmax(0, 1fr); gap: 10px; }
    .cp-img { width: 72px; height: 72px; }
    .cp-chk { padding-top: 26px; }
    .cl { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name del" "unit unit" "qty total"; gap: 4px 10px; align-items: center; }
    .cl-name { grid-area: name; }
    .cl .qty { grid-area: qty; justify-self: start; }
    .cl-unit { grid-area: unit; text-align: left; font-size: 13px; }
    .cl-unit::after { content: " / sp"; }
    .cl-total { grid-area: total; }
    .cl-del { grid-area: del; }
    .cart-h { font-size: 22px; }
    .co-sec { padding: 16px; }
    .co-item-main li { grid-template-columns: minmax(0, 1fr) auto; }
    .co-item-main li strong { grid-column: 2; }
    .hc-list { columns: 1; }
    .hc-card { padding: 16px; }
    .hc-tabs button { padding: 14px 16px; }
    .ft-grid { grid-template-columns: 1fr; }
    .kv div { grid-template-columns: 1fr; gap: 2px; }
    .lst-tools { width: 100%; justify-content: space-between; }
    .hd-logo img { height: 32px; }
    .gband { padding: 18px; }
    .gband h2 { font-size: 24px; }
    .pdp-price strong { font-size: 24px; }
    .vimg { width: 52px; height: 52px; }
    .vrow { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media print { .hd, .ft, .mnav, .assure, .toast { display: none; } }

/* Header sheet, thanh đặt hàng đáy và nút "Chọn ngay": chỉ dùng trên mobile */
.buy-sheet-hd, .buy-bar, .opt-pick { display: none; }
.opt-hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.opt-hd .opt-h { margin: 0; }
html.buy-lock, html.buy-lock body { overflow: hidden; }
@media (max-width: 900px) {
    .pdp-buy { position: fixed; inset: 0; top: 0; z-index: 260; order: 0; visibility: hidden; pointer-events: none; transition: visibility 0s linear .3s; }
    .pdp-buy.is-open { visibility: visible; pointer-events: auto; transition-delay: 0s; }
    .buy-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .5); opacity: 0; transition: opacity .3s; }
    .is-open .buy-backdrop { opacity: 1; }
    .buy-card { position: absolute; left: 0; right: 0; bottom: 0; border-radius: 18px 18px 0 0; max-height: 88vh; max-height: 88dvh; transform: translateY(100%); transition: transform .3s cubic-bezier(.2, .8, .2, 1); padding-bottom: calc(12px + env(safe-area-inset-bottom)); gap: 0; box-shadow: 0 -6px 30px rgba(0, 0, 0, .2); }
    .is-open .buy-card { transform: none; }
    .buy-card > .buy-order { overflow: visible; }
    .buy-tabs { display: none; }
    .buy-sheet-hd { display: flex; align-items: center; gap: 12px; flex: none; padding: 14px 0 12px; border-bottom: 1px solid #eee; margin-bottom: 10px; }
    .buy-sheet-hd img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; background: #f2f2f2; flex: none; }
    .bsh-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
    .bsh-info strong { font-size: 20px; line-height: 1.2; color: var(--orange-d); }
    .bsh-info span { font-size: 13px; color: #666; }
    .bsh-x { width: 40px; height: 40px; border-radius: 50%; border: 0; background: #f3f3f3; color: #222; display: flex; align-items: center; justify-content: center; flex: none; align-self: flex-start; }
    .buy-order .tgrid { padding-top: 0; }
    .buy-card { max-height: 92vh; max-height: 92dvh; }
    .buy-scroll { overflow-x: hidden; }
    .buy-order .buy-min, .buy-order .promo-sm { display: none; }   /* đã có ở đầu sheet / thanh đáy */
    .vlist-buy { margin: 0; padding: 0; }
    .bsec-sub { display: none; }
    /* chân sheet gọn: Tổng + Tạm tính trên một dòng, hai nút cạnh nhau */
    .buy-order .tgrid-one { display: none; }               /* giá đã hiện ở đầu sheet */
    .t-d { display: none; } .t-m { display: inline; }
    .buy-foot .buy-hint { grid-column: 1 / -1; }
    /* theo mục đích mở: Thêm vào giỏ / Mua ngay chỉ hiện một nút chính */
    .buy-card [data-add-cart], .buy-card [data-buy-now] { grid-column: auto; }
    [data-mode="cart"] .buy-foot [data-buy-now], [data-mode="buy"] .buy-foot [data-add-cart] { display: none; }
    [data-mode="cart"] .buy-foot [data-add-cart] { grid-column: 1 / -1; background: var(--orange); border-color: var(--orange); color: #fff; }
    [data-mode="buy"] .buy-foot [data-buy-now] { grid-column: 1 / -1; }
    .buy-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding-top: 10px; border-top: 1px solid #eee; margin-top: 6px; }
    .buy-foot .buy-sum, .buy-foot .buy-err { grid-column: 1 / -1; }
    .buy-foot .buy-sum { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; }
    .buy-foot .buy-sum > div { flex-direction: row; align-items: baseline; gap: 6px; }
    .buy-foot .buy-sum > div:nth-child(2) { display: none; }
    .buy-foot .buy-total { border: 0; padding: 0; grid-column: auto; }
    .buy-foot .buy-two { display: contents; }
    .buy-foot .buy-two .btn { order: 1; }
    .buy-foot .buy-two a.btn { display: none; }
    .buy-foot [data-buy-now] { order: 2; }
    .buy-foot .btn { min-height: 46px; padding: 10px 6px; font-size: 14.5px; font-weight: 700; }
    /* hàng chọn loại: vùng chạm lớn, chữ nhập 16px để iOS không tự phóng to */
    .vlist-buy .vrow { padding: 8px 6px; gap: 10px; }
    .vlist-buy .vimg { width: 52px; height: 52px; }
    .vinfo .vname { font-size: 14.5px; }
    .vinfo .vprice { font-size: 13.5px; }
    .vlist-buy .qty { gap: 2px; }
    .vlist-buy .qty button { width: 38px; height: 38px; }
    .vlist-buy .qty input, .buy-order .vrow-single .qty input { width: 48px; height: 38px; font-size: 16px; }
    .buy-order .vrow-single .qty button { width: 38px; height: 38px; }
    /* cột thông tin: dải ảnh loại cuộn ngang + nút Chọn ngay */
    .opt-pick { display: inline-flex; }
    .opt-hint { display: none; }
    [data-swatches] { flex-wrap: nowrap; overflow-x: auto; margin: 0 -12px; padding: 2px 12px 4px; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
    [data-swatches]::-webkit-scrollbar { display: none; }
    [data-swatches] .sw { flex: none; width: 60px; height: 60px; scroll-snap-align: start; }
    /* thanh đặt hàng cố định ở đáy (thay thanh điều hướng nhanh trên trang này) */
    .buy-bar { display: flex; align-items: stretch; gap: 6px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 150; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -2px 14px rgba(0, 0, 0, .06); padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); }
    .bb-ico { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 46px; color: #444; font-size: 11px; }
    .bb-ico .i { font-size: 22px; }
    .bb-main { flex: 1; min-width: 0; }
    .bb-sum { margin: 0 0 6px; font-size: 12.5px; color: #555; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .bb-sum b { color: var(--orange-d); }
    .bb-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
    .bb-btns .btn { min-height: 44px; padding: 10px 6px; font-size: 14.5px; font-weight: 700; }
    body.has-buybar { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
    body.has-buybar .mnav { display: none; }
    body.has-buybar .toast { bottom: calc(96px + env(safe-area-inset-bottom)); }
}

/* Nút liên hệ nổi (gọi / Messenger / Zalo) với vòng sáng nhẹ lan toả */
.fc { position: fixed; right: 18px; bottom: 26px; z-index: 140; display: flex; flex-direction: column; gap: 14px; }
.fc-btn { --c: #0068ff; position: relative; isolation: isolate; width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; background: var(--c); box-shadow: 0 6px 16px rgba(15, 25, 50, .22); transition: transform .2s ease, box-shadow .2s ease; }
.fc-call { --c: #16a34a; }
.fc-msg { --c: #0a7cff; }
.fc-zalo { --c: #0068ff; }
.fc-btn::before, .fc-btn::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 50%; background: var(--c); opacity: 0; animation: fc-pulse 2.8s ease-out infinite; animation-delay: var(--d, 0s); }
.fc-btn::after { animation-delay: calc(var(--d, 0s) + 1.4s); }
@keyframes fc-pulse { 0% { transform: scale(1); opacity: .4; } 70%, 100% { transform: scale(1.75); opacity: 0; } }
.fc-btn:hover, .fc-btn:focus-visible { transform: translateY(-2px) scale(1.06); box-shadow: 0 10px 22px rgba(15, 25, 50, .28); color: #fff; }
.fc-btn:focus-visible { outline: 3px solid rgba(14, 86, 218, .4); outline-offset: 3px; }
.fc-tip { position: absolute; right: calc(100% + 12px); top: 50%; transform: translateY(-50%) translateX(6px); white-space: nowrap; background: #1b2233; color: #fff; font-size: 13px; font-weight: 600; padding: 7px 12px; border-radius: 8px; opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s; }
.fc-btn:hover .fc-tip, .fc-btn:focus-visible .fc-tip { opacity: 1; transform: translateY(-50%); }
@media (hover: none) { .fc-tip { display: none; } }
@media (max-width: 900px) {
    .fc { right: 12px; bottom: 76px; gap: 12px; }          /* trên thanh điều hướng nhanh */
    .fc-btn { width: 46px; height: 46px; }
    .fc-btn svg { transform: scale(.9); }
    body.has-buybar .fc { bottom: calc(112px + env(safe-area-inset-bottom)); }   /* trang sản phẩm: trên thanh Mua ngay */
}
@media print { .fc { display: none; } }
