/* Panneau de détail partagé : géométrie, visuel et fermeture définis une seule fois. */
.fc-product-drawer { position:fixed; z-index:9999; top:0; right:0; width:min(520px,92vw); height:100dvh; background:var(--fc-ui-surface); box-shadow:none!important; transform:translateX(100%); transition:transform .28s ease; overflow:auto; }
.fc-product-drawer.is-open { transform:translateX(0); }
.fc-modal--drawer { background:var(--fc-ui-surface); }
.fc-product-drawer__close { position:absolute; display:grid; place-items:center; right:24px; top:14px; z-index:2; width:var(--fc-ui-control); height:var(--fc-ui-control); padding:0; border:0; border-radius:var(--fc-ui-radius); background:var(--fc-ui-close-bg); color:var(--fc-ui-close-ink); cursor:pointer; }
.fc-product-drawer__content { padding:24px; }
:is(.fc-product-drawer__content,.fc-product-drawer__body) { min-width:0; box-sizing:border-box; }
/* Une boîte ajustée au ratio réel permet à l’arrondi de suivre les coins du visuel. */
.fc-product-drawer__image { display:block; width:100%; max-width:100%; height:auto; max-height:62vh; object-fit:contain; border-radius:var(--fc-ui-radius); background:var(--fc-ui-muted); }
.fc-product-drawer .fc-product-drawer__image { width:auto; margin-inline:auto; }
.fc-product-drawer__facts { display:flex; flex-wrap:wrap; gap:8px; margin:18px 0; }
.fc-product-drawer__fact { padding:6px 10px; border-radius:var(--fc-ui-radius); background:var(--fc-ui-muted); }
.fc-product-drawer__cta { display:block; text-align:center; padding:13px 18px; border-radius:var(--fc-ui-radius); background:var(--fc-ui-button-bg); text-decoration:none; margin-top:22px; }
.fc-product-drawer button:focus-visible { outline:2px solid var(--fc-ui-focus); outline-offset:3px; }
.fc-product-drawer__brand { margin:0 0 8px; }
.fc-product-drawer__brand a { text-decoration:underline; text-underline-offset:2px; }
.fc-product-drawer__brand a:hover { text-decoration-thickness:2px; }
/* Le panneau cadeau garde sa fermeture dans le flux, au-dessus du visuel. */
.fc-product-drawer.is-gift-idea .fc-product-drawer__close { position:relative; top:auto; right:auto; display:flex; flex:none; align-items:center; justify-content:center; margin:14px 24px 0 auto; box-shadow:none; }
.fc-product-drawer.is-gift-idea .fc-product-drawer__content { padding-top:8px; }
@media(max-width:700px) {
 .fc-product-drawer { width:100vw; }
 .fc-product-drawer__content { padding:18px; }
 .fc-product-drawer__close { right:18px; }
 .fc-product-drawer.is-gift-idea .fc-product-drawer__close { margin-right:18px; }
 .fc-product-drawer__image { max-height:58vh; }
}
