/* Inline Product Cards within AI Message */
.ai-products-inline {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.ai-product-card-inline {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px;
    transition: all 0.3s ease;
}

.ai-product-card-inline:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-color: #3498db;
}

.product-inline-content {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.product-inline-image {
    /* width: 80px; */
    height: 40px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.product-inline-details {
    flex: 1;
}

.product-inline-details h5 {
    margin: 0 0 6px 0;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.product-inline-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.product-inline-rating .stars {
    color: #ffc107;
    font-size: 14px;
    letter-spacing: 2px;
}

.product-inline-rating .reviews {
    font-size: 12px;
    color: #666;
}

.product-inline-description {
    margin: 0 0 8px 0;
    font-size: 13px;
    color: #666;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-inline-price {
    font-size: 16px;
    font-weight: bold;
    color: #e74c3c;
    margin-bottom: 8px;
}

.product-inline-link {
    display: inline-block;
    padding: 6px 12px;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
    transition: background 0.3s ease;
}

.product-inline-link:hover {
    background: #2980b9;
}

/* More Products Button */
.ai-more-products-section {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

.ai-more-products-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

.ai-more-products-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.ai-more-products-btn svg {
    width: 16px;
    height: 16px;
}

/* Hide the separate product carousel when inline products are shown */
.convertybot-message:has(.ai-products-inline) + .convertybot-products {
    display: none !important;
}

/* Mobile responsiveness */
@media (max-width: 480px) {
    .product-inline-content {
        flex-direction: column;
    }
    
    .product-inline-image {
        width: 100%;
        height: 150px;
    }
}