/* =========================================================
   carparts.iq — industrieel/utilitair design fundament
   Asfalt-donker + signaaloranje · AR/EN met RTL via logical props
   ========================================================= */

:root {
  --ink: #16181d;
  --ink-soft: #3c414b;
  --muted: #6b7280;
  --bg: #f2f1ec;
  --panel: #ffffff;
  --line: #dedcd4;
  --asphalt: #1b1e24;
  --asphalt-2: #242832;
  --accent: #e8590c;
  --accent-hover: #d14e08;
  --accent-ink: #ffffff;
  --ok: #1a7f4e;
  --chip-bg: #eceae3;
  --radius: 10px;
  --font-display: "Archivo", "Cairo", sans-serif;
  --font-body: "Tajawal", "Archivo", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
  --shadow: 0 1px 2px rgba(22, 24, 29, .06), 0 8px 24px -12px rgba(22, 24, 29, .18);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}

[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4 { letter-spacing: 0; }

.container {
  width: min(1180px, 100% - 2.5rem);
  margin-inline: auto;
}

/* ---------- knoppen ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 44px;
  padding: .6rem 1.4rem;
  border: 0;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}

.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { background: var(--accent-hover); }

.btn--dark { background: var(--asphalt); color: #fff; }
.btn--dark:hover { background: var(--asphalt-2); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn--ghost:hover { border-color: var(--ink); }

.btn--wa { background: #1da851; color: #fff; }
.btn--wa:hover { background: #178a43; }

:focus-visible {
  outline: 2.5px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- topbar + header ---------- */

.topbar { background: var(--asphalt); color: #b8bcc6; font-size: .8rem; }

.topbar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 36px;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: transparent;
  border: 1px solid #3a3f4b;
  color: #e6e8ee;
  border-radius: 999px;
  padding: .2rem .75rem;
  font-family: var(--font-body);
  font-size: .8rem;
  cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
.lang-btn:hover { border-color: var(--accent); background: rgba(232, 89, 12, .12); }

#site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  min-height: 68px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.logo .logo-mark { width: 30px; height: 30px; color: var(--accent); }
.logo em { font-style: normal; color: var(--accent); }

.nav {
  display: flex;
  gap: 1.5rem;
  margin-inline-start: auto;
}
.nav a {
  font-weight: 500;
  font-size: .95rem;
  color: var(--ink-soft);
  padding: .35rem 0;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.nav a:hover { color: var(--ink); }
.nav a.is-active { color: var(--ink); border-bottom-color: var(--accent); }

@media (max-width: 860px) {
  .nav { display: none; }
  .header__inner { justify-content: space-between; }
}

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

.hero {
  background: linear-gradient(180deg, var(--asphalt) 0%, var(--asphalt-2) 100%);
  color: #fff;
  padding-block: clamp(3.5rem, 8vw, 6rem) 0;
  position: relative;
  overflow: hidden;
}

/* gegenereerde hero-visual + leesbaarheids-scrim (richtingbewust voor RTL) */
.hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero__bg img,
.hero__bg video {
  width: 100%;
  height: 112%;
  object-fit: cover;
  object-position: 72% center;
  opacity: .92;
  will-change: transform;
}
[dir="rtl"] .hero__bg img,
[dir="rtl"] .hero__bg video { transform: scaleX(-1); }

.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(23, 26, 32, .96) 0%, rgba(23, 26, 32, .82) 38%, rgba(23, 26, 32, .28) 75%, rgba(23, 26, 32, .45) 100%),
    linear-gradient(180deg, rgba(23, 26, 32, .35) 0%, transparent 30%, rgba(23, 26, 32, .55) 100%);
}
[dir="rtl"] .hero__scrim {
  background:
    linear-gradient(-90deg, rgba(23, 26, 32, .96) 0%, rgba(23, 26, 32, .82) 38%, rgba(23, 26, 32, .28) 75%, rgba(23, 26, 32, .45) 100%),
    linear-gradient(180deg, rgba(23, 26, 32, .35) 0%, transparent 30%, rgba(23, 26, 32, .55) 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -45deg, rgba(255,255,255,.02) 0 2px, transparent 2px 14px);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 780px;
  padding-bottom: clamp(3rem, 6vw, 4.5rem);
}

/* --- entrance-choreografie (awwwards-stijl regel-reveal) --- */
.hero .line { display: block; overflow: hidden; }
.hero .line-inner {
  display: block;
  transform: translateY(112%);
}
.hero.is-loaded .line-inner {
  animation: lineUp .9s cubic-bezier(.19, 1, .22, 1) forwards;
}
.hero.is-loaded .line:nth-child(2) .line-inner { animation-delay: .12s; }

@keyframes lineUp { to { transform: translateY(0); } }

.hero__kicker, .hero__sub, .searchbar, .hero__popular, .hero__stats {
  opacity: 0;
  transform: translateY(16px);
}
.hero.is-loaded .hero__kicker,
.hero.is-loaded .hero__sub,
.hero.is-loaded .searchbar,
.hero.is-loaded .hero__popular,
.hero.is-loaded .hero__stats {
  animation: fadeUp .8s cubic-bezier(.19, 1, .22, 1) forwards;
}
.hero.is-loaded .hero__kicker  { animation-delay: 0s; }
.hero.is-loaded .hero__sub     { animation-delay: .28s; }
.hero.is-loaded .searchbar     { animation-delay: .4s; }
.hero.is-loaded .hero__popular { animation-delay: .52s; }
.hero.is-loaded .hero__stats   { animation-delay: .64s; }

@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
  .hero .line-inner, .hero__kicker, .hero__sub, .searchbar, .hero__popular, .hero__stats {
    transform: none;
    opacity: 1;
    animation: none !important;
  }
}

.hero__kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: #f7b28b;
  border: 1px solid rgba(232, 89, 12, .45);
  border-radius: 999px;
  padding: .3rem .9rem;
  margin-bottom: 1.4rem;
}

.hero h1 {
  font-size: clamp(2.1rem, 5.2vw, 3.6rem);
  font-weight: 800;
  margin-bottom: 1rem;
}
.hero h1 .accent { color: var(--accent); }

