Al-mar'ah is the opening subject; ka-l-rajul provides the comparison, while fi jamiʿ dhalika defines the scope.
Ghayra annaha introduces the exceptions. The present-tense verbs with la deny particular actions. The final wa-lakin tuqassiru contrasts the prohibited shaving with the permitted hair shortening.