/* ==========================================================================
   Excavator Parts — B2B inquiry site
   Theme: light industrial. No framework, no external fonts, no jQuery.
   Sections: tokens / base / header / hero / sections / cards / forms / footer
   ========================================================================== */

:root {
  --navy: #16324F;
  --navy-2: #0F2438;
  --blue: #1D5B8C;
  --blue-d: #123F63;
  --amber: #E8A33D;
  --amber-d: #C9862A;
  --ink: #1A2733;
  --muted: #5C6C7C;
  --line: #DEE4EA;
  --soft: #F4F7FA;
  --soft-2: #EAF0F6;
  --white: #FFFFFF;
  --radius: 10px;
  --radius-lg: 16px;
  --wrap: 1180px;
  --shadow-sm: 0 1px 2px rgba(22, 50, 79, .06);
  --shadow: 0 2px 4px rgba(22, 50, 79, .05), 0 12px 28px rgba(22, 50, 79, .07);
}

/* ---------- base ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

[dir="rtl"] body,
body[dir="rtl"] {
  font-family: "Noto Naskh Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
}

img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-d); }

h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.25; color: var(--navy); font-weight: 700; }
h1 { font-size: 2.35rem; letter-spacing: -.02em; }
h2 { font-size: 1.75rem; letter-spacing: -.01em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.section { padding: 72px 0; }
.section--soft { background: var(--soft); }
.section--navy { background: var(--navy); color: #D6E2EE; }
.section--navy h2, .section--navy h3 { color: #fff; }

.section-head { max-width: 720px; margin: 0 0 40px; }
.section-head p { color: var(--muted); font-size: 1.02rem; margin-bottom: 0; }
.section--navy .section-head p { color: #A9BED2; }

.eyebrow {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--amber-d);
  margin-bottom: 12px;
}

.muted { color: var(--muted); }
.small { font-size: .875rem; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 8px;
  font-size: .95rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
}

.btn--primary { background: var(--amber); color: #3A2B0C; }
.btn--primary:hover { background: var(--amber-d); color: #2C2008; }

.btn--solid { background: var(--blue); color: #fff; }
.btn--solid:hover { background: var(--blue-d); color: #fff; }

.btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }

.btn--outline { background: #fff; color: var(--blue); border-color: var(--line); }
.btn--outline:hover { border-color: var(--blue); }

.btn--wa { background: #25D366; color: #04331A; }
.btn--wa:hover { background: #1DB954; color: #04331A; }

/* Hide legacy phone / WhatsApp links left in pages built before the phone
   number was dropped.  Safe: the new pages no longer emit them. */
a[href^="tel:"], a[href*="wa.me/"], .js-wa-direct { display: none !important; }

/* Yellow call-to-action used for the inquiry-list buttons.  Explicit colours
   (not .btn--ghost, which is white-on-transparent and vanishes inside the
   white quote card) so the button is visible on any background. */
