/* Product tag archive layout. Scoped to WooCommerce product_tag pages only. */

body.tax-product_tag {
  --zc-shop-sticky-offset: 210px;
  --zc-sort-teal: #219ebc;
  --zc-sort-teal-dark: #127f98;
  --zc-sort-orange: #fb8500;
  --zc-sort-ink: #123642;
  --zc-sort-muted: #5f7480;
  --zc-sort-line: rgba(18, 54, 66, 0.14);
  --zc-shop-archive-large-gradient: linear-gradient(135deg, #127f98 0%, #219ebc 100%);
}

body.tax-product_tag .zc-product-tag-archive {
  color: var(--zc-sort-ink);
  background: #ffffff;
}

body.tax-product_tag #category-hero-section,
body.tax-product_tag #products-section {
  background: var(--zc-shop-archive-large-gradient) !important;
  background-image: var(--zc-shop-archive-large-gradient) !important;
}

body.tax-product_tag .zc-product-tag-hero {
  padding: clamp(262px, calc(16vw + 32px), 332px) 20px clamp(54px, 7vw, 96px) !important;
}

body.tax-product_tag .zc-product-tag-hero__inner,
body.tax-product_tag .zc-product-tag-intro__inner,
body.tax-product_tag .zc-product-tag-help__inner {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

body.tax-product_tag .zc-product-tag-hero__copy {
  width: min(720px, 100%);
}

body.tax-product_tag .zc-product-tag-hero__eyebrow,
body.tax-product_tag .zc-product-tag-intro span,
body.tax-product_tag .zc-product-tag-help span {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(180deg, #fb8500 0%, #f44603 100%);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0;
}

body.tax-product_tag .zc-product-tag-hero h1 {
  max-width: 760px;
  margin: 0 0 18px;
  color: #ffffff;
  font-size: clamp(34px, 5vw, 68px);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: 0;
}

body.tax-product_tag .zc-product-tag-hero p {
  max-width: 720px;
  margin: 0 0 24px;
  color: rgba(255,255,255,0.92);
  font-size: clamp(15px, 1.45vw, 18px);
  font-weight: 700;
  line-height: 1.6;
}

body.tax-product_tag .zc-product-tag-hero__button,
body.tax-product_tag .zc-product-tag-help a,
body.tax-product_tag .zc-tag-filter-apply {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  color: #ffffff !important;
  background: linear-gradient(180deg, #fb8500 0%, #f44603 100%);
  box-shadow: 0 18px 46px rgba(244, 70, 3, 0.22);
  font-size: 15px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

body.tax-product_tag .zc-product-tag-intro {
  padding: clamp(42px, 6vw, 76px) 20px;
  background: #ffffff;
}

body.tax-product_tag .zc-product-tag-intro__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr);
  justify-content: start;
}

body.tax-product_tag .zc-product-tag-intro span,
body.tax-product_tag .zc-product-tag-help span {
  color: #fb8500;
  background: rgba(251, 133, 0, 0.1);
}

body.tax-product_tag .zc-product-tag-intro h2,
body.tax-product_tag .zc-product-tag-help h2 {
  margin: 0 0 14px;
  color: var(--zc-sort-ink);
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: 0;
}

body.tax-product_tag .zc-product-tag-intro p,
body.tax-product_tag .zc-product-tag-help p {
  max-width: 82ch;
  margin: 0;
  color: rgba(18, 54, 66, 0.76);
  font-size: 16px;
  font-weight: 650;
  line-height: 1.65;
}

body.tax-product_tag .zc-product-tag-intro__description {
  max-width: 82ch;
  color: rgba(18, 54, 66, 0.76);
  font-size: 16px;
  font-weight: 650;
  line-height: 1.65;
}

body.tax-product_tag .zc-product-tag-intro__description p {
  max-width: none;
  margin: 0 0 1em;
  color: inherit;
  font: inherit;
  line-height: inherit;
}

body.tax-product_tag .zc-product-tag-intro__description h2 {
  margin: 1.7em 0 0.65em;
  font-size: clamp(24px, 2.7vw, 34px);
  line-height: 1.18;
}

body.tax-product_tag .zc-product-tag-intro__description h3 {
  margin: 1.35em 0 0.5em;
  color: var(--zc-sort-ink);
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 800;
  line-height: 1.25;
}

body.tax-product_tag .zc-product-tag-intro__description a {
  color: #d76400;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

body.tax-product_tag .zc-product-tag-intro__description > :first-child {
  margin-top: 0;
}

body.tax-product_tag .zc-product-tag-intro__description > :last-child {
  margin-bottom: 0;
}

body.tax-product_tag #products-section {
  padding: clamp(48px, 6vw, 86px) 20px !important;
}

body.tax-product_tag #products-section > .et_pb_row_1-4_3-4 {
  width: min(1180px, calc(100% - 36px)) !important;
  max-width: 1180px !important;
  margin: 0 auto !important;
}

body.tax-product_tag .zc-product-tag-help {
  padding: clamp(46px, 6vw, 86px) 20px;
  background: #ffffff;
}

body.tax-product_tag .zc-product-tag-help__inner {
  padding: clamp(26px, 4vw, 42px);
  border-radius: 26px;
  background: linear-gradient(180deg, #f7fcfd 0%, #ffffff 100%);
  box-shadow: 0 20px 54px rgba(18, 54, 66, 0.1);
}

body.tax-product_tag .zc-product-tag-help p {
  margin-bottom: 22px;
}

body.tax-product_tag .zc-product-tag-filter .divi-filter-containter {
  display: grid;
  gap: 12px;
}

body.tax-product_tag .zc-tag-price-fields {
  display: grid;
  gap: 10px;
  max-height: none !important;
}

body.tax-product_tag .zc-tag-price-fields label {
  display: grid;
  gap: 5px;
  color: var(--zc-sort-ink);
  font-size: 12px;
  font-weight: 800;
}

body.tax-product_tag .zc-tag-price-fields input {
  width: 100%;
  min-height: 40px;
  border: 1px solid rgba(18, 54, 66, 0.12);
  border-radius: 12px;
  padding: 8px 11px;
  color: var(--zc-sort-ink);
  background: #ffffff;
  font-size: 13px;
  font-weight: 800;
}

body.tax-product_tag .zc-tag-filter-apply {
  width: 100%;
  min-height: 44px;
  margin-top: 2px;
}

@media (min-width: 981px) {
  body.tax-product_tag #products-section > .et_pb_row_1-4_3-4 {
    display: flex;
    align-items: flex-start;
    column-gap: 3%;
    overflow: visible;
  }

  body.tax-product_tag #products-section > .et_pb_row_1-4_3-4 > #products-section-filter-column {
    flex: 0 0 22.75%;
    width: 22.75% !important;
    margin-right: 0 !important;
    position: sticky;
    top: var(--zc-shop-sticky-offset);
    z-index: 5;
    max-height: calc(100vh - var(--zc-shop-sticky-offset) - 22px);
    overflow: visible;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
  }

  body.tax-product_tag #products-section > .et_pb_row_1-4_3-4 > #products-section-filter-column .et_pb_de_mach_filter_posts {
    max-height: inherit;
    overflow-y: auto;
    overflow-x: hidden;
    border-radius: 22px;
    scrollbar-gutter: stable;
  }

  body.tax-product_tag #products-section > .et_pb_row_1-4_3-4 > #products-section-products-column {
    flex: 0 0 74.25%;
    width: 74.25% !important;
    margin-left: 0 !important;
    min-width: 0;
  }
}

