/* KGC category premium — industrial B2B, Bono-compatible */
:root {
  --kgc-primary: #3456a3;
  --kgc-primary-dark: #2a4585;
  --kgc-dark: #22232b;
  --kgc-text: #1a1a1a;
  --kgc-muted: #556070;
  --kgc-bg: #ffffff;
  --kgc-bg-soft: #f5f7fb;
  --kgc-border: #e2e8f0;
  /* Homepage brand: sharp corporate corners (no pill/AI radius) */
  --kgc-radius: 0;
  --kgc-radius-sm: 0;
  --kgc-shadow: 0 8px 24px rgba(26, 35, 64, 0.06);
  --kgc-shadow-hover: 0 12px 28px rgba(26, 35, 64, 0.1);
  --kgc-space: 16px;
  --kgc-section-y: clamp(40px, 5vw, 64px);
}

/* Clip page scroll, but allow section full-bleed breakout inside */
.tax-product_cat,
.tax-product_cat #page {
  overflow-x: hidden;
  max-width: 100%;
}
/* Flush dark nav → category hero: Bono #masthead { margin-bottom: 20px } left a white strip */
.tax-product_cat #masthead.site-header,
.tax-product_cat #masthead,
.tax-product_cat .site-header {
  margin-bottom: 0 !important;
}
.tax-product_cat #content.site-content,
.tax-product_cat .site-content,
.tax-product_cat .site-content-inner,
.tax-product_cat .kgc-cat-hero,
.tax-product_cat .cat-hero {
  margin-top: 0 !important;
}
.tax-product_cat .site-content,
.tax-product_cat .site-content-inner {
  overflow-x: visible;
  overflow-y: visible;
  max-width: 100%;
}
.tax-product_cat #product-page,
.tax-product_cat .content-area {
  /* Visible so card border + box-shadow aren’t clipped on edge cards */
  overflow: visible !important;
  max-width: 100%;
}
.tax-product_cat .owl-stage-outer {
  overflow: hidden !important;
}
.tax-product_cat .kgc-cat-sections .owl-carousel {
  display: none !important;
}

/* Super USP — clean static strip */
.kgc-super-usp {
  display: flex;
  align-items: center;
  min-height: 36px;
}
.kgc-super-usp__text {
  color: #fff;
  font-size: 12.5px;
  line-height: 1.35;
  white-space: normal;
  letter-spacing: 0.01em;
  padding: 6px 0;
}
.tax-product_cat .super-header-block1 marquee,
.tax-product_cat .super-header-block1 > span:empty {
  display: none !important;
}

/* ========== HERO ========== */
/*
 * Hero grey band: full-bleed via absolute paint layer (no 100vw on the box —
 * that blew out the shop grid). Inner text aligns with #content.fixed gutters.
 */
.kgc-cat-hero {
  position: relative;
  background: transparent;
  border-bottom: none;
  margin: 0 0 8px;
  padding: clamp(22px, 3vw, 40px) 0 clamp(20px, 2.5vw, 32px);
  overflow: visible;
  z-index: 0;
}
.kgc-cat-hero::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  max-width: 100vw;
  transform: translateX(-50%);
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(105deg, #eef2f9 0%, var(--kgc-bg-soft) 38%, #f7f9fc 72%, #fff 100%);
  border-bottom: 1px solid var(--kgc-border);
}
.kgc-cat-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1340px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}
.kgc-cat-hero__content {
  min-width: 0;
}
.kgc-cat-hero__media {
  min-width: 0;
  width: 100%;
}
.kgc-hero-figure,
.tax-product_cat .kgc-hero-figure {
  position: relative;
  margin: 0;
  border-radius: 14px !important; /* TZ photo frame — not brand sharp buttons */
  border: 1px solid #e2e8f0;
  background: #f5f7fb;
  box-shadow: 0 10px 28px rgba(26, 35, 64, 0.08);
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.kgc-hero-figure__link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
}
.kgc-hero-figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.kgc-hero-figure__badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  right: 12px;
  max-width: calc(100% - 24px);
  margin: 0;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font-family: Montserrat, Rubik, sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.01em;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}
@media (min-width: 992px) {
  .kgc-cat-hero--has-media .kgc-cat-hero__inner {
    grid-template-columns: minmax(0, 1.35fr) minmax(340px, 440px);
    gap: 36px;
    align-items: center;
  }
}
@media (max-width: 991px) {
  /* Keep H1 + CTAs first; photo after content block */
  .kgc-cat-hero__media {
    order: 2;
  }
  .kgc-cat-hero__content {
    order: 1;
  }
  .kgc-hero-figure__badge {
    font-size: 11px;
    padding: 7px 10px;
  }
}
/* Never let FE widget sit in toolbar on desktop (blank left column bug) */
@media (min-width: 992px) {
  .kgc-cat-toolbar .wpc-filters-main-wrap,
  .kgc-cat-toolbar .widget_wpc_filters_widget,
  .kgc-cat-toolbar__drawer {
    display: none !important;
  }
}
.kgc-cat-hero__crumbs,
.kgc-cat-hero .yoast-breadcrumbs {
  font-family: Montserrat, Rubik, sans-serif;
  font-size: 12.5px;
  color: var(--kgc-muted);
  margin-bottom: 12px;
}
.kgc-cat-hero__crumbs a {
  color: var(--kgc-muted);
  text-decoration: none;
}
.kgc-cat-hero__crumbs a:hover {
  color: var(--kgc-primary);
}
.kgc-cat-hero__title {
  font-family: Rubik, Montserrat, sans-serif;
  font-size: clamp(1.75rem, 2.8vw, 2.45rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--kgc-dark);
  margin: 0 0 8px;
  line-height: 1.12;
}
/* Geo under H1: hidden by default; enabled for enriched-fractionated category only */
.kgc-cat-hero__region,
.tax-product_cat .kgc-cat-hero__region,
.tax-product_cat .cat-hero .wt-geotargeting,
.tax-product_cat .kgc-cat-hero .wt-geotargeting,
.tax-product_cat .woocommerce-products-header .wt-geotargeting {
  display: none !important;
}
.term-obogashhennye-kvarczevye-materialy-frakczionirovannye .kgc-cat-hero__region,
.term-shheben .kgc-cat-hero__region,
.term-kvarcz-dlya-litejnogo-proizvodstva .kgc-cat-hero__region,
.term-kvarcz-dlya-lkm-kleya-i-germetika .kgc-cat-hero__region,
.term-kvarcz-dlya-suhih-stroitelnyh-materialov .kgc-cat-hero__region {
  display: block !important;
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--kgc-primary, #3456a3);
}
.kgc-cat-hero__lead {
  max-width: 68ch;
  color: var(--kgc-muted);
  font-size: 15px;
  line-height: 1.65;
  margin: 0 0 12px;
}
.kgc-cat-hero__lead + .kgc-cat-hero__lead {
  margin-bottom: 18px;
}
.kgc-price-m3 {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.35;
  color: var(--kgc-muted, #556070);
  font-weight: 500;
}
.kgc-price-from {
  font-weight: 600;
  color: inherit;
}
.kgc-cat-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}
.kgc-cat-badges__item {
  background: transparent;
  border: 0;
  border-left: 2px solid var(--kgc-primary);
  border-radius: 0;
  padding: 2px 0 2px 10px;
  font-family: Montserrat, Rubik, sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--kgc-dark);
  box-shadow: none;
}
.kgc-cat-quick-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  max-height: none;
  max-width: 100%;
  overflow: visible;
  box-sizing: border-box;
}
.kgc-cat-quick-tags__item {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 0;
  background: #fff;
  border: 1px solid #d5deec;
  color: var(--kgc-primary-dark);
  text-decoration: none;
  font-family: Montserrat, Rubik, sans-serif;
  font-size: 12.5px;
  font-weight: 500;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.kgc-cat-quick-tags__item:hover {
  background: var(--kgc-primary);
  border-color: var(--kgc-primary);
  color: #fff;
}
.kgc-cat-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.kgc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--kgc-radius-sm);
  padding: 12px 18px;
  font-weight: 600;
  text-decoration: none !important;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.2;
  transition: background .18s ease, box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.kgc-btn:hover {
  transform: translateY(-1px);
}
.kgc-btn--primary {
  background: var(--kgc-primary);
  color: #fff !important;
  box-shadow: 0 6px 16px rgba(52, 86, 163, 0.28);
}
.kgc-btn--primary:hover {
  background: var(--kgc-primary-dark);
  color: #fff !important;
}
.kgc-btn--outline {
  background: #fff;
  color: var(--kgc-primary) !important;
  border-color: #b8c7e3;
}
.kgc-btn--outline:hover {
  border-color: var(--kgc-primary);
  background: #f3f6fc;
}
.kgc-btn--small {
  padding: 7px 12px;
  font-size: 12px;
  background: var(--kgc-primary);
  color: #fff !important;
  white-space: nowrap;
}
.kgc-btn--kp,
.kgc-btn-kp,
.kgc-product-card .shop-item-buttons .kgc-btn--kp,
.kgc-product-card .shop-item-buttons .kgc-btn-kp {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 0 0 auto !important;
  white-space: nowrap !important;
  background: #fff !important;
  color: var(--kgc-primary) !important;
  border: 1px solid #c5d0e4 !important;
  padding: 10px 12px !important;
  min-width: 52px;
  width: auto !important;
  height: auto;
  min-height: 40px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 0 !important;
  box-shadow: none !important;
  text-decoration: none !important;
  line-height: 1.2;
  overflow: visible !important;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.kgc-btn--kp:hover,
.kgc-btn-kp:hover {
  background: #f3f6fc !important;
  border-color: var(--kgc-primary) !important;
  color: var(--kgc-primary-dark) !important;
  transform: translateY(-1px);
}

/* ========== CATALOG LAYOUT ========== */
/*
 * DOM: .site-content-inner > hero/preface full width, then #primary (internal sidebar|products grid).
 * #secondary sits in #primary > main BEFORE #product-page (DOM order + align tops).
 */
.tax-product_cat.sidebar-left .site-content-inner {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-areas:
    "hero"
    "catalog" !important;
  column-gap: 0;
  row-gap: 8px;
  align-items: start;
}
.tax-product_cat.sidebar-left .site-content-inner > .kgc-cat-hero,
.tax-product_cat.sidebar-left .site-content-inner > .cat-hero {
  grid-area: hero;
  grid-column: 1 / -1 !important;
  width: 100% !important;
  max-width: none !important;
}
.tax-product_cat.sidebar-left .site-content-inner > .kgc-industries-bar,
.tax-product_cat.sidebar-left .site-content-inner > .kgc-shop-cat-info,
.tax-product_cat.sidebar-left .site-content-inner > .cat-info.kgc-shop-cat-info {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  max-width: none !important;
}
.tax-product_cat.sidebar-left .site-content-inner > #primary,
.tax-product_cat.sidebar-left .site-content-inner > .content-area {
  grid-area: catalog !important;
  grid-column: 1 / -1 !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  float: none !important;
  display: grid !important;
  grid-template-columns: 280px minmax(0, 1fr) !important;
  grid-template-areas: "sidebar content" !important;
  column-gap: 24px;
  row-gap: 0;
  align-items: start;
  box-sizing: border-box;
}
.tax-product_cat.sidebar-left #primary > main,
.tax-product_cat.sidebar-left .content-area > main {
  display: contents !important;
}
.tax-product_cat.sidebar-left #primary #secondary,
.tax-product_cat.sidebar-left #primary > aside.widget-area,
.tax-product_cat.sidebar-left .content-area #secondary {
  grid-area: sidebar !important;
  grid-column: 1 !important;
  width: 280px !important;
  max-width: 280px !important;
  float: none !important;
  display: block !important;
  position: sticky;
  top: 96px;
  z-index: 2;
  align-self: start;
  margin: 0 !important;
}
.tax-product_cat.sidebar-left #primary #product-page,
.tax-product_cat.sidebar-left .content-area #product-page {
  grid-area: content !important;
  grid-column: 2 !important;
  min-width: 0 !important;
}
.tax-product_cat.sidebar-left .site-content-inner > .kgc-cat-sections,
.tax-product_cat.sidebar-left .site-content-inner > #text-catalog,
.tax-product_cat.sidebar-left .site-content-inner > #form,
.tax-product_cat.sidebar-left .site-content-inner > #plus,
.tax-product_cat.sidebar-left .site-content-inner > #sert,
.tax-product_cat.sidebar-left .site-content-inner > #contact,
.tax-product_cat.sidebar-left .site-content-inner > .see-also,
.tax-product_cat.sidebar-left .site-content-inner > #see,
.tax-product_cat.sidebar-left .site-content-inner > #see-also {
  grid-column: 1 / -1 !important;
}
/* #product-page is content-only — never reserve a phantom sidebar column here */
.tax-product_cat.sidebar-left #product-page.kgc-cat-catalog-layout,
.tax-product_cat.sidebar-left #product-page {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  float: none !important;
  box-sizing: border-box !important;
}
.tax-product_cat.sidebar-left #product-page.kgc-cat-catalog-layout > * {
  grid-column: auto !important;
  max-width: 100%;
  min-width: 0;
}
.tax-product_cat.sidebar-left .widget-area,
.tax-product_cat.sidebar-left .widget-area--desktop {
  width: 280px !important;
  max-width: 280px;
  float: none !important;
  display: block !important;
}
/* Empty filters: collapse sidebar column, products full width */
.tax-product_cat.kgc-fe-empty.sidebar-left #primary,
.tax-product_cat.kgc-fe-empty.sidebar-left .content-area,
.tax-product_cat.kgc-no-filters.sidebar-left #primary,
.tax-product_cat.kgc-no-filters.sidebar-left .content-area {
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-areas: "content" !important;
}
.tax-product_cat.kgc-fe-empty.sidebar-left #primary #product-page,
.tax-product_cat.kgc-no-filters.sidebar-left #primary #product-page {
  grid-column: 1 !important;
}
.tax-product_cat.kgc-fe-empty.sidebar-left #primary #secondary,
.tax-product_cat.kgc-fe-empty.sidebar-left #primary > aside.widget-area,
.tax-product_cat.kgc-no-filters.sidebar-left #primary #secondary,
.tax-product_cat.kgc-no-filters.sidebar-left #primary > aside.widget-area,
.tax-product_cat.kgc-fe-empty.sidebar-left .widget-area,
.tax-product_cat.kgc-fe-empty.sidebar-left aside.widget-area,
.tax-product_cat.kgc-no-filters.sidebar-left .widget-area,
.tax-product_cat.kgc-no-filters.sidebar-left aside.widget-area {
  display: none !important;
  width: 0 !important;
  max-width: 0 !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
  position: static !important;
}
@media (min-width: 992px) {
  .tax-product_cat.kgc-fe-empty .kgc-cat-catalog-layout .shop-grid,
  .tax-product_cat.kgc-fe-empty .shop-grid,
  .tax-product_cat.kgc-no-filters .shop-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}
