/* Cart Sidebar Styles */
.cart-sidebar {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}

.cart-sidebar.active {
    display: block;
}

.cart-sidebar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.cart-sidebar-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 420px;
    height: 100%;
    background: #fff;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    animation: slideInRight 0.3s ease;
    overflow: hidden;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

.cart-sidebar-header {
    padding: 1.5rem;
    background: #000;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #333;
}

.cart-sidebar-header h3 {
    margin: 0;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-sidebar-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    transition: opacity 0.2s;
}

.cart-sidebar-close:hover {
    opacity: 0.7;
}

.cart-sidebar-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.cart-loading,
.cart-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: #666;
}

.cart-loading i {
    font-size: 2rem;
    color: #3498db;
}

.cart-empty i {
    font-size: 3rem;
    color: #ddd;
    margin-bottom: 1rem;
}

.cart-sidebar-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid #eee;
    animation: fadeIn 0.3s ease;
}

.cart-sidebar-item:last-child {
    border-bottom: none;
}

.cart-sidebar-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.cart-sidebar-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.cart-sidebar-item-details {
    flex: 1;
    min-width: 0;
}

.cart-sidebar-item-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.cart-sidebar-item-levels {
    font-size: 0.8rem;
    color: #666;
    margin: 0.25rem 0;
}

.cart-sidebar-item-author {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.25rem;
}

.cart-sidebar-item-price {
    font-weight: 600;
    color: #2c3e50;
    margin: 0.5rem 0;
}

.cart-sidebar-item-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
}

.cart-sidebar-item-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.cart-sidebar-item-remove {
    background: none;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    font-size: 1rem;
    padding: 0.25rem 0.5rem;
    transition: opacity 0.2s;
}

.cart-sidebar-item-remove:hover {
    opacity: 0.7;
}

.cart-sidebar-footer {
    padding: 1.5rem;
    border-top: 2px solid #eee;
    background: #f8f9fa;
}

.cart-sidebar-total {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    text-align: center;
    color: #2c3e50;
}

.cart-sidebar-footer .btn {
    display: block;
    width: 100%;
    padding: 0.75rem;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s;
    margin-bottom: 0.5rem;
}

.cart-sidebar-footer .btn:last-child {
    margin-bottom: 0;
}

.btn-primary {
    background: #2c3e50;
    color: #fff;
}

.btn-primary:hover {
    background: #34495e;
}

.btn-secondary {
    background: #3498db;
    color: #fff;
}

.btn-secondary:hover {
    background: #2980b9;
}

.btn-continue-shopping {
    background: white;
    color: #2c3e50;
    border: 2px solid #2c3e50;
}

.btn-continue-shopping:hover {
    background: #2c3e50;
    color: white;
}

.btn-continue-shopping i {
    margin-right: 0.5rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .cart-sidebar-content {
        max-width: 100%;
    }
    
    .cart-sidebar-item {
        padding: 0.75rem;
    }
    
    .cart-sidebar-item-image {
        width: 60px;
        height: 60px;
    }
    
    .cart-sidebar-item-title {
        font-size: 0.85rem;
    }
}

