Keep in mind that in Figma, an element's width and constraints are connected, and some combinations won't work together.
If you set an Auto Layout frame's width to "Hug contents," it will resize based on the content inside. But if a layer inside that frame uses "Left + Right" constraints, it will stretch from one side of the parent container to the other. Those two settings contradict each other: In the first case, the content determines the size, and in the second, the container does. When that happens, Figma will automatically prioritize one of the settings.
If you need an element to stretch along with its parent frame (as in the previous example with product cards), first give the element a fixed width. Then you can enable the "Left + Right" constraints, and it will resize correctly together with the parent.