$row['unit'], 'price' => $row['price'] ?? '0.00' ]); } else { echo json_encode(['error' => 'Product not found']); } ?>