.collection-hero {
  position: relative;
  flex-direction: column;
}
.collection-hero .collection-hero__image-wrapper {
  position: relative;
  display: flex;
}
.collection-hero .collection-hero__inner {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #ff961621;
}
.collection-hero .collection-hero__text-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
  --color-text: 255, 255, 255;
  color: rgb(var(--color-text));
}
.collection-hero .collection-hero__image {
  width: 100%;
  height: 356px;
  object-fit: cover;
}
.collection-hero .collection-hero__description {
  margin-top: 20px;
}
.collection-hero__image-wrapper {
  position: relative;
}

.collection-hero__image-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Black overlay with 50% opacity */
  z-index: 1; /* Ensures overlay is above the image */
}

.collection-hero__inner,
.collection-hero__text-wrapper {
  position: relative;
  z-index: 2; /* Ensures text is above the overlay */
}
@media (max-width: 959px) {
  .collection-hero .collection-hero__description {
    margin-top: 10px;
  }
  .collection-hero__title{
    /* margin-left: 15px; */
  }
  .collection-hero .collection-hero__image {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  #ProductCount{
    display: none;
  }
  
}

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

@media (max-width: 959px) {
  .collection-hero:not(.has-collection-image) .collection-hero__title {
    margin-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 */