.btn--yellow {
  background: var(--amber);
  color: #3A2B0C;
  border-color: var(--amber-d);
  font-weight: 700;
}
.btn--yellow:hover { background: var(--amber-d); color: #2C2008; border-color: var(--amber-d); }
.btn--yellow.is-added { background: #1D9E75; color: #fff; border-color: #1D9E75; }

/* --- "Remove row" button in the inquiry-list table -------------------------
   Rendered by main.js as <button class="btn btn--remove">×</button>.
   Red on white so it is always visible inside the table card; sized for
   comfortable touch on phones. */
.btn--remove {
  background: #fff;
  color: #C0392B;
  border-color: #E3B4AE;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
  width: 34px;
  height: 34px;
  min-width: 34px;
  padding: 0;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.btn--remove:hover { background: #C0392B; color: #fff; border-color: #C0392B; }
.btn--remove:focus-visible { outline: 2px solid #C0392B; outline-offset: 2px; }

/* --- "Add to inquiry list" button -----------------------------------------
   The deployed pages mark this button with [data-add-list].  This attribute
   selector overrides .btn--ghost for it, so the ~86k static catalogue pages
   and the 2.5M dynamic pages turn yellow without being rewritten. */
.btn--ghost[data-add-list],
.btn[data-add-list] {
  background: var(--amber);
  color: #3A2B0C;
  border-color: var(--amber-d);
  font-weight: 700;
}
.btn--ghost[data-add-list]:hover,
.btn[data-add-list]:hover { background: var(--amber-d); color: #2C2008; }
.btn--ghost[data-add-list].is-added,
.btn[data-add-list].is-added { background: #1D9E75; color: #fff; border-color: #1D9E75; }

/* --- every entry that opens the batch inquiry list ------------------------
   Header CTA, hero "My inquiry list" and the in-page inquiry links all carry
   an /inquiry/ href, so one rule paints them all yellow. */
a.btn[href$="/inquiry/"] {
  background: var(--amber);
  color: #3A2B0C;
  border-color: var(--amber-d);
  font-weight: 700;
}
a.btn[href$="/inquiry/"]:hover { background: var(--amber-d); color: #2C2008; }

.btn--wide { width: 100%; }

/* ---------- top bar ---------- */

.topbar {
  background: var(--navy-2);
  color: #9FB6CA;
  font-size: .82rem;
}

.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 38px;
  flex-wrap: wrap;
}

.topbar a { color: #C6D6E4; }
.topbar a:hover { color: #fff; }

.topbar__left { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.topbar__left span { display: inline-flex; align-items: center; gap: 6px; }

.lang-switch { display: flex; align-items: center; gap: 4px; }

.lang-switch a {
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
  letter-spacing: .03em;
}

.lang-switch a[aria-current="true"] { background: rgba(255, 255, 255, .16); color: #fff; }
.lang-switch a:hover { background: rgba(255, 255, 255, .1); }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 72px;
}

.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.logo__mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--navy);
  color: var(--amber);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: .95rem;
  letter-spacing: -.03em;
}

.logo__text { font-weight: 800; font-size: 1.12rem; color: var(--navy); letter-spacing: .02em; }
.logo__sub { display: block; font-size: .68rem; font-weight: 600; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; }

.nav { display: flex; gap: 26px; margin-inline-start: auto; }
.nav a { color: var(--ink); font-weight: 500; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--blue); }

.header-actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
}

/* ---------- hero ---------- */

.hero {
  background:
    linear-gradient(100deg, rgba(15, 38, 61, .94) 0%, rgba(17, 55, 88, .84) 52%, rgba(18, 63, 99, .58) 100%),
    url("/assets/img/hero-site.jpg") center 42% / cover no-repeat #123F63;
  color: #E3EDF5;
  padding: 68px 0 76px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 56px;
  align-items: start;
}

.hero h1 { color: #fff; font-size: 2.5rem; max-width: 15em; }
.hero p.lead { font-size: 1.1rem; color: #B7CADB; max-width: 34em; }

.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 32px; }

.hero-points { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; margin: 0; padding: 0; list-style: none; }
.hero-points li { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; color: #CBDBE8; }

.tick {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  border-radius: 50%;
  background: rgba(232, 163, 61, .18);
  color: var(--amber);
  display: grid;
  place-items: center;
  font-size: .7rem;
  font-weight: 800;
}

/* ---------- quote card ---------- */

.quote-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: 0 18px 44px rgba(8, 24, 40, .28);
  color: var(--ink);
}

.quote-card h3 { margin-bottom: 4px; font-size: 1.15rem; }
.quote-card > p { font-size: .88rem; color: var(--muted); margin-bottom: 18px; }

.field { margin-bottom: 12px; }

.field label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 5px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 10px 12px;
  font: inherit;
  font-size: .92rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.field textarea { resize: vertical; min-height: 84px; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(29, 91, 140, .12);
}

.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.form-note { font-size: .78rem; color: var(--muted); margin: 12px 0 0; text-align: center; }

.form-alt { margin-top: 10px; text-align: center; font-size: .82rem; }

/* ---------- trust strip ---------- */

.trust { border-bottom: 1px solid var(--line); background: var(--white); }

.trust .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.trust__item { padding: 26px 24px; border-inline-start: 1px solid var(--line); }
.trust__item:first-child { border-inline-start: none; }
.trust__item strong { display: block; font-size: .98rem; color: var(--navy); margin-bottom: 3px; }
.trust__item span { font-size: .84rem; color: var(--muted); }

/* ---------- brand grid ---------- */

.brand-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }

.brand-chip {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 8px;
  text-align: center;
  font-weight: 600;
  font-size: .86rem;
  color: var(--navy);
  background: #fff;
  transition: border-color .15s ease, color .15s ease;
}

.brand-chip:hover { border-color: var(--blue); color: var(--blue); }
.brand-chip small { display: block; font-weight: 400; font-size: .72rem; color: var(--muted); margin-top: 2px; }

/* ---------- cards ---------- */

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }
.card-grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.card:hover { border-color: #C4D2DE; box-shadow: var(--shadow); }

.card h3 { margin-bottom: 8px; }
.card p { font-size: .92rem; color: var(--muted); margin-bottom: 0; }
.card .card-list { margin: 12px 0 0; padding-inline-start: 18px; font-size: .88rem; color: var(--muted); }
.card .card-list li { margin-bottom: 3px; }

.card__num {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--soft-2);
  color: var(--blue);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: .85rem;
  margin-bottom: 14px;
}

.card__more { display: inline-block; margin-top: 14px; font-size: .88rem; font-weight: 600; }

/* ---------- process ---------- */

.process { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; counter-reset: step; }

.process__step { position: relative; padding-top: 42px; }
.process__step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--amber);
  color: #3A2B0C;
  font-weight: 800;
  font-size: .85rem;
  display: grid;
  place-items: center;
}

.process__step strong { display: block; font-size: .96rem; color: var(--navy); margin-bottom: 4px; }
.process__step span { font-size: .86rem; color: var(--muted); }

/* ---------- media block ---------- */

.media-row { display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; align-items: center; }

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #1B3A57 0%, #0F2438 100%);
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .08);
}

.video-frame__play {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: rgba(232, 163, 61, .92);
  display: grid;
  place-items: center;
  color: #2C2008;
}

.video-frame__label {
  position: absolute;
  inset-inline-start: 16px;
  bottom: 14px;
  font-size: .8rem;
  color: #A9BED2;
  letter-spacing: .04em;
}

/* ---------- spec table ---------- */

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }

table.spec { width: 100%; border-collapse: collapse; font-size: .92rem; background: #fff; }

table.spec th,
table.spec td {
  padding: 12px 16px;
  text-align: start;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

table.spec thead th {
  background: var(--soft);
  color: var(--navy);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}

table.spec tbody tr:last-child th,
table.spec tbody tr:last-child td { border-bottom: none; }

table.spec tbody th { font-weight: 600; color: var(--muted); width: 34%; background: #FBFCFD; }

/* ---------- breadcrumbs ---------- */

.crumbs { font-size: .84rem; color: var(--muted); padding: 16px 0 0; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.crumbs li::after { content: "/"; margin-inline-start: 6px; color: #B9C6D2; }
.crumbs li:last-child::after { content: ""; }

/* ---------- photo band (dark photo header used on catalogue pages) ---------- */

.band-photo {
  background:
    linear-gradient(180deg, rgba(15, 38, 61, .90) 0%, rgba(18, 63, 99, .80) 100%),
    url("/assets/img/yard-dusk.jpg") center 62% / cover no-repeat #123F63;
  color: #DCE8F2;
  padding: 40px 0 52px;
}

.band-photo h1 { color: #fff; margin: 14px 0 10px; }
.band-photo p { margin-bottom: 0; }
.band-photo .muted { color: #A9BED2; }
.band-photo strong { color: #fff; }
.band-photo .crumbs { color: #A9BED2; }
.band-photo .crumbs a { color: #A9BED2; }
.band-photo .crumbs a:hover { color: #fff; text-decoration: none; }
.band-photo .crumbs li::after { color: #7E97AD; }
.band-photo .pn-search { margin: 26px 0 0; max-width: 520px; }
.band-photo .pn-search--big input[type="search"]:focus { border-color: var(--amber); }

/* ---------- notice / alert ---------- */

.notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #FEF6E7;
  border: 1px solid #F3D9A8;
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: .88rem;
  color: #6B4A12;
}

.notice strong { color: #4A3208; }

.badge-example {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: #FEF6E7;
  color: #8A5A12;
  border: 1px solid #F3D9A8;
  border-radius: 4px;
  padding: 2px 7px;
  vertical-align: middle;
}

/* ---------- product detail layout ---------- */

.detail-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 44px; align-items: start; }

.detail-media {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  background: var(--soft);
  display: grid;
  place-items: center;
  color: #9DAEBD;
  font-size: .88rem;
}

.aside-sticky { position: sticky; top: 96px; }

/* ---------- cta band ---------- */

.cta-band { background: var(--amber); color: #3A2B0C; padding: 56px 0; }
.cta-band h2 { color: #3A2B0C; margin-bottom: 8px; }
.cta-band p { color: #5C440F; margin-bottom: 0; }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band .btn--solid { background: var(--navy); color: #fff; }
.cta-band .btn--solid:hover { background: var(--navy-2); }

/* ---------- footer ---------- */

.site-footer { background: var(--navy-2); color: #93A9BD; padding: 60px 0 26px; font-size: .9rem; }
.site-footer h4 { color: #fff; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; }

.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-grid a { color: #B9CEE0; display: block; margin-bottom: 9px; }
.footer-grid a:hover { color: #fff; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }

.footer-brand .logo__text { color: #fff; }
.footer-brand p { color: #7E96AC; margin-top: 14px; max-width: 30em; }

.footer-bottom {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: .82rem;
  color: #6E879E;
}

.footer-bottom a { color: #93A9BD; }

/* ---------- whatsapp float ---------- */

.wa-float {
  position: fixed;
  inset-inline-end: 22px;
  bottom: 22px;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: #04331A;
  border-radius: 999px;
  padding: 12px 20px 12px 14px;
  font-weight: 700;
  font-size: .92rem;
  box-shadow: 0 10px 26px rgba(8, 40, 20, .28);
}

.wa-float:hover { background: #1DB954; color: #04331A; }
.wa-float svg { flex: 0 0 22px; }

/* inquiry-list float reuses the pill; painted amber to match the inquiry CTAs */
.inq-float { background: var(--amber); color: #3A2B0C; box-shadow: 0 10px 26px rgba(61, 43, 12, .34); }
.inq-float:hover { background: var(--amber-d); color: #2C2008; }

/* count badge on nav CTA / floating button */
.inq-count {
  display: inline-block;
  min-width: 20px;
  padding: 1px 6px;
  margin-inline-start: 7px;
  border-radius: 999px;
  background: #E24B4A;
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  vertical-align: middle;
}
.inq-float .inq-count { position: absolute; top: -6px; inset-inline-end: -4px; margin: 0; }
.btn.is-added { background: #1D9E75; color: #fff; border-color: #1D9E75; }

/* ---------- cookie banner ---------- */

.cookie {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 90;
  background: var(--navy-2);
  color: #C6D6E4;
  padding: 16px 0;
  font-size: .86rem;
  display: none;
}

.cookie.is-open { display: block; }
.cookie .wrap { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.cookie p { margin: 0; flex: 1 1 420px; }
.cookie a { color: #fff; text-decoration: underline; }
.cookie__actions { display: flex; gap: 10px; }

/* ---------- demo badge ---------- */

.demo-badge {
  position: fixed;
  inset-inline-start: 14px;
  bottom: 14px;
  z-index: 85;
  background: rgba(15, 36, 56, .92);
  color: #E8A33D;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .04em;
  padding: 7px 12px;
  border-radius: 6px;
}

/* ---------- responsive ---------- */

@media (max-width: 1024px) {
  .hero-grid, .detail-grid, .media-row { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .hero-grid > *, .detail-grid > *, .media-row > * { min-width: 0; }
  .brand-grid { grid-template-columns: repeat(4, 1fr); }
  .card-grid, .card-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .aside-sticky { position: static; }
}

@media (max-width: 720px) {
  /* grid children must be allowed to shrink below their content width,
     otherwise a wide table / long part number inflates the column and the
     whole page (headers and the quote card included) is pushed off-screen. */
  .hero-grid > *, .detail-grid > *, .media-row > * { min-width: 0; }
  .detail-grid, .hero-grid, .media-row { grid-template-columns: minmax(0, 1fr); }
  /* product page: image above the quote card, both fully visible */
  .detail-grid { gap: 24px; }
  .detail-grid > aside { order: 1; position: static; }
  .detail-media { max-width: 100%; }
  .detail-media img, .detail-media picture, .detail-media--photo img { max-width: 100%; height: auto; }
  .quote-card { margin-top: 10px; }
  /* tables: allow horizontal scroll instead of forcing width */
  .table-wrap { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  table.spec { min-width: 0 !important; width: 100%; table-layout: fixed; }
  table.spec th, table.spec td { word-wrap: break-word; overflow-wrap: anywhere; }
  /* header: keep the hamburger on screen, shrink the CTA if needed */
  .site-header .wrap { gap: 8px; }
  .logo__sub { display: none; }  /* reclaim 50px so the toggle fits */
  .logo__text { font-size: 1rem; }
  .header-actions { flex: 0 1 auto; min-width: 0; }
  .header-actions .btn { display: inline-flex; padding: 8px 10px; font-size: .78rem; white-space: nowrap; }
  .inq-float { position: fixed; inset-inline-end: 12px; bottom: 12px; z-index: 96; }
  .btn--yellow, .btn--primary { min-height: 44px; }
  /* inquiry list table on phones: tighter padding so Part number / Qty /
     remove button all fit without the remove column being pushed off-screen */
  [data-inq-table] table.spec th,
  [data-inq-table] table.spec td { padding: 10px 8px; }
  [data-inq-table] table.spec th:nth-child(2),
  [data-inq-table] table.spec td:nth-child(2) { width: 74px; }
  [data-inq-table] table.spec th:nth-child(3),
  [data-inq-table] table.spec td:nth-child(3) { width: 46px; }
  [data-inq-table] table.spec td:nth-child(2) input { width: 100% !important; max-width: 60px; }
  .btn--remove { width: 36px; height: 36px; min-width: 36px; }
  .nav { display: none; }
  .nav.is-open {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: absolute;
    inset-inline: 0;
    top: 100%;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 18px;
  }
  .nav.is-open a { padding: 11px 0; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: block; margin-inline-start: auto; }
  /* keep the yellow inquiry CTA reachable on phones: swap the label for the
     floating icon but leave a compact header button */
  .header-actions .btn { display: inline-flex; padding: 9px 12px; font-size: .82rem; }
  /* mobile safety: no element may push the page wider than the viewport */
  html, body { overflow-x: clip; }
  h1, .hero h1 { font-size: 1.85rem; word-wrap: break-word; overflow-wrap: anywhere; }
  h2 { font-size: 1.4rem; }
  .section { padding: 52px 0; }
  .hero { padding: 46px 0 54px; }
  .hero .eyebrow { letter-spacing: .08em; word-wrap: break-word; overflow-wrap: anywhere; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { flex: none; width: 100%; text-align: center; }
  .hero-points { grid-template-columns: 1fr; }
  .trust .wrap { grid-template-columns: 1fr 1fr; }
  .trust__item { border-inline-start: none; border-top: 1px solid var(--line); }
  .trust__item:first-child, .trust__item:nth-child(2) { border-top: none; }
  .brand-grid { grid-template-columns: repeat(3, 1fr); }
  .card-grid, .card-grid--2, .card-grid--4 { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .cta-band .wrap { flex-direction: column; align-items: flex-start; }
  .field--row { grid-template-columns: 1fr; }
  .wa-float span { display: none; }
  .wa-float { padding: 14px; }
  .demo-badge { display: none; }
}

/* ---------- rtl tweaks ---------- */

[dir="rtl"] .tick,
[dir="rtl"] .card__num,
[dir="rtl"] .process__step::before { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; }

[dir="rtl"] table.spec thead th { text-align: start; }

[dir="rtl"] .card .card-list { padding-inline-start: 0; padding-inline-end: 18px; }

/* ---------- video facade (nothing loads until the buyer clicks) ---------- */

.video-facade {
  position: relative;
  aspect-ratio: 16 / 9;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--navy-2), var(--blue-d));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.video-facade iframe,
.video-facade video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.video-facade__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.video-facade__btn:hover { background: rgba(255, 255, 255, .22); }

/* ---------- catalogue tables: part numbers are links ---------- */

table.spec td a { color: var(--blue-d); text-decoration: none; }
table.spec td a:hover { text-decoration: underline; }
table.spec td code { font-size: .92em; }

.section-head h2 a { color: inherit; text-decoration: none; }
.section-head h2 a:hover { color: var(--blue-d); }

.detail-media img { border-radius: var(--radius); border: 1px solid var(--line); }

/* ---------- part-number filter ---------- */

.table-filter { margin-top: 18px; }

.table-filter input {
  width: 100%;
  max-width: 440px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  color: var(--ink);
  background: var(--white);
}

.table-filter input:focus {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
  border-color: var(--blue);
}

.table-filter [data-filter-none] { margin-top: 8px; }

.table-filter + .notice { margin-top: 18px; }

.table-filter ~ .notice { margin-top: 18px; }

/* ---------- listing pagination (80k-part catalogue) ---------- */

.pager {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 24px;
}

.pager a,
.pager__gap {
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
  font-size: .95rem;
  line-height: 1;
}

.pager a:hover { border-color: var(--blue); color: var(--blue-d); }

.pager a[aria-current="page"] {
  background: var(--blue-d);
  border-color: var(--blue-d);
  color: #fff;
  font-weight: 600;
}

.pager__gap { border-color: transparent; color: var(--muted); }

/* ---------- part-number search (jump to any of 80k product pages) --------- */

.pn-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1 1 240px;
  max-width: 340px;
  margin-inline-start: auto;
}

.pn-search input[type="search"] {
  flex: 1 1 auto;
  min-width: 0;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 6px;
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font: inherit;
  font-size: .85rem;
}

.pn-search input[type="search"]::placeholder { color: #8FA8BE; }
.pn-search input[type="search"]:focus {
  outline: none;
  border-color: var(--amber);
  background: rgba(255, 255, 255, .14);
}

.pn-search button {
  padding: 6px 12px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: var(--amber);
  color: var(--navy-2);
  font: inherit;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
}

.pn-search button:hover { background: var(--amber-d); }

.pn-search__out {
  position: absolute;
  z-index: 60;
  inset-inline: 0;
  top: calc(100% + 6px);
  max-height: 320px;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  text-align: start;
}

.pn-search__out a {
  display: block;
  padding: 6px 9px;
  border-radius: 6px;
  color: var(--ink);
  font-size: .9rem;
  text-decoration: none;
}

.pn-search__out a:hover { background: var(--soft-2); }
.pn-search__out code { font-weight: 600; color: var(--blue-d); }
.pn-search__out .pn-hit-name { display: block; line-height: 1.3; }
.pn-search__out .pn-hit-name + code {
  display: inline-block;
  margin-top: 2px;
  font-size: .82rem;
  color: var(--muted);
}

.pn-search__msg {
  position: absolute;
  z-index: 60;
  inset-inline: 0;
  top: calc(100% + 6px);
  margin: 0;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  color: var(--muted);
  font-size: .85rem;
  line-height: 1.4;
  text-align: start;
}

/* the larger variant on /products/ and /part-index/ */
.pn-search--big {
  max-width: 520px;
  margin-inline-start: 0;
  margin-block: 18px 0;
}

.pn-search--big input[type="search"] {
  padding: 11px 14px;
  border-color: var(--line);
  background: var(--white);
  color: var(--ink);
  font-size: 1rem;
}

.pn-search--big input[type="search"]::placeholder { color: var(--muted); }
.pn-search--big input[type="search"]:focus { border-color: var(--blue); background: var(--white); }
.pn-search--big button { padding: 11px 20px; font-size: 1rem; }

/* ---------- browsable A–Z part-number index ---------- */

.pi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.pi-bucket {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.pi-bucket:hover { border-color: var(--blue); }
.pi-bucket a { text-decoration: none; }
.pi-bucket code { font-size: 1.05rem; font-weight: 600; color: var(--blue-d); }
.pi-bucket .muted { font-size: .8rem; white-space: nowrap; }

.pi-list {
  columns: 3;
  column-gap: 26px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.pi-list li {
  break-inside: avoid;
  padding: 3px 0;
  font-size: .95rem;
}

.pi-list a { color: var(--ink); text-decoration: none; }
.pi-list a:hover { color: var(--blue-d); text-decoration: underline; }

@media (max-width: 900px) {
  .pi-list { columns: 2; }
  .pn-search { max-width: none; flex-basis: 100%; order: 3; margin-inline-start: 0; }
}

@media (max-width: 560px) {
  .pi-list { columns: 1; }
  .pi-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- real product photo in the standard 4:3 frame ---------- */

.detail-media--photo {
  padding: 14px;
  background: var(--white);
}

.detail-media--photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border: 0;
  border-radius: 0;
}

@media (max-width: 640px) {
  .detail-media--photo { padding: 8px; }
}

/* <picture> wrapper must stretch like the bare <img> it replaces */
.detail-media--photo picture {
  display: block;
  width: 100%;
  height: 100%;
}

/* ---------- small-screen refinements (mobile) ---------- */

@media (max-width: 720px) {
  /* keep the dark bar to search + languages; phone/email live in the footer
     and the WhatsApp float */
  .topbar__left { display: none; }

  /* stronger overlay so the headline stays readable over the photo */
  .hero {
    background:
      linear-gradient(180deg, rgba(15, 38, 61, .93) 0%, rgba(18, 63, 99, .88) 100%),
      url("/assets/img/hero-site.jpg") center 30% / cover no-repeat #123F63;
  }

  .band-photo { padding: 28px 0 38px; }
  .band-photo .pn-search,
  .band-photo .pn-search--big { max-width: none; }
  .band-photo h1 { font-size: 1.5rem; }

  /* catalogue tables scroll instead of crushing four columns */
  .table-wrap table.spec { min-width: 560px; }
  .table-wrap { -webkit-overflow-scrolling: touch; }

  .hero h1, h1 { font-size: 1.6rem; }
  .hero-cta .btn { flex: 1 1 auto; text-align: center; }
}

@media (max-width: 420px) {
  .hero h1, h1 { font-size: 1.45rem; }
  .pi-grid { grid-template-columns: 1fr; }
  .pn-search__out { max-height: 55vh; }
}

/* ---------- language switcher (9 languages, JS-enhanced dropdown) ----------
   The server still prints the plain chip row, so a browser without JS (and
   every crawler) sees working language links.  main.js swaps that row for the
   dropdown below when it runs. */

.lang-switch { position: relative; }

.lang-switch__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 5px;
  background: transparent;
  color: #E4EDF5;
  font: inherit;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  cursor: pointer;
  white-space: nowrap;
}

.lang-switch__btn:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.lang-switch__btn:focus-visible { outline: 2px solid #7FB3D9; outline-offset: 2px; }
.lang-switch__globe { opacity: .85; }
.lang-switch__caret { opacity: .7; transition: transform .15s ease; }
.lang-switch.is-open .lang-switch__caret { transform: rotate(180deg); }

.lang-switch__menu {
  position: absolute;
  z-index: 130;
  top: calc(100% + 6px);
  right: 0;
  min-width: 188px;
  max-height: min(62vh, 430px);
  overflow-y: auto;
  margin: 0;
  padding: 5px;
  list-style: none;
  background: #fff;
  border: 1px solid rgba(15, 38, 61, .14);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(15, 38, 61, .24);
  display: none;
}

.lang-switch.is-open .lang-switch__menu { display: block; }
[dir="rtl"] .lang-switch__menu { right: auto; left: 0; }

.lang-switch__menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 7px 10px;
  border-radius: 5px;
  color: #16324F;
  text-decoration: none;
  font-size: .86rem;
  font-weight: 500;
  letter-spacing: 0;
}

.lang-switch__menu a:hover { background: rgba(22, 50, 79, .08); color: #16324F; }
.lang-switch__menu a[aria-current="true"] { background: rgba(22, 50, 79, .13); color: #16324F; font-weight: 700; }
.lang-switch__code { font-size: .74em; font-weight: 700; letter-spacing: .06em; opacity: .5; }

@media (max-width: 720px) {
  .lang-switch { margin-inline-start: auto; }
  .lang-switch__menu { min-width: 172px; max-height: 52vh; }
}

/* ---------- announcement bar (injected by main.js from /api/chrome.json) ---- */

.announce-bar {
  background: #C9A227;
  color: #1B2A38;
  font-size: .84rem;
  font-weight: 600;
  text-align: center;
  padding: 7px 14px;
  line-height: 1.4;
}

.announce-bar a { color: #1B2A38; text-decoration: underline; }
.announce-bar a:hover { color: #000; }

@media (max-width: 720px) {
  .announce-bar { font-size: .78rem; padding: 6px 12px; }
}

/* ==========================================================================
   2026-11 visual pass — category photos, card lift, mobile action bar
   ========================================================================== */

/* category card photo: full-bleed to the card edges */
.card { overflow: hidden; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.card { transition: border-color .15s ease, box-shadow .18s ease, transform .18s ease; }

.card__img {
  display: block;
  width: calc(100% + 48px);
  margin: -24px -24px 16px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
  background: var(--soft);
}

/* ---------- mobile action bar ---------- */

.mobile-cta { display: none; }

@media (max-width: 720px) {
  .card__img { aspect-ratio: 3 / 2; }

  .mobile-cta {
    display: grid;
    grid-template-columns: 1.25fr 1fr 1fr;
    gap: 8px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 80;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, .98);
    border-top: 1px solid var(--line);
    box-shadow: 0 -6px 18px rgba(22, 50, 79, .10);
  }

  .mobile-cta a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 6px;
    border-radius: 9px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--navy);
    font-size: .88rem;
    font-weight: 600;
    text-align: center;
  }

  .mobile-cta a.is-primary {
    background: var(--blue);
    border-color: var(--blue);
    color: #fff;
  }

  /* keep the footer reachable above the fixed bar */
  body { padding-bottom: 72px; }
}

/* the primary action is a <button> on product pages (scrolls to the form) */
@media (max-width: 720px) {
  .mobile-cta button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 6px;
    border-radius: 9px;
    border: 1px solid var(--blue);
    background: var(--blue);
    color: #fff;
    font-family: inherit;
    font-size: .88rem;
    font-weight: 600;
    cursor: pointer;
  }
  .mobile-cta button:active { background: var(--blue-d); }
}