.kgc-fe-empty-note {
  display: none !important;
}
@media (max-width: 991px) {
  .tax-product_cat.sidebar-left .site-content-inner {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas:
      "hero"
      "content" !important;
    column-gap: 0 !important;
  }
  /* Must beat .site-content-inner > #primary { grid-template-columns: 280px … } */
  .tax-product_cat.sidebar-left .site-content-inner > #primary,
  .tax-product_cat.sidebar-left .site-content-inner > .content-area {
    grid-column: 1 !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas: "content" !important;
    column-gap: 0 !important;
  }
  .tax-product_cat.sidebar-left #primary #product-page,
  .tax-product_cat.sidebar-left .content-area #product-page {
    grid-column: 1 !important;
  }
  .tax-product_cat.sidebar-left .site-content-inner > #secondary,
  .tax-product_cat.sidebar-left .site-content-inner > aside.widget-area,
  .tax-product_cat.sidebar-left .widget-area,
  .tax-product_cat.sidebar-left .widget-area--desktop {
    display: none !important; /* mobile drawer via FE .wpc-filters-open-button-container */
    width: 100% !important;
    max-width: none;
    position: static;
  }
}

.kgc-cat-catalog-layout {
  padding-top: 8px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
@media (min-width: 992px) {
  body.kgc-shop-enhanced #product-page > .wpc-filters-open-button-container,
  .tax-product_cat #product-page > .wpc-filters-open-button-container {
    display: none !important;
  }
}
.kgc-cat-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 8px 0 12px;
}
.kgc-cat-toolbar .wpc-filters-widget-wrapper,
.kgc-cat-toolbar .widget,
.kgc-cat-toolbar .wpc-filters-main-wrap {
  width: 100%;
}
.kgc-cat-toolbar .widgettitle,
#product-page > .widgettitle,
.kgc-cat-catalog-layout > .widgettitle {
  font-size: 14px;
  margin: 0;
}
.wpc-filters-widget-wrapper:empty,
.wpc-filter-chips-widget:empty,
.kgc-cat-toolbar .wpc-filters-section[data-kgc-hidden="empty"],
.widget-area .wpc-filters-section[data-kgc-hidden="empty"] {
  display: none !important;
}

.kgc-filters-toggle {
  display: none;
  margin: 0;
  background: var(--kgc-dark);
  color: #fff;
  border: 0;
  border-radius: var(--kgc-radius-sm);
  padding: 11px 16px;
  font-weight: 600;
  font-size: 14px;
}

/* Sidebar polish — FE set 3507 (premium, borderless) */
.tax-product_cat #secondary,
body.kgc-mirror-tax-cat.kgc-shop-enhanced #secondary,
.tax-product_cat .widget-area,
body.kgc-mirror-tax-cat.kgc-shop-enhanced .widget-area,
.tax-product_cat .widget-area--desktop,
body.kgc-mirror-tax-cat.kgc-shop-enhanced .widget-area--desktop,
.tax-product_cat aside.widget-area,
body.kgc-mirror-tax-cat.kgc-shop-enhanced aside.widget-area {

  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 2px 2px 6px 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
}
.tax-product_cat #secondary .widget,
body.kgc-mirror-tax-cat.kgc-shop-enhanced #secondary .widget,
.tax-product_cat .widget-area .widget,
body.kgc-mirror-tax-cat.kgc-shop-enhanced .widget-area .widget,
.tax-product_cat .widget-area .wpc-filters-widget-wrapper,
body.kgc-mirror-tax-cat.kgc-shop-enhanced .widget-area .wpc-filters-widget-wrapper,
.tax-product_cat .widget-area .wpc-filters-widget-content,
body.kgc-mirror-tax-cat.kgc-shop-enhanced .widget-area .wpc-filters-widget-content,
.tax-product_cat .widget-area .wpc-filters-widget-containers-wrapper,
body.kgc-mirror-tax-cat.kgc-shop-enhanced .widget-area .wpc-filters-widget-containers-wrapper,
.tax-product_cat .widget-area .wpc-filters-widget-wrapper > .wpc-filters-widget-containers-wrapper,
body.kgc-mirror-tax-cat.kgc-shop-enhanced .widget-area .wpc-filters-widget-wrapper > .wpc-filters-widget-containers-wrapper,
.tax-product_cat #secondary .wpc-filters-widget-containers-wrapper,
body.kgc-mirror-tax-cat.kgc-shop-enhanced #secondary .wpc-filters-widget-containers-wrapper {

  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
