/* Fix immagini carrello - Magento 2.4.8 */
.cart.item .product-item-photo { 
    width: 7rem !important; 
    max-width: 7rem !important; 
    height: auto !important; 
}

.cart.item .product-item-photo img { 
    max-width: 100% !important; 
    width: 110px !important; 
    height: 160px !important; 
    object-fit: contain !important; 
}

/* [F] barra fissa del carrello, solo telefono; parcheggiata sotto il bordo finche' non serve */
.rm-cart-sticky{display:none}
@media (max-width:767px){
  .rm-cart-sticky{display:flex;align-items:center;gap:12px;position:fixed;left:0;right:0;bottom:0;z-index:900;
    padding:10px 14px;padding-bottom:calc(10px + env(safe-area-inset-bottom,0px));
    background:rgba(255,255,255,.96);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);
    border-top:1px solid #e6e1dc;box-shadow:0 -6px 24px rgba(28,24,21,.10);
    transform:translateY(110%);transition:transform .28s cubic-bezier(.2,.8,.2,1)}
  .rm-cart-sticky.rm-on{transform:translateY(0)}
  .rm-cs-tot{display:flex;flex-direction:column;line-height:1.15;flex:1 1 auto;min-width:0}
  .rm-cs-tot small{font-size:.78rem;color:#6b6259}
  .rm-cs-tot b{font-size:1.1rem;font-variant-numeric:tabular-nums}
  .rm-cs-btn{flex:0 0 auto;min-height:48px;padding:.8rem 1.2rem;border:0;border-radius:10px;background:#c8420c;color:#fff;font-weight:700;white-space:nowrap}
  :root[data-theme=dark] .rm-cart-sticky{background:rgba(24,22,20,.94);border-top-color:#332e28}
  :root[data-theme=dark] .rm-cs-tot small{color:#b3aaa0}
  body.rm-cart-sticky-on{padding-bottom:84px}
}
@media (prefers-reduced-motion:reduce){.rm-cart-sticky{transition:none}}
