/* CSS Styles */

.cart-container {
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    height: 100%;
    background: linear-gradient(135deg, #141618, #0c367a);
    box-shadow: -5px 0 10px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 999;
}

.cart-container.open {
    transform: translateX(0);
}

.cart-button {
    background-color: #333;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    z-index: 1000;
}

.cart-panel {
    padding: 20px;
    height: calc(100% - 80px);
    overflow-y: auto;
}

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

.cart-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    margin-right: 20px;
}

.cart-item-info {
    flex-grow: 1;
    color: #fff;
}

.cart-item-info h3 {
    margin: 0 0 5px;
}

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

.quantity-controls {
    display: flex;
    align-items: center;
}

.quantity-controls button {
    background-color: #333;
    color: #fff;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
}

.quantity-controls span {
    margin: 0 10px;
    color: #fff;
}

.close-button {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: transparent;
    color: #fff;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

.cart-total {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background-color: #fff;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-total p {
    margin: 0;
}

.cart-total button {
    background-color: #FFA500;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}

.cart-total button.cart-button {
    background-color: #fff;
    color: #333;
}
