/*
Theme Name: AutoChainX
Description: Custom theme for AutoChainX, luxury car parts wholesale. English and Arabic, built for phones first.
Version: 1.39.0
Requires PHP: 8.0
Text Domain: autochainx
*/

:root {
  --ink: #0f2340;
  --ink-soft: #2a3a52;
  --paper: #f5f7fa;
  --white: #ffffff;
  --steel: #50607a;
  --line: #d2dbe7;
  /* Brand navy, from brand/brand-colors.css */
  --brass: #0f2340;
  --brass-bg: #e4e9f1;
  --wa: #0f7a4a;
  --wa-dark: #0b5e38;
  --radius: 6px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Tahoma, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-tap-highlight-color: rgba(15, 35, 64, .15); }
a, button { touch-action: manipulation; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; }

.container { width: min(1120px, 100% - 2.5rem); margin-inline: auto; padding-inline: env(safe-area-inset-left, 0px) env(safe-area-inset-right, 0px); }
.skip { position: absolute; inset-inline-start: -999px; top: 0; background: var(--ink); color: var(--white); padding: .6rem 1rem; z-index: 100; }
.skip:focus { inset-inline-start: 0; }

/* Draft notice (controlled in js/main.js) */
.draft-note { background: #fff4d6; color: #5a3d07; font-size: .9rem; text-align: center; padding: .5rem 1rem; border-bottom: 1px solid #ecd9a0; }

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-row { display: flex; align-items: center; gap: 1.5rem; min-height: 68px; }
.logo { display: inline-flex; align-items: center; flex-shrink: 0; text-decoration: none; }
.logo { gap: .55rem; color: var(--ink); direction: ltr; }
.logo img { width: 36px; height: 36px; }
.wordmark { font-family: "Barlow", "Helvetica Neue", Arial, sans-serif; font-weight: 700; font-size: 1.6rem; line-height: 1; letter-spacing: 0; }
.wordmark b { color: var(--gold-dark); font-weight: inherit; }
.nav { display: flex; gap: 1.6rem; margin-inline-start: auto; }
.nav a { text-decoration: none; padding: .4rem 0; border-bottom: 2px solid transparent; font-weight: 500; color: var(--ink-soft); }
@media (hover: hover) { .nav a:hover { color: var(--ink); border-bottom-color: var(--line); } }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--brass); }
.header-actions { display: flex; align-items: center; gap: .8rem; }
.lang { text-decoration: none; font-weight: 600; color: var(--steel); padding: .3rem .6rem; border: 1px solid var(--line); border-radius: var(--radius); }
.lang:hover { color: var(--ink); border-color: var(--steel); }
.lang .l-short { display: none; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius); padding: .45rem .7rem; font: inherit; color: var(--ink); cursor: pointer; }

/* Buttons */
.btn { display: inline-block; font: inherit; font-weight: 600; text-decoration: none; padding: .8rem 1.4rem; border-radius: var(--radius); border: 2px solid transparent; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; text-align: center; }
.btn-wa { background: var(--wa); color: var(--white); }
.btn-wa:hover { background: var(--wa-dark); }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: var(--white); }
.btn-sm { padding: .5rem 1rem; font-size: .92rem; }

/* Hero */
.hero { padding: 4.5rem 0 4rem; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3.5rem; align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); letter-spacing: -.02em; line-height: 1.1; margin-bottom: .5em; }
[dir="rtl"] .hero h1, [dir="rtl"] h2, [dir="rtl"] h3 { letter-spacing: 0; }
[dir="rtl"] .hero h1 { line-height: 1.35; }
.hero .lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 36em; }
.cta-row { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.8rem 0 1.6rem; }
.facts { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem 1.8rem; color: var(--steel); font-size: .95rem; }
.facts li { padding-inline-start: 1.1rem; position: relative; }
.facts li::before { content: ""; position: absolute; inset-inline-start: 0; top: .6em; width: .5rem; height: .5rem; background: var(--brass); border-radius: 1px; }

/* Order sheet (hero) */
.sheet { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 1px 0 var(--line); }
.sheet-head { display: flex; justify-content: space-between; gap: 1rem; padding: .9rem 1.2rem; border-bottom: 2px solid var(--ink); font-weight: 700; }
.sheet-head small { font-weight: 500; color: var(--steel); }
.sheet-row { display: grid; grid-template-columns: 1fr auto; gap: .2rem 1rem; padding: .85rem 1.2rem; border-bottom: 1px solid var(--line); align-items: center; }
.sheet-row:last-of-type { border-bottom: 0; }
.sheet-row .item { font-weight: 600; }
.sheet-row .fit { color: var(--steel); font-size: .92rem; grid-column: 1; }
.sheet-row .stamp { grid-column: 2; grid-row: 1 / span 2; }
.sheet-foot { padding: .8rem 1.2rem; border-top: 1px solid var(--line); background: var(--paper); font-size: .88rem; color: var(--steel); border-radius: 0 0 var(--radius) var(--radius); }

/* Grade stamps */
.stamp { display: inline-block; font-size: .82rem; font-weight: 700; padding: .15rem .6rem; border-radius: 3px; border: 1.5px solid; white-space: nowrap; line-height: 1.5; }
.stamp-genuine { background: var(--ink); color: var(--white); border-color: var(--ink); }
.stamp-oem { background: var(--brass-bg); color: var(--brass); border-color: var(--brass); }
.stamp-after { background: transparent; color: var(--steel); border-color: var(--steel); }

/* Sections */
.section { padding: 4.5rem 0; }
.section-tint { background: var(--white); border-block: 1px solid var(--line); }
.section h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); letter-spacing: -.01em; max-width: 24em; }
.section .intro { color: var(--ink-soft); max-width: 40em; font-size: 1.08rem; margin-bottom: 2.2rem; }