.tax-product_cat #secondary .wpc-filters-widget-wrapper,
body.kgc-mirror-tax-cat.kgc-shop-enhanced #secondary .wpc-filters-widget-wrapper,
.tax-product_cat .widget-area .wpc-filters-widget-wrapper,
body.kgc-mirror-tax-cat.kgc-shop-enhanced .widget-area .wpc-filters-widget-wrapper {

  margin: 0;
}
.tax-product_cat .widget-area .widgettitle,
body.kgc-mirror-tax-cat.kgc-shop-enhanced .widget-area .widgettitle,
.tax-product_cat #secondary .widgettitle,
body.kgc-mirror-tax-cat.kgc-shop-enhanced #secondary .widgettitle {

  font-family: Rubik, Montserrat, sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--kgc-dark);
  margin: 0 0 10px;
  padding: 0 0 8px;
  border-bottom: 2px solid var(--kgc-primary);
}
.tax-product_cat .wpc-filters-section,
body.kgc-mirror-tax-cat.kgc-shop-enhanced .wpc-filters-section {

  border-bottom: 1px solid #eef2f7;
  padding: 10px 0 12px;
  margin: 0;
}
.tax-product_cat .wpc-filters-section:last-child,
body.kgc-mirror-tax-cat.kgc-shop-enhanced .wpc-filters-section:last-child {

  border-bottom: 0;
  padding-bottom: 2px;
}
.tax-product_cat .wpc-filter-header,
body.kgc-mirror-tax-cat.kgc-shop-enhanced .wpc-filter-header,
.tax-product_cat .wpc-filter-title,
body.kgc-mirror-tax-cat.kgc-shop-enhanced .wpc-filter-title {

  font-family: Montserrat, Rubik, sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--kgc-dark);
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
/* One chevron only: on .wpc-filter-header (far right). Nested .wpc-filter-title
must not get its own ::after — that caused the duplicate next to the label. */,
.tax-product_cat .kgc-fe-acc .wpc-filter-header::after,
body.kgc-mirror-tax-cat.kgc-shop-enhanced .kgc-fe-acc .wpc-filter-header::after {

  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--kgc-primary);
  border-bottom: 2px solid var(--kgc-primary);
  transform: rotate(45deg);
  transition: transform .2s ease;
  flex: 0 0 auto;
  margin-top: -4px;
}
.tax-product_cat .kgc-fe-acc .wpc-filter-header .wpc-filter-title::after,
body.kgc-mirror-tax-cat.kgc-shop-enhanced .kgc-fe-acc .wpc-filter-header .wpc-filter-title::after,
.tax-product_cat .kgc-fe-acc .wpc-filter-header .wpc-filter-title::before,
body.kgc-mirror-tax-cat.kgc-shop-enhanced .kgc-fe-acc .wpc-filter-header .wpc-filter-title::before {

  content: none !important;
  display: none !important;
  border: 0 !important;
  width: 0 !important;
  height: 0 !important;
}
.tax-product_cat .kgc-fe-acc.is-collapsed .wpc-filter-header::after,
body.kgc-mirror-tax-cat.kgc-shop-enhanced .kgc-fe-acc.is-collapsed .wpc-filter-header::after {

  transform: rotate(-45deg);
  margin-top: 2px;
}
.tax-product_cat .wpc-filters-ul,
body.kgc-mirror-tax-cat.kgc-shop-enhanced .wpc-filters-ul,
.tax-product_cat .wpc-filters-ul-list,
body.kgc-mirror-tax-cat.kgc-shop-enhanced .wpc-filters-ul-list {

  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tax-product_cat .wpc-filters-ul a,
body.kgc-mirror-tax-cat.kgc-shop-enhanced .wpc-filters-ul a,
.tax-product_cat .wpc-filters-ul-list a,
body.kgc-mirror-tax-cat.kgc-shop-enhanced .wpc-filters-ul-list a,
.tax-product_cat .wpc-term-item label,
body.kgc-mirror-tax-cat.kgc-shop-enhanced .wpc-term-item label,
.tax-product_cat .wpc-term-item-content-wrapper label,
body.kgc-mirror-tax-cat.kgc-shop-enhanced .wpc-term-item-content-wrapper label {

  font-family: Rubik, Montserrat, sans-serif;
  font-size: 13.5px;
  line-height: 1.35;
  color: var(--kgc-text) !important;
  font-weight: 500;
}
.tax-product_cat .wpc-term-count,
body.kgc-mirror-tax-cat.kgc-shop-enhanced .wpc-term-count {

  color: var(--kgc-muted);
  font-weight: 400;
  font-size: 12px;
}
.tax-product_cat .wpc-checkbox-item,
body.kgc-mirror-tax-cat.kgc-shop-enhanced .wpc-checkbox-item,
.tax-product_cat .wpc-term-item,
body.kgc-mirror-tax-cat.kgc-shop-enhanced .wpc-term-item {

  margin: 0;
  padding: 0;
}
.tax-product_cat .wpc-term-item-content-wrapper,
body.kgc-mirror-tax-cat.kgc-shop-enhanced .wpc-term-item-content-wrapper {

  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.tax-product_cat .wpc-filters-section input[type="checkbox"],
body.kgc-mirror-tax-cat.kgc-shop-enhanced .wpc-filters-section input[type="checkbox"] {

  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  flex: 0 0 18px;
  border: 1.5px solid #c5cedb;
  border-radius: 0;
  background: #fff;
  cursor: pointer;
  position: relative;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.tax-product_cat .wpc-filters-section input[type="checkbox"]:hover,
body.kgc-mirror-tax-cat.kgc-shop-enhanced .wpc-filters-section input[type="checkbox"]:hover {

  border-color: var(--kgc-primary);
}
.tax-product_cat .wpc-filters-section input[type="checkbox"]:checked,
body.kgc-mirror-tax-cat.kgc-shop-enhanced .wpc-filters-section input[type="checkbox"]:checked {

  background: var(--kgc-primary);
  border-color: var(--kgc-primary);
  box-shadow: 0 0 0 3px rgba(52, 86, 163, 0.14);
}
.tax-product_cat .wpc-filters-section input[type="checkbox"]:checked::after,
body.kgc-mirror-tax-cat.kgc-shop-enhanced .wpc-filters-section input[type="checkbox"]:checked::after {

  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.tax-product_cat .wpc-term-item.wpc-term-selected label a,
body.kgc-mirror-tax-cat.kgc-shop-enhanced .wpc-term-item.wpc-term-selected label a,
.tax-product_cat .wpc-checkbox-item input:checked + label a,
body.kgc-mirror-tax-cat.kgc-shop-enhanced .wpc-checkbox-item input:checked + label a {

  color: var(--kgc-primary) !important;
  font-weight: 600;
}

/* Price range slider */
.tax-product_cat .wpc-filter-layout-range .wpc-filter-content,
body.kgc-mirror-tax-cat.kgc-shop-enhanced .wpc-filter-layout-range .wpc-filter-content {

  padding: 6px 2px 2px;
}
.tax-product_cat .wpc-filters-range-inputs,
body.kgc-mirror-tax-cat.kgc-shop-enhanced .wpc-filters-range-inputs {

  margin: 0;
}
.tax-product_cat .wpc-filter-range-form,
body.kgc-mirror-tax-cat.kgc-shop-enhanced .wpc-filter-range-form {

  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tax-product_cat .wpc-filters-range-wrapper,
body.kgc-mirror-tax-cat.kgc-shop-enhanced .wpc-filters-range-wrapper {

  display: flex;
  align-items: center;
  gap: 8px;
}
.tax-product_cat .wpc-filters-range-column,
body.kgc-mirror-tax-cat.kgc-shop-enhanced .wpc-filters-range-column {

  flex: 1 1 0;
}
.tax-product_cat .wpc-filters-range-wrapper input[type="text"],
body.kgc-mirror-tax-cat.kgc-shop-enhanced .wpc-filters-range-wrapper input[type="text"],
.tax-product_cat .wpc-filters-range-wrapper input[type="number"],
body.kgc-mirror-tax-cat.kgc-shop-enhanced .wpc-filters-range-wrapper input[type="number"],
.tax-product_cat .wpc-filter-layout-range input.wpc-filters-range-min,
body.kgc-mirror-tax-cat.kgc-shop-enhanced .wpc-filter-layout-range input.wpc-filters-range-min,
.tax-product_cat .wpc-filter-layout-range input.wpc-filters-range-max,
body.kgc-mirror-tax-cat.kgc-shop-enhanced .wpc-filter-layout-range input.wpc-filters-range-max {

  width: 100%;
  height: 36px;
  border: 1px solid var(--kgc-border);
  border-radius: 0;
  background: #fff;
  color: var(--kgc-dark);
  font-family: Rubik, Montserrat, sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  padding: 0 8px;
  box-sizing: border-box;
}
.tax-product_cat .wpc-filters-range-slider-wrapper,
body.kgc-mirror-tax-cat.kgc-shop-enhanced .wpc-filters-range-slider-wrapper {

  padding: 4px 6px 8px;
}
.tax-product_cat .wpc-filters-range-slider-control,
body.kgc-mirror-tax-cat.kgc-shop-enhanced .wpc-filters-range-slider-control {

  min-height: 18px;
}
.tax-product_cat .ui-slider,
body.kgc-mirror-tax-cat.kgc-shop-enhanced .ui-slider,
.tax-product_cat .wpc-filters-range-slider,
body.kgc-mirror-tax-cat.kgc-shop-enhanced .wpc-filters-range-slider,
.tax-product_cat .wpc-filters-range-slider-control.ui-slider,
body.kgc-mirror-tax-cat.kgc-shop-enhanced .wpc-filters-range-slider-control.ui-slider,
.tax-product_cat .ui-slider-horizontal,
body.kgc-mirror-tax-cat.kgc-shop-enhanced .ui-slider-horizontal {

  height: 6px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #d8dee9 !important;
  margin: 10px 6px 6px !important;
}
.tax-product_cat .ui-slider .ui-slider-range,
body.kgc-mirror-tax-cat.kgc-shop-enhanced .ui-slider .ui-slider-range {

  background: var(--kgc-primary) !important;
  border-radius: 0;
}
.tax-product_cat .ui-slider .ui-slider-handle,
body.kgc-mirror-tax-cat.kgc-shop-enhanced .ui-slider .ui-slider-handle,
.tax-product_cat .wpc-filters-range-slider .ui-slider-handle,
body.kgc-mirror-tax-cat.kgc-shop-enhanced .wpc-filters-range-slider .ui-slider-handle {

  width: 18px !important;
  height: 18px !important;
  top: -6px !important;
  margin-left: -9px !important;
  border: 2px solid var(--kgc-primary) !important;
  border-radius: 50% !important;
  background: #fff !important;
  box-shadow: 0 2px 8px rgba(52, 86, 163, 0.28);
  cursor: grab;
}
.tax-product_cat .ui-slider .ui-slider-handle:hover,
body.kgc-mirror-tax-cat.kgc-shop-enhanced .ui-slider .ui-slider-handle:hover,
.tax-product_cat .ui-slider .ui-slider-handle:focus,
body.kgc-mirror-tax-cat.kgc-shop-enhanced .ui-slider .ui-slider-handle:focus {

  background: var(--kgc-bg-soft) !important;
  box-shadow: 0 0 0 4px rgba(52, 86, 163, 0.16);
  outline: none;
}
/* Degenerate flat price (min === max): single value, no dual handles */
.tax-product_cat .wpc-filters-section.kgc-price-flat .wpc-filters-range-inputs,
body.kgc-mirror-tax-cat.kgc-shop-enhanced .wpc-filters-section.kgc-price-flat .wpc-filters-range-inputs,
.tax-product_cat .wpc-filters-section.kgc-price-flat .wpc-filters-range-wrapper,
body.kgc-mirror-tax-cat.kgc-shop-enhanced .wpc-filters-section.kgc-price-flat .wpc-filters-range-wrapper,
.tax-product_cat .wpc-filters-section.kgc-price-flat .wpc-filters-range-slider-wrapper,
body.kgc-mirror-tax-cat.kgc-shop-enhanced .wpc-filters-section.kgc-price-flat .wpc-filters-range-slider-wrapper,
.tax-product_cat .wpc-filters-section.kgc-price-flat .wpc-filters-range-slider-control,
body.kgc-mirror-tax-cat.kgc-shop-enhanced .wpc-filters-section.kgc-price-flat .wpc-filters-range-slider-control,
.tax-product_cat .wpc-filters-section.kgc-price-flat .ui-slider,
body.kgc-mirror-tax-cat.kgc-shop-enhanced .wpc-filters-section.kgc-price-flat .ui-slider,
.tax-product_cat .wpc-filters-section.kgc-price-flat .wpc-filters-range-slider,
body.kgc-mirror-tax-cat.kgc-shop-enhanced .wpc-filters-section.kgc-price-flat .wpc-filters-range-slider,
.tax-product_cat .wpc-filters-section.kgc-price-flat .ui-slider-handle,
body.kgc-mirror-tax-cat.kgc-shop-enhanced .wpc-filters-section.kgc-price-flat .ui-slider-handle,
.tax-product_cat .wpc-filters-section.kgc-price-flat input.wpc-filters-range-min,
body.kgc-mirror-tax-cat.kgc-shop-enhanced .wpc-filters-section.kgc-price-flat input.wpc-filters-range-min,
.tax-product_cat .wpc-filters-section.kgc-price-flat input.wpc-filters-range-max,
body.kgc-mirror-tax-cat.kgc-shop-enhanced .wpc-filters-section.kgc-price-flat input.wpc-filters-range-max {

  display: none !important;
}
.tax-product_cat .kgc-price-flat-value,
body.kgc-mirror-tax-cat.kgc-shop-enhanced .kgc-price-flat-value {

  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 2px 0 4px;
  font-family: Rubik, Montserrat, sans-serif;
  color: var(--kgc-dark);
}
.tax-product_cat .kgc-price-flat-value__num,
body.kgc-mirror-tax-cat.kgc-shop-enhanced .kgc-price-flat-value__num {

  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.tax-product_cat .kgc-price-flat-value__cur,
body.kgc-mirror-tax-cat.kgc-shop-enhanced .kgc-price-flat-value__cur {

  font-size: 13px;
  font-weight: 600;
  color: var(--kgc-muted);
}
/* FE «Edit Filter Set» — admin-only; never show to visitors / non-admins */
.tax-product_cat .wpc-edit-filter-set,
body.kgc-mirror-tax-cat.kgc-shop-enhanced .wpc-edit-filter-set,
.tax-product_cat a.wpc-edit-filter-set,
body.kgc-mirror-tax-cat.kgc-shop-enhanced a.wpc-edit-filter-set,
.tax-product_cat .widget-area a[href*="post.php"][href*="action=edit"],
body.kgc-mirror-tax-cat.kgc-shop-enhanced .widget-area a[href*="post.php"][href*="action=edit"],
.tax-product_cat .wpc-filters-widget-wrapper > a[href*="filter-set"],
body.kgc-mirror-tax-cat.kgc-shop-enhanced .wpc-filters-widget-wrapper > a[href*="filter-set"],
.tax-product_cat .wpc-filters-main-wrap > a[href*="filter-set"],
body.kgc-mirror-tax-cat.kgc-shop-enhanced .wpc-filters-main-wrap > a[href*="filter-set"],
.tax-product_cat a[href*="admin.php"][href*="page=filters"],
body.kgc-mirror-tax-cat.kgc-shop-enhanced a[href*="admin.php"][href*="page=filters"],
.tax-product_cat a[href*="edit.php"][href*="filter-set"],
body.kgc-mirror-tax-cat.kgc-shop-enhanced a[href*="edit.php"][href*="filter-set"] {

  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}
/* Admins with admin-bar may still open FE from wp-admin */
body.logged-in.admin-bar.tax-product_cat .wpc-edit-filter-set,
body.logged-in.admin-bar.kgc-mirror-tax-cat.kgc-shop-enhanced .wpc-edit-filter-set {

  display: none !important; /* keep frontend clean even for admins */
}
/* Grid — columns from template; children fill track (no float/% width wars) */
.kgc-cat-catalog-layout .shop-grid,
.tax-product_cat #product-page .shop-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 18px !important;
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  align-items: stretch;
  padding: 12px 10px 16px !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  overflow: visible !important;
}
.kgc-cat-catalog-layout .shop-grid::before,
.kgc-cat-catalog-layout .shop-grid::after {
  display: none !important;
  content: none !important;
}
/* Kill Bono #product-page .shop-item { width:33%!important } — CSS Grid owns columns */
.kgc-cat-catalog-layout .shop-grid > .shop-item,
.kgc-cat-catalog-layout .shop-grid--columns-2 > .shop-item,
.kgc-cat-catalog-layout .shop-grid--columns-3 > .shop-item,
.kgc-cat-catalog-layout .shop-grid--columns-4 > .shop-item,
.tax-product_cat #product-page .shop-grid > .shop-item,
.tax-product_cat #product-page .shop-item,
.kgc-cat-catalog-layout .shop-grid > .shop-item,
.post-type-archive-product.kgc-shop-enhanced #product-page .shop-item,
.woocommerce-shop.kgc-shop-enhanced #product-page .shop-item {
  min-width: 0 !important;
  width: auto !important; /* fill grid track; never 100% vs theme 33% */
  max-width: 100% !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important; /* kill Bono .shop-item { padding: 0 10px } — image must be flush */
  justify-self: stretch !important;
  align-self: stretch !important;
  box-sizing: border-box !important;
}
/* Card chrome: edge-to-edge image; gutters live on title + nav (not zeroed body) */
.kgc-cat-catalog-layout .shop-grid > .shop-item .shop-item-inner,
.tax-product_cat #product-page .shop-grid > .shop-item .shop-item-inner {
  padding: 0 !important; /* image flush; see title/nav padding below */
}
.kgc-cat-catalog-layout .shop-grid > .shop-item .shop-item__title,
.tax-product_cat #product-page .shop-grid > .shop-item .shop-item__title {
  padding: 14px 16px 0 !important;
}
.kgc-cat-catalog-layout .shop-grid > .shop-item .shop-item-nav,
.tax-product_cat #product-page .shop-grid > .shop-item .shop-item-nav {
  padding: 10px 16px 14px !important;
}

/* ========== PRODUCT CARDS ========== */
.kgc-product-card {
  background: #fff;
  border: 1px solid var(--kgc-border) !important;
  border-radius: 0 !important;
  box-shadow: var(--kgc-shadow);
  overflow: visible; /* border/shadow must not be clipped by card itself */
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.kgc-product-card:hover {
  box-shadow: var(--kgc-shadow-hover);
  border-color: #c5d0e4 !important;
  transform: translateY(-2px);
}
.kgc-product-card .shop-item-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0 !important;
  gap: 0;
  overflow: hidden; /* clip image only inside inner */
  border-radius: 0;
  background: #fff;
  border: 0 !important; /* kill Bono .shop-item-inner { border: 1px solid #eee !important } */
}
/* Catalog cards: hide tech meta rows by default (muka/pesok keep specs table only) */
.kgc-product-card .kgc-card-attrs {
  display: none !important;
}
/* Obogash category: show 4 tech rows on cards */
.term-obogashhennye-kvarczevye-materialy-frakczionirovannye .kgc-product-card .kgc-card-attrs,
.term-kvarcz-dlya-lkm-kleya-i-germetika .kgc-product-card .kgc-card-attrs,
.term-kvarcz-dlya-litejnogo-proizvodstva .kgc-product-card .kgc-card-attrs,
.term-kvarcz-dlya-suhih-stroitelnyh-materialov .kgc-product-card .kgc-card-attrs {
  display: block !important;
}
.kgc-product-card .shop-item__image {
  position: relative;
  background: var(--kgc-bg-soft);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0;
}
.kgc-product-card .shop-item__image-inner {
  display: block;
  width: 100% !important;
  height: 100% !important; /* kill Bono fixed height: 200px */
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0;
  overflow: hidden;
}
.kgc-product-card .shop-item__image-inner > a {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  line-height: 0;
}
.kgc-product-card .shop-item__image img,
.kgc-product-card .shop-item__image .attachment-woocommerce_thumbnail {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover;
  display: block;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
}
.kgc-product-card .shop-item__badges {
  position: absolute;
  top: 10px;
  left: 10px;
  right: auto;
  z-index: 2;
  display: flex !important;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 6px;
  pointer-events: none;
  max-width: calc(100% - 20px);
}
.kgc-product-card .shop-item__badges > .shop-item__badge,
.kgc-product-card .shop-item__badges > .kgc-badge {
  position: static !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  float: none !important;
  display: inline-flex !important;
  align-items: center;
  margin: 0 !important;
}
.kgc-product-card .shop-item__badges > *:nth-child(n+4) {
  display: none; /* keep photo clean — max 3 badges */
}
.kgc-badge {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 3px 8px;
  border-radius: 0;
  font-size: 11px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.95);
  color: var(--kgc-primary);
  border: 1px solid var(--kgc-border);
  box-shadow: 0 2px 8px rgba(26, 35, 64, 0.08);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.kgc-product-card .shop-item__title {
  padding: 14px 16px 0;
  margin: 0;
  font-size: 15px;
  line-height: 1.35;
  overflow: visible !important;
  max-height: none !important;
  min-width: 0;
  height: auto !important;
}
.kgc-product-card .shop-item__title a,
.kgc-product-card .shop-item__title .woocommerce-loop-product__title,
.kgc-product-card h2.woocommerce-loop-product__title,
.kgc-product-card .woocommerce-loop-product__title {
  display: block !important;
  color: var(--kgc-dark);
  font-weight: 700;
  text-decoration: none;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  word-break: normal;
  overflow-wrap: anywhere;
  hyphens: auto;
  -webkit-box-orient: unset !important;
  -webkit-line-clamp: unset !important;
  line-clamp: unset !important;
  max-height: none !important;
  height: auto !important;
}
.kgc-product-card .shop-item__title a:hover {
  color: var(--kgc-primary);
}
.kgc-product-card .kgc-card-attrs {
  list-style: none;
  margin: 10px 16px 0;
  padding: 0;
  font-size: 12.5px;
  color: var(--kgc-muted);
  flex: 1;
  min-width: 0;
}
.kgc-product-card .kgc-card-attrs li {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  column-gap: 10px;
  row-gap: 2px;
  align-items: start;
  padding: 6px 0;
  border-bottom: 1px solid #eef2f7;
}
.kgc-product-card .kgc-card-attrs li:last-child {
  border-bottom: 0;
}
.kgc-product-card .kgc-card-attrs span {
  color: #7a8699;
  white-space: nowrap;
}
.kgc-product-card .kgc-card-attrs strong {
  color: var(--kgc-text);
  font-weight: 600;
  text-align: left;
  min-width: 0;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.35;
}
/* Pack stock+price+buttons tight under title — no flex hole after hidden meta */
.kgc-product-card .shop-item-nav {
  margin-top: 10px !important;
  padding: 10px 16px 14px !important;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 8px !important;
  flex: 0 0 auto !important;
  border-top: 1px solid #eef2f7;
  background: linear-gradient(180deg, #fcfdff 0%, #f6f8fc 100%);
}
.kgc-product-card .kgc-card-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  min-width: 0;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  flex: 0 0 auto !important;
}
.kgc-product-card .kgc-card-attrs {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  flex: 0 0 auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
}
.kgc-product-card .stock-status {
  margin: 0 0 2px !important;
  padding: 0 !important;
  font-size: 12px;
  letter-spacing: 0.01em;
  line-height: 1.3;
}
.kgc-product-card .stock-in {
  color: #1f7a3f;
  font-weight: 600;
}
.kgc-product-card .stock-in::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22a34a;
  margin-right: 6px;
  vertical-align: middle;
  box-shadow: 0 0 0 3px rgba(34, 163, 74, 0.12);
}
.kgc-product-card .stock-out {
  color: #8a6a2f;
  font-weight: 600;
}
.kgc-product-card .kgc-card-footer {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 8px;
  width: 100%;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
  flex: 0 0 auto !important;
  min-height: 0 !important;
}
/* Price full-width again (qty stepper removed) — tight under stock */
.kgc-product-card .shop-item__price {
  margin: 0 !important;
  padding: 0 !important;
  min-width: 0;
  min-height: 0 !important;
  flex: 0 0 auto !important;
  width: 100%;
  max-width: 100%;
}
.kgc-product-card .kgc-card-buyrow,
.kgc-product-card .kgc-qty {
  display: none !important;
}
.kgc-product-card .shop-item__price .price,
.kgc-product-card .price {
  display: block;
  font-family: Rubik, Montserrat, sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--kgc-dark);
  line-height: 1.2;
}
.kgc-product-card .shop-item__price .price .woocommerce-Price-amount,
.kgc-product-card .price .woocommerce-Price-amount {
  font-weight: 700;
}
.kgc-price-unit {
  display: inline;
  margin-left: 4px;
  font-size: 13px;
  color: var(--kgc-muted);
  font-weight: 500;
  letter-spacing: 0;
  white-space: nowrap;
}
.kgc-price-note {
  display: block !important;
  width: 100%;
  font-size: 11.5px;
  color: #64748b;
  font-weight: 400;
  margin-top: 4px;
  letter-spacing: 0.01em;
  line-height: 1.3;
}
.kgc-product-card .shop-item-buttons {
  display: flex;
  align-items: stretch;
  gap: 8px;
  width: 100%;
  flex: 1 1 100%;
  min-width: 0;
}
.kgc-product-card .shop-item-buttons .button,
.kgc-product-card .shop-item-buttons .add_to_cart_button,
.kgc-product-card .shop-item-buttons a.button,
.kgc-product-card .shop-item-buttons .shop-item__buttons-cart,
.kgc-product-card .shop-item-buttons .kgc-btn-cart {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex: 1 1 auto;
  white-space: nowrap !important;
  min-width: 0;
  width: auto;
  max-width: none;
  height: auto;
  min-height: 42px;
  padding: 11px 14px !important;
  margin: 0;
  border: 0;
  border-radius: 0 !important;
  background: var(--kgc-primary);
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none !important;
  overflow: visible !important;
  text-overflow: clip !important;
  box-shadow: 0 4px 12px rgba(52, 86, 163, 0.22);
  transition: background .18s ease, box-shadow .18s ease, transform .18s ease;
}
.kgc-product-card .shop-item-buttons .button:hover,
.kgc-product-card .shop-item-buttons .add_to_cart_button:hover,
.kgc-product-card .shop-item-buttons a.button:hover,
.kgc-product-card .shop-item-buttons .shop-item__buttons-cart:hover,
.kgc-product-card .shop-item-buttons .kgc-btn-cart:hover {
  background: var(--kgc-primary-dark);
  box-shadow: 0 6px 16px rgba(52, 86, 163, 0.28);
  transform: translateY(-1px);
  color: #fff !important;
}
.kgc-product-card .kgc-btn-cart__icon,
.kgc-product-card .kgc-btn-kp__icon {
  display: block;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
}
.kgc-product-card .kgc-btn-kp__icon {
  width: 15px;
  height: 15px;
}
.kgc-product-card .kgc-btn-cart__label,
.kgc-product-card .kgc-btn-kp__label {
  display: inline;
}
.kgc-product-card .kgc-btn-cart--loading {
  pointer-events: none;
  opacity: 0.88;
}
.kgc-product-card .kgc-btn-cart--added {
  background: #1f7a45 !important;
  box-shadow: 0 4px 14px rgba(31, 122, 69, 0.28);
  animation: kgc-cart-pulse 0.55s ease;
}
.kgc-product-card .kgc-btn-cart--added:hover {
  background: #1a6a3c !important;
  transform: none;
}
.kgc-product-card .kgc-btn-cart--error {
  background: #8b3a3a !important;
  box-shadow: 0 4px 12px rgba(139, 58, 58, 0.22);
}
@keyframes kgc-cart-pulse {
  0% { transform: scale(1); }
  40% { transform: scale(1.03); }
  100% { transform: scale(1); }
}
.kgc-product-card a.added_to_cart.wc-forward {
  display: none !important;
}
.kgc-product-card .shop-item-excerpt {
  display: none; /* B2B attrs replace excerpt wall */
}

