/* BROOLED ONE + Store 6.2.4.3: structural header/navigation fix.
   The navigation is rendered in its own full-width row by the header builder.
   Enqueued independently at wp_enqueue_scripts priority 999 to cover ordinary
   WordPress pages and avoid the previous design-context-dependent CSS gap. */
body .brooled-hf-header[data-brooled-header-layout="v2"] {
  width:100%!important;
  max-width:100%!important;
  overflow:visible!important;
  box-sizing:border-box!important;
}
body .brooled-hf-header[data-brooled-header-layout="v2"] .brooled-hf-navigation-row {
  min-width:0;
  box-sizing:border-box;
}
@media (min-width:1280px) {
  body .brooled-hf-header[data-brooled-header-layout="v2"] {
    display:block!important;
    padding:0!important;
  }
  body .brooled-hf-header[data-brooled-header-layout="v2"] .brooled-hf-header-row {
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)!important;
    gap:16px!important;
    align-items:center!important;
    width:100%!important;
    max-width:1760px!important;
    margin:0 auto!important;
    padding:12px clamp(22px,3vw,54px)!important;
  }
  body .brooled-hf-header[data-brooled-header-layout="v2"] .brooled-hf-header-row .brooled-hf-area {
    display:flex!important;
    min-width:0!important;
    align-items:center!important;
  }
  body .brooled-hf-header[data-brooled-header-layout="v2"] .brooled-hf-navigation-row {
    display:block!important;
    width:100%!important;
    padding:0 clamp(22px,3vw,54px)!important;
    border-top:1px solid var(--br-border,#e5dfd8)!important;
  }
  body .brooled-hf-header[data-brooled-header-layout="v2"] .brooled-hf-navigation-row > .type-navigation {
    display:block!important;
    width:100%!important;
    max-width:1652px!important;
    min-width:0!important;
    margin:0 auto!important;
    padding:5px 0!important;
    text-align:left!important;
  }
  body .brooled-hf-header[data-brooled-header-layout="v2"] .brooled-mobile-header-actions {
    display:none!important;
  }
  body .brooled-hf-header[data-brooled-header-layout="v2"] .brooled-hf-navigation-row .brooled-native-menu {
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    height:auto!important;
    overflow:visible!important;
  }
  body .brooled-hf-header[data-brooled-header-layout="v2"] .brooled-hf-navigation-row .brooled-native-menu > ul {
    display:flex!important;
    flex-flow:row wrap!important;
    align-items:center!important;
    justify-content:flex-start!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    gap:2px 5px!important;
    margin:0!important;
    padding:0!important;
    overflow:visible!important;
  }
  body .brooled-hf-header[data-brooled-header-layout="v2"] .brooled-hf-navigation-row .brooled-native-menu > ul > li {
    display:flex!important;
    flex:0 0 auto!important;
    align-items:center!important;
    min-width:0!important;
    width:auto!important;
    white-space:nowrap!important;
  }
  body .brooled-hf-header[data-brooled-header-layout="v2"] .brooled-hf-navigation-row .brooled-native-menu > ul > li > a {
    display:inline-flex!important;
    align-items:center!important;
    min-height:40px!important;
    gap:6px!important;
    padding:8px clamp(5px,.55vw,10px)!important;
    font-size:clamp(13px,.88vw,15px)!important;
    line-height:1.35!important;
    font-weight:600!important;
    white-space:nowrap!important;
    text-decoration:none!important;
    border-radius:9px!important;
  }
  body .brooled-hf-header[data-brooled-header-layout="v2"] .brooled-hf-navigation-row .brooled-native-menu > ul > li:last-child {
    margin-left:auto!important;
  }
  body .brooled-hf-header[data-brooled-header-layout="v2"] .brooled-hf-navigation-row .brooled-top-link-media img {
    max-width:24px!important;
    max-height:24px!important;
    object-fit:contain!important;
  }
  body .brooled-hf-header[data-brooled-header-layout="v2"] .brooled-hf-navigation-row .brooled-navigation-toggle {
    width:27px!important;
    min-width:27px!important;
    height:40px!important;
    padding:0!important;
  }
}
@media (max-width:1279px) {
  body .brooled-hf-header[data-brooled-header-layout="v2"] {
    position:relative!important;
    display:flex!important;
    flex-flow:row wrap!important;
    align-items:center!important;
    gap:10px!important;
    padding:12px clamp(15px,2.5vw,28px)!important;
  }
  body .brooled-hf-header[data-brooled-header-layout="v2"] .brooled-hf-header-row,
  body .brooled-hf-header[data-brooled-header-layout="v2"] .brooled-hf-header-row > .brooled-hf-area,
  body .brooled-hf-header[data-brooled-header-layout="v2"] .brooled-hf-navigation-row {
    display:contents!important;
  }
  body .brooled-hf-header[data-brooled-header-layout="v2"] .brooled-hf-block {
    display:none!important;
  }
  body .brooled-hf-header[data-brooled-header-layout="v2"] .brooled-hf-block.type-brand {
    display:block!important;
    order:1!important;
    flex:1 1 0!important;
    max-width:calc(100% - 155px)!important;
    min-width:0!important;
    margin-right:auto!important;
  }
  body .brooled-hf-header[data-brooled-header-layout="v2"] .brooled-hf-block.type-navigation {
    display:block!important;
    order:2!important;
    flex:0 0 auto!important;
    width:auto!important;
    min-width:0!important;
    max-width:none!important;
    margin:0 0 0 auto!important;
  }
  body .brooled-hf-header[data-brooled-header-layout="v2"] .brooled-hf-block.type-search {
    display:block!important;
    order:3!important;
    flex:0 0 100%!important;
    width:100%!important;
  }
  body .brooled-hf-header[data-brooled-header-layout="v2"] .brooled-mobile-header-actions {
    display:flex!important;
    align-items:center!important;
    gap:5px!important;
    width:auto!important;
  }
  body .brooled-hf-header[data-brooled-header-layout="v2"] .brooled-mobile-header-action,
  body .brooled-hf-header[data-brooled-header-layout="v2"] .brooled-mobile-menu-toggle {
    display:grid!important;
    place-items:center!important;
    flex:0 0 42px!important;
    width:42px!important;
    height:42px!important;
    min-width:42px!important;
    padding:0!important;
    border:1px solid var(--br-border,#ded6cc)!important;
    border-radius:11px!important;
    background:var(--br-surface,#fff)!important;
    color:var(--br-text,#181410)!important;
    cursor:pointer!important;
  }
  body .brooled-hf-header[data-brooled-header-layout="v2"] .brooled-native-menu {
    display:block!important;
    position:static!important;
    width:0!important;
    min-width:0!important;
    height:0!important;
    margin:0!important;
    padding:0!important;
    overflow:visible!important;
  }
  body .brooled-hf-header[data-brooled-header-layout="v2"] .brooled-native-menu > ul {
    display:none!important;
    position:absolute!important;
    z-index:1500!important;
    top:calc(100% + 4px)!important;
    left:clamp(15px,2.5vw,28px)!important;
    right:clamp(15px,2.5vw,28px)!important;
    width:auto!important;
    max-width:none!important;
    max-height:min(72vh,640px)!important;
    margin:0!important;
    padding:10px!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    flex-flow:column nowrap!important;
    align-items:stretch!important;
    gap:3px!important;
    border:1px solid var(--br-border,#ded6cc)!important;
    border-radius:14px!important;
    background:var(--br-surface,#fff)!important;
    box-shadow:0 18px 48px rgba(16,24,40,.15)!important;
  }
  body .brooled-hf-header[data-brooled-header-layout="v2"] .brooled-native-menu.is-mobile-open > ul {
    display:flex!important;
  }
  body .brooled-hf-header[data-brooled-header-layout="v2"] .brooled-native-menu > ul > li {
    display:flex!important;
    position:relative!important;
    flex-flow:row wrap!important;
    width:100%!important;
    min-width:0!important;
  }
  body .brooled-hf-header[data-brooled-header-layout="v2"] .brooled-native-menu > ul > li > a {
    flex:1 1 auto!important;
    min-height:44px!important;
    min-width:0!important;
    padding:10px 12px!important;
    font-size:15px!important;
    line-height:1.35!important;
    white-space:normal!important;
    overflow-wrap:anywhere!important;
  }
  body .brooled-hf-header[data-brooled-header-layout="v2"] .brooled-navigation-panel {
    position:static!important;
    order:3!important;
    width:100%!important;
    max-width:none!important;
    grid-template-columns:1fr!important;
  }
  body .brooled-hf-header[data-brooled-header-layout="v2"] .brooled-navigation-groups {
    grid-template-columns:1fr!important;
  }
}

/* v6.2.4.44: preserve and highlight sibling category browsing. */
.brooled-subcategory-navigation .brooled-subcategory-chip.is-active,
.brooled-subcategory-navigation .brooled-subcategory-chip[aria-current="page"] {
  background: #124c38; color: #fffaf0; border-color: #124c38; font-weight: 700;
}
.brooled-subcategory-navigation .brooled-subcategory-chip.is-active:hover,
.brooled-subcategory-navigation .brooled-subcategory-chip[aria-current="page"]:focus-visible {
  background: #a91f2e; color: #fff; border-color: #a91f2e;
}
