/* hi,dear SALE. Scoped to the sale screen so other catalogues remain unchanged. */

/* The existing page title was previously rendered as a separate grey hero. */
#saleView .hidear-sale-title {
  display: none !important;
}

#hidearSaleNav[hidden] {
  display: none !important;
}

#hidearSaleNav {
  flex-wrap: nowrap;
}

/* Shares the same mobile category-hero primitives as care/parfum/home. */
#saleView .hidear-sale-mobile-hero {
  display: none;
}

#saleGrid > .is-sale-filtered-out {
  display: none !important;
}

/* Reuse the existing product grid: this is one editorial 2×2 card within it. */
#saleGrid > .hidear-sale-feature {
  min-width: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  grid-column: 1 / -1;
  grid-row: span 2;
  aspect-ratio: 1 / 1;
}

#saleGrid > .hidear-sale-feature .hidear-sale-feature__visual {
  box-sizing: border-box;
  display: flex;
  flex: 1 1 auto;
  align-items: flex-end;
  min-height: 0;
  width: 100%;
  padding: clamp(20px, 3vw, 38px);
  background: linear-gradient(0deg, rgba(0, 0, 0, .24), transparent 45%), #b5b5b5;
}

#saleGrid > .hidear-sale-feature .hidear-sale-feature__headline {
  position: relative;
  z-index: 1;
  color: #fff;
  font-family: inherit;
  font-size: clamp(30px, 4.7vw, 68px);
  font-weight: 400;
  line-height: 1.03;
  letter-spacing: -.045em;
  margin: 0;
  max-width: 100%;
  overflow-wrap: normal;
}

#saleGrid > .hidear-sale-feature .hidear-sale-feature__content {
  display: flex;
  flex: 0 0 auto;
  box-sizing: border-box;
  align-items: flex-start;
  justify-content: center;
  padding: 17px 20px 20px;
  min-height: clamp(86px, 10vw, 135px);
  background: #fff;
}

#saleGrid > .hidear-sale-feature .hidear-sale-feature__subtitle {
  color: #161616;
  font: inherit;
  font-size: clamp(19px, 2.15vw, 31px);
  line-height: 1.15;
  letter-spacing: -.025em;
  margin: 0;
}

@media (max-width: 679px) {
  #saleView .hidear-sale-mobile-hero {
    display: block;
    background: #b5b5b5;
  }

  #saleView .hidear-sale-mobile-hero .hero-media {
    background: #b5b5b5;
  }

  /* On phones, the promotion appears once, before the catalog. */
  #saleGrid > .hidear-sale-feature {
    display: none !important;
  }

  #saleGrid > .hidear-sale-feature .hidear-sale-feature__headline {
    font-size: clamp(31px, 8.8vw, 46px);
  }

  #saleGrid > .hidear-sale-feature .hidear-sale-feature__content {
    min-height: 75px;
    padding: 15px 14px 17px;
  }

  #saleGrid > .hidear-sale-feature .hidear-sale-feature__subtitle {
    font-size: clamp(20px, 5.4vw, 26px);
  }
}

@media (min-width: 1150px) {
  #saleGrid > .hidear-sale-feature {
    grid-column: span 2;
    grid-row: span 2;
    aspect-ratio: 1;
  }
}
