.empty-cart {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cart-sidebar {
    position: fixed;
    right: 0;
    top: 0;
    width: 300px;
    height: 100%;
    background-color: white;
    box-shadow: -2px 0 5px rgba(0,0,0,0.5);
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
}

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

#close-cart {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

#cart-items-container {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 80px; /* To account for the fixed footer */
}

#cart-items {
    flex-grow: 1;
    overflow-y: auto;
    padding-bottom: 80px; /* Ensure there's space for the footer */
}

.cart-footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 10px;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.5);
    background-color: white;
}

.cart-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.cart-item-cover {
    width: 50px;
    height: auto;
    max-width: 100px;
    margin-right: 20px;
}

.cart-item-details {
    flex: 1;
    display: inline-block;
    vertical-align: top;
}

body.no-scroll {
    overflow: hidden;
}

.cart-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 3% 0%;

}

.checkout {
    margin-right: 3%;
}

.clear-cart {
    margin-left: 3%;
}

body.remove-from-cart{
    display: block;
    margin-top: 10px;
    margin-left: 20px;
}

.cart-item-details p {
    margin: 0;
}

.cart-summary {
    margin: 20px 3% 0%;
    font-size: 1.2em;
}


.cart-actions .btn {
    flex: 0 0 auto;
    min-width: 150px;
}
