document.querySelectorAll('a.btn').forEach(btn => {
btn.addEventListener('click', e => {
e.preventDefault();
const box = e.target.parentElement;
const product = box.querySelector('h3').innerText;
const price = box.querySelector('.price').innerText;
console.log(product, price);
});
});