/* Remove the old storefront boxes shown by the owner.
 * Keep the DOM hooks needed by the original storefront script. Scope every
 * rule to that storefront; compact category links and WooCommerce stay intact.
 */
#devilsmart-app .dm-category-grid,
#devilsmart-app .dm-image-note,
#devilsmart-app .dm-collections,
#devilsmart-app .dm-see-all,
#devilsmart-app .dm-section-title > [data-show-all],
#devilsmart-app .dm-banner,
#devilsmart-app #dm-catalog,
#devilsmart-app [data-dsmcci-hidden-section] {
  display: none !important;
}

/* Hide the whole collection section before JS runs in supporting browsers.
 * storefront-headings.js adds a fallback attribute to the same section.
 */
#devilsmart-app .dm-section:has(> .dm-collections) {
  display: none !important;
}

/* These controls operate only on the removed illustrative catalogue. */
#devilsmart-app .dm-search,
#devilsmart-app .dm-tabs,
#devilsmart-app .dm-toplinks > a[href="#dm-catalog"],
#devilsmart-app .dm-bottom > [data-show-all] {
  display: none !important;
}
