/* Catalogue pièces multimarque (accessoires.php#catalogue) — ce que Tailwind
   (CDN) ne couvre pas nativement : le <dialog> natif (fiche produit + panier). */

dialog#pc-detail,
dialog#pc-basket {
  margin: auto;
  padding: 0;
  border: none;
  max-height: 90vh;
  overscroll-behavior: contain;
}

dialog#pc-detail::backdrop,
dialog#pc-basket::backdrop {
  background: rgba(1, 2, 6, 0.6);
  backdrop-filter: blur(2px);
}

dialog#pc-basket {
  margin-left: auto;
  margin-right: 0;
  width: min(440px, 100vw);
  height: 100vh;
  max-height: 100vh;
}

.pc-filter-btn {
  background: #fff;
  color: #010206;
  white-space: nowrap;
}

.pc-filter-btn.active {
  background: var(--color-amber);
  border-color: transparent;
}

.pc-card img {
  will-change: transform;
}

@media (max-width: 640px) {
  dialog#pc-detail {
    width: 100%;
    max-width: 100%;
  }
  dialog#pc-basket {
    width: 100%;
  }
}

.pc-toast {
  transition: opacity 0.2s ease-out, transform 0.2s ease-out;
}
