.mpr-boutique,.mpr-modal{--mpr-or:var(--global-palette1,#b08a47);--mpr-fond:var(--global-palette9,#fff);--mpr-texte:var(--global-palette4,#322a4a);--mpr-violet:var(--global-palette3,#322a4a);color:var(--mpr-texte)}
.mpr-intro p{margin:0 0 .8em}
.mpr-intro{background:#fff;border:1px solid rgba(176,138,71,.25);border-left:4px solid var(--mpr-or);border-radius:16px;box-shadow:0 4px 18px rgba(0,0,0,.05);padding:26px 30px;margin:0 0 32px}
.mpr-intro p.mpr-intro-lead{font-family:'Cormorant Garamond',serif;font-size:1.55em;line-height:1.35;font-weight:600;margin:0 0 .5em}
.mpr-intro-infos{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:18px;padding-top:18px;border-top:1px solid rgba(176,138,71,.25)}
.mpr-intro-info{display:flex;align-items:center;gap:14px}
.mpr-intro-info p{margin:0!important;line-height:1.4}
.mpr-refbox{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 8px;background:#f3ecdd;border-left:4px solid var(--mpr-or);border-radius:10px;padding:14px 18px;margin:0 0 20px}
.mpr-refbox strong{font-size:1.1em}
.mpr-refbox small{flex-basis:100%;opacity:.75}
.mpr-commande-txt{font-size:1.1em;margin:0 0 6px}
.mpr-port{background:#f3ecdd;border-radius:10px;padding:12px 18px;margin:20px 0 0;display:inline-block}
@media(max-width:800px){.mpr-intro-infos{grid-template-columns:1fr}.mpr-intro{padding:20px}}
.mpr-filtres{display:flex;flex-wrap:wrap;gap:10px;margin:24px 0}
.mpr-filtres a{padding:8px 18px;border:1px solid var(--mpr-or);border-radius:999px;text-decoration:none;color:var(--mpr-or);font-weight:600}
.mpr-filtres a.actif,.mpr-filtres a:hover{background:var(--mpr-or);color:#fff}

/* Carte produit : même taille pour tous */
.mpr-carte{display:grid;grid-template-columns:240px 1fr 200px;gap:28px;align-items:start;box-sizing:border-box;height:282px;background:var(--mpr-fond);border:1px solid rgba(0,0,0,.06);border-radius:16px;box-shadow:0 4px 18px rgba(0,0,0,.06);padding:20px;margin:0 0 24px}
.mpr-media{width:240px}
.mpr-photo{width:240px;height:240px;border-radius:10px;overflow:hidden;background:#eee;cursor:pointer}
.mpr-photo img,.mpr-sans-photo{display:block;width:100%;height:100%;object-fit:cover}
.mpr-texte{display:flex;flex-direction:column;height:240px;min-width:0;overflow:hidden}
.mpr-texte h3{margin:0 0 .3em;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.mpr-texte p{margin:0 0 .6em}
.mpr-resume{flex:1;min-height:0;overflow:hidden;-webkit-mask-image:linear-gradient(#000 70%,transparent);mask-image:linear-gradient(#000 70%,transparent)}
.mpr-plus{flex:none;align-self:flex-start;background:none;border:0;padding:6px 0 0;color:var(--mpr-or);font-weight:700;font-size:.9em;cursor:pointer;text-decoration:underline}
.mpr-plus:hover{opacity:.8}
.mpr-mention{font-style:italic}
.mpr-badge{display:inline-block;padding:3px 12px;border-radius:999px;background:#eee;font-size:.85em;margin-bottom:.6em;align-self:flex-start}
.mpr-vendu{background:#e7d3d3}
.mpr-ref{font-size:.85em;opacity:.7;margin:0 0 .6em!important}
.mpr-choix-taille{width:100%;min-width:150px;padding:8px 10px;border:1px solid #bbb;border-radius:8px;background:#fff;font-size:1em;color:inherit}
.mpr-choix-label{font-size:.8em;opacity:.7;display:block;margin-bottom:4px;text-align:left;width:100%}
.mpr-achat{display:flex;flex-direction:column;align-items:center;gap:14px;align-self:stretch;justify-content:flex-start;border-left:1px solid rgba(0,0,0,.15);padding-left:20px}
.mpr-prix{font-size:1.5em;font-weight:700;margin-top:auto;text-align:center;width:100%}
.mpr-achat .mpr-bouton{margin-top:auto}
.mpr-achat .mpr-prix+.mpr-bouton{margin-top:0}
.mpr-tailles{border-collapse:collapse;font-size:.9em;margin:0 0 1em}
.mpr-tailles th,.mpr-tailles td{border:1px solid #bbb;padding:3px 10px}
.mpr-bouton{display:inline-block;background:var(--mpr-or);color:#fff!important;padding:12px 26px;border-radius:999px;font-weight:700;text-decoration:none;font-size:.9em;letter-spacing:.03em;text-align:center}
.mpr-bouton:hover{opacity:.9}
.mpr-note{font-size:.85em;opacity:.7}

/* Fenêtre « description complète » */
body.mpr-bloque{overflow:hidden}
.mpr-modal{position:fixed;inset:0;z-index:99999;background:rgba(20,16,32,.75);display:flex;align-items:center;justify-content:center;padding:16px;box-sizing:border-box;color:#322a4a}
.mpr-m-fiche{position:relative;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:28px;width:100%;max-width:980px;max-height:92vh;overflow:auto;background:#fff;border-radius:18px;padding:28px;box-sizing:border-box}
.mpr-m-fermer{position:absolute;top:10px;right:12px;width:44px;height:44px;padding:0;border:0;border-radius:50%;background:#f1ece2;color:#322a4a;display:flex;align-items:center;justify-content:center;cursor:pointer;z-index:2}
.mpr-m-fermer svg{width:18px;height:18px;display:block;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;fill:none}
.mpr-m-grande{position:relative;background:#f4f1ea;border-radius:12px;overflow:hidden;display:flex;align-items:center;justify-content:center;min-height:200px}
.mpr-m-grande img{display:block;width:100%;max-height:60vh;object-fit:contain}
.mpr-m-prec,.mpr-m-suiv{position:absolute;top:50%;transform:translateY(-50%);width:44px;height:44px;padding:0;border:0;border-radius:50%;background:rgba(255,255,255,.85);color:#322a4a;display:flex;align-items:center;justify-content:center;cursor:pointer}
.mpr-m-prec svg,.mpr-m-suiv svg{width:18px;height:18px;display:block;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;fill:none}
.mpr-m-prec{left:10px}.mpr-m-suiv{right:10px}
.mpr-m-vignettes{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.mpr-m-vignette{width:58px;height:58px;padding:0;border:2px solid transparent;border-radius:8px;overflow:hidden;background:#eee;cursor:pointer}
.mpr-m-vignette.actif,.mpr-m-vignette:hover{border-color:#b08a47}
.mpr-m-vignette img{display:block;width:100%;height:100%;object-fit:cover}
.mpr-m-texte{min-width:0;padding-right:36px}
.mpr-m-texte h3{margin:0 0 .3em;font-size:1.6em}
.mpr-m-texte p{margin:0 0 .8em}
.mpr-m-texte .mpr-choix-titre{font-weight:700;margin-bottom:.3em}
.mpr-m-texte ul{margin:0 0 1em;padding-left:1.2em}
.mpr-m-texte li{margin-bottom:.4em}
.mpr-liste-details li{font-style:italic;opacity:.8}
.mpr-liste-details li::marker{color:#b08a47}
.mpr-m-texte .mpr-prix{margin-top:0;text-align:left}

/* Page de commande */
.mpr-commande-grille{display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:start}
.mpr-boutique .mpr-coordonnees{list-style:none!important;padding:0!important;margin:22px 0!important}
.mpr-coordonnees li{list-style:none!important;margin-left:0!important;padding-left:0!important}
.mpr-coordonnees li::marker{content:none}
.mpr-coordonnees li{display:flex;align-items:center;gap:16px;margin:0 0 18px;line-height:1.35}
.mpr-ico{flex:none;display:flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:50%;background:#f3ecdd;color:#b08a47}
.mpr-ico svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.mpr-coordonnees li>div{min-width:0}
.mpr-coordonnees span{display:block;margin-bottom:2px;font-size:.72em;font-weight:700;text-transform:uppercase;letter-spacing:.1em;opacity:.7}
.mpr-coordonnees a{color:inherit;text-decoration:none}
.mpr-coordonnees a:hover{text-decoration:underline}
.mpr-carte-rdv{background:var(--mpr-violet);color:#fff;border-radius:24px;padding:36px;box-shadow:0 12px 30px rgba(0,0,0,.18)}
.mpr-carte-rdv h2{color:#fff;text-align:center;margin-top:0}

@media(max-width:800px){
.mpr-carte{grid-template-columns:1fr;gap:16px;height:auto}
.mpr-media{width:100%}
.mpr-photo{width:100%;height:auto;aspect-ratio:1/1}
.mpr-texte{height:auto}
.mpr-resume{flex:none;max-height:none;-webkit-mask-image:none;mask-image:none}
.mpr-achat{align-items:stretch;border-left:0;padding-left:0;border-top:1px solid rgba(0,0,0,.15);padding-top:16px}
.mpr-commande-grille{grid-template-columns:1fr}
.mpr-m-fiche{grid-template-columns:1fr;padding:20px}
.mpr-m-texte{padding-right:0}
}

/* Flèches de défilement sur la photo de la carte */
.mpr-photo{position:relative}
.mpr-fl{position:absolute;top:50%;transform:translateY(-50%);width:36px;height:36px;padding:0;border:0;border-radius:50%;background:rgba(255,255,255,.88);color:#322a4a;display:flex;align-items:center;justify-content:center;cursor:pointer;opacity:.9;transition:opacity .15s;box-shadow:0 1px 4px rgba(0,0,0,.25)}
.mpr-fl svg{width:16px;height:16px;display:block;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;fill:none}
.mpr-fl-prec{left:8px}.mpr-fl-suiv{right:8px}
.mpr-fl:hover,.mpr-fl:focus{opacity:1}
.mpr-compteur{position:absolute;right:8px;bottom:8px;padding:2px 9px;border-radius:999px;background:rgba(34,28,50,.65);color:#fff;font-size:.75em;pointer-events:none}

/* Titre de la page boutique centré (liste + page Commander) */
body:has(.mpr-boutique) h1.entry-title,
body:has(.mpr-boutique) .entry-header,
body:has(.mpr-boutique) .page-title,
body:has(.mpr-boutique) .entry-content>h1,
body:has(.mpr-boutique) .entry-content h1.wp-block-heading:first-child{text-align:center}
body:has(.mpr-boutique) .entry-hero-container-inner,
body:has(.mpr-boutique) .entry-header{padding-top:48px}
body:has(.mpr-boutique) .entry-content>h1,
body:has(.mpr-boutique) .entry-content h1.wp-block-heading:first-child{margin-top:48px}

@media(max-width:800px){
.mpr-intro p.mpr-intro-lead{font-size:1.2em;line-height:1.35}
body:has(.mpr-boutique) .entry-content>h1,body:has(.mpr-boutique) .entry-content h1.wp-block-heading:first-child,body:has(.mpr-boutique) h1.entry-title{margin-bottom:22px}
body:has(.mpr-boutique) .entry-header{padding-bottom:16px}
.mpr-achat .mpr-bouton{width:100%;box-sizing:border-box}
}

/* Mobile : page Commander — bouton retour centré, bloc « Passer commande » centré */
@media(max-width:800px){
body .mpr-commande > p:first-child{text-align:center!important}
body .mpr-commande .mpr-retour{display:inline-block!important;margin-left:auto!important;margin-right:auto!important}
body .mpr-commande .mpr-carte-rdv{text-align:center!important}
body .mpr-commande .mpr-carte-rdv h2,body .mpr-commande .mpr-carte-rdv p{text-align:center!important}
body .mpr-commande .mpr-carte-rdv .mpr-bouton{display:inline-block!important;margin-left:auto!important;margin-right:auto!important;max-width:100%;box-sizing:border-box}
}
