/* Catalogue pièces public */

/* Lisibilité : contraste + corps un peu plus grand (fond sombre) */
.pieces-page {
  --pieces-text: #f4f4f5;
  --pieces-text-soft: #d4d4d8;
  --pieces-text-muted: #b4b4be;
  --pieces-text-dim: #9a9aa6;
  --pieces-accent-text: #fdba74;

  margin: 0;
  background: #0a0a0b;
  color: var(--pieces-text);
  font-family: 'Outfit', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.0625rem; /* 17px — base plus confortable */
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0.01em;
  min-height: 100vh;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.pieces-page p,
.pieces-page li,
.pieces-page label,
.pieces-page td,
.pieces-page th {
  line-height: 1.65;
}

.pieces-page h1,
.pieces-page h2,
.pieces-page h3 {
  line-height: 1.28;
  letter-spacing: 0.01em;
  font-weight: 700;
  color: #fff7ed;
}

.pieces-page input,
.pieces-page select,
.pieces-page button,
.pieces-page textarea {
  font-family: inherit;
  font-size: inherit;
}

.pieces-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 10, 11, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.pieces-header__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 60px;
}

.pieces-header__brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  padding: 4px 10px 4px 6px;
  border-radius: 10px;
  background: rgba(20, 16, 12, 0.75);
  border: 1px solid rgba(184, 92, 20, 0.28);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.pieces-header__brand:hover {
  border-color: rgba(232, 93, 4, 0.45);
  transform: translateY(-1px);
}

.pieces-header__brand-img {
  display: block;
  height: 40px;
  width: auto;
  max-width: 118px;
  object-fit: contain;
}

.pieces-header__nav {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 4px 4px;
  min-width: 0;
}

