/*
 * ZLEY content refresh
 * Scope: article archives, WooCommerce product taxonomies and single posts.
 * Visual system: neutral editorial surfaces with the existing brand purple.
 */

:where(body.blog, body.category, body.tag, body.tax-product_cat, body.single-post) {
  --zley-r-ink: #211d27;
  --zley-r-copy: #3d3843;
  --zley-r-muted: #746e7a;
  --zley-r-purple: #5c3d7d;
  --zley-r-purple-dark: #45265f;
  --zley-r-lilac: #a38bb9;
  --zley-r-lilac-soft: #eee8f2;
  --zley-r-canvas: #f7f5f8;
  --zley-r-surface: #ffffff;
  --zley-r-line: #e4dee8;
  --zley-r-frame: 1320px;
  --zley-r-gutter: clamp(20px, 4vw, 56px);
  --zley-r-radius: 20px;
  --zley-r-ease: cubic-bezier(.22, 1, .36, 1);
}

/* ================================================================
   ARTICLE ARCHIVES — EDITORIAL GRID
================================================================ */

:where(body.blog, body.category, body.tag) {
  background: var(--zley-r-canvas);
  color: var(--zley-r-copy);
}

:where(body.blog, body.category, body.tag) .ast-archive-entry-banner {
  position: relative;
  overflow: hidden;
  padding: clamp(68px, 8vw, 118px) var(--zley-r-gutter) !important;
  border-bottom: 1px solid rgba(92, 61, 125, .12);
  background:
    radial-gradient(circle at 88% 12%, rgba(163, 139, 185, .24), transparent 24%),
    linear-gradient(135deg, #f0eaf4 0%, #faf8fb 62%, #f5f1f7 100%) !important;
  text-align: left !important;
}

:where(body.blog, body.category, body.tag) .ast-archive-entry-banner::after {
  content: "";
  position: absolute;
  right: clamp(-110px, -7vw, -54px);
  bottom: clamp(-180px, -12vw, -92px);
  width: clamp(260px, 28vw, 470px);
  aspect-ratio: 1;
  border: 1px solid rgba(92, 61, 125, .12);
  border-radius: 50%;
  pointer-events: none;
}

:where(body.blog, body.category, body.tag) .ast-archive-entry-banner .ast-container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(250px, .72fr) minmax(0, 1.28fr);
  gap: 26px clamp(44px, 7vw, 112px);
  align-items: end;
  width: 100%;
  max-width: var(--zley-r-frame) !important;
  margin-inline: auto;
  padding: 0 !important;
  text-align: left !important;
}

:where(body.blog, body.category, body.tag) .ast-archive-entry-banner .ast-container::before {
  content: "ZLEY JOURNAL  /  RESEARCH & INSIGHTS";
  grid-column: 1 / -1;
  color: var(--zley-r-purple);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .18em;
  text-transform: uppercase;
}

:where(body.blog, body.category, body.tag) .ast-archive-entry-banner h1 {
  margin: 0 !important;
  color: var(--zley-r-ink) !important;
  font-size: clamp(46px, 6vw, 78px) !important;
  font-weight: 600 !important;
  line-height: .98 !important;
  letter-spacing: -.05em;
  text-transform: none;
}

:where(body.blog, body.category, body.tag) .ast-archive-entry-banner p {
  max-width: 780px;
  margin: 0 !important;
  color: var(--zley-r-copy) !important;
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.75;
}

:where(body.blog, body.category, body.tag) #content > .ast-container {
  display: block;
  width: 100%;
  max-width: calc(var(--zley-r-frame) + (var(--zley-r-gutter) * 2));
  margin-inline: auto;
  padding: clamp(64px, 7vw, 108px) var(--zley-r-gutter) !important;
}

:where(body.blog, body.category, body.tag) #primary {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

:where(body.blog, body.category, body.tag) #main > .ast-row {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 2.6vw, 38px) clamp(18px, 2.2vw, 30px);
  counter-reset: zley-article-card;
}

:where(body.blog, body.category, body.tag) #main > .ast-row::before,
:where(body.blog, body.category, body.tag) #main > .ast-row::after {
  content: none !important;
  display: none !important;
}

