/* website/assets/site.css — Hong Tat Parts public site. Ported from the approved homepage mockup
   (ai-workspace/drafts/2026-09-22-website-homepage-approved-v5.html, 760 px base × 1.7, zoom dropped).
   Palette (design L9): #fff · panel #f4f4f4 · text #1c1c1c · labels #2a2a2a · hairline #e3e3e3 ·
   secondary grey never lighter than #6b6b6b · one red #B3261E on links, the mark and .cta.
   No gradients, shadows or coloured bands. Inter self-hosted, system mono for part numbers. */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/Inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/Inter-500.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/Inter-600.woff2") format("woff2"); }

:root {
  --bg: #fff;
  --panel: #f4f4f4;
  --text: #1c1c1c;
  --label: #2a2a2a;
  --line: #e3e3e3;
  --grey: #6b6b6b;
  --red: #B3261E;
  --ph: #e9e9e9;
  --gutter: 16px;
  --wrap: 1280px;
  --wrap-wide: 1960px;   /* header + footer only (Steve 2026-09-24): wider than the reading column, short of full width */
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

/* ── base ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
/* footer sits at the bottom of the window even on short pages (Steve 2026-09-24) */
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; }
body > .foot { flex-shrink: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; }
h1 { font-size: clamp(34px, 5vw, 56px); letter-spacing: -0.02em; }
h2 { font-size: clamp(28px, 3.2vw, 36px); }
h3 { font-size: 20px; }
ul { margin: 0 0 1em; padding-left: 1.2em; }
strong { font-weight: 600; }
button { font: inherit; color: inherit; }
input, button { font-family: inherit; }
sup { font-size: 0.55em; line-height: 0; vertical-align: super; }
.mono, code, .partno { font-family: var(--mono); font-size: 0.95em; overflow-wrap: normal; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.hdr .wrap, .foot .wrap { max-width: var(--wrap-wide); }
@media (min-width: 1440px) { .hdr .wrap, .foot .wrap { --gutter: 64px; } }
.vh { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.skip { position: absolute; left: var(--gutter); top: -100px; z-index: 100; background: var(--bg); color: var(--text); padding: 8px 12px; border: 1px solid var(--text); }
.skip:focus { top: 8px; }

/* ── placeholders + media slots ───────────────────────────────────────── */
.ph { position: relative; width: 100%; background: var(--ph); overflow: hidden; }
.ph[data-ratio="4/3"] { aspect-ratio: 4 / 3; }
.ph[data-ratio="16/7"] { aspect-ratio: 16 / 7; }
.ph[data-ratio="4/5"] { aspect-ratio: 4 / 5; }
.ph[data-ratio="1/1"] { aspect-ratio: 1 / 1; }
.ph[data-ratio="3/2"] { aspect-ratio: 3 / 2; }
.ph .cap { position: absolute; left: 12px; bottom: 10px; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--grey); }
.card-media img, .person-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media { aspect-ratio: 4 / 3; overflow: hidden; }
.person-media { aspect-ratio: 4 / 5; overflow: hidden; }

/* ── header ───────────────────────────────────────────────────────────── */
.hdr { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
.nav { display: flex; flex-wrap: wrap; align-items: center; min-height: 60px; gap: 0 16px; }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; padding: 10px 0; }
.brand:hover { text-decoration: none; }
/* The logos are sized by height with width:auto, so flex must not shrink their boxes — at 62px the wordmark
   rendered 223px wide inside a shrunk box and overlapped the first nav link by 8px (measured 2026-09-23). */
.brand > img { flex: 0 0 auto; max-width: none; }
/* Header logo. Mobile-first 37px, up to 48px on desktop, with 10px of brand padding above and below.
   History (all 2026-09-23): 34px → 62px+4px ("bigger") → 54px+10px ("too big, more padding") → 48px
   ("a touch smaller again"). width/height in web_logo() carry the 48px aspect (no layout shift); `height` wins. */
.logo-mark { height: 37px; width: auto; }
.logo-wordmark { height: 37px; width: auto; }
@media (min-width: 900px) {
  /* 48px cap, 10px padding above and below. Still a clamp, not a flat height: the header row is at capacity at
     --wrap 1280, so a fixed height squashes the wordmark instead of shrinking it. */
  .logo-mark { height: clamp(37px, 3.6vw, 48px); }
  .logo-wordmark { height: clamp(37px, 3.6vw, 48px); }
}
.menu { display: inline-flex; align-items: center; gap: 10px; background: none; border: 1px solid var(--line); padding: 8px 12px; font-size: 15px; font-weight: 500; cursor: pointer; }
.bars { position: relative; display: block; width: 18px; height: 2px; background: var(--text); }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--text); }
.bars::before { top: -6px; }
.bars::after { top: 6px; }
.hdr.open .bars { background: transparent; }
.hdr.open .bars::before { top: 0; transform: rotate(45deg); }
.hdr.open .bars::after { top: 0; transform: rotate(-45deg); }
.hnav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; padding: 4px 0 16px; }
.hdr.open .hnav { display: flex; }
.links { display: flex; flex-direction: column; }
.links a { padding: 12px 0; border-top: 1px solid var(--line); font-size: 14px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--label); }
.links a[aria-current="page"] { color: var(--red); }
.hsearch { display: flex; margin: 12px 0; }
.hsearch input {
  width: 100%; margin: 0; padding: 9px 12px; font-size: 16px; line-height: 1.3; color: var(--text);
  background: var(--bg); border: 1px solid var(--line); border-radius: 2px; -webkit-appearance: none; appearance: none;
}
.hsearch input::placeholder { color: var(--grey); opacity: 1; }
.hsearch input:focus { border-color: var(--text); }
.cta { color: var(--red); font-weight: 600; white-space: nowrap; }
.hnav .cta { padding: 12px 0; font-size: 19px; }

