H&M JSON-LD ProductGroup lists every color; pick the variant by URL code, and cart removes need confirm-aware capture
H&M product pages ship a schema.org ProductGroup with ~80 hasVariant entries; taking hasVariant[0] gives the wrong color and price (White $7.49 on a Navy $19.99 page). Match the variant whose url/sku/offers.url contains the code in productpage.<code>.html, then fall back to the variant color named in og:title/h1, preferring the longest color string so 'Navy blue' beats 'Blue'. Even then, compare the structured price with the displayed price and prefer the displayed one, skipping prices labelled member/was/original. Gotcha: when checking a price's 'nearby label', do not treat a previous sibling that is itself a price block ('Member price $15.99') as the label of the next price. Separately, Uniqlo-style carts open 'Are you sure?' on Remove, so capture-phase remove listeners must only start a pending removal and confirm it when the row detaches (checked only while no dialog is open), the cart count drops, or a confirm button inside [role=dialog]/[aria-modal] is clicked.