.hero__sub {
  color: #c3c7d1;
  font-size: 1.08rem;
  max-width: 560px;
  margin: 0 0 2rem;
}

.searchbar {
  display: flex;
  background: #fff;
  border-radius: var(--radius);
  padding: .4rem;
  gap: .4rem;
  box-shadow: 0 18px 44px -18px rgba(0, 0, 0, .55);
  max-width: 640px;
}
.searchbar input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  padding-inline: .9rem;
}
.searchbar input:focus { outline: none; }
.searchbar .btn { flex-shrink: 0; }

.hero__popular {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  margin-top: 1.1rem;
  font-size: .88rem;
  color: #9aa0ad;
}
.hero__popular a {
  font-family: var(--font-mono);
  font-size: .8rem;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  padding: .22rem .8rem;
  color: #dfe2e9;
  transition: border-color .2s, background-color .2s;
}
.hero__popular a:hover { border-color: var(--accent); background: rgba(232, 89, 12, .16); }

.hero__stats {
  display: flex;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  margin-top: 2.8rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
}

/* --- partnumber-marquee onderaan de hero --- */
.hero__marquee {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, .1);
  background: rgba(16, 18, 23, .82);
  overflow: hidden;
  direction: ltr;
}
.hero__marquee-track {
  display: flex;
  width: max-content;
  gap: 2.6rem;
  padding: .8rem 0;
  animation: marquee 38s linear infinite;
}
.hero__marquee span {
  display: inline-flex;
  align-items: center;
  gap: 2.6rem;
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #8d93a0;
  white-space: nowrap;
}
.hero__marquee b { color: #e6e8ee; font-weight: 600; }
.hero__marquee i {
  font-style: normal;
  color: var(--accent);
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__marquee-track { animation: none; }
}
.hero__stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  color: #fff;
}
.hero__stat span { font-size: .85rem; color: #9aa0ad; }

/* ---------- secties ---------- */

.section { padding-block: clamp(3rem, 7vw, 5rem); }
.section--alt { background: var(--panel); border-block: 1px solid var(--line); }

.section__head { max-width: 620px; margin-bottom: 2.2rem; }
.section__head h2 { font-size: clamp(1.5rem, 3.2vw, 2.2rem); font-weight: 800; }
.section__head p { color: var(--muted); margin: 0; }

.section__head--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  max-width: none;
}

/* ---------- categorieën ---------- */

.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
@media (max-width: 900px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }

.cat-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.cat-card:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-2px); }
.cat-card svg { width: 66px; height: 66px; color: var(--accent); margin: 1.7rem auto .6rem; }
.cat-card span {
  font-family: var(--font-display); font-weight: 700; font-size: .98rem;
  display: block; width: 100%; padding: .95rem 1rem 1.15rem;
  border-top: 1px solid var(--line); position: relative;
}
.cat-card span::before {
  content: ""; position: absolute; top: -4.5px; left: 50%; transform: translateX(-50%);
  width: 9px; height: 9px; border-radius: 50%; background: var(--accent);
}

/* populaire automerken (home) */
.brand-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .7rem; }
@media (max-width: 820px) { .brand-grid { grid-template-columns: repeat(2, 1fr); } }
.brand-tile {
  display: flex; align-items: center; padding: .95rem 1.15rem;
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  text-decoration: none; color: var(--ink);
  font-family: var(--font-display); font-weight: 700; font-size: .9rem;
  text-transform: uppercase; letter-spacing: .02em;
  transition: border-color .15s, color .15s, box-shadow .15s;
}
.brand-tile:hover { border-color: var(--accent); color: var(--accent); box-shadow: var(--shadow); }
.brand-more { text-align: center; margin-top: 1.5rem; }

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

.parts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 1.2rem;
}

.part-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: border-color .2s, box-shadow .25s;
}
.part-card:hover { border-color: var(--ink); box-shadow: var(--shadow); }

.part-card__media {
  position: relative;
  aspect-ratio: 4 / 2.6;
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(-45deg, rgba(22,24,29,.03) 0 2px, transparent 2px 12px),
    var(--chip-bg);
  color: var(--ink-soft);
}
.part-card__art { width: 84px; height: 84px; opacity: .85; }

.badge {
  position: absolute;
  top: .7rem;
  inset-inline-start: .7rem;
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: .18rem .6rem;
  border-radius: 4px;
}
.badge--new { background: var(--ok); color: #fff; }
.badge--used { background: var(--asphalt); color: #fff; }
.badge--refurbished { background: #b45309; color: #fff; }

/* merk-logo-badge — spiegel van de conditie-badge (rechtsboven, auto-RTL) */
.brand-badge {
  position: absolute;
  top: .7rem;
  inset-inline-end: .7rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.brand-badge--mono {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bc, #3a3f4a);
  color: #fff;
  font-family: "Archivo", var(--font-body);
  font-weight: 800;
  font-size: .82rem;
  letter-spacing: .01em;
  box-shadow: 0 2px 7px rgba(0, 0, 0, .22);
}
/* logo's zijn vaak breed (bv. 160x36): vaste hoogte, breedte meeschalend, en
   flex:none zodat het logo niet platgedrukt wordt door de flex-container */
.brand-badge img {
  flex: none;
  height: 44px;
  width: auto;
  max-width: 92px;
  min-width: 44px;
  object-fit: contain;
  background: #fff;
  border-radius: 10px;
  padding: 5px;
  box-shadow: 0 2px 7px rgba(0, 0, 0, .18);
}
.detail__media .brand-badge--mono { width: 52px; height: 52px; font-size: 1rem; border-radius: 12px; }
.detail__media .brand-badge img { height: 52px; max-width: 130px; border-radius: 12px; padding: 7px 10px; }

.part-card__body {
  padding: 1rem 1.1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: .45rem;
  flex: 1;
}

.pn-chip {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--ink-soft);
  background: var(--chip-bg);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: .12rem .55rem;
  direction: ltr;
  unicode-bidi: embed;
}

.part-card__title {
  font-size: 1.02rem;
  font-weight: 700;
  margin: 0;
}

.part-card__fits {
  font-size: .82rem;
  color: var(--muted);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.part-card__meta {
  margin-top: auto;
  padding-top: .6rem;
  border-top: 1px dashed var(--line);
  display: flex;
  flex-direction: column;
  gap: .15rem;
}
.part-card__price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
}
.part-card__price small { font-size: .72rem; font-weight: 600; color: var(--muted); }
.part-card__city { font-size: .8rem; color: var(--muted); }

/* ---------- how it works ---------- */

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  counter-reset: step;
}
@media (max-width: 820px) { .how-grid { grid-template-columns: 1fr; } }

.how-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  position: relative;
}
.how-card::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--font-mono);
  font-size: .8rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .1em;
  display: block;
  margin-bottom: .8rem;
}
.how-card h3 { font-size: 1.15rem; }
.how-card p { color: var(--muted); font-size: .93rem; margin: 0; }

