/* Fiche produit (lib/product-page.js). Les jetons (couleurs, polices) viennent de chronicles.css. */

.pdp-crumb{max-width:1120px}
.pdp{max-width:1120px;margin:0 auto;padding:0 1.5rem}

/* ── Haut de fiche : bouteille + bloc d'achat ── */
.pdp-top{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:4.5rem;align-items:start;padding:1.8rem 0 4rem;border-bottom:1px solid var(--cream-d)}
/* La bouteille démarre en haut de la fiche puis reste à mi-hauteur d'écran pendant qu'on lit le bloc d'achat.
   Le bloc porte le crème de la page. */
.pdp-media{position:sticky;top:max(5.5rem,calc(50vh - 290px));background:var(--cream-l);display:flex;align-items:center;justify-content:center;padding:0 2rem}
.pdp-media img{height:100%;max-height:540px;width:auto}
/* La bouteille posée sur sa feuille de papier froissé (même traitement que la page dégustation et les pages
   domaine) : la feuille est une image transparente, seuls ses plis apparaissent sur le crème. */
.pdp-visual{--floor:2rem;position:relative;display:flex;align-items:flex-end;justify-content:center;width:min(100%,340px);height:540px;padding:4.4rem 0 var(--floor)}
.pdp-visual::after{content:'';position:absolute;z-index:0;left:-15.5%;top:3.5%;width:131%;height:96.5%;background:var(--papier,url('/assets/images/papier/feuille-1.webp')) center/100% 100% no-repeat;pointer-events:none}
.pdp-visual::before{content:'';position:absolute;z-index:1;left:50%;bottom:calc(var(--floor) - 8px);width:min(42%,130px);height:16px;transform:translateX(-50%);background:radial-gradient(closest-side,rgba(40,28,18,.42),rgba(40,28,18,0));filter:blur(1.5px);pointer-events:none}
.pdp-media .pdp-visual img{position:relative;z-index:2;height:100%;max-height:none;width:auto;object-fit:contain;filter:drop-shadow(0 1px 1px rgba(40,28,18,.3)) drop-shadow(10px 8px 12px rgba(70,52,34,.17))}

.pdp-eyebrow{font-size:.7rem;letter-spacing:.2em;text-transform:uppercase;color:var(--bdx);margin:0 0 .9rem}
.pdp-title{font-family:var(--fd);font-weight:300;font-style:italic;font-size:clamp(2.2rem,4vw,3.3rem);line-height:1.08;color:var(--charbon);margin:0 0 .8rem;text-wrap:balance}
.pdp-sub{font-size:.88rem;color:var(--gris);margin:0 0 1.6rem;line-height:1.6}
.pdp-scores{display:flex;gap:2rem;margin:0 0 1.8rem;padding:1.1rem 0;border-top:1px solid var(--cream-d);border-bottom:1px solid var(--cream-d)}
.pdp-scores .score-it{text-align:left}

.pdp-price-row{display:flex;align-items:baseline;justify-content:space-between;gap:1rem;flex-wrap:wrap;margin:0 0 1.2rem}
.pdp-price{font-family:var(--fd);font-size:2.4rem;line-height:1;color:var(--charbon);margin:0;font-variant-numeric:tabular-nums}
.pdp-price span{font-family:var(--fb);font-size:.72rem;letter-spacing:.04em;color:var(--gris);margin-left:.35rem}
.pdp-status{display:flex;align-items:center;gap:.5rem;font-size:.72rem;letter-spacing:.14em;text-transform:uppercase;color:var(--charbon);margin:0}
.pdp-status::before{content:'';width:7px;height:7px;border-radius:50%;background:var(--or);flex:none}
.pdp-status--low::before{background:var(--bdx)}
.pdp-status--pre::before{background:transparent;border:1.5px solid var(--bdx)}
.pdp-status--out{color:var(--gris)}
.pdp-status--out::before{background:var(--gris-l)}

