.kristall-category-copy { box-sizing:border-box; min-width:0; color:var(--wp--preset--color--ink,#343331); overflow-wrap:anywhere; }
.kristall-category-copy--intro { margin-block:12px 24px; }
.kristall-category-copy--content { margin-block:48px 32px; padding:clamp(20px,3.5vw,48px); border:1px solid #e4dfd8; border-radius:12px; background:#fff; }
.kristall-category-copy :where(p,ul,ol):not(.has-font-size) { font-size:16px; line-height:1.65; }
.kristall-category-copy > :where(p,ul,ol,h2,h3,h4,h5,h6) { max-width:820px; margin-inline:auto; }
.kristall-category-copy :where(p,ul,ol) { margin-block:0 16px; }
.kristall-category-copy :where(h2,h3,h4,h5,h6) { line-height:1.25; margin-block:32px 16px; }
.kristall-category-copy :where(h2):not(.has-font-size) { font-size:clamp(24px,2.3vw,30px); }
.kristall-category-copy :where(h3):not(.has-font-size) { font-size:clamp(20px,1.8vw,22px); }
.kristall-category-copy > :first-child { margin-top:0; }
.kristall-category-copy > :last-child { margin-bottom:0; }
.kristall-category-copy :where(.kristall-content-section) { margin-block:0 32px; padding:0; }
.kristall-category-copy :where(.kristall-content-card), .kristall-content-card { box-sizing:border-box; padding:24px; border:1px solid #e4dfd8; border-radius:12px; background:#f7f5f2; min-width:0; }
.kristall-category-copy :where(.kristall-content-card,.kristall-content-section,.kristall-content-cta) > :first-child { margin-top:0; }
.kristall-category-copy :where(.kristall-content-card,.kristall-content-section,.kristall-content-cta) > :last-child { margin-bottom:0; }
.kristall-content-cta { box-sizing:border-box; padding:clamp(20px,3vw,36px); border-radius:12px; background:#f7f5f2; border:1px solid #e4dfd8; }
.kristall-category-copy :where(.wp-block-table) { overflow-x:auto; }
.kristall-category-copy :where(img) { max-width:100%; height:auto; }
.kristall-cat-subcategories { margin-block:20px 28px; }
.kristall-cat-subcategories-label { font-weight:600; margin:0 0 12px; }
.kristall-cat-subcategories ul { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr)); gap:10px; list-style:none; padding:0; margin:0; }
.kristall-cat-subcategories li { min-width:0; margin:0; }
.kristall-cat-subcategories a { display:flex; justify-content:space-between; align-items:center; gap:12px; height:100%; box-sizing:border-box; padding:12px 16px; border:1px solid #e4dfd8; border-radius:9px; background:#fff; color:#343331; text-decoration:none; line-height:1.4; }
.kristall-cat-subcategories a:hover,.kristall-cat-subcategories a:focus-visible { border-color:#dc6e01; color:#a34f00; }
.kristall-cat-subcategories a span { color:#a34f00; font-size:20px; }
.kristall-cat-editor-placeholder { border:1px dashed #c9b39e; padding:16px; border-radius:8px; background:#f7f5f2; }
@media(max-width:782px){ .kristall-category-copy--content {margin-block:28px 20px;padding:20px 16px;} .kristall-category-copy :where(h2,h3,h4,h5,h6){margin-block:24px 12px;} .kristall-category-copy :where(p,ul,ol){margin-bottom:12px;} .kristall-content-card{padding:16px;} }
.kristall-content-section .wp-block-details { border:1px solid #e4dfd8; border-radius:9px; padding:14px 18px; margin-block:12px; background:#fff; }
.kristall-content-section .wp-block-details summary { cursor:pointer; font-weight:600; }
.kristall-content-section .wp-block-details[open] summary { margin-bottom:12px; }
/* 1.7.18 — the same semantic sections in the category editor and on the site. */
.kristall-category-copy--content { margin-block-start:clamp(36px,5vw,64px); }
.kristall-category-copy--content > .kristall-content-section { margin-block:0 clamp(28px,4vw,48px); }
.kristall-category-copy--content > .kristall-content-lead { max-width:820px; margin-inline:auto; }
.kristall-category-copy--content > .kristall-content-section > h2 { margin-top:0; }
.kristall-category-copy--content .wp-block-columns { gap:24px; margin-block:20px 0; }
.kristall-category-copy--content .wp-block-column { min-width:0; }
.kristall-category-copy--content .kristall-content-card { height:100%; }
.kristall-content-card > :first-child,.kristall-content-cta > :first-child { margin-top:0; }
.kristall-content-card > :last-child,.kristall-content-cta > :last-child { margin-bottom:0; }
.kristall-category-copy--content .kristall-content-card :where(h3):not(.has-font-size) { font-size:clamp(20px,1.8vw,22px); }
.kristall-category-copy--content .kristall-content-cta { margin-block-start:24px; border-inline-start:4px solid #dc6e01; }
.kristall-category-copy--content .kristall-content-faq .wp-block-details summary::marker { color:#a34f00; }
.kristall-category-copy--intro > :last-child { margin-bottom:0; }
.kristall-category-copy--intro > :first-child { margin-top:0; }
.editor-styles-wrapper .product-category-page { max-width:1380px; width:100%; margin-inline:auto; }
.editor-styles-wrapper .product-category-page .product-category-layout { gap:32px; }
.editor-styles-wrapper .product-category-page .product-category-content-column { min-width:0; }
.editor-styles-wrapper .product-category-page .kristall-category-copy--content { background:#fff; }
.editor-styles-wrapper .product-category-page .kristall-category-copy:empty { min-height:60px; }
@media(max-width:782px){ .kristall-category-copy--content .wp-block-columns{gap:16px;} .kristall-category-copy--content .kristall-content-card{height:auto;} }
.kristall-content-card > p:first-child > :where(strong,b):first-child { display:block; font-size:clamp(20px,1.8vw,22px); line-height:1.25; margin-bottom:10px; }
.kristall-category-copy--content > .kristall-content-section:last-child { margin-bottom:0; }
/* Native template: style even previously pasted, unwrapped copy below the catalogue. */
.product-category-page > .product-category-layout ~ :is(h2,h3,p,ul,ol) {max-width:820px;margin-inline:auto;box-sizing:border-box;}
.product-category-page > .product-category-layout ~ :is(h2,h3) {margin-block:32px 14px;line-height:1.25;}
.product-category-page > .product-category-layout ~ h2:not(.has-font-size) {font-size:clamp(24px,2.3vw,30px);}
.product-category-page > .product-category-layout ~ :is(p,ul,ol) {margin-block:0 16px;line-height:1.65;}
.product-category-page > .product-category-layout + :is(h2,h3,p,ul,ol) {margin-top:56px;}
.product-category-page .kristall-category-copy--content > .kristall-content-section {padding:clamp(16px,2vw,28px) 0;border-bottom:1px solid #e4dfd8;}
.product-category-page .kristall-category-copy--content > .kristall-content-section:last-child {border-bottom:0;}

/* 1.7.21 — compact category header, including existing saved Gutenberg templates. */
.product-category-page .product-category-content-column {
  --category-intro-bg: #f7f5f2;
  --category-intro-pad: clamp(18px, 2.8vw, 32px);
}
.product-category-page .product-category-content-column > h1:where(.wp-block-heading,.wp-block-query-title) {
  box-sizing: border-box;
  max-width: none;
  width: 100%;
  margin: 0 0 20px !important;
  padding: 0;
  line-height: 1.15;
  letter-spacing: -.025em;
}
.product-category-page .product-category-content-column > h1:where(.wp-block-heading,.wp-block-query-title):not(.has-font-size) {
  font-size: clamp(28px, 3vw, 40px);
}
.product-category-page .product-category-content-column > h1:where(.wp-block-heading,.wp-block-query-title):not(.has-text-align-center,.has-text-align-right,.has-text-align-left) {
  text-align: left;
}
.product-category-page .product-category-content-column > h1:has(+ :is(.kristall-category-copy--intro,.wp-block-term-description,.term-description)) {
  margin-bottom: 0 !important;
  padding: var(--category-intro-pad) var(--category-intro-pad) 12px;
  background: var(--category-intro-bg);
  border-radius: 12px 12px 0 0;
}
.product-category-page .product-category-content-column > :is(.kristall-category-copy--intro,.wp-block-term-description,.term-description) {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin: 0 0 16px !important;
  padding: 0 var(--category-intro-pad) var(--category-intro-pad);
  background: var(--category-intro-bg);
  border-radius: 0 0 12px 12px;
  color: #514d48;
  font-size: 16px;
  line-height: 1.65;
}
.product-category-page .product-category-content-column > :is(.kristall-category-copy--intro,.wp-block-term-description,.term-description) > :where(p,ul,ol) {
  max-width: none;
  margin-inline: 0;
}
.product-category-page .product-category-content-column > :is(.kristall-category-copy--intro,.wp-block-term-description,.term-description) > :last-child { margin-bottom: 0; }
.product-category-page .product-category-content-column > :is(.kristall-category-copy--intro,.wp-block-term-description,.term-description):not(:empty):not(.has-text-align-center,.has-text-align-right) { text-align: left; }
.product-category-page .product-category-content-column .k-catalog-notice {
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  width: 100%;
  max-width: none;
  margin: 0 0 18px;
  padding: 12px 16px;
  border: 1px solid #e8ded3;
  border-inline-start: 3px solid #dc6e01;
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
  line-height: 1.5;
  color: #514d48;
}
.product-category-page .product-category-content-column .k-catalog-notice a { color: #a34f00; font-weight: 700; white-space: nowrap; }
@media (max-width: 782px) {
  .product-category-page .product-category-content-column > h1:where(.wp-block-heading,.wp-block-query-title):not(.has-font-size) { font-size: 28px; }
  .product-category-page .product-category-content-column .k-catalog-notice { padding: 10px 12px; }
}

/* 1.7.24 — compact, full-width lower category sections; scoped to category templates. */
.product-category-page .kristall-category-copy--content {
  --wp--style--global--content-size: 100%;
  --wp--style--global--wide-size: 100%;
  box-sizing: border-box;
  padding: clamp(20px, 2.8vw, 32px);
  margin-block: 40px 32px;
}
.product-category-page .kristall-category-copy--content > :is(.kristall-content-section,p,ul,ol,h2,h3,h4,h5,h6),
.product-category-page .kristall-category-copy--content > .kristall-content-lead {
  max-width: none;
  margin-inline: 0;
}
.product-category-page .kristall-category-copy--content > .kristall-content-section {
  padding: 0 0 24px;
  margin-block: 0 28px;
}
.product-category-page .kristall-category-copy--content > .kristall-content-section:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
}
.product-category-page .kristall-category-copy--content > .kristall-content-section > :is(h2,h3,p,ul,ol) {
  max-width: none;
  margin-inline: 0;
}
.product-category-page .kristall-category-copy--content > .kristall-content-section > h2:not(.has-font-size) {
  font-size: clamp(23px, 2.1vw, 28px);
}
.product-category-page .kristall-category-copy--content > .kristall-content-section > :last-child { margin-bottom: 0; }
.product-category-page > .product-category-layout ~ :is(h2,h3,p,ul,ol) { max-width: none; margin-inline: 0; }
@media (max-width: 782px) {
  .product-category-page .kristall-category-copy--content { padding: 18px 16px; margin-block: 28px 20px; }
  .product-category-page .kristall-category-copy--content > .kristall-content-section { padding-bottom: 18px; margin-bottom: 22px; }
  .product-category-page .kristall-category-copy--content > .kristall-content-section:last-child { padding-bottom: 0; margin-bottom: 0; }
}

/* 1.7.25 — editorial lead: heading on the left, editable copy on the right. */
.product-category-page .kristall-category-copy--content {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
}
.product-category-page .kristall-category-copy--content > .kristall-content-lead:has(> h2:first-child + p):not(:has(> :not(h2,p,ul,ol,.wp-block-buttons))),
.product-category-page .kristall-category-copy--content > .kristall-content-section:first-child:has(> h2:first-child + p):not(:has(> :not(h2,p,ul,ol,.wp-block-buttons))) {
  --k-lead-gap: clamp(24px, 4vw, 64px);
  --k-lead-title-width: 34%;
  display: flow-root;
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  padding: clamp(24px, 3vw, 40px) 0;
  margin: 0 0 clamp(28px, 4vw, 48px);
  border-block: 1px solid #e4dfd8;
  background: transparent;
  border-radius: 0;
}
.product-category-page .kristall-category-copy--content > :is(.kristall-content-lead:has(> h2:first-child + p):not(:has(> :not(h2,p,ul,ol,.wp-block-buttons))),.kristall-content-section:first-child:has(> h2:first-child + p):not(:has(> :not(h2,p,ul,ol,.wp-block-buttons)))) > h2:first-child {
  float: left;
  box-sizing: border-box;
  width: var(--k-lead-title-width);
  max-width: none;
  margin: 0;
  padding: 19px 0 0;
  position: relative;
  line-height: 1.22;
  text-wrap: balance;
}
.product-category-page .kristall-category-copy--content > :is(.kristall-content-lead:has(> h2:first-child + p):not(:has(> :not(h2,p,ul,ol,.wp-block-buttons))),.kristall-content-section:first-child:has(> h2:first-child + p):not(:has(> :not(h2,p,ul,ol,.wp-block-buttons)))) > h2:first-child::before {
  content: '';
  position: absolute;
  inset: 0 auto auto 0;
  width: 36px;
  height: 3px;
  background: #dc6e01;
}
.product-category-page .kristall-category-copy--content > :is(.kristall-content-lead:has(> h2:first-child + p):not(:has(> :not(h2,p,ul,ol,.wp-block-buttons))),.kristall-content-section:first-child:has(> h2:first-child + p):not(:has(> :not(h2,p,ul,ol,.wp-block-buttons)))) > :is(p,ul,ol,.wp-block-buttons):not(:first-child) {
  box-sizing: border-box;
  width: auto;
  max-width: none;
  margin-inline: calc(var(--k-lead-title-width) + var(--k-lead-gap)) 0;
  margin-block-start: 0;
  margin-block-end: 14px;
}
.product-category-page .kristall-category-copy--content > :is(.kristall-content-lead:has(> h2:first-child + p):not(:has(> :not(h2,p,ul,ol,.wp-block-buttons))),.kristall-content-section:first-child:has(> h2:first-child + p):not(:has(> :not(h2,p,ul,ol,.wp-block-buttons)))) > :last-child { margin-block-end: 0; }
@media (max-width: 782px) {
  .product-category-page .kristall-category-copy--content > :is(.kristall-content-lead:has(> h2:first-child + p):not(:has(> :not(h2,p,ul,ol,.wp-block-buttons))),.kristall-content-section:first-child:has(> h2:first-child + p):not(:has(> :not(h2,p,ul,ol,.wp-block-buttons)))) { padding: 24px 0; }
  .product-category-page .kristall-category-copy--content > :is(.kristall-content-lead:has(> h2:first-child + p):not(:has(> :not(h2,p,ul,ol,.wp-block-buttons))),.kristall-content-section:first-child:has(> h2:first-child + p):not(:has(> :not(h2,p,ul,ol,.wp-block-buttons)))) > h2:first-child { float: none; width: 100%; margin-bottom: 18px; text-wrap: initial; }
  .product-category-page .kristall-category-copy--content > :is(.kristall-content-lead:has(> h2:first-child + p):not(:has(> :not(h2,p,ul,ol,.wp-block-buttons))),.kristall-content-section:first-child:has(> h2:first-child + p):not(:has(> :not(h2,p,ul,ol,.wp-block-buttons)))) > :is(p,ul,ol,.wp-block-buttons):not(:first-child) { margin-inline: 0; }
}
