.zhengems-catalog-grid,
.zhengems-category-grid,
.zhengems-category-intro,
.zhengems-lightbox,
.zhengems-stone-detail {
  --zhengems-paper: #f7f5f0;
  --zhengems-ink: #121310;
  --zhengems-olive: #303a13;
  --zhengems-gold: #a49656;
  --zhengems-line: #d8d5cd;
  --zhengems-muted: #777873;
}

.zhengems-category-intro {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
  align-items: stretch;
  margin-block: 1.5rem clamp(3rem, 6vw, 5rem);
  background: var(--zhengems-paper);
  border-top: 1px solid var(--zhengems-gold);
}

.zhengems-category-intro__copy {
  display: flex;
  min-height: 20rem;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 5.5vw, 5rem);
}

.zhengems-category-intro h1 {
  margin: 0;
  color: var(--zhengems-ink);
  font-family: var(--wp--preset--font-family--display, "Bodoni Moda", Georgia, serif);
  font-size: clamp(3rem, 6vw, 6rem);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: .94;
}

.zhengems-category-intro__description {
  max-width: 34rem;
  margin-top: 1.25rem;
  color: var(--zhengems-muted);
  line-height: 1.75;
}

.zhengems-category-intro__description > :first-child { margin-top: 0; }
.zhengems-category-intro__description > :last-child { margin-bottom: 0; }

.zhengems-category-intro__image {
  min-height: 20rem;
  margin: 0;
}

.zhengems-category-intro__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.zhengems-catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 3.75vw, 3.75rem) clamp(1rem, 2vw, 2rem);
  margin-block: 1.5rem clamp(3.5rem, 6vw, 5rem);
}

@supports selector(.zhengems-catalog-grid:has(> .zhengems-stone-card:only-child)) {
  .zhengems-catalog-grid:has(> .zhengems-stone-card:only-child) {
    grid-template-columns: 1fr;
  }

  .zhengems-catalog-grid > .zhengems-stone-card:only-child {
    width: min(100%, 25rem);
    justify-self: center;
  }
}

.zhengems-stone-card {
  min-width: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.zhengems-stone-card__image {
  display: block;
  overflow: hidden;
  aspect-ratio: 1.65 / 1;
  background: var(--zhengems-paper);
}

.zhengems-stone-card__image img,
.zhengems-category-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms cubic-bezier(.2, .7, .2, 1);
}

.zhengems-stone-card__image:hover img,
.zhengems-stone-card__image:focus-visible img,
.zhengems-category-card a:hover img,
.zhengems-category-card a:focus-visible img {
  transform: scale(1.025);
}

.zhengems-product-placeholder {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  background:
    linear-gradient(135deg, transparent 49.75%, var(--zhengems-line) 50%, transparent 50.25%),
    var(--zhengems-paper);
}

.zhengems-category-card .zhengems-product-placeholder {
  display: grid;
  place-items: center;
  background: #e4e0d5;
}

.zhengems-category-card .zhengems-product-placeholder > span {
  color: rgba(18, 19, 16, .38);
  font-family: "Bodoni Moda", Bodoni, serif;
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 500;
  line-height: 1;
}