@media (min-width: 900px) { .wrap { --gutter: 48px; } }

/* One-row header from 1100px (2026-09-24: the header search is gone, so the row has room earlier). Three-column grid —
   logo | links | CTA — with equal outer columns, so the links sit in the true centre of the page, not just between
   the logo and the CTA. .hnav becomes display:contents so its two children join the grid directly. Link type = the
   site's eyebrow voice (small caps-lock, wide tracking); a thin red rule marks the current page and slides in on hover. */
@media (min-width: 1100px) {
  /* Column 1 (logo) is as wide as the distance from the header's inner edge to the READING column's inner edge, so
     the first nav link starts exactly where the page content does (Steve 2026-09-24). Both containers are centred,
     so that distance = (header inner width - content inner width) / 2, where 100% = header inner width and
     content inner width = min(page, --wrap) - 2 x content gutter. minmax(max-content, …): when the logo is wider
     than that distance (narrow desktops) the column just fits the logo and the links follow it. */
  .nav { display: grid; align-items: center; height: 72px; column-gap: 32px;
         grid-template-columns: minmax(max-content, calc((100% - min(100% + 2 * var(--gutter), var(--wrap)) + 96px) / 2 - 32px)) 1fr auto; }
  .links { justify-self: start; }
  .brand { margin-right: 0; justify-self: start; }
  .menu { display: none; }
  .hnav { display: contents; }
  .links { flex-direction: row; gap: 36px; }
  .links a { position: relative; padding: 6px 0; border: 0; font-size: 13px; color: var(--label); white-space: nowrap; }
  .links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform 0.2s ease-out; }
  .links a:hover { text-decoration: none; color: var(--text); }
  .links a:hover::after, .links a[aria-current="page"]::after { transform: scaleX(1); }
  .links a[aria-current="page"] { color: var(--text); }
  .hnav .cta { justify-self: end; padding: 0; font-size: 20px; letter-spacing: -0.01em; }
}
/* 1100-1279px: five links + the 20px CTA are 3px too wide for the row (measured with Home added, 2026-09-24) */
@media (min-width: 1100px) and (max-width: 1279px) { .links { gap: 26px; } .hnav .cta { font-size: 18px; } }
@media (prefers-reduced-motion: reduce) { .links a::after { transition: none; } }

/* ── hero ─────────────────────────────────────────────────────────────── */
.hero { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 340px; background: #333; color: #fff; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media .ph, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; background: #333; }
.hero-media img { object-fit: cover; }
.hero-media .ph .cap { color: #cfcfcf; }
.hero.has-img::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.55); z-index: 1; }
.hero-txt { position: relative; z-index: 2; padding-top: 120px; padding-bottom: 36px; }
.hero-txt h1, .hero-txt p, .hero-txt a { max-width: 760px; }
.hero-txt h1 { margin: 0 0 12px; }
.hero-txt p { margin: 0 0 16px; font-size: 18px; color: #e4e4e4; }
.hero-link { display: inline-block; color: #fff; font-weight: 600; border-bottom: 1px solid #fff; }
.hero-link:hover { text-decoration: none; border-bottom-width: 2px; }
@media (min-width: 900px) {
  .hero { min-height: 380px; }
  .hero-txt { padding-top: 160px; padding-bottom: 40px; }
}

/* ── sections ─────────────────────────────────────────────────────────── */
.sec { padding-top: 40px; }
.eyebrow { margin: 0 0 18px; font-size: 14px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--label); }
.cards { display: grid; grid-template-columns: 1fr; gap: 20px; }
.card3 { display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--bg); }
.card3:hover { border-color: var(--text); }
.card3 .b { padding: 16px 18px 18px; }
.card3 h3 { margin: 0 0 6px; }
.card3 p { margin: 0 0 10px; color: #555; font-size: 17px; }
.card3 a { display: inline-block; padding: 4px 0; color: var(--red); font-weight: 600; font-size: 16px; }
@media (min-width: 560px) { .cards { grid-template-columns: repeat(3, 1fr); } }

/* brands on our shelves — same module-grid language as "What we supply": hairline tiles, same label type */
.bgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.btile {
  display: flex; flex-direction: column; justify-content: center; gap: 4px; min-height: 76px;
  padding: 14px 10px 12px; text-align: center; border: 1px solid var(--line); color: var(--text);
}
.btile:hover { border-color: var(--text); text-decoration: none; }
.btile .mark { display: block; white-space: nowrap; font-size: clamp(14px, 4vw, 17px); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.1; color: var(--grey); }
.btile .mark sup { letter-spacing: 0; }
.btile small { display: block; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--grey); }
.btile .blogo { max-height: 40px; width: auto; margin: 0 auto; }
@media (min-width: 560px) { .bgrid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1150px) { .bgrid { grid-template-columns: repeat(6, 1fr); } }   /* 6 across needs ~1150: MANN+HUMMEL is nowrap and overflowed a 900px 6-col tile */

