01 - Set the oven temperature to 400°F.
02 - Roll out the pie crust and fit it into a 9-inch pie pan. Trim and crimp edges as desired.
03 - Combine cranberries, granulated sugar, brown sugar, cornstarch, cinnamon, nutmeg, salt, vanilla, orange zest, and orange juice in a large bowl. Toss to coat evenly.
04 - Pour the cranberry mixture into the pie crust and dot with pieces of butter.
05 - If using a top crust, add lattice or full crust. For full crust, cut slits to vent steam.
06 - Brush beaten egg over the top crust and sprinkle with coarse sugar if desired.
07 - Bake pie at 400°F for 20 minutes.
08 - Reduce oven temperature to 350°F and bake for an additional 30 minutes until crust is golden and filling is bubbly.
09 - Cool on a wire rack for at least 2 hours to allow filling to set before slicing.