.pdp-form{display:flex;gap:.7rem;margin:0 0 1.6rem}
.pdp-qty{display:flex;align-items:stretch;border:1px solid var(--cream-d);background:var(--cream-l)}
.pdp-qty-btn{width:2.8rem;border:0;background:transparent;font-size:1.1rem;color:var(--charbon);cursor:pointer;transition:color var(--e)}
.pdp-qty-btn:hover{color:var(--bdx)}
.pdp-qty input{width:2.6rem;border:0;background:transparent;text-align:center;font:500 .95rem var(--fb);color:var(--charbon);-moz-appearance:textfield;appearance:textfield}
.pdp-qty input::-webkit-outer-spin-button,.pdp-qty input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.pdp-cta{flex:1;display:inline-flex;align-items:center;justify-content:center;min-height:3.3rem;padding:0 1.8rem;border:0;background:var(--bdx);color:var(--cream-l);font:400 .72rem var(--fb);letter-spacing:.18em;text-transform:uppercase;text-decoration:none;cursor:pointer;transition:background var(--e)}
.pdp-cta:hover{background:var(--bdx-d);color:var(--cream-l)}
.pdp-cta--alt{width:100%;margin-bottom:1.6rem}
.pdp-qty-btn:focus-visible,.pdp-qty input:focus-visible,.pdp-cta:focus-visible{outline:2px solid var(--bdx);outline-offset:3px}
.pdp-out{font-size:.9rem;color:var(--gris);margin:0 0 1rem}

.pdp-reassure{list-style:none;margin:0 0 1.6rem;padding:0;border-top:1px solid var(--cream-d)}
.pdp-reassure li{padding:.85rem 0;border-bottom:1px solid var(--cream-d);font-size:.82rem;line-height:1.6;color:var(--gris)}
.pdp-reassure li::before{content:none}
.pdp-reassure strong{display:block;font-weight:400;font-size:.68rem;letter-spacing:.16em;text-transform:uppercase;color:var(--charbon);margin-bottom:.2rem}
.pdp-reassure a{color:var(--bdx);text-decoration:underline;text-underline-offset:2px}

.pdp-facts{display:grid;grid-template-columns:1fr 1fr;gap:1.1rem 1.5rem;margin:0}
.pdp-facts .wide{grid-column:1 / -1}
.pdp-facts dt{font-size:.68rem;letter-spacing:.16em;text-transform:uppercase;color:var(--gris);margin-bottom:.15rem}
.pdp-facts dd{margin:0;font-size:.86rem;font-weight:500;color:var(--charbon)}

/* ── Corps de fiche (typographie de .art-body) : dans la colonne de droite, sous le bloc d'achat,
   pour que la bouteille reste à côté pendant toute la lecture. ── */
.pdp-body{margin-top:2.8rem;padding-top:2.8rem;border-top:1px solid var(--cream-d)}
.pdp-body>h2:first-child{margin-top:0}

