/* ==========================================================================
   Fiche produit WooCommerce — design Pharmacos (maquette BOOST UP)
   La couleur d'accent --pdp-accent est définie produit par produit.
   ========================================================================== */
.pdp .pb-btn--rose { background: var(--pdp-accent); }
.pdp .pb-eyebrow--rose { color: var(--pdp-accent); }
.pdp .pb-eyebrow--rose::before { background: var(--pdp-accent); }
.pdp .pb-badge--rose { background: var(--pdp-accent); color: #fff; }

/* ---- Galerie (galerie native WooCommerce, habillée) ---- */
.pdp-gallery { position: relative; min-width: 0; }
.pdp-gallery .onsale { position: absolute; top: 20px; left: 20px; z-index: 6; margin: 0; background: var(--pdp-accent); color: #fff; }
.pdp-gallery .pdp-gallery__caption { position: absolute; top: 20px; right: 20px; left: auto; bottom: auto; z-index: 6; max-width: 55%; }
.pdp .woocommerce-product-gallery { float: none !important; width: 100% !important; margin: 0 !important; }
.pdp .woocommerce-product-gallery__wrapper,
.pdp .woocommerce-product-gallery .flex-viewport {
  border-radius: 28px; overflow: hidden;
  background: linear-gradient(160deg, #f7e1ea, #f2eef0);
  background: linear-gradient(160deg, color-mix(in srgb, var(--pdp-accent) 14%, #fff), #f2eef0);
}
.pdp .woocommerce-product-gallery__image img { width: 100%; height: auto; padding: 6%; box-sizing: border-box; object-fit: contain; }
.pdp .woocommerce-product-gallery__trigger { top: auto; bottom: 16px; right: 16px; z-index: 6; }
.pdp .flex-control-thumbs { display: flex; flex-wrap: wrap; gap: 12px; margin: 14px 0 0; padding: 0; list-style: none; }
.pdp .flex-control-thumbs li { width: 78px; float: none; margin: 0; }
.pdp .flex-control-thumbs li img { width: 78px; height: 78px; box-sizing: border-box; object-fit: contain; background: var(--pb-mint-100); border-radius: 16px; padding: 8px; border: 2px solid transparent; opacity: .75; cursor: pointer; }
.pdp .flex-control-thumbs li img.flex-active,
.pdp .flex-control-thumbs li img:hover { opacity: 1; border-color: var(--pb-green); }

/* ---- Colonne d'achat ---- */
.pdp-info { min-width: 0; }
.pdp .pdp-title { font-family: var(--font-body); font-weight: 800; text-transform: uppercase; letter-spacing: -.02em; font-size: clamp(44px, 5.6vw, 80px); line-height: .95; color: var(--pb-dark-green); margin-top: 14px; }
.pdp .pdp-title .accent { color: var(--pdp-accent); }
.pdp .pdp-desc p { margin: 0; }
.pdp-rating a { color: inherit; text-decoration: underline; }
.pdp-rating .stock.is-out { color: #b32d2e; }
.pdp-price-box { padding: 20px 26px; }
.pdp-price-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.woocommerce div.product .pdp-price-box p.price, .woocommerce div.product .pdp-price-box span.price { margin: 0; font-family: var(--font-display); font-size: clamp(34px, 3.6vw, 48px); color: var(--pb-dark-green); line-height: 1.1; }
.pdp-price-box .price del { font-size: .5em; color: var(--pb-muted); font-weight: 400; margin-right: 8px; }
.pdp-price-box .price ins { text-decoration: none; }
.pdp-price-box .save { display: inline-block; background: var(--pdp-accent); color: #fff; font-size: 11px; font-weight: 700; padding: 5px 12px; border-radius: 999px; letter-spacing: .04em; }
.pdp-program-head { margin-top: 26px; }
.pdp-program-head h4 { font-family: var(--font-body); font-size: 17px; font-weight: 700; margin: 0; }

/* Formulaire d'achat (quantité, panier, acheter maintenant) */
.pdp-buy { margin-top: 18px; }
.pdp-buy form.cart, .pdp-buy .woocommerce-variation-add-to-cart { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 0; width: 100%; }
.pdp-buy .quantity { display: inline-flex; align-items: center; gap: 4px; background: #fff; border: 1px solid var(--pb-border); border-radius: 999px; padding: 6px 8px; margin: 0; }
.pdp-buy .quantity input.qty { width: 44px; height: 36px; border: 0; background: transparent; text-align: center; font: inherit; font-weight: 700; padding: 0; -moz-appearance: textfield; box-shadow: none; }
.pdp-buy .quantity input.qty::-webkit-outer-spin-button, .pdp-buy .quantity input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pb-qty-btn { width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--pb-mint-100); color: var(--pb-dark-green); font-size: 18px; line-height: 1; font-weight: 700; cursor: pointer; padding: 0; }
.pb-qty-btn:hover { background: var(--pb-green); }
.pdp .pdp-buy form.cart .single_add_to_cart_button:not(.pb-buy-now) { flex: 1 1 220px; min-height: 56px; background: var(--pb-dark-green); color: #fff; }
.pdp .pdp-buy form.cart .single_add_to_cart_button:not(.pb-buy-now):hover { background: var(--pb-dark-green-2); color: #fff; }
.pdp .pdp-buy form.cart .single_add_to_cart_button.pb-buy-now { flex: 1 1 100%; min-height: 56px; background: var(--pdp-accent); color: #fff; }
.pdp .pdp-buy form.cart .single_add_to_cart_button.pb-buy-now:hover { filter: brightness(.92); color: #fff; }
.pdp .pdp-buy .single_add_to_cart_button.disabled, .pdp .pdp-buy .single_add_to_cart_button:disabled { opacity: .45; cursor: not-allowed; }
.pdp-buy .stock { margin: 0 0 8px; }

/* Variations (ex. programme 1 / 3 / 6 mois) → cartes sélectionnables */
.pdp-buy table.variations { width: 100%; border: 0; margin: 14px 0 6px; }
.pdp-buy table.variations th.label { display: none; }
.pdp-buy table.variations td.value { display: block; padding: 0; }
.pdp-buy .reset_variations { display: inline-block; margin-top: 8px; font-size: 12.5px; color: var(--pb-muted); }
.pdp-buy .single_variation_wrap { width: 100%; }
.pdp-buy .woocommerce-variation-price { margin: 8px 0 14px; }
.woocommerce div.product .pdp-buy .woocommerce-variation-price span.price { font-size: 22px; }
.pb-swatches { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 14px; }
.pb-swatch { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: #fff; border: 1px solid var(--pb-border); border-radius: 16px; padding: 18px 10px; text-align: center; font: inherit; color: var(--pb-dark-green); cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease; }
.pb-swatch b { font-size: 16px; }
.pb-swatch__price { color: var(--pdp-accent); font-weight: 700; font-size: 14px; }
.woocommerce div.product .pb-swatch__price span.price, .woocommerce div.product .pb-swatch__price p.price { font-family: var(--font-body); font-size: 14px; font-weight: 700; color: var(--pdp-accent); }
.pb-swatch__price del { color: var(--pb-muted); font-weight: 400; font-size: 12px; margin-right: 4px; }
.pb-swatch__price ins { text-decoration: none; }
.pb-swatch:hover { border-color: var(--pb-green); }
.pb-swatch.is-selected { border-color: var(--pb-green); box-shadow: 0 0 0 1px var(--pb-green); }
.pb-swatch.is-selected::after { content: "✓"; position: absolute; top: 8px; right: 8px; width: 20px; height: 20px; border-radius: 50%; background: var(--pb-green); color: var(--pb-dark-green); font-size: 12px; display: flex; align-items: center; justify-content: center; }
.pb-swatch[hidden] { display: none; }
.pb-hidden-select { position: absolute !important; opacity: 0; pointer-events: none; width: 1px; height: 1px; overflow: hidden; }

/* Bande de bénéfices */
.pdp-benefits-strip .ico svg { width: 20px; height: 20px; }

/* Onglets déroulants & FAQ */
.pdp-accordion { margin-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.pdp-acc, .pdp-faq__item { background: var(--pb-white); border-radius: 16px; overflow: hidden; }
.pdp-acc summary, .pdp-faq__item summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 18px 22px; font-weight: 700; color: var(--pb-dark-green); font-size: 14.5px; }
.pdp-acc summary::-webkit-details-marker, .pdp-faq__item summary::-webkit-details-marker { display: none; }
.pdp-acc .n, .pdp-faq__item .n { background: var(--pb-mint-100); color: var(--pb-green-dark); width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; flex: none; }
.pdp-acc .t, .pdp-faq__item .t { flex: 1; }
.pm { position: relative; width: 14px; height: 14px; flex: none; }
.pm::before, .pm::after { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 2px; background: var(--pb-green); transition: transform .2s ease; }
.pm::after { transform: rotate(90deg); }
details[open] > summary .pm::after { transform: rotate(0deg); }
.pdp-acc__body, .pdp-faq__item .a { padding: 0 22px 20px; color: var(--pb-text-soft); font-size: 14.5px; line-height: 1.6; }
.pdp-acc__body p + p, .pdp-faq__item .a p + p { margin-top: 10px; }
.pdp-faq__item { margin-bottom: 14px; border: 1px solid transparent; }
.pdp-faq__item[open] { background: color-mix(in srgb, var(--pdp-accent) 8%, #fff); border-color: var(--pdp-accent); }
.pdp-faq__item[open] .n { background: var(--pdp-accent); color: #fff; }

/* Avis WooCommerce → cartes */
.pdp-reviews #reviews { margin-top: 0; }
.pdp-reviews .woocommerce-Reviews-title { display: none; }
.pdp-reviews ol.commentlist { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; list-style: none; margin: 0 0 28px; padding: 0; }
.pdp-reviews ol.commentlist li { margin: 0; padding: 0; list-style: none; }
.pdp-reviews ol.commentlist li .comment_container { height: 100%; background: #fff; border: 1px solid var(--pb-border); border-radius: 28px; padding: 28px; }
.pdp-reviews ol.commentlist li img.avatar { display: none; }
.pdp-reviews ol.commentlist li .comment-text { display: flex; flex-direction: column; margin: 0 !important; padding: 0 !important; border: 0 !important; }
.pdp-reviews .comment-text .star-rating { order: 1; float: none; margin: 0 0 14px; color: var(--pb-star); }
.pdp-reviews .comment-text .description { order: 2; font-size: 15px; }
.pdp-reviews .comment-text .meta { order: 3; margin: 18px 0 0; font-size: 13px; color: var(--pb-muted); }
.pdp-reviews .comment-text .meta strong { color: var(--pb-dark-green); }
.pdp-reviews #review_form_wrapper { background: #fff; border-radius: 28px; padding: 28px; margin-top: 8px; }
.pdp-reviews .comment-reply-title { font-family: var(--font-display); font-size: 26px; color: var(--pb-dark-green); }
.pdp-reviews .woocommerce-noreviews { background: #fff; border-radius: 16px; padding: 18px 22px; }
.pdp-reviews #respond input[type="text"], .pdp-reviews #respond input[type="email"], .pdp-reviews #respond textarea { width: 100%; border: 1px solid var(--pb-border); border-radius: 12px; padding: 12px 14px; font: inherit; }

@media (max-width: 980px) {
  .pdp-reviews ol.commentlist { grid-template-columns: repeat(2, 1fr); }
  .pdp-gallery .pdp-gallery__caption { max-width: 60%; }
}
@media (max-width: 640px) {
  .pdp-reviews ol.commentlist { grid-template-columns: 1fr; }
  .pb-swatches { grid-template-columns: repeat(2, 1fr); }
  .pdp-gallery .pdp-gallery__caption { display: none; }
}
