Stir the sugar, water and half the lime zest in a saucepan over low heat about 5 minutes, until the sugar dissolves, then bring to a boil. Cool completely and stir in the tequila and lime juice.
Pour into a shallow metal or plastic container, cover and freeze about 6 hours, until almost firm.
Rake with a fork into coarse crystals, freeze 30 minutes more, then rake again and freeze until needed.
For the shortbread, press the passion fruit pulp through a fine sieve and keep 1 tablespoon of juice. Beat the butter and sugar until pale, then mix in both flours and the juice until the dough just comes together.
Knead briefly, flatten into a disc, wrap and chill 30 minutes. Heat the oven to 340°F (170°C) and line a baking sheet.
Roll the dough 1/8 inch (3 mm) thick between sheets of floured parchment and cut hearts with a 2 1/2-inch cutter. Poke a hole near the top of each with a straw if you want to tie them with ribbon.
Bake 10 to 12 minutes, until pale golden. Cool 5 minutes on the sheet, then on a rack.
Mix the rest of the lime zest with the salt. Wet the rims of 2 jars or glasses and dip them in it. Spoon in the granita and serve with the shortbread.