/* Product category headers only; the taxonomy name and existing description stay in place. */
body.tax-product_cat .woocommerce-products-header {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 160px;
  padding: 22px 155px 20px 24px;
  margin-bottom: 18px;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(110deg, var(--cp-banner-start) 0%, #f8f8f2 64%, var(--cp-banner-end) 100%);
}
body.tax-product_cat .woocommerce-products-header::before {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  right: -50px;
  top: -72px;
  border-radius: 50%;
  background: var(--cp-banner-end);
  opacity: .8;
  z-index: -1;
}
body.tax-product_cat .woocommerce-products-header::after {
  content: "";
  position: absolute;
  width: 126px;
  height: 126px;
  right: 19px;
  top: 17px;
  border-radius: 12px;
  background-color: #fff;
  background-image: var(--cp-banner-photo);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 9px 18px rgba(20,34,66,.15);
  transform: rotate(4deg);
  opacity: var(--cp-banner-photo-opacity);
}
body.tax-product_cat .woocommerce-products-header .page-title {
  margin: 0 0 8px;
  font-size: clamp(21px,2.3vw,29px);
  line-height: 1.12;
}
body.tax-product_cat .woocommerce-products-header .term-description,
body.tax-product_cat .woocommerce-products-header .term-description p { margin: 0; }
body.tax-product_cat .woocommerce-products-header .term-description p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.4;
}
@media (max-width: 767px) {
  body.tax-product_cat .woocommerce-products-header {
    min-height: 140px;
    padding: 14px 90px 14px 15px;
    border-radius: 12px;
  }
  body.tax-product_cat .woocommerce-products-header::after {
    width: 70px;
    height: 70px;
    right: 10px;
    top: 35px;
  }
  body.tax-product_cat .woocommerce-products-header .page-title {
    font-size: 19px;
    line-height: 1.12;
    margin-bottom: 5px;
  }
  body.tax-product_cat .woocommerce-products-header .term-description p {
    font-size: 11px;
    -webkit-line-clamp: 2;
  }
}