.zhengems-category-card:nth-child(6n + 1) .zhengems-product-placeholder { background: #d9e0e5; }
.zhengems-category-card:nth-child(6n + 2) .zhengems-product-placeholder { background: #e5d6d2; }
.zhengems-category-card:nth-child(6n + 3) .zhengems-product-placeholder { background: #ddd3d7; }
.zhengems-category-card:nth-child(6n + 4) .zhengems-product-placeholder { background: #d5dfd1; }
.zhengems-category-card:nth-child(6n + 5) .zhengems-product-placeholder { background: #d1ddd7; }
.zhengems-category-card:nth-child(6n) .zhengems-product-placeholder { background: #ddd8e2; }

.zhengems-stone-card__body {
  padding: .9rem 0 0;
}

.zhengems-stone-card__eyebrow,
.zhengems-stone__eyebrow {
  margin: 0 0 .45rem;
  color: var(--zhengems-gold);
  font-size: .7rem;
  font-weight: 650;
  letter-spacing: .17em;
  line-height: 1.4;
  text-transform: uppercase;
}

.zhengems-stone-card h3 {
  margin: 0;
  color: var(--zhengems-ink);
  font-family: var(--wp--preset--font-family--display, "Bodoni Moda", Georgia, serif);
  font-size: clamp(1.3rem, 1.7vw, 1.75rem);
  font-weight: 500;
  line-height: 1.08;
}

.zhengems-stone-card h3 a,
.zhengems-category-card a {
  color: inherit;
  text-decoration: none;
}

.zhengems-stone-card__meta {
  margin: .55rem 0 0;
  color: var(--zhengems-muted);
  font-size: .78rem;
  line-height: 1.55;
}

.zhengems-stone-card .mmu-product-card-link {
  margin: .45rem 0 0;
}

.zhengems-stone-card .mmu-product-card-link a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  color: var(--zhengems-olive);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-decoration: none;
  text-transform: uppercase;
}

.zhengems-stone-card .mmu-product-card-link a:hover,
.zhengems-stone-card .mmu-product-card-link a:focus-visible {
  color: var(--zhengems-gold);
}

.zhengems-category-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  margin-block: 1.5rem 0;
  background: var(--zhengems-line);
  border: 1px solid var(--zhengems-line);
}

.zhengems-category-card {
  min-width: 0;
  background: #fff;
}

.zhengems-category-card a {
  display: flex;
  min-height: 100%;
  flex-direction: column;
}

.zhengems-category-card__image {
  display: block;
  overflow: hidden;
  aspect-ratio: 152 / 135;
  background: var(--zhengems-paper);
}

.zhengems-category-card__name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  min-height: 2.4rem;
  padding: 0;
  color: var(--zhengems-ink);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.35;
  text-transform: uppercase;
}

.zhengems-category-card__body {
  display: flex;
  min-height: 9rem;
  flex: 1;
  flex-direction: column;
  padding: 1rem .9rem;
}

.zhengems-category-card__description {
  display: block;
  min-height: 3.75rem;
  margin-top: .3rem;
  color: var(--zhengems-muted);
  font-size: .76rem;
  line-height: 1.55;
}

.zhengems-category-card__link {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: flex-end;
  margin-top: auto;
  color: var(--zhengems-ink);
  font-size: .62rem;
  font-weight: 650;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.zhengems-stone-detail {
  width: min(100% - 2rem, 1120px);
  margin: clamp(1.25rem, 3vw, 3rem) auto clamp(4rem, 7vw, 7rem);
  color: var(--zhengems-ink);
}

.zhengems-stone-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-bottom: 1.25rem;
  color: var(--zhengems-muted);
  font-size: .68rem;
  font-weight: 650;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.zhengems-stone-breadcrumb a {
  color: var(--zhengems-olive);
  text-decoration: none;
}

.zhengems-stone-detail__hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(20rem, .85fr);
  align-items: start;
  gap: clamp(2rem, 4.5vw, 4.25rem);
}

.zhengems-stone-gallery {
  position: relative;
  min-width: 0;
  margin: 0;
}

.zhengems-stone-gallery__track {
  position: relative;
  overflow: hidden;
  aspect-ratio: 539 / 523;
  background: var(--zhengems-paper);
  touch-action: pan-y;
}

.zhengems-stone-gallery__track .mmu-product-gallery__slide {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  visibility: hidden;
  opacity: 0;
  z-index: 0;
  pointer-events: none;
  cursor: zoom-in;
  text-decoration: none;
  transition: none;
}

.zhengems-stone-gallery__track .mmu-product-gallery__slide.is-active {
  position: relative;
  visibility: visible;
  opacity: 1;
  z-index: 1;
  pointer-events: auto;
}

.zhengems-stone-gallery__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.zhengems-stone-gallery__zoom {
  position: absolute;
  z-index: 3;
  top: 0;
  right: 0;
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  color: var(--zhengems-ink);
  background: rgba(247, 245, 240, .94);
  border: 0;
  border-radius: 0;
  text-decoration: none;
}

.zhengems-stone-gallery__zoom:hover,
.zhengems-stone-gallery__zoom:focus-visible {
  color: #fff;
  background: var(--zhengems-olive);
}

.zhengems-stone-gallery .mmu-product-gallery__arrow {
  position: absolute;
  z-index: 2;
  top: calc(50% - 2.1rem);
  display: grid;
  width: 3rem;
  height: 3rem;
  padding: 0;
  place-items: center;
  color: var(--zhengems-ink);
  background: rgba(247, 245, 240, .9);
  border: 0;
  border-radius: 0;
  cursor: pointer;
}

.zhengems-stone-gallery .mmu-product-gallery__arrow--previous { left: 0; }
.zhengems-stone-gallery .mmu-product-gallery__arrow--next { right: 0; }

.zhengems-stone-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 5rem));
  gap: .65rem;
  margin-top: .75rem;
}

.zhengems-stone-gallery__thumbs button {
  overflow: hidden;
  padding: 0;
  aspect-ratio: 1;
  background: var(--zhengems-paper);
  border: 1px solid transparent;
  border-radius: 0;
  cursor: pointer;
  touch-action: manipulation;
}

.zhengems-stone-gallery__thumbs button[aria-pressed="true"] {
  border-color: var(--zhengems-gold);
}

.zhengems-stone-gallery__thumbs img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.zhengems-lightbox-open { overflow: hidden; }

.zhengems-screen-reader-text {
  position: absolute !important;
  overflow: hidden;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  border: 0;
  white-space: nowrap;
}

.zhengems-lightbox {
  position: fixed;
  inset: 0;
  width: 100vw;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  color: #fff;
  background: rgba(12, 14, 10, .94);
  border: 0;
}

.zhengems-lightbox::backdrop { background: rgba(12, 14, 10, .82); }

.zhengems-lightbox__panel {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  grid-template-columns: clamp(3rem, 7vw, 6rem) minmax(0, 1fr) clamp(3rem, 7vw, 6rem);
  align-items: center;
}

