.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px; /* Hidden by default */
    width: 400px;
    height: 100%;
    background: rgba(10, 12, 14, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: -5px 0 15px rgba(0,0,0,0.5);
    transition: right 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1002;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.open {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cart-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.close-cart-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
}

.cart-items {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
}

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

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 2px;
}

.cart-item-details {
    flex-grow: 1;
}

.cart-item-title {
    font-size: 1rem;
    font-weight: bold;
    margin: 0 0 5px 0;
}

.cart-item-price {
    font-size: 0.9rem;
    color: #ccc;
    margin: 0 0 10px 0;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    width: fit-content;
}

.quantity-btn {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 5px 10px;
    font-size: 1rem;
}

.cart-item-quantity input {
    width: 40px;
    text-align: center;
    background: transparent;
    border: none;
    color: #fff;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 1rem;
    -moz-appearance: textfield;
}

.cart-item-remove-btn {
    background: none;
    border: none;
    color: #ff6b6b;
    font-size: 1rem;
    cursor: pointer;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cart-subtotal {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.checkout-btn {
    width: auto;
    text-align: center;
    padding: 15px;
    background-color: none;
    border-color: #fff;
}

.checkout-btn:hover {
    background-color: #fff;
    color: #000;
}

.cart-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
}

.cart-backdrop.active {
    display: block;
}

@media (max-width: 768px) {
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }

    .cart-sidebar.open {
        right: 0;
    }
}