:where(body.blog, body.category, body.tag) #main article.ast-article-post {
  float: none !important;
  width: auto !important;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
  counter-increment: zley-article-card;
}

:where(body.blog, body.category, body.tag) #main article.ast-article-post:first-child {
  grid-column: span 2;
}

:where(body.blog, body.category, body.tag) article.ast-article-post .ast-article-inner {
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--zley-r-line) !important;
  border-radius: var(--zley-r-radius) !important;
  background: var(--zley-r-surface) !important;
  box-shadow: 0 16px 46px rgba(54, 34, 70, .06);
  transition: transform .42s var(--zley-r-ease), border-color .42s var(--zley-r-ease), box-shadow .42s var(--zley-r-ease);
}

:where(body.blog, body.category, body.tag) article.ast-article-post:hover .ast-article-inner {
  border-color: rgba(92, 61, 125, .28) !important;
  box-shadow: 0 24px 62px rgba(54, 34, 70, .11);
  transform: translateY(-6px);
}

:where(body.blog, body.category, body.tag) article.ast-article-post .post-content {
  display: flex !important;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  padding: 0 !important;
}

:where(body.blog, body.category, body.tag) article.ast-article-post .ast-blog-featured-section {
  width: 100%;
  margin: 0 !important;
  overflow: hidden;
  aspect-ratio: 16 / 11;
  background: #eeeaf0;
}

:where(body.blog, body.category, body.tag) article.ast-article-post .ast-blog-featured-section a,
:where(body.blog, body.category, body.tag) article.ast-article-post .ast-blog-featured-section img {
  display: block;
  width: 100%;
  height: 100%;
}

:where(body.blog, body.category, body.tag) article.ast-article-post .ast-blog-featured-section img {
  object-fit: cover;
  transition: transform .75s var(--zley-r-ease), filter .75s var(--zley-r-ease);
}

:where(body.blog, body.category, body.tag) article.ast-article-post:hover .ast-blog-featured-section img {
  filter: saturate(.94) contrast(1.02);
  transform: scale(1.045);
}

:where(body.blog, body.category, body.tag) article.ast-article-post .entry-title {
  margin: 0 !important;
  padding: 26px 26px 0 !important;
  color: var(--zley-r-ink) !important;
  font-size: clamp(21px, 1.75vw, 27px) !important;
  font-weight: 600 !important;
  line-height: 1.24 !important;
  letter-spacing: -.025em;
}

:where(body.blog, body.category, body.tag) article.ast-article-post .entry-title::before {
  content: "INSIGHT  " counter(zley-article-card, decimal-leading-zero);
  display: block;
  margin-bottom: 13px;
  color: var(--zley-r-purple);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .16em;
}

:where(body.blog, body.category, body.tag) article.ast-article-post .entry-title a {
  display: -webkit-box;
  overflow: hidden;
  color: inherit !important;
  text-decoration: none !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

:where(body.blog, body.category, body.tag) article.ast-article-post .entry-header {
  display: none !important;
}

:where(body.blog, body.category, body.tag) article.ast-article-post .ast-excerpt-container {
  margin: 18px 26px 0 !important;
}

:where(body.blog, body.category, body.tag) article.ast-article-post .ast-excerpt-container p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--zley-r-muted) !important;
  font-size: 14px;
  line-height: 1.68;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

:where(body.blog, body.category, body.tag) article.ast-article-post .ast-read-more-container {
  display: block !important;
  margin: auto 26px 28px !important;
  padding-top: 24px;
}

:where(body.blog, body.category, body.tag) article.ast-article-post .ast-read-more-container a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--zley-r-purple) !important;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-decoration: none !important;
  text-transform: uppercase;
}

:where(body.blog, body.category, body.tag) article.ast-article-post .ast-read-more-container a::after {
  content: none !important;
  display: none !important;
}

:where(body.blog, body.category, body.tag) article.ast-article-post .entry-content {
  display: none;
}