@media (max-width: 980px) {
  body.tax-product_tag .zc-product-tag-hero {
    padding-top: 182px !important;
  }

  body.tax-product_tag #products-section > .et_pb_row_1-4_3-4 > #products-section-filter-column,
  body.tax-product_tag #products-section > .et_pb_row_1-4_3-4 > #products-section-products-column {
    width: 100% !important;
    position: static;
    max-height: none;
    overflow: visible;
  }

  body.tax-product_tag .zc-product-tag-intro__inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  body.tax-product_tag .zc-product-tag-hero,
  body.tax-product_tag #products-section,
  body.tax-product_tag .zc-product-tag-intro,
  body.tax-product_tag .zc-product-tag-help {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  body.tax-product_tag #products-section > .et_pb_row_1-4_3-4,
  body.tax-product_tag .zc-product-tag-hero__inner,
  body.tax-product_tag .zc-product-tag-intro__inner,
  body.tax-product_tag .zc-product-tag-help__inner {
    width: 100% !important;
  }
}

/* Legacy clearfix pseudo-elements must not occupy product grid cells. */
body.tax-product_tag #products-section #zc-product-loop-grid::before,
body.tax-product_tag #products-section #zc-product-loop-grid::after {
  content: none !important;
  display: none !important;
}

@media (max-width: 980px) {
  /* Expanded price controls must grow the sidebar beyond its opening height. */
  body.tax-product_tag.zc-mobile-filters-open #products-section-filter-column {
    max-height: none !important;
  }
}
