/* Search Parts BMW - V0.2.1 theme integration
   Scoped CSS : all rules are prefixed with .spb- to avoid impacting the shop theme. */
:root {
  --spb-red: #b10f18;
  --spb-red-dark: #830910;
  --spb-black: #1f1f1f;
  --spb-text: #2b2b2b;
  --spb-muted: #6e6e6e;
  --spb-line: #e7e7e7;
  --spb-bg: #f6f6f6;
  --spb-radius: 6px;
  --spb-shadow: 0 8px 22px rgba(0, 0, 0, .08);
}

.spb-page,
.spb-selector-block {
  color: var(--spb-text);
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}

.spb-page a,
.spb-selector-block a {
  text-decoration: none;
}

.spb-card-shell {
  border: 1px solid rgba(0,0,0,.08);
  border-radius: var(--spb-radius);
  box-shadow: var(--spb-shadow);
}

.spb-hero,
.spb-selector-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, .85fr);
  gap: 1.5rem;
  align-items: stretch;
  overflow: hidden;
  background:
    radial-gradient(circle at 95% 15%, rgba(255,255,255,.16) 0, rgba(255,255,255,.16) 68px, transparent 70px),
    linear-gradient(135deg, #171717 0%, #262626 54%, #b10f18 100%);
  color: #fff;
  padding: clamp(1.1rem, 2.5vw, 2rem);
}

.spb-hero::after,
.spb-selector-inner::after {
  content: "BMW";
  position: absolute;
  right: 1.5rem;
  bottom: -.45rem;
  color: rgba(255,255,255,.055);
  font-size: clamp(4rem, 12vw, 9rem);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -.08em;
  pointer-events: none;
}

.spb-hero-main,
.spb-search-panel,
.spb-selector-text,
.spb-selector-form {
  position: relative;
  z-index: 1;
}

