/* Growth Engine AI Frontend Styles */

:root {
    --primary: #4F46E5;
    --secondary: #7C3AED;
    --success: #10B981;
}

.growth-engine-cart-recovery {
    display: none;
}

.growth-engine-cart-recovery.active {
    display: block;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    max-width: 350px;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.growth-engine-recommendations {
    margin-top: 40px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.growth-engine-recommendations h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
}

.growth-engine-recommendations .products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.growth-engine-recommendations .product-card {
    background: white;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    transition: all 0.2s;
}

.growth-engine-recommendations .product-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-4px);
}

.growth-engine-recommendations .product-card img {
    width: 100%;
    height: auto;
    margin-bottom: 10px;
    border-radius: 6px;
}

.growth-engine-recommendations .product-card h3 {
    font-size: 14px;
    margin: 10px 0;
}

.growth-engine-recommendations .price {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 10px;
}

.growth-engine-recommendations .button {
    display: inline-block;
    padding: 8px 12px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 12px;
    transition: all 0.2s;
}

.growth-engine-recommendations .button:hover {
    background: #4338CA;
}

.growth-engine-upsell-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.growth-engine-upsell-content {
    background: white;
    border-radius: 12px;
    padding: 40px;
    max-width: 500px;
    text-align: center;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.growth-engine-upsell-content h2 {
    font-size: 24px;
    margin-bottom: 16px;
}

.growth-engine-upsell-content p {
    color: #666;
    margin-bottom: 20px;
}

.growth-engine-upsell-content .price {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    margin: 20px 0;
}

.growth-engine-upsell-content .btn-group {
    display: flex;
    gap: 10px;
}

.growth-engine-upsell-content button {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.growth-engine-upsell-content .btn-primary {
    background: var(--primary);
    color: white;
}

.growth-engine-upsell-content .btn-primary:hover {
    background: #4338CA;
}

.growth-engine-upsell-content .btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.growth-engine-upsell-content .btn-secondary:hover {
    background: #e0e0e0;
}

@media (max-width: 768px) {
    .growth-engine-cart-recovery.active {
        left: 10px;
        right: 10px;
        bottom: 10px;
        max-width: none;
    }

    .growth-engine-recommendations .products {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }

    .growth-engine-upsell-content {
        margin: 20px;
        max-width: 90%;
    }
}
