/* ==========================================================================
   Fiche produit du catalogue : bloc d'informations, catégorie, légende des
   codes de condition, mention sur les images. Chargé seulement sur les
   fiches produit (inc/product-display.php).
   ========================================================================== */

/* Une longue référence ne doit jamais faire déborder la colonne. */
.single-product div.product .summary,
.single-product div.product .product-gallery-column {
  min-width: 0;
}

.single-product div.product .summary .product_title {
  overflow-wrap: anywhere;
}

/* --- Bloc des quatre lignes --- */
.papco-facts {
  display: grid;
  gap: 0.375rem;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
  color: var(--papco-text, #1e293b);
  font-size: 1rem;
  line-height: 1.5;
}

.papco-fact {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.papco-fact__label {
  font-weight: 700;
  color: var(--papco-navy, #0f1d3a);
}

/* --- Catégorie --- */
.papco-product-category {
  margin: 0 0 1rem;
  overflow-wrap: anywhere;
}

.papco-product-category__label {
  font-weight: 700;
  color: var(--papco-navy, #0f1d3a);
}

.papco-product-category a {
  color: var(--papco-navy, #0f1d3a);
}

.papco-product-category a:hover {
  color: var(--papco-red, #b41412);
}

/* --- Légende des codes de condition --- */
.papco-condition-legend {
  margin: 1.5rem 0 0;
  color: var(--papco-muted, #64748b);
  font-size: 0.75rem;
  line-height: 1.5;
}

.papco-condition-legend p {
  margin: 0 0 0.5rem;
}

.papco-condition-legend table {
  width: 100%;
  max-width: 18rem;
  margin: 0;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 0.75rem;
}

.papco-condition-legend th,
.papco-condition-legend td {
  padding: 0.1875rem 0.5rem 0.1875rem 0;
  border: 0;
  border-bottom: 1px solid var(--papco-border, #d9e0e7);
  background: none;
  color: inherit;
  text-align: left;
  overflow-wrap: anywhere;
}

.papco-condition-legend th {
  font-weight: 700;
}

.papco-condition-legend th:first-child,
.papco-condition-legend td:first-child {
  width: 3.5rem;
}

/* --- Mention sous l'image et sous la liste de devis --- */
.papco-image-note {
  margin: 0.5rem 0 0;
  color: var(--papco-muted, #64748b);
  font-size: 0.75rem;
  line-height: 1.5;
}

/* --- Image du produit : occupe toute la largeur de la colonne, centrée, sans loupe --- */
.single-product div.product .woocommerce-product-gallery {
  float: none;
  width: 100%;
  max-width: 100%;
  margin: 0;
}

.single-product div.product .woocommerce-product-gallery__wrapper,
.single-product div.product .woocommerce-product-gallery__image {
  width: 100%;
  margin: 0;
}

.single-product div.product .woocommerce-product-gallery__image img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.woocommerce-product-gallery__trigger {
  display: none;
}

/* --- Maillage : autres produits de la catégorie et pages utiles --- */
.papco-more {
  margin: 1.75rem 0 0;
  padding-top: 1rem;
  border-top: 0.0625rem solid var(--papco-border, #d9e0e7);
}

.papco-more__title {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin: 0 0 0.75rem;
  color: var(--papco-red, #b41412);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.3;
  text-transform: uppercase;
}

.papco-more__title::before {
  content: "";
  flex: none;
  width: 1.75rem;
  height: 0.1875rem;
  background: var(--papco-red, #b41412);
}

.papco-more__list {
  margin: 0 0 0.875rem;
  padding: 0;
  list-style: none;
}

.papco-more__list li {
  margin: 0;
  padding: 0.25rem 0;
  font-size: 0.875rem;
  overflow-wrap: anywhere;
}

.papco-more__list a,
.papco-more__links a {
  color: var(--papco-navy, #0f1d3a);
  text-decoration: none;
}

.papco-more__list a:hover,
.papco-more__links a:hover {
  color: var(--papco-red, #b41412);
}

.papco-more__links {
  margin: 0;
  color: var(--papco-muted, #64748b);
  font-size: 0.8125rem;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
