.storefront .mega-navigation {
    position: relative;
    background: #fff;
    --mega-ink: #142e3a;
    --mega-muted: #637984;
    --mega-line: #e6edf0;
}

.storefront .mega-navigation .mega-menu-shell {
    position: relative;
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0 24px;
    min-height: 52px;
    overflow: visible;
    padding-block: 0;
}

.mega-navigation .mega-item { display: flex; align-items: stretch; min-width: 0; }
.storefront .mega-navigation .mega-trigger { display: none; }
.storefront .mega-navigation.is-enhanced .mega-fallback { display: none; }
.storefront .mega-navigation.is-enhanced .mega-trigger { display: inline-flex; }

.storefront .mega-navigation .mega-trigger,
.storefront .mega-navigation .mega-fallback {
    position: relative;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    min-height: 52px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--mega-ink);
    font-size: 13px;
    font-weight: 650;
    line-height: 1.35;
    white-space: nowrap;
    text-decoration: none;
    transition: color 180ms ease;
    -webkit-tap-highlight-color: transparent;
}

.storefront .mega-navigation .mega-trigger::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: #e60074;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 200ms ease;
}

.storefront .mega-navigation .mega-trigger:hover,
.storefront .mega-navigation .mega-item.is-open > .mega-trigger { color: #e60074; }
.storefront .mega-navigation .mega-item.is-open > .mega-trigger::after { transform: scaleX(1); }
.storefront .mega-navigation .mega-trigger:focus-visible { outline: 2px solid #0787b1; outline-offset: -5px; border-radius: 7px; }
.storefront .mega-navigation .mega-trigger.nav-all,
.storefront .mega-navigation .mega-fallback.nav-all {
    padding-right: 24px;
    border-right: 1px solid var(--mega-line);
    font-weight: 750;
}

.mega-navigation .mega-trigger > svg:not(.mega-chevron) { width: 18px; height: 18px; flex: 0 0 18px; }
.mega-navigation .mega-trigger .mega-chevron { width: 12px; height: 12px; flex: 0 0 12px; transition: transform 200ms ease; }
.mega-navigation .mega-item.is-open .mega-chevron { transform: rotate(180deg); }

.storefront .mega-navigation .mega-panel {
    position: absolute;
    z-index: 40;
    top: 100%;
    left: 0;
    right: 0;
    max-height: min(560px, calc(100dvh - 160px));
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #cbd9de #f7fafb;
    border: 1px solid var(--mega-line);
    border-top: 0;
    border-radius: 0 0 20px 20px;
    background: #fff;
    box-shadow: 0 25px 48px -18px #102e3c2b, 0 8px 18px -12px #102e3c1a;
    color: var(--mega-ink);
}

.storefront .mega-navigation .mega-panel[hidden] { display: none !important; }
.mega-navigation .mega-item.is-open .mega-panel { animation: mega-panel-in 220ms cubic-bezier(.2, .7, .3, 1) both; }
.mega-navigation .mega-panel-inner { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 310px; }
.mega-navigation .mega-intro {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 30px 25px 26px;
    background: linear-gradient(145deg, #edf7fb 0%, #f4f8fa 60%, #fffbea 100%);
    border-right: 1px solid var(--mega-line);
}

.mega-navigation .mega-intro::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, #00aeef 0% 33.33%, #e60074 33.33% 66.66%, #ffdc00 66.66% 100%);
}

.mega-navigation .mega-eyebrow { margin: 0 0 12px; color: #007d9f; font-size: 10px; font-weight: 750; letter-spacing: 1.4px; line-height: 1.4; text-transform: uppercase; }
.storefront .mega-navigation .mega-heading { margin: 0; color: var(--mega-ink); font-size: 27px; font-weight: 750; line-height: 1.13; letter-spacing: -.9px; }
.mega-navigation .mega-description { margin: 14px 0 19px; color: var(--mega-muted); font-size: 12px; line-height: 1.75; }
.storefront .mega-navigation .mega-category-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 38px;
    padding: 0;
    color: #b8005d;
    font-size: 12px;
    font-weight: 750;
    white-space: normal;
    text-decoration: none;
}

.mega-navigation .mega-category-link svg { width: 15px; height: 15px; transition: transform 180ms ease; }
.mega-navigation .mega-category-link:hover svg { transform: translate(2px, -2px); }
.mega-navigation .mega-color-chips { display: flex; align-items: center; gap: 4px; margin-top: auto; padding-top: 27px; }
.mega-navigation .mega-color-chips i { display: block; width: 29px; height: 5px; border-radius: 2px; background: #00aeef; }
.mega-navigation .mega-color-chips i:nth-child(2) { background: #e60074; }
.mega-navigation .mega-color-chips i:nth-child(3) { background: #ffdc00; }
.mega-navigation .mega-color-chips i:nth-child(4) { background: #142e3a; }
.mega-navigation .mega-category-list { display: grid; width: 100%; gap: 2px; margin-top: 5px; }
.storefront .mega-navigation .mega-category-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 35px;
    padding: 7px 9px;
    margin-inline: -9px;
    border-radius: 7px;
    color: var(--mega-ink);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    white-space: normal;
    transition: background 180ms ease, color 180ms ease;
}

.storefront .mega-navigation .mega-category-list a:hover { background: #ffffffc9; color: #b8005d; }
.mega-navigation .mega-category-list small { display: grid; place-items: center; flex: 0 0 auto; min-width: 22px; height: 22px; padding-inline: 5px; border: 1px solid #dae5e9; border-radius: 6px; background: #ffffff94; color: #637984; font-size: 10px; font-weight: 600; }
.mega-navigation .mega-showcase { min-width: 0; padding: 23px 25px 18px; }
.mega-navigation .mega-showcase-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 32px; margin-bottom: 12px; }
.mega-navigation .mega-count { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; color: var(--mega-ink); font-size: 11px; font-weight: 700; letter-spacing: .15px; }
.mega-navigation .mega-count strong { color: var(--mega-ink); font-weight: 750; }
.mega-navigation .mega-count small { padding: 4px 7px; border-radius: 5px; background: #f1f6f8; color: #637984; font-size: 10px; font-weight: 500; }
.mega-navigation .mega-close { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border: 1px solid #e6edf0; border-radius: 50%; background: #fff; color: #637984; transition: background 180ms ease, color 180ms ease; }
.mega-navigation .mega-close svg { width: 15px; height: 15px; }
.mega-navigation .mega-close:hover { background: #f3f7f8; color: var(--mega-ink); }
.mega-navigation .mega-products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.storefront .mega-navigation .mega-product {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    min-height: 97px;
    padding: 9px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: #fff;
    color: var(--mega-ink);
    text-decoration: none;
    white-space: normal;
    transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.mega-navigation .mega-item.is-open .mega-product { animation: mega-product-in 280ms ease both; animation-delay: min(calc(var(--item-index, 0) * 24ms), 200ms); }
.storefront .mega-navigation .mega-product:hover,
.storefront .mega-navigation .mega-product:focus-visible { background: #f8fbfc; border-color: #dae8ed; color: var(--mega-ink); box-shadow: 0 6px 16px -10px #142e3a40; transform: translateY(-2px); }
.mega-navigation .mega-product-image { position: relative; display: grid; place-items: center; flex: 0 0 76px; width: 76px; height: 76px; overflow: hidden; border: 1px solid #edf1f3; border-radius: 10px; background: #f8fafb; }
.storefront .mega-navigation .mega-product-image img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; min-height: 0; max-height: 100%; object-fit: contain; transition: transform 350ms ease; }
.mega-navigation .mega-product-image > svg { width: 30px; height: 30px; color: #859da8; }
.mega-navigation .mega-product:hover .mega-product-image img { transform: scale(1.06); }
.mega-navigation .mega-product-copy { display: flex; flex: 1 1 auto; flex-direction: column; min-width: 0; gap: 7px; }
.mega-navigation .mega-product-name { display: block; color: var(--mega-ink); font-size: 12px; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
.mega-navigation .mega-product-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px; color: #b8005d; font-size: 14px; font-weight: 750; line-height: 1.4; }
.mega-navigation .mega-product-price small { color: var(--mega-muted); font-size: 10px; font-weight: 500; }
.mega-navigation .mega-price-pending { color: #637984; font-size: 11px; font-weight: 550; }
.mega-navigation .mega-empty { grid-column: 1 / -1; padding: 20px 12px; color: var(--mega-muted); font-size: 13px; line-height: 1.7; }
.mega-navigation .mega-product-arrow { align-self: flex-start; flex: 0 0 12px; margin-top: 2px; color: #90a4ae; line-height: 1; transition: color 180ms ease, transform 180ms ease; }
.mega-navigation .mega-product-arrow svg { display: block; width: 12px; height: 12px; }
.mega-navigation .mega-product:hover .mega-product-arrow { color: #e60074; transform: translate(1px, -1px); }
.mega-navigation .mega-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px 16px; margin-top: 18px; padding-top: 13px; border-top: 1px solid var(--mega-line); }
.mega-navigation .mega-bottom-note { color: var(--mega-muted); font-size: 11px; line-height: 1.6; }
.storefront .mega-navigation .mega-view-all { display: inline-flex; align-items: center; gap: 9px; min-height: 32px; padding: 0; color: var(--mega-ink); font-size: 12px; font-weight: 750; white-space: normal; }
.mega-navigation .mega-view-all svg { width: 14px; height: 14px; transition: transform 180ms ease; }
.mega-navigation .mega-view-all:hover svg { transform: translateX(3px); }
.mega-navigation .mega-products.is-single { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); align-items: stretch; }
.storefront .mega-navigation .mega-products.is-single .mega-product { flex-direction: column; align-items: stretch; gap: 14px; padding: 15px; border-color: #e6edf0; }
.mega-navigation .mega-products.is-single .mega-product-image { flex-basis: auto; width: 100%; height: 180px; }
.mega-navigation .mega-products.is-single .mega-product-copy { padding-inline: 2px; }
.mega-navigation .mega-products.is-single .mega-product-arrow { position: absolute; bottom: 20px; right: 18px; }
.mega-navigation .mega-feature { position: relative; display: block; min-width: 0; min-height: 260px; overflow: hidden; border: 1px solid #e6edf0; border-radius: 12px; background: #f7fafb; }
.mega-navigation .mega-feature img { display: block; width: 100%; height: 100%; max-height: 288px; object-fit: contain; }
.mega-navigation .mega-feature > span { position: absolute; right: 12px; bottom: 12px; left: 12px; padding: 11px 14px; border: 1px solid #edf1f3; border-radius: 9px; background: #ffffffed; color: var(--mega-ink); font-size: 12px; font-weight: 650; line-height: 1.5; }

@keyframes mega-panel-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes mega-product-in {
    from { opacity: 0; translate: 0 7px; }
    to { opacity: 1; translate: 0 0; }
}

@media (max-width: 1150px) {
    .storefront .mega-navigation .mega-menu-shell { gap: 0 17px; }
    .storefront .mega-navigation .mega-trigger,
    .storefront .mega-navigation .mega-fallback { gap: 7px; font-size: 12px; }
    .storefront .mega-navigation .mega-trigger.nav-all,
    .storefront .mega-navigation .mega-fallback.nav-all { padding-right: 17px; }
    .mega-navigation .mega-panel-inner { grid-template-columns: 220px minmax(0, 1fr); }
    .mega-navigation .mega-intro { padding: 26px 22px; }
    .mega-navigation .mega-showcase { padding: 19px 18px 16px; }
    .mega-navigation .mega-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mega-navigation .mega-product-image { flex-basis: 72px; width: 72px; height: 72px; }
}

@media (min-width: 761px) and (max-width: 920px) {
    .storefront .mega-navigation .mega-menu-shell { gap: 0 11px; }
    .storefront .mega-navigation .mega-trigger,
    .storefront .mega-navigation .mega-fallback { gap: 5px; font-size: 11px; }
    .storefront .mega-navigation .mega-trigger.nav-all,
    .storefront .mega-navigation .mega-fallback.nav-all { padding-right: 11px; }
    .mega-navigation .mega-trigger > svg:not(.mega-chevron) { width: 15px; height: 15px; flex-basis: 15px; }
    .mega-navigation .mega-trigger .mega-chevron { width: 10px; height: 10px; flex-basis: 10px; }
    .mega-navigation .mega-panel-inner { grid-template-columns: 185px minmax(0, 1fr); }
    .mega-navigation .mega-intro { padding: 23px 17px; }
    .storefront .mega-navigation .mega-heading { font-size: 24px; }
    .mega-navigation .mega-showcase { padding: 16px 12px; }
    .storefront .mega-navigation .mega-product { gap: 9px; padding: 7px; }
    .mega-navigation .mega-product-image { flex-basis: 62px; width: 62px; height: 62px; }
    .mega-navigation .mega-product-name { font-size: 11px; }
    .mega-navigation .mega-product-arrow { display: none; }
}

@media (max-width: 760px) {
    .storefront .mega-navigation { max-height: calc(100dvh - 145px); overflow-y: auto; overscroll-behavior: contain; }
    .storefront .mega-navigation .mega-menu-shell { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding-block: 6px 12px; }
    .mega-navigation .mega-item { display: block; width: 100%; border-bottom: 1px solid #edf1f3; }
    .storefront .mega-navigation .mega-trigger,
    .storefront .mega-navigation .mega-fallback { width: 100%; justify-content: flex-start; gap: 9px; min-height: 48px; padding: 10px 5px; border: 0; color: var(--mega-ink); font-size: 13px; font-weight: 650; }
    .storefront .mega-navigation .mega-trigger.nav-all,
    .storefront .mega-navigation .mega-fallback.nav-all { padding-right: 5px; border: 0; }
    .mega-navigation .mega-trigger .mega-chevron { width: 13px; height: 13px; flex-basis: 13px; margin-left: auto; }
    .storefront .mega-navigation .mega-trigger::after { display: none; }
    .storefront .mega-navigation .mega-panel { position: static; max-height: none; overflow: visible; margin: 0 0 10px; border: 1px solid #e6edf0; border-radius: 13px; box-shadow: none; }
    .mega-navigation .mega-panel-inner { display: block; min-height: 0; }
    .mega-navigation .mega-intro { padding: 20px 18px 16px; border: 0; border-radius: 12px 12px 0 0; overflow: hidden; }
    .mega-navigation .mega-eyebrow { margin-bottom: 9px; font-size: 9px; }
    .storefront .mega-navigation .mega-heading { font-size: 25px; letter-spacing: -.6px; }
    .mega-navigation .mega-description { max-width: 430px; margin: 10px 0 8px; font-size: 12px; line-height: 1.65; }
    .storefront .mega-navigation .mega-category-link { min-height: 44px; padding: 0; font-size: 12px; }
    .mega-navigation .mega-color-chips { position: absolute; top: 23px; right: 18px; margin: 0; padding: 0; gap: 3px; }
    .mega-navigation .mega-color-chips i { width: 14px; height: 4px; }
    .mega-navigation .mega-category-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px 12px; margin-top: 7px; }
    .storefront .mega-navigation .mega-category-list a { min-height: 44px; padding: 7px 0; margin: 0; gap: 5px; font-size: 11px; }
    .mega-navigation .mega-showcase { padding: 13px 12px 12px; }
    .mega-navigation .mega-showcase-heading { min-height: 44px; margin-bottom: 6px; }
    .mega-navigation .mega-close { width: 44px; height: 44px; border-color: transparent; }
    .mega-navigation .mega-close svg { width: 17px; height: 17px; }
    .mega-navigation .mega-products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
    .storefront .mega-navigation .mega-product { gap: 9px; min-height: 88px; padding: 8px; border-color: #edf1f3; border-radius: 10px; }
    .mega-navigation .mega-product-image { flex-basis: 60px; width: 60px; height: 60px; border-radius: 8px; }
    .mega-navigation .mega-product-name { font-size: 11px; line-height: 1.4; }
    .mega-navigation .mega-product-copy { gap: 5px; }
    .mega-navigation .mega-product-price { font-size: 13px; }
    .mega-navigation .mega-product-arrow { display: none; }
    .mega-navigation .mega-bottom { gap: 6px; margin-top: 14px; padding-top: 9px; }
    .mega-navigation .mega-bottom-note { font-size: 10px; }
    .storefront .mega-navigation .mega-view-all { min-height: 44px; padding: 0; font-size: 12px; }
    .mega-navigation .mega-products.is-single { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .storefront .mega-navigation .mega-products.is-single .mega-product { padding: 10px; gap: 10px; }
    .mega-navigation .mega-products.is-single .mega-product-image { height: 140px; }
    .mega-navigation .mega-feature { min-height: 220px; }
    .mega-navigation .mega-feature img { max-height: 220px; }
    .mega-navigation .mega-feature > span { inset: auto 7px 7px; padding: 8px; font-size: 10px; }
}

@media (min-width: 401px) and (max-width: 560px) {
    .storefront .mega-navigation .mega-product { flex-direction: column; align-items: stretch; gap: 8px; }
    .mega-navigation .mega-product-image { flex-basis: auto; width: 100%; height: 105px; }
    .mega-navigation .mega-product-copy { gap: 5px; padding: 2px; }
}

@media (max-width: 400px) {
    .mega-navigation .mega-products { grid-template-columns: minmax(0, 1fr); }
    .mega-navigation .mega-product-image { flex-basis: 64px; width: 64px; height: 64px; }
    .mega-navigation .mega-product-name { font-size: 12px; }
    .mega-navigation .mega-product-arrow { display: block; }
    .mega-navigation .mega-products.is-single { grid-template-columns: minmax(0, 1fr); }
    .storefront .mega-navigation .mega-products.is-single .mega-product { flex-direction: row; align-items: center; }
    .mega-navigation .mega-products.is-single .mega-product-image { flex: 0 0 80px; width: 80px; height: 80px; }
    .mega-navigation .mega-products.is-single .mega-product-arrow { display: none; }
    .mega-navigation .mega-feature { min-height: 200px; }
    .mega-navigation .mega-feature img { height: 220px; }
    .mega-navigation .mega-color-chips { gap: 2px; }
    .mega-navigation .mega-color-chips i { width: 11px; }
}

@media (prefers-reduced-motion: reduce) {
    .mega-navigation *, .mega-navigation *::before, .mega-navigation *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .storefront .mega-navigation .mega-product:hover,
    .storefront .mega-navigation .mega-product:focus-visible { transform: none; }
    .mega-navigation .mega-product:hover .mega-product-image img { transform: none; }
}