/* ========== SECTIONS ========== */
.kgc-cat-sections {
  margin-top: 8px;
}

/*
 * Full-bleed ONLY for SEO bands under .kgc-cat-sections (outside #content / shop).
 * Never put 100vw on #product-page or site-content-inner — that destroyed the shop grid.
 */
.kgc-cat-sections {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.kgc-cat-sections .kgc-section,
.kgc-cat-sections .kgc-section--fullbleed {
  position: relative;
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  box-sizing: border-box;
  padding: var(--kgc-section-y) 0;
  border-radius: 0;
  box-shadow: none;
  background: #fff;
}
/* Edge-to-edge via sections wrapper (safe — not wrapping sidebar+products) */
body.tax-product_cat .kgc-cat-sections {
  width: 100vw;
  max-width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  overflow-x: clip;
}
.kgc-cat-sections .kgc-section .container,
.kgc-cat-sections .kgc-section--fullbleed .container {
  width: 100%;
  max-width: 1340px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
  box-sizing: border-box;
}
/* Soft/gray backgrounds — stretch with the 100vw section */
.kgc-section.kgc-comparison,
.kgc-section.kgc-guide,
.kgc-section.kgc-faq,
.kgc-section.kgc-delivery,
.kgc-section.kgc-standards,
.kgc-section:nth-of-type(even) {
  background: var(--kgc-bg-soft);
}
.kgc-section.kgc-specs,
.kgc-section.kgc-apps,
.kgc-section.kgc-see {
  background: #fff;
}
#comparison-block,
#selection-guide,
#delivery-conditions,
#faq,
#standards-block {
  background: var(--kgc-bg-soft);
}
#specs-table,
#applications-tabs,
#kgc-see-also {
  background: #fff;
}
.kgc-section__title {
  font-family: Rubik, Montserrat, sans-serif;
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--kgc-dark);
  margin: 0 0 8px;
}
.kgc-section__lead {
  max-width: 68ch;
  color: var(--kgc-muted);
  margin: 0 0 20px;
  line-height: 1.55;
}

