In that case, it seems you need to map an HTTP request for the URL examplee.com/actualproduct.html to the server-internal filepath /categoryA/subcategoryB/subsubcategoryC/actualproduct.html
So, the only way for the server to know what server filepath corresponds to the URL example.com/actualproduct.html is to search all possible /category/subcategory/subsubcategory directories.
Frankly, I'd suggest you map *all* URLs ending in .html to a script, which can open the database, look up the 'old' URL/filepath, and then call the CMS (as a wrapper) with the 'converted' URL. This is a bit more work than you want to try to do using only server directives in .htaccess.
If you've already got something like that in place, and the example.com/categoryA/subcategoryB/subsubcategoryC/actualproduct.html URLs exist *only* as links from third-party sites (and not from your own site), then stripping *all* path-info from the requested URL and redirecting is simple. But it's only simple if you do want to redirect *all* .html URLs. If there are any exceptions, then those must be incorporated into the code.
RewriteRule ^([^/]+/)+([^.]+\.html?)$ http://www.example.com/$2 [R=301,L]
That's all it takes, as long as you already have other working rewriterules in your .htaccess file. If not, you will need either both of the following directives, or only the second one; Only testing will tell you:
Options +FollowSymLinks
RewriteEngine on
Rule order: Place all external redirects first, in order from most-specific patterns and conditions (one or only a few URL requests affected) to least-specific patterns and conditions (many requested URLs affected), followed by all internal rewrites, again in order from most- to least-specific. End all RewriteRules with an [L] flag unless you know why you should not do so. This avoids multiple/chained redirects and avoids 'exposing' server-internal filepaths as URLs to HTTP clients.
Jim