.pieces-header__nav-link {
  color: var(--pieces-text-muted, #b4b4be);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 8px;
  transition: color 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.pieces-header__nav-link:hover {
  color: #f4f4f5;
  background: rgba(255, 255, 255, 0.05);
}

.pieces-header__nav-link--current {
  color: #fff;
  background: rgba(232, 93, 4, 0.14);
  box-shadow: inset 0 -2px 0 #e85d04;
}

.pieces-header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.pieces-header__cart {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(232, 93, 4, 0.5);
  background: rgba(232, 93, 4, 0.14);
  color: #fdba74 !important;
  font-weight: 700;
  font-size: 0.84rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.pieces-header__cart:hover {
  background: rgba(232, 93, 4, 0.28);
  color: #fff !important;
}

.pieces-header__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.pieces-header__toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: #f4f4f5;
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.pieces-header__toggle--open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.pieces-header__toggle--open span:nth-child(2) {
  opacity: 0;
}

.pieces-header__toggle--open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Doublon panier dans le menu mobile */
.pieces-header__nav-cart-mobile {
  display: none;
}

/* Infobulles menu boutique (desktop) — ::before uniquement */
@media (hover: hover) and (pointer: fine) and (min-width: 900px) {
  .pieces-header__nav-link.has-nav-hint,
  .pieces-header__cart.has-nav-hint {
    position: relative;
  }

  .pieces-header__nav-link.has-nav-hint::before,
  .pieces-header__cart.has-nav-hint::before {
    content: attr(data-nav-hint);
    position: absolute;
    left: 50%;
    top: calc(100% + 12px);
    transform: translateX(-50%) translateY(4px);
    z-index: 40;
    min-width: 150px;
    max-width: 240px;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid rgba(232, 93, 4, 0.4);
    background: #141418;
    color: #f4f4f5;
    font-size: 0.74rem;
    font-weight: 500;
    line-height: 1.35;
    text-align: center;
    white-space: normal;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  }

  .pieces-header__nav-link.has-nav-hint:hover::before,
  .pieces-header__nav-link.has-nav-hint:focus-visible::before,
  .pieces-header__cart.has-nav-hint:hover::before,
  .pieces-header__cart.has-nav-hint:focus-visible::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }

  .pieces-header__cart.has-nav-hint::before {
    left: auto;
    right: 0;
    transform: translateX(0) translateY(4px);
  }

  .pieces-header__cart.has-nav-hint:hover::before,
  .pieces-header__cart.has-nav-hint:focus-visible::before {
    transform: translateX(0) translateY(0);
  }
}

/* Bandeau + recherche : respirer sous le menu */
.pieces-header__band {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4px 16px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Texte info stock/livraison — repliable sur mobile */
.pieces-header__info {
  margin: 10px 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(251, 146, 60, 0.22);
  background: linear-gradient(135deg, rgba(234, 88, 12, 0.12), rgba(20, 20, 24, 0.9));
  overflow: hidden;
}

.pieces-header__info-sum {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 14px;
  color: #fdba74;
  font-size: 0.88rem;
  font-weight: 700;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.pieces-header__info-sum::-webkit-details-marker {
  display: none;
}

.pieces-header__info-sum-text {
  min-width: 0;
}

.pieces-header__info-chevron {
  flex-shrink: 0;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: -4px;
  opacity: 0.9;
  transition: transform 0.18s ease;
}

.pieces-header__info[open] .pieces-header__info-chevron {
  transform: rotate(-135deg);
  margin-top: 4px;
}

.pieces-header__tagline {
  margin: 0;
  padding: 0 14px 12px;
  color: var(--pieces-text-soft, #d4d4d8);
  font-size: 0.98rem;
  line-height: 1.65;
  font-weight: 400;
}

.pieces-header__tagline strong {
  color: #fdba74;
  font-weight: 700;
}

/* Desktop : texte toujours visible, sans barre de repli */
@media (min-width: 769px) {
  .pieces-header__info-sum {
    display: none;
  }

  .pieces-header__info > .pieces-header__tagline {
    display: block;
    padding: 12px 14px;
  }
}

/* Barre progression haut de page (attente recherche / filtre) */
.pieces-loadbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 100;
  overflow: hidden;
  background: rgba(234, 88, 12, 0.15);
  pointer-events: none;
}

.pieces-loadbar::after {
  content: '';
  display: block;
  height: 100%;
  width: 40%;
  background: linear-gradient(90deg, transparent, #ea580c, #fdba74, #ea580c, transparent);
  animation: pieces-load-slide 0.9s ease-in-out infinite;
}

@keyframes pieces-load-slide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}

body.pieces-is-loading .pieces-main {
  opacity: 0.55;
  pointer-events: none;
  transition: opacity 0.18s ease;
  filter: saturate(0.85);
}

body.pieces-is-loading .pieces-header__band {
  position: relative;
}

/* Barre recherche catalogue */
.pieces-search {
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(251, 146, 60, 0.28);
  background: linear-gradient(165deg, rgba(234, 88, 12, 0.1), rgba(12, 12, 14, 0.95));
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.pieces-search__top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 12px;
  margin-bottom: 8px;
}

.pieces-search__hint {
  margin: 0;
  color: var(--pieces-text-muted, #b4b4be);
  font-size: 0.9rem;
  line-height: 1.5;
}

.pieces-search__hint strong {
  color: #fdba74;
  font-weight: 700;
}

.pieces-search__status {
  margin: 0;
  color: #fdba74;
  font-size: 0.84rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pieces-search__status:not([hidden])::before {
  content: '';
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(253, 186, 116, 0.3);
  border-top-color: #fdba74;
  animation: pieces-spin 0.65s linear infinite;
}

@keyframes pieces-spin {
  to { transform: rotate(360deg); }
}

.pieces-search__label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.pieces-search__row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.pieces-search input[type='search'] {
  flex: 1 1 auto;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #0a0a0b;
  color: #f4f4f5;
  font-size: 1rem;
  font-weight: 500;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pieces-search input[type='search']::placeholder {
  color: var(--pieces-text-dim, #9a9aa6);
  font-weight: 400;
}

.pieces-search input[type='search']:focus {
  outline: none;
  border-color: rgba(251, 146, 60, 0.65);
  box-shadow: 0 0 0 3px rgba(251, 146, 60, 0.18);
}

.pieces-search__btn {
  flex: 0 0 auto;
  min-width: 7.5rem;
  padding: 12px 16px;
  border-radius: 11px;
  border: none;
  background: linear-gradient(135deg, #ea580c, #c2410c);
  color: #fff7ed;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: filter 0.15s ease, opacity 0.15s ease;
}

.pieces-search__btn:hover:not(:disabled) {
  filter: brightness(1.08);
}

.pieces-search__btn.is-waiting,
.pieces-cascade__btn.is-waiting {
  opacity: 0.92;
  cursor: wait;
}

.pieces-search__btn-wait,
.pieces-cascade__btn-wait {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pieces-search__btn-wait:not([hidden])::before,
.pieces-cascade__btn-wait:not([hidden])::before {
  content: '';
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid rgba(255, 247, 237, 0.35);
  border-top-color: #fff7ed;
  animation: pieces-spin 0.65s linear infinite;
}

/* Chips filtres véhicule actifs sous la recherche */
.pieces-search__chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin-top: 10px;
}

.pieces-search__chips-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #a1a1aa;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pieces-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(251, 146, 60, 0.16);
  border: 1px solid rgba(251, 146, 60, 0.35);
  color: #fdba74;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.2;
}

.pieces-search__chips-clear {
  margin-left: 2px;
  font-size: 0.8rem;
  color: #a1a1aa;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.pieces-search__chips-clear:hover {
  color: #fdba74;
}

@media (min-width: 900px) {
  .pieces-header__brand-img {
    height: 44px;
    max-width: 130px;
  }

  .pieces-header__nav-link {
    font-size: 0.9rem;
  }
}

/* Tablette / mobile : burger + panneau */
@media (max-width: 899px) {
  .pieces-header__inner {
    flex-wrap: wrap;
    padding: 10px 12px;
    gap: 0 10px;
  }

  .pieces-header__brand {
    order: 1;
  }

  .pieces-header__actions {
    order: 2;
    margin-left: auto;
  }

  .pieces-header__toggle {
    display: flex;
  }

  .pieces-header__brand-img {
    height: 36px;
    max-width: 100px;
  }

  .pieces-header__nav {
    display: none;
    order: 3;
    flex: 1 1 100%;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 6px;
    margin-top: 10px;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.55);
  }

  .pieces-header__nav--open {
    display: flex;
  }

  .pieces-header__nav-link {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 13px 14px;
    font-size: 1rem;
    text-align: left;
    border-radius: 10px;
    color: #e4e4e7;
  }

  .pieces-header__nav-link--current {
    color: #fff;
    background: rgba(232, 93, 4, 0.2);
    box-shadow: none;
    border-left: 3px solid #e85d04;
  }

  .pieces-header__nav-cart-mobile {
    display: none;
  }

  .pieces-header__cart {
    padding: 8px 12px;
  }

  .pieces-header__band {
    padding: 4px 12px 12px;
  }

  .pieces-header__info {
    margin: 8px 0 10px;
  }

  .pieces-header__info-sum {
    padding: 10px 12px;
    font-size: 0.82rem;
  }
}

/* Footer : liens discrets site ↔ boutique */
.pieces-footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 4px;
  margin: 0 0 16px;
}

.pieces-footer__nav a {
  color: #a1a1aa;
  font-weight: 500;
  font-size: 0.86rem;
  text-decoration: none;
  padding: 4px 10px;
}

.pieces-footer__nav a:not(:last-child)::after {
  content: '·';
  margin-left: 10px;
  color: #52525b;
  pointer-events: none;
}

.pieces-footer__nav a:hover {
  color: #fdba74;
}

.pieces-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 16px 48px;
}

.pieces-breadcrumb {
  font-size: 0.92rem;
  color: var(--pieces-text-muted, #b4b4be);
  margin-bottom: 16px;
  line-height: 1.5;
}

.pieces-breadcrumb a {
  color: #fdba74;
  text-decoration: none;
}

.pieces-breadcrumb span {
  margin: 0 6px;
  opacity: 0.6;
}

.pieces-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(1.55rem, 3.2vw, 2.05rem);
  color: #fff7ed;
  font-weight: 700;
  line-height: 1.25;
}

.pieces-hero p {
  margin: 0 0 18px;
  color: var(--pieces-text-soft, #d4d4d8);
  line-height: 1.7;
  font-size: 1.05rem;
  max-width: 52rem;
}

.pieces-year-filter,
.pieces-cascade {
  margin: 0 0 22px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  max-width: min(100%, 56rem);
}

.pieces-cascade__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
  margin-bottom: 12px;
}

.pieces-cascade__title {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--pieces-accent-text, #fdba74);
}

.pieces-cascade__hint {
  margin: 0;
  font-size: 0.88rem;
  color: var(--pieces-text-muted, #b4b4be);
}

.pieces-cascade__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  align-items: end;
  gap: 12px 14px;
}

.pieces-cascade__field {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pieces-cascade__field label,
.pieces-year-filter label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--pieces-text-soft, #d4d4d8);
}

.pieces-cascade__field select,
.pieces-year-filter select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: #0a0a0b;
  color: #f4f4f5;
  font-size: 1rem;
  font-weight: 500;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.pieces-cascade__field select:focus {
  outline: none;
  border-color: rgba(251, 146, 60, 0.55);
  box-shadow: 0 0 0 2px rgba(251, 146, 60, 0.12);
}

.pieces-cascade__field select:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

body.pieces-is-loading .pieces-cascade__field select {
  cursor: wait;
}

.pieces-cascade__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding-bottom: 2px;
  min-height: 42px;
}

.pieces-cascade__btn {
  padding: 10px 16px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, #ea580c, #c2410c);
  color: #fff7ed;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  min-width: 6.5rem;
  transition: filter 0.15s ease, opacity 0.15s ease;
}

.pieces-cascade__btn:hover:not(:disabled) {
  filter: brightness(1.08);
}

.pieces-cascade__reset {
  font-size: 0.85rem;
  color: #a1a1aa;
  text-decoration: none;
}

.pieces-cascade__reset:hover {
  color: #fdba74;
}

.pieces-card__sku {
  margin: 0 12px 4px;
  font-size: 0.88rem;
  color: var(--pieces-text-muted, #b4b4be);
}

.pieces-card__sku code {
  color: #fdba74;
  font-size: 0.9rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 7px;
  border-radius: 4px;
}

.pieces-grid--results {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.pieces-section {
  margin-bottom: 28px;
}

.pieces-section h2 {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--pieces-accent-text, #fdba74);
  margin: 0 0 14px;
  font-weight: 700;
}

.pieces-section__hint {
  margin: -4px 0 14px;
  font-size: 0.98rem;
  color: var(--pieces-text-muted, #b4b4be);
  line-height: 1.6;
  max-width: 42rem;
}

.pieces-section--secondary {
  opacity: 0.98;
}

.pieces-section--secondary h2 {
  font-size: 0.92rem;
  color: #d4d4d8;
  letter-spacing: 0.04em;
}

/* Grille marques / modèles — entrée principale catalogue */
.pieces-make-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

.pieces-make-grid--models {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.pieces-make-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 118px;
  padding: 16px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(145deg, rgba(30, 28, 26, 0.92) 0%, rgba(12, 12, 14, 0.96) 55%, rgba(18, 14, 10, 0.98) 100%);
  color: inherit;
  text-decoration: none;
  transition:
    border-color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

/* Filigrane logo / monogramme en fond */
.pieces-make-card__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.pieces-make-card__logo {
  position: absolute;
  right: -6%;
  bottom: -8%;
  width: 78%;
  height: 88%;
  max-width: 160px;
  max-height: 140px;
  object-fit: contain;
  object-position: right bottom;
  opacity: 0.13;
  filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.35));
  transform: rotate(-6deg);
  transition: opacity 0.2s ease, transform 0.25s ease, filter 0.2s ease;
}

.pieces-make-card__mono {
  position: absolute;
  right: 4%;
  bottom: -2%;
  font-family: 'Bebas Neue', 'Arial Black', Impact, sans-serif;
  font-size: clamp(3.2rem, 12vw, 4.4rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 0.85;
  color: #fff;
  opacity: 0.08;
  user-select: none;
  transform: rotate(-8deg);
  transition: opacity 0.2s ease, transform 0.25s ease;
}

/* Contenu au-dessus du filigrane */
.pieces-make-card__name,
.pieces-make-card__meta,
.pieces-make-card__cta {
  position: relative;
  z-index: 1;
}

.pieces-make-card:hover {
  border-color: rgba(251, 146, 60, 0.55);
  transform: translateY(-2px);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(251, 146, 60, 0.12);
  background:
    linear-gradient(145deg, rgba(40, 28, 18, 0.95) 0%, rgba(14, 12, 12, 0.98) 60%, rgba(22, 16, 12, 0.99) 100%);
}

.pieces-make-card:hover .pieces-make-card__logo {
  opacity: 0.2;
  transform: rotate(-4deg) scale(1.04);
  filter: drop-shadow(0 6px 20px rgba(232, 93, 4, 0.25));
}

.pieces-make-card:hover .pieces-make-card__mono {
  opacity: 0.12;
  transform: rotate(-6deg) scale(1.03);
}

.pieces-make-card__name {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff7ed;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55);
}

.pieces-make-card__meta {
  font-size: 0.9rem;
  color: var(--pieces-text-muted, #b4b4be);
  flex: 1;
  line-height: 1.4;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

.pieces-make-card__cta {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--pieces-accent-text, #fdba74);
  margin-top: 4px;
}

.pieces-chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pieces-chips a {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #e4e4e7;
  text-decoration: none;
  font-size: 0.88rem;
}

.pieces-chips a:hover {
  border-color: rgba(232, 93, 4, 0.5);
  color: #fdba74;
}

.pieces-chips small {
  opacity: 0.7;
}

.pieces-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.pieces-card {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #141416;
  overflow: hidden;
  transition: border-color 0.15s ease;
  display: flex;
  flex-direction: column;
}

.pieces-card:hover {
  border-color: rgba(232, 93, 4, 0.45);
}

.pieces-card__link {
  display: block;
  color: inherit;
  text-decoration: none;
  padding: 0;
  flex: 1 1 auto;
}

.pieces-card__actions {
  display: flex;
  gap: 8px;
  padding: 0 12px 12px;
  margin-top: 4px;
}

.pieces-card__action {
  flex: 1 1 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #e4e4e7;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
  font: inherit;
  padding: 0;
}

.pieces-card__action:hover,
.pieces-card__action:focus-visible {
  border-color: rgba(251, 146, 60, 0.55);
  background: rgba(232, 93, 4, 0.14);
  color: #fdba74;
  outline: none;
}

.pieces-card__action--cart {
  border-color: rgba(232, 93, 4, 0.4);
  background: rgba(232, 93, 4, 0.12);
  color: #fb923c;
}

.pieces-card__action--cart:hover,
.pieces-card__action--cart:focus-visible {
  background: rgba(232, 93, 4, 0.28);
  color: #fff;
}

.pieces-card__action:disabled,
.pieces-card__action.is-busy,
.shop-btn-primary:disabled,
.shop-btn-primary.is-busy,
.pieces-float__add:disabled,
.pieces-float__add.is-busy {
  opacity: 0.75;
  cursor: wait;
  pointer-events: none;
}

.pieces-card__action.is-added,
.shop-btn-primary.is-added,
.pieces-float__add.is-added {
  border-color: rgba(74, 222, 128, 0.55) !important;
  background: rgba(34, 197, 94, 0.28) !important;
  color: #86efac !important;
}

.pieces-card__action svg,
.shop-btn-primary svg {
  display: inline-block;
  vertical-align: middle;
}

.shop-btn-primary.is-busy,
.shop-btn-primary.is-added {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Spinner ajout panier */
.shop-spin {
  animation: shop-spin 0.7s linear infinite;
}

@keyframes shop-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Toast bas d’écran */
.shop-cart-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: min(420px, calc(100vw - 24px));
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(74, 222, 128, 0.4);
  background: #14201a;
  color: #e4e4e7;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  transform: translate(-50%, 120%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.28s ease, opacity 0.28s ease;
}

.shop-cart-toast--show {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}

.shop-cart-toast--err {
  border-color: rgba(248, 113, 113, 0.5);
  background: #2a1515;
}

.shop-cart-toast__msg {
  font-size: 0.92rem;
  line-height: 1.35;
}

.shop-cart-toast__msg strong {
  color: #86efac;
}

.shop-cart-toast--err .shop-cart-toast__msg strong {
  color: #fca5a5;
}

.shop-cart-toast__link {
  flex-shrink: 0;
  padding: 8px 12px;
  border-radius: 999px;
  background: #e85d04;
  color: #fff !important;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
}

.shop-cart-toast__link:hover {
  background: #f97316;
}

/* Badge panier qui pulse */
.shop-cart-badge--bump {
  animation: shop-badge-bump 0.45s ease;
}

@keyframes shop-badge-bump {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.35);
  }
  100% {
    transform: scale(1);
  }
}

.pieces-header__cart--pulse {
  animation: shop-cart-pulse 0.5s ease;
}

@keyframes shop-cart-pulse {
  0%,
  100% {
    box-shadow: none;
  }
  40% {
    box-shadow: 0 0 0 4px rgba(232, 93, 4, 0.45);
  }
}

body.pieces-float-visible .shop-cart-toast {
  bottom: calc(88px + env(safe-area-inset-bottom, 0px));
}

.pieces-card__img {
  aspect-ratio: 1 / 1;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.05), transparent 55%),
    #0a0a0b;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.pieces-card__img img {
  width: 100%;
  height: 100%;
  /* contain = pas de crop (bougies / photos RockAuto très verticales) */
  object-fit: contain;
  object-position: center;
  padding: 10px;
  box-sizing: border-box;
}

.pieces-card__placeholder {
  color: #52525b;
  font-size: 0.85rem;
}

.pieces-card__title {
  margin: 10px 12px 6px;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
  color: #fafafa;
  letter-spacing: 0.005em;
}

.pieces-card__stock--in {
  color: #86efac;
  font-weight: 600;
}

.pieces-product__stock--in {
  color: #86efac;
  font-weight: 600;
}

.pieces-card__meta {
  margin: 0 12px;
  font-size: 0.9rem;
  color: var(--pieces-text-muted, #b4b4be);
  line-height: 1.45;
}

.pieces-card__price {
  margin: 8px 12px 0;
  font-weight: 700;
  font-size: 1.12rem;
  color: #fb923c;
  letter-spacing: 0.01em;
}

.pieces-empty {
  color: var(--pieces-text-soft, #d4d4d8);
  padding: 20px 0;
  font-size: 1.05rem;
  line-height: 1.65;
}

.pieces-product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: start;
}

/*
 * Galerie produit — cadre proportion fixe 1:1 + object-fit: contain
 * Corrige les photos RockAuto très hautes (ex. bougie 297×1500) qui
 * s’affichaient en bandeau vertical monstrueux sans règle de proportion.
 */
.pieces-product__gallery {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: min(100%, 440px);
}

.pieces-product__gallery img {
  display: block;
  width: 100%;
  max-width: none;
  aspect-ratio: 1 / 1;
  height: auto;
  max-height: min(70vh, 520px);
  object-fit: contain;
  object-position: center;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin: 0;
  padding: 14px;
  box-sizing: border-box;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.06), transparent 58%),
    #0c0c0e;
}

.pieces-product__placeholder {
  min-height: 220px;
  aspect-ratio: 1 / 1;
  max-width: min(100%, 440px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.15);
}

.pieces-product__price {
  font-size: 1.65rem;
  color: #fb923c;
  font-weight: 700;
  margin: 8px 0;
  letter-spacing: 0.01em;
}

.pieces-product__price small {
  font-size: 0.95rem;
  color: var(--pieces-text-muted, #b4b4be);
  font-weight: 500;
}

.pieces-product__stock,
.pieces-product__ref,
.pieces-product__short {
  color: var(--pieces-text-soft, #d4d4d8);
  line-height: 1.65;
  font-size: 1.02rem;
  margin: 0 0 10px;
}

.pieces-product__refs {
  margin: 0 0 14px;
}

.pieces-product__ref code,
.pieces-product__oem-list code {
  font-size: 0.88rem;
  color: #fdba74;
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 7px;
  border-radius: 6px;
}

.pieces-product__oem {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.pieces-product__oem-label {
  margin: 0 0 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #e4e4e7;
}

.pieces-product__oem-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pieces-product__oem-list li {
  margin: 0;
}

.pieces-product__oem-hint {
  margin: 10px 0 0;
  font-size: 0.92rem;
  color: var(--pieces-text-muted, #b4b4be);
  line-height: 1.55;
}

.pieces-product__desc {
  margin: 14px 0;
  color: var(--pieces-text-soft, #d4d4d8);
  line-height: 1.7;
  font-size: 1.05rem;
  max-width: 42rem;
}

.pieces-fitments-groups {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px 18px;
  margin: 10px 0 18px;
}

.pieces-fit-group h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: #fdba74;
  letter-spacing: 0.02em;
  font-weight: 700;
}

.pieces-fitments {
  margin: 0;
  padding-left: 1.15rem;
  color: #e4e4e7;
  font-size: 0.98rem;
  line-height: 1.6;
}

.pieces-fitments a {
  color: #f4f4f5;
  text-decoration: none;
  font-weight: 600;
}

.pieces-fitments a:hover {
  color: #fdba74;
}

.pieces-fit-years {
  color: #a1a1aa;
  font-size: 0.85rem;
  margin-left: 6px;
}

.pieces-fit-engines {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #fdba74;
  background: rgba(232, 93, 4, 0.12);
  border: 1px solid rgba(232, 93, 4, 0.28);
}

.pieces-product__cta {
  margin: 16px 0 20px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(232, 93, 4, 0.4);
  background: rgba(232, 93, 4, 0.1);
  line-height: 1.5;
  color: #e4e4e7;
}

.pieces-product__cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

.pieces-product__cta-note,
.pieces-product__cta-contact {
  margin: 10px 0 0;
  font-size: 0.86rem;
  color: #a1a1aa;
}

.pieces-product__cta a {
  color: #fdba74;
}

/* Barre flottante bas d’écran (fiche produit) */
.pieces-float {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, rgba(10, 10, 11, 0) 0%, rgba(10, 10, 11, 0.92) 28%, #0e0e12 100%);
  pointer-events: none;
  animation: pieces-float-in 0.22s ease;
}

.pieces-float[hidden] {
  display: none !important;
}

.pieces-float__inner {
  pointer-events: auto;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px 10px 14px;
  border-radius: 16px;
  border: 1px solid rgba(251, 146, 60, 0.35);
  background: #141418;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.pieces-float__meta {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pieces-float__title {
  font-size: 0.88rem;
  font-weight: 600;
  color: #f4f4f5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: min(52vw, 320px);
}

.pieces-float__price {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fb923c;
}

.pieces-float__price small {
  font-size: 0.75rem;
  font-weight: 500;
  color: #a1a1aa;
}

.pieces-float__stock {
  font-size: 0.75rem;
  color: #a1a1aa;
}

.pieces-float__stock--in {
  color: #86efac;
}

.pieces-float__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.pieces-float__list {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #e4e4e7;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
}

.pieces-float__list:hover {
  border-color: rgba(251, 146, 60, 0.45);
  color: #fdba74;
}

.pieces-float__add {
  margin: 0 !important;
  padding: 12px 18px !important;
  font-size: 0.92rem !important;
  box-shadow: 0 4px 16px rgba(232, 93, 4, 0.35);
}

body.pieces-float-visible .pieces-footer {
  padding-bottom: 100px;
}

body.pieces-float-visible .pieces-main {
  padding-bottom: 88px;
}

@keyframes pieces-float-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 520px) {
  .pieces-float__title {
    max-width: 42vw;
    font-size: 0.8rem;
  }

  .pieces-float__add {
    padding: 12px 14px !important;
  }
}

.pieces-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 16px 40px;
  text-align: center;
  color: var(--pieces-text-muted, #b4b4be);
  font-size: 0.95rem;
  line-height: 1.6;
}

.pieces-footer a {
  color: #fdba74;
}

.pieces-footer__note {
  margin-top: 10px;
  font-size: 0.9rem;
  opacity: 0.95;
  line-height: 1.55;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

.pieces-header__cart [data-shop-cart-count],
.pieces-header__nav [data-shop-cart-count] {
  display: inline-block;
  min-width: 1.2em;
  margin-left: 2px;
  padding: 0 6px;
  border-radius: 999px;
  background: #e85d04;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}

.shop-btn-primary {
  appearance: none;
  border: none;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  background: #e85d04;
  color: #fff;
  margin: 8px 8px 8px 0;
}

.shop-btn-primary:hover {
  background: #f97316;
}

.shop-btn-link {
  color: #fdba74;
  margin-left: 4px;
}

/* Page panier : en-tête allégé (pas de recherche) */
.pieces-page--cart .pieces-header__band {
  display: none;
}

.pieces-page--cart .pieces-main,
.pieces-page--cart .pieces-wrap {
  max-width: 1120px;
}

/* Bouton retour panier (toujours visible en haut) */
.shop-cart-back-bar {
  margin: 0 0 14px;
}

.shop-cart-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #f4f4f5;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.shop-cart-back:hover {
  background: rgba(232, 93, 4, 0.18);
  border-color: rgba(232, 93, 4, 0.45);
  color: #fff;
}

.shop-cart-back__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: rgba(232, 93, 4, 0.22);
  color: #fdba74;
  font-size: 1rem;
  line-height: 1;
}

.shop-cart-back:hover .shop-cart-back__arrow {
  background: rgba(232, 93, 4, 0.4);
  color: #fff;
}

.pieces-page--cart .pieces-hero--cart {
  margin: 0 0 28px;
  padding: 22px 24px 20px;
  border-radius: 18px;
  border: 1px solid rgba(232, 93, 4, 0.22);
  background:
    radial-gradient(ellipse 80% 120% at 100% 0%, rgba(232, 93, 4, 0.14), transparent 55%),
    linear-gradient(165deg, rgba(30, 30, 38, 0.95), rgba(14, 14, 18, 0.98));
}

.pieces-page--cart .pieces-hero__kicker {
  margin: 0 0 6px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fdba74;
}

.pieces-page--cart .pieces-hero h1 {
  font-size: clamp(1.75rem, 3.2vw, 2.25rem);
  margin: 0 0 8px;
  color: #fafafa;
  letter-spacing: -0.02em;
}

.pieces-page--cart .pieces-hero__lead {
  display: block !important;
  margin: 0;
  max-width: 36rem;
  font-size: 0.98rem;
  line-height: 1.5;
  color: #a1a1aa;
}

/* Empty state */
.shop-cart-empty {
  text-align: center;
  padding: 48px 28px 52px;
  border-radius: 20px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
}

.shop-cart-empty__icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  opacity: 0.9;
}

.shop-cart-empty__title {
  margin: 0 0 10px;
  font-size: 1.35rem;
  color: #fafafa;
}

.shop-cart-empty__text {
  margin: 0 auto 22px;
  max-width: 26rem;
  color: #a1a1aa;
  line-height: 1.5;
}

.shop-cart-empty__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* Layout panier desktop : articles | récap sticky */
.shop-cart-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px 32px;
  align-items: start;
}

.shop-cart__panel {
  padding: 20px 20px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(20, 20, 26, 0.72);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
}

.shop-cart__panel--checkout {
  padding-top: 22px;
}

.shop-cart__panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.shop-cart__section-title {
  margin: 0;
  font-size: 1.1rem;
  color: #fafafa;
  font-weight: 700;
}

.shop-cart__badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #ffedd5;
  background: rgba(232, 93, 4, 0.22);
  border: 1px solid rgba(232, 93, 4, 0.35);
}

.shop-cart__main {
  min-width: 0;
}

.shop-cart-lines {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.shop-cart-line {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 16px 18px;
  padding: 16px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.18));
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.shop-cart-line:hover {
  border-color: rgba(232, 93, 4, 0.28);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.shop-cart-line__media {
  grid-row: 1 / span 2;
}

.shop-cart-line__img-btn {
  position: relative;
  display: block;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  border-radius: 12px;
  overflow: hidden;
  width: 100%;
}

.shop-cart-line__img-btn:focus-visible {
  outline: 2px solid #e85d04;
  outline-offset: 2px;
}

.shop-cart-line__img-zoom {
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  pointer-events: none;
}

.shop-cart-line__img-btn:hover .shop-cart-line__img-zoom {
  background: rgba(232, 93, 4, 0.9);
}

/* Lightbox zoom panier */
.shop-img-zoom {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  background: rgba(0, 0, 0, 0.88);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, visibility 0.18s ease;
  cursor: zoom-out;
}

.shop-img-zoom--open {
  opacity: 1;
  visibility: visible;
}

body.shop-img-zoom-open {
  overflow: hidden;
}

.shop-img-zoom__img {
  max-width: min(920px, 94vw);
  max-height: min(80vh, 900px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  background: #fff;
  cursor: default;
}

.shop-img-zoom__caption {
  margin: 0;
  max-width: min(640px, 90vw);
  text-align: center;
  color: #e4e4e7;
  font-size: 0.95rem;
}

.shop-img-zoom__close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.shop-img-zoom__close:hover {
  background: rgba(232, 93, 4, 0.85);
}

.shop-cart-line__img {
  width: 88px;
  height: 88px;
  object-fit: contain;
  object-position: center;
  padding: 8px;
  box-sizing: border-box;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0a0a0b;
  display: block;
}

.shop-cart-line__img--ph {
  display: block;
  width: 88px;
  height: 88px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(232, 93, 4, 0.18), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.shop-cart-line__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: flex-start;
}

.shop-cart-line__title {
  font-size: 1.05rem;
  color: #fafafa;
  line-height: 1.35;
  font-weight: 650;
}

.shop-cart-line__sku {
  font-size: 0.8rem;
  color: #a1a1aa;
}

.shop-cart-line__pack {
  display: inline-flex;
  margin-top: 2px;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #fdba74;
  background: rgba(232, 93, 4, 0.12);
  border: 1px solid rgba(232, 93, 4, 0.25);
}

.shop-cart-line__price {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.shop-cart-line__unit {
  font-size: 0.88rem;
  color: #a1a1aa;
}

.shop-cart-line__qty {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: #a1a1aa;
}

.shop-cart-line__qty input {
  width: 3.75rem;
  padding: 9px 8px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #0a0a0b;
  color: #fff;
  font: inherit;
  font-weight: 600;
  text-align: center;
}

.shop-cart-line__total {
  margin-left: auto;
  font-size: 1.15rem;
  color: #fdba74;
  font-weight: 750;
}

.shop-remove {
  appearance: none;
  border: 0;
  background: transparent;
  color: #a1a1aa;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 4px 0;
}

.shop-remove:hover {
  color: #fca5a5;
}

.shop-cart__continue {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: center;
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.92rem;
}

.shop-cart__continue a {
  color: #fdba74;
  text-decoration: none;
  font-weight: 600;
}

.shop-cart__continue a:hover {
  text-decoration: underline;
}

.shop-cart__aside {
  min-width: 0;
}

.shop-cart__summary {
  padding: 22px 20px 20px;
  border-radius: 18px;
  border: 1px solid rgba(232, 93, 4, 0.28);
  background:
    radial-gradient(ellipse 90% 80% at 50% 0%, rgba(232, 93, 4, 0.12), transparent 60%),
    linear-gradient(180deg, rgba(28, 24, 22, 0.98), rgba(12, 12, 16, 0.98));
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.shop-cart__aside-title {
  margin: 0 0 6px;
  font-size: 1.15rem;
  color: #fff7ed;
  letter-spacing: 0.01em;
}

.shop-cart__count {
  margin: 0 0 16px;
  font-size: 0.85rem;
  color: #a1a1aa;
}

.shop-cart__trust {
  list-style: none;
  margin: 14px 0 0;
  padding: 12px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.78rem;
  color: #a1a1aa;
}

.shop-cart__trust li::before {
  content: '✓ ';
  color: #86efac;
  font-weight: 700;
}

.shop-cart__aside-hint {
  margin: 12px 0 0;
  font-size: 0.85rem;
  color: #a1a1aa;
  line-height: 1.4;
}

.shop-cart__aside-cta {
  margin-top: 16px;
}

.shop-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 1.05rem;
  color: #fafafa;
  font-weight: 600;
}

.shop-total strong {
  font-size: 1.35rem;
  color: #fdba74;
  font-weight: 800;
}

.shop-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: #e4e4e7;
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.shop-btn-secondary:hover {
  border-color: rgba(232, 93, 4, 0.4);
  background: rgba(232, 93, 4, 0.1);
  color: #fff;
}

.shop-btn-secondary--sm {
  padding: 8px 14px;
  font-size: 0.86rem;
}

.shop-btn-link {
  color: #fdba74;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
}

.shop-btn-link:hover {
  text-decoration: underline;
}

.shop-cart__line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 10px;
  font-size: 0.95rem;
  color: #d4d4d8;
}

.shop-cart__line--ship {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 600;
  color: #e4e4e7;
}

.shop-cart__line--ship strong {
  color: #fdba74;
}

.shop-cart__line--ship.shop-cart__line--free strong {
  color: #86efac;
}

.shop-cart__checkout-wrap {
  grid-column: 1 / -1;
  min-width: 0;
}

@media (min-width: 960px) {
  /* Articles + checkout à gauche, récap collé sur toute la hauteur */
  .shop-cart-layout {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 340px);
    grid-template-areas:
      'main aside'
      'checkout aside';
  }

  .shop-cart__main {
    grid-area: main;
  }

  .shop-cart__aside {
    grid-area: aside;
    position: sticky;
    top: 80px;
    align-self: start;
    z-index: 2;
  }

  .shop-cart__checkout-wrap {
    grid-area: checkout;
    grid-column: auto;
  }

  .shop-cart-line {
    grid-template-columns: 80px 1fr auto;
    align-items: center;
  }

  .shop-cart-line__media {
    grid-row: auto;
  }

  .shop-cart-line__price {
    grid-column: auto;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    min-width: 140px;
  }

  .shop-cart-line__total {
    margin-left: 0;
  }

  .shop-checkout__grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
    align-items: stretch;
  }

  .shop-checkout__row2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .shop-checkout__card--pay {
    display: flex;
    flex-direction: column;
  }

  .shop-checkout__card--pay .shop-btn-primary--block {
    margin-top: auto !important;
  }
}

@media (min-width: 960px) and (max-width: 1180px) {
  .shop-checkout__grid {
    grid-template-columns: 1fr 1fr;
  }

  .shop-checkout__card--pay {
    grid-column: 1 / -1;
  }
}

.shop-checkout__step {
  margin: 16px 0 10px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fdba74;
}

.shop-btn-primary--block {
  display: block;
  width: 100%;
  margin: 12px 0 0 !important;
  text-align: center;
  box-sizing: border-box;
}

/* Barre bas mobile uniquement */
.shop-cart-mobile-bar {
  display: none;
}

@media (min-width: 960px) {
  .shop-cart-mobile-bar {
    display: none !important;
  }
}

@media (max-width: 959px) {
  .shop-cart-mobile-bar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 35;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0px));
    background: #141418;
    border-top: 1px solid rgba(251, 146, 60, 0.35);
    box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.45);
  }

  .shop-cart-mobile-bar__total {
    display: flex;
    flex-direction: column;
    gap: 2px;
    color: #a1a1aa;
    font-size: 0.8rem;
  }

  .shop-cart-mobile-bar__total strong {
    color: #fb923c;
    font-size: 1.15rem;
  }

  .shop-cart-mobile-bar__cta {
    margin: 0 !important;
    text-decoration: none;
    white-space: nowrap;
    border: none;
    cursor: pointer;
    font: inherit;
    flex-shrink: 0;
  }

  .shop-cart-mobile-bar__cta:disabled,
  .shop-cart-mobile-bar__cta.is-busy {
    opacity: 0.7;
    cursor: wait;
  }

  .shop-checkout--pulse {
    animation: shop-checkout-pulse 1s ease 1;
    border-radius: 12px;
  }

  @keyframes shop-checkout-pulse {
    0%,
    100% {
      box-shadow: 0 0 0 0 rgba(251, 146, 60, 0);
    }
    40% {
      box-shadow: 0 0 0 4px rgba(251, 146, 60, 0.45);
    }
  }

  .pieces-page--cart .pieces-main {
    padding-bottom: 96px;
  }

  .pieces-page--cart .pieces-footer {
    padding-bottom: 100px;
  }

  .shop-checkout__grid {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }
}

