/**
 * Category page header - Style bloc vert à coins arrondis
 * H1 + description à gauche, image (ex. bouteille) à droite
 * Éditable en BO : Catalogue > Catégories > [catégorie] (onglets Description & Image)
 * !important utilisé pour surcharger cbd-fonts.css et leo-theme (h1 color #004437)
 */
#js-product-list-header .category-page-header {
  margin-bottom: 1.5rem;
}

#js-product-list-header .category-page-header__card {
  background-color: #1f4037;
  border-radius: 28px;
  overflow: hidden;
  color: #fff;
  padding: 2rem 1.5rem;
}

#js-product-list-header .category-page-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  position: relative;
}

#js-product-list-header .category-page-header__content {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 65%;
}

#js-product-list-header .category-page-header__title,
#js-product-list-header h1.category-page-header__title {
  margin: 0 0 0.75rem;
  color: #E5ECEB !important;
  font-size: 2rem;
  font-weight: bold;
  line-height: 1.2;
  font-family: "Neufile Grotesk Variable", "Helvetica Neue", Helvetica, Arial, sans-serif !important;
}

#js-product-list-header .category-page-header__description,
#js-product-list-header #category-description.category-page-header__description {
  color: #BFD0CD !important;
  font-family: "Neufile Grotesk Variable", "Helvetica Neue", Helvetica, Arial, sans-serif !important;
  font-size: 18px !important;
  font-style: normal;
  font-weight: 500 !important;
  line-height: 28px !important;
}

/* Paragraphes dans la description (surcharge leo-theme .block-category #category-description p) */
#js-product-list-header .category-page-header__description p,
#js-product-list-header #category-description.category-page-header__description p {
  color: #BFD0CD !important;
  font-family: "Neufile Grotesk Variable", "Helvetica Neue", Helvetica, Arial, sans-serif !important;
  font-size: 18px !important;
  font-style: normal;
  font-weight: 500 !important;
  line-height: 28px !important;
}

#js-product-list-header .category-page-header__description p:last-child {
  margin-bottom: 0;
}

#js-product-list-header .category-page-header__description a,
#js-product-list-header .category-page-header__description u {
  color: #BFD0CD !important;
  text-decoration: underline;
}

#js-product-list-header .category-page-header__description a:hover {
  color: #E5ECEB !important;
  opacity: 0.9;
}

/* Zone image à droite : bouteille + option feuille en fond */
#js-product-list-header .category-page-header__image-wrap {
  flex-shrink: 0;
  position: relative;
  width: 100%;
  max-width: 280px;
  min-height: 180px;
}

#js-product-list-header .category-page-header__image {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding-right: 0.5rem;
  padding-bottom: 0.5rem;
}

/* Feuille de chanvre décorative en arrière-plan derrière la bouteille */
#js-product-list-header .category-page-header__image-wrap::before {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 400px;
  height: 290px;
  background-image: url('../img/feuille-chanvre.png');
  background-repeat: no-repeat;
  background-position: right bottom;
  background-size: contain;
  opacity: 1;
  z-index: 0;
}

#js-product-list-header .category-page-header__img {
  height: 315px;
  width: auto;
  object-fit: contain;
  object-position: bottom right;
  display: block;
  position: absolute;
  top: -40px;
  transform: rotate(7deg);
  left: 60px;
}

@media (min-width: 768px) {
  #js-product-list-header .category-page-header__card {
    padding: 2.5rem 2.5rem;
  }

  #js-product-list-header .category-page-header__title {
    font-size: 2.75rem;
  }

  #js-product-list-header .category-page-header__image-wrap {
    max-width: 290px;
    min-height: 220px;
  }

  #js-product-list-header .category-page-header__img {
    max-height: 280px;
  }
}

@media (min-width: 992px) {
  #js-product-list-header .category-page-header__title {
    font-size: 3rem;
  }
}
