/* 22/11/2026 — inc/pdp-rooms.php */
/* Badges accrochés à la première photo : ils défilent avec elle */
body .pdp__slide { position:relative; }
body .pdp__slide > .fy-product-flags { position:absolute; top:10px; left:10px; z-index:3; }
/* « Recommandé pour » */
body .ticks .fy-rooms strong { font-weight:700; color:#111; }
body .ticks .fy-rooms .fy-rooms__m2 { white-space:nowrap; }

/* 22/11 : points forts mis en valeur (« on voit rien ») : encadré vert clair, coches vertes, texte en gras */
body .pdp__info .ticks.ticks--compact { margin:16px 0 20px; padding:14px 16px; gap:11px; background:#f1f8ee; border:1px solid #d3e8cc; border-left:4px solid #23743d; }
body .pdp__info .ticks.ticks--compact > li { display:flex; align-items:flex-start; gap:10px; font-size:15.5px; line-height:1.4; font-weight:600; color:#111; }
body .pdp__info .ticks.ticks--compact > li:not(:has(.ticks__icon))::before { content:""; flex:none; width:22px; height:22px; margin-top:-1px; border-radius:50%;
  background:#23743d url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4L18 8'/%3E%3C/svg%3E") center/14px no-repeat; }
body .pdp__info .ticks.ticks--compact .ticks__icon { width:22px; height:22px; min-width:22px; margin-top:-1px; background:#23743d !important; }
body .pdp__info .ticks.ticks--compact .ticks__icon svg { width:14px; height:14px; }
body .pdp__info .ticks.ticks--compact > li strong { font-weight:800; }
body .pdp__info .ticks.ticks--compact > li.fy-rooms span:not(.ticks__icon) { font-weight:600; }
/* « Recommandé pour » en plus des 4 points forts (la liste en montrait 4 au maximum) */
body .pdp__info .ticks.ticks--compact:has(.fy-rooms) > li:nth-child(5) { display:flex; }

/* « En stock » façon NotreJardinPropre : point vert qui pulse + texte gras */
body .pdp__info .buybox__stock:not(:has(.fy-scarcity)) { display:flex; align-items:center; gap:9px; color:#23743d; font-size:15px; font-weight:700; }
body .pdp__info .buybox__stock:not(:has(.fy-scarcity))::before { content:""; position:relative; flex:0 0 10px; width:10px; height:10px; border-radius:50%; background:currentColor;
  box-shadow:0 0 0 0 rgb(35 116 61 / 45%); animation:fyStockPulse 1.6s ease-out infinite; }
@keyframes fyStockPulse { 0% { box-shadow:0 0 0 0 rgb(35 116 61 / 45%); } 100% { box-shadow:0 0 0 9px rgb(35 116 61 / 0%); } }
@media (prefers-reduced-motion:reduce) { body .pdp__info .buybox__stock:not(:has(.fy-scarcity))::before { animation:none; } }
body .pdp__info .buybox__stock:has(.stock--out) { color:#c0392b; }
body .pdp__info .buybox__stock:has(.stock--out)::before { animation:none; }
body .pdp__info .buybox__stock .stock { font-size:inherit; font-weight:inherit; color:inherit; }

/* =========================================================
   22/11 (suite) : galerie mobile pleine largeur + points façon Amazon + menu Quantité
   ========================================================= */
@media (max-width:749px) {
  body .pdp__gallery { width:100vw; max-width:100vw; margin-left:calc(50% - 50vw); margin-right:0; }
  body .pdp__gallery .pdp__stage { gap:0; padding:0 !important; margin:0 !important; width:100% !important; scroll-padding:0; }
  body .pdp__gallery .pdp__slide { flex:0 0 100% !important; width:100% !important; scroll-snap-align:start; }
  body .pdp__gallery .pdp__slide > .fy-product-flags { left:16px; }
}
.fy-gdots { display:flex; justify-content:center; align-items:center; gap:7px; height:22px; margin:10px 0 4px; }
.fy-gdots span { width:9px; height:9px; border-radius:50%; background:#c9c9c9; transition:transform .2s, background .2s; }
.fy-gdots span.is-on { background:#111; transform:scale(1.15); }
.fy-gdots span.is-near { transform:scale(1); }
.fy-gdots span.is-far { transform:scale(.65); }
.fy-gdots span.is-hidden { display:none; }
@media (min-width:750px) { .fy-gdots { display:none; } }

/* Quantité : « Quantité : 1 ⌄ » (style Amazon) */
body .pdp__info [data-qty].fy-qty-hidden { position:absolute !important; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); }
.fy-qsel { position:relative; display:flex; align-items:center; gap:6px; width:100%; height:52px; margin:0 0 12px; padding:0 48px 0 18px; box-sizing:border-box;
  border:2px solid #8d8d8d; border-radius:12px; background:#fff; box-shadow:inset 0 0 0 2px #fff, 0 0 0 1px #e2e2e2; font-size:17px; color:#111; cursor:pointer; }
.fy-qsel__k { font-weight:400; }
.fy-qsel__v { font-weight:600; }
.fy-qsel svg { position:absolute; right:16px; top:50%; width:22px; height:22px; margin-top:-11px; fill:none; stroke:#111; stroke-width:2.4; stroke-linecap:round; stroke-linejoin:round; pointer-events:none; }
.fy-qsel select { position:absolute; inset:0; width:100%; height:100%; opacity:0; cursor:pointer; font-size:16px; }
.fy-qsel:focus-within { border-color:#111; }

/* Prix façon Amazon (assets/pdp-mobile.js, price()) : -X% rouge | prix en gros, centimes en exposant | Ancien prix barré */
body .pdp__info .price--xl.fy-amzp-src { position:absolute !important; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); margin:0; }
.fy-amzp { margin:10px 0 6px; }
.fy-amzp__row { display:flex; align-items:flex-start; gap:12px; line-height:1; }
.fy-amzp__pct { color:#cc0c39; font-size:30px; font-weight:300; line-height:1; padding-top:3px; letter-spacing:-.01em; }
.fy-amzp__price { display:inline-flex; align-items:flex-start; color:#0f1111; font-weight:500; }
.fy-amzp__int { font-size:38px; line-height:1; letter-spacing:-.02em; }
.fy-amzp__dec { font-size:16px; line-height:1; margin:3px 0 0 1px; }
.fy-amzp__cur { font-size:16px; line-height:1; margin:3px 0 0 2px; }
.fy-amzp__list { margin:8px 0 0; color:#565959; font-size:14.5px; }
.fy-amzp__list s { color:#565959; }
/* Livraison sous le prix (assets/delivery-date.js, underPrice()) */
.fy-amzp__del { margin:10px 0 0; color:#0f1111; font-size:16px; line-height:1.4; }
.fy-amzp__del strong { font-weight:700; }
.fy-amzp__left { color:#067d62; font-weight:600; }

/* 22/11 : note de la fiche produit plus petite (étoiles 25 -> 17 px, texte 20 -> 15 px) */
body .pdp__info .fy-review-link { font-size:15px !important; gap:4px 8px !important; }
body .pdp__info .fy-review-link .fy-stars { width:auto !important; height:auto !important; }
body .pdp__info .fy-review-link .fy-stars::before { font-size:17px !important; line-height:17px !important; }
body .pdp__info .fy-review-link * { font-size:15px !important; }
body .pdp__info .fy-review-link .fy-stars, body .pdp__info .fy-review-link .fy-stars * { font-size:0 !important; }

/* 22/11 (retouche) : « En stock » sans point, juste plus gros ; points forts sans encadré coloré */
body .pdp__info .buybox__stock:not(:has(.fy-scarcity))::before { content:none !important; display:none !important; animation:none !important; }
body .pdp__info .buybox__stock:not(:has(.fy-scarcity)) { font-size:20px; font-weight:700; color:#23743d; }
body .pdp__info .ticks.ticks--compact { padding:0; background:none; border:0; }
/* 22/11 : livraison + décompte sur une seule ligne */
.fy-amzp__del { white-space:nowrap; font-size:16px; letter-spacing:-.01em; }

/* 22/11 : « X personnes ont commandé aujourd'hui » à droite du prix, sans fond ni cadre */
body .fy-amzp__row .fy-orders-today--inline { display:flex !important; flex-direction:column; align-items:flex-end; gap:4px; margin:0 0 0 auto !important; padding:0 !important;
  background:none !important; border:0 !important; box-shadow:none !important; max-width:150px; text-align:right; }
body .fy-orders-today--inline .fy-orders-today__dot { display:none !important; }
body .fy-orders-today--inline .fy-orders-today__avatars { display:flex; margin:0; }
body .fy-orders-today--inline .fy-orders-today__avatars > span { width:26px !important; height:26px !important; margin-left:-7px !important; border:2px solid #fff; border-radius:50%; overflow:hidden; }
body .fy-orders-today--inline .fy-orders-today__avatars > span:first-child { margin-left:0 !important; }
body .fy-orders-today--inline .fy-orders-today__avatars img { width:100% !important; height:100% !important; object-fit:cover; display:block; }
body .fy-orders-today--inline .fy-orders-today__text { font-size:12px !important; line-height:1.3 !important; color:#333 !important; }
body .fy-orders-today--inline .fy-orders-today__text strong { color:#23743d; font-weight:800; }
body .fy-amzp__row .fy-orders-today--inline { flex:0 0 auto; width:150px; }
body .fy-orders-today--inline .fy-orders-today__text { display:block; width:100%; white-space:normal; }
/* 22/11 : plus de bande blanche entre l'en-tête et les photos (mobile) */
@media (max-width:749px) { body .pdp { padding-top:0 !important; } }
body .fy-orders-today--inline > * { flex:none !important; height:auto !important; min-height:0 !important; }
body .fy-amzp__row .fy-orders-today--inline { height:auto !important; align-self:flex-start; }
/* 22/11 : livraison sous le prix en plus gros ; le décompte passe à la ligne s'il ne tient pas */
body .fy-amzp__del { font-size:17px !important; white-space:nowrap; line-height:1.45; }
body .fy-amzp__del.is-2l { white-space:normal; }
body .fy-amzp__del.is-2l .fy-amzp__cta { display:block; white-space:nowrap; }
/* 22/11 : bloc « personnes » un peu plus à gauche, « 41 personnes » en gras noir + chiffre vert */
body .fy-amzp__row .fy-orders-today--inline { margin-right:14px !important; }
body .fy-orders-today--inline .fy-orders-today__text strong { color:#111; font-weight:800; }
/* 22/11 : bloc « personnes » plus lisible + trait fin entre le prix et le bloc */
body .fy-amzp__row { align-items:center; }
body .fy-amzp__row .fy-orders-today--inline { align-self:center; width:158px; gap:6px; padding-left:14px !important; border-left:1px solid #dcdcdc !important; align-items:flex-start; text-align:left; }
body .fy-orders-today--inline .fy-orders-today__avatars > span { width:30px !important; height:30px !important; margin-left:-8px !important; }
body .fy-orders-today--inline .fy-orders-today__avatars > span:first-child { margin-left:0 !important; }
body .fy-orders-today--inline .fy-orders-today__text { font-size:13.5px !important; line-height:1.3 !important; color:#111 !important; }
body .fy-amzp__row .fy-orders-today--inline { border-radius:0 !important; width:166px; margin-right:0 !important; }
body .fy-orders-today--inline .fy-orders-today__text { font-size:13px !important; }
body .fy-amzp__row .fy-orders-today--inline { max-width:none !important; flex:0 0 166px !important; }
/* 22/11 : livraison = une seule phrase qui s'enroule naturellement (plus de retour à la ligne forcé) */
body .fy-amzp__del, body .fy-amzp__del.is-2l { white-space:normal !important; }
body .fy-amzp__del .fy-amzp__cta, body .fy-amzp__del.is-2l .fy-amzp__cta { display:inline !important; white-space:normal !important; }
body .fy-amzp__del .fy-amzp__left, body .fy-amzp__del strong { white-space:nowrap; }

/* =========================================================
   22/11 : bas de fiche produit lisible — blocs blancs séparés par des bandes gris clair (façon Amazon)
   ========================================================= */
body .pdp__details { margin:28px 0 0; padding:8px 0; background:#f1f1f1; box-shadow:0 0 0 100vmax #f1f1f1; clip-path:inset(0 -100vmax); }
body .pdp__details .accordion { display:flex; flex-direction:column; gap:8px; border:0 !important; background:none !important; }
body .pdp__details .accordion > .fyd,
body .pdp__details .accordion > .accordion__item { margin:0 -16px; padding:6px 16px; background:#fff; border:0 !important; border-radius:0 !important; box-shadow:none !important; }
body .pdp__details .accordion > .fyd { padding-top:20px; padding-bottom:18px; }
body .pdp__details .accordion__item > summary { border:0 !important; }
/* Avis : bloc blanc précédé d'une bande grise */
body .fy-product-reviews { border-top:8px solid #f1f1f1; }
/* FAQ : fond gris très léger, questions en blanc */
body .fy-pdp-faq { background:#f7f7f7; }
body .fy-pdp-faq .accordion__item { background:#fff; }
@media (min-width:750px) {
  body .pdp__details .accordion > .fyd, body .pdp__details .accordion > .accordion__item { margin:0; padding-left:24px; padding-right:24px; }
}
body .pdp__details .accordion > .accordion__item, body .pdp__details .accordion > .fyd { background:#fff !important; }
body .pdp__details { padding:10px 0 !important; }

/* 22/11 : effet surligneur remis sur le prix de la fiche (comme les cartes) — rouge si réduit, jaune sinon */
.fy-amzp__price { padding:5px 9px 6px; background:#ffc21a; color:#111; }
.fy-amzp__row:has(.fy-amzp__pct) .fy-amzp__price { background:#d62828; color:#fff; }
.fy-amzp__row:has(.fy-amzp__pct) .fy-amzp__price * { color:#fff; }
.fy-amzp__int { font-weight:800; }
.fy-amzp__dec, .fy-amzp__cur { font-weight:700; }
.fy-amzp__pct { align-self:center; padding-top:0; }

/* 22/11 : fiche produit — badge « Black Friday » retiré de la photo -> étiquette au-dessus du prix (comme les cartes / Amazon) */
body .pdp__gallery .fy-bf-pdp-badge { display:none !important; }
body:has(.fy-bf-pdp-badge) .fy-amzp::before { content:"Offre Black Friday"; display:inline-block; margin:0 0 8px; padding:5px 10px;
  background:#d62828; color:#fff; font-family:"Inter","Helvetica Neue",Arial,sans-serif; font-size:14px; font-weight:800; line-height:1.2; border-radius:4px; }

/* 22/11 : bloc cadeau sans case (plus de cadre jaune ni de fond) */
body .fy-product-gift { border:0 !important; background:none !important; box-shadow:none !important; padding:6px 0 !important; border-radius:0 !important; }
body .fy-product-gift::before, body .fy-product-gift::after { display:none !important; }
body .fy-product-gift__img i { display:none !important; }
/* 22/11 : « + » vert remis au-dessus du cadeau (sur un fin trait), pour comprendre que c'est offert en plus */
body .pdp__info .fy-product-gift { position:relative; margin-top:26px !important; padding-top:22px !important; border-top:1px solid #e3e3e3 !important; }
body .pdp__info .fy-product-gift::before { content:"+"; display:flex !important; position:absolute; top:-17px; left:50%; transform:translateX(-50%);
  align-items:center; justify-content:center; width:34px; height:34px; border-radius:50%; background:#2f8a57; color:#fff; border:3px solid #fff;
  font:800 22px/1 "Inter",Arial,sans-serif; box-shadow:0 0 0 1px #e3e3e3; }

/* 22/11 : barre d'achat du bas — prix surligné (rouge si réduit, jaune sinon) + ancien prix barré gris sur la même ligne */
body .sticky-buy__text { display:flex !important; flex-wrap:wrap; align-items:center; column-gap:7px; row-gap:3px; min-width:0; }
body .sticky-buy__text > strong { flex:0 0 100%; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
body .sticky-buy__text [data-sticky-price] { display:inline-block; padding:3px 6px; background:#ffc21a; color:#111 !important; font-weight:800; font-size:15px; line-height:1; }
body .sticky-buy__text:has(.price__compare) [data-sticky-price] { background:#d62828; color:#fff !important; }
body .sticky-buy__text .price__compare { color:#8a8a8a !important; font-size:12.5px; font-weight:400; text-decoration:line-through; }
body .sticky-buy .btn { flex:0 0 auto !important; width:auto !important; padding:0 14px !important; font-size:15px !important; }
body .sticky-buy .btn svg { display:none !important; }
body .sticky-buy__text { flex:1 1 auto !important; }
body .sticky-buy__text [data-sticky-price] { font-size:14.5px; }

/* 22/11 : menu Quantité = fenêtre maison qui monte depuis le bas */
button.fy-qsel { font:inherit; font-size:17px; color:#111; text-align:left; cursor:pointer; -webkit-appearance:none; appearance:none; }
.fy-qsheet { position:fixed; inset:0; z-index:9999; }
.fy-qsheet__backdrop { position:absolute; inset:0; background:rgb(0 0 0 / 0%); transition:background .2s; }
.fy-qsheet.is-open .fy-qsheet__backdrop { background:rgb(0 0 0 / 45%); }
.fy-qsheet__panel { position:absolute; left:0; right:0; bottom:0; max-height:80vh; overflow:auto; background:#fff; border-radius:16px 16px 0 0;
  padding:8px 16px calc(16px + env(safe-area-inset-bottom)); transform:translateY(100%); transition:transform .22s ease-out; }
.fy-qsheet.is-open .fy-qsheet__panel { transform:translateY(0); }
.fy-qsheet__panel::before { content:""; display:block; width:40px; height:4px; margin:4px auto 10px; border-radius:2px; background:#d5d5d5; }
.fy-qsheet__head { display:flex; align-items:center; justify-content:space-between; padding:0 0 10px; border-bottom:1px solid #eee; }
.fy-qsheet__head p { margin:0; font-size:18px; font-weight:700; color:#111; }
.fy-qsheet__x { display:grid; place-items:center; width:40px; height:40px; border:0; border-radius:50%; background:#f2f2f2; cursor:pointer; }
.fy-qsheet__x svg { width:20px; height:20px; fill:none; stroke:#111; stroke-width:2.2; stroke-linecap:round; }
.fy-qsheet__list { list-style:none; margin:0; padding:0; }
.fy-qsheet__list button { display:flex; align-items:center; justify-content:space-between; width:100%; height:52px; padding:0 6px; border:0; border-bottom:1px solid #f0f0f0;
  background:none; font:inherit; font-size:18px; color:#111; cursor:pointer; }
.fy-qsheet__list button svg { width:22px; height:22px; fill:none; stroke:#2162a1; stroke-width:2.6; stroke-linecap:round; stroke-linejoin:round; visibility:hidden; }
.fy-qsheet__list button.is-on { font-weight:700; }
.fy-qsheet__list button.is-on svg { visibility:visible; }
html.fy-qsheet-lock, html.fy-qsheet-lock body { overflow:hidden; }
@media (min-width:750px) { .fy-qsheet__panel { left:50%; right:auto; width:420px; margin-left:-210px; bottom:auto; top:50%; border-radius:16px; transform:translateY(-40%); opacity:0; transition:opacity .2s, transform .2s; }
  .fy-qsheet.is-open .fy-qsheet__panel { transform:translateY(-50%); opacity:1; } }
.fy-qsheet__list button:focus { outline:none; } .fy-qsheet__list button:focus-visible { outline:2px solid #2162a1; outline-offset:-2px; } .fy-qsheet__list button.is-on { background:#f5f7fa; }

/* 22/11 : textes détaillés « Retours gratuits » et « Garantie » */
.pdp__promise-txt { color:#333; font-size:15px; line-height:1.55; }
.pdp__promise-txt p { margin:0 0 8px; }
.pdp__promise-txt ol, .pdp__promise-txt ul { margin:0 0 10px; padding-left:20px; }
.pdp__promise-txt li { margin:0 0 6px; }
.pdp__promise-txt strong { color:#111; font-weight:700; }
.pdp__promise-txt a { color:#111; text-decoration:underline; text-decoration-color:#ffc21a; text-underline-offset:3px; }
.pdp__promise .pdp__promise-txt { margin:0 0 14px 38px; } .pdp__promise .pdp__promise-txt p { margin:0 0 8px; color:#555; } .pdp__promise .pdp__promise-txt li { color:#555; }

/* 22/11 : explication sous chaque point fort (inc/tick-why.php) */
body .pdp__info .ticks .fy-tick-why { display:block; margin-top:2px; color:#5f5f5f; font-size:13.5px; font-weight:400; line-height:1.4; }
body .pdp__info .ticks.ticks--compact { gap:14px; }
/* 22/11 : ordinateur — Description / Caractéristiques / Livraison centrés et plus larges */
@media (min-width:990px) {
  body .pdp__details { width:min(100%, 1100px); max-width:none !important; margin-left:auto !important; margin-right:auto !important; }
  body .pdp__details .accordion > .fyd, body .pdp__details .accordion > .accordion__item { padding-left:40px; padding-right:40px; }
}
