// Function to format prices with two decimal places
function formatPrices() {
const priceElements = document.querySelectorAll('.product-price');
priceElements.forEach(element => {
let price = parseFloat(element.innerText.replace(/[^0-9.-]+/g,""));
element.innerText = price.toFixed(2) + ' RSD';
});
}
// Run the function on page load
window.onload = formatPrices;