/**
 * Category Hero Rendering Recovery v21.7.1
 * Aligns every category hero with the catalogue shell and guarantees that a
 * resolved image occupies the visual panel rather than inheriting blank or
 * collapsed theme styles.
 */
body.tax-product_cat .ref-category-hero,
body.tax-product_cat .ref-adaptive-category-hero,
body.tax-product_cat .ref-v2170-category-hero{
  box-sizing:border-box!important;
  width:var(--ref2070-shell,min(1480px,calc(100vw - 48px)))!important;
  max-width:1480px!important;
  margin:0 auto 34px!important;
  clear:both!important;
  float:none!important;
  left:auto!important;
  right:auto!important;
  transform:none!important;
  justify-self:center!important;
}

body.tax-product_cat .ref-category-hero{
  position:relative!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(360px,1fr)!important;
  min-height:460px!important;
  overflow:hidden!important;
}

body.tax-product_cat .ref-category-hero__copy{
  position:relative!important;
  z-index:3!important;
  min-width:0!important;
}

body.tax-product_cat .ref-category-hero__visual,
body.tax-product_cat .ref-v2170-category-hero__media{
  position:relative!important;
  z-index:1!important;
  display:block!important;
  width:100%!important;
  min-width:0!important;
  min-height:100%!important;
  overflow:hidden!important;
  opacity:1!important;
  visibility:visible!important;
}

body.tax-product_cat .ref-category-hero__visual>span,
body.tax-product_cat .ref-v2170-category-hero__media>picture,
body.tax-product_cat .ref-v2170-category-hero__media>img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  min-height:100%!important;
}

body.tax-product_cat .ref-category-hero.has-image .ref-category-hero__visual img,
body.tax-product_cat .ref-adaptive-category-hero.has-image .ref-category-hero__visual img,
body.tax-product_cat .ref-v2170-category-hero.has-image .ref-v2170-category-hero__media img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  min-height:460px!important;
  max-width:none!important;
  margin:0!important;
  padding:0!important;
  object-fit:cover!important;
  object-position:var(--ref-category-hero-position,var(--ref-v2170-position,center center))!important;
  opacity:1!important;
  visibility:visible!important;
}

body.tax-product_cat .ref-category-hero.has-image .ref-category-hero__visual--fallback,
body.tax-product_cat .ref-adaptive-category-hero.has-image .ref-category-hero__visual--fallback{
  display:none!important;
}

@media (max-width:900px){
  body.tax-product_cat .ref-category-hero,
  body.tax-product_cat .ref-adaptive-category-hero,
  body.tax-product_cat .ref-v2170-category-hero{
    width:calc(100vw - 24px)!important;
    margin-bottom:24px!important;
  }
  body.tax-product_cat .ref-category-hero{
    grid-template-columns:1fr!important;
    min-height:0!important;
  }
  body.tax-product_cat .ref-category-hero__visual,
  body.tax-product_cat .ref-v2170-category-hero__media{
    min-height:320px!important;
  }
  body.tax-product_cat .ref-category-hero.has-image .ref-category-hero__visual img,
  body.tax-product_cat .ref-adaptive-category-hero.has-image .ref-category-hero__visual img,
  body.tax-product_cat .ref-v2170-category-hero.has-image .ref-v2170-category-hero__media img{
    min-height:320px!important;
  }
}

@media (max-width:520px){
  body.tax-product_cat .ref-category-hero,
  body.tax-product_cat .ref-adaptive-category-hero,
  body.tax-product_cat .ref-v2170-category-hero{
    width:calc(100vw - 16px)!important;
    border-radius:20px!important;
  }
  body.tax-product_cat .ref-category-hero__visual,
  body.tax-product_cat .ref-v2170-category-hero__media,
  body.tax-product_cat .ref-category-hero.has-image .ref-category-hero__visual img,
  body.tax-product_cat .ref-adaptive-category-hero.has-image .ref-category-hero__visual img,
  body.tax-product_cat .ref-v2170-category-hero.has-image .ref-v2170-category-hero__media img{
    min-height:260px!important;
  }
}
