.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background-color: var(--bg-white);
    box-shadow: var(--shadow-lg);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    padding: 24px;
    border-bottom: 2px solid var(--light-brown);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    font-size: 1.5rem;
    color: var(--dark-brown);
}

.close-cart {
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 24px;
    cursor: pointer;
    transition: var(--transition);
    padding: 4px;
    border-radius: 50%;
}

.close-cart:hover {
    color: var(--primary-brown);
    background-color: rgba(139, 69, 19, 0.1);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.empty-cart {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.empty-cart i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.3;
}

.empty-cart p:first-of-type {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.cart-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    border-radius: var(--radius-sm);
    background-color: var(--bg-light);
    margin-bottom: 16px;
    animation: slideIn 0.3s ease;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
}

.cart-item-details h4 {
    font-size: 1rem;
    margin-bottom: 4px;
    color: var(--text-dark);
}

.cart-item-price {
    color: var(--primary-brown);
    font-weight: 600;
    margin-bottom: 12px;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.quantity-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--primary-brown);
    background-color: transparent;
    color: var(--primary-brown);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 12px;
}

.quantity-btn:hover {
    background-color: var(--primary-brown);
    color: white;
}

.quantity {
    font-weight: 600;
    min-width: 30px;
    text-align: center;
}

.remove-item {
    background: transparent;
    border: none;
    color: var(--error-red);
    cursor: pointer;
    padding: 4px;
    transition: var(--transition);
    border-radius: 4px;
    align-self: flex-start;
}

.remove-item:hover {
    background-color: rgba(244, 67, 54, 0.1);
}

.cart-footer {
    padding: 24px;
    border-top: 2px solid var(--light-brown);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-brown);
}

.total-amount {
    color: var(--primary-brown);
    font-size: 1.5rem;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}