.ec-size .ec-store__category-page--29593074 .grid__products { @for $i from 2 through 10 { $k: $i - 1; @for $j from 1 through $k { &[data-cols="#{$i}"][data-items="#{$j}"] { justify-content: center; } } } }