@media (min-width: 1041px) {
  :where(body.blog, body.category, body.tag) #main article.ast-article-post:first-child .post-content {
    display: grid !important;
    grid-template-columns: minmax(0, 1.18fr) minmax(280px, .82fr);
    grid-template-rows: auto 1fr auto;
    min-height: 510px;
  }

  :where(body.blog, body.category, body.tag) #main article.ast-article-post:first-child .ast-blog-featured-section {
    grid-column: 1;
    grid-row: 1 / 4;
    height: 100%;
    min-height: 510px;
    aspect-ratio: auto;
  }

  :where(body.blog, body.category, body.tag) #main article.ast-article-post:first-child .entry-title {
    grid-column: 2;
    padding: 38px 34px 0 !important;
    font-size: clamp(28px, 2.3vw, 36px) !important;
  }

  :where(body.blog, body.category, body.tag) #main article.ast-article-post:first-child .ast-excerpt-container {
    grid-column: 2;
    margin: 22px 34px 0 !important;
  }

  :where(body.blog, body.category, body.tag) #main article.ast-article-post:first-child .ast-excerpt-container p {
    font-size: 15px;
    -webkit-line-clamp: 5;
  }

  :where(body.blog, body.category, body.tag) #main article.ast-article-post:first-child .ast-read-more-container {
    grid-column: 2;
    margin: auto 34px 38px !important;
  }
}

/* Shared archive pagination. */
:where(body.blog, body.category, body.tag) .ast-pagination,
body.tax-product_cat .woocommerce-pagination {
  margin-top: clamp(48px, 6vw, 78px);
  padding: 0 !important;
}

:where(body.blog, body.category, body.tag) .ast-pagination .nav-links,
body.tax-product_cat .woocommerce-pagination ul.page-numbers {
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

:where(body.blog, body.category, body.tag) .ast-pagination .page-numbers,
body.tax-product_cat .woocommerce-pagination ul.page-numbers li,
body.tax-product_cat .woocommerce-pagination ul.page-numbers li > * {
  float: none !important;
  border: 0 !important;
}

:where(body.blog, body.category, body.tag) .ast-pagination .page-numbers,
body.tax-product_cat .woocommerce-pagination ul.page-numbers li > * {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 42px !important;
  height: 42px !important;
  padding: 0 13px !important;
  border: 1px solid var(--zley-r-line) !important;
  border-radius: 999px !important;
  background: var(--zley-r-surface) !important;
  color: var(--zley-r-purple) !important;
  font-size: 13px !important;
  font-weight: 600;
  line-height: 1 !important;
}

:where(body.blog, body.category, body.tag) .ast-pagination .page-numbers.current,
:where(body.blog, body.category, body.tag) .ast-pagination a.page-numbers:hover,
body.tax-product_cat .woocommerce-pagination ul.page-numbers .current,
body.tax-product_cat .woocommerce-pagination ul.page-numbers a:hover {
  border-color: var(--zley-r-purple) !important;
  background: var(--zley-r-purple) !important;
  color: #fff !important;
}

/* ================================================================
   PRODUCT TAXONOMY — CLEAN TECHNICAL CARDS
================================================================ */

body.tax-product_cat {
  background: var(--zley-r-canvas);
  color: var(--zley-r-copy);
}

body.tax-product_cat #content > .ast-container {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 !important;
}

