.collection-hero {
  position: relative;
  flex-direction: column;
}
.collection-hero .collection-hero__image-wrapper {
  position: relative;
  display: flex;
  height: var(--pc-collection-img-height);
  overflow: hidden;
}
@media (max-width: 959px) {
  .collection-hero .collection-hero__image-wrapper {
    height: var(--md-collection-img-height);
  }
}
.collection-hero .collection-hero__inner {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
}
.collection-hero .collection-hero__text-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  --color-text: 255, 255, 255;
  color: rgb(var(--color-text));
}
.collection-hero .collection-hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--collection-hero-cover-area);
}
.collection-hero .collection-hero__image-mask {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--collection-hero-mask-color);
  opacity: var(--collection-hero-mask-color-opacity);
}
.collection-hero .collection-hero__description {
  margin-top: 20px;
}
@media (max-width: 959px) {
  .collection-hero .collection-hero__description {
    margin-top: 10px;
  }
}
.collection-hero .breadcrumb {
  margin-top: 0;
  margin-bottom: 10px;
}

.collection-hero:not(.has-collection-image) .collection-hero__description {
  margin-top: 12px;
}

.collection-hero__no-cover {
  padding-top: 40px;
}

.collection-hero__no-cover.collection-hero__no-title {
  padding-top: 0;
}

@media (max-width: 959px) {
  .collection-hero__no-cover.collection-hero__no-title .display-block-tablet {
    margin-top: 20px;
    margin-bottom: 0;
  }
}

@media (min-width: 960px) {
  .collection-hero__no-cover.collection-hero__no-title .display-block-desktop {
    margin-top: 40px;
    margin-bottom: 0;
  }
}

@media (max-width: 959px) {
  .collection-hero__no-cover {
    padding-top: 20px;
  }
}

/* The ipad end responds to the mobile end in vertical screen */

/* @custom-media --tablet (max-width: 959px); */

/* @custom-media --gt-mobile (min-width: 751px); */

/* detectingScreen need to consider the configuration of the tablet */
/* --- Simple hero like the WP screenshot --- */
.collection-hero.page-width {
    padding-top: 36px;
    padding-bottom: 8px;
}

.collection-hero__no-cover {
    padding-top: 0;
}

/* hide breadcrumb + the default small H1 */
.collection-hero .breadcrumb {
    display: none !important;
}

.collection-hero .collection-hero__title {
    display: none !important;
}

/* Description becomes: big headline (p1) + small subtext (p2) */
.collection-hero__description {
    max-width: 980px;
    margin: 0 0 14px 0;
}

.collection-hero__description p {
    margin: 0;
}

.collection-hero__description p:first-child {
    font-size: clamp(32px, 5vw, 56px);
    line-height: 1.15;
    font-weight: 500;
    color: #2b2b2b;
    letter-spacing: -.2px;
}

.collection-hero__description p:nth-child(2) {
    font-size: 16px;
    line-height: 1.6;
    color: #2f3a2f;
    /* subtle green tone like the shot */
    margin-top: 10px;
    opacity: .95;
}

/* Optional emphasis like “organic Botanicals” */
.collection-hero__description .accent {
    color: #ff4a3d;
}

/* Tighten the gap above the product grid/filter row */
.product-list-container .collection {
    margin-top: 0;
}

/* Mobile tweaks */
@media (max-width: 959px) {
    .collection-hero.page-width {
        padding-top: 20px;
    }

    .collection-hero__description p:first-child {
        font-size: clamp(24px, 6vw, 36px);
    }
}

/* ===== Collection header: match WP look ===== */

/* remove the native title/breadcrumb */
.collection-hero .breadcrumb,
.collection-hero .collection-hero__title {
    display: none !important;
}

.collection-hero.page-width {
    padding-top: 28px;
    padding-bottom: 12px;
}

.collection-hero__no-cover {
    padding-top: 0;
}

/* container + base */
.collection-hero__description {
    max-width: 980px;
    margin: 0 0 16px 0;
}

.collection-hero__description p {
    margin: 0;
}

/* BIG headline (handle 1 or 2 paragraphs) */
.collection-hero__description p:nth-of-type(-n+2) {
    font-size: clamp(28px, 3.2vw, 48px) !important;
    line-height: 1.2;
    font-weight: 500;
    color: #2b2b2b;
    letter-spacing: -.2px;
}

/* Small sub-copy (last paragraph) */
.collection-hero__description p:last-of-type {
    font-size: 16px !important;
    line-height: 1.6;
    color: #2f3a2f;
    margin-top: 10px;
    opacity: .95;
}

/* Optional accent color */
.collection-hero__description .accent {
    color: #ff4a3d;
}

/* tighten the gap above grid */
.product-list-container .collection {
    margin-top: 0;
}

/* mobile */
@media (max-width:959px) {
    .collection-hero.page-width {
        padding-top: 20px;
    }

    .collection-hero__description p:nth-of-type(-n+2) {
        font-size: clamp(22px, 6vw, 34px) !important;
    }
}

/* ===== Collection header: match WP look ===== */

/* remove the native title/breadcrumb */
.collection-hero .breadcrumb,
.collection-hero .collection-hero__title {
    display: none !important;
}

.collection-hero.page-width {
    padding-top: 28px;
    padding-bottom: 12px;
}

.collection-hero__no-cover {
    padding-top: 0;
}

/* container + base */
.collection-hero__description {
    max-width: 980px;
    margin: 0 0 16px 0;
}

.collection-hero__description p {
    margin: 0;
}

/* BIG headline (handle 1 or 2 paragraphs) */
.collection-hero__description p:nth-of-type(-n+2) {
    font-size: clamp(28px, 3.2vw, 48px) !important;
    line-height: 1.2;
    font-weight: 500;
    color: #2b2b2b;
    letter-spacing: -.2px;
}

/* Small sub-copy (last paragraph) */
.collection-hero__description p:last-of-type {
    font-size: 16px !important;
    line-height: 1.6;
    color: #2f3a2f;
    margin-top: 10px;
    opacity: .95;
}

/* Optional accent color */
.collection-hero__description .accent {
    color: #ff4a3d;
}

/* tighten the gap above grid */
.product-list-container .collection {
    margin-top: 0;
}

/* mobile */
@media (max-width:959px) {
    .collection-hero.page-width {
        padding-top: 20px;
    }

    .collection-hero__description p:nth-of-type(-n+2) {
        font-size: clamp(22px, 6vw, 34px) !important;
    }
}