/* ── about (2026-09-24 redesign): page header + left-hand sub-tabs, one calm panel at a time ── */
.ahead { padding-bottom: 8px; }
.atabs { display: grid; grid-template-columns: 1fr; gap: 28px; padding-top: 8px; padding-bottom: 24px; }
.atab-list { display: flex; flex-wrap: wrap; gap: 8px; }
.atab { flex: none; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--grey); white-space: nowrap; }
.atab:hover { color: var(--text); text-decoration: none; }
.atab.on { color: var(--bg); background: var(--text); border-color: var(--text); }
.apanel { max-width: 760px; padding-bottom: 56px; scroll-margin-top: 96px; }
.apanel:focus { outline: none; }
.js-tabs .apanel { padding-bottom: 0; }
.js-tabs .apanel[hidden] { display: none; }
.apanel > h2 { margin-bottom: 28px; font-size: clamp(26px, 2.6vw, 32px); }
.apanel-body p { font-size: 18px; line-height: 1.7; color: #333; margin-bottom: 1.3em; }
.apanel .since { margin: -14px 0 28px; font-size: 16px; color: var(--grey); }
.apanel .inds { margin: 32px 0 0; padding-top: 20px; border-top: 1px solid var(--line); font-size: 15px; letter-spacing: 0.02em; color: var(--grey); }
.acards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 14px; }
.acards li { padding: 20px 22px; background: var(--panel); border-radius: 6px; }
.acards b { display: block; margin-bottom: 6px; font-size: 17px; font-weight: 600; }
.acards span { display: block; font-size: 16px; line-height: 1.55; color: #444; }
.apanel-lead { margin: 0 0 16px; font-size: 20px; font-weight: 600; line-height: 1.35; }
.asteps { margin-top: 28px; }
.acards i { display: block; margin-bottom: 8px; font-family: var(--mono); font-style: normal; font-size: 13px; font-weight: 600; color: var(--red); }
.aquote { margin: 28px 0 0; font-size: 16px; font-style: italic; color: var(--grey); max-width: 640px; }
.apanel blockquote.pull { font-size: 22px; line-height: 1.6; border-left-color: var(--red); padding-left: 24px; }
.apanel table.particulars { margin-top: 0; }
.apanel .disclaimer { margin-top: 36px; }
.person { display: flex; gap: 18px; align-items: flex-start; }
.person-media { width: 92px; flex: none; }
.apanel .person-media { width: 140px; }
.person-txt b { display: block; font-size: 17px; font-weight: 600; }
.person-txt span { display: block; font-size: 16px; color: #555; }
.person-txt a { display: block; padding: 3px 0; font-size: 16px; font-weight: 600; color: var(--red); }
@media (min-width: 700px) { .acards { grid-template-columns: 1fr 1fr; gap: 16px; } .acards-1 { grid-template-columns: 1fr; } }
@media (min-width: 900px) {
  .atabs { grid-template-columns: 240px 1fr; gap: 72px; padding-top: 24px; }
  .atab-list { position: sticky; top: 96px; align-self: start; flex-direction: column; flex-wrap: nowrap; gap: 2px; }
  .atab { padding: 12px 0 12px 18px; border: 0; border-left: 2px solid var(--line); border-radius: 0; font-size: 16px; white-space: normal; }
  .atab.on { color: var(--text); background: none; border-left-color: var(--red); font-weight: 600; }
}

/* ── footer: contact details on every page + fine print — SUPER compact (Steve 2026-09-24), no divider lines ── */
.foot { margin-top: 24px; background: var(--panel); padding: 10px 0 8px; font-size: 13px; line-height: 1.35; color: var(--label); }
.foot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; }
.foot-grid b { display: block; margin: 0; font-size: 10px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--grey); }
.foot-grid b.foot-sub { margin-top: 2px; }
.foot-grid a { color: var(--red); font-weight: 500; }
.foot-grid .nw { white-space: nowrap; }
.foot-grid a.foot-wa-no { color: var(--text); }
.foot-grid a.foot-wa { display: inline-block; margin-left: 6px; padding: 0 7px; border-radius: 999px; background: #1a8d4a; color: #fff; font-size: 10px; font-weight: 600; line-height: 16px; vertical-align: 1px; }
.foot-grid a.foot-wa:hover { text-decoration: none; background: #157a3f; }
.foot-grid > div:last-child { grid-column: 1 / -1; }   /* hours: full width on phones */
.foot-fine { margin-top: 6px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 16px; font-size: 10px; line-height: 1.3; color: var(--grey); }
.foot-fine p { margin: 0; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 0 24px; } .foot-grid > div:last-child { grid-column: auto; } }

/* ── error pages ──────────────────────────────────────────────────────── */
.err { padding-bottom: 60px; min-height: 40vh; }
.err h1 { margin-bottom: 14px; }
.err p { max-width: 600px; }

/* ── motion (design L16): one 200 ms fade-up per section, JS-gated so no-JS visitors see everything ── */
.js .fade { opacity: 0; transform: translateY(12px); transition: opacity 0.2s ease-out, transform 0.2s ease-out; }
.js .fade.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .fade, .js .fade { opacity: 1; transform: none; transition: none; }
}