/* Badges stock panier (informatifs — ne bloquent pas) */
.shop-stock-badge {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  vertical-align: middle;
}

.shop-stock-badge--ok {
  background: rgba(34, 197, 94, 0.15);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.35);
}

.shop-stock-badge--order {
  background: rgba(251, 146, 60, 0.14);
  color: #fdba74;
  border: 1px solid rgba(251, 146, 60, 0.4);
}

.shop-stock-badge--partial {
  background: rgba(250, 204, 21, 0.12);
  color: #fde047;
  border: 1px solid rgba(250, 204, 21, 0.35);
}

.shop-stock-line-hint {
  display: block;
  margin-top: 4px;
  font-size: 0.75rem;
  color: #a1a1aa;
  line-height: 1.35;
  max-width: 28rem;
}

.shop-stock-info {
  margin: 14px 0 8px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(251, 146, 60, 0.4);
  background: rgba(251, 146, 60, 0.08);
}

.shop-stock-info--compact {
  margin: 0 0 12px;
}

.shop-stock-info__title {
  margin: 0 0 6px;
  color: #fdba74;
  font-size: 0.9rem;
}

.shop-stock-info__sum {
  margin: 0 0 8px;
  font-size: 0.85rem;
  color: #e4e4e7;
  line-height: 1.4;
}

