/* Header cart only shows once something is in it */
#header [data-id="cart"]:not(.hk-show):has(.ct-dynamic-count-cart[data-count="0"]) { display: none !important; }
#header [data-id="cart"].hk-show { animation: hkCartIn .35s ease both; }
@keyframes hkCartIn { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }

/* Item flying to the cart */
.hk-fly { position: fixed; z-index: 99999; pointer-events: none; object-fit: contain; background: #fff; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.25); will-change: transform, opacity; margin: 0; }

/* Cart icon bump when the item lands */
#header [data-id="cart"].hk-bump .ct-icon-container { animation: hkBump .45s cubic-bezier(.3,1.6,.5,1); }
@keyframes hkBump { 0% { transform: scale(1); } 40% { transform: scale(1.45); } 100% { transform: scale(1); } }