.kgc-specs-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--kgc-border);
  border-radius: 0;
  background: #fff;
  box-shadow: var(--kgc-shadow);
  position: relative;
}
.kgc-specs-scroll::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 28px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9));
  opacity: 0.9;
}
.kgc-specs-table,
.kgc-comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  font-size: 13px;
}
.kgc-specs-table th,
.kgc-specs-table td,
.kgc-comparison-table th,
.kgc-comparison-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--kgc-border);
  text-align: left;
  vertical-align: middle;
}
.kgc-specs-table tbody tr:hover {
  background: #f7f9fc;
}
.kgc-specs-table th,
.kgc-comparison-table th {
  background: #eef2f8;
  color: var(--kgc-dark);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.kgc-specs-table .sticky-col {
  position: sticky;
  left: 0;
  background: #fff;
  z-index: 1;
  min-width: 130px;
  font-weight: 700;
  color: var(--kgc-dark);
  box-shadow: 4px 0 10px rgba(26, 35, 64, 0.05);
}
.kgc-specs-table thead .sticky-col {
  background: #eef2f8;
  z-index: 2;
}
.kgc-specs-table .kgc-col-secondary {
  display: none;
}
@media (min-width: 1100px) {
  .kgc-specs-table .kgc-col-secondary {
    display: table-cell;
  }
}

.kgc-comparison__intro {
  max-width: 75ch;
  color: var(--kgc-muted);
  margin-bottom: 18px;
  line-height: 1.6;
  font-size: 15px;
}
.kgc-comparison__table-wrap {
  overflow-x: auto;
  border-radius: 0;
  border: 1px solid var(--kgc-border);
  background: #fff;
  box-shadow: var(--kgc-shadow);
}
.kgc-comparison-table td:first-child {
  font-weight: 600;
  color: var(--kgc-dark);
  width: 28%;
}

.kgc-tabs__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.kgc-tabs__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--kgc-border);
  background: #fff;
  border-radius: 0;
  padding: 10px 14px;
  cursor: pointer;
  color: var(--kgc-primary);
  font-weight: 600;
  font-size: 13px;
  line-height: 1.25;
  transition: background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}
.kgc-tabs__icon {
  display: block;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  color: inherit;
}
.kgc-tabs__label {
  display: inline;
}
.kgc-tabs__btn:hover {
  border-color: #b8c7e3;
  color: var(--kgc-primary-dark);
  background: #f7f9fc;
}
.kgc-tabs__btn.is-active {
  background: var(--kgc-primary);
  border-color: var(--kgc-primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(52, 86, 163, 0.25);
}
.kgc-tabs__btn.is-active .kgc-tabs__icon {
  color: #fff;
}
.kgc-tabs__panel {
  display: none;
  background: #fff;
  border: 1px solid var(--kgc-border);
  border-radius: 0;
  padding: 18px 20px;
  box-shadow: var(--kgc-shadow);
  color: var(--kgc-muted);
  line-height: 1.6;
  font-size: 15px;
  animation: kgcFade .25s ease;
}
.kgc-tabs__panel.is-active {
  display: block;
}
.kgc-apps__frac {
  margin-top: 12px;
  color: var(--kgc-text);
  padding-top: 10px;
  border-top: 1px dashed var(--kgc-border);
  font-size: 14px;
}
@keyframes kgcFade {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

.kgc-guide__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.kgc-delivery__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.kgc-guide__card,
.kgc-delivery__card {
  background: #fff;
  border: 1px solid var(--kgc-border);
  border-radius: 0;
  padding: 18px;
  box-shadow: var(--kgc-shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.kgc-guide__card:hover,
.kgc-delivery__card:hover {
  transform: translateY(-2px);
  box-shadow: var(--kgc-shadow-hover);
}
.kgc-guide__num {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  background: var(--kgc-primary);
  color: #fff;
  font-weight: 700;
  margin-bottom: 10px;
  font-size: 13px;
}
.kgc-guide__card-title,
.kgc-delivery__card h3 {
  margin: 0 0 8px;
  color: var(--kgc-dark);
  font-size: 1.02rem;
  font-weight: 700;
}
.kgc-guide__card p,
.kgc-delivery__card p {
  margin: 0;
  color: var(--kgc-muted);
  font-size: 14px;
  line-height: 1.5;
}

.kgc-faq__list {
  max-width: 920px;
}
.kgc-faq__item {
  background: #fff;
  border: 1px solid var(--kgc-border);
  border-radius: 0;
  margin-bottom: 10px;
  padding: 0;
  box-shadow: var(--kgc-shadow);
  overflow: hidden;
}
.kgc-faq__item summary {
  cursor: pointer;
  font-weight: 650;
  color: var(--kgc-dark);
  list-style: none;
  padding: 14px 18px;
  position: relative;
  padding-right: 44px;
}
.kgc-faq__item summary::-webkit-details-marker {
  display: none;
}
.kgc-faq__item summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--kgc-primary);
  font-size: 18px;
  font-weight: 500;
}
.kgc-faq__item[open] summary::after {
  content: "–";
}
.kgc-faq__answer {
  margin: 0;
  padding: 0 18px 16px;
  color: var(--kgc-muted);
  line-height: 1.55;
  font-size: 14.5px;
}
.kgc-see__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.kgc-see__list a {
  display: inline-flex;
  padding: 10px 14px;
  border-radius: var(--kgc-radius-sm);
  background: #fff;
  border: 1px solid var(--kgc-border);
  color: var(--kgc-primary);
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--kgc-shadow);
  transition: border-color .18s ease, background .18s ease;
}
.kgc-see__list a:hover {
  border-color: var(--kgc-primary);
  background: #f3f6fc;
}

/* Sert captions */
.tax-product_cat #sert .sert-block,
.tax-product_cat #sert .sert-item {
  position: relative;
}
.tax-product_cat #sert figcaption,
.tax-product_cat #sert .kgc-sert-caption {
  display: block;
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--kgc-muted);
  text-align: center;
  line-height: 1.35;
}

/* Readmore kill */
#text-catalog .fn_readmore,
.kgc-cat-sections [data-readmore],
#text-catalog[data-readmore] {
  max-height: none !important;
  height: auto !important;
  overflow: visible !important;
}
#text-catalog + [data-readmore-toggle],
.kgc-cat-sections [data-readmore-toggle] {
  display: none !important;
}

/* Mobile drawer — Filter Everything open button (not legacy .kgc-filters-toggle) */
@media (max-width: 991px) {
  .kgc-filters-toggle {
    display: none !important;
  }
  body.kgc-shop-enhanced #product-page > .wpc-filters-open-button-container,
  body.kgc-shop-enhanced .kgc-cat-catalog-layout > .wpc-filters-open-button-container,
  .tax-product_cat #product-page > .wpc-filters-open-button-container,
  .post-type-archive-product #product-page > .wpc-filters-open-button-container {
    display: block !important;
  }
  .kgc-guide__grid,
  .kgc-delivery__grid {
    grid-template-columns: 1fr 1fr;
  }
  .tax-product_cat .widget-area--desktop {
    display: none;
  }
  body.kgc-filters-open .widget-area--desktop,
  body.kgc-filters-open .widget-area,
  body.kgc-filters-open aside.widget-area {
    display: block !important;
    position: fixed;
    inset: 0 auto 0 0;
    width: min(88vw, 360px);
    max-width: 100%;
    height: 100%;
    z-index: 10050;
    background: #fff;
    overflow: auto;
    padding: 16px;
    box-shadow: var(--kgc-shadow-hover);
  }
  body.kgc-filters-open::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(34, 35, 43, 0.45);
    z-index: 10040;
  }
  .kgc-cat-hero__lead {
    font-size: 14px;
  }
  .kgc-cat-quick-tags__item {
    font-size: 12px;
  }
}
@media (max-width: 767px) {
  .kgc-guide__grid,
  .kgc-delivery__grid {
    grid-template-columns: 1fr;
  }
  .kgc-section {
    padding: 32px 0;
  }
  .kgc-product-card .kgc-card-footer {
    flex-direction: column;
    align-items: stretch;
  }
  .kgc-product-card .shop-item-buttons {
    width: 100%;
  }
  .kgc-product-card .shop-item-buttons .button,
  .kgc-product-card .shop-item-buttons .add_to_cart_button,
  .kgc-product-card .shop-item-buttons .shop-item__buttons-cart {
    flex: 1 1 auto;
    text-align: center;
  }
  .kgc-product-card .kgc-btn--kp,
  .kgc-product-card .kgc-btn-kp {
    flex: 0 0 auto !important;
  }
  body.kgc-filters-open .widget-area--desktop,
  body.kgc-filters-open .widget-area,
  body.kgc-filters-open aside.widget-area {
    padding: 16px 14px;
  }
  .kgc-specs-table {
    min-width: 640px;
  }
}
@media (max-width: 390px) {
  .kgc-cat-hero__cta .kgc-btn {
    width: 100%;
  }
  .kgc-cat-badges__item {
    font-size: 12px;
  }
}

@media (min-width: 992px) {
  /* Desktop: 3 cards beside FE sidebar (2 when space is tight handled by minmax) */
  .kgc-cat-catalog-layout .shop-grid,
  .kgc-cat-catalog-layout .shop-grid--columns-2,
  .kgc-cat-catalog-layout .shop-grid--columns-3,
  .kgc-cat-catalog-layout .shop-grid--columns-4,
  .tax-product_cat #product-page .shop-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
  .tax-product_cat #product-page > .wpc-filters-open-button-container {
    display: none !important;
  }
}
@media (min-width: 992px) and (max-width: 1199px) {
  .tax-product_cat.sidebar-left .site-content-inner {
    grid-template-columns: 220px minmax(0, 1fr) !important;
    column-gap: 16px;
  }
  .tax-product_cat.sidebar-left .site-content-inner > #secondary,
  .tax-product_cat.sidebar-left .site-content-inner > aside.widget-area {
    width: 220px !important;
    max-width: 220px !important;
  }
  .kgc-cat-catalog-layout .shop-grid,
  .tax-product_cat #product-page .shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 575px) {
  .kgc-cat-catalog-layout .shop-grid {
    grid-template-columns: 1fr !important;
  }
}
/* Align shop content width with header .fixed without inventing extra gutters */
.tax-product_cat .site-content.fixed,
.tax-product_cat #content.fixed {
  max-width: 1340px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}
@media (min-width: 1200px) {
  .tax-product_cat .site-content.fixed,
  .tax-product_cat #content.fixed,
  .tax-product_cat .kgc-cat-hero__inner,
  .tax-product_cat .kgc-cat-sections .kgc-section .container {
    max-width: 1340px;
  }
}

