/*
 * GAINVO Storefront v0.10.80 — Desktop Home Section Heading Fit
 * Desktop-only UI correction.
 *
 * Corrects collapsed Home section heading columns caused by the combination
 * of flex auto-sizing and a legacy percentage max-width on section h2 text.
 *
 * Mobile remains governed by the existing v0.10.61 compact-phone rules.
 */

@media (min-width:900px){

  /* Let the text side of each Home section header own the available row width. */
  .screen[data-screen="home"] .section-head > div:first-child{
    flex:1 1 auto!important;
    width:auto!important;
    min-width:0!important;
    max-width:none!important;
  }

  /* Actions stay compact on the right and never force the heading column
     into its min-content width. */
  .screen[data-screen="home"] .home-section-actions{
    flex:0 0 auto!important;
    min-width:max-content!important;
  }

  /* Remove the old percentage max-width that participates in the flex
     shrink cycle on desktop. */
  .screen[data-screen="home"] .section-head h2{
    width:auto!important;
    min-width:0!important;
    max-width:none!important;
    word-break:normal!important;
    overflow-wrap:normal!important;
    hyphens:none!important;
  }

  /* These merchandising headings are intentionally short enough to remain
     single-line on desktop. */
  .screen[data-screen="home"] #homePopularTitle,
  .screen[data-screen="home"] #homeShopsTitle,
  .screen[data-screen="home"] #homeRecentTitle,
  .screen[data-screen="home"] #homeForYouTitle{
    white-space:nowrap!important;
  }

  .screen[data-screen="home"] .section-head .micro{
    white-space:nowrap!important;
  }
}

/* Desktop browser / installed desktop app both use the same correction.
   No tablet/mobile behaviour is changed below 900px. */