.shop-stock-info__list {
  margin: 0 0 10px;
  padding-left: 1.1rem;
  font-size: 0.8rem;
  color: #d4d4d8;
  line-height: 1.4;
}

.shop-stock-info__list li {
  margin-bottom: 4px;
}

.shop-stock-info__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.shop-stock-info__check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 8px 0;
  font-size: 0.85rem;
  color: #e4e4e7;
  cursor: pointer;
}

.shop-stock-info__check input {
  margin-top: 3px;
  flex-shrink: 0;
}

.shop-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid rgba(251, 146, 60, 0.5);
  background: rgba(0, 0, 0, 0.25);
  color: #fdba74;
  font: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: none;
}

.shop-btn-secondary:hover {
  background: rgba(251, 146, 60, 0.15);
  border-color: #fb923c;
}

.shop-remove {
  background: transparent;
  border: 1px solid rgba(248, 113, 113, 0.35);
  color: #fca5a5;
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 0.8rem;
}

.shop-remove:hover {
  border-color: rgba(248, 113, 113, 0.7);
  background: rgba(248, 113, 113, 0.08);
}

.shop-cart__summary {
  margin: 0;
  padding: 18px 18px 20px;
  border-radius: 16px;
  border: 1px solid rgba(232, 93, 4, 0.35);
  background: linear-gradient(165deg, rgba(28, 22, 18, 0.95), rgba(232, 93, 4, 0.07));
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}