.zhengems-lightbox__stage {
  display: grid;
  min-width: 0;
  height: 100%;
  max-height: 100vh;
  max-height: 100dvh;
  grid-column: 2;
  grid-template-rows: minmax(0, 1fr) auto;
  place-items: center;
  padding: clamp(3.5rem, 7vw, 6rem) 0 1.25rem;
}

.zhengems-lightbox__stage img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 8rem);
  max-height: calc(100dvh - 8rem);
  object-fit: contain;
}

.zhengems-lightbox__counter {
  margin: 1rem 0 0;
  color: rgba(255, 255, 255, .74);
  font-size: .68rem;
  font-weight: 650;
  letter-spacing: .16em;
}

.zhengems-lightbox__close,
.zhengems-lightbox__previous,
.zhengems-lightbox__next {
  z-index: 2;
  display: grid;
  width: 3rem;
  height: 3rem;
  padding: 0;
  place-items: center;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 0;
  cursor: pointer;
}

.zhengems-lightbox__close:hover,
.zhengems-lightbox__close:focus-visible,
.zhengems-lightbox__previous:hover,
.zhengems-lightbox__previous:focus-visible,
.zhengems-lightbox__next:hover,
.zhengems-lightbox__next:focus-visible {
  color: var(--zhengems-ink);
  background: var(--zhengems-paper);
  border-color: var(--zhengems-paper);
}

.zhengems-lightbox__close {
  position: absolute;
  top: clamp(1rem, 2.5vw, 2rem);
  right: clamp(1rem, 2.5vw, 2rem);
  font-size: 1.75rem;
  font-weight: 300;
  line-height: 1;
}

.zhengems-lightbox__previous { grid-column: 1; justify-self: center; }
.zhengems-lightbox__next { grid-column: 3; justify-self: center; }

.zhengems-stone-detail__summary {
  position: sticky;
  top: 7rem;
  padding-top: clamp(.25rem, 2vw, 1.5rem);
}

.zhengems-stone-detail__summary h1 {
  margin: 0;
  font-family: var(--wp--preset--font-family--display, "Bodoni Moda", Georgia, serif);
  font-size: clamp(2.5rem, 4.4vw, 4.6rem);
  font-weight: 400;
  letter-spacing: -.025em;
  line-height: 1;
  overflow-wrap: anywhere;
}

.zhengems-stone-detail__intro {
  max-width: 36rem;
  margin: 1.1rem 0 0;
  color: var(--zhengems-muted);
  font-size: 1rem;
  line-height: 1.75;
}

.zhengems-stone-specs {
  margin: 1.5rem 0 0;
  border-top: 1px solid var(--zhengems-line);
}

.zhengems-stone-specs > div {
  display: grid;
  grid-template-columns: minmax(7.5rem, .7fr) 1fr;
  gap: 1rem;
  padding: .68rem 0;
  border-bottom: 1px solid var(--zhengems-line);
}

.zhengems-stone-specs dt,
.zhengems-stone-specs dd {
  margin: 0;
  font-size: .78rem;
  line-height: 1.5;
}

.zhengems-stone-specs dt {
  color: var(--zhengems-muted);
  font-weight: 650;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.zhengems-stone-specs dd {
  color: var(--zhengems-ink);
  overflow-wrap: anywhere;
}

.zhengems-stone-detail__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .65rem;
  margin-top: 1.4rem;
}

.zhengems-stone-inquiry {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-width: min(100%, 22rem);
  min-height: 3rem;
  padding: 1rem 1.15rem;
  color: #fff;
  background: var(--zhengems-olive);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-decoration: none;
  text-transform: uppercase;
}

