/* Header bar: taller row, hero fade, right-aligned nav, rounded contact button. */

header.section-block-demo39-header {
  background-color: transparent;
  border: 0 !important;
  border-top: 0 !important;
  box-shadow: none;
}

.section-block-demo39-header .header-top {
  display: none !important;
}

.section-header-wrap-block.section-block-demo39-header > .header-outer-wrap > .header-bottom {
  background-color: transparent;
  border: 0;
  padding-top: 0;
  padding-bottom: 0;
}

.section-header-wrap-block.section-block-demo39-header > .header-outer-wrap > .header-bottom > .layout {
  height: 88px;
  min-height: 88px;
}

.section-header-wrap-block.section-block-demo39-header > .header-outer-wrap > .header-bottom > .layout > .nav {
  justify-content: flex-end;
  margin-left: auto;
  padding: 0 0 0 2rem;
  gap: 0;
}

.section-block-demo39-header .nav > li,
.section-block-demo39-header .nav > li:nth-child(n+2) {
  margin: 0 0 0 2rem;
}

.section-block-demo39-header .nav > li:first-child {
  margin-left: 0;
}

.section-block-demo39-header .nav > li > a {
  line-height: 1.2;
  padding: 10px 0 12px;
  color: #161616;
  background: transparent !important;
}

