/* Cloud Cart Manager Styles */

/* Cart Notifications */
.cart-notification {
    position: fixed;
    top: 80px;
    right: 20px;
    background: white;
    border-radius: 8px;
    padding: 15px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    max-width: 350px;
}

.cart-notification.show {
    transform: translateX(0);
}

.cart-notification-success {
    border-left: 4px solid #10b981;
}

.cart-notification-warning {
    border-left: 4px solid #f59e0b;
}

.cart-notification-error {
    border-left: 4px solid #ef4444;
}

.cart-notification-info {
    border-left: 4px solid #3b82f6;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #374151;
}

/* Cart Icon Animation */
.cart-icon.has-items {
    animation: cartBounce 0.3s ease;
}

@keyframes cartBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Add to Cart Button States */
.add-to-cart-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.add-to-cart-btn .spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #333;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Empty Cart Message */
.empty-cart {
    text-align: center;
    padding: 60px 20px;
}

.empty-cart p {
    font-size: 18px;
    color: #6b7280;
    margin-bottom: 20px;
}

/* Cart Item Styles */
.cart-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
    transition: background-color 0.2s;
}

.cart-item:hover {
    background-color: #f9fafb;
}

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

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

.cart-item .item-details h3 {
    font-size: 16px;
    margin-bottom: 5px;
    color: #111827;
}

.cart-item .item-details p {
    font-size: 14px;
    color: #6b7280;
    margin: 2px 0;
}

.cart-item .item-details .price {
    color: #111827;
    font-weight: 600;
    margin-top: 8px;
}

/* Quantity Controls */
.quantity-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #f3f4f6;
    border-radius: 6px;
    padding: 5px;
}

.quantity-controls button {
    width: 30px;
    height: 30px;
    border: none;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 18px;
    color: #374151;
    transition: background-color 0.2s;
}

.quantity-controls button:hover {
    background: #e5e7eb;
}

.quantity-controls span {
    min-width: 30px;
    text-align: center;
    font-weight: 600;
    color: #111827;
}

/* Remove Button */
.cart-item .remove-btn {
    padding: 8px 16px;
    background: #fee2e2;
    color: #dc2626;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

.cart-item .remove-btn:hover {
    background: #fecaca;
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .cart-notification {
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .cart-item {
        flex-direction: column;
        text-align: center;
    }
    
    .cart-item img {
        width: 120px;
        height: 120px;
    }
    
    .quantity-controls {
        justify-content: center;
    }
}