.zhengems-stone-inquiry:hover,
.zhengems-stone-inquiry:focus-visible { background: var(--zhengems-gold); color: #fff; }

.zhengems-stone-secondary-link {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  color: var(--zhengems-olive);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .11em;
  text-decoration: none;
  text-transform: uppercase;
}

.zhengems-stone-about,
.zhengems-stone-related {
  margin-top: clamp(3.5rem, 6vw, 6rem);
  padding-top: clamp(2rem, 3.5vw, 3.5rem);
  border-top: 1px solid var(--zhengems-line);
}

.zhengems-stone-about h2,
.zhengems-stone-related h2 {
  max-width: 48rem;
  margin: 0;
  font-family: var(--wp--preset--font-family--display, "Bodoni Moda", Georgia, serif);
  font-size: clamp(2.2rem, 4.5vw, 4.5rem);
  font-weight: 400;
  line-height: 1.05;
}

.zhengems-stone-about__content {
  max-width: 48rem;
  margin-top: 1.5rem;
  color: var(--zhengems-muted);
  font-size: 1rem;
  line-height: 1.8;
}

.zhengems-catalog-grid--related { margin-bottom: 0; }

.single-mmu_product .wp-block-post-title,
.single-mmu_product .wp-block-post-featured-image { display: none; }

@media (max-width: 960px) {
  .zhengems-catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .zhengems-category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .zhengems-stone-detail__hero { grid-template-columns: 1fr; }
  .zhengems-stone-detail__summary { position: static; padding-top: 0; }
}

@media (max-width: 768px) {
  .zhengems-category-intro__copy,
  .zhengems-category-intro__image { min-height: 18rem; }
  .zhengems-category-intro__copy { padding: clamp(2rem, 8vw, 3.5rem); }
  .zhengems-catalog-grid { gap: 2.25rem 1rem; }
  .zhengems-stone-detail {
    width: min(100% - 1.5rem, 46rem);
    margin-bottom: 5rem;
  }
  .zhengems-stone-detail__hero { gap: 2rem; }
  .zhengems-stone-detail__summary h1 { font-size: clamp(2.5rem, 9vw, 4rem); }
  .zhengems-stone-about,
  .zhengems-stone-related { margin-top: 4rem; padding-top: 2.5rem; }
}

@media (max-width: 430px) {
  .zhengems-catalog-grid { grid-template-columns: 1fr; }
  .zhengems-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .zhengems-category-card__body { min-height: 4.4rem; padding: .75rem .65rem; }
  .zhengems-category-card__description,
  .zhengems-category-card__link { display: none; }
  .zhengems-category-intro { margin-block: 1rem 3rem; }
  .zhengems-category-intro__copy,
  .zhengems-category-intro__image { min-height: 16rem; }
  .zhengems-category-intro__copy { padding: 2rem 1.25rem; }
  .zhengems-category-intro h1 { font-size: clamp(2.55rem, 14vw, 3.5rem); }
  .zhengems-category-intro__description { line-height: 1.65; }
  .zhengems-catalog-grid {
    gap: 2.25rem;
    margin-block: 1.25rem 3.5rem;
  }
  .zhengems-stone-card__body { padding-top: .8rem; }
  .zhengems-stone-card h3 { font-size: clamp(1.35rem, 7vw, 1.65rem); }
  .zhengems-stone-detail {
    width: min(100% - 1.25rem, 1120px);
    margin: 1rem auto 4rem;
  }
  .zhengems-stone-breadcrumb {
    gap: .45rem;
    margin-bottom: 1rem;
    letter-spacing: .1em;
  }
  .zhengems-stone-detail__hero { gap: 1.5rem; }
  .zhengems-stone-gallery__thumbs { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .zhengems-stone-detail__summary h1 { font-size: clamp(2.2rem, 12vw, 3rem); }
  .zhengems-stone-detail__intro { font-size: .95rem; line-height: 1.65; }
  .zhengems-stone-specs { margin-top: 1.25rem; }
  .zhengems-stone-specs > div {
    grid-template-columns: minmax(6.5rem, .85fr) minmax(0, 1.15fr);
    gap: .75rem;
    padding: .65rem 0;
  }
  .zhengems-stone-detail__actions {
    align-items: stretch;
    margin-top: 1.25rem;
  }
  .zhengems-stone-inquiry {
    width: 100%;
    min-width: 0;
  }
  .zhengems-stone-about,
  .zhengems-stone-related { margin-top: 3rem; padding-top: 2rem; }
  .zhengems-stone-about h2,
  .zhengems-stone-related h2 { font-size: clamp(2rem, 11vw, 2.8rem); }
  .zhengems-stone-about__content { margin-top: 1.15rem; line-height: 1.7; }
  .zhengems-lightbox__panel { grid-template-columns: 1fr; }
  .zhengems-lightbox__stage {
    grid-column: 1;
    grid-row: 1;
    padding: 4.5rem 1rem 1rem;
  }
  .zhengems-lightbox__stage img {
    max-height: calc(100vh - 7.5rem);
    max-height: calc(100dvh - 7.5rem);
  }
  .zhengems-lightbox__previous,
  .zhengems-lightbox__next {
    position: absolute;
    top: calc(50% - 1.5rem);
    background: rgba(12, 14, 10, .56);
  }
  .zhengems-lightbox__previous { left: .5rem; }
  .zhengems-lightbox__next { right: .5rem; }
}

@media (max-width: 360px) {
  .zhengems-stone-detail { width: min(100% - 1rem, 1120px); }
  .zhengems-category-card__name {
    padding: .75rem .6rem;
    font-size: .63rem;
    letter-spacing: .09em;
  }
  .zhengems-stone-gallery__thumbs { gap: .4rem; margin-top: .5rem; }
  .zhengems-stone-specs > div { grid-template-columns: minmax(6rem, .8fr) minmax(0, 1.2fr); }
}

@media (max-width: 320px) {
  .zhengems-stone-breadcrumb { font-size: .63rem; }
  .zhengems-stone-specs > div {
    grid-template-columns: 1fr;
    gap: .2rem;
  }
  .zhengems-stone-inquiry { gap: 1rem; padding-inline: .9rem; }
}

@media (hover: none), (pointer: coarse) {
  .zhengems-stone-card__image:hover img,
  .zhengems-stone-card__image:focus-visible img,
  .zhengems-category-card a:hover img,
  .zhengems-category-card a:focus-visible img { transform: none; }

  .zhengems-stone-gallery__zoom,
  .zhengems-stone-gallery .mmu-product-gallery__arrow,
  .zhengems-lightbox__close,
  .zhengems-lightbox__previous,
  .zhengems-lightbox__next { min-width: 3rem; min-height: 3rem; }
}

@media (prefers-reduced-motion: reduce) {
  .zhengems-stone-card__image img,
  .zhengems-category-card__image img,
  .zhengems-stone-gallery__track .mmu-product-gallery__slide { transition: none; }
}

/* Reference-aligned taxonomy and single-product presentation (v1.4). */
.zhengems-catalog-toolbar,
.zhengems-category-story,
.zhengems-stone-trust {
  --zhengems-paper: #f7f5f0;
  --zhengems-ink: #121310;
  --zhengems-olive: #303a13;
  --zhengems-gold: #a77f3f;
  --zhengems-line: #d8d5cd;
  --zhengems-muted: #70716d;
}

.tax-zhengems_product_category .zhengems-category-intro {
  display: block;
  width: var(--zg-inner-wide, min(calc(100% - clamp(2.5rem, 8vw, 6rem)), 100rem));
  max-width: none !important;
  margin: clamp(1.75rem, 4vw, 3.25rem) auto clamp(1.75rem, 3vw, 2.5rem);
  background: transparent;
  border: 0;
}

.tax-zhengems_product_category .zhengems-category-intro__copy {
  min-height: 0;
  align-items: center;
  padding: clamp(2.4rem, 5.5vw, 4.75rem) 1rem clamp(2.2rem, 4vw, 3.6rem);
  text-align: center;
}

.zhengems-category-intro__overline {
  margin: 0 0 .9rem;
  color: var(--zhengems-gold);
  font-size: clamp(.72rem, 1.05vw, .88rem);
  font-weight: 500;
  letter-spacing: .13em;
  line-height: 1.35;
  text-transform: uppercase;
}

.tax-zhengems_product_category .zhengems-category-intro h1 {
  max-width: 100%;
  font-size: clamp(3.6rem, 7vw, 5.75rem);
  letter-spacing: .09em;
  line-height: .96;
  text-transform: uppercase;
}

.zhengems-category-intro__divider {
  position: relative;
  display: block;
  width: 10rem;
  height: 1px;
  margin: 1.55rem auto 1.35rem;
  background: linear-gradient(to right, var(--zhengems-gold) 0 42%, transparent 42% 58%, var(--zhengems-gold) 58% 100%);
}

.zhengems-category-intro__divider::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: .48rem;
  height: .48rem;
  content: "";
  background: var(--zhengems-gold);
  transform: translate(-50%, -50%) rotate(45deg);
}

.tax-zhengems_product_category .zhengems-category-intro__description {
  max-width: 41rem;
  margin: 0 auto;
  color: var(--zhengems-ink);
  font-size: clamp(.92rem, 1.25vw, 1.04rem);
  line-height: 1.62;
}

.zhengems-catalog-toolbar {
  display: flex;
  width: var(--zg-inner-wide, min(calc(100% - clamp(2.5rem, 8vw, 6rem)), 100rem));
  max-width: none !important;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 auto;
  padding-top: 1.45rem;
  border-top: 1px solid var(--zhengems-line);
}

.zhengems-catalog-toolbar p {
  margin: 0;
  color: var(--zhengems-ink);
  font-family: var(--wp--preset--font-family--display, "Bodoni Moda", Georgia, serif);
  font-size: .86rem;
  letter-spacing: .12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.zhengems-catalog-toolbar p:last-child {
  color: var(--zhengems-muted);
  font-family: inherit;
  font-size: .72rem;
  letter-spacing: 0;
  text-transform: none;
}

.tax-zhengems_product_category .zhengems-catalog-grid {
  width: var(--zg-inner-wide, min(calc(100% - clamp(2.5rem, 8vw, 6rem)), 100rem));
  max-width: none !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.9rem, 3vw, 2.9rem) clamp(1rem, 2vw, 1.55rem);
  margin: 1.2rem auto clamp(3.25rem, 6vw, 5.25rem);
}

.zhengems-stone-card--taxonomy .zhengems-stone-card__image {
  aspect-ratio: 3 / 2;
  background: #f1efeb;
}

body:not(.home) .zhengems-catalog-grid:not(.zhengems-catalog-grid--related) .zhengems-stone-card__image {
  aspect-ratio: 3 / 2;
  background: #f1efeb;
}

.zhengems-stone-card--taxonomy .zhengems-stone-card__image img {
  padding: .35rem;
  object-fit: contain;
}

body:not(.home) .zhengems-catalog-grid:not(.zhengems-catalog-grid--related) .zhengems-stone-card__image img {
  padding: .35rem;
  object-fit: contain;
}

.zhengems-stone-card--taxonomy .zhengems-stone-card__body {
  padding-top: .82rem;
}

.zhengems-stone-card--taxonomy h3 {
  font-family: inherit;
  font-size: clamp(.78rem, 1vw, .9rem);
  font-weight: 500;
  letter-spacing: .055em;
  line-height: 1.42;
  text-transform: uppercase;
}

.zhengems-stone-card--taxonomy h3 a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.zhengems-stone-card__arrow {
  flex: 0 0 auto;
  color: var(--zhengems-gold);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1;
}

.zhengems-stone-card--taxonomy .zhengems-stone-card__meta {
  margin-top: .3rem;
  color: var(--zhengems-muted);
  font-size: .75rem;
  line-height: 1.5;
}

.zhengems-category-story {
  display: grid;
  width: var(--zg-inner-wide, min(calc(100% - clamp(2.5rem, 8vw, 6rem)), 100rem));
  max-width: none !important;
  grid-template-columns: minmax(15rem, .86fr) minmax(0, 2fr);
  align-items: stretch;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin: 0 auto clamp(3.5rem, 6vw, 5.5rem);
  padding: clamp(1.1rem, 2vw, 1.4rem);
  background: #f1eee9;
}

.zhengems-category-story__copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
}