.section-header-wrap-block.section-block-demo39-header > .header-outer-wrap > .header-bottom > .layout > .nav > li > a > em {
  color: #161616;
  font-size: 15px;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.section-block-demo39-header[head-active-text-color] .nav > li.active > a,
.section-block-demo39-header[head-active-text-color] .nav > li:hover > a,
.section-block-demo39-header[head-active-text-color] .nav > li.active > a > em,
.section-block-demo39-header[head-active-text-color] .nav > li:hover > a > em {
  color: #078132 !important;
  fill: #078132 !important;
}

.section-block-demo39-header[head-active-bg] .nav > li > a::after {
  content: "";
  top: auto;
  bottom: 6px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #078132;
  opacity: 0;
  z-index: 1;
}

.section-block-demo39-header[head-active-bg] .nav > li.active > a::after,
.section-block-demo39-header[head-active-bg] .nav > li:hover > a::after {
  top: auto;
  bottom: 6px;
  left: 0;
  width: 100%;
  height: 2px;
  opacity: 1;
}

.section-block-demo39-header .nav > li > a:focus-visible {
  outline: 2px solid #078132;
  outline-offset: 4px;
}

.section-header-wrap-block.section-block-demo39-header > .header-outer-wrap > .header-bottom > .layout > .btn.btn-inquiry {
  position: relative;
  isolation: isolate;
  height: 40px;
  margin: 0 0 0 28px;
  padding: 0 20px 0 22px;
  border: 0;
  border-radius: 999px;
  background: #078132;
  color: #fff;
  font-family: Poppins, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  overflow: visible;
  box-shadow: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.section-block-demo39-header .header-bottom .btn.btn-inquiry .la,
.section-block-demo39-header .header-bottom .btn.btn-inquiry .btn-ani {
  display: none;
}

.section-block-demo39-header .header-bottom .btn.btn-inquiry::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: 12px;
  border-top: 1.5px solid #fff;
  border-right: 1.5px solid #fff;
  transform: rotate(45deg);
  background: none;
  opacity: 1;
  position: static;
}

.section-block-demo39-header .header-bottom .btn.btn-inquiry:hover {
  background: #056b29;
  color: #fff;
  transform: none;
  box-shadow: none;
}

.section-block-demo39-header .header-bottom .btn.btn-inquiry:focus-visible {
  outline: 2px solid #078132;
  outline-offset: 3px;
}

/* Hero pages: the bar stays fixed. Only the fill and type change with scroll. */
header.section-header-wrap-block.section-block-demo39-header.section-header-wrap-block.section-block-demo39-header:has(+ main > .section-banner-wrap-block) {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  transform: none !important;
  opacity: 1 !important;
  transition: background-color 0.35s ease, box-shadow 0.35s ease !important;
}

header.section-header-wrap-block.section-block-demo39-header:has(+ main > .section-banner-wrap-block):not(.fixed-nav) {
  background: transparent;
  box-shadow: none;
}

header.section-header-wrap-block.section-block-demo39-header:has(+ main > .section-banner-wrap-block):not(.fixed-nav):not(.fixed-nav-active) > .header-outer-wrap > .header-bottom {
  background-color: transparent;
  transition: background-color 0.35s ease;
}

header.section-header-wrap-block.section-block-demo39-header:has(+ main > .section-banner-wrap-block):not(.fixed-nav):not(.fixed-nav-active) > .header-outer-wrap > .header-bottom > .layout > .nav > li > a,
header.section-header-wrap-block.section-block-demo39-header:has(+ main > .section-banner-wrap-block):not(.fixed-nav):not(.fixed-nav-active) > .header-outer-wrap > .header-bottom > .layout > .nav > li > a > em {
  color: #fff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  transition: color 0.35s ease, text-shadow 0.35s ease;
}

/* Top of hero only: white wordmark (hide color logo img). */
body:has(main > .section-banner-wrap-block) header.section-header-wrap-block.section-block-demo39-header:not(.fixed-nav):not(.fixed-nav-active) > .header-outer-wrap > .header-bottom > .layout > .logo,
header.section-header-wrap-block.section-block-demo39-header:has(+ main > .section-banner-wrap-block):not(.fixed-nav):not(.fixed-nav-active) > .header-outer-wrap > .header-bottom > .layout > .logo {
  background: url("/wp-content/themes/blocksy-child/template/images/logo-wordmark-white.png") left center / 147px 48px no-repeat;
}

body:has(main > .section-banner-wrap-block) header.section-header-wrap-block.section-block-demo39-header:not(.fixed-nav):not(.fixed-nav-active) > .header-outer-wrap > .header-bottom > .layout > .logo img,
header.section-header-wrap-block.section-block-demo39-header:has(+ main > .section-banner-wrap-block):not(.fixed-nav):not(.fixed-nav-active) > .header-outer-wrap > .header-bottom > .layout > .logo img {
  opacity: 0;
  filter: none;
}

header.section-header-wrap-block.section-block-demo39-header.fixed-nav,
header.section-header-wrap-block.section-block-demo39-header.fixed-nav-active {
  transform: none !important;
  opacity: 1 !important;
}

/* Scrolled over hero: solid white + dark nav + color logo. */
body:has(main > .section-banner-wrap-block) header.section-header-wrap-block.section-block-demo39-header.fixed-nav,
body:has(main > .section-banner-wrap-block) header.section-header-wrap-block.section-block-demo39-header.fixed-nav-active,
header.section-header-wrap-block.section-block-demo39-header:has(+ main > .section-banner-wrap-block).fixed-nav,
header.section-header-wrap-block.section-block-demo39-header:has(+ main > .section-banner-wrap-block).fixed-nav-active {
  background: #fff !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08) !important;
}

body:has(main > .section-banner-wrap-block) header.section-header-wrap-block.section-block-demo39-header.fixed-nav > .header-outer-wrap > .header-bottom,
body:has(main > .section-banner-wrap-block) header.section-header-wrap-block.section-block-demo39-header.fixed-nav-active > .header-outer-wrap > .header-bottom,
header.section-header-wrap-block.section-block-demo39-header:has(+ main > .section-banner-wrap-block).fixed-nav > .header-outer-wrap > .header-bottom,
header.section-header-wrap-block.section-block-demo39-header:has(+ main > .section-banner-wrap-block).fixed-nav-active > .header-outer-wrap > .header-bottom {
  background: #fff !important;
  padding-bottom: 0;
}

body:has(main > .section-banner-wrap-block) header.section-header-wrap-block.section-block-demo39-header.fixed-nav > .header-outer-wrap > .header-bottom > .layout > .nav > li > a,
body:has(main > .section-banner-wrap-block) header.section-header-wrap-block.section-block-demo39-header.fixed-nav > .header-outer-wrap > .header-bottom > .layout > .nav > li > a > em,
body:has(main > .section-banner-wrap-block) header.section-header-wrap-block.section-block-demo39-header.fixed-nav-active > .header-outer-wrap > .header-bottom > .layout > .nav > li > a,
body:has(main > .section-banner-wrap-block) header.section-header-wrap-block.section-block-demo39-header.fixed-nav-active > .header-outer-wrap > .header-bottom > .layout > .nav > li > a > em,
header.section-header-wrap-block.section-block-demo39-header:has(+ main > .section-banner-wrap-block).fixed-nav > .header-outer-wrap > .header-bottom > .layout > .nav > li > a,
header.section-header-wrap-block.section-block-demo39-header:has(+ main > .section-banner-wrap-block).fixed-nav > .header-outer-wrap > .header-bottom > .layout > .nav > li > a > em,
header.section-header-wrap-block.section-block-demo39-header:has(+ main > .section-banner-wrap-block).fixed-nav-active > .header-outer-wrap > .header-bottom > .layout > .nav > li > a,
header.section-header-wrap-block.section-block-demo39-header:has(+ main > .section-banner-wrap-block).fixed-nav-active > .header-outer-wrap > .header-bottom > .layout > .nav > li > a > em {
  color: #161616 !important;
  text-shadow: none !important;
}

body:has(main > .section-banner-wrap-block) header.section-header-wrap-block.section-block-demo39-header.fixed-nav > .header-outer-wrap > .header-bottom > .layout > .logo,
body:has(main > .section-banner-wrap-block) header.section-header-wrap-block.section-block-demo39-header.fixed-nav-active > .header-outer-wrap > .header-bottom > .layout > .logo,
header.section-header-wrap-block.section-block-demo39-header:has(+ main > .section-banner-wrap-block).fixed-nav > .header-outer-wrap > .header-bottom > .layout > .logo,
header.section-header-wrap-block.section-block-demo39-header:has(+ main > .section-banner-wrap-block).fixed-nav-active > .header-outer-wrap > .header-bottom > .layout > .logo {
  background: none !important;
}

body:has(main > .section-banner-wrap-block) header.section-header-wrap-block.section-block-demo39-header.fixed-nav > .header-outer-wrap > .header-bottom > .layout > .logo img,
body:has(main > .section-banner-wrap-block) header.section-header-wrap-block.section-block-demo39-header.fixed-nav-active > .header-outer-wrap > .header-bottom > .layout > .logo img,
header.section-header-wrap-block.section-block-demo39-header:has(+ main > .section-banner-wrap-block).fixed-nav > .header-outer-wrap > .header-bottom > .layout > .logo img,
header.section-header-wrap-block.section-block-demo39-header:has(+ main > .section-banner-wrap-block).fixed-nav-active > .header-outer-wrap > .header-bottom > .layout > .logo img {
  opacity: 1 !important;
  visibility: visible !important;
  filter: none !important;
}

body.fixed-body:has(main > .section-banner-wrap-block) {
  padding-top: 0 !important;
}

@media (max-width: 1200px) {
  .section-block-demo39-header .nav > li,
  .section-block-demo39-header .nav > li:nth-child(n+2) {
    margin-left: 1.15rem;
  }

  .section-header-wrap-block.section-block-demo39-header > .header-outer-wrap > .header-bottom > .layout > .nav > li > a > em {
    font-size: 14px;
  }

  .section-header-wrap-block.section-block-demo39-header > .header-outer-wrap > .header-bottom > .layout > .btn.btn-inquiry {
    margin-left: 16px;
    letter-spacing: 0.08em;
    padding-right: 12px;
    padding-left: 14px;
  }
}

@media (max-width: 992px) {
  /* Mobile: only hamburger bar; never show desktop logo/nav/CONTACT US */
  header.section-block-demo39-header,
  header.section-header-wrap-block.section-block-demo39-header,
  header.section-header-wrap-block.section-block-demo39-header:has(+ main > .section-banner-wrap-block),
  header.section-header-wrap-block.section-block-demo39-header:has(+ main > .section-banner-wrap-block).fixed-nav,
  header.section-header-wrap-block.section-block-demo39-header:has(+ main > .section-banner-wrap-block).fixed-nav-active {
    border: 0 !important;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5) !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 55px !important;
    min-height: 55px !important;
    max-height: 55px !important;
    padding: 10px 0 !important;
    overflow: visible !important;
    background: #fff !important;
  }

  .section-block-demo39-header .header-outer-wrap,
  header.section-header-wrap-block.section-block-demo39-header > .header-outer-wrap,
  header.section-header-wrap-block.section-block-demo39-header:has(+ main > .section-banner-wrap-block) > .header-outer-wrap,
  header.section-header-wrap-block.section-block-demo39-header:has(+ main > .section-banner-wrap-block) > .header-outer-wrap > .header-bottom {
    display: none !important;
  }

  header .mobile-head-items,
  header .layout.mobile-head-items {
    display: flex !important;
    align-items: center;
    height: auto;
    padding: 0 !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .section-block-demo39-header .header-bottom .btn.btn-inquiry,
  header.section-header-wrap-block.section-block-demo39-header:has(+ main > .section-banner-wrap-block),
  header.section-header-wrap-block.section-block-demo39-header:has(+ main > .section-banner-wrap-block) > .header-outer-wrap > .header-bottom,
  header.section-header-wrap-block.section-block-demo39-header:has(+ main > .section-banner-wrap-block) .nav > li > a,
  header.section-header-wrap-block.section-block-demo39-header:has(+ main > .section-banner-wrap-block) .nav > li > a > em {
    transition: none !important;
  }
}

/* Hero carousel arrows: circle, fill 10% less transparent (0.6 -> 0.7). */
.section-banner-wrap-block .swiper-button {
  border-radius: 50% !important;
  background-color: rgba(255, 255, 255, 0.7) !important;
  border-color: rgba(255, 255, 255, 0.7) !important;
}

/* —— Product mega panel (desktop) — matched to jinlaile / GRL layout —— */
.section-block-demo39-header .nav > li.has-product-mega {
  position: static;
}

@media (min-width: 993px) {
  .section-block-demo39-header .nav > li.has-product-mega > ul.product-nav-mobile {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  .section-block-demo39-header .product-mega {
    position: fixed;
    left: 0;
    top: 88px;
    width: 100%;
    z-index: 1200;
    border-top: 1px solid #eceef0;
    background: #fff;
    box-shadow: 0 24px 52px rgba(20, 24, 31, 0.12);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.24s ease, visibility 0.24s ease, transform 0.24s ease;
    max-height: calc(100vh - 88px);
    overflow: auto;
  }

  .section-block-demo39-header .nav > li.has-product-mega:hover > .product-mega,
  .section-block-demo39-header .nav > li.has-product-mega:focus-within > .product-mega,
  .section-block-demo39-header.product-mega-open .product-mega,
  .section-block-demo39-header.product-mega-open .product-mega[hidden],
  .section-block-demo39-header .nav > li.has-product-mega:hover > .product-mega[hidden],
  .section-block-demo39-header .nav > li.has-product-mega:focus-within > .product-mega[hidden] {
    display: block !important;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .product-mega-shell {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    min-height: 0;
    width: 88%;
    max-width: 1180px;
    margin: 0 auto;
  }

  .product-mega-rail {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 24px 22px 22px 0;
    border-right: 1px solid #e4e7ea;
    background: #f6f7f8;
  }

  .product-mega-rail::before {
    content: "";
    position: absolute;
    top: 0;
    right: 100%;
    width: 100vw;
    height: 100%;
    background: #f6f7f8;
  }

  .product-mega-eyebrow,
  .product-mega-panel-label {
    margin: 0;
    color: #078132;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .product-mega-title {
    margin: 6px 0 0;
    color: #171717;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
  }

  .product-mega-tabs {
    display: grid;
    gap: 4px;
    margin-top: 18px;
  }

  .product-mega-family {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 67px;
    margin: 0;
    padding: 8px 12px;
    border: 0;
    border-left: 3px solid transparent;
    background: transparent;
    color: #363b42;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.22s ease, background-color 0.22s ease, color 0.22s ease;
  }

  .product-mega-family:hover,
  .product-mega-family:focus-visible,
  .product-mega-family.is-active {
    border-left-color: #078132;
    background: #fff;
    color: #078132;
    outline: none;
  }

  .product-mega-family-ico {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: inherit;
  }

  .product-mega-family-text {
    display: flex;
    min-width: 0;
    flex-direction: column;
  }

  .product-mega-family-text strong {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.25;
  }

  .product-mega-family-text span {
    margin-top: 5px;
    font-size: 14px;
    line-height: 1.25;
    color: #8a8f95;
    font-weight: 400;
  }

  .product-mega-family.is-active .product-mega-family-text span,
  .product-mega-family:hover .product-mega-family-text span {
    color: rgba(7, 129, 50, 0.72);
  }

  .product-mega-chevron {
    display: inline-flex;
    transition: transform 0.22s ease;
  }

  .product-mega-family:hover .product-mega-chevron,
  .product-mega-family.is-active .product-mega-chevron {
    transform: translateX(4px);
  }

  .product-mega-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    align-self: flex-start;
    min-height: 46px;
    margin-top: auto;
    padding: 10px 17px;
    border-radius: 8px 8px 0 0;
    background: #078132;
    color: #fff !important;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.22s ease, transform 0.22s ease;
  }

  .product-mega-all:hover,
  .product-mega-all:focus-visible {
    background: #171717;
    color: #fff !important;
    transform: translateY(-2px);
  }

  .product-mega-stage {
    min-width: 0;
    padding: 24px 0 24px 28px;
    background: #fff;
  }

  .product-mega-panel[hidden] {
    display: none !important;
  }

  .product-mega-panel.is-active {
    animation: gtProductMegaPanelIn 0.24s ease both;
  }

  @keyframes gtProductMegaPanelIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .product-mega-panel-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    min-height: 62px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e7e9;
  }

  .product-mega-panel-title {
    margin: 2px 0 0;
    color: #171717;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
  }

  .product-mega-explore {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 3px;
    color: #5d6268;
    font-size: 16px;
    text-decoration: none;
    white-space: nowrap;
  }

  .product-mega-explore:hover,
  .product-mega-explore:focus-visible {
    color: #078132;
  }

  .product-mega-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  .section-block-demo39-header .product-mega a.product-mega-product {
    display: grid !important;
    grid-template-columns: 132px minmax(0, 1fr);
    align-items: stretch;
    overflow: hidden;
    border: 1px solid #e5e7e9;
    border-radius: 0;
    background: #fff;
    color: #24272b;
    text-decoration: none;
    transition: border-color 0.24s ease, box-shadow 0.24s ease, transform 0.24s ease, color 0.24s ease;
  }

  .section-block-demo39-header .product-mega a.product-mega-product:hover,
  .section-block-demo39-header .product-mega a.product-mega-product:focus-visible {
    border-color: rgba(7, 129, 50, 0.48);
    box-shadow: 0 10px 28px rgba(20, 24, 31, 0.09);
    color: #078132;
    transform: translateY(-3px);
    outline: none;
  }

  .product-mega-media {
    display: flex;
    align-items: center;
    align-self: start;
    box-sizing: border-box;
    width: 132px;
    height: 132px;
    padding: 12px;
    background: #f6f7f8;
  }

  .product-mega-ratio {
    position: relative;
    width: 100%;
    height: 100%;
  }

  .product-mega-image {
    width: 100%;
    height: 100%;
    object-fit: contain !important;
    display: block;
    transition: transform 0.32s ease;
  }

  .section-block-demo39-header .product-mega a.product-mega-product:hover .product-mega-image {
    transform: scale(1.05);
  }

  .product-mega-product-body {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 14px;
  }

  .product-mega-product-title {
    display: -webkit-box;
    overflow: hidden;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .product-mega-product-more {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    color: #858a90;
    font-size: 14px;
  }

  .section-block-demo39-header .product-mega a.product-mega-product:hover .product-mega-product-more {
    color: #078132;
  }

  /* Open mega: readable header over transparent hero */
  body:has(main > .section-banner-wrap-block) header.section-header-wrap-block.section-block-demo39-header.product-mega-open,
  body:has(main > .section-banner-wrap-block) header.section-header-wrap-block.section-block-demo39-header:has(.has-product-mega:hover),
  body:has(main > .section-banner-wrap-block) header.section-header-wrap-block.section-block-demo39-header:has(.has-product-mega:focus-within) {
    background: #fff !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08) !important;
  }

  body:has(main > .section-banner-wrap-block) header.section-header-wrap-block.section-block-demo39-header.product-mega-open > .header-outer-wrap > .header-bottom,
  body:has(main > .section-banner-wrap-block) header.section-header-wrap-block.section-block-demo39-header:has(.has-product-mega:hover) > .header-outer-wrap > .header-bottom,
  body:has(main > .section-banner-wrap-block) header.section-header-wrap-block.section-block-demo39-header:has(.has-product-mega:focus-within) > .header-outer-wrap > .header-bottom {
    background: #fff !important;
  }

  body:has(main > .section-banner-wrap-block) header.section-header-wrap-block.section-block-demo39-header.product-mega-open .nav > li > a,
  body:has(main > .section-banner-wrap-block) header.section-header-wrap-block.section-block-demo39-header.product-mega-open .nav > li > a > em,
  body:has(main > .section-banner-wrap-block) header.section-header-wrap-block.section-block-demo39-header:has(.has-product-mega:hover) .nav > li > a,
  body:has(main > .section-banner-wrap-block) header.section-header-wrap-block.section-block-demo39-header:has(.has-product-mega:hover) .nav > li > a > em,
  body:has(main > .section-banner-wrap-block) header.section-header-wrap-block.section-block-demo39-header:has(.has-product-mega:focus-within) .nav > li > a,
  body:has(main > .section-banner-wrap-block) header.section-header-wrap-block.section-block-demo39-header:has(.has-product-mega:focus-within) .nav > li > a > em {
    color: #161616 !important;
    text-shadow: none !important;
  }

  body:has(main > .section-banner-wrap-block) header.section-header-wrap-block.section-block-demo39-header.product-mega-open .logo,
  body:has(main > .section-banner-wrap-block) header.section-header-wrap-block.section-block-demo39-header:has(.has-product-mega:hover) .logo,
  body:has(main > .section-banner-wrap-block) header.section-header-wrap-block.section-block-demo39-header:has(.has-product-mega:focus-within) .logo {
    background: none !important;
  }

  body:has(main > .section-banner-wrap-block) header.section-header-wrap-block.section-block-demo39-header.product-mega-open .logo img,
  body:has(main > .section-banner-wrap-block) header.section-header-wrap-block.section-block-demo39-header:has(.has-product-mega:hover) .logo img,
  body:has(main > .section-banner-wrap-block) header.section-header-wrap-block.section-block-demo39-header:has(.has-product-mega:focus-within) .logo img {
    opacity: 1 !important;
    visibility: visible !important;
  }

  .section-block-demo39-header.product-mega-open .nav > li.has-product-mega > a,
  .section-block-demo39-header.product-mega-open .nav > li.has-product-mega > a > em,
  .section-block-demo39-header .nav > li.has-product-mega:hover > a,
  .section-block-demo39-header .nav > li.has-product-mega:hover > a > em {
    color: #078132 !important;
  }
}

@media (min-width: 993px) and (max-width: 1280px) {
  .product-mega-shell {
    width: 92%;
    max-width: none;
    grid-template-columns: 250px minmax(0, 1fr);
  }

  .section-block-demo39-header .product-mega a.product-mega-product {
    grid-template-columns: 100px minmax(0, 1fr);
  }

  .product-mega-media {
    width: 100px;
    height: 100px;
  }
}

@media (max-width: 992px) {
  .section-block-demo39-header .product-mega {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .section-block-demo39-header .product-mega,
  .product-mega-family,
  .product-mega-all,
  .product-mega-product,
  .product-mega-image,
  .product-mega-panel.is-active {
    animation: none !important;
    transition: none !important;
  }
}

/* News & Blog strip: dark bar, title left, two photo cards. */
@media (min-width: 993px) {
  .section-block-demo39-header .nav > li.has-news-mega {
    position: static;
  }

  .section-block-demo39-header .nav > li.has-news-mega > ul.news-nav-mobile {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transform: none !important;
  }

  .section-block-demo39-header .news-mega {
    position: fixed;
    left: 0;
    top: 88px;
    width: 100%;
    z-index: 1200;
    background: #3a4149;
    box-shadow: 0 18px 36px rgba(16, 18, 22, 0.22);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.22s ease, visibility 0.22s ease, transform 0.22s ease;
  }

  .section-block-demo39-header .nav > li.has-news-mega:hover > .news-mega,
  .section-block-demo39-header .nav > li.has-news-mega:focus-within > .news-mega,
  .section-block-demo39-header.news-mega-open .news-mega,
  .section-block-demo39-header.news-mega-open .news-mega[hidden],
  .section-block-demo39-header .nav > li.has-news-mega:hover > .news-mega[hidden],
  .section-block-demo39-header .nav > li.has-news-mega:focus-within > .news-mega[hidden] {
    display: block !important;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .news-mega-shell {
    display: flex;
    align-items: center;
    gap: 72px;
    width: var(--bs-screen-large, 78%);
    max-width: 100%;
    min-height: 176px;
    margin: 0 auto;
    padding: 26px 0;
    box-sizing: border-box;
  }

  .news-mega-copy {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 0 0 auto;
    min-width: 180px;
    color: #fff;
    text-decoration: none;
  }

  .news-mega-title {
    color: #fff;
    font-size: 26px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.01em;
  }

  .news-mega-sub {
    color: rgba(255, 255, 255, 0.62);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.3;
  }

  .news-mega-copy:hover .news-mega-title {
    color: #fff;
  }

  .news-mega-cards {
    display: flex;
    align-items: center;
    gap: 18px;
  }

  .news-mega-card {
    position: relative;
    display: block;
    width: 228px;
    height: 128px;
    flex: 0 0 auto;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
    text-decoration: none;
  }

  .news-mega-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 42%;
    display: block;
    transition: transform 0.35s ease;
  }

  .news-mega-card::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 58%;
    background: linear-gradient(to top, rgba(12, 16, 22, 0.72), rgba(12, 16, 22, 0));
    pointer-events: none;
  }

  .news-mega-card span {
    position: absolute;
    left: 14px;
    bottom: 12px;
    z-index: 1;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
  }

  .news-mega-card:hover img,
  .news-mega-card:focus-visible img {
    transform: scale(1.05);
  }

  .news-mega-card:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
  }

  body:has(main > .section-banner-wrap-block) header.section-header-wrap-block.section-block-demo39-header.news-mega-open,
  body:has(main > .section-banner-wrap-block) header.section-header-wrap-block.section-block-demo39-header:has(.has-news-mega:hover),
  body:has(main > .section-banner-wrap-block) header.section-header-wrap-block.section-block-demo39-header:has(.has-news-mega:focus-within) {
    background: #fff !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08) !important;
  }

  body:has(main > .section-banner-wrap-block) header.section-header-wrap-block.section-block-demo39-header.news-mega-open > .header-outer-wrap > .header-bottom,
  body:has(main > .section-banner-wrap-block) header.section-header-wrap-block.section-block-demo39-header:has(.has-news-mega:hover) > .header-outer-wrap > .header-bottom,
  body:has(main > .section-banner-wrap-block) header.section-header-wrap-block.section-block-demo39-header:has(.has-news-mega:focus-within) > .header-outer-wrap > .header-bottom {
    background: #fff !important;
  }

  body:has(main > .section-banner-wrap-block) header.section-header-wrap-block.section-block-demo39-header.news-mega-open:not(.fixed-nav) > .header-outer-wrap > .header-bottom > .layout > .nav > li > a,
  body:has(main > .section-banner-wrap-block) header.section-header-wrap-block.section-block-demo39-header.news-mega-open:not(.fixed-nav) > .header-outer-wrap > .header-bottom > .layout > .nav > li > a > em,
  body:has(main > .section-banner-wrap-block) header.section-header-wrap-block.section-block-demo39-header:has(.has-news-mega:hover):not(.fixed-nav) > .header-outer-wrap > .header-bottom > .layout > .nav > li > a,
  body:has(main > .section-banner-wrap-block) header.section-header-wrap-block.section-block-demo39-header:has(.has-news-mega:hover):not(.fixed-nav) > .header-outer-wrap > .header-bottom > .layout > .nav > li > a > em,
  body:has(main > .section-banner-wrap-block) header.section-header-wrap-block.section-block-demo39-header:has(.has-news-mega:focus-within):not(.fixed-nav) > .header-outer-wrap > .header-bottom > .layout > .nav > li > a,
  body:has(main > .section-banner-wrap-block) header.section-header-wrap-block.section-block-demo39-header:has(.has-news-mega:focus-within):not(.fixed-nav) > .header-outer-wrap > .header-bottom > .layout > .nav > li > a > em {
    color: #161616 !important;
    text-shadow: none !important;
  }

  body:has(main > .section-banner-wrap-block) header.section-header-wrap-block.section-block-demo39-header.news-mega-open .logo,
  body:has(main > .section-banner-wrap-block) header.section-header-wrap-block.section-block-demo39-header:has(.has-news-mega:hover) .logo,
  body:has(main > .section-banner-wrap-block) header.section-header-wrap-block.section-block-demo39-header:has(.has-news-mega:focus-within) .logo {
    background: none !important;
  }

  body:has(main > .section-banner-wrap-block) header.section-header-wrap-block.section-block-demo39-header.news-mega-open .logo img,
  body:has(main > .section-banner-wrap-block) header.section-header-wrap-block.section-block-demo39-header:has(.has-news-mega:hover) .logo img,
  body:has(main > .section-banner-wrap-block) header.section-header-wrap-block.section-block-demo39-header:has(.has-news-mega:focus-within) .logo img {
    opacity: 1 !important;
    visibility: visible !important;
  }

  body:has(main > .section-banner-wrap-block) header.section-header-wrap-block.section-block-demo39-header.news-mega-open > .header-outer-wrap > .header-bottom > .layout > .nav > li.has-news-mega > a,
  body:has(main > .section-banner-wrap-block) header.section-header-wrap-block.section-block-demo39-header.news-mega-open > .header-outer-wrap > .header-bottom > .layout > .nav > li.has-news-mega > a > em,
  body:has(main > .section-banner-wrap-block) header.section-header-wrap-block.section-block-demo39-header:has(.has-news-mega:hover) > .header-outer-wrap > .header-bottom > .layout > .nav > li.has-news-mega > a,
  body:has(main > .section-banner-wrap-block) header.section-header-wrap-block.section-block-demo39-header:has(.has-news-mega:hover) > .header-outer-wrap > .header-bottom > .layout > .nav > li.has-news-mega > a > em,
  body:has(main > .section-banner-wrap-block) header.section-header-wrap-block.section-block-demo39-header:has(.has-news-mega:focus-within) > .header-outer-wrap > .header-bottom > .layout > .nav > li.has-news-mega > a,
  body:has(main > .section-banner-wrap-block) header.section-header-wrap-block.section-block-demo39-header:has(.has-news-mega:focus-within) > .header-outer-wrap > .header-bottom > .layout > .nav > li.has-news-mega > a > em,
  .section-block-demo39-header.news-mega-open .nav > li.has-news-mega > a,
  .section-block-demo39-header.news-mega-open .nav > li.has-news-mee > a > em,
  .section-block-demo39-header .nav > li.has-news-mega:hover > a,
  .section-block-demo39-header .nav > li.has-news-mega:hover > a > em,
  .section-block-demo39-header .nav > li.has-news-mega:focus-within > a,
  .section-block-demo39-header .nav > li.has-news-mega:focus-within > a > em {
    color: #078132 !important;
  }
}

@media (max-width: 992px) {
  .section-block-demo39-header .news-mega {
    display: none !important;
  }
}

.section-block-demo39-header .nav > li.has-news-mega a.news-mega-copy{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:8px!important;line-height:1.2}
.section-block-demo39-header .nav > li.has-news-mega .news-mega-title,.section-block-demo39-header .nav > li.has-news-mega .news-mega-sub{display:block!important}
