/* Mini Cart Sidebar Styles */

/* Sidebar Base */
.mini-cart-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 350px;
    height: 100vh;
    z-index: 9999;
    background-color: #fff;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    max-width: 90vw;
}

.mini-cart-sidebar.active {
    transform: translateX(0);
}

/* Overlay Base */
.mini-cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.mini-cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Z-Index fix for headers if needed */
header {
    z-index: 1000;
}

/* Ensure sidebar is above everything else except modals maybe */
/* Bootstrap Modals are usually 1050/1060. We keep this high. */

/* Scrollbar for body */
.cart-sidebar-body::-webkit-scrollbar {
    width: 6px;
}
.cart-sidebar-body::-webkit-scrollbar-track {
    background: #f1f1f1;
}
.cart-sidebar-body::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}
.cart-sidebar-body::-webkit-scrollbar-thumb:hover {
    background: #555;
}
