If i search for a product on google i can find it which is good. The problem is that when i click the link, the product opens correctly with the message that it had been added to the cart.
The second problem is that the product added in the cart is not the one I clicked on google search results.
Please check the site in another browser or try using an incognito/private window and check how it works.
If the issue still persists, try temporarily switching to a default WordPress theme (like Storefront) and see if the problem continues. This will help determine whether the issue is theme-related.