.zhengems-category-story h2 {
  position: relative;
  margin: 0;
  color: var(--zhengems-ink);
  font-family: var(--wp--preset--font-family--display, "Bodoni Moda", Georgia, serif);
  font-size: .88rem;
  font-weight: 500;
  letter-spacing: .1em;
  line-height: 1.45;
  text-transform: uppercase;
}

.zhengems-category-story h2::after {
  display: inline-block;
  width: 1.8rem;
  height: 1px;
  margin-left: .8rem;
  content: "";
  vertical-align: middle;
  background: var(--zhengems-gold);
}

.zhengems-category-story__body {
  max-width: 24rem;
  margin-top: 1.35rem;
  color: var(--zhengems-ink);
  font-size: .83rem;
  line-height: 1.7;
}

.zhengems-category-story__body > :first-child { margin-top: 0; }
.zhengems-category-story__body > :last-child { margin-bottom: 0; }

.zhengems-category-story__cta { margin: 1.45rem 0 0; }

.zhengems-category-story__cta a {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  color: var(--zhengems-gold);
  font-size: .7rem;
  font-weight: 650;
  letter-spacing: .11em;
  line-height: 1.4;
  text-decoration: none;
  text-transform: uppercase;
}

.zhengems-category-story__gallery {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .55rem;
}