.brands { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; }
.brands li { border: 1px solid var(--line); background: var(--white); padding: .45rem 1rem; border-radius: 999px; font-weight: 600; color: var(--ink-soft); }
.section-tint .brands li { background: var(--paper); }

.grades { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.grade { padding: 1.6rem 1.5rem; }
.grade + .grade { border-inline-start: 1px solid var(--line); }
.grade h3 { font-size: 1.15rem; margin: .8rem 0 .5rem; }
.grade p { color: var(--ink-soft); margin: 0; }
.trade-terms .grade:nth-child(3n+1) { border-inline-start: 0; }
.trade-terms .grade:nth-child(n+4) { border-top: 1px solid var(--line); }

.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.steps li { counter-increment: step; padding-top: 1rem; border-top: 3px solid var(--ink); }
.steps li::before { content: counter(step); display: block; font-size: 1.6rem; font-weight: 800; color: var(--brass); margin-bottom: .2rem; }
.steps h3 { font-size: 1.05rem; margin-bottom: .3em; }
.steps p { color: var(--ink-soft); margin: 0; font-size: .97rem; }

.points { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem 3rem; }
.points li { padding-inline-start: 1.4rem; position: relative; }
.points li::before { content: ""; position: absolute; inset-inline-start: 0; top: .6em; width: .6rem; height: .6rem; background: var(--brass); border-radius: 1px; }
.points strong { display: block; margin-bottom: .1em; }
.points span { color: var(--ink-soft); }

.pillars .grade h3 { margin-top: 0; font-size: 1.2rem; }
@media (min-width: 901px) {
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .pillars .grade + .grade { border-inline-start: 0; }
  .pillars .grade:nth-child(even) { border-inline-start: 1px solid var(--line); }
  .pillars .grade:nth-child(n+3) { border-top: 1px solid var(--line); }
}
.chips li { font-weight: 500; }
.after-grid { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; margin-top: 1.8rem; }
.social-note { margin: 0; color: var(--ink-soft); }
.social-note a, .more-link a { color: var(--brass); font-weight: 600; }
.more-link { margin: 1.8rem 0 0; }

/* FAQ */
.faq { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); max-width: 46rem; }
.faq details + details { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; padding: 1rem 1.3rem; min-height: 44px; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 700; color: var(--brass); font-size: 1.2rem; line-height: 1.2; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0; padding: 0 1.3rem 1.1rem; color: var(--ink-soft); }

/* Products */
.filters { display: flex; flex-wrap: wrap; gap: .3rem 1.4rem; margin-bottom: 1.8rem; border-bottom: 1px solid var(--line); }
.filters button { background: none; border: 0; border-bottom: 3px solid transparent; font: inherit; font-weight: 600; color: var(--steel); padding: .6rem 0; cursor: pointer; margin-bottom: -1px; }
.filters button:hover { color: var(--ink); }
.filters button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--brass); }
.grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.4rem; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card[hidden] { display: none; }
.card img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; background: #e4e9ee; border-bottom: 1px solid var(--line); }
.card-body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.card .card-title { font-size: 1.05rem; margin: 0; letter-spacing: 0; }
.card .fit { color: var(--steel); font-size: .93rem; margin: 0; }
.card .ref { font-family: var(--mono); font-size: .85rem; color: var(--steel); margin: 0; direction: ltr; text-align: start; }
[dir="rtl"] .card .ref { text-align: right; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-top: auto; padding-top: .8rem; }
.empty { color: var(--steel); }

/* Page head */
.page-head { padding: 3.5rem 0 2.5rem; }
.page-head h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); letter-spacing: -.02em; margin-bottom: .4em; }
[dir="rtl"] .page-head h1 { letter-spacing: 0; line-height: 1.4; }
.page-head p { font-size: 1.1rem; color: var(--ink-soft); max-width: 40em; margin: 0; }