.shop-ship {
  border: none;
  margin: 12px 0 8px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.shop-ship legend {
  padding: 0;
  margin: 0 0 8px;
  color: #a1a1aa;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.shop-ship__opt {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.28);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.shop-ship__opt:has(input:checked) {
  border-color: rgba(232, 93, 4, 0.55);
  background: rgba(232, 93, 4, 0.1);
}

.shop-ship__opt input {
  margin-top: 3px;
  flex-shrink: 0;
}

.shop-ship__opt-body {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.shop-ship__opt-name {
  color: #e4e4e7;
  font-size: 0.92rem;
  font-weight: 600;
}

.shop-ship__opt-price {
  color: #fdba74;
  font-weight: 700;
  font-size: 0.92rem;
  white-space: nowrap;
}

.shop-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin: 14px 0 0;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 1.05rem;
  color: #f4f4f5;
  font-weight: 600;
}

.shop-total strong {
  font-size: 1.35rem;
  color: #fdba74;
}

.shop-free-hint {
  margin: 0 0 12px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.82rem;
  color: #a1a1aa;
  line-height: 1.4;
}

.shop-free-hint--ok {
  color: #86efac;
  background: rgba(34, 197, 94, 0.08);
}

.shop-pay {
  margin: 0 0 16px;
  padding: 0;
  border: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.shop-pay legend {
  padding: 0;
  margin: 0 0 8px;
  color: #a1a1aa;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.shop-pay__policy {
  margin: 0 0 10px;
  font-size: 0.82rem;
  line-height: 1.4;
  color: #a1a1aa;
}

.shop-pay__policy strong {
  color: #e4e4e7;
}

.shop-pay__opt {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.28);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.shop-pay__opt:has(input:checked) {
  border-color: rgba(232, 93, 4, 0.55);
  background: rgba(232, 93, 4, 0.1);
}

.shop-pay__opt input {
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: #e85d04;
}

.shop-pay__opt-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.shop-pay__opt-name {
  color: #f4f4f5;
  font-size: 0.95rem;
  font-weight: 700;
}

.shop-pay__opt-desc {
  color: #a1a1aa;
  font-size: 0.8rem;
  line-height: 1.4;
}

.shop-pay__opt--off {
  opacity: 0.55;
  cursor: not-allowed;
  border-style: dashed;
}

.shop-checkout {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0;
  border: none;
  background: transparent;
}

.shop-checkout__card {
  min-width: 0;
  padding: 18px 18px 20px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.32);
}

.shop-checkout__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  margin-right: 8px;
  border-radius: 999px;
  background: rgba(232, 93, 4, 0.2);
  color: #fdba74;
  font-size: 0.85rem;
  font-weight: 800;
}