body.tax-product_cat .elementor-location-archive > .e-con:first-child {
  padding-inline: var(--zley-r-gutter) !important;
  background:
    radial-gradient(circle at 92% 4%, rgba(163, 139, 185, .22), transparent 17%),
    linear-gradient(180deg, #f0eaf4 0, #f7f5f8 520px) !important;
}

body.tax-product_cat .elementor-location-archive > .e-con:first-child > .e-con-inner {
  display: grid !important;
  grid-template-columns: minmax(260px, .72fr) minmax(0, 1.28fr);
  gap: 24px clamp(48px, 7vw, 112px);
  width: 100%;
  max-width: var(--zley-r-frame) !important;
  margin-inline: auto;
  padding: clamp(52px, 6vw, 86px) 0 clamp(74px, 8vw, 118px) !important;
}

body.tax-product_cat .elementor-widget-breadcrumbs {
  grid-column: 1 / -1;
  margin-bottom: 10px;
}

body.tax-product_cat .rank-math-breadcrumb p {
  margin: 0;
  color: var(--zley-r-muted) !important;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .1em;
  text-transform: uppercase;
}

body.tax-product_cat .rank-math-breadcrumb a {
  color: var(--zley-r-purple) !important;
  text-decoration: none;
}

body.tax-product_cat .rank-math-breadcrumb .separator {
  margin-inline: 7px;
  color: #aaa2af;
}

body.tax-product_cat .elementor-widget-theme-archive-title {
  align-self: start;
  text-align: left !important;
}

body.tax-product_cat .elementor-widget-theme-archive-title .elementor-heading-title {
  margin: 0;
  color: var(--zley-r-ink) !important;
  font-family: inherit !important;
  font-size: clamp(46px, 5.4vw, 74px) !important;
  font-weight: 600 !important;
  line-height: .98 !important;
  letter-spacing: -.05em;
}

body.tax-product_cat .elementor-widget-theme-archive-title .elementor-heading-title::before {
  content: "INGREDIENT COLLECTION";
  display: block;
  margin-bottom: 18px;
  color: var(--zley-r-purple);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .17em;
}

body.tax-product_cat .elementor-widget-woocommerce-archive-description {
  align-self: end;
  width: 100% !important;
}

body.tax-product_cat .elementor-widget-woocommerce-archive-description .term-description {
  max-width: 760px;
  color: var(--zley-r-copy) !important;
  font-family: inherit !important;
  font-size: clamp(15px, 1.25vw, 18px) !important;
  line-height: 1.75;
}

body.tax-product_cat .elementor-widget-woocommerce-archive-description .term-description > :last-child {
  margin-bottom: 0;
}

body.tax-product_cat .elementor-widget-wc-archive-products {
  grid-column: 1 / -1;
  width: 100%;
  margin-top: clamp(38px, 5vw, 70px);
}

body.tax-product_cat .elementor-widget-wc-archive-products ul.products {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: clamp(24px, 2.5vw, 36px) !important;
  margin: 0 !important;
  counter-reset: zley-product-card;
}

body.tax-product_cat .elementor-widget-wc-archive-products ul.products::before,
body.tax-product_cat .elementor-widget-wc-archive-products ul.products::after {
  content: none !important;
  display: none !important;
}

body.tax-product_cat.woocommerce ul.products li.product {
  position: relative;
  display: flex !important;
  flex-direction: column;
  float: none !important;
  width: auto !important;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid var(--zley-r-line) !important;
  border-radius: var(--zley-r-radius) !important;
  background: var(--zley-r-surface) !important;
  box-shadow: 0 15px 42px rgba(54, 34, 70, .055);
  text-align: left !important;
  counter-increment: zley-product-card;
  transition: transform .42s var(--zley-r-ease), border-color .42s var(--zley-r-ease), box-shadow .42s var(--zley-r-ease);
}

body.tax-product_cat.woocommerce ul.products li.product:hover {
  border-color: rgba(92, 61, 125, .3) !important;
  box-shadow: 0 24px 62px rgba(54, 34, 70, .11);
  transform: translateY(-6px);
}

body.tax-product_cat.woocommerce ul.products li.product::before {
  content: counter(zley-product-card, decimal-leading-zero);
  position: absolute;
  top: 17px;
  right: 17px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 26px;
  padding-inline: 8px;
  border: 1px solid rgba(255, 255, 255, .58);
  border-radius: 999px;
  background: rgba(34, 29, 40, .46);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  pointer-events: none;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

body.tax-product_cat li.product .astra-shop-thumbnail-wrap {
  position: relative;
  display: block !important;
  width: 100%;
  min-width: 0;
  margin: 0 !important;
  overflow: hidden;
  background: #eeeaf0;
}

body.tax-product_cat li.product .astra-shop-thumbnail-wrap > .woocommerce-LoopProduct-link {
  display: block;
  width: 100%;
  margin: 0 !important;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

body.tax-product_cat li.product .astra-shop-thumbnail-wrap img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  object-fit: cover;
  transition: transform .75s var(--zley-r-ease), filter .75s var(--zley-r-ease);
}

body.tax-product_cat li.product:hover .astra-shop-thumbnail-wrap img {
  filter: saturate(.96) contrast(1.02);
  transform: scale(1.045);
}

body.tax-product_cat li.product .read-more-button {
  position: absolute !important;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 2;
  display: flex !important;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin: 0 !important;
  padding: 11px 18px !important;
  border: 1px solid rgba(255, 255, 255, .45) !important;
  border-radius: 999px !important;
  background: rgba(69, 38, 95, .9) !important;
  color: #fff !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  letter-spacing: .12em !important;
  text-decoration: none !important;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .35s var(--zley-r-ease), transform .35s var(--zley-r-ease), background .25s ease !important;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

body.tax-product_cat li.product:hover .read-more-button,
body.tax-product_cat li.product:focus-within .read-more-button {
  opacity: 1;
  transform: translateY(0);
}

body.tax-product_cat li.product .read-more-button:hover,
body.tax-product_cat li.product .read-more-button:focus {
  background: var(--zley-r-purple-dark) !important;
}

body.tax-product_cat li.product .ast-on-card-button {
  display: none !important;
}

body.tax-product_cat li.product .astra-shop-summary-wrap {
  display: flex !important;
  flex: 1 1 auto;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  margin: 0 !important;
  padding: 25px 25px 28px !important;
}

body.tax-product_cat li.product .astra-shop-summary-wrap > .ast-loop-product__link {
  display: block;
  width: 100%;
  text-decoration: none !important;
}

body.tax-product_cat li.product .woocommerce-loop-product__title,
body.tax-product_cat li.product .astra-shop-summary-wrap .woocommerce-loop-product__title {
  margin: 0 0 18px !important;
  padding: 0 !important;
  color: var(--zley-r-ink) !important;
  font-size: clamp(19px, 1.55vw, 23px) !important;
  font-weight: 600 !important;
  line-height: 1.28 !important;
  letter-spacing: -.02em;
  overflow-wrap: anywhere;
}

/* The Customizer exposes INCI only. Turn that row into a deliberate spec. */
body.tax-product_cat.woocommerce ul.products li.product .astra-shop-summary-wrap .ast-woo-shop-product-description {
  width: 100% !important;
  min-width: 0 !important;
  margin: auto 0 0 !important;
  padding-top: 18px;
  border-top: 1px solid var(--zley-r-line);
}

body.tax-product_cat.woocommerce ul.products li.product .astra-shop-summary-wrap .ast-woo-shop-product-description table,
body.tax-product_cat.woocommerce ul.products li.product .astra-shop-summary-wrap .ast-woo-shop-product-description tbody {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

body.tax-product_cat.woocommerce ul.products li.product .astra-shop-summary-wrap .ast-woo-shop-product-description tr {
  display: none !important;
}

body.tax-product_cat.woocommerce ul.products li.product .astra-shop-summary-wrap .ast-woo-shop-product-description tr:first-child {
  display: grid !important;
  grid-template-columns: minmax(52px, auto) minmax(0, 1fr) !important;
  gap: 10px !important;
  align-items: start !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

body.tax-product_cat.woocommerce ul.products li.product .astra-shop-summary-wrap .ast-woo-shop-product-description tr:first-child td {
  display: block !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--zley-r-muted) !important;
  font-size: 12px !important;
  line-height: 1.55 !important;
  white-space: normal !important;
  overflow-wrap: anywhere;
}

body.tax-product_cat.woocommerce ul.products li.product .astra-shop-summary-wrap .ast-woo-shop-product-description tr:first-child td:first-child {
  color: var(--zley-r-purple) !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap !important;
}

body.tax-product_cat.woocommerce ul.products li.product .astra-shop-summary-wrap .ast-woo-shop-product-description tr:first-child td:last-child {
  display: -webkit-box !important;
  overflow: hidden !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

/* Elementor templates sometimes include a second editorial section. */
body.tax-product_cat .elementor-location-archive > .e-con:nth-child(2) {
  margin-top: 0 !important;
  padding: clamp(68px, 7vw, 104px) var(--zley-r-gutter) !important;
  border-top: 1px solid var(--zley-r-line);
  background: #fff !important;
}

body.tax-product_cat .elementor-location-archive > .e-con:nth-child(2) > .e-con-inner {
  width: 100%;
  max-width: var(--zley-r-frame);
  margin-inline: auto;
}

body.tax-product_cat .elementor-location-archive > .e-con:nth-child(2) .elementor-heading-title {
  color: var(--zley-r-ink) !important;
  font-size: clamp(34px, 4vw, 54px) !important;
  letter-spacing: -.035em;
}

/* ================================================================
   SINGLE ARTICLE — NEUTRAL, READABLE TYPOGRAPHY
================================================================ */

body.single-post {
  background: #fbfafc;
  color: var(--zley-r-copy);
}

body.single-post #content > .ast-container {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 !important;
}

body.single-post .zley-technical-post {
  background:
    linear-gradient(180deg, #f5f1f7 0, #fbfafc 390px) !important;
}

body.single-post .zley-post-shell {
  width: min(100%, calc(var(--zley-r-frame) + (var(--zley-r-gutter) * 2)));
  max-width: none;
  margin: 0 auto;
  padding: clamp(58px, 7vw, 96px) var(--zley-r-gutter) clamp(78px, 9vw, 128px);
}

body.single-post .zley-post-header {
  max-width: 1050px;
  margin: 0 0 clamp(38px, 5vw, 62px);
}

body.single-post .zley-post-category {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin: 0 0 22px;
  padding: 7px 12px;
  border: 1px solid rgba(92, 61, 125, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .68);
  color: var(--zley-r-purple) !important;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .13em;
  text-transform: uppercase;
}

body.single-post .zley-post-title {
  max-width: 1050px;
  margin: 0;
  color: var(--zley-r-ink) !important;
  font-size: clamp(38px, 5vw, 66px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -.045em;
}

body.single-post .zley-post-meta,
body.single-post .zley-post-meta span {
  margin-top: 24px;
  color: var(--zley-r-muted) !important;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .025em;
}

body.single-post .zley-post-meta span + span::before {
  content: "\2022";
  margin: 0 12px;
  color: var(--zley-r-lilac) !important;
}

body.single-post .zley-post-featured {
  overflow: hidden;
  margin: 0 0 clamp(44px, 6vw, 72px);
  border: 0;
  border-radius: var(--zley-r-radius);
  background: #eeeaf0;
  box-shadow: 0 20px 60px rgba(54, 34, 70, .08);
}

body.single-post .zley-post-featured img {
  width: 100%;
  max-height: 600px;
  object-fit: cover;
}

body.single-post .zley-post-layout {
  display: grid;
  grid-template-columns: minmax(0, 790px) minmax(270px, 330px);
  gap: clamp(54px, 7vw, 104px);
  justify-content: space-between;
  align-items: start;
}

/* Override legacy universal black/green declarations with semantic neutrals. */
body.single-post .zley-post-content,
body.single-post .zley-post-content p,
body.single-post .zley-post-content li,
body.single-post .zley-post-content span,
body.single-post .zley-post-content strong,
body.single-post .zley-post-content em,
body.single-post .zley-post-content td,
body.single-post .zley-post-content blockquote,
body.single-post .zley-post-content figcaption,
body.single-post .zley-post-content div,
body.single-post .zley-post-content small,
body.single-post .zley-post-content label,
body.single-post .zley-post-content cite,
body.single-post .zley-post-content .has-text-color,
body.single-post .zley-post-content [style*="color"] {
  color: var(--zley-r-copy) !important;
}

body.single-post .zley-post-content p,
body.single-post .zley-post-content li {
  font-size: clamp(16px, 1.25vw, 18px);
  line-height: 1.82;
}

body.single-post .zley-post-content p {
  margin: 0 0 25px;
}

body.single-post .zley-post-content strong,
body.single-post .zley-post-content b {
  color: #29242e !important;
  font-weight: 700;
}

body.single-post .zley-post-content a,
body.single-post .zley-post-content a span {
  color: var(--zley-r-purple) !important;
  text-decoration-color: rgba(92, 61, 125, .35);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

body.single-post .zley-post-content a:hover,
body.single-post .zley-post-content a:focus {
  color: var(--zley-r-purple-dark) !important;
  text-decoration-color: currentColor;
}

body.single-post .zley-post-content h2,
body.single-post .zley-post-content h3,
body.single-post .zley-post-content h4,
body.single-post .zley-post-content h5,
body.single-post .zley-post-content h6,
body.single-post .zley-post-content h2 * ,
body.single-post .zley-post-content h3 * ,
body.single-post .zley-post-content h4 * {
  color: var(--zley-r-ink) !important;
}

body.single-post .zley-post-content h2 {
  margin: clamp(50px, 6vw, 72px) 0 20px;
  padding-top: 24px;
  border-top: 1px solid var(--zley-r-line);
  font-size: clamp(27px, 2.7vw, 36px);
  font-weight: 600;
  line-height: 1.23;
  letter-spacing: -.025em;
}

body.single-post .zley-post-content h3 {
  margin: 38px 0 15px;
  font-size: clamp(21px, 2vw, 26px);
  font-weight: 600;
  line-height: 1.32;
  letter-spacing: -.015em;
}

body.single-post .zley-post-content h4 {
  margin: 30px 0 12px;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.4;
}

body.single-post .zley-post-content ul,
body.single-post .zley-post-content ol {
  margin: 0 0 30px;
  padding-left: 1.35em;
}

body.single-post .zley-post-content li {
  margin-bottom: 9px;
  padding-left: 5px;
}

body.single-post .zley-post-content li::marker {
  color: var(--zley-r-lilac);
}

body.single-post .zley-post-content blockquote {
  margin: 36px 0;
  padding: 24px 28px;
  border: 0;
  border-left: 4px solid var(--zley-r-lilac);
  border-radius: 0 14px 14px 0;
  background: #f2edf5;
}

body.single-post .zley-post-content figure {
  margin-top: 34px;
  margin-bottom: 38px;
}

body.single-post .zley-post-content figure img {
  border-radius: 14px;
}

body.single-post .zley-post-content figcaption {
  margin-top: 10px;
  color: var(--zley-r-muted) !important;
  font-size: 12px;
  line-height: 1.55;
}

body.single-post .zley-post-content .wp-block-table {
  max-width: 100%;
  overflow-x: auto;
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px var(--zley-r-line);
}

body.single-post .zley-post-content table {
  width: 100%;
  min-width: 620px;
  margin: 0;
  border: 0;
  border-collapse: collapse;
  color: var(--zley-r-copy) !important;
  font-size: 14px;
}

body.single-post .zley-post-content th,
body.single-post .zley-post-content td {
  padding: 15px 16px;
  border: 0;
  border-bottom: 1px solid var(--zley-r-line);
  color: var(--zley-r-copy) !important;
  text-align: left;
  vertical-align: top;
}

body.single-post .zley-post-content tr:last-child td {
  border-bottom: 0;
}

body.single-post .zley-post-content th {
  background: #eee8f2;
  color: var(--zley-r-ink) !important;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .025em;
}

body.single-post .zley-post-content code,
body.single-post .zley-post-content pre {
  color: #332b3b !important;
  background: #f0ecf2;
}

body.single-post .zley-post-content mark {
  color: var(--zley-r-ink) !important;
  background: #eadff1;
}

body.single-post .zley-post-sidebar {
  position: sticky;
  top: 118px;
}

body.single-post .zley-info-panel {
  overflow: hidden;
  padding: 28px;
  border: 1px solid rgba(92, 61, 125, .17);
  border-top: 3px solid var(--zley-r-purple);
  border-radius: 0 0 18px 18px;
  background: linear-gradient(145deg, #f1ebf4, #faf8fb);
  box-shadow: 0 18px 48px rgba(54, 34, 70, .07);
}

body.single-post .zley-panel-title {
  margin: 0 0 18px;
  color: var(--zley-r-ink) !important;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
}

body.single-post .zley-panel-list {
  margin: 0 0 25px;
  padding: 0;
}

body.single-post .zley-panel-list li {
  position: relative;
  padding: 12px 0 12px 20px;
  border-bottom: 1px solid rgba(92, 61, 125, .12);
  color: var(--zley-r-copy) !important;
  font-size: 13px;
  line-height: 1.55;
}

body.single-post .zley-panel-list li::before {
  content: "";
  position: absolute;
  top: 19px;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--zley-r-lilac);
}

body.single-post .zley-panel-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 13px 18px;
  border: 1px solid var(--zley-r-purple);
  border-radius: 999px;
  background: var(--zley-r-purple);
  color: #fff !important;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  transition: background .25s ease, color .25s ease, transform .25s ease;
}

body.single-post .zley-panel-button:hover,
body.single-post .zley-panel-button:focus {
  background: var(--zley-r-purple-dark);
  color: #fff !important;
  transform: translateY(-2px);
}

/* ================================================================
   RESPONSIVE CONSOLIDATION
================================================================ */

@media (max-width: 1040px) {
  :where(body.blog, body.category, body.tag) #main > .ast-row,
  body.tax-product_cat .elementor-widget-wc-archive-products ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  :where(body.blog, body.category, body.tag) #main article.ast-article-post:first-child {
    grid-column: span 2;
  }

  body.single-post .zley-post-layout {
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 48px;
  }
}

@media (max-width: 820px) {
  :where(body.blog, body.category, body.tag) .ast-archive-entry-banner .ast-container,
  body.tax-product_cat .elementor-location-archive > .e-con:first-child > .e-con-inner {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  body.tax-product_cat .elementor-widget-breadcrumbs,
  body.tax-product_cat .elementor-widget-wc-archive-products {
    grid-column: 1;
  }

  body.tax-product_cat .elementor-widget-theme-archive-title .elementor-heading-title::before {
    margin-bottom: 13px;
  }

  body.single-post .zley-post-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  body.single-post .zley-post-sidebar {
    position: static;
  }
}

@media (max-width: 680px) {
  :where(body.blog, body.category, body.tag) .ast-archive-entry-banner {
    padding-block: 54px !important;
  }

  :where(body.blog, body.category, body.tag) .ast-archive-entry-banner h1 {
    font-size: 44px !important;
  }

  :where(body.blog, body.category, body.tag) #main > .ast-row,
  body.tax-product_cat .elementor-widget-wc-archive-products ul.products {
    grid-template-columns: 1fr !important;
  }

  :where(body.blog, body.category, body.tag) #main article.ast-article-post:first-child {
    grid-column: auto;
  }

  :where(body.blog, body.category, body.tag) article.ast-article-post .entry-title {
    padding: 23px 22px 0 !important;
  }

  :where(body.blog, body.category, body.tag) article.ast-article-post .ast-excerpt-container {
    margin-inline: 22px !important;
  }

  :where(body.blog, body.category, body.tag) article.ast-article-post .ast-read-more-container {
    margin: auto 22px 25px !important;
  }

  body.tax-product_cat .elementor-location-archive > .e-con:first-child > .e-con-inner {
    padding-top: 44px !important;
  }

  body.tax-product_cat .elementor-widget-theme-archive-title .elementor-heading-title {
    font-size: 43px !important;
  }

  body.tax-product_cat li.product .read-more-button {
    opacity: 1;
    transform: none;
  }

  body.single-post .zley-post-title {
    font-size: 36px;
    line-height: 1.12;
  }

  body.single-post .zley-post-meta span {
    display: block;
    margin-top: 8px;
  }

  body.single-post .zley-post-meta span + span::before {
    content: none;
    display: none;
  }

  body.single-post .zley-post-content h2 {
    font-size: 27px;
  }

  body.single-post .zley-post-content .wp-block-table {
    margin-right: calc(var(--zley-r-gutter) * -1);
    padding-right: var(--zley-r-gutter);
    border-radius: 12px 0 0 12px;
  }

  body.single-post .zley-info-panel {
    padding: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  :where(body.blog, body.category, body.tag, body.tax-product_cat, body.single-post) *,
  :where(body.blog, body.category, body.tag, body.tax-product_cat, body.single-post) *::before,
  :where(body.blog, body.category, body.tag, body.tax-product_cat, body.single-post) *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
