.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: #fff;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #333;
}

.close-cart {
    background: none;
    border: none;
    font-size: 1rem;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.close-cart:hover {
    color: #333;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    position: relative;
}

.cart-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

.item-details {
    flex: 1;
}

.item-details h3 {
    margin: 0 0 5px;
    font-size: 1rem;
    color: #333;
}

.file-name {
    font-size: 0.9rem;
    color: #666;
    margin: 0 0 5px;
}

.item-price {
    font-size: 0.9rem;
    color: #333;
    margin: 0 0 10px;
}

.show-details-btn {
    background: #f5f5f5;
    border: none;
    padding: 5px 10px;
    font-size: 0.8rem;
    color: #666;
    cursor: pointer;
    border-radius: 4px;
}

.show-details-btn:hover {
    background: #eee;
}

.remove-item {
    position: absolute;
    top: 15px;
    right: 0;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #999;
    cursor: pointer;
    padding: 0 5px;
}

.remove-item:hover {
    color: #ff4444;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    background: #f9f9f9;
}

.subtotal {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: #333;
}

.cart-actions {
    display: flex;
    gap: 10px;
}

.view-cart-btn,
.checkout-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
}

.view-cart-btn {
    background: #f5f5f5;
    color: #333;
}

.view-cart-btn:hover {
    background: #eee;
}

.checkout-btn {
    background: #4CAF50;
    color: white;
}

.checkout-btn:hover {
    background: #45a049;
}

.empty-cart {
    text-align: center;
    color: #666;
    padding: 20px;
    font-style: italic;
}