/* ========== PREMIUM PRICE / КП MODAL ========== */
/* Keep hidden CF7 popup out of layout / scroll targets */
.headen #price-list.po-pap,
body > #price-list.po-pap {
  display: none !important;
}
#kgc-price-modal #price-list.po-pap {
  display: block !important;
  position: static !important;
  visibility: visible !important;
  background: #fff !important;
  border-radius: 0 !important;
  padding: 28px 26px 22px !important;
  max-width: 420px !important;
  width: 100% !important;
  box-shadow: none !important;
  border: 0;
  margin: 0;
}
#kgc-price-modal .callback-form {
  margin: 0;
}
#kgc-price-modal .callback-title {
  color: #3456a3 !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  margin: 0 0 18px !important;
  line-height: 1.25 !important;
  letter-spacing: -0.01em;
  padding-right: 28px;
}
#kgc-price-modal .callback-input1 {
  margin-bottom: 12px;
}
#kgc-price-modal .callback-input1 input {
  width: 100% !important;
  border: 1px solid #c9d5ea !important;
  border-radius: 0 !important;
  padding: 12px 14px !important;
  font-size: 15px !important;
  color: var(--kgc-text) !important;
  background: #f8fafc !important;
  box-shadow: none !important;
}
#kgc-price-modal .callback-input1 input:focus {
  outline: none !important;
  border-color: #3456a3 !important;
  background: #fff !important;
  box-shadow: 0 0 0 3px rgba(52, 86, 163, 0.16) !important;
}
#kgc-price-modal .callback-input2 input[type="submit"] {
  width: 100% !important;
  background: #3456a3 !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 13px 16px !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(52, 86, 163, 0.28) !important;
}
#kgc-price-modal .callback-input2 input[type="submit"]:hover {
  background: #2a4585 !important;
}
#kgc-price-modal .form-sog {
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--kgc-muted);
}
#kgc-price-modal .form-sog a {
  color: #3456a3;
}

.kgc-modal[hidden] {
  display: none !important;
}
.kgc-modal {
  position: fixed;
  inset: 0;
  z-index: 100060;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.kgc-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.58);
}
.kgc-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  background: #fff;
  border-radius: 0;
  border: 1px solid #dbe4f4;
  box-shadow: 0 28px 64px rgba(15, 23, 42, 0.28);
  padding: 8px;
  max-height: calc(100vh - 32px);
  overflow: auto;
}
.kgc-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: #3456a3;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}
body.kgc-modal-open {
  overflow: hidden;
}

/* Hide legacy SEO wall when structured kgc blocks are active */
body.kgc-cat-enhanced #text-catalog,
body.kgc-cat-enhanced .fn_readmore,
body.kgc-cat-enhanced [data-readmore-toggle] {
  display: none !important;
}

/* Ensure global Bono bands stay visible after category sections */
.tax-product_cat #form,
.tax-product_cat #plus,
.tax-product_cat #sert,
.tax-product_cat #contact,
.tax-product_cat #see-also,
.tax-product_cat #colophon {
  display: block;
  visibility: visible;
  opacity: 1;
}

/* Soften inline #form — keep for SEO, not primary CTA target */
.tax-product_cat #form {
  margin-top: 28px;
  opacity: 0.92;
}
.tax-product_cat #form .form-bg {
  border: 1px solid var(--kgc-border);
  border-radius: 0;
  background: var(--kgc-bg-soft);
  box-shadow: none;
}
.tax-product_cat #form .title {
  font-size: 22px;
  color: var(--kgc-dark);
}
.tax-product_cat #form .desc {
  color: var(--kgc-muted);
}


/* ========== BRAND: sharp corporate corners (homepage) ========== */
.tax-product_cat .kgc-btn,
.tax-product_cat .kgc-btn--primary,
.tax-product_cat .kgc-btn--outline,
.tax-product_cat .kgc-btn--small,
.tax-product_cat .kgc-btn--kp,
.tax-product_cat .kgc-btn-kp,
.tax-product_cat .kgc-cat-quick-tags__item,
.tax-product_cat .kgc-filters-toggle,
.tax-product_cat .kgc-fe-empty-note,
.tax-product_cat .kgc-badge,
.tax-product_cat .kgc-product-card,
.tax-product_cat .kgc-product-card .shop-item__image,
.tax-product_cat .kgc-product-card .shop-item__image-inner,
.tax-product_cat .kgc-product-card .kgc-qty,
.tax-product_cat .kgc-product-card .kgc-qty__btn,
.tax-product_cat .kgc-product-card .shop-item-buttons .button,
.tax-product_cat .kgc-product-card .shop-item-buttons .add_to_cart_button,
.tax-product_cat .kgc-product-card .shop-item-buttons .kgc-btn-cart,
.tax-product_cat .kgc-product-card .shop-item-buttons .shop-item__buttons-cart,
.tax-product_cat .kgc-specs-scroll,
.tax-product_cat .kgc-comparison__table-wrap,
.tax-product_cat .kgc-tabs__btn,
.tax-product_cat .kgc-tabs__panel,
.tax-product_cat .kgc-guide__card,
.tax-product_cat .kgc-delivery__card,
.tax-product_cat .kgc-guide__num,
.tax-product_cat .kgc-faq__item,
.tax-product_cat .kgc-see__list a,
.tax-product_cat .kgc-std-card,
.tax-product_cat .wpc-filters-range-wrapper input,
.tax-product_cat #form .form-bg,
.tax-product_cat .kgc-modal__dialog,
.tax-product_cat #kgc-price-modal #price-list.po-pap,
#kgc-price-modal #price-list.po-pap,
#kgc-price-modal .callback-input1 input,
#kgc-price-modal .callback-input2 input[type="submit"],
.kgc-modal__dialog {
  border-radius: 0 !important;
}
/* No decorative crosshair / grid overlays; hero ::before is the full-bleed paint */
.tax-product_cat .kgc-cat-hero::after,
.tax-product_cat .kgc-cat-sections::before,
.tax-product_cat .kgc-cat-sections::after,
.tax-product_cat .kgc-product-card::before,
.tax-product_cat .kgc-product-card::after {
  content: none !important;
  background-image: none !important;
  display: none !important;
}
/* Do NOT restore the old 4px blue edge — it looked broken when hero wasn't edge-to-edge */


/* === LKM category + uses article banner (1.7.14) === */
.kgc-section__subtitle {
  margin: -6px 0 16px;
  font-size: 17px;
  font-weight: 600;
  color: var(--kgc-text, #1a1a1a);
}
.kgc-moisture__grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 900px) {
  .kgc-moisture__grid { grid-template-columns: 1fr; }
}
.kgc-standards__grid--6 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 900px) {
  .kgc-standards__grid--6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .kgc-standards__grid--6 { grid-template-columns: 1fr; }
}
.kgc-uses-lkm-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 16px 0 28px;
  padding: 18px 20px;
  background: linear-gradient(135deg, #eef2fb 0%, #f7f9fc 55%, #fff 100%);
  border-left: 4px solid #3456a3;
}
.kgc-uses-lkm-banner__text {
  flex: 1 1 280px;
  min-width: 0;
}
.kgc-uses-lkm-banner__text strong {
  display: block;
  font-size: 17px;
  color: #1a1a1a;
  margin-bottom: 4px;
}
.kgc-uses-lkm-banner__text p {
  margin: 0;
  color: var(--kgc-muted, #556);
  font-size: 14px;
  line-height: 1.5;
}
.kgc-uses-lkm-banner .kgc-btn {
  flex: 0 0 auto;
  white-space: normal;
  text-align: center;
  max-width: 360px;
}
.kgc-uses-lkm-article h1 {
  font-size: clamp(24px, 3vw, 34px);
  margin: 0 0 16px;
}
.kgc-uses-lkm-article p {
  line-height: 1.65;
  margin: 0 0 14px;
}


/* === Shop /catalog/ hub (1.7.22) === */
.post-type-archive-product.kgc-shop-enhanced .kgc-cat-hero,
.woocommerce-shop.kgc-shop-enhanced .kgc-cat-hero {
  margin-bottom: 0;
}
/* /catalog/ — flush hero → industries (grid row-gap + hero gradient #fff lip) */
body.post-type-archive-product.kgc-shop-enhanced.kgc-mirror-tax-cat.sidebar-left .site-content-inner {
  row-gap: 0;
}
body.post-type-archive-product.kgc-shop-enhanced .kgc-cat-hero::before {
  background: linear-gradient(105deg, #eef2f9 0%, var(--kgc-bg-soft) 38%, #f7f9fc 72%, var(--kgc-bg-soft) 100%);
  border-bottom: none;
}
body.post-type-archive-product.kgc-shop-enhanced .kgc-industries-bar {
  margin-top: 0;
}
.kgc-shop-tiles {
  position: relative;
  padding: 24px 0 10px;
  background: transparent;
}
.kgc-shop-tiles__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}
@media (max-width: 1100px) {
  .kgc-shop-tiles__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .kgc-shop-tiles__grid { grid-template-columns: 1fr; }
}
.kgc-shop-tile {
  display: flex;
  flex-direction: column;
  height: auto;
  text-decoration: none;
  color: inherit;
  border: 1px solid #dbe2ef;
  border-radius: 0;
  background: #fff;
  box-shadow: 0 8px 22px rgba(52, 86, 163, 0.06);
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease, transform .18s ease;
  overflow: hidden;
}
.kgc-shop-tile:hover {
  border-color: #3456a3;
  background: #fafbfd;
  box-shadow: 0 8px 22px rgba(52, 86, 163, 0.14);
  transform: translateY(-2px);
}
.kgc-shop-tile__media {
  aspect-ratio: 16 / 10;
  background: #eef2f8;
  overflow: hidden;
}
.kgc-shop-tile__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.kgc-shop-tile__body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  gap: 6px;
  min-height: 0;
}
.kgc-shop-tile__title {
  margin: 0;
  font-size: 15px;
  line-height: 1.32;
  font-weight: 700;
  color: #1a1a1a;
}
.kgc-shop-tile__frac {
  margin: 0;
  font-size: 12.5px;
  color: #556070;
  line-height: 1.45;
  flex: 0 0 auto;
}
.kgc-shop-tile__meta {
  margin: 8px 0 0;
  padding-top: 10px;
  border-top: 1px solid #e4eaf3;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #3456a3;
}
.kgc-industries-bar {
  position: relative;
  padding: 14px 0 20px;
  background: transparent;
  border: 0;
  overflow: visible;
  z-index: 0;
}
.kgc-industries-bar::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  max-width: 100vw;
  transform: translateX(-50%);
  z-index: -1;
  pointer-events: none;
  background: #f5f7fb;
  border-top: 1px solid #e4eaf3;
  border-bottom: 1px solid #e4eaf3;
}
.kgc-industries-bar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}
.kgc-industries-bar__label {
  font-size: 13px;
  font-weight: 700;
  color: #22232b;
  white-space: nowrap;
}
.kgc-industries-bar__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.kgc-industries-bar__list a {
  display: inline-block;
  padding: 7px 12px;
  border: 1px solid #cfd8e8;
  background: #fff;
  color: #3456a3;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.kgc-industries-bar__list a:hover {
  background: #3456a3;
  border-color: #3456a3;
  color: #fff;
}
.kgc-mineral-specs__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 800px) {
  .kgc-mineral-specs__grid { grid-template-columns: 1fr; }
}
.kgc-mineral-specs__col h3 {
  margin: 0 0 12px;
  font-size: 18px;
}
.kgc-mineral-specs__table {
  width: 100%;
  border-collapse: collapse;
}
.kgc-mineral-specs__table th,
.kgc-mineral-specs__table td {
  border-bottom: 1px solid #e4eaf3;
  padding: 10px 8px;
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}
.kgc-mineral-specs__table th {
  width: 46%;
  color: #556070;
  font-weight: 600;
}
.kgc-mineral-specs__stds {
  margin: 18px 0 0;
  font-size: 14px;
  color: #1a1a1a;
  line-height: 1.5;
}

