R
First of all, your xpath is not correct ( the "." should not be there)
Try this xpath is for name:
//span[contains(@class, ' a-color-base a-text-normal')]
This one for price:
//span[@class='a-price-whole']
This is how you can take the price text based on name locator (parent to child)
//span[contains(@class, ' a-color-base a-text-normal')]//following::span[@class='a-price-whole']
If you're trying to take all results in another way, store them as main div, if you iterate trough them and scrape the text for a specific child, you need to understand how locators are created