/* PDO-011 / 0.8.111-dev — Maquette fiche produit validée.
 * Couche strictement visuelle, après catalog.css et product.css.
 * Les prix, quantités, disponibilités et actions sont ceux de WooCommerce/PDO.
 */
.pdo-single-product { --pdo-product-premium-gold: #bd8f4d; --pdo-product-premium-cream: #fbf8f3; }
.pdo-single-product .pdo-product-top { gap: clamp(22px, 3vw, 42px); grid-template-columns: minmax(0, 1fr) minmax(425px, 1.03fr); }
.pdo-single-product .pdo-product-heading { padding-bottom: 4px; }
.pdo-single-product .pdo-product-heading h1 { font-size: clamp(1.85rem, 2.4vw, 2.45rem); line-height: 1.12; }
.pdo-single-product .pdo-product-reviews-summary { min-height: 38px; border-bottom: 0; }
.pdo-single-product .pdo-product-key-specs { margin-top: 8px; gap: 7px; }
.pdo-single-product .pdo-product-key-specs > span { padding: 7px 9px; background: #fbfaf8; }

/* La galerie conserve l'API native WooCommerce : déplacement CSS uniquement.
 * Sans miniatures (ou navigateur ancien), la galerie historique reste intacte. */
@supports selector(:has(*)) {
  @media (min-width: 901px) {
    .pdo-single-product .woocommerce-product-gallery:has(> .flex-control-thumbs) {
      display: grid !important;
      grid-template-columns: clamp(58px, 6vw, 80px) minmax(0,1fr);
      gap: 10px;
      align-items: start;
    }
    .pdo-single-product .woocommerce-product-gallery:has(> .flex-control-thumbs) > .flex-viewport,
    .pdo-single-product .woocommerce-product-gallery:has(> .flex-control-thumbs) > .woocommerce-product-gallery__wrapper {
      grid-column: 2;
      grid-row: 1;
      min-width: 0;
    }
    .pdo-single-product .woocommerce-product-gallery:has(> .flex-control-thumbs) > .flex-control-thumbs {
      grid-column: 1;
      grid-row: 1;
      margin: 0 !important;
      display: grid !important;
      grid-template-columns: minmax(0,1fr) !important;
      gap: 8px !important;
    }
    .pdo-single-product .woocommerce-product-gallery:has(> .flex-control-thumbs) > .flex-control-thumbs li { width: 100% !important; }
    .pdo-single-product .woocommerce-product-gallery:has(> .flex-control-thumbs) > .flex-control-thumbs img { aspect-ratio: 1 / 1; }
  }
}
.pdo-single-product .pdo-product-gallery-shell .woocommerce-product-gallery__image { border-radius: 9px; }
.pdo-single-product .pdo-product-gallery-shell .woocommerce-product-gallery__image img { max-height: 590px; }

/* Panneau achat : un seul configurateur Woo/PDO-010, jamais de clone. */
.pdo-single-product .pdo-product-purchase-panel {
  margin-top: 14px;
  padding: 17px 18px 16px;
  border: 1px solid #e0e4e6;
  border-radius: 11px;
  background: linear-gradient(180deg, #fff 0%, #fff 76%, #fdfcfb 100%);
  box-shadow: 0 5px 20px rgba(7, 26, 45, .035);
}
.pdo-single-product .pdo-product-purchase-panel .pdo-product-commerce-head { display: block; margin: 0; }
.pdo-single-product .pdo-product-price-wrap .price { font-size: clamp(1.55rem, 2.05vw, 2rem) !important; }
.pdo-single-product .pdo-product-availability-line { margin: 11px 0 12px; }
.pdo-single-product .pdo-product-supply-plan { margin: 9px 0 13px; width: 100%; }
.pdo-single-product .pdo-product-buy-box { padding: 10px 0 0; border: 0; border-top: 1px solid #ebedef; border-radius: 0; background: transparent; }
.pdo-single-product .pdo-product-buy-box .single_add_to_cart_button { background: linear-gradient(135deg, #cba365, #b48542) !important; }
.pdo-single-product .pdo-product-buy-box .pdo-product-favorite-button { min-height: 42px; margin-top: 9px; font-size: .72rem; }
.pdo-single-product .pdo-product-advice { min-width: 0; margin-top: 10px; padding: 13px 15px; display: flex; gap: 14px; align-items: center; justify-content: space-between; background: #fbf6ee; border-radius: 9px; }
.pdo-single-product .pdo-product-advice strong { margin: 0; }
.pdo-single-product .pdo-product-advice a { color: #815a24; font-weight: 750; white-space: nowrap; }
.pdo-single-product .pdo-product-reassurance { margin-top: 10px; padding: 10px 12px; }
.pdo-single-product .pdo-product-service-strip { margin-top: 12px; }

/* Informations de la fiche : trois accordéons compacts avec une synthèse réelle. */
.pdo-single-product .pdo-product-secondary { margin-top: clamp(25px, 4vw, 42px); border-top: 0; }
.pdo-single-product .pdo-product-information { overflow: hidden; border: 1px solid #e3e6e8; border-radius: 9px; background: #fff; }
.pdo-single-product .pdo-product-information .pdo-product-detail { border: 0; border-bottom: 1px solid #e7e9eb; }
.pdo-single-product .pdo-product-information .pdo-product-detail:last-child { border-bottom: 0; }
.pdo-single-product .pdo-product-detail > summary {
  min-height: 52px;
  padding: 10px 15px;
  display: grid;
  grid-template-columns: minmax(180px, 270px) minmax(0,1fr) 20px;
  gap: 14px;
  align-items: center;
  font: inherit;
  color: var(--pdo-color-navy);
}
.pdo-single-product .pdo-product-detail__title { min-width: 0; font-size: .9rem; font-weight: 800; }
.pdo-single-product .pdo-product-detail__preview { min-width: 0; color: #69747b; font-size: .74rem; font-weight: 450; line-height: 1.42; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pdo-single-product .pdo-product-detail[open] .pdo-product-detail__preview { visibility: hidden; }
.pdo-single-product .pdo-product-detail__body { padding: 4px 16px 20px; font-size: .84rem; }
.pdo-single-product .pdo-product-detail > summary:focus-visible { outline: 2px solid #bd8f4d; outline-offset: -3px; }

/* Sections collection/similaires/pose : titre + séparateur or + rail réutilisable.
 * Les cartes <li> sont rendues par content-product.php avec leurs vrais boutons. */
.pdo-single-product .pdo-product-relations-section { --pdo-relation-cols: 6; --pdo-relation-gap: 11px; margin-top: 25px; min-width: 0; }
.pdo-single-product .pdo-product-relations-section__heading { display: flex; align-items: center; gap: 16px; margin-bottom: 11px; }
.pdo-single-product .pdo-product-relations-section__heading h2 { flex: 0 0 auto; margin: 0; font: 600 clamp(1.13rem, 1.65vw, 1.5rem)/1.2 Georgia, 'Times New Roman', serif; color: var(--pdo-color-navy); }
.pdo-single-product .pdo-product-relations-section__rule { flex: 1 1 auto; height: 1px; background: #c9a16b; }
.pdo-single-product .pdo-product-relations-section__more { flex: 0 0 auto; font-size: .73rem; font-weight: 750; text-decoration: underline; text-underline-offset: 2px; color: #25313b; }
.pdo-single-product .pdo-product-relations-section__viewport { min-width: 0; }
.pdo-single-product .pdo-product-relations-section .pdo-product-relations-grid.products {
  margin: 0 !important;
  padding: 2px 1px 8px !important;
  display: grid !important;
  grid-template-columns: none !important;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - (var(--pdo-relation-cols) - 1) * var(--pdo-relation-gap)) / var(--pdo-relation-cols));
  gap: var(--pdo-relation-gap) !important;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  list-style: none;
}
.pdo-single-product .pdo-product-relations-grid.products::before,
.pdo-single-product .pdo-product-relations-grid.products::after { content: none !important; display: none !important; }
.pdo-single-product .pdo-product-relations-grid.products > .pdo-product-card { min-width: 0; width: auto !important; margin: 0 !important; scroll-snap-align: start; border-radius: 8px; box-shadow: 0 3px 12px rgba(7,26,45,.035); }
.pdo-single-product .pdo-product-relations-grid .pdo-product-card__media { aspect-ratio: 1.5 / 1; }
.pdo-single-product .pdo-product-relations-grid .pdo-product-card__image { object-fit: cover; }
.pdo-single-product .pdo-product-relations-grid .pdo-product-card__badges { top: 6px; left: 6px; }
.pdo-single-product .pdo-product-relations-grid .pdo-product-badge { padding: 0 6px; min-height: 18px; font-size: .5rem; }
.pdo-single-product .pdo-product-relations-grid .pdo-product-card__favorite { width: 28px; height: 28px; top: 7px; right: 7px; }
.pdo-single-product .pdo-product-relations-grid .pdo-product-card__favorite .pdo-icon { width: 16px; height: 16px; }
.pdo-single-product .pdo-product-relations-grid .pdo-product-card__body { min-width: 0; padding: 8px 8px 9px; }
.pdo-single-product .pdo-product-relations-grid .pdo-product-card__brand { font-size: .57rem; letter-spacing: .02em; }
.pdo-single-product .pdo-product-relations-grid .pdo-product-card__title { min-height: 2.4em; margin: 2px 0 3px !important; font: 700 .73rem/1.2 system-ui, sans-serif !important; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.pdo-single-product .pdo-product-relations-grid .pdo-product-card__specs { min-height: 0; max-height: 2.6em; margin: 0 0 5px; font-size: .62rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pdo-single-product .pdo-product-relations-grid .pdo-product-card__meta-row { min-height: 0; }
.pdo-single-product .pdo-product-relations-grid .pdo-product-availability { font-size: .58rem; }
.pdo-single-product .pdo-product-relations-grid .pdo-product-card__price { min-height: 0; margin: 4px 0 7px; font-size: .79rem; line-height: 1.25; overflow-wrap: anywhere; }
.pdo-single-product .pdo-product-relations-grid .pdo-product-card__price .pdo-product-price-display--compact { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 4px; }
.pdo-single-product .pdo-product-relations-grid .pdo-product-card__price .pdo-product-price-display--compact strong { font-size: .83rem; }
.pdo-single-product .pdo-product-relations-grid .pdo-product-card__price .pdo-product-price-display--compact strong em { font-size: .6em; }
.pdo-single-product .pdo-product-relations-grid .pdo-product-card__price .pdo-product-price-prefix { width: 100%; font-size: .56rem; }
.pdo-single-product .pdo-product-relations-grid .pdo-product-card__actions { display: block; margin-top: auto; }
.pdo-single-product .pdo-product-relations-grid .pdo-product-card__cart { width: 100%; min-height: 34px; padding: 5px 6px !important; border: 1px solid #c8a676 !important; border-radius: 5px !important; background: #fff !important; color: #674b25 !important; font-size: .64rem !important; font-weight: 760 !important; gap: 4px; }
.pdo-single-product .pdo-product-relations-grid .pdo-product-card__cart--options { background: #fbf8f3 !important; }
.pdo-single-product .pdo-product-relations-grid .pdo-product-card__cart .pdo-icon { width: 14px; height: 14px; }
.pdo-single-product .pdo-product-relations-grid .pdo-product-card__favorite-label { display: none !important; }
.pdo-single-product .pdo-product-relations-grid .pdo-product-card a.added_to_cart { display: none !important; }
.pdo-single-product .pdo-product-relations-section .pdo-recommendations__controls[hidden] { display: none !important; }
.pdo-single-product .pdo-product-relations-section .pdo-recommendations__controls:not([hidden]) { display: flex; gap: 7px; justify-content: flex-end; margin: 0 0 7px; }
.pdo-single-product .pdo-product-relations-section .pdo-recommendations__controls button { width: 35px; height: 35px; display: grid; place-items: center; padding: 0; border: 1px solid #d5dce1; border-radius: 50%; background: #fff; color: var(--pdo-color-navy); cursor: pointer; }
.pdo-single-product .pdo-product-relations-section .pdo-recommendations__controls button[aria-disabled="true"] { opacity: .4; cursor: default; }
.pdo-single-product .pdo-product-relations-section .pdo-recommendations__controls button:focus-visible { outline: 2px solid #bd8f4d; outline-offset: 2px; }
.pdo-single-product .pdo-product-relations-section .pdo-recommendations__controls .pdo-icon { width: 16px; height: 16px; }
.pdo-single-product .pdo-product-relations-section [data-pdo-carousel-prev] .pdo-icon { transform: rotate(180deg); }

@media (max-width: 1180px) and (min-width: 901px) {
  .pdo-single-product .pdo-product-top { grid-template-columns: minmax(0,.92fr) minmax(390px,1.08fr); }
  .pdo-single-product .pdo-product-gallery-shell .woocommerce-product-gallery__image img { max-height: 510px; }
}
@media (max-width: 900px) {
  .pdo-single-product .pdo-product-top { display: flex; gap: 18px; }
  .pdo-single-product .pdo-product-purchase-panel { padding: 14px; }
  .pdo-single-product .pdo-product-advice { display: flex; }
  .pdo-single-product .pdo-product-relations-section { --pdo-relation-cols: 3; --pdo-relation-gap: 10px; margin-top: 22px; }
  .pdo-single-product .pdo-product-detail > summary { grid-template-columns: minmax(130px, 39%) minmax(0,1fr) 20px; min-height: 49px; font-family: inherit; font-size: inherit; }
  .pdo-single-product .pdo-product-detail__preview { font-size: .69rem; }
}
@media (max-width: 620px) {
  .pdo-single-product .pdo-product-relations-section { --pdo-relation-cols: 2; --pdo-relation-gap: 8px; }
  .pdo-single-product .pdo-product-relations-section__heading { gap: 9px; }
  .pdo-single-product .pdo-product-relations-section__heading h2 { font-size: 1.04rem; }
  .pdo-single-product .pdo-product-relations-section__more { max-width: 110px; font-size: .65rem; }
  .pdo-single-product .pdo-product-detail > summary { grid-template-columns: minmax(0,1fr) 20px; gap: 7px; }
  .pdo-single-product .pdo-product-detail__preview { grid-column: 1 / -1; grid-row: 2; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .pdo-single-product .pdo-product-detail > summary > .pdo-icon { grid-column: 2; grid-row: 1; }
  .pdo-single-product .pdo-product-advice { flex-direction: column; align-items: flex-start; gap: 5px; }
  .pdo-single-product .pdo-product-relations-grid .pdo-product-card__body { padding: 8px 7px; }
}
@media (prefers-reduced-motion: reduce) {
  .pdo-single-product .pdo-product-relations-grid .pdo-product-card { transition: none; }
}
