#mfn-header-template .scs-nav-ready > .mfn-menu-li:not(.scs-nav-item):not(.scs-guided-item) {
  display: none !important;
}

#mfn-header-template #menu-3-categories-menu-2.scs-nav-ready {
  display: flex !important;
  align-items: center !important;
  width: 100%;
  gap: 8px;
}

@media (min-width: 768px) {
  #mfn-header-template .mfn-default-section.hide-tablet.hide-mobile:has(#menu-3-categories-menu-2) .mcb-wrap,
  #mfn-header-template .mfn-default-section.hide-tablet.hide-mobile:has(#menu-3-categories-menu-2) .mcb-wrap-inner,
  #mfn-header-template .mfn-default-section.hide-tablet.hide-mobile:has(#menu-3-categories-menu-2) .column,
  #mfn-header-template .mfn-default-section.hide-tablet.hide-mobile:has(#menu-3-categories-menu-2) .mfn-header-mainmenu {
    box-sizing: border-box;
    width: 100% !important;
    max-width: none !important;
  }
}

#mfn-header-template .scs-nav-item {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
}

#mfn-header-template .scs-menu-details { position: static; }
#mfn-header-template .scs-nav-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #fff;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.2;
  list-style: none;
  cursor: pointer;
  transition: background .18s, border-color .18s;
}
#mfn-header-template .scs-nav-trigger::-webkit-details-marker { display: none; }
#mfn-header-template .scs-nav-trigger svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  transition: transform .18s;
}
#mfn-header-template .scs-menu-details[open] .scs-nav-trigger svg { transform: rotate(180deg); }
#mfn-header-template .scs-nav-trigger:hover,
#mfn-header-template .scs-menu-details[open] .scs-nav-trigger {
  background: #334b6b;
  border-color: #60748c;
}
#mfn-header-template .scs-nav-trigger:focus-visible,
#mfn-header-template .scs-menu-panel a:focus-visible,
#mfn-header-template .scs-brand-search:focus-visible {
  outline: 2px solid #d82228;
  outline-offset: 2px;
}

#mfn-header-template #menu-3-categories-menu-2.scs-nav-ready > .scs-guided-item {
  margin-left: auto !important;
}

#mfn-header-template .scs-menu-panel {
  box-sizing: border-box;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 10020;
  width: min(980px, calc(100vw - 170px));
  max-height: min(70vh, 650px);
  padding: 22px;
  overflow: auto;
  border: 1px solid #dce4ed;
  border-top: 3px solid #d82228;
  border-radius: 0 0 18px 18px;
  background: #fff;
  color: #17243a;
  box-shadow: 0 24px 55px rgba(13, 28, 48, .2);
}
#mfn-header-template .scs-menu-panel-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 18px;
}
#mfn-header-template .scs-menu-panel-heading strong {
  color: #17243a;
  font-size: 22px;
  line-height: 1.2;
}
#mfn-header-template .scs-menu-panel-heading span {
  color: #64748b;
  font-size: 13px;
}
#mfn-header-template .scs-brand-search {
  box-sizing: border-box;
  display: block;
  width: 100%;
  height: 46px;
  margin: 0 0 18px;
  padding: 0 15px;
  border: 1px solid #dce4ed;
  border-radius: 10px;
  background: #f7f9fc;
  color: #17243a;
  font-size: 15px;
}
#mfn-header-template .scs-menu-link-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
#mfn-header-template .scs-menu-link-grid a {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  min-height: 54px;
  padding: 9px 11px;
  border: 1px solid #e7ecf2;
  border-radius: 10px;
  background: #fbfcfe;
  color: #17243a;
  text-decoration: none;
  transition: border-color .18s, background .18s, transform .18s;
}
#mfn-header-template .scs-menu-link-grid a:hover {
  border-color: #e9a2a5;
  background: #fff5f5;
  color: #17243a;
  transform: translateY(-1px);
}
#mfn-header-template .scs-menu-link-grid a[hidden] { display: none !important; }
#mfn-header-template .scs-brand-monogram,
#mfn-header-template .scs-menu-category-icon {
  box-sizing: border-box;
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #eef2f7;
  color: #d82228;
  font-size: 15px;
  font-weight: 800;
}
#mfn-header-template .scs-menu-category-icon svg { width: 20px; height: 20px; }
#mfn-header-template .scs-brand-name,
#mfn-header-template .scs-category-copy strong {
  display: block;
  color: #17243a;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
#mfn-header-template .scs-category-copy small {
  display: block;
  margin-top: 2px;
  color: #738196;
  font-size: 11px;
  line-height: 1.2;
}
#mfn-header-template .scs-brand-empty {
  margin: 12px 0;
  color: #64748b;
  font-size: 14px;
}
#mfn-header-template .scs-brand-empty[hidden] { display: none !important; }
#mfn-header-template .scs-menu-all-link {
  display: inline-flex;
  margin-top: 20px;
  color: #d82228;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

@media (max-width: 1100px) and (min-width: 768px) {
  #mfn-header-template .scs-menu-panel { width: min(790px, calc(100vw - 190px)); }
  #mfn-header-template .scs-menu-link-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  #mfn-header-template .mfn-header-tmpl-menu-sidebar-wrapper {
    flex-flow: column nowrap !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }
  #mfn-header-template #menu-3-categories-menu.scs-nav-ready {
    box-sizing: border-box;
    flex: 0 0 auto;
    align-self: stretch;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
  }
  #mfn-header-template #menu-3-categories-menu.scs-nav-ready { display: block !important; }
  #mfn-header-template #menu-3-categories-menu.scs-nav-ready > .scs-nav-item {
    display: block;
    margin: 0 0 8px;
  }
  #mfn-header-template #menu-3-categories-menu .scs-menu-details { width: 100%; }
  #mfn-header-template #menu-3-categories-menu .scs-nav-trigger {
    box-sizing: border-box;
    justify-content: space-between;
    width: 100%;
    min-height: 50px;
    padding: 0 16px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #17243a;
    font-size: 16px;
  }
  #mfn-header-template #menu-3-categories-menu .scs-menu-details[open] .scs-nav-trigger {
    border-color: #e8b9bc;
    background: #fff4f4;
  }
  #mfn-header-template #menu-3-categories-menu .scs-menu-panel {
    position: static;
    width: 100%;
    max-height: 50vh;
    margin-top: 7px;
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: none;
  }
  #mfn-header-template #menu-3-categories-menu .scs-menu-panel-heading strong { font-size: 18px; }
  #mfn-header-template #menu-3-categories-menu .scs-menu-link-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #mfn-header-template #menu-3-categories-menu .scs-menu-link-grid a { min-height: 50px; padding: 7px; }
  #mfn-header-template #menu-3-categories-menu .scs-category-copy strong,
  #mfn-header-template #menu-3-categories-menu .scs-brand-name { font-size: 12px; }
  #mfn-header-template #menu-3-categories-menu > .scs-guided-item { margin-top: 12px !important; }
}

@media (max-width: 380px) {
  #mfn-header-template #menu-3-categories-menu .scs-menu-link-grid { grid-template-columns: 1fr; }
}
