/* Réserver la place de la barre de défilement évite de recadrer le hero à la fermeture du panier. */
html{scrollbar-gutter:stable}
/* Panier commun, dans le coin supérieur droit sous la navigation. */
html body .site-cart-corner,
html body.boutique-page .shop-floating-cart.site-cart-corner{
  position:fixed;top:calc(var(--site-cart-header-height,112px) + 12px);right:max(20px,env(safe-area-inset-right));bottom:auto;
  z-index:45;display:inline-flex;align-items:center;gap:9px;min-width:0;min-height:44px;padding:10px 14px;
  border:1px solid #ffffff40;border-radius:var(--radius,3px);background:#292b28ed;color:#f6f5f1;
  font:500 13px/1.3 'Manrope',sans-serif;text-decoration:none;cursor:pointer;
  box-shadow:none;opacity:1;visibility:visible;pointer-events:auto;
}
html body .site-cart-corner[hidden],html body .shop-product-cart[hidden]{display:none!important}
.site-cart-corner svg,.shop-product-cart svg{width:20px;height:20px;flex:none;fill:none;stroke:currentColor;stroke-width:1.4}
.site-cart-corner .shop-count,.shop-product-cart .shop-count{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 4px;border-radius:50%;background:#ffffff20;color:#f6f5f1;font-size:11px;line-height:1}
.site-cart-corner:focus-visible,.shop-product-cart:focus-visible{outline:2px solid #8d9187;outline-offset:3px}
.site-cart-corner:hover,.shop-product-cart:hover{background:#3a3d37}
/* Un seul accès fixe ; celui qui occupait le haut du catalogue est remplacé. */
html body.boutique-page .shop-topline [data-open-cart]{display:none}
html body:has(.mobile-nav:not([hidden])) .site-cart-corner{visibility:hidden;pointer-events:none}
/* La fiche conserve son accès au panier au-dessus du contenu, près de la croix. */
html body.boutique-page #shop-product-dialog .shop-product-toolbar{
  position:sticky;top:0;z-index:6;display:flex;align-items:center;justify-content:flex-end;gap:8px;
  min-height:64px;padding:10px 12px;background:linear-gradient(#fffdf9 80%,#fffdf900);
}
html body.boutique-page #shop-product-dialog .shop-product-cart{
  display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:9px 12px;
  border:1px solid #ffffff40;border-radius:var(--radius,3px);background:#292b28ed;color:#f6f5f1;
  font:500 13px/1.3 'Manrope',sans-serif;cursor:pointer;
}
html body.boutique-page #shop-product-dialog .shop-product-toolbar .shop-close{
  position:static;flex:none;min-width:44px;min-height:44px;width:44px;height:44px;margin:0;
}
@media(max-width:760px){
  html body .site-cart-corner,html body.boutique-page .shop-floating-cart.site-cart-corner{
    top:calc(var(--site-cart-header-height,90px) + 8px);right:max(12px,env(safe-area-inset-right));padding:9px 11px;
  }
  html body.boutique-page #shop-product-dialog .shop-product-toolbar{padding:8px 10px;min-height:60px}
}

/* Après la navigation, le panier se range dans le coin supérieur droit. */
html.cart-corner-docked body .site-cart-corner,
html.cart-corner-docked body.boutique-page .shop-floating-cart.site-cart-corner{top:max(12px,env(safe-area-inset-top))}
@media(prefers-reduced-motion:no-preference){
  html body .site-cart-corner,html body.boutique-page .shop-floating-cart.site-cart-corner{transition:top .22s ease}
}
@media(max-width:760px){
  html.cart-corner-docked body .site-cart-corner,
  html.cart-corner-docked body.boutique-page .shop-floating-cart.site-cart-corner{top:max(8px,env(safe-area-inset-top))}
}