.shop-checkout__row2 {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.shop-cart__section-title {
  margin: 0 0 12px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #a1a1aa;
}

.shop-cart__count {
  margin: -6px 0 12px;
  font-size: 0.85rem;
  color: #a1a1aa;
}

.shop-cart__aside-cta {
  margin-top: 16px !important;
}

.shop-checkout__logged-name {
  color: #d4d4d8;
  font-weight: 500;
}

.shop-ship__opt input {
  accent-color: #e85d04;
}

.shop-checkout h2 {
  margin: 0 0 4px;
  font-size: 1.1rem;
  color: #fff7ed;
}

.shop-checkout label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.88rem;
  color: #d4d4d8;
  margin-bottom: 10px;
}

.shop-checkout input,
.shop-checkout textarea {
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0a0a0b;
  color: #fff;
  font: inherit;
  font: inherit;
  box-sizing: border-box;
  width: 100%;
}

.shop-checkout__hint {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #a1a1aa;
}

.shop-checkout__addr-req {
  margin: 0 0 10px;
  font-size: 0.88rem;
  color: #fdba74;
}

.shop-checkout__addr-req[hidden] {
  display: none !important;
}

.shop-checkout__saved-addr {
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(232, 93, 4, 0.35);
  background: rgba(232, 93, 4, 0.08);
}