/* ---------- dealer CTA ---------- */

.dealer-cta {
  background:
    radial-gradient(700px 300px at 15% 120%, rgba(232, 89, 12, .25), transparent 60%),
    var(--asphalt);
  color: #fff;
  border-radius: 16px;
  padding: clamp(2.2rem, 5vw, 3.5rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.dealer-cta h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; margin-bottom: .4rem; }
.dealer-cta p { color: #c3c7d1; margin: 0; max-width: 520px; }
.dealer-cta__action { display: flex; flex-direction: column; gap: .5rem; align-items: flex-start; }
.dealer-cta__action small { color: #9aa0ad; font-size: .8rem; }

/* ---------- parts pagina (filters + resultaten) ---------- */

.page-head {
  background: var(--asphalt);
  color: #fff;
  padding-block: 2.2rem;
}
.page-head h1 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); font-weight: 800; margin: 0; }

.browse {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 1.6rem;
  align-items: start;
  padding-block: 2rem 4rem;
}
@media (max-width: 920px) { .browse { grid-template-columns: 1fr; } }

.filters {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.05rem 1.15rem;
  position: sticky;
  /* sticky-header = topbar (36) + header-rij (68) ≈ 105px; hou daaronder een
     beetje ruimte zodat het filterpaneel niet aan de header plakt bij scrollen */
  top: 121px;
  max-height: calc(100vh - 137px);
  overflow-y: auto;
}
@media (max-width: 920px) { .filters { position: static; top: auto; max-height: none; overflow: visible; } }

.filters h2 {
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  margin-bottom: .5rem;
}

/* compact filterpaneel — minimale tussenruimte zodat de hele tegel in beeld past */
.filters .field { margin-bottom: .42rem; }
.filters .field label { margin-bottom: .14rem; font-size: .78rem; }
.filters .field input,
.filters .field select { min-height: 37px; }
.filters .btn { margin-top: .2rem; padding-block: .58rem; }

.field { margin-bottom: 1rem; }
.field label {
  display: block;
  font-size: .82rem;
  font-weight: 700;
  margin-bottom: .3rem;
}
.field input,
.field select {
  width: 100%;
  min-height: 46px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-family: var(--font-body);
  font-size: .92rem;
  color: var(--ink);
  padding-inline: .85rem;
  transition: border-color .18s, box-shadow .18s, background-color .18s;
}
.field select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  cursor: pointer;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .85rem center;
  background-size: 16px;
}
.field input:hover, .field select:hover:not(:disabled) { border-color: #c4c0b4; }
.field input:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(232, 89, 12, .14); }
.field select:disabled { background-color: var(--chip-bg); color: var(--muted); cursor: not-allowed; opacity: .75; }

.filters .btn { width: 100%; }

.results__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
}
.results__count { font-weight: 700; font-size: .95rem; }
.results__bar select {
  min-height: 44px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  padding-inline: .95rem 2.4rem;
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .8rem center;
  background-size: 15px;
  transition: border-color .18s, box-shadow .18s;
}
[dir="rtl"] .results__bar select { background-position: left .8rem center; padding-inline: 2.4rem .95rem; }
.results__bar select:hover { border-color: #c4c0b4; }
.results__bar select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(232, 89, 12, .14); }

.results-empty {
  background: var(--panel);
  border: 1.5px dashed var(--line);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  text-align: center;
  color: var(--muted);
}

/* ---------- detailpagina ---------- */

.crumb {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .88rem;
  color: var(--muted);
  margin-block: 1.4rem .8rem;
  transition: color .2s;
}
.crumb:hover { color: var(--ink); }
.crumb svg { width: 15px; height: 15px; }
[dir="rtl"] .crumb svg { transform: scaleX(-1); }

.detail {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 2rem;
  padding-bottom: 4rem;
  align-items: start;
}
@media (max-width: 920px) { .detail { grid-template-columns: 1fr; } }

.detail__media {
  background:
    repeating-linear-gradient(-45deg, rgba(22,24,29,.03) 0 2px, transparent 2px 12px),
    var(--chip-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  color: var(--ink-soft);
  position: relative;
}
.detail__media svg { width: 160px; height: 160px; opacity: .85; }

.detail__panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem;
  position: sticky;
  top: 115px;
  align-self: start;
}
@media (max-width: 920px) { .detail__panel { position: static; } }

.detail__title { font-size: clamp(1.3rem, 2.6vw, 1.7rem); font-weight: 800; }

.detail__chips { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1rem; }

.id-plate {
  display: flex;
  align-items: center;
  gap: .7rem;
  background: var(--asphalt);
  color: #fff;
  border-radius: 8px;
  padding: .7rem 1rem;
  margin-block: 1rem;
}
.id-plate__label {
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #9aa0ad;
}
.id-plate__value {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: .06em;
  direction: ltr;
  unicode-bidi: embed;
}
.id-plate__hint { font-size: .78rem; color: var(--muted); margin: .4rem 0 0; }

.detail__price {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 800;
  margin-block: .4rem 0;
}
.detail__price small { font-size: .95rem; color: var(--muted); font-weight: 600; }
.detail__price-note { font-size: .8rem; color: var(--muted); margin: 0 0 1.2rem; }

.contact-row { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-block: 1.2rem; }
.contact-row .btn--form { grid-column: 1 / -1; }

