/**
 * PATIOVISTA Toast Notification Styles
 */

/* Toast Container */
.toast-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 15px;
    pointer-events: none;
}

/* Toast */
.toast {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 320px;
    max-width: 450px;
    background: white;
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: all;
    border-left: 4px solid #1a1a1a;
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

/* Toast Types */
.toast-success {
    border-left-color: #4caf50;
}

.toast-error {
    border-left-color: #f44336;
}

.toast-warning {
    border-left-color: #ff9800;
}

.toast-info {
    border-left-color: #2196f3;
}

.toast-cart {
    border-left-color: #d4af37;
}

/* Toast Icon */
.toast-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

.toast-success .toast-icon {
    color: #4caf50;
}

.toast-error .toast-icon {
    color: #f44336;
}

.toast-warning .toast-icon {
    color: #ff9800;
}

.toast-info .toast-icon {
    color: #2196f3;
}

.toast-cart .toast-icon {
    color: #d4af37;
}

.toast-icon svg {
    width: 100%;
    height: 100%;
}

/* Toast Content */
.toast-content {
    flex: 1;
}

.toast-message {
    font-family: 'Work Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
    line-height: 1.4;
}

/* Toast Close Button */
.toast-close {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
    padding: 0;
}

.toast-close:hover {
    color: #1a1a1a;
}

.toast-close svg {
    width: 100%;
    height: 100%;
}

/* Cart Icon Animation */
@keyframes cart-bounce {
    0%, 100% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.2);
    }
    50% {
        transform: scale(0.95);
    }
    75% {
        transform: scale(1.1);
    }
}

.cart-bounce {
    animation: cart-bounce 0.6s ease;
}

/* Badge Pulse Animation */
@keyframes badge-pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
    100% {
        transform: scale(1);
    }
}

.badge-pulse {
    animation: badge-pulse 0.3s ease;
}

/* Responsive */
@media (max-width: 600px) {
    .toast-container {
        right: 10px;
        left: 10px;
        top: 80px;
    }
    
    .toast {
        min-width: auto;
        max-width: none;
    }
}
