.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 */
/* BOLTTE V147: crawlable vacuum category and priority-series hubs */
.boltte-collection-hubs {
  box-sizing: border-box;
  padding-bottom: 8px;
  padding-top: 18px;
}

.boltte-collection-hubs__intro h2,
.boltte-collection-hubs__priority h2 {
  color: #14233a;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.25;
  margin: 0;
}

.boltte-collection-hubs__intro p {
  color: #526179;
  line-height: 1.65;
  margin: 8px 0 0;
  max-width: 880px;
}

.boltte-collection-hubs__grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.boltte-collection-hubs__card {
  background: #f7f9fc;
  border: 1px solid #dce4ef;
  border-radius: 10px;
  color: #14233a;
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-height: 118px;
  padding: 18px;
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.boltte-collection-hubs__card:hover,
.boltte-collection-hubs__card:focus-visible {
  border-color: #1d66b1;
  box-shadow: 0 8px 22px rgba(20, 35, 58, 0.09);
  transform: translateY(-2px);
}

.boltte-collection-hubs__card strong {
  color: #135fa9;
  font-size: 17px;
  line-height: 1.35;
}

.boltte-collection-hubs__card span {
  color: #526179;
  line-height: 1.55;
}

.boltte-collection-hubs__priority {
  border-top: 1px solid #e2e7ef;
  margin-top: 22px;
  padding-top: 20px;
}

.boltte-collection-hubs__priority h2 {
  font-size: 20px;
}

.boltte-collection-hubs__links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 12px;
}

.boltte-collection-hubs__links a {
  background: #fff;
  border: 1px solid #ccd8e8;
  border-radius: 999px;
  color: #135fa9;
  line-height: 1.3;
  padding: 9px 13px;
  text-decoration: none;
}

.boltte-collection-hubs__links a:hover,
.boltte-collection-hubs__links a:focus-visible {
  border-color: #135fa9;
  text-decoration: underline;
}

@media screen and (max-width: 749px) {
  .boltte-collection-hubs {
    padding-top: 10px;
  }

  .boltte-collection-hubs__grid {
    grid-template-columns: 1fr;
  }

  .boltte-collection-hubs__card {
    min-height: 0;
    padding: 15px;
  }
}
/* BOLTTE V147 end */

/* BOLTTE V190: collection text left and products right */
@media screen and (min-width: 750px) {
  main:has(> #shopline-section-main-collection-banner) {
    align-items: start;
    column-gap: clamp(20px, 3vw, 40px);
    display: grid;
    grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.78fr);
    row-gap: 20px;
  }

  main:has(> #shopline-section-main-collection-banner) > #shopline-section-main-collection-banner {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
  }

  main:has(> #shopline-section-main-collection-banner) > #shopline-section-main-collection-product-list {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
  }

  main:has(> #shopline-section-main-collection-banner) > .shopline-section:not(#shopline-section-main-collection-banner):not(#shopline-section-main-collection-product-list) {
    grid-column: 1 / -1;
  }

  main:has(> #shopline-section-main-collection-banner) .section-padding.page-width {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
  }

  main:has(> #shopline-section-main-collection-banner) .main-collection-container {
    width: 100%;
  }

  main:has(> #shopline-section-main-collection-banner) .boltte-collection-hubs {
    margin-left: 0;
    margin-right: 0;
    max-width: none;
  }
}

@media screen and (max-width: 749px) {
  main:has(> #shopline-section-main-collection-banner) {
    display: block;
  }
}
/* BOLTTE V190 end */

/* BOLTTE V191: contain right-column product grid */
@media screen and (min-width: 750px) {
  main:has(> #shopline-section-main-collection-banner) > #shopline-section-main-collection-product-list .product-list-content {
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
    width: 100%;
  }
}
/* BOLTTE V191 end */

/* BOLTTE V192: contain collection filter wrapper */
@media screen and (min-width: 750px) {
  main:has(> #shopline-section-main-collection-banner) > #shopline-section-main-collection-product-list .facets-wrapper {
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
    width: 100%;
  }
}
/* BOLTTE V192 end */

/* BOLTTE V193: narrow desktop category cards readable */
@media screen and (min-width: 750px) and (max-width: 1199px) {
  main:has(> #shopline-section-main-collection-banner) {
    grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.58fr);
  }

  main:has(> #shopline-section-main-collection-banner) .boltte-collection-hubs__grid {
    grid-template-columns: 1fr;
  }
}
/* BOLTTE V193 end */