.dealer-box {
  border-top: 1px solid var(--line);
  margin-top: 1.4rem;
  padding-top: 1.2rem;
}
.dealer-box__label { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.dealer-box__name { font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; }
.dealer-box__meta { font-size: .85rem; color: var(--muted); }
.dealer-box .verified {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  color: var(--ok);
  font-size: .8rem;
  font-weight: 700;
}
.dealer-box .verified svg { width: 14px; height: 14px; }

.spec-block { margin-top: 2rem; }
.spec-block h2 { font-size: 1.15rem; font-weight: 800; margin-bottom: .8rem; }

.compat-table { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.compat-table th, .compat-table td {
  text-align: start;
  padding: .65rem .9rem;
  font-size: .9rem;
  border-bottom: 1px solid var(--line);
}
.compat-table th {
  background: var(--chip-bg);
  font-family: var(--font-display);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.compat-table tr:last-child td { border-bottom: 0; }

.desc-block p {
  color: var(--ink-soft);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .85rem .9rem;
  font-size: .9rem;
  line-height: 1.6;
}

/* ---------- modal ---------- */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(22, 24, 29, .55);
  display: none;
  place-items: center;
  z-index: 100;
  padding: 1rem;
}
.modal-backdrop.is-open { display: grid; }

.modal {
  background: var(--panel);
  border-radius: 14px;
  padding: 1.8rem;
  width: min(460px, 100%);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .5);
}
.modal h2 { font-size: 1.3rem; font-weight: 800; margin-bottom: .2rem; }
.modal > p { color: var(--muted); font-size: .88rem; margin-top: 0; }
.modal .field textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: .92rem;
  padding: .7rem;
  min-height: 90px;
  resize: vertical;
}
.modal .field textarea:focus { outline: none; border-color: var(--accent); }
.modal__actions { display: flex; gap: .6rem; margin-top: 1.2rem; }
.modal__actions .btn { flex: 1; }

.modal__success {
  display: none;
  text-align: center;
  padding: 1.5rem 0 .5rem;
}
.modal__success svg { width: 52px; height: 52px; color: var(--ok); margin: 0 auto 1rem; }
.modal__success p { font-weight: 700; }

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

#site-footer { background: var(--asphalt); color: #b8bcc6; margin-top: auto; }

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-block: 3rem 2rem;
}
@media (max-width: 820px) { .footer__grid { grid-template-columns: 1fr 1fr; } }

.footer__brand p { font-size: .88rem; max-width: 34ch; }
.logo--foot { color: #fff; margin-bottom: .8rem; }

#site-footer h4 {
  color: #fff;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: .9rem;
}
#site-footer a {
  display: block;
  font-size: .9rem;
  padding-block: .25rem;
  color: #b8bcc6;
  transition: color .2s;
}
#site-footer a:hover { color: #fff; }
#site-footer .logo--foot { display: inline-flex; }

.footer__bottom {
  /* 1fr | auto | 1fr — het copyright staat links, "Powered by" zit in de
     middenkolom en is daardoor echt gecentreerd t.o.v. de volle breedte.
     De derde kolom blijft leeg en houdt het midden in balans. */
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: .5rem;
  padding-block: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .8rem;
  color: #7d828e;
}
@media (max-width: 640px) {
  .footer__bottom { grid-template-columns: 1fr; justify-items: center; text-align: center; }
}

/* "Powered by Webiro" — het logo is blauw, brightness(0)+invert maakt het wit
   zodat het op de donkere footer past. ID-selector nodig: #site-footer a zet
   display:block en zou de inline-flex anders overrulen. */
#site-footer .powered-by {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .625rem;
  padding-block: 0;
  /* zelfde lettertype, grootte en kleur als het copyright ernaast */
  font: inherit;
  color: inherit;
  transition: color .2s;
}
#site-footer .powered-by:hover { color: #b8bcc6; }
#site-footer .powered-by img {
  height: 12px;
  width: auto;
  display: block;
  /* het woordmerk zit gecentreerd in het svg-kader, maar bij tekst ligt het
     optische midden van de letters hóger dan het regelmidden — zonder deze
     correctie hangt het logo ~2,6px te laag t.o.v. "Powered by" */
  transform: translateY(-.18em);
  filter: brightness(0) invert(1);
  opacity: .6;
  transition: opacity .2s;
}
#site-footer .powered-by:hover img { opacity: 1; }

/* ---------- dashboard & admin (stap 4 + 5) ---------- */

/* alleen de PRODUCTFOTO vult de box — niet het merklogo in .brand-badge
   (dat is een kleinkind, vandaar de directe-kind-selector) */
.part-card__photo, .detail__media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.dash { padding-block: 2rem 4rem; }

.dash__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.6rem;
}
.dash__who { font-size: .9rem; color: var(--muted); }
.dash__who b { color: var(--ink); font-family: var(--font-display); }

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.stat-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem;
}
.stat-card b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 800;
}
.stat-card span { font-size: .82rem; color: var(--muted); }
.stat-card--warn b { color: var(--accent); }

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.6rem;
}
.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.panel__head h2 { font-size: 1.2rem; font-weight: 800; margin: 0; }
.panel__head p { font-size: .84rem; color: var(--muted); margin: .2rem 0 0; }