/* ── Task 5: about / products / expertise / contact / privacy ───────────── */
.lead { margin-top: 14px; font-size: 18px; color: #333; max-width: 760px; }
.lead p:last-child, .lead ul:last-child { margin-bottom: 0; }

blockquote.pull { margin: 0; padding: 2px 0 2px 20px; border-left: 3px solid var(--line); font-size: 20px; font-style: italic; color: var(--label); max-width: 720px; }
blockquote.pull p { margin: 0 0 0.6em; }
blockquote.pull p:last-child { margin-bottom: 0; }

table.particulars { width: 100%; max-width: 640px; border-collapse: collapse; margin-top: 6px; }
table.particulars th, table.particulars td { text-align: left; padding: 10px 12px 10px 0; border-top: 1px solid var(--line); font-weight: 400; font-size: 16px; vertical-align: top; }
table.particulars th { width: 42%; color: var(--grey); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
table.particulars tr:first-child th, table.particulars tr:first-child td { border-top: 0; }
table.particulars a { color: var(--red); font-weight: 500; }

.disclaimer p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--grey); max-width: 760px; }

/* products — .pcat cards (hairline tile language, same as .card3; distinct class per test contract) */
.pcats { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 4px; }
.pcat { display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--bg); padding: 18px; }
.pcat:hover { border-color: var(--text); }
.pcat h3 { margin: 0 0 8px; }
.pcat p { margin: 0 0 14px; color: #555; font-size: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip { display: inline-block; padding: 4px 10px; font-size: 13px; border: 1px solid var(--line); color: var(--grey); }
a.chip { color: var(--red); font-weight: 500; }
a.chip:hover { border-color: var(--text); color: var(--text); text-decoration: none; }
.pcat .browse { margin-top: auto; padding: 4px 0; color: var(--red); font-weight: 600; font-size: 15px; }
@media (min-width: 560px) { .pcats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .pcats { grid-template-columns: repeat(4, 1fr); } }

/* expertise — numbered .step cards (numeral uses the label colour, not red — red stays on links/mark/.cta) + 2-col detail grid */
.steps { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 4px; }
.step { border: 1px solid var(--line); padding: 20px; }
.step .num { display: block; margin-bottom: 10px; font-family: var(--mono); font-size: 15px; font-weight: 600; color: var(--label); }
.step h3 { margin: 0 0 8px; font-size: 18px; }
.step p { margin: 0; color: #333; }
@media (min-width: 560px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } }

.grid2 { display: grid; grid-template-columns: 1fr; gap: 28px; margin-top: 4px; }
.grid2 p { margin: 0; color: #333; }
@media (min-width: 700px) { .grid2 { grid-template-columns: repeat(2, 1fr); gap: 40px; } }

/* contact — particulars + enquiry columns */
.ccols { display: grid; grid-template-columns: 1fr; gap: 36px; margin-top: 4px; }
.ccols h2 { font-size: 18px; margin: 0 0 10px; }
.ccols .sub { margin-top: 26px; }
.ccols .sub:first-child { margin-top: 0; }
.maps { margin-top: 32px; }
.maps a { color: var(--red); font-weight: 600; }
@media (min-width: 900px) { .ccols { grid-template-columns: 1.15fr 1fr; gap: 56px; } }

.privacy-body p { max-width: 720px; color: #333; }

/* ── catalog (layout A · search-first list; mockup .catA values × 1.7) ── */
.cat { padding-bottom: 48px; }
.cat .big { margin: 0 0 24px; max-width: 900px; }
.cat .field { display: flex; align-items: center; height: 56px; border: 1px solid var(--text); padding: 0 16px; gap: 12px; background: var(--bg); }
.cat .field:focus-within { outline: 2px solid var(--text); outline-offset: 1px; }
.cat .glyph { font-size: 22px; line-height: 1; color: var(--grey); }
.cat .field input { flex: 1; min-width: 0; height: 100%; border: 0; padding: 0; background: transparent; font-size: 18px; color: var(--text); outline: none; }
.cat .field input::placeholder { color: var(--grey); opacity: 1; }
.cat .field input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.cat .go { margin-left: auto; border: 0; background: none; padding: 0 0 0 8px; font-size: 16px; font-weight: 600; color: var(--red); cursor: pointer; white-space: nowrap; }
.cat .go:hover { text-decoration: underline; }
.cat .hint { margin: 8px 0 0; font-size: 15px; color: var(--grey); }
.cat .chips { position: relative; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 20px; }
.chip-d { position: relative; }
.chip-d > summary { list-style: none; cursor: pointer; }
.chip-d > summary::-webkit-details-marker { display: none; }
.cat .chip { display: inline-block; border: 1px solid var(--line); padding: 5px 13px; font-size: 15px; color: var(--label); background: var(--bg); white-space: nowrap; line-height: 1.4; }
.cat .chip.on { border-color: var(--text); font-weight: 600; color: var(--text); }
.cat .chip.x { color: var(--grey); }
.cat a.chip { font-weight: 400; }
.cat a.chip:hover, .chip-d[open] > .chip { border-color: var(--text); color: var(--text); text-decoration: none; }
.chip-d .pop { position: absolute; left: 0; top: calc(100% + 4px); z-index: 10; min-width: 200px; max-height: 320px; overflow-y: auto; display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--text); padding: 6px 0; }
.chip-d .pop a { padding: 7px 14px; font-size: 15px; color: var(--text); white-space: nowrap; }
.chip-d .pop a:hover { background: var(--panel); text-decoration: none; }
.cat .rhead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px; margin: 0 0 10px; font-size: 17px; }
.cat .rhead b { font-weight: 600; }
.cat .quiet { font-size: 15px; color: var(--grey); }
.cat .quiet a { color: var(--red); font-weight: 600; }
.cat .note { margin: 0 0 10px; font-size: 15px; color: var(--grey); }
.cat .note b { color: var(--text); }
.rows { border-top: 1px solid var(--text); }
.row { display: grid; grid-template-columns: 75px 1fr auto; grid-template-areas: "th pn act" "th dsc act"; gap: 4px 20px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.row .th { grid-area: th; display: block; width: 75px; height: 75px; overflow: hidden; background: var(--panel); align-self: start; }
.row .th img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(0.9); }
.row .nop { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; }
.row .nop img { width: 12px; height: auto; opacity: 0.35; filter: grayscale(1); }
.row .pn { grid-area: pn; font-size: 19px; font-weight: 600; line-height: 1.2; }
.row .pn a { display: inline-block; padding: 3px 0; color: var(--text); }
.row .pn small { display: block; font-family: "Inter", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; font-weight: 400; color: var(--grey); font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; }
.row .dsc { grid-area: dsc; min-width: 0; }
.row .d { display: block; font-size: 17px; font-weight: 600; color: var(--text); }
.row .alt { font-size: 15px; color: var(--grey); margin-top: 2px; }
.row .eng { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 5px; }
.row .tag { display: inline-block; border: 1px solid var(--line); padding: 0 8px; font-size: 13px; letter-spacing: 0.06em; color: var(--label); line-height: 22px; }
.row .tag:hover { border-color: var(--text); text-decoration: none; }
.row .act { grid-area: act; padding: 4px 0; font-size: 16px; font-weight: 600; color: var(--red); white-space: nowrap; align-self: center; }
.pager { display: flex; justify-content: space-between; gap: 16px; font-size: 16px; color: var(--grey); padding: 16px 0 0; }
.pager a { color: var(--red); font-weight: 600; }
.pager .sep { margin: 0 8px; }
.cat .empty { padding: 28px 0 8px; max-width: 640px; }
.cat .empty h2 { font-size: 24px; margin: 0 0 10px; }
.cat .empty p { color: #333; }
.cat .empty .cta { font-size: 17px; }
@media (min-width: 700px) {
  .row { grid-template-columns: 75px 165px 1fr auto; grid-template-areas: "th pn dsc act"; gap: 20px; }
}
@media (max-width: 699px) {
  .row { grid-template-columns: 75px 1fr; grid-template-areas: "th pn" "th dsc" "th act"; gap: 4px 16px; }
  .row .act { justify-self: start; }
  .cat .field { height: 50px; padding: 0 12px; }
  .cat .field input { font-size: 16px; }
  .cat .chips { gap: 8px; }
  .chip-d { flex: 1 1 100%; min-width: 0; }
  .chip-d > .chip { display: block; padding: 9px 13px; }
  .chip-d:has(+ .chip.x) { flex-basis: calc(100% - 54px); }
  .cat .chip.x { min-width: 44px; padding: 9px 0; text-align: center; }
  .chip-d .pop { position: static; margin-top: 8px; flex-basis: 100%; max-height: none; }
  .chip-d .pop a { padding: 10px 14px; white-space: normal; }
}

/* ── part detail (layout D · mockup .catD values × 1.7): breadcrumb, 493 px photo panel + thumb strip, spec list,
   the page's ONLY filled red button (.catD .cta), quiet add-list text, three related tiles, trademark line ── */
.catD { padding-bottom: 56px; }
.crumb { display: flex; flex-wrap: wrap; align-items: center; margin: 0 0 24px; font-size: 17px; color: var(--text); }
.crumb a { color: var(--red); font-weight: 600; }
.crumb i { font-style: normal; color: var(--grey); margin: 0 9px; }
.crumb .mono { font-weight: 600; }
.crumb [aria-current] { color: var(--label); }
.catD .lay { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: start; }
.catD .media { min-width: 0; }
.catD .panel { position: relative; width: 100%; aspect-ratio: 290 / 268; background: var(--panel); overflow: hidden; }
.catD .panel img { width: 100%; height: 100%; object-fit: contain; filter: grayscale(1) contrast(0.9); }
.catD .panel.nop { display: flex; align-items: center; justify-content: center; }
.catD .panel.nop img { width: 22px; height: auto; opacity: 0.35; filter: grayscale(1); }
.catD .gfull { margin: 8px 0 0; font-size: 15px; }
.catD .gfull a { display: inline-block; padding: 4px 0; color: var(--red); font-weight: 600; }
.catD .thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.catD .gth { display: block; width: 75px; height: 75px; overflow: hidden; background: var(--panel); border: 1px solid var(--line); }
.catD .gth.on { border-color: var(--text); }
.catD .gth:hover { border-color: var(--text); }
.catD .gth img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(0.9); }
.catD .info { min-width: 0; }
.catD .info .eyebrow { margin-bottom: 8px; }
.catD .pn { margin: 0 0 6px; font-size: clamp(30px, 4vw, 41px); font-weight: 600; letter-spacing: -0.01em; line-height: 1.1; }
.catD h1 { margin: 0 0 20px; font-size: clamp(22px, 2.4vw, 26px); font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; }
.catD .spec { display: grid; grid-template-columns: 1fr; row-gap: 10px; column-gap: 17px; margin: 0; padding: 17px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 17px; }
.catD .spec dt { margin: 0; color: var(--grey); font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; padding-top: 3px; }
.catD .spec dd { margin: 0 0 6px; }
.catD .spec dd a { display: inline-block; padding: 3px 0; color: var(--red); font-weight: 600; }
.catD .spec .eng { display: flex; flex-wrap: wrap; gap: 5px; }
.catD .spec .tag { display: inline-block; border: 1px solid var(--line); padding: 0 8px; font-size: 13px; letter-spacing: 0.06em; color: var(--label); line-height: 22px; font-weight: 400; }
.catD .spec .tag:hover { border-color: var(--text); text-decoration: none; }
.catD .origin { margin: 17px 0 20px; font-size: 17px; color: #555; }
.catD .act { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.catD .cta { display: inline-block; background: var(--red); color: #fff; font-weight: 700; font-size: 18px; padding: 15px 24px; border-radius: 2px; }
.catD .cta:hover { text-decoration: none; background: #9a2019; }
.catD .add-list { border: 0; background: none; padding: 0; font-size: 17px; color: var(--grey); cursor: pointer; }
.catD .add-list:hover { color: var(--text); text-decoration: underline; }
.catD .rel { margin-top: 44px; }
.catD .rgrid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.catD .rcard { color: var(--text); }
.catD .rcard:hover { text-decoration: none; }
.catD .rth { display: block; height: 130px; overflow: hidden; background: var(--panel); }
.catD .rth img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(0.9); }
.catD .rth.nop { display: flex; align-items: center; justify-content: center; }
.catD .rth.nop img { width: 14px; height: auto; opacity: 0.35; filter: grayscale(1); }
.catD .rcard .b { display: block; padding: 16px 18px 18px; }
.catD .rcard .brd { display: block; margin: 0 0 4px; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; color: #555; }
.catD .rcard .pn2 { display: block; font-size: 19.5px; font-weight: 600; line-height: 1.2; }
.catD .rcard .rd { display: block; margin-top: 4px; font-size: 17px; font-weight: 600; color: var(--text); }
.catD .tm { margin: 28px 0 0; font-size: 14px; color: var(--grey); }
@media (min-width: 560px) { .catD .rgrid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) {
  .catD .lay { grid-template-columns: 493px 1fr; gap: 44px; }
  .catD .spec { grid-template-columns: 163px 1fr; }
  .catD .spec dd { margin-bottom: 0; }
}

/* ── enquiry list: the ".elist" count line reused on results pages + part detail, the add-list inline message on
   part detail, and the /enquiry page itself (mono bpn / desc / qty input / remove — thumb-less table) ── */
.quiet { font-size: 15px; color: var(--grey); }
.quiet a { display: inline-block; padding: 4px 0; color: var(--red); font-weight: 600; }
.catD .elist { margin-top: 16px; }
.add-msg { margin: 10px 0 0; font-size: 15px; color: var(--red); }
.elistpage { padding-bottom: 48px; max-width: 900px; }
.elistpage .elist-empty { color: #333; }
.elist-wrap { overflow-x: auto; margin-bottom: 20px; border-top: 1px solid var(--text); }
#elist-table { width: 100%; border-collapse: collapse; font-size: 16px; }
#elist-table th, #elist-table td { text-align: left; padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
#elist-table tbody tr:hover { background: var(--panel); }
#elist-table input[type="number"] { width: 64px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 2px; font: inherit; background: var(--bg); color: var(--text); }
#elist-table .elist-remove { display: inline-block; padding: 4px 0; color: var(--red); font-weight: 600; white-space: nowrap; }
.elistpage .act { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; }
.elist-clear { border: 1px solid var(--line); background: none; padding: 11px 18px; font-size: 16px; font-weight: 600; color: var(--text); cursor: pointer; }
.elist-clear:hover { border-color: var(--text); }
@media (max-width: 559px) {
  #elist-table, #elist-table tbody, #elist-table tr, #elist-table td { display: block; }
  #elist-table thead { display: none; }
  #elist-table tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
  #elist-table tbody tr:hover { background: transparent; }
  #elist-table td { padding: 2px 0; border: 0; }
  #elist-table td.mono { font-size: 17px; font-weight: 600; }
  #elist-table td:nth-child(3), #elist-table td:nth-child(4) { display: inline-block; padding-top: 8px; vertical-align: middle; }
  #elist-table td:nth-child(4) { margin-left: 16px; }
}

/* ── brand / engine browse pages: crumb + header above the shared chips / rows / pager ── */
.bpage .crumb, .epage .crumb { margin-bottom: 20px; }
.bhead { margin: 0 0 24px; }
.bhead .blogo { max-height: 68px; width: auto; margin: 0 0 8px; }
.bhead .bname { font-size: clamp(30px, 4vw, 44px); letter-spacing: 0.02em; text-transform: uppercase; }
.bhead .bsub { margin: 6px 0 0; font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--grey); }
.bhead .lead { margin-top: 12px; }
.epage .ehead { margin: 0 0 24px; font-size: clamp(30px, 4vw, 44px); }

/* ── Task 14: services (reuses the homepage's .cards/.card3/.card-media) + news listing / single post ── */
.postcard { color: var(--text); }
.postcard:hover { text-decoration: none; }
/* forces a 16:9 box for both a real <img> and the .ph placeholder — same override technique as .hero-media */
.news-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--panel); }
.news-media .ph, .news-media img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; }
.news-media img { object-fit: cover; }
.date { display: block; font-size: 14px; color: var(--grey); }
.postcard .date { margin-bottom: 8px; }
.post .date { margin: 10px 0 20px; }
.post .news-media { margin-bottom: 24px; }
.post .back { display: inline-block; margin-top: 28px; color: var(--red); font-weight: 600; }
/* ── print ────────────────────────────────────────────────────────────── */
.print-only { display: none; }
@media print {
  .hdr, .foot, .cta, .menu, .skip, .hsearch { display: none; }
  .fade, .js .fade { opacity: 1; transform: none; }
  body { font-size: 12pt; color: var(--text); }
  a, .crumb a, .catD .spec dd a { text-decoration: none; color: var(--text); }
  /* /parts/* — keep the breadcrumb, main image, partno, description and spec list; drop everything interactive */
  .catD .thumbs, .catD .gfull, .catD .act, .catD .add-msg, .catD .elist, .catD .rel, .catD .origin { display: none; }
  .catD .lay { display: grid; grid-template-columns: 220px 1fr; gap: 24px; }
  .catD .panel { aspect-ratio: auto; background: none; }
  .catD .panel img { filter: none; width: 100%; height: auto; object-fit: contain; }
  .catD .spec { grid-template-columns: 130px 1fr; }
  .catD .spec .tag { border-color: var(--label); }
  .catD .print-only { display: block; margin: 16px 0 0; font-size: 12pt; font-weight: 600; }
}

/* ── chat ── */
/* Visitor live chat widget (spec 2026-09-24 §5.4, Task 4). No fixed WhatsApp CTA exists elsewhere on the
   site (header/footer links only), so the bubble does not need a mobile bottom-offset override. */
.wchat-bubble {
  position: fixed; right: 16px; bottom: 16px; width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--red); border: 0; color: #fff; font-size: 26px; line-height: 1; cursor: pointer; z-index: 900;
}
.wchat-bubble:hover { background: #9a2019; }
.wchat-bubble-ico { display: block; }
.wchat-panel {
  position: fixed; right: 16px; bottom: 84px; z-index: 900;
  width: min(380px, calc(100vw - 32px)); height: min(600px, calc(100vh - 110px));   /* fixed, not max-: an empty chat stays tall */
  display: flex; flex-direction: column;
  background: var(--bg); border: 1px solid #8a8a8a; border-radius: 6px;
}
.wchat-panel[hidden] { display: none; }   /* [hidden]{display:none} loses to the display:flex rule above without this — same fix as .js-tabs .apanel[hidden] */
@media (max-width: 480px) {
  .wchat-panel { inset: 0; width: 100%; max-height: none; height: 100vh; height: 100dvh; border-radius: 0; }
}
.wchat-head { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.wchat-head strong { flex: 1; font-size: 16px; }
.wchat-stat { font-size: 12px; color: var(--grey); white-space: nowrap; }
.wchat-x { background: none; border: 0; padding: 2px 4px; font-size: 22px; line-height: 1; color: var(--grey); cursor: pointer; }
.wchat-x:hover { color: var(--text); }
.wchat-body { overflow-y: auto; flex: 1; padding: 14px; }
.wchat-welcome { margin: 0 0 14px; font-size: 15px; color: var(--text); }
.wchat-body > .wchat-consent { margin: -6px 0 14px; font-size: 11px; line-height: 1.4; }   /* PDPA line under the welcome, before the first message */
/* v2 (spec §14 D16): optional contact bar under the header — one row on desktop, two short rows on phones */
.wchat-cbar { flex: none; border-bottom: 1px solid var(--line); background: var(--panel); }
.wchat-cbar-open { padding: 8px 12px; }
.wchat-cform { display: grid; grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr) auto auto; align-items: center; gap: 6px; }
.wchat-cform > .wchat-ci-co { grid-column: 2 / -1; }   /* line 1: Company spans; line 2: Name · Mobile No · ✓ × (2026-09-28) */
.wchat-cl { font-size: 12px; font-weight: 500; color: var(--grey); white-space: nowrap; }
.wchat-ci {
  width: 100%; min-width: 0; height: 30px; padding: 4px 7px; font-size: 13px; font-family: inherit; color: var(--text);
  background: var(--bg); border: 1px solid var(--line); border-radius: 2px;
}
.wchat-ci:focus { border-color: var(--text); }
.wchat-cok, .wchat-cmin {
  display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0;
  font-size: 16px; line-height: 1; border-radius: 2px; cursor: pointer;
}
.wchat-cok { color: #fff; background: var(--red); border: 0; }
.wchat-cok:hover { background: #9a2019; }
.wchat-cok:disabled { opacity: 0.6; cursor: default; }
.wchat-cmin { color: var(--grey); background: var(--bg); border: 1px solid var(--line); }
.wchat-cmin:hover { color: var(--text); border-color: var(--text); }
.wchat-cline {
  display: block; width: 100%; padding: 7px 14px; font-size: 13px; font-family: inherit; text-align: left; color: var(--text);
  background: none; border: 0; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.wchat-cline:hover { text-decoration: underline; }
.wchat-cbar .wchat-err { margin-top: 6px; font-size: 12px; }
@media (max-width: 480px) {
  .wchat-cform { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "cl ci ci" "nl ni x" "pl pi ok"; }
  .wchat-cform > :nth-child(1) { grid-area: cl; }
  .wchat-cform > :nth-child(2) { grid-area: ci; }
  .wchat-cform > :nth-child(3) { grid-area: nl; }
  .wchat-cform > :nth-child(4) { grid-area: ni; }
  .wchat-cform > :nth-child(5) { grid-area: pl; }
  .wchat-cform > :nth-child(6) { grid-area: pi; }
  .wchat-cform > :nth-child(7) { grid-area: ok; }
  .wchat-cform > :nth-child(8) { grid-area: x; }
  .wchat-ci { height: 34px; font-size: 16px; }   /* 16px: iOS Safari zooms the page into any smaller input on focus */
  .wchat-cok, .wchat-cmin { width: 34px; height: 34px; }
}
.wchat-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.wchat-err { margin: 0; font-size: 13px; color: var(--red); }
.wchat-err:empty { display: none; }
.wchat-consent { margin: 0; font-size: 12px; color: var(--grey); }
.wchat-consent a { color: var(--red); font-weight: 600; }
.wchat-foot[hidden] { display: none; }
.wchat-go {
  align-self: flex-start; padding: 10px 16px; font-size: 15px; font-weight: 600; color: #fff;
  background: var(--red); border: 0; border-radius: 2px; cursor: pointer;
}
.wchat-go:hover { background: #9a2019; }
.wchat-photo {
  flex: none; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  font-size: 18px; background: none; border: 1px solid var(--line); border-radius: 50%; cursor: pointer;
}
.wchat-photo:hover { border-color: var(--text); }
.wchat-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.wchat-m { max-width: 82%; display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 6px; font-size: 15px; line-height: 1.4; }
.wchat-m.wchat-visitor { align-self: flex-end; background: var(--red); color: #fff; }
.wchat-m.wchat-staff { align-self: flex-start; background: var(--panel); color: var(--text); }
.wchat-m.wchat-system { align-self: center; text-align: center; color: var(--muted, #666); background: none; font-size: 13px; }
.wchat-who { font-size: 11px; opacity: 0.8; }
.wchat-txt { white-space: pre-wrap; overflow-wrap: anywhere; }
.wchat-ts { align-self: flex-end; font-size: 10px; opacity: 0.7; }
.wchat-photo-card {
  margin-top: 10px; padding: 12px; display: flex; flex-direction: column; gap: 8px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 6px;
}
.wchat-photo-card strong { font-size: 14px; }
.wchat-photo-card p { margin: 0; font-size: 13px; color: var(--grey); }
.wchat-photo-card a { display: inline-block; padding: 8px 12px; font-size: 14px; font-weight: 600; text-align: center; border-radius: 2px; }
.wchat-photo-card a.wchat-wa { background: #1a8d4a; color: #fff; }
.wchat-photo-card a.wchat-wa:hover { text-decoration: none; background: #157a3f; }
.wchat-photo-card a.wchat-call { background: none; border: 1px solid var(--line); color: var(--text); }
.wchat-photo-card a.wchat-call:hover { text-decoration: none; border-color: var(--text); }
.wchat-foot { display: flex; gap: 6px; padding: 10px 12px; border-top: 1px solid var(--line); }
.wchat-in { flex: 1; resize: none; max-height: 90px; padding: 8px 10px; font-size: 15px; font-family: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 2px; }
.wchat-in:focus { border-color: var(--text); }
.wchat-send {
  flex: none; padding: 0 16px; font-size: 15px; font-weight: 600; color: #fff;
  background: var(--red); border: 0; border-radius: 2px; cursor: pointer;
}
.wchat-send:hover { background: #9a2019; }