/* Price slider overflow fix — shop + categories */
.post-type-archive-product .wpc-filters-range-slider-wrapper,
.woocommerce-shop .wpc-filters-range-slider-wrapper,
.tax-product_cat .wpc-filters-range-slider-wrapper {
  width: 100%;
  box-sizing: border-box;
  padding: 4px 10px 10px;
  overflow: hidden;
}
.post-type-archive-product .wpc-filters-range-slider-control,
.woocommerce-shop .wpc-filters-range-slider-control,
.tax-product_cat .wpc-filters-range-slider-control {
  width: 100%;
  box-sizing: border-box;
  padding: 0 8px;
}
.post-type-archive-product .ui-slider,
.woocommerce-shop .ui-slider,
.post-type-archive-product .wpc-filters-range-slider-control.ui-slider,
.woocommerce-shop .wpc-filters-range-slider-control.ui-slider {
  height: 6px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #d8dee9 !important;
  margin: 10px 8px 6px !important;
  max-width: calc(100% - 16px);
  box-sizing: border-box;
}
.post-type-archive-product .ui-slider .ui-slider-handle,
.woocommerce-shop .ui-slider .ui-slider-handle {
  width: 18px !important;
  height: 18px !important;
  top: -6px !important;
  margin-left: -8px !important;
  border: 2px solid #3456a3 !important;
  border-radius: 50% !important;
  background: #fff !important;
}

/* Shop layout mirrors category enhanced */
body.post-type-archive-product.kgc-shop-enhanced.sidebar-left .site-content-inner > .kgc-cat-hero,
body.post-type-archive-product.kgc-shop-enhanced.sidebar-left .site-content-inner > .cat-hero {
  grid-area: hero;
  grid-column: 1 / -1 !important;
}
body.post-type-archive-product.kgc-shop-enhanced.sidebar-left .site-content-inner > .kgc-industries-bar {
  grid-area: industries;
  grid-column: 1 / -1 !important;
}
body.post-type-archive-product.kgc-shop-enhanced.sidebar-left .site-content-inner > .kgc-shop-cat-info,
body.post-type-archive-product.kgc-shop-enhanced.sidebar-left .site-content-inner > .cat-info.kgc-shop-cat-info,
body.post-type-archive-product.kgc-shop-enhanced.sidebar-left .site-content-inner > .kgc-shop-tiles {
  grid-area: tiles;
  grid-column: 1 / -1 !important;
}
body.post-type-archive-product.kgc-shop-enhanced .kgc-shop-sections {
  margin-top: 0;
}

/* ========== Shop /catalog/ hub — bleed + header-width ladder (1.7.89) ========== */
.post-type-archive-product.kgc-shop-enhanced,
.post-type-archive-product.kgc-shop-enhanced #page {
  overflow-x: hidden;
  max-width: 100%;
}
.post-type-archive-product.kgc-shop-enhanced #masthead.site-header,
.post-type-archive-product.kgc-shop-enhanced #masthead,
.post-type-archive-product.kgc-shop-enhanced .site-header {
  margin-bottom: 0 !important;
}
.post-type-archive-product.kgc-shop-enhanced .site-content,
.post-type-archive-product.kgc-shop-enhanced .site-content-inner,
.post-type-archive-product.kgc-shop-enhanced #content.site-content {
  margin-top: 0 !important;
  overflow-x: visible;
  max-width: 100%;
}
/* Hero/tiles may visually bleed; catalog grid column must match tax-product_cat (peskostruj). */
.post-type-archive-product.kgc-shop-enhanced .site-content.fixed,
.post-type-archive-product.kgc-shop-enhanced #content.fixed,
.post-type-archive-product.kgc-shop-enhanced .site-content-inner {
  width: 100%;
  max-width: 1320px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 16px !important;
  padding-right: 16px !important;
  box-sizing: border-box;
}
@media (min-width: 768px) {
  body.kgc-mirror-tax-cat.post-type-archive-product.kgc-shop-enhanced #content.site-content.fixed,
  body.kgc-mirror-tax-cat.post-type-archive-product.kgc-shop-enhanced .site-content-inner {
    max-width: 992px !important;
  }
}
@media (min-width: 992px) {
  body.kgc-mirror-tax-cat.post-type-archive-product.kgc-shop-enhanced #content.site-content.fixed,
  body.kgc-mirror-tax-cat.post-type-archive-product.kgc-shop-enhanced .site-content-inner {
    max-width: 1200px !important;
  }
}
@media (min-width: 1200px) {
  body.kgc-mirror-tax-cat.post-type-archive-product.kgc-shop-enhanced #content.site-content.fixed,
  body.kgc-mirror-tax-cat.post-type-archive-product.kgc-shop-enhanced .site-content-inner {
    max-width: 1320px !important;
  }
}
body.kgc-mirror-tax-cat.post-type-archive-product.kgc-shop-enhanced #primary.content-area,
body.kgc-mirror-tax-cat.post-type-archive-product.kgc-shop-enhanced .site-content-inner > #primary {
  max-width: 100% !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  float: none !important;
}
body.kgc-shop-enhanced .kgc-cat-hero__inner,
body.kgc-shop-enhanced .kgc-shop-tiles > .container,
body.kgc-shop-enhanced .kgc-industries-bar > .container,
body.kgc-shop-enhanced .kgc-cat-sections .kgc-section .container {
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
  box-sizing: border-box;
}
@media (min-width: 768px) {
  body.kgc-shop-enhanced .kgc-cat-hero__inner,
  body.kgc-shop-enhanced .kgc-shop-tiles > .container,
  body.kgc-shop-enhanced .kgc-industries-bar > .container,
  body.kgc-shop-enhanced .kgc-cat-sections .kgc-section .container {
    max-width: 992px;
  }
}
@media (min-width: 992px) {
  body.kgc-shop-enhanced .kgc-cat-hero__inner,
  body.kgc-shop-enhanced .kgc-shop-tiles > .container,
  body.kgc-shop-enhanced .kgc-industries-bar > .container,
  body.kgc-shop-enhanced .kgc-cat-sections .kgc-section .container {
    max-width: 1200px;
  }
}
@media (min-width: 1200px) {
  body.kgc-shop-enhanced .kgc-cat-hero__inner,
  body.kgc-shop-enhanced .kgc-shop-tiles > .container,
  body.kgc-shop-enhanced .kgc-industries-bar > .container,
  body.kgc-shop-enhanced .kgc-cat-sections .kgc-section .container {
    max-width: 1320px;
  }
}
.post-type-archive-product.kgc-shop-enhanced .wpc-filters-widget-empty,
.post-type-archive-product.kgc-shop-enhanced .wpc-filters-empty-message,
.post-type-archive-product.kgc-shop-enhanced .wpc-filter-set-empty,
.post-type-archive-product.kgc-shop-enhanced .wpc-filters-no-filters,
body.kgc-shop-enhanced .wpc-edit-filter-set {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* —— Cement / тампонажные цементы —— */
.kgc-cat-sections--cement .kgc-mechanism__grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.kgc-cat-sections--cement .kgc-apps-cards__grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 1024px) {
  .kgc-cat-sections--cement .kgc-mechanism__grid,
  .kgc-cat-sections--cement .kgc-apps-cards__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .kgc-cat-sections--cement .kgc-mechanism__grid,
  .kgc-cat-sections--cement .kgc-apps-cards__grid {
    grid-template-columns: 1fr;
  }
}
.kgc-cat-sections--peskostruj .kgc-specs-table--peskostruj {
	min-width: 960px;
}
.kgc-cat-sections--peskostruj .kgc-safety__ppe {
	margin-top: 16px;
	line-height: 1.55;
}
.kgc-cat-sections--cement .kgc-mechanism__intro {
  max-width: 920px;
  margin-bottom: 22px;
}
.kgc-buy-cta {
  background: linear-gradient(135deg, #f5f7fb 0%, #eef2f9 55%, #f8fafc 100%);
}
.kgc-buy-cta__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.85fr);
  gap: clamp(20px, 3vw, 36px);
  align-items: start;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(34, 35, 43, 0.06);
}
.kgc-buy-cta__facts {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  color: #556070;
  font-size: 15px;
  line-height: 1.45;
}
.kgc-buy-cta__facts li::before {
  content: "•";
  color: #3456a3;
  margin-right: 8px;
  font-weight: 700;
}
.kgc-buy-cta__cards {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}
.kgc-buy-cta__card {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #f5f7fb;
  border: 1px solid #e8edf5;
}
.kgc-buy-cta__card strong {
  color: #1a1a1a;
  font-size: 14px;
}
.kgc-buy-cta__card span {
  color: #556070;
  font-size: 13px;
  line-height: 1.4;
}
.kgc-buy-cta__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-self: stretch;
}
.kgc-buy-cta__actions .kgc-btn {
  width: 100%;
  justify-content: center;
  text-align: center;
}
.kgc-buy-cta__note {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.4;
  color: #6b7785;
}
@media (max-width: 900px) {
  .kgc-buy-cta__inner {
    grid-template-columns: 1fr;
  }
}
body.tax-product_cat .kgc-cement-filters .wpc-filters-section[data-kgc-hidden="1"],
body.tax-product_cat .kgc-plitki-filters .wpc-filters-section[data-kgc-hidden="1"] {
  display: none !important;
}
.kgc-cat-sections--plitki .kgc-specs__lead h3 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1.05rem;
  color: #1a2744;
}
.kgc-specs-mid-cta {
  margin-top: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: #eef2fb;
  border-radius: 12px;
  text-align: center;
}
.kgc-specs-mid-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 12px;
}
.kgc-filter-calc {
  background: #f5f7fb;
  padding-top: 2.5rem;
  padding-bottom: 2.75rem;
}
.kgc-filter-calc__head {
  max-width: 52rem;
  margin-bottom: 1.5rem;
}
.kgc-filter-calc__title {
  margin-bottom: 0.5rem;
}
.kgc-filter-calc__formula {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #4a5568;
}
.kgc-filter-calc__panel {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0;
  box-shadow: 0 12px 40px rgba(26, 39, 68, 0.06);
  padding: 1.5rem 1.75rem 1.75rem;
}
.kgc-filter-calc__interactive {
  padding-bottom: 0.25rem;
}
.kgc-filter-calc__field {
  margin-bottom: 0.75rem;
}
.kgc-filter-calc__label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #3d4f6f;
}
.kgc-filter-calc__dd {
  position: relative;
  max-width: 100%;
}
.kgc-filter-calc__select--native {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.kgc-filter-calc__dd-trigger {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  padding: 11px 44px 11px 16px;
  font: inherit;
  text-align: left;
  color: #1a2744;
  background: #fff;
  border: 1px solid #3456a3;
  border-radius: 0;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.kgc-filter-calc__dd-trigger:hover {
  background: #fafbfd;
  box-shadow: 0 2px 8px rgba(52, 86, 163, 0.08);
}
.kgc-filter-calc__dd-trigger:focus {
  outline: none;
}
.kgc-filter-calc__dd-trigger:focus-visible {
  box-shadow: 0 0 0 3px rgba(52, 86, 163, 0.2);
}
.kgc-filter-calc__dd-trigger[aria-expanded="true"] {
  border-radius: 0;
  border-bottom-color: #e2e8f0;
  box-shadow: 0 4px 16px rgba(26, 39, 68, 0.08);
}
.kgc-filter-calc__dd-value {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.kgc-filter-calc__dd-placeholder {
  font-size: 15px;
  line-height: 1.35;
  color: #6b7785;
}
.kgc-filter-calc__dd-trigger--has-value .kgc-filter-calc__dd-placeholder {
  display: none;
}
.kgc-filter-calc__dd-value-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  color: #1a2744;
}
.kgc-filter-calc__dd-value-meta {
  font-size: 13px;
  line-height: 1.35;
  color: #6b7785;
}
.kgc-filter-calc__dd-chevron {
  position: absolute;
  right: 16px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid #3456a3;
  border-bottom: 2px solid #3456a3;
  transform: translateY(-65%) rotate(45deg);
  transition: transform 0.2s ease;
  pointer-events: none;
}
.kgc-filter-calc__dd-trigger[aria-expanded="true"] .kgc-filter-calc__dd-chevron {
  transform: translateY(-35%) rotate(-135deg);
}
.kgc-filter-calc__dd-panel {
  position: absolute;
  z-index: 40;
  left: 0;
  right: 0;
  max-height: min(340px, 52vh);
  overflow: auto;
  overscroll-behavior: contain;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-top: none;
  border-radius: 0;
  box-shadow: 0 16px 40px rgba(26, 39, 68, 0.12);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.kgc-filter-calc__dd-panel:not([hidden]) {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.kgc-filter-calc__dd-panel[hidden] {
  display: block;
  visibility: hidden;
}
.kgc-filter-calc__dd-group-label {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 10px 14px 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #3d4f6f;
  background: #f8fafc;
  border-bottom: 1px solid #eef2f7;
}
.kgc-filter-calc__dd-option {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-height: 44px;
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.14s ease, color 0.14s ease;
}
.kgc-filter-calc__dd-option:last-child {
  border-bottom: none;
}
.kgc-filter-calc__dd-option-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  color: #1a2744;
}
.kgc-filter-calc__dd-option-meta {
  font-size: 13px;
  line-height: 1.35;
  color: #6b7785;
}
.kgc-filter-calc__dd-option:hover,
.kgc-filter-calc__dd-option.kgc-filter-calc__dd-option--focus {
  background: #eef2fb;
}
.kgc-filter-calc__dd-option[aria-selected="true"] {
  background: #3456a3;
}
.kgc-filter-calc__dd-option[aria-selected="true"] .kgc-filter-calc__dd-option-title,
.kgc-filter-calc__dd-option[aria-selected="true"] .kgc-filter-calc__dd-option-meta {
  color: #fff;
}
.kgc-filter-calc__dd-option[aria-selected="true"]:hover {
  background: #2d4a8f;
}
.kgc-filter-calc__hint {
  margin: 0 0 1.25rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #6b7785;
}
.kgc-filter-calc__hint[hidden] {
  display: none;
}
.kgc-filter-calc__output {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.kgc-filter-calc__metric {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  padding: 1.1rem 1.25rem;
  background: linear-gradient(135deg, var(--kgc-primary) 0%, #2d4a8f 100%);
  border-radius: 0;
  color: #fff;
  box-shadow: 0 8px 24px rgba(52, 86, 163, 0.32);
}
.kgc-filter-calc__metric-bags {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.kgc-filter-calc__metric-unit {
  font-size: 1rem;
  font-weight: 600;
  opacity: 0.92;
}
.kgc-filter-calc__metric-sub {
  flex-basis: 100%;
  margin: 0.25rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  opacity: 0.88;
}
.kgc-filter-calc__result {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #2d3a50;
}
.kgc-filter-calc__cta {
  width: 100%;
  margin-top: 0.25rem;
  padding-top: 14px;
  padding-bottom: 14px;
  font-size: 15px;
  border-radius: 0 !important;
}
.kgc-filter-calc__refs {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e8edf5;
}
.kgc-filter-calc__refs-title {
  margin: 0 0 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6b7785;
}
.kgc-filter-calc__refs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.kgc-filter-calc__ref-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0;
  padding: 1rem 1.1rem 1.1rem;
}
.kgc-filter-calc__ref-heading {
  margin: 0 0 0.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1a2744;
}
.kgc-filter-calc__table-html {
  overflow-x: auto;
}
.kgc-filter-calc__table-html .kgc-inline-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
  line-height: 1.4;
}
.kgc-filter-calc__table-html .kgc-inline-table th {
  padding: 8px 10px;
  text-align: left;
  font-weight: 600;
  color: #fff;
  background: #3d4f6f;
  border: 1px solid #3d4f6f;
}
.kgc-filter-calc__table-html .kgc-inline-table th:first-child {
  border-radius: 0;
}
.kgc-filter-calc__table-html .kgc-inline-table th:last-child {
  border-radius: 0;
}
.kgc-filter-calc__table-html .kgc-inline-table td {
  padding: 8px 10px;
  text-align: left;
  color: #2d3a50;
  border: 1px solid #e2e8f0;
  background: #fff;
}
.kgc-filter-calc__table-html .kgc-inline-table tbody tr:nth-child(even) td {
  background: #f3f6fb;
}
@media (max-width: 720px) {
  .kgc-filter-calc__panel {
    padding: 1.25rem 1.1rem 1.35rem;
  }
  .kgc-filter-calc__refs-grid {
    grid-template-columns: 1fr;
  }
}
body.tax-product_cat .kgc-filtr-filters .wpc-filters-section[data-kgc-hidden="1"] {
  display: none !important;
}

/* /catalog/ — inherit category FE list flow (no plugin scroll box) */
body.kgc-mirror-tax-cat.kgc-shop-enhanced #secondary .wpc-filters-widget-wrapper,
body.kgc-mirror-tax-cat.kgc-shop-enhanced #secondary .wpc-filters-widget-content,
body.kgc-mirror-tax-cat.kgc-shop-enhanced #secondary .wpc-filter-content,
body.kgc-mirror-tax-cat.kgc-shop-enhanced #secondary .wpc-filters-section-content,
body.kgc-mirror-tax-cat.kgc-shop-enhanced #secondary .wpc-filters-ul,
body.kgc-mirror-tax-cat.kgc-shop-enhanced #secondary .wpc-filters-ul-list,
body.kgc-mirror-tax-cat.kgc-shop-enhanced .kgc-shop-filters .wpc-filters-widget-wrapper,
body.kgc-mirror-tax-cat.kgc-shop-enhanced .kgc-shop-filters .wpc-filters-ul,
body.kgc-mirror-tax-cat.kgc-shop-enhanced .kgc-shop-filters .wpc-filters-ul-list {
  max-height: none !important;
  overflow: visible !important;
  overflow-y: visible !important;
}
body.kgc-mirror-tax-cat.kgc-shop-enhanced #secondary .widget,
body.kgc-mirror-tax-cat.kgc-shop-enhanced #secondary .widget-area {
  overflow: visible !important;
}

/* ========== /catalog/ — mirror tax-product_cat layout (kvarczevaya-muka pattern) ========== */
body.kgc-mirror-tax-cat.sidebar-left .site-content-inner {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-areas:
    "hero"
    "industries"
    "tiles"
    "catalog" !important;
  column-gap: 0;
  row-gap: 8px;
  align-items: start;
}
body.kgc-mirror-tax-cat.sidebar-left .site-content-inner > .kgc-cat-hero,
body.kgc-mirror-tax-cat.sidebar-left .site-content-inner > .cat-hero {
  grid-area: hero !important;
  grid-column: 1 / -1 !important;
  width: 100% !important;
}
body.kgc-mirror-tax-cat.sidebar-left .site-content-inner > .kgc-industries-bar {
  grid-area: industries !important;
  grid-column: 1 / -1 !important;
  width: 100% !important;
}
body.kgc-mirror-tax-cat.sidebar-left .site-content-inner > .kgc-shop-cat-info,
body.kgc-mirror-tax-cat.sidebar-left .site-content-inner > .cat-info.kgc-shop-cat-info {
  grid-area: tiles !important;
  grid-column: 1 / -1 !important;
  width: 100% !important;
}
body.kgc-mirror-tax-cat.sidebar-left .site-content-inner > #primary,
body.kgc-mirror-tax-cat.sidebar-left .site-content-inner > .content-area {
  grid-area: catalog !important;
  grid-column: 1 / -1 !important;
  width: 100% !important;
  min-width: 0 !important;
  display: grid !important;
  grid-template-columns: 280px minmax(0, 1fr) !important;
  grid-template-areas: "sidebar content" !important;
  column-gap: 24px;
  align-items: start;
  box-sizing: border-box;
}
body.kgc-mirror-tax-cat.sidebar-left #primary > main,
body.kgc-mirror-tax-cat.sidebar-left .content-area > main {
  display: contents !important;
}
body.kgc-mirror-tax-cat.sidebar-left #primary #secondary,
body.kgc-mirror-tax-cat.sidebar-left #primary > aside.widget-area {
  grid-area: sidebar !important;
  grid-column: 1 !important;
  width: 280px !important;
  max-width: 280px !important;
  float: none !important;
  display: block !important;
  position: sticky;
  top: 96px;
  z-index: 2;
  align-self: start;
  margin: 0 !important;
}
body.kgc-mirror-tax-cat.sidebar-left #primary #product-page {
  grid-area: content !important;
  grid-column: 2 !important;
  min-width: 0 !important;
}
body.kgc-mirror-tax-cat.kgc-fe-empty.sidebar-left #primary,
body.kgc-mirror-tax-cat.kgc-no-filters.sidebar-left #primary {
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-areas: "content" !important;
}
body.kgc-mirror-tax-cat.kgc-fe-empty.sidebar-left #primary #secondary,
body.kgc-mirror-tax-cat.kgc-no-filters.sidebar-left #primary #secondary,
body.kgc-mirror-tax-cat.kgc-fe-empty.sidebar-left #primary > aside.widget-area,
body.kgc-mirror-tax-cat.kgc-no-filters.sidebar-left #primary > aside.widget-area {
  display: none !important;
}
body.kgc-mirror-tax-cat.sidebar-left #product-page.kgc-cat-catalog-layout,
body.kgc-mirror-tax-cat.sidebar-left #product-page {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  float: none !important;
  box-sizing: border-box !important;
}
@media (max-width: 991px) {
  body.kgc-mirror-tax-cat.sidebar-left .site-content-inner > #primary,
  body.kgc-mirror-tax-cat.sidebar-left .site-content-inner > .content-area,
  body.kgc-mirror-tax-cat.sidebar-left #primary,
  body.kgc-mirror-tax-cat.sidebar-left .content-area {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas: "content" !important;
    column-gap: 0 !important;
  }
  body.kgc-mirror-tax-cat.sidebar-left #primary #secondary,
  body.kgc-mirror-tax-cat.sidebar-left #primary > aside.widget-area {
    display: none !important;
    position: static;
  }
  body.kgc-mirror-tax-cat.sidebar-left #primary #product-page {
    grid-column: 1 !important;
  }
}

