.global-navigation { position: relative; z-index: 19; background: #fff; border-bottom: 1px solid var(--border); }
.gnb-container { position: relative; max-width: 1200px; margin-inline: auto; padding-inline: 16px; }
.gnb-bar { display: flex; align-items: center; gap: 14px; min-height: 66px; }
.gnb-menu-button { display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; color: #fff; background: #268347; border-radius: 8px; transition: background .15s; }
.gnb-menu-button:hover, .gnb-menu-button[aria-expanded="true"] { background: #1b6335; }
.gnb-menu-button svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.gnb-links { display: flex; align-items: center; gap: 8px; min-width: 0; overflow-x: auto; scrollbar-width: none; padding-block: 8px; }
.gnb-links::-webkit-scrollbar { display: none; }
.gnb-link { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; gap: 7px; min-height: 38px; padding: 8px 14px; border: 1px solid transparent; border-radius: 999px; background: #f1f4ee; color: #268347; font-size: 13px; font-weight: 500; line-height: 1.3; text-decoration: none; white-space: nowrap; transition: background .15s,border-color .15s; }
.gnb-link:hover { background: #e5eee4; border-color: #26834735; }
.mega-menu { position: absolute; top: 100%; left: 16px; right: 16px; z-index: 30; display: grid; grid-template-columns: 184px minmax(0,1fr); min-height: 354px; max-height: min(520px,calc(100dvh - var(--mega-top,170px) - 16px)); border: 1px solid #e1e7df; border-top: 2px solid #268347; background: #fff; box-shadow: 0 14px 30px #163a2221; overflow: hidden; }
.mega-menu[hidden], .mega-panel[hidden] { display: none; }
.mega-sidebar { display: flex; flex-direction: column; background: #f5f7f3; padding: 10px 0; border-right: 1px solid #e1e7df; overflow-y: auto; }
.storefront .mega-sidebar > .mega-department { display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; gap: 12px; width: 100%; padding: 15px 18px; border-radius: 0; color: #263d2d; font-size: 14px; font-weight: 500; line-height: 1.35; text-align: left; }
.mega-department svg { flex-shrink: 0; width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; opacity: 0; }
.storefront .mega-sidebar > .mega-department[aria-selected="true"] { background: #268347; color: #fff; }
.mega-department[aria-selected="true"] svg { opacity: 1; }
.mega-content { min-width: 0; padding: 24px 30px 32px; overflow-y: auto; }
.mega-view-all { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 24px; color: #268347; font-size: 16px; font-weight: 650; text-decoration: none; }
.mega-columns { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 28px; }
.mega-column { display: flex; flex-direction: column; align-items: flex-start; gap: 13px; min-width: 0; }
.mega-column > a { color: #3f4942; font-size: 13px; line-height: 1.4; text-decoration: none; }
.mega-column > .mega-column-title { margin-bottom: 5px; color: #1c3022; font-weight: 700; }
.mega-column > a:hover { color: #268347; text-decoration: underline; text-underline-offset: 3px; }
.mega-close { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 28px; height: 28px; color: #576b60; border-radius: 50%; }
.mega-close:hover { background: #f1f4ee; }
.mega-close svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
@media(min-width:768px) and (max-width:1023px) {
 .gnb-bar { gap: 10px; }
 .gnb-link { padding-inline: 12px; font-size: 12px; }
 .mega-menu { grid-template-columns: 164px minmax(0,1fr); }
 .mega-content { padding-inline: 24px; }
 .mega-columns { gap: 18px; }
}
@media(max-width:767px) {
 .gnb-bar { min-height: 58px; gap: 10px; }
 .gnb-link { font-size: 12px; min-height: 34px; padding: 7px 12px; gap: 6px; }
 .gnb-menu-button { flex-basis: 34px; width: 34px; height: 34px; }
 .mega-menu { position: fixed; top: var(--mega-top,200px); left: 12px; right: 12px; grid-template-columns: 112px minmax(0,1fr); min-height: 320px; max-height: calc(100dvh - var(--mega-top,200px) - 12px); }
 .storefront .mega-sidebar > .mega-department { padding: 14px 10px; font-size: 12px; gap: 4px; }
 .mega-department svg { width: 11px; height: 11px; }
 .mega-content { padding: 19px 16px 24px; }
 .mega-view-all { font-size: 14px; padding-right: 16px; margin-bottom: 22px; }
 .mega-columns { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px 12px; }
 .mega-column { gap: 12px; }
 .mega-column > a { font-size: 11px; }
 .mega-column > .mega-column-title { font-size: 12px; }
 .mega-close { top: 10px; right: 5px; width: 25px; height: 25px; }
}

.gnb-brands-button[aria-expanded="true"] { background: #e5eee4; border-color: #26834735; }
.brands-menu { position: absolute; top: 100%; left: 68px; z-index: 30; width: 640px; max-width: calc(100% - 84px); padding: 20px; border: 1px solid #e1e7df; border-radius: 16px; background: #fff; box-shadow: 0 14px 30px #163a2221; }
.brands-menu[hidden], .brand-results a[hidden], .brand-search-empty[hidden] { display: none; }
.brand-search { display: flex; align-items: center; height: 36px; padding: 0 12px; border: 1px solid #d9e3d9; border-radius: 6px; }
.brand-search:focus-within { border-color: #268347; box-shadow: 0 0 0 2px #26834716; }
.brand-search input { width: 100%; min-width: 0; padding: 0; border: 0; border-radius: 0; outline: none; box-shadow: none; background: transparent; font: inherit; font-size: 14px; color: #263d2d; }
.storefront .brand-search input:focus-visible { outline: none; }
.brand-search input::placeholder { color: #809085; }
.brand-alphabet { display: flex; flex-wrap: wrap; gap: 4px; margin-block: 16px; }
.brand-alphabet button { display: grid; place-items: center; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 6px; color: #268347; font-size: 12px; font-weight: 500; }
.brand-alphabet button:hover:not(:disabled) { background: #f1f4ee; }
.brand-alphabet button[aria-pressed="true"], .brand-alphabet button[aria-pressed="true"]:hover { background: #268347; color: #fff; }
.brand-alphabet button:disabled { color: #a8b3aa; cursor: default; opacity: .5; }
.brand-scroll { max-height: 288px; overflow-y: auto; overscroll-behavior: contain; }
.brand-view-all { display: block; margin-bottom: 12px; color: #268347; font-size: 14px; font-weight: 500; text-decoration: none; }
.brand-view-all:hover { text-decoration: underline; text-underline-offset: 3px; }
.brand-results { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 4px; }
.brand-results a { padding: 8px; border-radius: 4px; color: #268347; font-size: 14px; line-height: 1.4; text-decoration: none; }
.brand-results a:hover, .brand-results a:focus-visible { background: #f1f4ee; }
.brand-search-empty { padding: 24px 8px; color: #6d7c71; font-size: 14px; text-align: center; }
@media(max-width:767px) {
 .brands-menu { position: fixed; top: var(--mega-top,200px); left: 12px; right: 12px; width: auto; max-width: none; max-height: calc(100dvh - var(--mega-top,200px) - 12px); overflow-y: auto; padding: 16px; }
 .brand-scroll { max-height: min(288px,calc(100dvh - var(--mega-top,200px) - 192px)); }
 .brand-results { grid-template-columns: repeat(2,minmax(0,1fr)); }
 .brand-search input { font-size: 16px; }
}
