/* =====================================================
   cart.css  –  Shared cart drawer styles
   ===================================================== */

#cartPanel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 480px;
    height: 100vh;
    height: 100dvh;
    background: #0f172a;
    border-left: 1px solid #1e293b;
    z-index: 9999;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.5);
}

#cartPanel.open {
    right: 0;
}

@media(min-width:768px) {
    #cartPanel {
        right: -480px;
        width: 480px;
    }
}

#cartOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(2px);
}

#cartOverlay.open {
    opacity: 1;
    visibility: visible;
}

/* Toast Notification Styles */
#cartToast {
    transition: all 0.3s ease-in-out;
}

#cartToast.show {
    transform: translate(-50%, -24px); /* Center and pull up */
    opacity: 1;
}