.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td {
  text-align: start;
  padding: .7rem .8rem;
  font-size: .89rem;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.data-table th {
  font-family: var(--font-display);
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
}
.data-table tr:last-child td { border-bottom: 0; }
.data-table .pn-chip { font-size: .7rem; }

.table-scroll { overflow-x: auto; }

.pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: .18rem .6rem;
  border-radius: 999px;
  white-space: nowrap;
}
.pill--active { background: #e2f3ea; color: var(--ok); }
.pill--paused { background: #ececec; color: var(--ink-soft); }
.pill--pending { background: #fdeadd; color: #b45309; }
.pill--rejected { background: #fde3e3; color: #b91c1c; }

.btn--sm {
  min-height: 34px;
  padding: .25rem .8rem;
  font-size: .8rem;
  border-radius: 7px;
}
.btn--danger { background: transparent; color: #b91c1c; border: 1.5px solid #eecaca; }
.btn--danger:hover { border-color: #b91c1c; }
.row-actions { display: flex; gap: .4rem; flex-wrap: wrap; }

.req-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .9rem;
  padding: .9rem 0;
  border-bottom: 1px dashed var(--line);
}
.req-item:last-child { border-bottom: 0; }
.req-item__id { align-self: start; }
.req-item__head { display: flex; gap: .7rem; align-items: baseline; flex-wrap: wrap; }
.req-item__name { font-weight: 700; font-family: var(--font-display); }
.req-item__phone { font-family: var(--font-mono); font-size: .8rem; color: var(--muted); direction: ltr; unicode-bidi: embed; }
.req-item__date { font-size: .75rem; color: var(--muted); margin-inline-start: auto; }
.req-item__msg { margin: .2rem 0 0; font-size: .9rem; color: var(--ink-soft); }
.req-item__part { font-size: .78rem; color: var(--muted); }

/* login card */
.auth-wrap { max-width: 460px; margin-inline: auto; padding-block: 3.5rem 5rem; }
.auth-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 2rem;
}
.auth-card h1 { font-size: 1.5rem; font-weight: 800; margin-bottom: .3rem; }
.auth-card > p { color: var(--muted); font-size: .9rem; margin-top: 0; }
.auth-list { display: flex; flex-direction: column; gap: .55rem; margin-top: 1.2rem; }
.auth-dealer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: .8rem 1rem;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: .95rem;
  text-align: start;
  transition: border-color .2s, box-shadow .2s;
}
.auth-dealer:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.auth-dealer b { font-family: var(--font-display); }
.auth-dealer small { color: var(--muted); }

/* part-form */
.pform .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 700px) { .pform .grid2 { grid-template-columns: 1fr; } }
.pform textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: .92rem;
  padding: .7rem;
  min-height: 70px;
  resize: vertical;
}
.pform textarea:focus { outline: none; border-color: var(--accent); }
.field .hint { font-size: .75rem; color: var(--muted); margin-top: .25rem; }

.compat-row {
  display: grid;
  grid-template-columns: 1fr 1.4fr auto auto auto;
  gap: .6rem;
  align-items: end;
  padding: .8rem;
  border: 1.5px dashed var(--line);
  border-radius: 8px;
  margin-bottom: .6rem;
}
@media (max-width: 700px) { .compat-row { grid-template-columns: 1fr 1fr; } }
.compat-row select[multiple] { min-height: 84px; padding-block: .4rem; }
.compat-row .field { margin-bottom: 0; }
.compat-row__del {
  background: transparent;
  border: 0;
  color: #b91c1c;
  cursor: pointer;
  font-size: 1.1rem;
  padding: .4rem;
  align-self: center;
}

.photo-drop {
  border: 1.5px dashed var(--line);
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.photo-drop img { width: 84px; height: 64px; object-fit: cover; border-radius: 6px; }

.toast {
  position: fixed;
  bottom: 1.4rem;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  background: var(--asphalt);
  color: #fff;
  border-radius: 10px;
  padding: .8rem 1.4rem;
  font-size: .9rem;
  box-shadow: 0 16px 40px -12px rgba(0,0,0,.5);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
[dir="rtl"] .toast { transform: translateX(50%); }
.toast.is-visible { opacity: 1; }

/* ---------- contentpagina's (stap 7: standaardpagina's) ---------- */

.page-head p.page-head__sub {
  margin: .5rem 0 0;
  color: #b8bcc6;
  max-width: 60ch;
}

.prose {
  max-width: 720px;
  padding-block: 2.5rem 4.5rem;
}
.prose h2 {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 2.2rem 0 .6rem;
}
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-soft); line-height: 1.75; }
.prose ul { padding-inline-start: 1.2rem; }
.prose .note {
  background: var(--chip-bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: .8rem 1rem;
  font-size: .85rem;
  color: var(--muted);
  margin-top: 2.5rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 2rem;
  align-items: start;
  padding-block: 2.5rem 4.5rem;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-info .panel { margin-bottom: 0; }
.contact-info h3 { font-size: 1rem; font-weight: 800; margin-bottom: .3rem; }
.contact-info p { margin: 0; color: var(--ink-soft); font-size: .93rem; }
.contact-info .mono { font-family: var(--font-mono); font-size: .88rem; direction: ltr; unicode-bidi: embed; }

/* ---------- reveal animaties ---------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in-view { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: .07s; }
.reveal:nth-child(3) { transition-delay: .14s; }
.reveal:nth-child(4) { transition-delay: .21s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* body layout: footer onderaan */
body { display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1; }

/* ================= Fase D — dealer-profielen & directory ================= */
.muted { color: var(--muted); }

.verified {
  display: inline-flex; align-items: center; gap: .3rem;
  color: var(--ok); font-size: .8rem; font-weight: 700;
}
.verified svg { width: 14px; height: 14px; }
.verified--lg { font-size: .82rem; background: rgba(26, 127, 78, .12); padding: .22rem .7rem; border-radius: 999px; }

/* dealer-logo (monogram of afbeelding) */
.dealer-logo { display: inline-flex; align-items: center; justify-content: center; flex: none; border-radius: 14px; overflow: hidden; background: #fff; }
.dealer-logo--mono { background: var(--dc, #333); color: #fff; font-family: var(--font-display); font-weight: 800; letter-spacing: .01em; }
.dealer-logo img { width: 100%; height: 100%; object-fit: contain; }

/* part.html: dealer-box wordt klikbaar naar het profiel */
.dealer-box--link { display: block; text-decoration: none; color: inherit; }
.dealer-box--link:hover .dealer-box__name { color: var(--accent); }
.dealer-box__cta { display: inline-flex; align-items: center; gap: .35rem; margin-top: .8rem; color: var(--accent); font-weight: 700; font-size: .85rem; }
.dealer-box__cta svg { width: 15px; height: 15px; }
[dir="rtl"] .dealer-box__cta svg { transform: scaleX(-1); }

/* publieke dealerkaart op de productpagina (zoals de portaal-preview) */
.dcard { margin-top: 1.5rem; border: 1px solid var(--line); border-radius: 14px; padding: 1.2rem 1.25rem; background: #faf9f6; }
.dcard__label { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: .85rem; }
.dcard__head { display: flex; gap: .9rem; align-items: center; text-decoration: none; color: inherit; }
.dcard__logo { width: 56px; height: 56px; border-radius: 14px; font-size: 1.15rem; flex: none; }
.dcard__id { min-width: 0; }
.dcard__name { font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; line-height: 1.2; }
.dcard__head:hover .dcard__name { color: var(--accent); }
.dcard__loc { display: inline-flex; align-items: center; gap: .35rem; color: var(--muted); font-size: .85rem; margin-top: .25rem; }
.dcard__btns { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-top: 1rem; }
.dcard__btns .btn { min-height: 44px; }
.dcard__btns .btn--form { grid-column: 1 / -1; }
.dcard__call { border: 1.5px solid var(--line); background: #fff; color: var(--ink); }
.dcard__call:hover { border-color: var(--ink); }
.dcard__foot { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: nowrap; margin-top: 1rem; }
.dcard__member { display: inline-flex; align-items: center; gap: .4rem; color: var(--muted); font-size: .8rem; line-height: 1; white-space: nowrap; min-width: 0; }
.dcard__member svg { flex: none; display: block; }
.dcard__link { display: inline-flex; align-items: center; gap: .35rem; color: var(--accent); font-weight: 700; font-size: .82rem; line-height: 1; text-decoration: none; white-space: nowrap; flex: none; }
.dcard__link svg { display: block; }

/* icoon-tekst uitlijning: vinkje, pin en klok exact op teksthoogte */
.verified, .verified--lg, .dcard__loc, .dealer-hero__loc, .dealer-tile__loc, .dealer-hero__meta { line-height: 1; }
.verified svg, .verified--lg svg, .dcard__loc svg, .dealer-hero__loc svg, .dealer-tile__loc svg { display: block; flex: none; }
[dir="rtl"] .dcard__link svg { transform: scaleX(-1); }

/* ---- profiel-hero ---- */
.dealer-hero { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; margin-bottom: 1.6rem; }
.dealer-hero__cover { height: 96px; background: linear-gradient(120deg, var(--asphalt), var(--asphalt-2)); }
.dealer-hero__bar { display: flex; align-items: flex-end; gap: 1.1rem; padding: 0 1.6rem 1.2rem; flex-wrap: wrap; }
.dealer-hero__logo { width: 96px; height: 96px; border-radius: 20px; border: 4px solid var(--panel); box-shadow: var(--shadow); font-size: 1.9rem; margin-top: -48px; }
.dealer-hero__id { flex: 1 1 260px; min-width: 0; padding-bottom: .15rem; }
.dealer-hero__name { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; font-family: var(--font-display); font-size: clamp(1.35rem, 3vw, 1.9rem); font-weight: 800; margin: 0; }
.dealer-hero__meta { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; color: var(--muted); font-size: .9rem; margin-top: .45rem; }
.dealer-hero__loc { display: inline-flex; align-items: center; gap: .3rem; }
.dealer-hero__actions { display: flex; gap: .6rem; padding-bottom: .3rem; }
.dealer-hero__stats { display: flex; gap: 2.6rem; padding: 1.1rem 1.6rem; border-top: 1px solid var(--line); background: #faf9f6; }
.dstat b { display: block; font-family: var(--font-display); font-size: 1.4rem; font-weight: 800; line-height: 1.1; }
.dstat span { font-size: .8rem; color: var(--muted); }

/* ---- profiel-listings ---- */
.dealer-listings__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 1.1rem; }
.dealer-listings__head h2 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 800; margin: 0; }

/* ---- directory ---- */
.dealer-dir { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.1rem; padding-block: .5rem 0; }
.dealer-tile { display: flex; flex-direction: column; gap: .8rem; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 1.2rem; text-decoration: none; color: inherit; transition: border-color .18s, box-shadow .18s, transform .18s; }
.dealer-tile:hover { border-color: var(--ink); box-shadow: var(--shadow); transform: translateY(-2px); }
.dealer-tile__top { display: flex; align-items: center; gap: .8rem; }
.dealer-tile__logo { width: 52px; height: 52px; border-radius: 13px; font-size: 1.1rem; flex: none; }
.dealer-tile__id { min-width: 0; }
.dealer-tile__name { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; }
.dealer-tile__loc { display: inline-flex; align-items: center; gap: .35rem; color: var(--muted); font-size: .86rem; }
.dealer-tile__foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: .3rem; }
.dealer-tile__count { font-size: .88rem; color: var(--ink-soft); }
.dealer-tile__count b { font-weight: 800; }
.dealer-tile__cta { display: inline-flex; align-items: center; gap: .3rem; color: var(--accent); font-weight: 700; font-size: .85rem; }
[dir="rtl"] .dealer-tile__cta svg { transform: scaleX(-1); }

@media (max-width: 640px) {
  .dealer-hero__stats { gap: 1.6rem; }
  .dealer-hero__actions { width: 100%; }
  .dealer-hero__actions .btn { flex: 1; justify-content: center; }
}

/* ================= Fase C — afstandsfilter & kaart ================= */
.field--distance { display: grid; grid-template-columns: 1.25fr 1fr; gap: .5rem; }
.field--distance label { grid-column: 1 / -1; }
.field--distance select { width: 100%; min-width: 0; }
.field--radius:disabled { opacity: .5; cursor: not-allowed; }
.part-card__dist {
  display: inline-flex; align-items: center; gap: .3rem;
  margin-top: .55rem; padding: .2rem .55rem;
  border-radius: 999px; background: rgba(232, 89, 12, .1);
  color: var(--accent); font-size: .78rem; font-weight: 700; width: max-content;
}
.part-card__dist svg { width: 12px; height: 12px; }

/* ---- interactieve Iraq-kaart (dealers.html) ---- */
.dealer-mapwrap { margin: .4rem 0 1.6rem; }
.dealer-map { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 1rem 1rem .6rem; }
.iraq-map { display: block; width: 100%; max-width: 540px; height: auto; margin: 0 auto; }
.iraq-shape { fill: #f1efe8; stroke: var(--line); stroke-width: 1.5; stroke-linejoin: round; }
.map-dot { fill: #cbc8bd; }
.map-pin { cursor: pointer; }
.map-pin__halo { fill: var(--accent); opacity: 0; transition: opacity .18s; }
.map-pin.is-active .map-pin__halo,
.map-pin:hover .map-pin__halo,
.map-pin:focus-visible .map-pin__halo { opacity: .2; }
.map-pin__dot { fill: var(--accent); stroke: #fff; stroke-width: 2; }
.map-pin.is-active .map-pin__dot { fill: var(--ink); }
.map-pin__num { fill: #fff; font-family: var(--font-display); font-weight: 800; font-size: 11px; text-anchor: middle; pointer-events: none; }
.map-pin__lbl { fill: var(--ink); font-family: var(--font-display); font-weight: 700; font-size: 11px; text-anchor: middle; pointer-events: none; paint-order: stroke; stroke: var(--panel); stroke-width: 3px; }
.map-pin:focus { outline: none; }

.dir-head:empty { display: none; }
.dir-head { margin-bottom: .9rem; }
.dir-chip { display: inline-flex; align-items: center; gap: .5rem; background: var(--chip-bg); border-radius: 999px; padding: .3rem .4rem .3rem .95rem; font-weight: 700; font-size: .9rem; }
.dir-chip button { border: 0; background: var(--ink); color: #fff; width: 22px; height: 22px; border-radius: 999px; cursor: pointer; font-size: .78rem; line-height: 1; display: inline-flex; align-items: center; justify-content: center; }
.dir-chip button:hover { background: var(--accent); }

/* ================= Fase E — rijkere productpagina ================= */
.spec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 1.6rem; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: .3rem 1.1rem; }
.spec { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: .7rem 0; border-bottom: 1px solid var(--line); }
/* geen streep onder de onderste cel van elke kolom */
.spec:last-child { border-bottom: 0; }
@media (min-width: 561px) { .spec:nth-last-child(2) { border-bottom: 0; } }
.spec dt { color: var(--muted); font-size: .84rem; font-weight: 600; margin: 0; flex: none; }
.spec dd { margin: 0; font-weight: 700; font-size: .9rem; display: flex; flex-wrap: wrap; gap: .3rem; justify-content: flex-end; }
.spec dd .pn-chip { font-weight: 600; }
.badge--inline { position: static; font-size: .7rem; }
.spec-link { color: var(--ink); text-decoration: none; border-bottom: 1px dashed var(--muted); }
.spec-link:hover { color: var(--accent); border-color: var(--accent); }

.similar { margin-top: 3rem; }
.similar:empty { display: none; }
.similar__title { font-family: var(--font-display); font-size: 1.4rem; font-weight: 800; margin-bottom: 1.2rem; }

/* ---- beoordelingen (reviews) ---- */
.reviews-block:empty { display: none; }
.reviews-block { margin-top: 3rem; }
.reviews__head { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.reviews__head h2 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 800; margin: 0; }
.reviews__avg { display: inline-flex; align-items: center; gap: .5rem; }
.reviews__avg b { font-size: 1.1rem; }
.stars { color: #e8a33d; letter-spacing: 1px; white-space: nowrap; }
.stars__off { color: var(--line); }
.reviews__list { display: grid; gap: .8rem; margin-bottom: 1.8rem; max-width: 720px; }
.review { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.1rem; }
.review__top { display: flex; align-items: center; gap: .6rem; margin-bottom: .3rem; }
.review__top .stars { font-size: .95rem; }
.review__top b { font-size: .92rem; }
.review p { margin: 0; color: var(--ink-soft); font-size: .92rem; }
.review-form { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 1.2rem 1.25rem; max-width: 520px; }
.review-form h3 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; margin: 0 0 .8rem; }
.review-form__stars { display: flex; gap: .1rem; margin-bottom: .8rem; }
.rf-star { border: 0; background: none; cursor: pointer; font-size: 1.7rem; line-height: 1; color: var(--line); padding: 0 .05rem; transition: color .12s; }
.rf-star.is-on { color: #e8a33d; }
.review-form input, .review-form textarea { width: 100%; border: 1.5px solid var(--line); border-radius: 10px; padding: .7rem .85rem; font-family: var(--font-body); font-size: .92rem; margin-bottom: .7rem; }
.review-form textarea { min-height: 90px; resize: vertical; }
.review-form .btn { width: auto; }
/* altijd ademruimte tussen de laatste content en de footer (interieurpagina's) */
body[data-page="part"] main > .container,
body[data-page="shops"] main > .container { padding-bottom: 4rem; }

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

/* =========================================================
   3D-kaart van Irak op de dealers-pagina (herbruikt js/iraqmap.js).
   Licht + paars, zoals de admin-kaart. Vars gescoped op .dealer-mapwrap.
   ========================================================= */
.dealer-mapwrap {
  --accent: #6d5efc; --accent-2: #9b8cff;
  --map-top-hi: #d3d9ee; --map-top-mid: #b6bfda; --map-top-lo: #9ba6ca;
  --map-side-hi: #a6afce; --map-side-lo: #949ec0;
  --map-ground: #3c4666; --map-cast: rgba(43,52,84,.26);
  --gov-top: #bcc4de; --gov-stroke: rgba(30,36,66,.34);
  --gov-lbl: #171c38; --gov-lbl-stroke: rgba(255,255,255,.9); --gov-lbl-dim: rgba(23,28,56,.6);
}
/* kaart + streken-lijst naast elkaar (altijd even hoog; lijst scrollt intern) */
.map-row { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 18px; align-items: stretch; margin-bottom: 1.4rem; }
.map-row > .map-card { display: flex; flex-direction: column; min-height: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.map-card__head { padding: 16px 18px; border-bottom: 1px solid var(--line); }
.map-card__title { font-family: var(--font-head, inherit); font-weight: 800; font-size: 1.05rem; color: var(--ink); }
.map-card__sub { font-size: .82rem; color: var(--muted); margin-top: 2px; }
.map-card__body { padding: 14px 16px; }
@media (max-width: 820px) { .map-row { grid-template-columns: 1fr; } .map-row .region-list { flex: 0 0 auto; max-height: 360px; } }

.iraq3d { position: relative; width: 100%; margin: 0 auto; }
.iraq3d__svg { width: 100%; height: auto; display: block; overflow: visible; }
.iraq3d.is-zoomed .iraq3d__svg { overflow: hidden; cursor: grab; touch-action: none; }
.iraq3d.is-zoomed .iraq3d__svg:active { cursor: grabbing; }
.map-zoom { position: absolute; top: 8px; right: 8px; display: flex; flex-direction: column; gap: 6px; z-index: 3; }
.map-zoom__btn { width: 30px; height: 30px; border-radius: 9px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); font-size: 15px; font-weight: 700; cursor: pointer; display: grid; place-items: center; transition: .15s; }
.map-zoom__btn:hover { color: var(--ink); border-color: var(--accent); }
.st-hi { stop-color: var(--map-top-hi); } .st-mid { stop-color: var(--map-top-mid); } .st-lo { stop-color: var(--map-top-lo); }
.ss-hi { stop-color: var(--map-side-hi); } .ss-lo { stop-color: var(--map-side-lo); }
.gs-0 { stop-color: var(--map-ground); stop-opacity: .22; } .gs-1 { stop-color: var(--map-ground); stop-opacity: .07; } .gs-2 { stop-color: var(--map-ground); stop-opacity: 0; }
.rl-0 { stop-color: #fff; stop-opacity: .9; } .rl-1 { stop-color: #fff; stop-opacity: .12; } .rl-2 { stop-color: #5a6284; stop-opacity: .35; }
.gh-0 { stop-color: #a99bff; } .gh-1 { stop-color: var(--accent); } .gh-2 { stop-color: #4f36d6; }
.iraq3d__ground { animation: badgeIn .9s ease backwards; }
.gov { cursor: pointer; transition: transform .28s cubic-bezier(.22,.9,.28,1.25), filter .28s ease, opacity .25s ease; }
.gov.is-hover { transform: translateY(-26px); filter: drop-shadow(0 20px 16px var(--map-cast)); }
.gov.is-hover:active { transform: translateY(-13px); transition: transform .08s cubic-bezier(.4,0,1,1), filter .28s ease, opacity .25s ease; }
.iraq3d:has(.gov.is-hover) .gov:not(.is-hover) { opacity: .5; }
.iraq3d:has(.gov.is-hover) .gov-badge:not(.is-hover) { opacity: .35; }
.gov-in { animation: govRise .6s cubic-bezier(.2,.75,.3,1.12) backwards; animation-delay: var(--d, 0ms); }
@keyframes govRise { from { transform: translateY(44px); opacity: 0; } }
.gov-side { fill: url(#mapSideLit); transition: fill .2s; }
.gov-top { fill: url(#mapTopLit); stroke: var(--gov-stroke); stroke-width: 1; stroke-linejoin: round; transition: fill .2s, stroke .2s; }
.gov-tint { fill: var(--accent); opacity: 0; pointer-events: none; transition: opacity .2s; }
.gov--d1 .gov-tint { opacity: .16; } .gov--d2 .gov-tint { opacity: .30; } .gov--d3 .gov-tint { opacity: .45; }
.gov-hit { fill: transparent; stroke: none; pointer-events: all; }
.gov.is-hover .gov-top { fill: url(#govHoverGrad); stroke: #2e1f7a; stroke-width: 2; animation: none; }
.gov.is-hover .gov-tint { opacity: 0; }
.gov.is-hover .gov-side { fill: color-mix(in srgb, var(--accent), #000 52%); }
.gov-badge { pointer-events: none; animation: badgeIn .5s ease backwards; transition: transform .28s cubic-bezier(.22,.9,.28,1.25), opacity .25s ease; }
.gov-badge.is-hover { transform: translate(5.2px, -15.6px); }
@keyframes badgeIn { from { opacity: 0; } }
.gov-badge__dot { fill: var(--accent); stroke: #fff; stroke-width: 2; filter: drop-shadow(0 2px 3px rgba(0,0,0,.3)); }
.gov-badge__ring { fill: none; stroke: var(--accent-2); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: ringPing 2.8s ease-out infinite; }
@keyframes ringPing { 0% { transform: scale(1); opacity: .75; } 65%, 100% { transform: scale(2.05); opacity: 0; } }
.gov-badge__num { fill: #fff; font-size: 13px; font-weight: 800; text-anchor: middle; }
.gov-badge__lbl { fill: var(--gov-lbl); font-size: 15px; font-weight: 800; text-anchor: middle; paint-order: stroke; stroke: var(--gov-lbl-stroke); stroke-width: 3.5px; }
.gov-badge.is-empty .gov-badge__lbl { font-size: 13px; font-weight: 600; fill: var(--gov-lbl-dim); }
.gov-badge.is-hover .gov-badge__lbl { fill: #2e1f7a; }
.map-legend { display: flex; gap: 16px; justify-content: center; margin-top: 10px; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.legend-chip { display: inline-flex; align-items: center; gap: 6px; }
.legend-swatch { width: 12px; height: 12px; border-radius: 4px; border: 1px solid var(--gov-stroke); background: var(--gov-top); }
.legend-swatch--d1 { background: color-mix(in srgb, var(--gov-top), var(--accent) 16%); }
.legend-swatch--d2 { background: color-mix(in srgb, var(--gov-top), var(--accent) 30%); }
.legend-swatch--d3 { background: color-mix(in srgb, var(--gov-top), var(--accent) 45%); }
/* streken-lijst */
.region-list { flex: 1 1 0; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; padding: 10px; }
.region-row { display: flex; align-items: center; gap: 8px; width: 100%; padding: 11px 12px; border: 0; background: transparent; border-radius: 10px; cursor: pointer; text-align: left; color: var(--ink); transition: background .14s; font-family: inherit; }
.region-row:hover, .region-row.is-hover { background: rgba(109,94,252,.10); }
.region-row__name { font-weight: 600; font-size: 13.5px; }
.region-row__count { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--accent); }
.region-row.is-empty .region-row__count { color: var(--muted); font-weight: 500; }
.region-row .i { width: 16px; height: 16px; color: var(--muted); flex: none; }
.region-row.is-empty { opacity: .72; }
@media (prefers-reduced-motion: reduce) { .gov-in, .gov-badge, .gov-badge__ring, .iraq3d__ground, .gov-top { animation: none; } .gov, .gov-badge { transition: none; } }
