.cat-cols-root { display: none; }

@media (min-width: 992px) {
    .sub-nav-deck:has(.cat-cols-root) .custom-mega-dropdown { position: static; }
    .cat-cols-root { position: absolute; left: 0; right: 0; top: 100%; z-index: 1040; background: var(--b2c-surface, #fff); border-top: 1px solid var(--b2c-line, #e6e8ec); box-shadow: 0 16px 30px rgba(20, 24, 31, .12); }
    .custom-mega-dropdown:hover .cat-cols-root,
    .custom-mega-dropdown:focus-within .cat-cols-root { display: block; }
    .cat-cols-inner { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 340px; max-height: min(70vh, 560px); }
    .cat-cols-side { list-style: none; margin: 0; padding: 10px 0; border-right: 1px solid var(--b2c-line, #e6e8ec); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
    .cat-cols-side-link { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-right: 10px; padding: 10px 12px; border-radius: 6px; font-size: 14px; font-weight: 600; color: var(--b2c-ink, #333a45); text-decoration: none; }
    .cat-cols-side-link i { font-size: 10px; color: var(--b2c-steel, #6b7280); }
    .cat-cols-side-link.is-active { background: var(--b2c-surface-muted, #f6f7f9); color: var(--b2c-ink, #171a1f); }
    .cat-cols-side-link:hover { color: var(--b2c-ink, #171a1f); }
    .cat-cols-main { min-width: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
    .cat-cols-panel { display: none; gap: 28px; padding: 22px 28px; }
    .cat-cols-panel.is-active { display: flex; }
    .cat-cols-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
    .cat-cols-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 28px; align-content: start; }
    .cat-cols-panel:not(.has-image) .cat-cols-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .cat-cols-group { display: flex; flex-direction: column; min-width: 0; }
    .cat-cols-title { margin-bottom: 4px; font-size: 14px; font-weight: 700; color: var(--b2c-ink, #171a1f); text-decoration: none; }
    .cat-cols-link, .cat-cols-more { padding: 4px 0; font-size: 13.5px; color: var(--b2c-ink-soft, #4b5160); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .cat-cols-more { font-weight: 600; color: var(--b2c-primary, #1d4ed8); }
    .cat-cols-title:hover, .cat-cols-link:hover { color: var(--b2c-primary, #1d4ed8); }
    .cat-cols-empty { margin: 0 0 12px; font-size: 14px; color: var(--b2c-steel, #6b7280); }
    .cat-cols-all { align-self: flex-start; margin-top: 18px; font-size: 13.5px; font-weight: 700; color: var(--b2c-primary, #1d4ed8); text-decoration: none; }
    .cat-cols-all i { font-size: 11px; }
    .cat-cols-all:hover { text-decoration: underline; }
    .cat-cols-aside { flex: 0 0 260px; align-self: flex-start; display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 10px; background: var(--b2c-surface-muted, #f6f7f9); color: var(--b2c-ink, #171a1f); text-decoration: none; }
    .cat-cols-aside img { width: 100%; height: 150px; object-fit: contain; border-radius: 6px; background: var(--b2c-surface, #fff); }
    .cat-cols-aside strong { font-size: 15px; }
    .cat-cols-aside-btn { align-self: flex-start; margin-top: 4px; padding: 7px 14px; border-radius: 6px; background: var(--b2c-primary, #1d4ed8); color: #fff; font-size: 13px; font-weight: 700; }

    .mega-menu-root.is-flat { padding: 10px 0; }
    .mega-menu-root.is-flat > .flyout-list { display: grid; grid-template-columns: repeat(var(--flat-cols, 3), minmax(190px, 1fr)); width: auto; border-right: 0; padding: 0 8px; }
    .mega-menu-root.is-flat .nav-item-header { border-radius: 6px; }
}