/* About / Contact */
.two { display: grid; grid-template-columns: .8fr 1.2fr; gap: 3rem; align-items: start; }
.two-contact { grid-template-columns: 1.2fr .8fr; }
.portrait { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); background: #e4e9ee; }
.prose p { color: var(--ink-soft); max-width: 38em; }
.prose h2 { margin-top: 1.6rem; font-size: 1.35rem; }
.prose h2:first-child { margin-top: 0; }
.channels { list-style: none; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.channels li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; padding: 1.1rem 1.3rem; }
.channels li + li { border-top: 1px solid var(--line); }
.channels .label { font-weight: 700; display: block; }
.social-id { display: flex; align-items: center; gap: .85rem; min-width: 0; }
.social-ico { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; color: #fff; }
.social-ico .ico { width: 20px; height: 20px; }
.si-ig { background: linear-gradient(45deg, #f09433, #dc2743 45%, #bc1888 70%, #6a3fc8); }
.si-fb { background: #1877f2; }
.si-tt, .si-x { background: #000; }
.si-wa { background: #0f7a4a; }
.si-brand { background: var(--ink); color: #f0b429; }
.social-id > div { min-width: 0; }
.channels .value { color: var(--steel); direction: ltr; unicode-bidi: plaintext; overflow-wrap: anywhere; }
.checklist { margin-top: 1.4rem; padding-inline-start: 1.2rem; color: var(--ink-soft); }
.checklist li { margin-bottom: .3rem; }

/* CTA band */
.band { background: var(--brass); color: var(--white); padding: 3.5rem 0; }
.band-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.band h2 { margin: 0 0 .3em; font-size: clamp(1.4rem, 3vw, 1.9rem); }
.band p { margin: 0; color: #d3e0f2; }

/* Footer */
.site-footer { background: var(--hero-bg); color: #c3cfdf; padding: 3rem 0 calc(10rem + env(safe-area-inset-bottom, 0px)); font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
.site-footer .logo { margin-bottom: .9rem; color: var(--white); }
.site-footer .wordmark b { color: var(--gold); }
.site-footer h3 { color: var(--white); font-size: 1rem; margin-bottom: .6em; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: .35rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: var(--white); }
.legal { margin-top: 2.2rem; padding-top: 1.4rem; border-top: 1px solid #22385c; font-size: .88rem; color: #9db0c9; }
.legal p { max-width: 62em; }
.legal-links { display: flex; flex-wrap: wrap; gap: 0 1.4rem; margin-top: .4rem; }

/* Floating WhatsApp */
.float-contact { position: fixed; inset-inline-end: max(1rem, env(safe-area-inset-right, 0px)); bottom: max(1rem, env(safe-area-inset-bottom, 0px)); z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: .7rem; }
[dir="rtl"] .float-contact { align-items: flex-start; }
.fc { display: inline-flex; align-items: center; gap: .55rem; color: var(--white); text-decoration: none; font-weight: 700; padding: .8rem 1.1rem; border-radius: 999px; box-shadow: 0 2px 10px rgba(0,0,0,.25); }
.fc-wa { background: var(--wa); }
.fc-wa:hover { background: var(--wa-dark); }
.fc-ig { background: linear-gradient(45deg, #f09433, #dc2743 45%, #bc1888 70%, #6a3fc8); }
.fc-ig:hover { filter: brightness(.92); }
.fc:active { transform: scale(.94); }

/* Icons: stroked outlines, with .f parts filled */
.ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.ico .f { fill: currentColor; stroke: none; }

/* Footer social icons */
.site-footer li.social-row { display: flex; gap: .6rem; margin-top: .8rem; }
.site-footer .social-row a { display: inline-flex; padding: 0; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); color: var(--white); }
.site-footer .social-row a:hover { background: rgba(255,255,255,.18); text-decoration: none; }
.social-row .ico { width: 20px; height: 20px; }

/* 404 */
.notfound { padding: 6rem 0; text-align: start; }

/* Tablets: five nav links need the room, the floating WhatsApp button covers the header one */
@media (min-width: 761px) and (max-width: 1080px) {
  .header-row { gap: 1rem; }
  .nav { gap: 1.1rem; }
  .nav a { white-space: nowrap; }
  .header-actions .btn { display: none; }
}

@media (max-width: 900px) {
  .hero-grid, .two, .two-contact { grid-template-columns: 1fr; gap: 2.2rem; }
  .grades { grid-template-columns: 1fr; }
  .grade + .grade { border-inline-start: 0; border-top: 1px solid var(--line); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .points { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .portrait { max-width: 280px; }
}

@media (max-width: 760px) {
  .container { width: calc(100% - 2rem); }
  .header-row { flex-wrap: wrap; gap: 0 .6rem; min-height: 60px; }
  .logo { padding-block: .6rem; margin-inline-end: auto; }
  .logo img { width: 32px; height: 32px; }
  .wordmark { font-size: 1.4rem; }
  /* Icon-only menu button on phones; the text stays as its accessible name */
  .menu-btn { display: inline-flex; order: 4; width: 44px; height: 44px; padding: 0; font-size: 0; background: linear-gradient(currentColor, currentColor) center calc(50% - 6px) / 18px 2px no-repeat, linear-gradient(currentColor, currentColor) center / 18px 2px no-repeat, linear-gradient(currentColor, currentColor) center calc(50% + 6px) / 18px 2px no-repeat; }
  .menu-btn[aria-expanded="true"] { background-color: var(--brass-bg); border-color: var(--brass); }
  .header-actions { order: 3; gap: .4rem; }
  .header-actions .btn { display: none; }
  .lang { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding-inline: .6rem; }
  .lang .l-full { display: none; }
  .lang .l-short { display: inline; }
  .nav { display: none; order: 5; flex-basis: 100%; flex-direction: column; gap: 0; margin: 0; border-top: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a { display: flex; align-items: center; min-height: 52px; padding: 0; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .nav a[aria-current="page"] { border-bottom-color: var(--line); box-shadow: inset 3px 0 0 var(--brass); padding-inline-start: .8rem; }
  [dir="rtl"] .nav a[aria-current="page"] { box-shadow: inset -3px 0 0 var(--brass); }
  .hero { padding: 2rem 0 2.6rem; }
  .hero-grid { gap: 1.8rem; }
  .hero .lead { font-size: 1.05rem; }
  .cta-row { flex-direction: column; margin: 1.4rem 0 1.2rem; }
  .cta-row .btn { width: 100%; min-height: 52px; display: flex; align-items: center; justify-content: center; }
  .facts { flex-direction: column; gap: .3rem; }
  .sheet-row, .sheet-head, .sheet-foot { padding-inline: 1rem; }
  .section { padding: 2.6rem 0; }
  .section .intro { font-size: 1rem; margin-bottom: 1.6rem; }
  .page-head { padding: 2rem 0 1.4rem; }
  .page-head p { font-size: 1rem; }
  .steps { grid-template-columns: 1fr; gap: 1.2rem; }
  .band { padding: 2.4rem 0; }
  .band-row .btn { width: 100%; min-height: 52px; display: flex; align-items: center; justify-content: center; }
  .btn { min-height: 48px; }
  .btn-sm { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .filters { flex-wrap: nowrap; overflow-x: auto; gap: 0 1.2rem; margin-inline: -1rem; padding-inline: 1rem; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .filters::-webkit-scrollbar { display: none; }
  .filters button { flex: none; min-height: 48px; min-width: 44px; padding-inline: .3rem; white-space: nowrap; scroll-snap-align: start; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
  .card-body { padding: .7rem .75rem .8rem; gap: .25rem; }
  .card .card-title { font-size: .95rem; }
  .card .fit { font-size: .82rem; }
  .card .ref { font-size: .75rem; }
  .card-foot { flex-direction: column; align-items: flex-start; gap: .5rem; padding-top: .5rem; }
  .card-foot .btn { width: 100%; }
  .stamp { font-size: .78rem; }
  .channels li { padding: .9rem 1rem; }
  .channels li .btn { min-width: 120px; }
  .site-footer a { display: inline-block; padding-block: .6rem; min-width: 44px; }
  .site-footer li { margin-bottom: 0; }
  .fc { width: 56px; height: 56px; padding: 0; justify-content: center; }
  .fc span { display: none; }
  .fc .ico { width: 28px; height: 28px; }
  .fc-ig .ico { width: 26px; height: 26px; }
}

@media (max-width: 380px) {
  .hero h1 { font-size: 1.85rem; }
  .wordmark { font-size: 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* WordPress: product filters, pagination and single product */
.filter-row { display: flex; gap: .5rem; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: .5rem; margin-bottom: .6rem; scrollbar-width: none; }
.filter-row::-webkit-scrollbar { display: none; }
.filter-row a { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--ink-soft); font-weight: 600; font-size: .95rem; text-decoration: none; }
.filter-row a[aria-current="true"] { background: var(--brass); border-color: var(--brass); color: var(--white); }
.product-count { color: var(--steel); margin: .8rem 0 1.2rem; }
.card > a { display: block; }
.card .card-title a { text-decoration: none; }
.pagination { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 2rem; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 .7rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); text-decoration: none; }
.pagination .current { background: var(--brass); border-color: var(--brass); color: var(--white); }
.single-part { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.single-part img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #e4e9ee; }
.single-part h1 { font-size: clamp(1.6rem, 4vw, 2.3rem); margin-bottom: .4em; }
.single-part .btn { margin-top: 1rem; }
.part-desc { margin-top: 0; color: var(--ink-soft); }
@media (max-width: 760px) { .single-part { grid-template-columns: 1fr; gap: 1.4rem; } }

/* Homepage hero: dark, with a gold accent */
:root { --gold: #f0b429; --hero-bg: #0f2340; }
.hero { color: var(--white); min-height: 620px; padding: 5.5rem 0 5rem; background: linear-gradient(to right, var(--hero-bg) 30%, rgba(15, 35, 64, 0) 58%), url(assets/img/hero-wide.webp) right center / cover no-repeat, var(--hero-bg); }
[dir="rtl"] .hero { background: linear-gradient(to left, var(--hero-bg) 30%, rgba(15, 35, 64, 0) 58%), url(assets/img/hero-wide-rtl.webp) left center / cover no-repeat, var(--hero-bg); }
.hero .hero-grid { grid-template-columns: minmax(0, 560px); }
@media (min-width: 761px) and (max-width: 1080px) {
  .hero { background: linear-gradient(to right, var(--hero-bg) 50%, rgba(15, 35, 64, .35) 85%), url(assets/img/hero-wide.webp) right center / cover no-repeat, var(--hero-bg); }
  [dir="rtl"] .hero { background: linear-gradient(to left, var(--hero-bg) 50%, rgba(15, 35, 64, .35) 85%), url(assets/img/hero-wide-rtl.webp) left center / cover no-repeat, var(--hero-bg); }
}
.hero h1 { color: var(--white); }
.hero h1::before { content: ""; display: block; width: 56px; height: 3px; background: var(--gold); margin-bottom: 1.3rem; }
.hero .lead { color: #d3dded; }
.hero .btn-line { border-color: rgba(255, 255, 255, .65); color: var(--white); }
.hero .btn-line:hover { background: var(--white); border-color: var(--white); color: var(--ink); }
.hero .facts { color: #c3cfdf; }
.hero .facts li::before { background: var(--gold); }
@media (max-width: 760px) {
  .hero { min-height: 0; padding: 2.6rem 0 80vw; background: linear-gradient(to bottom, var(--hero-bg) calc(100% - 115vw), rgba(15, 35, 64, 0) calc(100% - 67vw)), url(assets/img/hero-tall.webp) center bottom / 100% auto no-repeat, var(--hero-bg); }
  [dir="rtl"] .hero { background: linear-gradient(to bottom, var(--hero-bg) calc(100% - 115vw), rgba(15, 35, 64, 0) calc(100% - 67vw)), url(assets/img/hero-tall-rtl.webp) center bottom / 100% auto no-repeat, var(--hero-bg); }
}

/* Featured parts, below the hero */
.featured { padding-top: 2.5rem; }
.featured .sheet { border-top: 3px solid var(--gold); }
@media (min-width: 761px) {
  .featured .sheet { display: grid; grid-template-columns: repeat(2, 1fr); }
  .featured .sheet-head, .featured .sheet-foot { grid-column: 1 / -1; }
  .featured .sheet-row { border-bottom: 0; border-inline-end: 1px solid var(--line); align-content: start; }
}
@media (min-width: 1081px) { .featured .sheet { grid-template-columns: repeat(4, 1fr); } }

/* Gold accents through the page, darker on light backgrounds so they stay readable */
:root { --gold-dark: #946500; }
.section > .container > h2::before { content: ""; display: block; width: 40px; height: 3px; background: var(--gold-dark); margin-bottom: .9rem; }
.steps li::before { color: var(--gold-dark); }
.band { position: relative; overflow: hidden; background: radial-gradient(90% 160% at 85% 0%, #1b3a66 0%, rgba(27, 58, 102, 0) 62%), var(--hero-bg); border-top: 3px solid var(--gold); }
.band-row { position: relative; z-index: 1; }

/* Heading fonts, self-hosted. Body text stays on the system font for speed. */
@font-face { font-family: "Manrope"; font-weight: 700; font-style: normal; font-display: swap; src: url("assets/fonts/manrope-700.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2122; }
@font-face { font-family: "Manrope"; font-weight: 800; font-style: normal; font-display: swap; src: url("assets/fonts/manrope-800.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2122; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-weight: 700; font-style: normal; font-display: swap; src: url("assets/fonts/plex-arabic-700.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+200C-200F, U+FB50-FDFF, U+FE70-FEFF; }
h1, h2, h3, .band h2 { font-family: "Manrope", "IBM Plex Sans Arabic", var(--font); }
.hero h1, .page-head h1 { font-weight: 800; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { font-family: "IBM Plex Sans Arabic", "Manrope", var(--font); font-weight: 700; }

/* Details: section headings, feature icons, brand wall, category links */
@media (max-width: 760px) { .section > .container > h2 { font-size: 1.9rem; } }
.pillars .grade::before { content: ""; display: block; width: 32px; height: 32px; margin-bottom: .9rem; background: var(--gold-dark); -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.pillars .grade:nth-child(1)::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2032%2032%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2216%22%20cy%3D%2210%22%20r%3D%226%22/%3E%3Cpath%20d%3D%22M5%2028c1-7%205-10%2011-10s10%203%2011%2010%22/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2032%2032%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2216%22%20cy%3D%2210%22%20r%3D%226%22/%3E%3Cpath%20d%3D%22M5%2028c1-7%205-10%2011-10s10%203%2011%2010%22/%3E%3C/svg%3E"); }
.pillars .grade:nth-child(2)::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2032%2032%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2214%22%20cy%3D%2214%22%20r%3D%229%22/%3E%3Cpath%20d%3D%22M21%2021l7%207%22/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2032%2032%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2214%22%20cy%3D%2214%22%20r%3D%229%22/%3E%3Cpath%20d%3D%22M21%2021l7%207%22/%3E%3C/svg%3E"); }
.pillars .grade:nth-child(3)::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2032%2032%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M5%2010l11-6%2011%206v12l-11%206-11-6z%22/%3E%3Cpath%20d%3D%22M5%2010l11%206%2011-6M16%2016v12%22/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2032%2032%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M5%2010l11-6%2011%206v12l-11%206-11-6z%22/%3E%3Cpath%20d%3D%22M5%2010l11%206%2011-6M16%2016v12%22/%3E%3C/svg%3E"); }
.pillars .grade:nth-child(4)::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2032%2032%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M16%203l11%204v8c0%207-5%2012-11%2014C10%2027%205%2022%205%2015V7z%22/%3E%3Cpath%20d%3D%22M11%2016l4%204%207-8%22/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2032%2032%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M16%203l11%204v8c0%207-5%2012-11%2014C10%2027%205%2022%205%2015V7z%22/%3E%3Cpath%20d%3D%22M11%2016l4%204%207-8%22/%3E%3C/svg%3E"); }
.pillars .grade:nth-child(5)::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2032%2032%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%208h17v14H3zM20%2013h5l4%205v4h-9z%22/%3E%3Ccircle%20cx%3D%229%22%20cy%3D%2224%22%20r%3D%223%22/%3E%3Ccircle%20cx%3D%2223%22%20cy%3D%2224%22%20r%3D%223%22/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2032%2032%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%208h17v14H3zM20%2013h5l4%205v4h-9z%22/%3E%3Ccircle%20cx%3D%229%22%20cy%3D%2224%22%20r%3D%223%22/%3E%3Ccircle%20cx%3D%2223%22%20cy%3D%2224%22%20r%3D%223%22/%3E%3C/svg%3E"); }
.pillars .grade:nth-child(6)::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2032%2032%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%2026V6M4%2026h24%22/%3E%3Cpath%20d%3D%22M8%2020l6-6%205%204%208-9%22/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2032%2032%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%2026V6M4%2026h24%22/%3E%3Cpath%20d%3D%22M8%2020l6-6%205%204%208-9%22/%3E%3C/svg%3E"); }
.brand-grid { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
.brand-grid a { display: flex; flex-direction: column; gap: .55rem; align-items: center; justify-content: center; min-height: 108px; padding: .5rem; text-align: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); font-family: "Manrope", "IBM Plex Sans Arabic", var(--font); font-weight: 700; text-decoration: none; transition: border-color .15s; }
[dir="rtl"] .brand-grid a { font-family: "IBM Plex Sans Arabic", "Manrope", var(--font); }
.brand-grid a:hover { border-color: var(--gold-dark); }
/* Brand logos: one navy colour for every maker, drawn from assets/img/brands/<slug>.svg. Wide wordmarks get a wider box. */
.brand-grid a::before { content: ""; width: var(--logo-w, 46px); height: 46px; background: var(--ink); -webkit-mask: var(--logo) center / var(--logo-w, 46px) var(--logo-w, 46px) no-repeat; mask: var(--logo) center / var(--logo-w, 46px) var(--logo-w, 46px) no-repeat; }
.brand-grid a[href$="/brand/mercedes-benz/"] { --logo: url(assets/img/brands/mercedes-benz.svg); }
.brand-grid a[href$="/brand/bmw/"] { --logo: url(assets/img/brands/bmw.svg); }
.brand-grid a[href$="/brand/audi/"] { --logo: url(assets/img/brands/audi.svg); --logo-w: 64px; }
.brand-grid a[href$="/brand/land-rover/"] { --logo: url(assets/img/brands/land-rover.svg); --logo-w: 66px; }
.brand-grid a[href$="/brand/maserati/"] { --logo: url(assets/img/brands/maserati.svg); }
.brand-grid a[href$="/brand/ferrari/"] { --logo: url(assets/img/brands/ferrari.svg); }
.brand-grid a[href$="/brand/bentley/"] { --logo: url(assets/img/brands/bentley.svg); --logo-w: 76px; }
.brand-grid a[href$="/brand/rolls-royce/"] { --logo: url(assets/img/brands/rolls-royce.svg); }
.brand-grid a[href$="/brand/mclaren/"] { --logo: url(assets/img/brands/mclaren.svg); --logo-w: 92px; }
.brand-grid a[href$="/brand/porsche/"] { --logo: url(assets/img/brands/porsche.svg); }
.brand-grid a[href$="/brand/lamborghini/"] { --logo: url(assets/img/brands/lamborghini.svg); }
.brand-grid a[href$="/brand/jaguar/"] { --logo: url(assets/img/brands/jaguar.svg); --logo-w: 70px; }
.brand-grid a { font-size: .88rem; }
.brand-grid .brand-more { display: flex; align-items: center; justify-content: center; min-height: 108px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: .5rem; color: var(--steel); text-align: center; font-size: .95rem; }
.cat-links { list-style: none; display: grid; gap: .7rem; }
.cat-links a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 60px; padding: .7rem 1.1rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); font-weight: 600; text-decoration: none; transition: border-color .15s; }
.cat-links a:hover { border-color: var(--gold-dark); }
.cat-links a::after { content: "\2192"; color: var(--gold-dark); font-weight: 700; font-size: 1.15rem; }
[dir="rtl"] .cat-links a::after { content: "\2190"; }
@media (min-width: 761px) { .brand-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .8rem; } .brand-grid a, .brand-grid .brand-more { min-height: 128px; } .cat-links { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cat-links { grid-template-columns: repeat(3, 1fr); } }

/* OE search and product gallery */
.part-search { display: flex; gap: .5rem; margin-bottom: 1rem; }
.part-search input { flex: 1; min-width: 0; min-height: 48px; padding: 0 1rem; font: inherit; font-size: 16px; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.part-search input:focus { outline: 2px solid var(--gold-dark); outline-offset: 1px; border-color: var(--gold-dark); }
.part-search .btn { flex: none; min-height: 48px; padding: 0 1.2rem; background: var(--hero-bg); color: var(--white); }
.filter-wrap { flex-wrap: wrap; overflow: visible; padding-bottom: 0; }
.gallery { display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.gallery img { flex: 0 0 100%; scroll-snap-align: center; aspect-ratio: 1 / 1; object-fit: cover; }

/* Product details */
.spec-table { margin: 0; border-top: 1px solid var(--line); }
.spec-table > div { display: grid; grid-template-columns: 38% 1fr; gap: .8rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.spec-table dt { color: var(--steel); }
.spec-table dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.spec-note { display: block; margin-top: .3rem; font-size: .8rem; font-weight: 400; color: var(--steel); }

.card-foot .btn { width: 100%; }

/* Product heading and breadcrumb */
.single-part h1 .part-oe { display: block; margin-bottom: .45em; font-family: var(--mono); font-size: .5em; font-weight: 600; line-height: 1.5; color: var(--steel); overflow-wrap: anywhere; direction: ltr; unicode-bidi: plaintext; }
[dir="rtl"] .single-part h1 .part-oe { text-align: right; }

/* Product page: tags, key facts, grouped specs */
.part-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1.1rem; padding: 0; list-style: none; }
.part-tags li { padding: .2rem .7rem; font-size: .82rem; font-weight: 600; color: var(--ink); background: var(--brass-bg); border-radius: 999px; }
.part-tags .is-type { color: var(--white); background: var(--ink); }
.part-key { margin: 0 0 1.3rem; padding: .2rem 1rem; background: var(--paper); border: 1px solid var(--line); border-inline-start: 3px solid var(--gold-dark); border-radius: var(--radius); }
.part-key > div { display: grid; grid-template-columns: 34% 1fr; gap: .8rem; padding: .65rem 0; }
.part-key > div + div { border-top: 1px solid var(--line); }
.part-key dt { color: var(--steel); }
.part-key dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.part-key .num { font-family: var(--mono); font-size: 1.05rem; direction: ltr; unicode-bidi: plaintext; text-align: start; }
.part-hint { margin: -.3rem 0 .7rem; font-size: .88rem; color: var(--steel); }
.single-part .spec-head { margin: 2rem 0 .4rem; line-height: 1.4; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--steel); }
[dir="rtl"] .single-part .spec-head { letter-spacing: 0; font-size: .9rem; }
.breadcrumb { padding-top: 1.1rem; font-size: .9rem; color: var(--steel); }
.breadcrumb .container { display: flex; flex-wrap: wrap; gap: .3rem .5rem; }
.breadcrumb a { color: var(--steel); }
.part-section { padding-top: 1.2rem; }

a.sheet-row { color: inherit; text-decoration: none; }
a.sheet-row:hover .item { color: var(--brass); }

/* Product photo count and thumbnails */
.part-media { position: relative; min-width: 0; }
/* On wider screens the photos stay in view while the details scroll. */
@media (min-width: 761px) { .part-media { position: sticky; top: 5.5rem; } }
.gallery::-webkit-scrollbar { display: none; }
.gallery-count { position: absolute; top: .7rem; inset-inline-start: .7rem; z-index: 2; padding: .15rem .6rem; font-size: .85rem; font-weight: 600; color: var(--white); background: rgba(15, 35, 64, .72); border-radius: 999px; }
.thumbs { display: flex; gap: .5rem; margin-top: .6rem; overflow-x: auto; padding-bottom: .2rem; scrollbar-width: none; }
.thumbs::-webkit-scrollbar { display: none; }
.thumbs button { flex: 0 0 64px; width: 64px; height: 64px; padding: 0; background: none; border: 2px solid var(--line); border-radius: var(--radius); cursor: pointer; overflow: hidden; }
.thumbs button[aria-current="true"] { border-color: var(--brass); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; border: 0; border-radius: 0; display: block; }

/* Brand positioning in the hero, and the two dedicated lines */
.hero .lead { margin-bottom: .6em; }
.hero-note { color: #c3cfdf; max-width: 36em; margin-bottom: .7em; }
.slogan { color: var(--gold); font-weight: 700; margin: 0; }
.lines .grade h3 { margin-top: 0; }
@media (min-width: 901px) {
  .lines { grid-template-columns: repeat(2, 1fr); }
}
.lines .btn { margin-top: 1rem; }
.pillars .grade:nth-child(n+3) { border-top: 1px solid var(--line); }
@media (max-width: 900px) { .pillars .grade + .grade { border-top: 1px solid var(--line); } }
.options { margin-top: 1.8rem; padding: 1.3rem 1.5rem; background: var(--paper); border: 1px solid var(--line); border-inline-start: 3px solid var(--gold-dark); border-radius: var(--radius); }
.options h3 { font-size: 1.1rem; margin-bottom: .3em; }
.options p { margin: 0; color: var(--ink-soft); }

/* Sourcing managers */
.managers { display: grid; gap: 1rem; }
.manager { display: flex; gap: 1.1rem; align-items: flex-start; padding: 1.4rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.manager h3 { font-size: 1.2rem; margin: 0; }
.manager .role { margin: .1em 0 .5em; color: var(--gold-dark); font-weight: 600; }
.manager p:not(.role) { margin-bottom: .9rem; color: var(--ink-soft); }
.avatar { flex: none; display: flex; align-items: center; justify-content: center; width: 72px; height: 72px; border-radius: 50%; background: var(--hero-bg); color: var(--gold); font-family: "Manrope", var(--font); font-weight: 800; font-size: 1.7rem; }
.avatar { overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; border: 0; border-radius: 0; background: none; }
.channels .avatar { width: 40px; height: 40px; font-size: 1rem; }
@media (min-width: 761px) { .managers { grid-template-columns: repeat(2, 1fr); } }

/* Product photos: thin navy frame. Thumbnails keep their own selected state. */
.card img, .part-media .gallery img { border: 2px solid var(--ink); }
.card img { border-radius: var(--radius) var(--radius) 0 0; }

/* Hero label above the headline */
.eyebrow { margin: 0 0 .7rem; color: var(--gold); font-size: .85rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
[dir="rtl"] .eyebrow { letter-spacing: 0; font-size: .95rem; }
.eyebrow + h1::before { display: none; }

/* About page */
.ab-hero { position: relative; overflow: hidden; padding: 4.5rem 0 4rem; color: #fff; background: radial-gradient(90% 160% at 85% 0%, #1b3a66 0%, rgba(27, 58, 102, 0) 62%), var(--hero-bg); }
.ab-hero h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); letter-spacing: -.02em; margin-bottom: .35em; }
.ab-hero p.ab-sub { max-width: 34em; margin: 0; color: #d3e0f2; font-size: 1.15rem; }
.ab-flow { list-style: none; margin: 0 0 3rem; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.ab-flow li { position: relative; text-align: center; font-weight: 700; }
.ab-flow li + li::before { content: ""; position: absolute; inset-inline-end: calc(50% + 2.7rem); top: 2.2rem; width: calc(100% - 2.9rem); border-top: 2px dashed var(--gold-dark); }
.ab-node { display: flex; align-items: center; justify-content: center; width: 4.4rem; height: 4.4rem; margin: 0 auto .8rem; border-radius: 50%; background: var(--brass-bg); color: var(--ink); }
.ab-flow li.is-us .ab-node { background: var(--ink); color: var(--gold); }
.ab-node .ico { width: 28px; height: 28px; }
.ab-story { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.ab-card { padding: 1.6rem 1.5rem; background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--gold-dark); border-radius: var(--radius); }
.ab-card h3 { font-size: 1.15rem; margin-bottom: .55em; }
.ab-card p { margin: 0; color: var(--ink-soft); }
.ab-scope { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.ab-scope li { display: flex; align-items: center; gap: .7rem; padding: 1rem 1.1rem; font-weight: 700; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.ab-scope .ico { color: var(--gold-dark); }
.ab-scope-note { margin: 1.1rem 0 0; color: var(--ink-soft); max-width: 44em; }
.ab-promise { padding: 4rem 0; color: #fff; background: var(--hero-bg); }
.ab-promise h2 { margin-bottom: .5em; font-size: clamp(1.5rem, 3vw, 2rem); }
.ab-promise p { margin: 0; max-width: 42em; color: #d3e0f2; font-size: 1.1rem; }
.ab-note { display: flex; gap: 1rem; align-items: flex-start; padding: 1.3rem 1.4rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.ab-note h2 { margin: 0 0 .25em; font-size: 1.1rem; }
.ab-note p { margin: 0; color: var(--ink-soft); }
.ab-note .ico { flex: none; color: var(--gold-dark); }
@media (max-width: 900px) {
  .ab-story { grid-template-columns: 1fr; }
  .ab-scope { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .ab-hero { padding: 3rem 0 2.8rem; }
  .ab-flow { gap: 1rem; font-size: .85rem; }
  .ab-flow li + li::before { display: none; }
  .ab-node { width: 3.4rem; height: 3.4rem; }
  .ab-scope li { padding: .85rem .8rem; font-size: .92rem; }
}

/* Home featured parts and sourcing managers */
.sheet-row.has-thumb { grid-template-columns: 72px 1fr; gap: .15rem .9rem; align-items: start; }
.sheet-row.has-thumb .thumb { grid-column: 1; grid-row: 1 / span 3; width: 72px; aspect-ratio: 1; overflow: hidden; background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius); }
.sheet-row.has-thumb .thumb img { width: 100%; height: 100%; object-fit: cover; }
.sheet-row.has-thumb .oe { grid-column: 2; font-family: var(--mono); font-size: .82rem; font-weight: 600; color: var(--steel); direction: ltr; unicode-bidi: plaintext; overflow-wrap: anywhere; }
[dir="rtl"] .sheet-row.has-thumb .oe { text-align: right; }
.sheet-row.has-thumb .item, .sheet-row.has-thumb .fit { grid-column: 2; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
@media (min-width: 761px) {
  .sheet-row.has-thumb { display: flex; flex-direction: column; gap: .3rem; padding: 1.1rem; }
  .sheet-row.has-thumb .thumb { width: 100%; margin-bottom: .5rem; }
  .sheet-row.has-thumb .item { min-height: 2.6em; line-height: 1.3; }
  .featured .sheet-row:nth-child(n+4) { border-top: 1px solid var(--line); }
}
@media (min-width: 1081px) {
  .featured .sheet-row:nth-child(n+4) { border-top: 0; }
}
.line-head { display: flex; align-items: center; gap: .9rem; margin-bottom: .8rem; }
.line-head h3 { margin: 0; }
.lines .avatar { width: 64px; height: 64px; font-size: 1.4rem; }

/* Product fitment */
.fit-list { margin: 0; padding: 0; list-style: none; }
.fit-list li + li { margin-top: .25rem; }

/* Sourcing manager positioning */
.compare { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.compare-col { padding: 1.6rem 1.5rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.compare-col h3 { margin: 0 0 .9rem; font-size: 1.2rem; }
.compare-col ul { margin: 0; padding: 0; list-style: none; }
.compare-col li { padding: .65rem 0; color: var(--ink-soft); border-top: 1px solid var(--line); }
.compare-col.is-us { color: #fff; background: var(--hero-bg); border-color: var(--hero-bg); border-top: 3px solid var(--gold); }
.compare-col.is-us li { color: #fff; font-weight: 600; border-top-color: rgba(255, 255, 255, .18); }
.part-manager-label { margin: 1rem 0 .5rem; font-size: .9rem; font-weight: 600; color: var(--steel); }
.part-managers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; max-width: 420px; }
.part-manager { display: flex; align-items: center; justify-content: center; gap: .6rem; min-height: 56px; padding: .4rem .7rem; color: #fff; font-weight: 700; text-decoration: none; background: var(--wa); border-radius: var(--radius); }
.part-manager:hover { background: var(--wa-dark); }
.part-manager .avatar { width: 40px; height: 40px; font-size: .95rem; }
.ev-note { margin: 1.6rem 0 0; max-width: 46em; color: var(--ink-soft); }
.ev-note a { color: var(--brass); font-weight: 600; }
@media (max-width: 760px) {
  .compare { grid-template-columns: 1fr; }
}

/* Contact page: one line under the company details explaining Shenzhen / Guangzhou and the +1 number */
.contact-note { margin: 1rem 0 0; max-width: 46em; font-size: .92rem; color: var(--ink-soft); }

/* Home "Why importers" cards (2026-11-05): four cards with named icons */
.pillars .grade.ico-search::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2032%2032%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2214%22%20cy%3D%2214%22%20r%3D%229%22/%3E%3Cpath%20d%3D%22M21%2021l7%207%22/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2032%2032%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2214%22%20cy%3D%2214%22%20r%3D%229%22/%3E%3Cpath%20d%3D%22M21%2021l7%207%22/%3E%3C/svg%3E"); }
.pillars .grade.ico-ship::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2032%2032%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%208h17v14H3zM20%2013h5l4%205v4h-9z%22/%3E%3Ccircle%20cx%3D%229%22%20cy%3D%2224%22%20r%3D%223%22/%3E%3Ccircle%20cx%3D%2223%22%20cy%3D%2224%22%20r%3D%223%22/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2032%2032%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%208h17v14H3zM20%2013h5l4%205v4h-9z%22/%3E%3Ccircle%20cx%3D%229%22%20cy%3D%2224%22%20r%3D%223%22/%3E%3Ccircle%20cx%3D%2223%22%20cy%3D%2224%22%20r%3D%223%22/%3E%3C/svg%3E"); }
.pillars .grade.ico-shield::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2032%2032%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M16%203l11%204v8c0%207-5%2012-11%2014C10%2027%205%2022%205%2015V7z%22/%3E%3Cpath%20d%3D%22M11%2016l4%204%207-8%22/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2032%2032%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M16%203l11%204v8c0%207-5%2012-11%2014C10%2027%205%2022%205%2015V7z%22/%3E%3Cpath%20d%3D%22M11%2016l4%204%207-8%22/%3E%3C/svg%3E"); }
.pillars .grade.ico-doc::before { -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2032%2032%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M8%203h11l6%206v20H8z%22/%3E%3Cpath%20d%3D%22M19%203v6h6M12%2015h9M12%2020h9M12%2025h5%22/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2032%2032%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M8%203h11l6%206v20H8z%22/%3E%3Cpath%20d%3D%22M19%203v6h6M12%2015h9M12%2020h9M12%2025h5%22/%3E%3C/svg%3E"); }
/* Four cards: two columns on desktop (the original 2-column rules above apply) */

/* About page "What We Take Care Of": a short line under each label (2026-11-05) */
.ab-scope li { align-items: flex-start; }
.ab-scope li span { display: flex; flex-direction: column; gap: .25rem; }
.ab-scope li small { font-size: .85rem; font-weight: 400; line-height: 1.4; color: var(--ink-soft); }
@media (max-width: 560px) { .ab-scope { grid-template-columns: 1fr; } .ab-scope li { align-items: center; } }
