header.site_header,
header .header_quicknav_wrap,
header .header_quicknav,
header .header_quicknav_entry {
  overflow: visible;
}

header .header_quicknav_wrap {
  position: relative;
  z-index: 40;
}

header .header_quicknav_entry {
  position: static;
}

header .header_quicknav_item {
  justify-content: flex-start;
  text-align: left;
  padding-left: 12px;
  padding-right: 10px;
}

header .header_quicknav_item span {
  text-align: left;
  line-height: 1.2;
}

header .header_quicknav_entry.open,
header .header_quicknav_entry:hover,
header .header_quicknav_entry:focus-within {
  z-index: 260;
}

header .header_quicknav_dropdown.header_megamenu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  width: 100%;
  min-width: 0;
  max-width: none;
  z-index: 250;
  padding: 14px 12px 12px;
  border: 1px solid #ebe7e2;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(23, 23, 23, 0.12);
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
  align-items: stretch;
}

header .header_quicknav_dropdown.header_megamenu[data-cols="7"] {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

header .header_quicknav_dropdown.header_megamenu[data-cols="5"] {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

header .header_quicknav_dropdown.header_megamenu[data-cols="4"] {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

header .header_quicknav_dropdown.header_megamenu[data-cols="3"] {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

header .header_quicknav_dropdown.header_megamenu[data-cols="2"] {
  grid-template-columns: repeat(2, minmax(160px, 220px));
}

header .header_quicknav_dropdown.header_megamenu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -12px;
  height: 12px;
}

@media (hover: hover) and (pointer: fine) {
  header .header_quicknav_entry:hover > .header_quicknav_dropdown.header_megamenu,
  header .header_quicknav_entry:focus-within > .header_quicknav_dropdown.header_megamenu {
    display: grid;
  }
}

header .header_quicknav_entry.open > .header_quicknav_dropdown.header_megamenu {
  display: grid;
}

.header_megamenu_col {
  min-width: 0;
  padding: 10px 6px 12px;
  border-radius: 16px;
  transition: background-color 0.15s ease;
}

header .header_megamenu_col:first-child,
header .header_megamenu_col:hover {
  background: var(--green, #21A038);
}

header .header_megamenu:hover .header_megamenu_col:first-child:not(:hover) {
  background: transparent;
}

.header_megamenu_head {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-height: 96px;
  margin-bottom: 4px;
  padding: 2px 2px 4px;
  text-decoration: none;
  opacity: 1 !important;
}

.header_megamenu_head_static {
  cursor: default;
}

.header_megamenu_icon {
  width: 88px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header_megamenu_icon img,
header .header_megamenu_icon img {
  width: 88px !important;
  height: 72px !important;
  max-width: 88px;
  object-fit: contain;
  object-position: center;
}

.header_megamenu_title,
.header_megamenu_more,
header .header_megamenu_title,
header .header_megamenu_more {
  display: block;
  width: 100%;
  color: #171717;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.2px;
  line-height: 1.25;
  text-align: center;
}

.header_megamenu_more {
  margin: 10px 0 2px;
  color: #9a958f;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.header_megamenu_more img,
header .header_megamenu_more img {
  width: 28px !important;
  height: 28px !important;
  display: block;
  margin: 0 auto 4px;
  object-fit: contain;
}

header .header_megamenu_col .header_quicknav_subitem {
  display: block;
  padding: 3px 2px;
  border-radius: 0;
  background: none;
  color: #6e6a66;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.2px;
  line-height: 1.35;
  text-align: center;
  opacity: 1 !important;
}

header .header_megamenu_col .header_quicknav_subitem:hover {
  background: none;
  color: #171717;
  opacity: 1 !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

header .header_megamenu_col:first-child .header_megamenu_title,
header .header_megamenu_col:first-child .header_megamenu_more,
header .header_megamenu_col:first-child .header_quicknav_subitem,
header .header_megamenu_col:hover .header_megamenu_title,
header .header_megamenu_col:hover .header_megamenu_more,
header .header_megamenu_col:hover .header_quicknav_subitem {
  color: #fff;
}

header .header_megamenu:hover .header_megamenu_col:first-child:not(:hover) .header_megamenu_title,
header .header_megamenu:hover .header_megamenu_col:first-child:not(:hover) .header_megamenu_more {
  color: #171717;
}

header .header_megamenu:hover .header_megamenu_col:first-child:not(:hover) .header_quicknav_subitem {
  color: #6e6a66;
}

header .header_megamenu_col:first-child .header_quicknav_subitem:hover,
header .header_megamenu_col:hover .header_quicknav_subitem:hover {
  background: none;
  color: #fff;
  opacity: 1 !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 1180px) {
  header .header_quicknav_dropdown.header_megamenu,
  header .header_quicknav_dropdown.header_megamenu[data-cols="7"],
  header .header_quicknav_dropdown.header_megamenu[data-cols="6"],
  header .header_quicknav_dropdown.header_megamenu[data-cols="5"] {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.catalog_topic_nav {
  display: none;
}

@media (max-width: 900px) {
  header .header_quicknav_wrap.header_quicknav_mobile_off {
    display: none !important;
  }

  header .header_quicknav_wrap {
    width: calc(100vw - 24px);
    max-width: 1320px;
    overflow: visible;
  }

  .header_catalog_toggle {
    display: none;
    width: 100%;
    min-height: 46px;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid #e8e1d8;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(23, 23, 23, 0.04);
  }

  .header_catalog_toggle_label,
  .header_catalog_toggle_current {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.2px;
    color: #171717;
  }

  .header_catalog_toggle_current {
    margin-left: auto;
    color: var(--green, #21A038);
    font-weight: 700;
  }

  .header_catalog_toggle::after {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 2px solid #555;
    border-bottom: 2px solid #555;
    transform: translateY(-2px) rotate(45deg);
    flex: 0 0 auto;
  }

  body.catalog-nav-open .header_catalog_toggle::after {
    transform: translateY(2px) rotate(225deg);
  }

  header .header_quicknav {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    flex-wrap: unset !important;
    overflow: visible !important;
    width: 100% !important;
    max-width: none;
    gap: 8px !important;
  }

  body.is-catalog .header_catalog_toggle:not([hidden]) {
    display: flex;
  }

  body.is-catalog .header_quicknav {
    display: none !important;
  }

  body.is-catalog.catalog-nav-open .header_quicknav {
    display: grid !important;
    margin-top: 8px;
  }

  header .header_quicknav_item.is-current {
    background: #e8f6ea;
  }

  header .header_quicknav_entry {
    position: static;
    flex: unset !important;
    min-width: 0 !important;
    width: auto !important;
  }

  header .header_quicknav_dropdown,
  header .header_quicknav_dropdown.header_megamenu,
  header .header_quicknav_entry:hover > .header_quicknav_dropdown,
  header .header_quicknav_entry:focus-within > .header_quicknav_dropdown,
  header .header_quicknav_entry.open > .header_quicknav_dropdown,
  header .header_quicknav_entry:hover > .header_quicknav_dropdown.header_megamenu,
  header .header_quicknav_entry:focus-within > .header_quicknav_dropdown.header_megamenu,
  header .header_quicknav_entry.open > .header_quicknav_dropdown.header_megamenu {
    display: none !important;
  }

  .catalog_topic_nav {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-auto-rows: 96px;
    gap: 8px;
    width: calc(100vw - 24px);
    max-width: 1320px;
    margin: 0 auto 16px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
  }

  .catalog:has(.catalog_topic_nav) .menu_catalog {
    display: none !important;
  }

  .catalog_topic_nav .header_megamenu_col {
    position: relative;
    grid-column: span 2;
    min-width: 0;
    min-height: 0;
    padding: 0;
    overflow: hidden;
    border-radius: 18px;
    background: var(--green, #21A038);
  }

  .catalog_topic_nav .header_megamenu_col:nth-child(1),
  .catalog_topic_nav .header_megamenu_col:nth-child(4) {
    grid-column: span 4;
  }

  .catalog_topic_nav[data-cols="2"] .header_megamenu_col,
  .catalog_topic_nav[data-cols="3"] .header_megamenu_col {
    grid-column: span 2;
  }

  .catalog_topic_nav[data-cols="2"] .header_megamenu_col {
    grid-column: span 3;
  }

  .catalog_topic_nav[data-cols="5"] .header_megamenu_col:nth-child(5),
  .catalog_topic_nav[data-cols="6"] .header_megamenu_col:nth-child(6) {
    grid-column: span 4;
  }

  .catalog_topic_nav .header_quicknav_subitem {
    display: none;
  }

  .catalog_topic_nav .header_megamenu_head {
    position: absolute;
    inset: 0;
    z-index: 2;
    min-height: 0;
    margin: 0;
    padding: 12px 14px;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
  }

  .catalog_topic_nav .header_megamenu_title,
  header .catalog_topic_nav .header_megamenu_title {
    width: auto;
    max-width: 62%;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.3px;
    line-height: 1.15;
    text-align: left;
  }

  .catalog_topic_nav .header_megamenu_icon {
    position: absolute;
    right: -4px;
    bottom: -8px;
    width: 78px;
    height: 70px;
    pointer-events: none;
  }

  .catalog_topic_nav .header_megamenu_icon img,
  header .catalog_topic_nav .header_megamenu_icon img {
    width: 78px !important;
    height: 70px !important;
    max-width: 78px;
    object-fit: contain;
  }

  .catalog_topic_nav .header_megamenu_col:nth-child(even) {
    background: #1b8a30;
  }

  .catalog_topic_nav .header_megamenu_col.is-current-col {
    background: var(--deep-green, #2A5632);
  }
}

@media (max-width: 768px) {
  header .header_quicknav_dropdown,
  header .header_quicknav_dropdown.header_megamenu,
  header .header_quicknav_entry:hover .header_quicknav_dropdown,
  header .header_quicknav_entry:focus-within .header_quicknav_dropdown,
  header .header_quicknav_entry.open .header_quicknav_dropdown,
  header .header_quicknav_entry:hover .header_quicknav_dropdown.header_megamenu,
  header .header_quicknav_entry:focus-within .header_quicknav_dropdown.header_megamenu,
  header .header_quicknav_entry.open .header_quicknav_dropdown.header_megamenu {
    display: none !important;
  }
}
