/* Toast Notification Styles */
.ws-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    min-width: 300px;
    max-width: 400px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 99999;
    transform: translateX(150%);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-left: 4px solid;
}

.ws-toast.show {
    transform: translateX(0);
}

.ws-toast-success {
    border-left-color: #4CAF50;
    background: linear-gradient(135deg, #edf7ed 0%, #e8f5e9 100%);
}

.ws-toast-error {
    border-left-color: #f44336;
    background: linear-gradient(135deg, #ffebee 0%, #fdeded 100%);
}

.ws-toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.ws-toast-icon {
    font-size: 20px;
    font-weight: bold;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ws-toast-success .ws-toast-icon {
    background: #4CAF50;
    color: white;
}

.ws-toast-error .ws-toast-icon {
    background: #f44336;
    color: white;
}

.ws-toast-message {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    line-height: 1.4;
}

.ws-toast-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #999;
    margin-left: 10px;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.ws-toast-close:hover {
    background: rgba(0,0,0,0.1);
    color: #333;
}

/* Loading Spinner */
.ws-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: ws-spin 0.8s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes ws-spin {
    to { transform: rotate(360deg); }
}

/* Cart Count Animation */
.cart-count-updated {
    animation: ws-bounce 0.5s ease;
}

@keyframes ws-bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-5px);
    }
    60% {
        transform: translateY(-2px);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .ws-toast {
        top: 10px;
        right: 10px;
        left: 10px;
        min-width: auto;
        max-width: none;
    }
}