.shop-checkout__saved-title {
  margin: 0 0 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fdba74;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.shop-checkout__saved-lines {
  margin: 0 0 8px;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--color-text, #f4f4f5);
}

.shop-checkout__logged {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.3);
  color: #bbf7d0;
  font-size: 0.9rem;
}

.shop-checkout__code {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  background: rgba(56, 189, 248, 0.08);
}

.shop-checkout__msg--err {
  color: #fca5a5 !important;
}

.shop-checkout__email-status {
  margin: -4px 0 4px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.88rem;
  line-height: 1.4;
  color: #d4d4d8;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.shop-checkout__email-status--load {
  color: #a1a1aa;
}

.shop-checkout__email-status--ok {
  color: #bbf7d0;
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(74, 222, 128, 0.35);
}

.shop-checkout__email-status--new {
  color: #fde68a;
  background: rgba(234, 179, 8, 0.1);
  border-color: rgba(234, 179, 8, 0.35);
}

.shop-checkout__new-account {
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(251, 146, 60, 0.35);
  background: rgba(232, 93, 4, 0.08);
}

/* display:flex ne doit pas écraser l’attribut HTML hidden */
.shop-checkout__new-account[hidden],
.shop-checkout__code[hidden],
.shop-checkout__email-status[hidden],
#co-send-code[hidden],
#co-order-fields[hidden],
#co-auth-block[hidden],
#co-address-block[hidden] {
  display: none !important;
}

.shop-checkout__new-account:not([hidden]) {
  display: flex;
}

.shop-checkout__code:not([hidden]) {
  display: flex;
}

.shop-checkout__new-title {
  margin: 0;
  font-weight: 700;
  font-size: 0.95rem;
  color: #fdba74;
}

.shop-link-btn {
  appearance: none;
  border: none;
  background: none;
  color: #fdba74;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

.shop-login-warn {
  color: #fdba74;
  line-height: 1.4;
}

.shop-free-hint {
  font-size: 0.88rem;
  color: #a1a1aa;
}

.shop-free-hint--ok {
  color: #86efac;
}

.shop-success {
  padding: 24px 20px;
  border-radius: 14px;
  border: 1px solid rgba(34, 197, 94, 0.4);
  background: rgba(22, 101, 52, 0.2);
  text-align: center;
}

.shop-success__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.25);
  color: #86efac;
  font-size: 1.4rem;
  font-weight: 800;
}

.shop-success h2 {
  margin: 0 0 10px;
}

.shop-success__total {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.shop-success__ship {
  margin: 0 0 12px;
  color: #d4d4d8;
  font-size: 0.92rem;
}

.shop-success__rib {
  margin: 14px auto 12px;
  max-width: 28rem;
  padding: 14px 16px;
  text-align: left;
  border-radius: 12px;
  border: 1px solid rgba(251, 146, 60, 0.45);
  background: rgba(15, 15, 18, 0.45);
  font-size: 0.92rem;
  line-height: 1.45;
}

.shop-success__rib-title {
  margin: 0 0 8px;
  font-weight: 700;
  color: #fdba74;
  font-size: 0.95rem;
}

.shop-success__rib p {
  margin: 0 0 6px;
}

.shop-success__iban {
  letter-spacing: 0.04em;
  word-break: break-all;
  color: #fef3c7;
}

.shop-success__rib-note {
  margin-top: 8px !important;
  color: #a1a1aa;
  font-size: 0.86rem;
}

.shop-success__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 18px;
}

.shop-success__actions .shop-btn-primary {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.shop-success a {
  color: #fdba74;
}

.shop-success .shop-btn-link {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  font-weight: 600;
}

/* Bootloader validation commande — plein écran (mobile + desktop) */
.shop-checkout {
  position: relative;
}

.shop-checkout--loading {
  pointer-events: none;
}

body.shop-checkout-loading {
  overflow: hidden;
}

.shop-checkout-boot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px;
}

.shop-checkout-boot--global {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10, 10, 11, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 24px 20px calc(24px + env(safe-area-inset-bottom, 0px));
}