/* ── Autres cuvées ── */
.pdp-related{padding:3.5rem 0 5rem}
.pdp-related h2{font-family:var(--fd);font-weight:300;font-size:clamp(1.6rem,3vw,2.1rem);color:var(--charbon);margin:0 0 2rem;text-align:center}
.pdp-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:2px;background:var(--cream-d);border:2px solid var(--cream-d)}
.pdp-card{position:relative;background:var(--cream-l);padding:2.2rem 1.5rem 1.8rem;text-align:center;transition:background var(--e)}
.pdp-card:hover{background:#fff}
.pdp-card img{height:200px;width:auto;margin:0 auto 1.4rem;display:block}
.pdp-card-visual{--floor:.9rem;position:relative;display:flex;align-items:flex-end;justify-content:center;width:150px;height:240px;margin:0 auto 1.4rem;padding:2.2rem 0 var(--floor)}
.pdp-card-visual::after{content:'';position:absolute;z-index:0;left:-15.5%;top:3.5%;width:131%;height:96.5%;background:var(--papier) center/100% 100% no-repeat;pointer-events:none}
.pdp-card .pdp-card-visual img{position:relative;z-index:1;height:100%;margin:0;filter:drop-shadow(0 1px 1px rgba(40,28,18,.25)) drop-shadow(6px 5px 8px rgba(70,52,34,.15))}
.pdp-card-dom{font-size:.66rem;letter-spacing:.18em;text-transform:uppercase;color:var(--gris);margin:0 0 .4rem}
.pdp-card-name{font-family:var(--fd);font-weight:400;font-style:italic;font-size:1.35rem;line-height:1.2;margin:0 0 .4rem}
.pdp-card-name a{color:var(--charbon);text-decoration:none}
.pdp-card-name a::after{content:'';position:absolute;inset:0}
.pdp-card-name a:focus-visible{outline:none}
.pdp-card:focus-within{outline:2px solid var(--bdx);outline-offset:-2px}
.pdp-card-cep{font-size:.8rem;color:var(--gris);margin:0 0 .9rem}
.pdp-card-price{font-family:var(--fd);font-size:1.35rem;color:var(--charbon);margin:0}
.pdp-card-price span{display:block;font-family:var(--fb);font-size:.66rem;letter-spacing:.14em;text-transform:uppercase;color:var(--bdx);margin-top:.35rem}
.pdp-all{text-align:center;margin:2rem 0 0}
.pdp-all a{font-size:.72rem;letter-spacing:.16em;text-transform:uppercase;color:var(--charbon);text-decoration:none;border-bottom:1px solid var(--cream-d);padding-bottom:.3rem;transition:border-color var(--e),color var(--e)}
.pdp-all a:hover{color:var(--bdx);border-color:var(--bdx)}

/* ── Barre d'achat fixe (mobile) ── */
.pdp-sticky{display:none}

@media(max-width:860px){
  .pdp-top{grid-template-columns:1fr;gap:1.6rem;padding:1rem 0 3rem}
  .pdp-media{position:static;padding:1.2rem 1rem}
  .pdp-media img{height:230px}
  .pdp-visual{--floor:1.3rem;width:220px;height:340px;padding-top:3rem}
  .pdp-scores{gap:1.4rem}
  .pdp-body{margin-top:2.2rem;padding-top:2.2rem}
  .pdp-sticky:not([hidden]){display:flex;align-items:center;gap:1rem;position:fixed;left:0;right:0;bottom:var(--cookie-h,0px);z-index:60;padding:.7rem 1rem calc(.7rem + env(safe-area-inset-bottom));background:var(--cream-l);border-top:1px solid var(--cream-d);box-shadow:0 -6px 18px rgba(20,16,12,.06)}
  .pdp-sticky-info{display:flex;flex-direction:column;min-width:0;flex:1}
  .pdp-sticky-name{font-family:var(--fd);font-style:italic;font-size:1.05rem;color:var(--charbon);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .pdp-sticky-price{font-size:.8rem;color:var(--gris);font-variant-numeric:tabular-nums}
  .pdp-sticky .pdp-cta{flex:none;min-height:2.9rem;padding:0 1.4rem}
  .pdp-page footer{padding-bottom:5rem}
}
@media(max-width:600px){
  .pdp{padding:0 1rem}
  .pdp-crumb{margin-top:5.5rem}
  .pdp-title{font-size:2.1rem;margin-bottom:.5rem}
  .pdp-sub{margin-bottom:1.1rem}
  .pdp-scores{margin-bottom:1.2rem;padding:.8rem 0}
  .pdp-facts{grid-template-columns:1fr 1fr}
  .pdp-cards{grid-template-columns:1fr 1fr}
  .pdp-card{padding:1.6rem .8rem 1.4rem}
  .pdp-card img{height:150px}
  .pdp-card-visual{width:112px;height:180px;padding-top:1.6rem}
  .pdp-card .pdp-card-visual img{height:100%}
}
@media(prefers-reduced-motion:reduce){.pdp *{transition:none!important}}

/* ── Lien domaine dans l'en-tête de fiche, visuel domaine (fiches sans bouteille) ── */
.pdp-eyebrow a{color:inherit;text-decoration:none;border-bottom:1px solid transparent;transition:border-color var(--e)}
.pdp-eyebrow a:hover{border-color:currentColor}
.pdp-media--domaine{flex-direction:column;gap:1rem;margin:0;padding:0}
.pdp-media--domaine img{width:100%;height:auto;max-height:none;object-fit:cover;aspect-ratio:4/5}
.pdp-media--domaine figcaption{font-size:.72rem;letter-spacing:.14em;text-transform:uppercase;color:var(--gris)}
.pdp-card img.pdp-card-logo{height:110px;margin:45px auto 45px}
@media(max-width:860px){.pdp-media--domaine img{aspect-ratio:3/2;height:auto}}
@media(max-width:600px){.pdp-card img.pdp-card-logo{height:80px;margin:35px auto}}