.zhengems-category-story__gallery figure {
  overflow: hidden;
  min-height: 8.5rem;
  margin: 0;
  background: #e8e5df;
}

.zhengems-category-story__gallery img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.single-mmu_product .zhengems-stone-detail {
  width: var(--zg-inner-wide, min(calc(100% - clamp(2.5rem, 8vw, 6rem)), 100rem));
  max-width: none;
  margin: clamp(1.5rem, 3vw, 3rem) auto clamp(4rem, 7vw, 7rem);
}

.single-mmu_product .zhengems-stone-breadcrumb {
  margin-bottom: 1.8rem;
  font-size: .7rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.single-mmu_product .zhengems-stone-detail__hero {
  grid-template-columns: minmax(0, 58fr) minmax(20rem, 42fr);
  gap: clamp(2.25rem, 4.75vw, 4.4rem);
}

.single-mmu_product .zhengems-stone-gallery__track {
  aspect-ratio: 1.03 / 1;
  background: #f1efeb;
}

.single-mmu_product .zhengems-stone-gallery__zoom {
  top: 1rem;
  right: 1rem;
  width: 2.7rem;
  height: 2.7rem;
  color: var(--zhengems-gold);
  background: rgba(247, 245, 240, .78);
  border: 1px solid var(--zhengems-gold);
  border-radius: 50%;
}

.single-mmu_product .zhengems-stone-gallery .mmu-product-gallery__arrow {
  display: none;
}

.single-mmu_product .zhengems-stone-gallery__image {
  padding: clamp(.35rem, 1.2vw, .85rem);
  object-fit: contain;
}

.single-mmu_product .zhengems-stone-gallery__thumbs {
  overflow-x: auto;
  grid-template-columns: none;
  grid-auto-columns: calc((100% - 2.4rem) / 4);
  grid-auto-flow: column;
  gap: .8rem;
  margin-top: .8rem;
  padding-bottom: .15rem;
  scroll-snap-type: x proximity;
}

.single-mmu_product .zhengems-stone-gallery__thumbs button {
  background: #f1efeb;
  scroll-snap-align: start;
}

.single-mmu_product .zhengems-stone-gallery__thumbs img {
  padding: .2rem;
  object-fit: contain;
}

.single-mmu_product .zhengems-stone-detail__summary {
  padding-top: .8rem;
}

.single-mmu_product .zhengems-stone-detail__summary h1 {
  font-size: clamp(2.65rem, 4.65vw, 4.6rem);
  letter-spacing: .035em;
  line-height: 1.02;
  text-transform: uppercase;
}

.single-mmu_product .zhengems-stone-detail__intro {
  margin-top: 1rem;
  color: var(--zhengems-ink);
  font-size: .95rem;
  line-height: 1.6;
}

.single-mmu_product .zhengems-stone-specs {
  position: relative;
  margin-top: 1.65rem;
  border-top-color: var(--zhengems-gold);
}

.single-mmu_product .zhengems-stone-specs::before {
  position: absolute;
  top: 0;
  left: 50%;
  width: .45rem;
  height: .45rem;
  content: "";
  background: var(--zhengems-gold);
  transform: translate(-50%, -50%) rotate(45deg);
}

.single-mmu_product .zhengems-stone-specs > div {
  grid-template-columns: minmax(7.4rem, .8fr) 1fr;
  padding: .72rem 0;
}

.single-mmu_product .zhengems-stone-inquiry {
  width: 100%;
  min-width: 0;
  min-height: 3.6rem;
  padding-inline: 1.45rem;
}

.zhengems-stone-trust {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1.55rem;
  border-top: 1px solid var(--zhengems-line);
}

.zhengems-stone-trust[data-count="1"] { grid-template-columns: 1fr; }
.zhengems-stone-trust[data-count="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.zhengems-stone-trust__item {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: 1.15rem .55rem .15rem;
  color: var(--zhengems-ink);
  font-size: .72rem;
  line-height: 1.35;
  text-align: center;
  overflow-wrap: anywhere;
}

.zhengems-stone-trust__item + .zhengems-stone-trust__item {
  border-left: 1px solid var(--zhengems-line);
}

.zhengems-stone-trust__mark {
  flex: 0 0 auto;
  color: var(--zhengems-gold);
  font-size: 1.1rem;
}

.single-mmu_product .zhengems-stone-about {
  margin-top: clamp(3.5rem, 6vw, 5.5rem);
  padding-top: 0;
  border-top: 0;
}

.single-mmu_product .zhengems-stone-about h2 {
  color: var(--zhengems-gold);
  font-family: inherit;
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .1em;
  line-height: 1.4;
  text-transform: uppercase;
}

.single-mmu_product .zhengems-stone-about h2::after {
  display: inline-block;
  width: 1.8rem;
  height: 1px;
  margin-left: .75rem;
  content: "";
  vertical-align: middle;
  background: var(--zhengems-gold);
}

.single-mmu_product .zhengems-stone-about__content {
  max-width: 62rem;
  margin-top: 1.2rem;
  color: var(--zhengems-ink);
  font-size: .9rem;
  line-height: 1.75;
}

.single-mmu_product .zhengems-stone-related {
  width: min(90%, 82rem);
  margin-top: clamp(2.75rem, 5vw, 4.5rem);
  margin-inline: auto;
  padding-top: clamp(2.25rem, 4vw, 3.25rem);
}

.single-mmu_product .zhengems-stone-related h2 {
  position: relative;
  max-width: none;
  margin: 0 auto 2.4rem;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  letter-spacing: .12em;
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
}

.single-mmu_product .zhengems-stone-related h2::after {
  display: block;
  width: 8rem;
  height: 1px;
  margin: 1rem auto 0;
  content: "";
  background: linear-gradient(to right, var(--zhengems-gold) 0 42%, transparent 42% 58%, var(--zhengems-gold) 58% 100%);
}

.single-mmu_product .zhengems-catalog-grid--related {
  overflow-x: auto;
  grid-template-columns: none;
  grid-auto-columns: calc((100% - 3 * clamp(1rem, 2.25vw, 2rem)) / 4);
  grid-auto-flow: column;
  gap: clamp(1rem, 2.25vw, 2rem);
  margin-top: 0;
  margin-bottom: 0;
  padding-bottom: .3rem;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.single-mmu_product .zhengems-catalog-grid--related::-webkit-scrollbar {
  display: none;
}

.single-mmu_product .zhengems-catalog-grid--related > .zhengems-stone-card {
  scroll-snap-align: start;
}

.zhengems-related-carousel {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr) 2.25rem;
  align-items: center;
  gap: clamp(.5rem, 1vw, 1rem);
}

.zhengems-related-carousel > button {
  display: grid;
  width: 2.25rem;
  height: 3rem;
  padding: 0;
  place-items: center;
  color: var(--zhengems-ink);
  background: transparent;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  font-size: 1.45rem;
}

.zhengems-related-carousel > button:disabled {
  cursor: default;
  opacity: .28;
}

.zhengems-related-carousel > button:focus-visible {
  outline: 1px solid var(--zhengems-gold);
  outline-offset: 3px;
}

.single-mmu_product .zhengems-catalog-grid--related .zhengems-stone-card__image {
  aspect-ratio: 1.48 / 1;
}

.single-mmu_product .zhengems-catalog-grid--related .zhengems-stone-card__image img {
  padding: .35rem;
  object-fit: contain;
}

.single-mmu_product .zhengems-catalog-grid--related .zhengems-stone-card h3 {
  font-family: inherit;
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .045em;
  line-height: 1.35;
  text-transform: uppercase;
}

@media (min-width: 961px) {
  @supports selector(.zhengems-catalog-grid:has(> .zhengems-stone-card:only-child)) {
    .tax-zhengems_product_category .zhengems-catalog-grid:has(> .zhengems-stone-card:only-child) {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .tax-zhengems_product_category .zhengems-catalog-grid > .zhengems-stone-card:only-child {
      width: auto;
      justify-self: stretch;
    }
  }
}

@media (max-width: 960px) {
  .tax-zhengems_product_category .zhengems-catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .zhengems-category-story {
    grid-template-columns: 1fr;
  }

  .zhengems-category-story__body { max-width: 42rem; }
  .zhengems-category-story__gallery figure { min-height: clamp(8rem, 18vw, 10.5rem); }

  .single-mmu_product .zhengems-stone-detail__hero {
    grid-template-columns: 1fr;
  }

  .single-mmu_product .zhengems-stone-detail__summary {
    position: static;
    max-width: 42rem;
    padding-top: .5rem;
  }

  .single-mmu_product .zhengems-catalog-grid--related {
    grid-template-columns: none;
    grid-auto-columns: calc((100% - clamp(1rem, 2.25vw, 2rem)) / 2);
  }
}

@media (max-width: 767px) {
  .tax-zhengems_product_category .zhengems-category-intro {
    width: var(--zg-inner-wide, min(calc(100% - 2.5rem), 100rem));
    margin-block: 1rem 1.5rem;
  }

  .tax-zhengems_product_category .zhengems-category-intro__copy {
    padding: 2.65rem .5rem 2.4rem;
  }

  .tax-zhengems_product_category .zhengems-category-intro h1 {
    font-size: clamp(2.9rem, 13vw, 4.5rem);
  }

  .zhengems-catalog-toolbar,
  .tax-zhengems_product_category .zhengems-catalog-grid,
  .zhengems-category-story,
  .single-mmu_product .zhengems-stone-detail {
    width: var(--zg-inner-wide, min(calc(100% - 2.5rem), 100rem));
  }

  .zhengems-catalog-toolbar {
    align-items: flex-start;
  }

  .zhengems-category-story {
    padding: 1.35rem;
  }

  .zhengems-category-story__gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .zhengems-category-story__gallery figure {
    min-height: clamp(8.5rem, 42vw, 14rem);
  }

  .single-mmu_product .zhengems-stone-detail__hero { gap: 2rem; }
  .single-mmu_product .zhengems-stone-gallery__thumbs { gap: .55rem; }

  .zhengems-stone-trust__item {
    flex-direction: column;
    padding-inline: .35rem;
    font-size: .68rem;
  }
}

@media (max-width: 430px) {
  .zhengems-catalog-toolbar {
    flex-direction: column;
    gap: .3rem;
  }

  .tax-zhengems_product_category .zhengems-catalog-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .zhengems-stone-card--taxonomy .zhengems-stone-card__image {
    aspect-ratio: 1.42 / 1;
  }

  .zhengems-category-story__gallery figure {
    min-height: 8rem;
  }

  .single-mmu_product .zhengems-stone-detail {
    width: var(--zg-inner-wide, min(calc(100% - 2.5rem), 100rem));
  }

  .single-mmu_product .zhengems-stone-gallery__thumbs {
    grid-template-columns: none;
    grid-auto-columns: calc((100% - 1.65rem) / 4);
  }

  .single-mmu_product .zhengems-stone-detail__summary h1 {
    font-size: clamp(2.35rem, 12vw, 3.25rem);
  }

  .single-mmu_product .zhengems-stone-specs > div {
    grid-template-columns: minmax(6.5rem, .85fr) minmax(0, 1.15fr);
  }

  .single-mmu_product .zhengems-catalog-grid--related {
    grid-template-columns: none;
    grid-auto-columns: 100%;
  }

  .single-mmu_product .zhengems-stone-related h2 {
    font-size: clamp(1.55rem, 8.5vw, 2rem);
  }
}

.mmu-catalog-note--empty {
  box-sizing: border-box;
  width: var(--zg-inner-wide, min(calc(100% - clamp(2.5rem, 8vw, 6rem)), 100rem));
  margin: clamp(2.5rem, 7vw, 6rem) auto clamp(4rem, 8vw, 7rem);
  padding: clamp(2.2rem, 5vw, 4.5rem);
  color: var(--zhengems-ink);
  background: var(--zhengems-paper);
  border: 1px solid var(--zhengems-line);
  text-align: center;
}

.mmu-catalog-note--empty p {
  margin: 0;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.6;
}

.mmu-catalog-note--empty p + p {
  margin-top: .85rem;
}

.mmu-catalog-note--empty a {
  color: var(--zhengems-olive);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-decoration: none;
  text-transform: uppercase;
}

.mmu-catalog-note--empty .mmu-catalog-note__editor {
  color: var(--zhengems-muted);
  font-size: .75rem;
}

@media (max-width: 767px) {
  .mmu-catalog-note--empty {
    width: var(--zg-inner-wide, min(calc(100% - 2.5rem), 100rem));
  }
}
