.tax-product_cat .site-header,
.tax-product_cat .site-header.is-main-nav-fixed {
  width: 100%;
}

.kt-product-list:not(.kt-product-list--template-2) .kt-product-list__banner-copy {
  top: 17%;
  left: 50%;
  width: min(1200px, calc(100% - 80px));
  transform: translateX(-50%);
}

.kt-product-list__category-heading {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(260px, 430px) minmax(0, 1fr);
  gap: 70px;
  align-items: start;
  margin: 0;
  text-align: left;
  transform: translateY(-50px);
}

.kt-product-list__category-heading h1 {
  margin: 0;
  font-size: 48px;
  line-height: 1.1;
}

.kt-product-list__category-heading p {
  width: min(586px, 100%);
  max-width: none;
  margin: 8px 0 0 auto;
  font-size: 18px;
  line-height: 1.45;
  text-align: left;
}

.kt-product-list__featured-product {
  width: min(430px, 38%);
  margin-top: clamp(100px, 9vw, 160px);
}

.kt-product-list__banner-copy .kt-product-list__featured-product .kt-product-list__featured-copy {
  margin-top: 0;
}

@media (max-width: 1024px) {
  /* WordPress already reserves the toolbar height on html. */
  .admin-bar.tax-product_cat .site-main:has(> .kt-product-list__hero--with-copy) {
    padding-top: 70px;
  }

  .kt-product-list__hero--with-copy {
    min-height: 0;
    padding: 0 0 20px;
    background-image: linear-gradient(rgba(0, 0, 0, .45), rgba(0, 0, 0, .45)), var(--kt-product-list-bg, none);
    background-position: center, right center;
  }

  .kt-product-list__hero--with-copy .kt-product-banner-breadcrumb {
    padding: 20px 0;
  }

  .kt-product-list:not(.kt-product-list--template-2) .kt-product-list__banner-copy {
    position: relative;
    top: auto;
    left: auto;
    margin: 0 auto;
    transform: none;
  }

  .kt-product-list__category-heading {
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: 20px;
    transform: none;
  }

  .kt-product-list__banner-copy .kt-product-list__category-heading h1 {
    margin: 0;
    font-size: 40px;
    overflow-wrap: anywhere;
  }

  .kt-product-list__banner-copy .kt-product-list__category-heading p {
    width: 100%;
    margin: 0;
    font-size: 18px;
    line-height: 1.5;
  }

  .kt-product-list__featured-product {
    width: min(430px, 60%);
    margin-top: 20px;
  }

  .kt-product-list__banner-copy .kt-product-list__colors,
  .kt-product-list__banner-copy .kt-product-list__details {
    margin-top: 20px;
  }

  .kt-product-list__banner-copy .kt-product-list__colors > div {
    flex-wrap: wrap;
    gap: 12px;
  }

  .kt-product-list__banner-copy .kt-product-list__colors span {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  /* Tablet keeps the banner's visual stage while its copy remains in flow. */
  .kt-product-list__hero--with-copy {
    min-height: 620px;
  }
}

@media (max-width: 768px) {
  /* The following carousel supplies the shared 20px mobile section gap. */
  .kt-product-list__hero--with-copy {
    padding-bottom: 0;
  }

  .kt-product-list:not(.kt-product-list--template-2) .kt-product-list__banner-copy {
    width: calc(100% - 40px);
  }

  .kt-product-list__category-heading {
    grid-template-columns: minmax(0, 1fr);
  }

  .kt-product-list__banner-copy .kt-product-list__category-heading h1 {
    font-size: 32px;
  }

  .kt-product-list__banner-copy .kt-product-list__featured-copy h2 {
    font-size: 26px;
  }

  .kt-product-list__banner-copy .kt-product-list__category-heading p,
  .kt-product-list__banner-copy .kt-product-list__featured-copy p {
    font-size: 16px;
  }

  .kt-product-list__featured-product {
    width: 100%;
  }
}
