/* REC0DET catalogue landing — remove duplicate labels above category cards.
   This is presentation-only. Keep the category labels and artwork in each
   clickable tile, and preserve filters, tabs, mode controls, country flags,
   saved/checkout notices, and navigation on deeper screens. */

/* All four existing catalogue template types use text-only introduction
   banners before their real category grids. */
#viewModule #moduleBody > :is(
  .catalogHomeHero,
  .premiumCategoryHero,
  .unifiedCategoryHero,
  .mirrorHero
) {
  display:none!important;
}

/* The 3-choice Homes first screen already labels Buy / Rent / Rent by SQM
   on its buttons, so its separate "Homes" heading is redundant. */
#viewModule #moduleBody > .homesEntryPage > .homesEntryTitle {
  display:none!important;
}
#viewModule #moduleBody > .homesEntryPage {
  padding-top:4px!important;
}

/* The fixed REC0DET top bar already identifies the module. Hide only the
   repeated section title for category landings; do not hide titles on
   listing/detail/checkout screens or selected Homes mode/back controls. */
#viewModule:has(#moduleBody > :is(
  .catalogHomeGrid,
  .premiumCategoryGrid,
  .moduleCategoryGrid,
  .homesEntryPage,
  .mirrorHero
)) > .sectionHdr {
  display:none!important;
}

/* Shop category landing's "Browse / Categories" label duplicates the
   category cards and the active Shop tab. */
#viewCategories > .shopSectionHead {
  display:none!important;
}

/* Services catalogue top row: remove only the word "Services". Retain
   country selector, REC0DET/USUAL mode tabs, and category search field. */
body.servicesLiveV150 #viewShopExplore .serviceRcHomeIntro > header > strong {
  display:none!important;
}
body.servicesLiveV150 #viewShopExplore .serviceRcHomeIntro > header {
  justify-content:flex-end!important;
}
body.servicesLiveV150 #viewShopExplore .serviceRcHomeIntro > header:empty {
  display:none!important;
}

/* Close the gaps left by the removed presentation headers. */
#viewModule #moduleBody > .catalogHomeGrid,
#viewModule #moduleBody > .premiumCategoryGrid,
#viewModule #moduleBody > .moduleCategoryGrid {
  margin-top:0!important;
}
#viewModule #moduleBody > .mirrorCodeGrid:not(.mirrorSubGrid) {
  margin-top:5px!important;
}