.shop-checkout-boot__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: 320px;
  width: 100%;
  padding: 28px 22px;
  border-radius: 18px;
  border: 1px solid rgba(232, 93, 4, 0.4);
  background: #141418;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
  text-align: center;
}

.shop-checkout-boot[hidden] {
  display: none !important;
}

.shop-checkout-boot__spin {
  width: 42px;
  height: 42px;
  border: 3px solid rgba(255, 255, 255, 0.12);
  border-top-color: #e85d04;
  border-radius: 50%;
  animation: shop-checkout-spin 0.75s linear infinite;
}

.shop-checkout-boot__txt {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #f4f4f5;
  text-align: center;
  line-height: 1.35;
}

.shop-checkout-boot__hint {
  margin: 0;
  font-size: 0.88rem;
  color: #a1a1aa;
}

/* Barre mobile sous l’overlay (ou assombrie) */
.shop-cart-mobile-bar--loading {
  opacity: 0.35;
  pointer-events: none;
}

@keyframes shop-checkout-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 800px) {
  .pieces-product {
    grid-template-columns: 1fr;
  }
}

/* =============================================================================
   MOBILE catalogue — lisibilité & densité (≤ 720px)
   ============================================================================= */
@media (max-width: 720px) {
  .pieces-main {
    padding: 14px 12px calc(28px + env(safe-area-inset-bottom, 0px));
  }

  .pieces-breadcrumb {
    font-size: 0.78rem;
    margin-bottom: 12px;
    line-height: 1.4;
    overflow-wrap: anywhere;
  }

  .pieces-breadcrumb span {
    margin: 0 4px;
  }

  .pieces-hero h1 {
    font-size: 1.28rem;
    line-height: 1.25;
    margin-bottom: 8px;
  }

  .pieces-hero p {
    font-size: 0.9rem;
    margin-bottom: 14px;
  }

  /* Cascade année / marque / modèle : une colonne, cibles tactiles */
  .pieces-year-filter,
  .pieces-cascade {
    margin: 0 0 16px;
    padding: 12px;
    max-width: none;
  }

  .pieces-cascade__head {
    margin-bottom: 10px;
  }

  .pieces-cascade__title {
    font-size: 0.78rem;
  }

  .pieces-cascade__hint {
    font-size: 0.74rem;
    width: 100%;
  }

  .pieces-cascade__row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .pieces-cascade__field {
    width: 100%;
  }

  .pieces-cascade__field select,
  .pieces-year-filter select,
  .pieces-search input[type='search'] {
    min-height: 46px;
    padding: 12px 12px;
    font-size: 16px; /* évite zoom iOS */
    border-radius: 10px;
  }

  .pieces-cascade__actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding-bottom: 0;
  }

  .pieces-cascade__btn {
    width: 100%;
    min-height: 46px;
    padding: 12px 14px;
    font-size: 0.95rem;
    border-radius: 10px;
  }

  .pieces-cascade__reset {
    text-align: center;
    padding: 8px;
  }

  /* Recherche : plus lisible, pile si étroit */
  .pieces-search {
    padding: 12px;
  }

  .pieces-search__row {
    gap: 8px;
    flex-wrap: wrap;
  }

  .pieces-search__btn {
    min-height: 46px;
    min-width: 0;
    flex: 1 1 auto;
    padding: 10px 14px;
    font-size: 0.9rem;
  }

  .pieces-search input[type='search'] {
    flex: 1 1 100%;
  }

  .pieces-search__hint {
    font-size: 0.8rem;
  }

  .pieces-search__status {
    font-size: 0.8rem;
  }

  .pieces-search__chips {
    gap: 6px;
  }

  .pieces-section {
    margin-bottom: 22px;
  }

  .pieces-section h2 {
    font-size: 0.88rem;
    margin-bottom: 10px;
  }

  .pieces-section__hint {
    font-size: 0.82rem;
    margin: -2px 0 12px;
  }

  /* Marques / modèles : 2 colonnes stables */
  .pieces-make-grid,
  .pieces-make-grid--models {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .pieces-make-card {
    min-height: 100px;
    padding: 12px 11px;
    border-radius: 12px;
  }

  .pieces-make-card:hover {
    transform: none; /* pas de lift au tap mobile */
  }

  .pieces-make-card__logo {
    width: 70%;
    height: 78%;
    opacity: 0.11;
    right: -4%;
    bottom: -6%;
  }

  .pieces-make-card__mono {
    font-size: 2.8rem;
    opacity: 0.09;
  }

  .pieces-make-card:hover .pieces-make-card__logo,
  .pieces-make-card:hover .pieces-make-card__mono {
    transform: none;
  }

  .pieces-make-card__name {
    font-size: 0.95rem;
    line-height: 1.2;
  }

  .pieces-make-card__meta {
    font-size: 0.72rem;
  }

  .pieces-make-card__cta {
    font-size: 0.72rem;
  }

  /* Chips catégories : scroll horizontal si beaucoup */
  .pieces-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 8px;
    padding-bottom: 4px;
    margin: 0 -4px;
    padding-left: 4px;
    padding-right: 4px;
    scrollbar-width: thin;
  }

  .pieces-chips a {
    flex: 0 0 auto;
    padding: 9px 12px;
    font-size: 0.84rem;
  }

  /* Produits : grille 2 colonnes compacte */
  .pieces-grid,
  .pieces-grid--results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .pieces-card {
    border-radius: 12px;
    min-width: 0;
  }

  .pieces-card__img {
    aspect-ratio: 1 / 1;
  }

  .pieces-card__img img {
    padding: 6px;
  }

  .pieces-card__title {
    margin: 8px 8px 2px;
    font-size: 0.8rem;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .pieces-card__sku {
    margin: 0 8px 2px;
    font-size: 0.68rem;
  }

  .pieces-card__sku code {
    font-size: 0.7rem;
    padding: 1px 4px;
  }

  .pieces-card__meta {
    margin: 0 8px;
    font-size: 0.68rem;
  }

  .pieces-card__price {
    margin: 6px 8px 0;
    font-size: 0.92rem;
  }

  .pieces-card__actions {
    flex-direction: column;
    gap: 6px;
    padding: 0 8px 10px;
    margin-top: 6px;
  }

  .pieces-card__action {
    flex: 1 1 auto;
    width: 100%;
    min-height: 40px;
  }

  .pieces-empty {
    font-size: 0.9rem;
    padding: 16px 4px;
  }

  /* Galerie produit déjà 1 col ; resserrer le cadre photo */
  .pieces-product__gallery {
    max-width: 100%;
  }

  .pieces-product__gallery img {
    max-height: min(55vh, 380px);
    padding: 10px;
  }

  .pieces-product__info h1 {
    font-size: 1.25rem;
    line-height: 1.25;
  }

  .pieces-product__price {
    font-size: 1.35rem;
  }

  .pieces-product__cta-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .pieces-product__cta-row .shop-btn-primary,
  .pieces-product__cta-row .shop-btn-link {
    width: 100%;
    margin: 0;
    text-align: center;
    box-sizing: border-box;
  }

  .pieces-footer {
    padding: 20px 12px calc(28px + env(safe-area-inset-bottom, 0px));
    font-size: 0.82rem;
  }
}

/* Très petit écran : 1 col produits si < 360px (lisibilité) */
@media (max-width: 359px) {
  .pieces-grid,
  .pieces-grid--results {
    grid-template-columns: 1fr;
  }

  .pieces-make-grid,
  .pieces-make-grid--models {
    grid-template-columns: 1fr;
  }
}