.spb-back {
  display: inline-flex;
  align-items: center;
  margin-bottom: .6rem;
  color: rgba(255,255,255,.82) !important;
  font-size: .9rem;
}
.spb-back:hover { color: #fff !important; text-decoration: underline; }

.spb-kicker,
.spb-section-kicker {
  display: inline-block;
  font-size: .76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.spb-kicker { color: #fff; opacity: .88; }
.spb-section-kicker { color: var(--spb-red); margin-bottom: .2rem; }

.spb-hero h1 {
  color: #fff;
  font-size: clamp(1.8rem, 3.4vw, 3rem);
  line-height: 1.04;
  margin: .3rem 0 .75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -.035em;
}

.spb-hero p {
  max-width: 760px;
  color: rgba(255,255,255,.9);
  font-size: 1.03rem;
  line-height: 1.55;
  margin: 0;
}

.spb-hero-badges,
.spb-badges {
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
}
.spb-hero-badges { margin-top: 1.1rem; }

.spb-hero-badges span,
.spb-badges span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .02em;
  padding: .28rem .64rem;
}
.spb-hero-badges span { background: rgba(255,255,255,.14); color: #fff; }
.spb-badges span { background: #f0f0f0; color: #333; }
.spb-badges span:first-child { background: var(--spb-black); color: #fff; }
.spb-badges span:nth-child(2) { background: #f7e5e7; color: var(--spb-red-dark); }

.spb-search-panel {
  align-self: center;
  color: var(--spb-text);
  background: #fff;
  border-radius: var(--spb-radius);
  padding: 1.1rem;
  box-shadow: 0 12px 30px rgba(0,0,0,.18);
}

.spb-main-form,
.spb-search-form { display: flex; flex-direction: column; gap: .65rem; }
.spb-main-form label { font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: #444; margin: 0; }
.spb-form-row,
.spb-search-row,
.spb-selector-form { display: flex; gap: .65rem; align-items: stretch; }

.spb-main-form select,
.spb-selector-form select,
.spb-search-form input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 46px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  background: #fff;
  color: #333;
  padding: .78rem .88rem;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.spb-main-form select:focus,
.spb-selector-form select:focus,
.spb-search-form input:focus {
  border-color: var(--spb-red);
  box-shadow: 0 0 0 3px rgba(177,15,24,.12);
}

.spb-btn-primary,
.spb-main-form button,
.spb-selector-form button,
.spb-search-form button,
.spb-product-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 0;
  border-radius: 4px;
  background: var(--spb-red);
  color: #fff !important;
  padding: .78rem 1.05rem;
  cursor: pointer;
  text-align: center;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .02em;
  transition: background .16s ease, transform .16s ease, box-shadow .16s ease;
}
.spb-btn-primary:hover,
.spb-main-form button:hover,
.spb-selector-form button:hover,
.spb-search-form button:hover,
.spb-product-button:hover {
  background: var(--spb-red-dark);
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 7px 16px rgba(177,15,24,.22);
}

.spb-mini-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .45rem;
  margin-top: .8rem;
}
.spb-mini-steps span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  background: #f6f6f6;
  border: 1px solid #eee;
  border-radius: 4px;
  color: #555;
  font-size: .78rem;
  padding: .45rem .35rem;
}
.spb-mini-steps b {
  display: inline-flex;
  width: 19px;
  height: 19px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--spb-red);
  color: #fff;
  font-size: .72rem;
}

.spb-intro-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: .85rem;
  margin-top: 1rem;
}
.spb-info-card {
  background: #fff;
  border: 1px solid var(--spb-line);
  border-radius: var(--spb-radius);
  padding: 1rem;
  box-shadow: 0 4px 14px rgba(0,0,0,.04);
}
.spb-info-card strong { display: block; color: #222; font-size: .98rem; text-transform: uppercase; margin-bottom: .25rem; }
.spb-info-card span { color: var(--spb-muted); font-size: .9rem; line-height: 1.45; }

.spb-section { margin-top: 1.65rem; }
.spb-section-title {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: .95rem;
  padding-bottom: .75rem;
  border-bottom: 2px solid #ececec;
}
.spb-section-title h2,
.spb-results-head h2 {
  margin: 0;
  color: #222;
  font-size: 1.38rem;
  line-height: 1.18;
  text-transform: uppercase;
  font-weight: 900;
}
.spb-section-title p {
  margin: 0;
  color: var(--spb-muted);
  text-align: right;
  max-width: 560px;
  font-size: .93rem;
}

.spb-range-grid,
.spb-version-grid,
.spb-family-grid,
.spb-product-grid {
  display: grid;
  gap: .9rem;
}
.spb-range-grid { grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); }
.spb-version-grid { grid-template-columns: repeat(auto-fill, minmax(235px, 1fr)); }
.spb-family-grid { grid-template-columns: repeat(auto-fill, minmax(188px, 1fr)); }
.spb-product-grid { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }

.spb-range-card,
.spb-version-card,
.spb-family-card,
.spb-product-card,
.spb-empty,
.spb-toolbar {
  background: #fff;
  border: 1px solid var(--spb-line);
  border-radius: var(--spb-radius);
  box-shadow: 0 4px 14px rgba(0,0,0,.045);
}
.spb-range-card,
.spb-version-card,
.spb-family-card {
  color: inherit !important;
  text-decoration: none !important;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.spb-range-card:hover,
.spb-version-card:hover,
.spb-family-card:hover,
.spb-product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(0,0,0,.09);
  border-color: rgba(177,15,24,.35);
}

.spb-range-card {
  position: relative;
  min-height: 112px;
  padding: 1rem .95rem .95rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .25rem;
  overflow: hidden;
}
.spb-range-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--spb-red);
}
.spb-section-classic .spb-range-card::before { background: #333; }
.spb-range-icon {
  position: absolute;
  right: .65rem;
  bottom: -.45rem;
  color: rgba(0,0,0,.055);
  font-size: 4.25rem;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
}
.spb-range-name { position: relative; display: block; color: #222; font-size: 1.22rem; font-weight: 900; }
.spb-range-meta { position: relative; color: var(--spb-muted); font-size: .78rem; line-height: 1.28; }

.spb-version-card {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: .35rem;
  min-height: 118px;
}
.spb-version-card strong { color: #222; font-size: 1.05rem; }
.spb-version-card span,
.spb-version-card small { color: var(--spb-muted); font-size: .86rem; }

.spb-family-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .55rem;
  min-height: 210px;
  padding: .95rem;
  overflow: hidden;
}
.spb-family-code {
  position: absolute;
  z-index: 2;
  top: .75rem;
  left: .75rem;
  border-radius: 999px;
  padding: .22rem .58rem;
  background: var(--spb-red);
  color: #fff;
  font-weight: 900;
  font-size: .8rem;
}
.spb-family-img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 112px;
  margin-top: .3rem;
  background: linear-gradient(180deg, #fafafa 0%, #f2f2f2 100%);
  border-radius: 5px;
  border: 1px solid #eee;
}
.spb-family-card img { max-width: 92%; max-height: 92px; object-fit: contain; }
.spb-family-card strong { color: #222; font-size: 1rem; line-height: 1.25; }
.spb-family-card small { color: var(--spb-muted); }

.spb-toolbar {
  display: grid;
  grid-template-columns: 1fr minmax(310px, 530px);
  align-items: center;
  gap: 1rem;
  margin: 1.35rem 0 1rem;
  padding: 1rem;
}
.spb-toolbar-text strong { display: block; color: #222; text-transform: uppercase; font-size: .98rem; }
.spb-toolbar-text span { display: block; color: var(--spb-muted); font-size: .9rem; }

.spb-results-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.1rem 0 .75rem;
}
.spb-results-head span { color: var(--spb-muted); font-size: .9rem; }

.spb-product-card {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: .95rem;
  padding: .95rem;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.spb-product-image {
  width: 118px;
  height: 118px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 5px;
  background: #f7f7f7;
  color: #777;
  font-size: .78rem;
  text-align: center;
}
.spb-product-image img { width: 100%; height: 100%; object-fit: contain; }
.spb-product-content { min-width: 0; display: flex; flex-direction: column; gap: .35rem; }
.spb-product-title { color: #222 !important; font-weight: 900; line-height: 1.25; }
.spb-product-title:hover { color: var(--spb-red) !important; }
.spb-product-ref,
.spb-product-oem { color: var(--spb-muted); font-size: .84rem; }
.spb-product-bottom { display: flex; gap: .7rem; align-items: baseline; justify-content: space-between; margin-top: auto; }
.spb-product-bottom strong { color: var(--spb-red); font-size: 1.08rem; }
.spb-product-bottom small { color: #555; }
.spb-product-bottom small.is-stock { color: #287a36; font-weight: 700; }
.spb-product-bottom small.is-order { color: #8b6b00; font-weight: 700; }
.spb-product-button { width: fit-content; min-height: auto; margin-top: .45rem; padding: .62rem .86rem; font-size: .78rem; }

.spb-empty {
  margin-top: 1rem;
  padding: 1rem;
  color: #555;
}

.spb-selector-block { margin-top: 1.2rem; margin-bottom: 1.2rem; }
.spb-selector-inner { grid-template-columns: minmax(0, 1fr) minmax(300px, .8fr); padding: 1.1rem; }
.spb-selector-text strong { display: block; color: #fff; font-size: 1.25rem; line-height: 1.2; text-transform: uppercase; font-weight: 900; }
.spb-selector-text span:last-child { display: block; color: rgba(255,255,255,.86); margin-top: .25rem; }

@media (max-width: 991px) {
  .spb-hero,
  .spb-selector-inner,
  .spb-toolbar { grid-template-columns: 1fr; }
  .spb-section-title { align-items: flex-start; flex-direction: column; }
  .spb-section-title p { text-align: left; }
  .spb-intro-grid { grid-template-columns: 1fr; }
}

@media (max-width: 575px) {
  .spb-page,
  .spb-selector-block { margin-left: .25rem; margin-right: .25rem; }
  .spb-hero,
  .spb-selector-inner { padding: 1rem; }
  .spb-form-row,
  .spb-search-row,
  .spb-selector-form { flex-direction: column; }
  .spb-mini-steps { grid-template-columns: 1fr; }
  .spb-product-card { grid-template-columns: 1fr; }
  .spb-product-image { width: 100%; height: 170px; }
  .spb-results-head { align-items: flex-start; flex-direction: column; }
}

/* V0.2.2 - Blocs Creative Elements / Elementor */
.spb-ce-wrapper,
.spb-ce-block {
  box-sizing: border-box;
}

.spb-ce-wrapper {
  width: 100%;
}

.spb-ce-block {
  margin: 0 auto 2rem;
}

.spb-ce-searchbox {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 470px);
  gap: 1.5rem;
  align-items: center;
  padding: 2rem;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 18px;
  background: linear-gradient(135deg, #fff 0%, #f7f7f7 100%);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .08);
}

.spb-ce-searchbox__content h2 {
  margin: .35rem 0 .75rem;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.12;
  font-weight: 800;
  color: #1d1d1b;
}

.spb-ce-searchbox__content p {
  margin: 0;
  max-width: 720px;
  color: #555;
  font-size: 1rem;
  line-height: 1.6;
}

.spb-ce-searchbox__form {
  display: flex;
  gap: .75rem;
  padding: .75rem;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
}

.spb-ce-searchbox__form select {
  min-width: 0;
  flex: 1 1 auto;
  height: 48px;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 0 .9rem;
  background: #fff;
}

.spb-ce-searchbox__form .spb-btn-primary {
  flex: 0 0 auto;
  white-space: nowrap;
}

.spb-ce-model-grids {
  display: grid;
  gap: 1.6rem;
}

.spb-ce-range-section {
  padding: 1.5rem;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .05);
}

.spb-section-heading {
  margin-bottom: 1rem;
}

.spb-section-heading h3 {
  margin: .25rem 0 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: #1d1d1b;
}

.spb-range-grid--compact {
  grid-template-columns: repeat(auto-fill, minmax(138px, 1fr));
}

.spb-range-grid--compact .spb-range-card {
  min-height: 92px;
  justify-content: center;
  text-align: center;
}

@media (max-width: 767px) {
  .spb-ce-searchbox {
    grid-template-columns: 1fr;
    padding: 1.25rem;
  }

  .spb-ce-searchbox__form {
    flex-direction: column;
  }

  .spb-ce-searchbox__form .spb-btn-primary {
    width: 100%;
  }

  .spb-ce-range-section {
    padding: 1rem;
  }
}

/* V0.2.4 - navigation intégrée Creative Elements */
.spb-ce-dynamic { width: 100%; }
.spb-ce-topline { margin-bottom: 14px; }
.spb-ce-range-choice,
.spb-ce-family-choice,
.spb-ce-results { margin-top: 22px; }
.spb-ce-dynamic .spb-section-title h2 { margin-top: 0; }


/* V0.2.8 - listing produits façon boutique + images de gammes */
.spb-product-grid {
  grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
  gap: 20px;
  align-items: stretch;
}

.spb-product-card--shop {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 18px 14px 16px;
  border: 1px solid #dedede;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
  text-align: center;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.spb-product-card--shop:hover {
  transform: translateY(-2px);
  border-color: #cfcfcf;
  box-shadow: 0 8px 18px rgba(0,0,0,.08);
}

.spb-product-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 23px;
  margin-bottom: 10px;
  color: #1f1f1f;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.1;
}

.spb-product-card--shop .spb-product-title {
  display: -webkit-box;
  min-height: 42px;
  margin: 0 0 10px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: #111 !important;
  font-size: .9rem;
  font-weight: 900;
  line-height: 1.15;
  text-transform: uppercase;
}

.spb-product-card--shop .spb-product-image {
  width: 100%;
  height: 178px;
  margin: 0 auto 12px;
  border: 0;
  border-radius: 8px;
  background: #f8f8f8;
}

.spb-product-card--shop .spb-product-image img {
  width: 100%;
  height: 100%;
  padding: 8px;
  object-fit: contain;
}

.spb-product-card--shop .spb-product-ref,
.spb-product-card--shop .spb-product-oem {
  margin: 0 0 6px;
  color: #6f6f6f;
  font-size: .76rem;
  line-height: 1.25;
  text-transform: uppercase;
}

.spb-product-card--shop .spb-product-ref strong {
  color: #111;
  font-weight: 900;
}

.spb-product-card--shop .spb-product-oem {
  text-transform: none;
  font-size: .74rem;
}

.spb-product-price {
  margin: 8px 0 14px;
  color: #050505;
  font-size: 1.38rem;
  font-weight: 900;
  line-height: 1;
}

.spb-product-add {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: auto;
  padding: 10px 12px;
  border-radius: 7px;
  background: #161616;
  color: #fff !important;
  font-size: .86rem;
  font-weight: 900;
  line-height: 1.1;
  text-decoration: none !important;
  transition: background .15s ease, transform .15s ease;
}

.spb-product-add:hover {
  background: #000;
  color: #fff !important;
  transform: translateY(-1px);
}

.spb-product-details {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  margin-top: 10px;
  padding: 8px 12px;
  border: 1px solid #d7d7d7;
  border-radius: 7px;
  background: #fff;
  color: #111 !important;
  font-size: .82rem;
  text-decoration: none !important;
}

.spb-product-details:hover {
  border-color: #111;
}

.spb-badges--product {
  justify-content: center;
  margin-top: 12px;
}

.spb-badges--product span {
  padding: .28rem .55rem;
  border: 1px solid #e3e3e3;
  background: #f6f6f6;
  color: #333;
  font-size: .7rem;
  text-transform: none;
}

.spb-range-grid--compact {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

.spb-range-grid--compact .spb-range-card {
  min-height: 146px;
  padding: 14px 12px;
  justify-content: flex-start;
  text-align: center;
}

.spb-range-grid--compact .spb-range-card::before {
  width: 100%;
  height: 4px;
  right: 0;
  bottom: auto;
}

.spb-range-image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 70px;
  margin-bottom: 10px;
  border-radius: 8px;
  background: linear-gradient(180deg, #fafafa, #f1f1f1);
  border: 1px solid #ededed;
  overflow: hidden;
}

.spb-range-image img {
  width: 100%;
  height: 100%;
  padding: 6px;
  object-fit: contain;
}

.spb-range-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #171717;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 900;
}

@media (min-width: 1200px) {
  .spb-product-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .spb-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .spb-product-card--shop {
    padding: 12px 9px;
  }
  .spb-product-card--shop .spb-product-image {
    height: 132px;
  }
  .spb-product-price {
    font-size: 1.12rem;
  }
  .spb-product-add,
  .spb-product-details {
    font-size: .76rem;
  }
}

/* V0.3.0 - Intégration listing produit Roule Toujours
   Fichier versionné pour forcer le rafraîchissement du design après mise à jour. */
.spb-page *,
.spb-ce-wrapper * {
  box-sizing: border-box;
}

.spb-page .spb-product-grid,
.spb-ce-wrapper .spb-product-grid,
.spb-ce-results .spb-product-grid {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 20px !important;
  align-items: stretch !important;
  margin: 18px 0 0 !important;
}

.spb-page .spb-product-card,
.spb-ce-wrapper .spb-product-card,
.spb-page .spb-product-card--shop,
.spb-ce-wrapper .spb-product-card--shop,
.spb-ce-results .spb-product-card--shop {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  min-height: 100% !important;
  padding: 16px 14px 18px !important;
  border: 1px solid #dddddd !important;
  border-radius: 10px !important;
  background: #fff !important;
  box-shadow: 0 2px 10px rgba(0,0,0,.04) !important;
  text-align: center !important;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease !important;
}

.spb-page .spb-product-card--shop:hover,
.spb-ce-wrapper .spb-product-card--shop:hover,
.spb-ce-results .spb-product-card--shop:hover {
  transform: translateY(-2px) !important;
  border-color: #c7c7c7 !important;
  box-shadow: 0 10px 22px rgba(0,0,0,.08) !important;
}

.spb-page .spb-product-brand,
.spb-ce-wrapper .spb-product-brand,
.spb-ce-results .spb-product-brand {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 26px !important;
  margin: 0 0 10px !important;
  color: #111 !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  text-align: center !important;
}

.spb-page .spb-product-brand::before,
.spb-ce-wrapper .spb-product-brand::before,
.spb-ce-results .spb-product-brand::before {
  content: "";
  display: inline-flex;
  width: 22px;
  height: 22px;
  margin-right: 7px;
  border-radius: 50%;
  background: radial-gradient(circle at center, #fff 0 24%, #0b4ea2 25% 48%, #fff 49% 54%, #111 55% 100%);
  box-shadow: 0 0 0 1px rgba(0,0,0,.18);
  flex: 0 0 auto;
}

.spb-page .spb-product-title,
.spb-ce-wrapper .spb-product-title,
.spb-ce-results .spb-product-title {
  display: -webkit-box !important;
  min-height: 42px !important;
  margin: 0 0 12px !important;
  overflow: hidden !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  color: #111 !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  line-height: 1.15 !important;
  text-align: center !important;
  text-decoration: none !important;
  text-transform: uppercase !important;
}

.spb-page .spb-product-title:hover,
.spb-ce-wrapper .spb-product-title:hover,
.spb-ce-results .spb-product-title:hover {
  color: #b10f18 !important;
  text-decoration: none !important;
}

.spb-page .spb-product-image,
.spb-ce-wrapper .spb-product-image,
.spb-ce-results .spb-product-image {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 175px !important;
  margin: 0 auto 12px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: #f8f8f8 !important;
  color: #777 !important;
  text-align: center !important;
  text-decoration: none !important;
  overflow: hidden !important;
}

.spb-page .spb-product-image img,
.spb-ce-wrapper .spb-product-image img,
.spb-ce-results .spb-product-image img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  padding: 8px !important;
  object-fit: contain !important;
}

.spb-page .spb-product-ref,
.spb-ce-wrapper .spb-product-ref,
.spb-ce-results .spb-product-ref {
  min-height: 18px !important;
  margin: 0 0 7px !important;
  color: #777 !important;
  font-size: 12px !important;
  line-height: 1.25 !important;
  text-align: center !important;
  text-transform: uppercase !important;
}

.spb-page .spb-product-ref strong,
.spb-ce-wrapper .spb-product-ref strong,
.spb-ce-results .spb-product-ref strong {
  color: #111 !important;
  font-weight: 900 !important;
}

.spb-page .spb-product-oem,
.spb-ce-wrapper .spb-product-oem,
.spb-ce-results .spb-product-oem {
  min-height: 32px !important;
  margin: 0 0 7px !important;
  color: #6f6f6f !important;
  font-size: 12px !important;
  line-height: 1.25 !important;
  text-align: center !important;
}

.spb-page .spb-product-price,
.spb-ce-wrapper .spb-product-price,
.spb-ce-results .spb-product-price {
  margin: auto 0 14px !important;
  color: #050505 !important;
  font-size: 22px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  text-align: center !important;
}

.spb-page .spb-product-add,
.spb-ce-wrapper .spb-product-add,
.spb-ce-results .spb-product-add {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: 42px !important;
  margin: 0 0 10px !important;
  padding: 10px 12px !important;
  border: 1px solid #161616 !important;
  border-radius: 7px !important;
  background: #161616 !important;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  line-height: 1.1 !important;
  text-align: center !important;
  text-decoration: none !important;
}

.spb-page .spb-product-add:hover,
.spb-ce-wrapper .spb-product-add:hover,
.spb-ce-results .spb-product-add:hover {
  background: #000 !important;
  border-color: #000 !important;
  color: #fff !important;
  text-decoration: none !important;
}

.spb-page .spb-product-details,
.spb-ce-wrapper .spb-product-details,
.spb-ce-results .spb-product-details {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: 38px !important;
  margin: 0 !important;
  padding: 8px 12px !important;
  border: 1px solid #d7d7d7 !important;
  border-radius: 7px !important;
  background: #fff !important;
  color: #111 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  text-align: center !important;
  text-decoration: none !important;
}

.spb-page .spb-product-details:hover,
.spb-ce-wrapper .spb-product-details:hover,
.spb-ce-results .spb-product-details:hover {
  border-color: #111 !important;
  color: #111 !important;
  text-decoration: none !important;
}

.spb-page .spb-badges--product,
.spb-ce-wrapper .spb-badges--product,
.spb-ce-results .spb-badges--product {
  display: flex !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  margin-top: 12px !important;
}

.spb-page .spb-badges--product span,
.spb-ce-wrapper .spb-badges--product span,
.spb-ce-results .spb-badges--product span {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 6px 10px !important;
  border: 1px solid #e3e3e3 !important;
  border-radius: 999px !important;
  background: #f6f6f6 !important;
  color: #333 !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  line-height: 1.05 !important;
  text-transform: uppercase !important;
}

.spb-page .spb-badges--product span:first-child,
.spb-ce-wrapper .spb-badges--product span:first-child,
.spb-ce-results .spb-badges--product span:first-child {
  background: #161616 !important;
  border-color: #161616 !important;
  color: #fff !important;
}

.spb-page .spb-badges--product span:nth-child(2),
.spb-ce-wrapper .spb-badges--product span:nth-child(2),
.spb-ce-results .spb-badges--product span:nth-child(2) {
  background: #fae6e8 !important;
  border-color: #fae6e8 !important;
  color: #8b0d15 !important;
}

/* Zone résultats mieux alignée avec les listings PrestaShop */
.spb-ce-results .spb-results-head,
.spb-page .spb-results-head {
  margin: 18px 0 12px !important;
  padding-bottom: 8px !important;
  border-bottom: 1px solid #e6e6e6 !important;
}

.spb-ce-results .spb-results-head h3,
.spb-page .spb-results-head h3 {
  margin: 0 !important;
  color: #111 !important;
  font-size: 20px !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
}

@media (max-width: 1199px) {
  .spb-page .spb-product-grid,
  .spb-ce-wrapper .spb-product-grid,
  .spb-ce-results .spb-product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 991px) {
  .spb-page .spb-product-grid,
  .spb-ce-wrapper .spb-product-grid,
  .spb-ce-results .spb-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 767px) {
  .spb-page .spb-product-grid,
  .spb-ce-wrapper .spb-product-grid,
  .spb-ce-results .spb-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }
  .spb-page .spb-product-card--shop,
  .spb-ce-wrapper .spb-product-card--shop,
  .spb-ce-results .spb-product-card--shop {
    padding: 12px 9px !important;
  }
  .spb-page .spb-product-image,
  .spb-ce-wrapper .spb-product-image,
  .spb-ce-results .spb-product-image {
    height: 132px !important;
  }
  .spb-page .spb-product-title,
  .spb-ce-wrapper .spb-product-title,
  .spb-ce-results .spb-product-title {
    font-size: 12px !important;
    min-height: 34px !important;
  }
  .spb-page .spb-product-price,
  .spb-ce-wrapper .spb-product-price,
  .spb-ce-results .spb-product-price {
    font-size: 18px !important;
  }
  .spb-page .spb-product-add,
  .spb-ce-wrapper .spb-product-add,
  .spb-ce-results .spb-product-add,
  .spb-page .spb-product-details,
  .spb-ce-wrapper .spb-product-details,
  .spb-ce-results .spb-product-details {
    font-size: 12px !important;
  }
}

/* V0.3.1 - Listing produits aligné sur le site : 5 produits par ligne en desktop. */
.spb-page .spb-product-grid,
.spb-ce-wrapper .spb-product-grid,
.spb-ce-results .spb-product-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 20px !important;
}

/* Cartes légèrement compactées pour tenir proprement à 5 colonnes dans le container PrestaShop. */
.spb-page .spb-product-card--shop,
.spb-ce-wrapper .spb-product-card--shop,
.spb-ce-results .spb-product-card--shop {
  padding: 14px 12px 16px !important;
}

.spb-page .spb-product-image,
.spb-ce-wrapper .spb-product-image,
.spb-ce-results .spb-product-image {
  height: 165px !important;
}

@media (max-width: 1099px) {
  .spb-page .spb-product-grid,
  .spb-ce-wrapper .spb-product-grid,
  .spb-ce-results .spb-product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 900px) {
  .spb-page .spb-product-grid,
  .spb-ce-wrapper .spb-product-grid,
  .spb-ce-results .spb-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 640px) {
  .spb-page .spb-product-grid,
  .spb-ce-wrapper .spb-product-grid,
  .spb-ce-results .spb-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }
}

/* V0.3.3 - UX navigation, titres produits sur 2 lignes, listing plus propre. */
.spb-breadcrumb {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin: 0 0 18px !important;
  padding: 10px 12px !important;
  border: 1px solid #e5e5e5 !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: #666 !important;
  font-size: 13px !important;
  line-height: 1.25 !important;
}
.spb-breadcrumb a,
.spb-breadcrumb span {
  display: inline-flex !important;
  align-items: center !important;
  color: #333 !important;
  text-decoration: none !important;
  font-weight: 700 !important;
}
.spb-breadcrumb a:hover {
  color: #b10f18 !important;
  text-decoration: underline !important;
}
.spb-breadcrumb a:not(:last-child)::after,
.spb-breadcrumb span:not(:last-child)::after {
  content: "›" !important;
  display: inline-block !important;
  margin-left: 8px !important;
  color: #aaa !important;
  font-weight: 900 !important;
}
.spb-breadcrumb span:last-child {
  color: #b10f18 !important;
}

/* Le formulaire devient un accès rapide discret : le parcours principal reste la grille de gammes. */
.spb-ce-searchbox__form--compact {
  max-width: 520px !important;
  margin-left: auto !important;
}
.spb-ce-searchbox__form--compact select {
  min-width: 0 !important;
}
.spb-ce-searchbox__form--compact .spb-btn-primary {
  min-width: 64px !important;
  padding-left: 16px !important;
  padding-right: 16px !important;
}

/* Titres : 2 lignes, coupe proprement à la ligne plutôt qu'en plein milieu visuel. */
.spb-page .spb-product-title,
.spb-ce-wrapper .spb-product-title,
.spb-ce-results .spb-product-title,
.spb-product-card--shop .spb-product-title {
  display: -webkit-box !important;
  height: 34px !important;
  min-height: 34px !important;
  max-height: 34px !important;
  overflow: hidden !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  hyphens: none !important;
  line-height: 17px !important;
  text-overflow: clip !important;
}

/* On ne montre plus la ligne Equiv. BMW dans le listing : l'information reste dans la base, mais pas sur les cartes. */
.spb-page .spb-product-oem,
.spb-ce-wrapper .spb-product-oem,
.spb-ce-results .spb-product-oem {
  display: none !important;
}

/* Sans la ligne équivalence, on garde une hauteur de carte stable. */
.spb-page .spb-product-ref,
.spb-ce-wrapper .spb-product-ref,
.spb-ce-results .spb-product-ref {
  margin-bottom: 12px !important;
}

@media (max-width: 767px) {
  .spb-ce-searchbox__form--compact {
    max-width: none !important;
    width: 100% !important;
  }
  .spb-page .spb-product-title,
  .spb-ce-wrapper .spb-product-title,
  .spb-ce-results .spb-product-title,
  .spb-product-card--shop .spb-product-title {
    height: 32px !important;
    min-height: 32px !important;
    max-height: 32px !important;
    line-height: 16px !important;
  }
}

/* V0.3.4 - Navigation plus intuitive, accueil plus compact, badges simplifiés */
.spb-path-card {
  margin: 0 0 22px !important;
  padding: 14px !important;
  border: 1px solid rgba(177,15,24,.18) !important;
  border-radius: 14px !important;
  background: linear-gradient(135deg, #fff 0%, #fafafa 100%) !important;
  box-shadow: 0 8px 22px rgba(0,0,0,.06) !important;
}
.spb-path-head {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 12px !important;
  margin-bottom: 12px !important;
}
.spb-path-head span {
  color: #111 !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
  letter-spacing: .04em !important;
}
.spb-path-head a {
  color: #b10f18 !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  text-decoration: none !important;
}
.spb-path-head a:hover { text-decoration: underline !important; }
.spb-path-steps {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  align-items: stretch !important;
}
.spb-path-step {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  min-height: 40px !important;
  padding: 7px 12px !important;
  border-radius: 999px !important;
  border: 1px solid #e4e4e4 !important;
  background: #fff !important;
  color: #333 !important;
  text-decoration: none !important;
  font-size: 13px !important;
}
.spb-path-step span {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 23px !important;
  height: 23px !important;
  border-radius: 50% !important;
  background: #ececec !important;
  color: #333 !important;
  font-weight: 900 !important;
  font-size: 12px !important;
}
.spb-path-step strong {
  font-weight: 900 !important;
  line-height: 1.1 !important;
}
.spb-path-step.is-done:hover {
  border-color: rgba(177,15,24,.35) !important;
  color: #b10f18 !important;
}
.spb-path-step.is-done span {
  background: #f3f3f3 !important;
  color: #555 !important;
}
.spb-path-step.is-active {
  border-color: #b10f18 !important;
  background: #b10f18 !important;
  color: #fff !important;
}
.spb-path-step.is-active span {
  background: #fff !important;
  color: #b10f18 !important;
}
.spb-path-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin-top: 12px !important;
  padding-top: 12px !important;
  border-top: 1px solid #eee !important;
}
.spb-path-action {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 36px !important;
  padding: 8px 12px !important;
  border-radius: 8px !important;
  border: 1px solid #ddd !important;
  background: #fff !important;
  color: #222 !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  text-decoration: none !important;
}
.spb-path-action:hover {
  border-color: #111 !important;
  color: #111 !important;
}
.spb-path-action--primary {
  border-color: #b10f18 !important;
  background: #fff4f5 !important;
  color: #b10f18 !important;
}
.spb-alert {
  margin: 0 0 18px !important;
  padding: 12px 14px !important;
  border-radius: 10px !important;
  font-weight: 700 !important;
  line-height: 1.45 !important;
}
.spb-alert--warning {
  border: 1px solid #f0d19a !important;
  background: #fff8eb !important;
  color: #6d4a00 !important;
}

/* Accueil du module : le champ de recherche devient un accès rapide, pas un énorme menu déroulant. */
.spb-ce-searchbox--v034 {
  border-radius: 18px !important;
  background: linear-gradient(135deg, #191919 0%, #2a2a2a 58%, #b10f18 100%) !important;
  color: #fff !important;
  overflow: hidden !important;
}
.spb-ce-searchbox--v034 .spb-kicker,
.spb-ce-searchbox--v034 h2,
.spb-ce-searchbox--v034 p { color: #fff !important; }
.spb-ce-searchbox--v034 p { opacity: .9 !important; }
.spb-ce-searchbox__form--search {
  display: block !important;
  padding: 14px !important;
  border-radius: 14px !important;
  background: rgba(255,255,255,.97) !important;
  box-shadow: 0 10px 28px rgba(0,0,0,.18) !important;
}
.spb-search-label {
  display: block !important;
  margin: 0 0 7px !important;
  color: #1d1d1b !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
  letter-spacing: .05em !important;
}
.spb-model-search-line {
  display: flex !important;
  gap: 8px !important;
  align-items: stretch !important;
}
.spb-model-search-line input[type="search"] {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  height: 48px !important;
  border: 1px solid #ddd !important;
  border-radius: 9px !important;
  padding: 0 14px !important;
  color: #222 !important;
  background: #fff !important;
}
.spb-model-search-line input[type="search"]:focus {
  border-color: #b10f18 !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(177,15,24,.13) !important;
}
.spb-search-note {
  display: block !important;
  margin-top: 8px !important;
  color: #666 !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
}

/* Sous-modèles : cartes plus guidées et lisibles. */
.spb-version-grid--clear {
  grid-template-columns: repeat(auto-fill, minmax(245px, 1fr)) !important;
}
.spb-version-card--clear {
  position: relative !important;
  padding: 16px 16px 44px !important;
  min-height: 140px !important;
  border-radius: 12px !important;
  overflow: hidden !important;
}
.spb-version-card--clear::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 auto 0 0 !important;
  width: 5px !important;
  background: #b10f18 !important;
}
.spb-version-icon {
  display: inline-flex !important;
  width: 28px !important;
  height: 28px !important;
  margin-bottom: 8px !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50% !important;
  background: #fff4f5 !important;
  color: #b10f18 !important;
  font-weight: 900 !important;
}
.spb-version-card--clear em {
  position: absolute !important;
  left: 16px !important;
  right: 16px !important;
  bottom: 13px !important;
  color: #b10f18 !important;
  font-style: normal !important;
  font-size: 13px !important;
  font-weight: 900 !important;
}
.spb-section-title--centered {
  align-items: center !important;
}

/* Badges produits : plus compacts, une seule info utile. */
.spb-page .spb-badges--product,
.spb-ce-wrapper .spb-badges--product,
.spb-ce-results .spb-badges--product {
  min-height: 24px !important;
  margin-top: 9px !important;
  gap: 5px !important;
}
.spb-page .spb-badges--product span,
.spb-ce-wrapper .spb-badges--product span,
.spb-ce-results .spb-badges--product span {
  padding: 5px 8px !important;
  font-size: 10px !important;
  letter-spacing: .02em !important;
}
.spb-badges--product span.is-oem {
  background: #161616 !important;
  border-color: #161616 !important;
  color: #fff !important;
}
.spb-badges--product span.is-adaptable {
  background: #eef7f0 !important;
  border-color: #cbe7d0 !important;
  color: #236a34 !important;
}
.spb-badges--product span.is-kit {
  background: #fff4df !important;
  border-color: #f0d79b !important;
  color: #7a4f00 !important;
}

@media (max-width: 767px) {
  .spb-path-head,
  .spb-section-title--centered { align-items: flex-start !important; flex-direction: column !important; }
  .spb-path-steps { display: grid !important; grid-template-columns: 1fr !important; }
  .spb-path-step { border-radius: 10px !important; width: 100% !important; }
  .spb-model-search-line { flex-direction: column !important; }
  .spb-model-search-line .spb-btn-primary { width: 100% !important; }
}


/* V0.3.6 - séries BMW et priorité aux produits avec image */
.spb-version-card .spb-model-serie,
.spb-model-serie {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  margin-top: .15rem;
  padding: .22rem .5rem;
  border-radius: 999px;
  background: #eef3f8;
  color: #2c4c68 !important;
  font-size: .78rem !important;
  font-weight: 800;
  line-height: 1.2;
}
.spb-model-series-inline {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  margin-top: .45rem;
  padding: .35rem .7rem;
  border-radius: 999px;
  background: #f2f5f7;
  color: #415161;
  font-size: .88rem;
  font-weight: 700;
}
.spb-model-series-inline strong { color: #1f2d3a; }
.spb-product-card--shop .spb-product-image .spb-no-real-image,
.spb-product-image .spb-no-real-image {
  opacity: .9;
}

/* SEO intro V0.4.0 */
.spb-seo-intro {
  margin: 18px 0 22px;
  padding: 18px 22px;
  background: #fff;
  border-left: 4px solid #d71920;
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
}
.spb-seo-intro p {
  margin: 0;
  color: #333;
  line-height: 1.6;
  font-size: 15px;
}
