/* Lọc HDC — giao diện "cơ khí chính xác": nền sáng, mực than chì, đỏ theo logo làm màu nhấn, tiêu đề Barlow Condensed. */
:root {
  --ink: #0f172a; --ink-2: #1e293b; --ink-3: #334155; --muted: #5b6472; --line: #e2e5ea; --line-2: #cdd3dc; --bg: #f3f4f6; --card: #fff;
  --red: #d4202a; --red-dark: #b01820; --red-soft: #fdecec; --ok: #0f7b55; --zalo: #0068ff;
  --r: 14px; --r-sm: 10px; --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 10px 28px rgba(15, 23, 42, .07);
  --font: "Be Vietnam Pro", var(--font-local, "Be Vietnam Pro"), system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --display: "Barlow Condensed", var(--font-local, "Barlow Condensed"), "Arial Narrow", var(--font);
}
* { box-sizing: border-box; }
html { scroll-padding-top: 150px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.6 var(--font); color: var(--ink); background: var(--bg); }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--red-dark); }
main p a, .crumb a, .more { color: var(--red-dark); }
:focus-visible { outline: 3px solid #f08c92; outline-offset: 2px; border-radius: 4px; }
img { max-width: 100%; height: auto; }
[hidden] { display: none !important; }
.ico { flex: none; vertical-align: -3px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); font-size: 14px; }
h1, h2, h3, .item-code, .price, .eyebrow, .facts b { font-family: var(--display); letter-spacing: .01em; }
h1 { font-size: 38px; line-height: 1.1; margin: 10px 0 12px; font-weight: 700; text-wrap: balance; }
h1 small { font: 500 15px var(--font); color: var(--muted); letter-spacing: 0; }
h2 { font-size: 28px; line-height: 1.15; margin: 40px 0 14px; font-weight: 700; }
h3 { font-size: 19px; margin: 18px 0 2px; font-weight: 600; color: var(--ink-3); }
.lead { font-size: 17px; max-width: 760px; color: var(--ink-3); }
/* Tiếng Nhật, Hàn không ngắt dòng giữa từ; chữ Nhật, Hàn, Hindi, Nga, Ả Rập không có bản hẹp nên tiêu đề lớn phải nhỏ lại. */
:lang(ja) :is(h1, h2, h3, .lead, p) { word-break: auto-phrase; }
:lang(ko) :is(h1, h2, h3, .lead, p) { word-break: keep-all; }
:is(:lang(ja), :lang(ko), :lang(hi), :lang(ru), :lang(ar)) :is(h1, h2, h3, .item-code, .price, .eyebrow, .facts b) { letter-spacing: 0; }
:is(:lang(ja), :lang(ko), :lang(hi), :lang(ru), :lang(ar)) h1 { font-size: 32px; line-height: 1.25; }
:is(:lang(ja), :lang(ko), :lang(hi), :lang(ru), :lang(ar)) h2 { font-size: 24px; line-height: 1.3; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--card); padding: 10px 14px; z-index: 60; }
.skip:focus { left: 8px; top: 8px; }
.eyebrow { display: inline-block; text-transform: uppercase; letter-spacing: .12em; font-weight: 600; font-size: 15px; color: #ffb4b8; margin-bottom: 8px; }

.topbar { background: var(--ink); color: #cbd5e1; font-size: 13px; }
.topbar-row { display: flex; align-items: center; gap: 18px; min-height: 36px; }
.topbar a { color: #e2e8f0; }
.topbar a:hover { color: #fff; }
.topbar-note { margin-right: auto; white-space: nowrap; }
.langs { display: flex; align-items: center; gap: 2px; overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
.langs .ico { margin-right: 6px; opacity: .7; }
.langs a { padding: 8px 9px; border-radius: 6px; }
.langs a[aria-current] { background: rgba(255, 255, 255, .14); color: #fff; font-weight: 600; }
.topbar-phone { font-weight: 600; white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; }

.site-head { background: rgba(255, 255, 255, .92); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.head-row { display: flex; align-items: center; gap: 18px; padding-top: 12px; padding-bottom: 10px; }
.brand img { display: block; }
.search { display: flex; flex: 1 1 320px; position: relative; background: var(--card); border: 1.5px solid var(--line-2); border-radius: 999px; transition: border-color .15s, box-shadow .15s; }
.search:focus-within { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(15, 23, 42, .08); }
.search-ico { display: grid; place-items: center; padding-left: 16px; color: var(--muted); }
.search input { flex: 1; min-width: 0; padding: 11px 10px; border: 0; background: none; font: inherit; outline: none; }
.search button { margin: 4px; padding: 0 20px; border: 0; background: var(--ink); color: #fff; font: inherit; font-weight: 600; border-radius: 999px; cursor: pointer; transition: background .15s; }
.search button:hover { background: var(--red); }
.cart-link { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; font-weight: 600; padding: 10px 16px; border: 1.5px solid var(--line-2); border-radius: 999px; background: var(--card); transition: border-color .15s; }
.cart-link:hover { border-color: var(--ink); color: var(--ink); }
.cart-link b, .q-cart b { background: var(--red); color: #fff; border-radius: 999px; padding: 0 8px; font-size: 13px; line-height: 22px; min-width: 22px; text-align: center; }
.main-nav { display: flex; gap: 4px; padding-bottom: 8px; overflow-x: auto; white-space: nowrap; font-weight: 600; font-size: 15px; scrollbar-width: none; }
.main-nav a { padding: 7px 12px; border-radius: 999px; color: var(--ink-3); transition: background .15s, color .15s; }
.main-nav a:first-child { margin-left: -12px; }
.main-nav a:hover { background: var(--bg); color: var(--ink); }
.main-nav a[aria-current] { background: var(--ink); color: #fff; }

.suggest { position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 18px 44px rgba(15, 23, 42, .2); z-index: 30; max-height: 70vh; overflow-y: auto; text-align: left; }
.suggest a { display: grid; grid-template-columns: 1fr auto; gap: 0 12px; padding: 10px 16px; border-bottom: 1px solid var(--line); color: var(--ink); }
.suggest a:hover, .suggest a.on { background: var(--bg); }
.suggest b { font: 700 18px var(--display); }
.suggest .price { font-size: 17px; }
.suggest small { grid-column: 1 / -1; color: var(--muted); overflow-wrap: anywhere; }
.suggest .all { display: block; text-align: center; font-weight: 600; color: var(--red-dark); border-bottom: 0; }
.suggest p { margin: 0; padding: 14px 16px; color: var(--muted); font-size: 15px; }

main { padding-top: 18px; padding-bottom: 56px; min-height: 60vh; }
.crumb { font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; }
.crumb a { padding: 4px 0; }
.crumb i { font-style: normal; opacity: .5; }

.hero { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.15fr .85fr; gap: 28px; align-items: center; color: #fff; border-radius: 22px; padding: 44px; margin-top: 4px;
  background: radial-gradient(900px 420px at 88% -10%, rgba(212, 32, 42, .5), transparent 60%), linear-gradient(135deg, #0b1120, #1e293b); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 44px 44px; -webkit-mask-image: linear-gradient(to bottom, #000, transparent 85%); mask-image: linear-gradient(to bottom, #000, transparent 85%); pointer-events: none; }
.hero > * { position: relative; }
.hero h1 { font-size: 50px; margin: 0 0 14px; }
:is(:lang(ja), :lang(ko), :lang(hi), :lang(ru), :lang(ar)) .hero h1 { font-size: 38px; }
.hero .lead { color: #dbe2ec; }
.hero-search { max-width: 560px; margin: 22px 0 12px; border: 0; }
.hero-search input { padding: 15px 10px; }
.hero-search button { background: var(--red); }
.hero-search button:hover { background: var(--red-dark); }
.hero-try { margin: 0 0 4px; font-size: 14px; color: #b9c3d2; display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; }
.hero-try a { color: #fff; border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px; padding: 5px 12px; transition: background .15s; }
.hero-try a:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.hero-photo { background: #fff; border-radius: 18px; padding: 14px; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); transform: rotate(1.5deg); }
.hero-photo img { display: block; border-radius: 10px; }
.hero .buy-row { margin-bottom: 0; }

.facts { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.facts li { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; font-size: 14px; color: var(--muted); }
.facts .ico { grid-row: span 2; width: 44px; height: 44px; padding: 11px; border-radius: 12px; background: var(--red-soft); color: var(--red); }
.facts b { font-size: 22px; line-height: 1.15; color: var(--ink); font-weight: 700; }
.cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 16px; }
.cat { display: grid; grid-template-columns: minmax(0, 1fr) 112px; overflow-wrap: anywhere; gap: 4px 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; color: var(--ink); transition: transform .18s, box-shadow .18s, border-color .18s; }
.cat:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); color: var(--ink); }
.cat h2, .cat h3 { margin: 0 0 4px; font-size: 26px; color: var(--ink); grid-column: 1; }
.cat p { margin: 0; color: var(--muted); font-size: 15px; grid-column: 1; }
.cat b { grid-column: 1; margin-top: 10px; color: var(--red-dark); font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.cat img { grid-column: 2; grid-row: 1 / span 3; align-self: center; width: 112px; height: 112px; object-fit: contain; }
.band { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 6px 24px 22px; margin-top: 28px; }
.band > h2:first-child { margin-top: 20px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; counter-reset: step; }
.steps li { background: var(--bg); border-radius: var(--r-sm); padding: 16px 18px; font-size: 15px; color: var(--ink-3); counter-increment: step; }
.steps li::before { content: "0" counter(step); display: block; font: 700 34px/1 var(--display); color: var(--red); margin-bottom: 8px; }
.steps b { display: block; color: var(--ink); font-size: 16px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sm); margin: 8px 0; max-width: 860px; }
.faq summary { padding: 14px 18px; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 600 22px/1 var(--display); color: var(--red); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0; padding: 0 18px 16px; color: var(--ink-3); }
.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; background: linear-gradient(135deg, #0b1120, #1e293b); color: #fff; border-radius: 18px; padding: 28px 32px; margin-top: 36px; }
.cta-band h2 { margin: 0 0 4px; }
.cta-band p { margin: 0; color: #cbd5e1; max-width: 620px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; min-height: 46px; border-radius: 999px; border: 1.5px solid transparent; font: inherit; font-weight: 600; cursor: pointer; text-align: center; transition: background .15s, transform .15s, border-color .15s; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn-add, .btn-primary { background: var(--red); color: #fff; }
.btn-add:hover, .btn-primary:hover { background: var(--red-dark); color: #fff; }
.btn-add.added { background: var(--ok); }
.btn-call { background: var(--ink); color: #fff; }
.btn-call:hover { background: var(--ink-2); color: #fff; }
.btn-zalo { background: var(--zalo); color: #fff; }
.btn-zalo:hover { color: #fff; filter: brightness(1.08); }
.btn-ghost { border-color: currentColor; color: inherit; background: none; }
.hero .btn-call, .cta-band .btn-call { background: #fff; color: var(--ink); }
.link { background: none; border: 0; color: var(--red-dark); cursor: pointer; font: inherit; padding: 8px 4px; }
.more { font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.buy-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 14px 0; }
.qty { display: inline-flex; border: 1.5px solid var(--line-2); border-radius: 999px; overflow: hidden; background: var(--card); }
.qty button { width: 42px; min-height: 44px; border: 0; background: none; font: 600 20px var(--font); color: var(--ink); cursor: pointer; }
.qty button:hover { background: var(--bg); }
.qty input { width: 52px; border: 0; text-align: center; font: inherit; font-weight: 600; background: none; -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.filter { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; margin: 14px 0; }
.filter input { width: 100%; padding: 12px 16px; border: 1.5px solid var(--line-2); border-radius: 999px; font: inherit; background: var(--bg); }
.filter input:focus { background: var(--card); border-color: var(--ink); outline: none; }
.filter .muted { margin: 8px 2px 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chip { border: 1px solid var(--line-2); background: var(--card); color: var(--ink-3); border-radius: 999px; padding: 6px 13px; font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip small { color: var(--muted); font-weight: 400; }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip.on small { color: #cbd5e1; }
.empty { background: var(--card); border: 1.5px dashed var(--line-2); border-radius: var(--r); padding: 6px 20px; margin: 14px 0; }

.items { display: grid; gap: 8px; }
.item { display: grid; grid-template-columns: 76px 1fr auto; gap: 16px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 16px 10px 10px; transition: border-color .15s, box-shadow .15s; }
.item:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.no-photos .item { grid-template-columns: 1fr auto; padding: 12px 16px; }
.item-photo img { display: block; width: 76px; height: 76px; object-fit: contain; border-radius: 8px; background: #fff; }
.item-main { min-width: 0; overflow-wrap: anywhere; }
.item-code { font-weight: 700; font-size: 21px; line-height: 1.2; color: var(--ink); }
a.item-code:hover { color: var(--red-dark); }
.item-name { font-weight: 500; color: var(--ink-3); }
.item-spec { display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 13px; color: var(--muted); margin-top: 4px; }
.item-spec span { background: var(--bg); border-radius: 6px; padding: 2px 8px; }
.item-spec .oem { color: var(--ink); }
.item-spec i { font-style: normal; color: var(--muted); margin-right: 6px; }
.item-buy { text-align: right; display: grid; gap: 6px; justify-items: end; }
.item-buy .btn { min-height: 40px; padding: 8px 14px; font-size: 14px; }
.price { font-weight: 700; font-size: 22px; line-height: 1.1; white-space: nowrap; color: var(--ink); }
.price.big { font-size: 44px; margin: 14px 0 4px; }
.price small { font: 500 14px var(--font); color: var(--muted); letter-spacing: 0; }

.product { display: grid; grid-template-columns: minmax(240px, 420px) 1fr; gap: 6px 36px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 26px; margin-top: 12px; }
.product.no-photo { grid-template-columns: 1fr 1fr; }
.product-photo { grid-row: 1 / span 2; align-self: start; border-radius: var(--r); width: 100%; border: 1px solid var(--line); }
.product h1 { margin-top: 0; font-size: 34px; }
.specs { border-collapse: collapse; width: 100%; }
.specs th, .specs td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
.specs th { width: 42%; color: var(--muted); font-weight: 500; padding-right: 12px; }
.specs td { font-weight: 600; }
.notes { padding-left: 20px; color: var(--muted); font-size: 14px; }

.cart { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.cart th, .cart td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.cart thead th { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--bg); }
.cart tfoot th { border-bottom: 0; font-size: 17px; }
.cart .num { text-align: right; white-space: nowrap; }
.cart td b { font: 700 19px var(--display); }
.cart small { color: var(--muted); }
.order { max-width: 600px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 6px 22px 20px; margin-top: 20px; }
.order label { display: block; font-weight: 600; margin-top: 12px; font-size: 15px; }
.order input, .order textarea, .order select { display: block; width: 100%; margin-top: 5px; padding: 12px 14px; border: 1.5px solid var(--line-2); border-radius: var(--r-sm); font: inherit; font-weight: 400; background: var(--bg); }
.order input:focus, .order textarea:focus, .order select:focus { background: var(--card); border-color: var(--ink); outline: none; }
.order .place { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.order .ship { margin: 14px 0 0; padding: 12px 14px; border-radius: var(--r-sm); background: var(--bg); border: 1px dashed var(--line-2); font-size: 15px; }
.order .ship b { font: 700 19px var(--display); }
@media (max-width: 520px) { .order .place { grid-template-columns: 1fr; } }
.order button { margin-top: 16px; width: 100%; font-size: 17px; }
.order .hp { position: absolute; left: -9999px; }
.done { background: #e7f6ef; border: 1px solid #b6e0cd; border-radius: var(--r); padding: 18px; }

.about-teaser { display: grid; grid-template-columns: minmax(0, 380px) 1fr; gap: 26px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 24px; margin-top: 28px; }
.about-teaser img, .about-intro img { border-radius: var(--r-sm); display: block; }
.about-teaser h2 { margin-top: 0; }
.about-intro { display: grid; grid-template-columns: 1fr minmax(0, 480px); gap: 28px; align-items: center; }
.timeline { list-style: none; padding: 0; margin: 0; max-width: 860px; border-left: 2px solid var(--line-2); }
.timeline li { position: relative; display: grid; grid-template-columns: 70px 1fr; gap: 12px; padding: 9px 0 9px 22px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 17px; width: 12px; height: 12px; border-radius: 50%; background: var(--red); border: 2px solid var(--bg); }
.timeline b { font: 700 22px/1.3 var(--display); color: var(--ink); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.gallery figure { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.gallery img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery.awards img { object-fit: contain; background: #fff; padding: 10px; }
.gallery figcaption { padding: 10px 12px; font-size: 14px; color: var(--muted); }
.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.video { display: block; position: relative; aspect-ratio: 16 / 9; width: 100%; border: 0; border-radius: var(--r-sm); overflow: hidden; background: #000; }
.video img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .85; transition: opacity .15s; }
.video:hover img { opacity: 1; }
.video span { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 12px; color: #fff; font-weight: 600; background: linear-gradient(transparent, rgba(0, 0, 0, .85)); display: flex; gap: 8px; align-items: center; }

.site-foot { background: var(--ink); color: #cbd5e1; padding: 40px 0 0; font-size: 15px; }
.site-foot p { margin: 4px 0; }
.site-foot a { color: #fff; }
.site-foot a:hover { color: #ffb4b8; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 28px; }
.foot-brand img { background: #fff; border-radius: 10px; padding: 6px 10px; margin-bottom: 10px; }
.foot-nav { display: grid; gap: 2px; align-content: start; }
.foot-nav a { padding: 5px 0; }
.foot-note { margin-top: 28px; padding-top: 16px; padding-bottom: 20px; border-top: 1px solid rgba(255, 255, 255, .12); color: #94a3b8; font-size: 13px; }

.quick-bar { display: none; }
.toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; box-shadow: 0 12px 30px rgba(15, 23, 42, .35); z-index: 50; max-width: calc(100vw - 24px); width: max-content; font-size: 15px; display: flex; align-items: center; gap: 4px 12px; }
.toast a { color: #ffb4b8; font-weight: 600; white-space: nowrap; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 32px 28px; }
  .hero-photo { display: none; }
  .hero h1 { font-size: 40px; }
  .product, .product.no-photo, .about-teaser, .about-intro { grid-template-columns: 1fr; }
  .product { padding: 18px; }
  .product-photo { grid-row: auto; max-height: 280px; object-fit: contain; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  html { scroll-padding-top: 0; }
  body { padding-bottom: calc(62px + env(safe-area-inset-bottom)); }
  .wrap { padding: 0 16px; }
  h1 { font-size: 30px; }
  h2 { font-size: 24px; margin-top: 30px; }
  .topbar-note, .topbar-phone { display: none; }
  .langs { margin: 0 -8px; }
  .site-head { position: static; backdrop-filter: none; background: var(--card); }
  .head-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
  .search { grid-column: 1 / -1; grid-row: 2; }
  .search input { font-size: 16px; }
  .hero { padding: 26px 20px; border-radius: 18px; }
  .hero h1 { font-size: 32px; }
  :is(:lang(ja), :lang(ko), :lang(hi), :lang(ru), :lang(ar)) :is(h1, .hero h1) { font-size: 26px; }
  .hero .buy-row, .product .contact-row { display: none; }  /* đã có thanh liên hệ cố định ở đáy màn hình */
  .facts, .steps { grid-template-columns: 1fr; gap: 8px; }
  .facts li { padding: 12px 14px; }
  .cat { grid-template-columns: minmax(0, 1fr) 84px; padding: 16px; }
  .cat img { width: 84px; height: 84px; }
  .band { padding: 2px 16px 16px; }
  .cta-band { padding: 22px 20px; }
  .item { grid-template-columns: 64px 1fr; gap: 12px; padding: 10px 12px; }
  .item-photo img { width: 64px; height: 64px; }
  .no-photos .item { grid-template-columns: 1fr; }
  .item-buy { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; }
  .filter .chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; margin-right: -14px; padding-right: 14px; scrollbar-width: none; }
  .chip { white-space: nowrap; padding: 9px 14px; }
  .wrap-chips .chip { white-space: normal; }
  .price.big { font-size: 38px; }
  .cart thead { display: none; }
  .cart tr { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 6px 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .cart th, .cart td { border: 0; padding: 0; }
  .cart tbody td:first-child { grid-column: 1 / -1; }
  .cart tbody td:nth-child(2) { display: none; }
  .cart tfoot th:first-child { grid-column: 1 / 3; }
  .foot-grid { grid-template-columns: 1fr; gap: 20px; }
  .quick-bar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(15, 23, 42, .1); padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); gap: 8px; }
  .quick-bar a { display: flex; align-items: center; justify-content: center; gap: 5px; min-height: 46px; padding: 0 8px; border-radius: 999px; font-weight: 600; font-size: 13.5px; color: #fff; white-space: nowrap; }
  .quick-bar .q-cart .ico { display: none; }
  .q-call { background: var(--ink); }
  .q-zalo { background: var(--zalo); }
  .quick-bar .q-cart { background: var(--red); }
  .quick-bar .q-cart b { background: #fff; color: var(--red-dark); }
  .toast { bottom: calc(74px + env(safe-area-inset-bottom)); border-radius: 16px; }
}
@media (prefers-reduced-motion: no-preference) {
  .toast { animation: toast-in .18s ease-out; }
  @keyframes toast-in { from { opacity: 0; transform: translate(-50%, 8px); } }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* Trang bảng giá: bảng dài, cuộn ngang trên điện thoại */
.price-wrap { overflow-x: auto; margin: 8px 0 24px; border: 1px solid var(--line); border-radius: 10px; }
.price-table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 14px; }
.price-table th, .price-table td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.price-table thead th { background: #f1f5f9; font-weight: 600; white-space: nowrap; }
.price-table tbody tr:last-child td { border-bottom: 0; }
.price-table td:first-child { white-space: nowrap; font-weight: 600; }
.price-table .num { text-align: right; white-space: nowrap; font-weight: 600; }
h3 small { color: var(--muted); font-weight: 500; }
h3 .more { font-size: 13px; font-weight: 500; margin-left: 8px; }

/* Tiếng Ả Rập viết từ phải sang trái: đổi bên cho những chỗ ghi cứng trái, phải. Mã hàng, kích thước, số điện thoại vẫn đọc trái sang phải. */
[dir="rtl"] :is(.skip, .order .hp) { left: auto; right: -9999px; }
[dir="rtl"] .skip:focus { left: auto; right: 8px; }
[dir="rtl"] .topbar-note { margin-right: 0; margin-left: auto; }
[dir="rtl"] .langs .ico { margin-right: 0; margin-left: 6px; }
[dir="rtl"] .search-ico { padding-left: 0; padding-right: 16px; }
[dir="rtl"] .main-nav a:first-child { margin-left: 0; margin-right: -12px; }
[dir="rtl"] :is(.suggest, .specs th, .specs td, .cart th, .cart td, .price-table th, .price-table td) { text-align: right; }
[dir="rtl"] .specs th { padding-right: 0; padding-left: 12px; }
[dir="rtl"] .item-buy { text-align: left; }
[dir="rtl"] :is(.cart .num, .price-table .num) { text-align: left; }
[dir="rtl"] .notes { padding-left: 0; padding-right: 20px; }
[dir="rtl"] h3 .more { margin-left: 0; margin-right: 8px; }
[dir="rtl"] :is(.item-code, .item-spec, .topbar-phone, [href^="tel:"], [href^="mailto:"]) { direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] .timeline { border-left: 0; border-right: 2px solid var(--line-2); }
[dir="rtl"] .timeline li { padding: 9px 22px 9px 0; }
[dir="rtl"] .timeline li::before { left: auto; right: -7px; }
[dir="rtl"] .item-name { unicode-bidi: plaintext; text-align: right; }  /* tên ứng dụng ghi tiếng Anh: giữ thứ tự chữ, vẫn căn phải */
