/* Category orientation: readable introduction, then the catalogue without a hero-sized gap. */
body.tax-product_cat .site-main { margin-top: 16px; }
body.tax-product_cat .woocommerce-breadcrumb { margin-bottom: 20px; padding-block: 0; }
body.tax-product_cat .woocommerce-products-header { gap: 0; margin-bottom: 20px; }
body.tax-product_cat .category-title { margin: 0 0 14px; font-size: clamp(28px, 3vw, 40px); line-height: 1.16; letter-spacing: -.8px; }
body.tax-product_cat .woocommerce-products-header > .term-description { margin: 0 0 16px; }
body.tax-product_cat .woocommerce-products-header .term-description-content,
body.tax-product_cat .ersa-category-lead { max-width: 82ch; text-align: left; margin: 0; font-size: 15px; line-height: 1.65; }
body.tax-product_cat .term-description-content p { text-align: left !important; margin: 0 0 12px; }
body.tax-product_cat .ersa-category-lead p { margin: 0 0 8px; text-align: left !important; }
body.tax-product_cat .ersa-category-guide-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: #175b88; font-size: 13px; font-weight: 600; text-underline-offset: 4px; text-decoration: underline; }
body.tax-product_cat .woocommerce-products-header > .justify-center { margin: 0 0 16px; }
body.tax-product_cat .woocommerce-products-header > .justify-center .hove-button { min-height: 40px; padding: 8px 13px; font-size: 12px; box-shadow: none; }
body.tax-product_cat .woocommerce-products-header > .justify-center .hove-button svg { width: 17px; height: 17px; }
body.tax-product_cat h2.subcategories-title { order: 3; font-size: 20px; margin: 4px 0 0; }
body.tax-product_cat .category_description_top { gap: 16px; margin: 0 0 12px; }
body.tax-product_cat .ersa-category-guide { clear: both; width: 100%; margin: 36px 0 24px; padding: 28px 0 0; border-top: 1px solid #dce4e9; scroll-margin-top: 160px; }
body.tax-product_cat .ersa-category-guide > h2 { font-size: 24px; margin: 0 0 18px; }
body.tax-product_cat .ersa-category-guide .term-description-content { max-width: 86ch; font-size: 15px; line-height: 1.75; margin: 0; text-align: left; }
body.tax-product_cat .ersa-category-guide .term-description-toggle { display: none; }
body.tax-product_cat .ersa-category-video { width: fit-content; max-width: 100%; margin: 12px 0; background: #fff; border-color: #b9cbd8; }
body.tax-product_cat .ersa-category-video > summary { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 10px 16px; list-style: none; }
body.tax-product_cat .ersa-category-video > summary::-webkit-details-marker { display: none; }
body.tax-product_cat .ersa-category-video > summary::before { content: '▶'; font-size: 11px; }
body.tax-product_cat .ersa-category-video[open] { width: min(760px, 100%); }
body.tax-product_cat .ersa-category-video[open] > summary::before { content: '−'; font-size: 17px; }
body.tax-product_cat .ersa-category-guide .term-description-content > br { display: none; }
@media (max-width: 700px) {
  body.tax-product_cat .woocommerce-breadcrumb { margin-bottom: 16px; }
  body.tax-product_cat .woocommerce-products-header { margin-bottom: 16px; }
  body.tax-product_cat .category-title { font-size: 28px; margin-bottom: 12px; }
  body.tax-product_cat .woocommerce-products-header .term-description-content,
  body.tax-product_cat .ersa-category-lead { font-size: 14px; line-height: 1.6; }
  body.tax-product_cat .ersa-category-guide { margin-top: 28px; padding-top: 22px; scroll-margin-top: 140px; }
  body.tax-product_cat .ersa-category-guide > h2 { font-size: 21px; }
  body.tax-product_cat .ersa-category-guide .term-description-content { font-size: 14px; }
}

body.tax-product_cat .woocommerce-products-header h2.subcategories-title{margin:8px 0 0}
body.tax-product_cat .woocommerce_products_wrapper{margin-top:24px;padding-top:0}
body.tax-product_cat .woocommerce-breadcrumb{margin-top:0;margin-bottom:12px}

/* Editorial guide: the catalogue stays first; the full guide is a calm two-column section. */
body.tax-product_cat .ersa-category-guide {
  margin-block: 48px 32px;
  padding: clamp(22px, 3vw, 42px);
  border: 1px solid #dce5eb;
  border-radius: 24px;
  background: #f5f8fa;
  scroll-margin-top: 160px;
}
body.tax-product_cat .ersa-category-guide > h2 {
  max-width: 32ch;
  margin: 0 0 28px;
  color: #07334c;
  font-size: clamp(23px, 2.3vw, 32px);
  line-height: 1.2;
  letter-spacing: -.6px;
}
body.tax-product_cat .ersa-guide-layout { display: grid; gap: 32px; min-width: 0; }
body.tax-product_cat .ersa-guide-layout--media { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
body.tax-product_cat .ersa-guide-copy,
body.tax-product_cat .ersa-guide-media { min-width: 0; }
body.tax-product_cat .ersa-guide-copy,
body.tax-product_cat .ersa-guide-copy .term-description-content {
  max-width: 76ch;
  color: #304a59;
  font-size: 15px;
  line-height: 1.8;
  text-align: left;
}
body.tax-product_cat .ersa-guide-copy p,
body.tax-product_cat .ersa-guide-copy div { text-align: left !important; }
body.tax-product_cat .ersa-guide-copy p { margin: 0 0 18px; }
body.tax-product_cat .ersa-guide-copy p:last-child { margin-bottom: 0; }
body.tax-product_cat .ersa-guide-copy p:empty { display: none; }
body.tax-product_cat .ersa-guide-copy strong { color: #07334c; font-weight: 650; }
body.tax-product_cat .ersa-guide-copy a { color: #175b88; text-decoration: underline; text-underline-offset: 4px; overflow-wrap: anywhere; }
body.tax-product_cat .ersa-guide-copy a:hover { color: #07334c; }
body.tax-product_cat .ersa-guide-copy h2,
body.tax-product_cat .ersa-guide-copy h3 { margin: 24px 0 12px; font-size: 20px; line-height: 1.35; color: #07334c; }
body.tax-product_cat .ersa-guide-copy ul,
body.tax-product_cat .ersa-guide-copy ol { padding-left: 22px; margin-block: 12px 20px; }
body.tax-product_cat .ersa-guide-copy li + li { margin-top: 8px; }
body.tax-product_cat .ersa-guide-media { display: grid; gap: 20px; }
body.tax-product_cat .ersa-guide-player { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 16px; background: #07334c; box-shadow: 0 8px 24px rgb(7 51 76 / 10%); }
body.tax-product_cat .ersa-guide-player iframe { position: absolute; inset: 0; display: block; width: 100% !important; height: 100% !important; max-width: none; margin: 0; border: 0; }
@media (max-width: 800px) {
  body.tax-product_cat .ersa-guide-layout--media { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  body.tax-product_cat .ersa-category-guide { padding: 22px 18px; border-radius: 18px; margin-block: 32px 24px; scroll-margin-top: 145px; }
  body.tax-product_cat .ersa-category-guide > h2 { margin-bottom: 20px; }
  body.tax-product_cat .ersa-guide-copy,
  body.tax-product_cat .ersa-guide-copy .term-description-content { font-size: 14px; line-height: 1.75; }
  body.tax-product_cat .ersa-guide-player { border-radius: 12px; }
}

/* Lötroboter: existing editorial assets as a product presentation, not a text wall. */
body.tax-product_cat .ersa-robot-category { width: 100%; color: #304a59; text-align: left; }
body.tax-product_cat .ersa-robot-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 4vw, 60px); align-items: center; padding: clamp(22px, 3vw, 40px); border: 1px solid #dce5eb; border-radius: 24px; background: #f5f8fa; }
body.tax-product_cat .ersa-robot-intro { min-width: 0; font-size: 16px; line-height: 1.85; }
body.tax-product_cat .ersa-robot-intro h2 { margin: 0 0 24px; font-size: clamp(26px, 2.5vw, 38px); line-height: 1.25; letter-spacing: -.6px; color: #07334c; }
body.tax-product_cat .ersa-robot-intro p { margin: 0; text-align: left !important; }
body.tax-product_cat .ersa-robot-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; min-width: 0; }
body.tax-product_cat .ersa-robot-image { display: grid; place-items: center; margin: 0; padding: 12px; min-width: 0; background: #fff; border: 1px solid #e2e9ed; border-radius: 14px; overflow: hidden; }
body.tax-product_cat .ersa-robot-image--main { grid-column: 1 / -1; padding: 20px; }
body.tax-product_cat .ersa-robot-image img { display: block; width: 100% !important; height: 110px !important; max-width: 100%; object-fit: contain; margin: 0 !important; }
body.tax-product_cat .ersa-robot-image--main img { height: 320px !important; }
body.tax-product_cat .ersa-robot-details { display: grid; gap: 32px; margin-top: 36px; padding: 0 8px; }
body.tax-product_cat .ersa-robot-details--media { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
body.tax-product_cat .ersa-robot-copy { min-width: 0; font-size: 15px; line-height: 1.85; }
body.tax-product_cat .ersa-robot-copy p { text-align: left !important; margin: 0 0 22px; }
body.tax-product_cat .ersa-robot-copy font { font-size: inherit; }
body.tax-product_cat .ersa-robot-copy a { color: #175b88; text-decoration: underline; text-underline-offset: 4px; overflow-wrap: anywhere; }
body.tax-product_cat .ersa-robot-copy strong { color: #07334c; }
body.tax-product_cat .ersa-robot-media { min-width: 0; display: grid; gap: 20px; }
body.tax-product_cat .ersa-robot-copy .term-description-content { max-width: none; }
@media (max-width: 800px) {
  body.tax-product_cat .ersa-robot-hero,
  body.tax-product_cat .ersa-robot-details--media { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  body.tax-product_cat .ersa-robot-hero { padding: 22px 18px; border-radius: 18px; }
  body.tax-product_cat .ersa-robot-intro { font-size: 14px; }
  body.tax-product_cat .ersa-robot-intro h2 { font-size: 26px; }
  body.tax-product_cat .ersa-robot-image--main img { height: 250px !important; }
  body.tax-product_cat .ersa-robot-image img { height: 75px !important; }
  body.tax-product_cat .ersa-robot-image--main img { height: 250px !important; }
  body.tax-product_cat .ersa-robot-gallery { gap: 8px; }
  body.tax-product_cat .ersa-robot-copy { font-size: 14px; }
}

body.tax-product_cat .term-description-content:has(.ersa-robot-category){max-width:none;width:100%}
body.tax-product_cat .term-description:has(.ersa-robot-category){width:100%}
body.tax-product_cat .term-description:has(.ersa-robot-category) .term-description-toggle{display:none}
body.tax-product_cat .ersa-guide-play { position: absolute; inset: 0; display: block; width: 100%; height: 100%; padding: 0; margin: 0; border: 0; border-radius: inherit; overflow: hidden; cursor: pointer; background: #07334c; color: #fff; }
body.tax-product_cat .ersa-guide-play img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; object-fit: cover; margin: 0; }
body.tax-product_cat .ersa-guide-play::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgb(0 20 35 / 75%)); }
body.tax-product_cat .ersa-guide-play-icon { position: absolute; z-index: 1; top: 50%; left: 50%; display: grid; place-items: center; width: 64px; height: 64px; padding-left: 4px; transform: translate(-50%, -50%); border-radius: 50%; background: #ffbd38; color: #07334c; font-size: 25px; box-shadow: 0 4px 20px rgb(0 0 0 / 20%); }
body.tax-product_cat .ersa-guide-play-label { position: absolute; z-index: 1; left: 22px; bottom: 18px; font-size: 15px; font-weight: 650; color: #fff; }
body.tax-product_cat .ersa-guide-play:hover .ersa-guide-play-icon { background: #ffd16e; }
body.tax-product_cat .ersa-guide-play:focus-visible { outline: 3px solid #ffbd38; outline-offset: -5px; }