/* Mobile: clip horizontal bleed layers — keep header/content aligned to viewport */
@media (max-width: 991.98px) {
  body.kgc-shop-enhanced,
  body.kgc-cat-enhanced,
  body.kgc-shop-enhanced #page,
  body.kgc-cat-enhanced #page {
    overflow-x: clip;
    max-width: 100%;
  }
  body.kgc-shop-enhanced #masthead,
  body.kgc-cat-enhanced #masthead,
  body.kgc-shop-enhanced .site-header-inner,
  body.kgc-cat-enhanced .site-header-inner {
    max-width: 100%;
    box-sizing: border-box;
  }
}
body.kgc-mirror-tax-cat .kgc-industries-bar > .container,
body.kgc-mirror-tax-cat .kgc-shop-cat-info {
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}
body.kgc-mirror-tax-cat .kgc-shop-cat-info {
  margin: 0 0 12px;
  padding: 0 16px;
}
body.kgc-mirror-tax-cat .kgc-shop-cat-info .subcategory-item {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
body.kgc-mirror-tax-cat .kgc-shop-cat-info .subcategory-block {
  flex: 1 1 220px;
  max-width: 280px;
}
@media (max-width: 991px) {
  body.kgc-mirror-tax-cat .kgc-shop-cat-info .subcategory-item:not(.owl-loaded) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  body.kgc-mirror-tax-cat .kgc-shop-cat-info .subcategory-item:not(.owl-loaded) .subcategory-block {
    flex: none;
    max-width: none;
  }
}
@media (max-width: 480px) {
  body.kgc-mirror-tax-cat .kgc-shop-cat-info .subcategory-item:not(.owl-loaded) {
    grid-template-columns: 1fr;
  }
}
@media (min-width: 992px) {
  body.kgc-mirror-tax-cat .kgc-cat-catalog-layout .shop-grid,
  body.kgc-mirror-tax-cat #product-page .shop-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}
body.kgc-mirror-tax-cat .kgc-product-card::before,
body.kgc-mirror-tax-cat .kgc-product-card::after {
  content: none !important;
  display: none !important;
}
@media (max-width: 991px) {
  .content-area,
  .kgc-cat-catalog-layout,
  .shop-sorting,
  .woocommerce-ordering {
    min-width: 0 !important;
    max-width: 100% !important;
  }
  .woocommerce-ordering select.orderby {
    display: block;
    width: 100% !important;
    max-width: calc(100vw - 72px) !important;
    min-width: 0 !important;
    box-sizing: border-box;
  }
}
