/* Marketplace template v12: compact, column-balanced category mega menu. */
@media (min-width: 1025px) {
    .st-market-menu__dropdown.st-market-mega {
        position: fixed;
        top: calc(var(--st-utility-height, 34px) + var(--st-header-height, 72px) + var(--st-menu-height, 42px));
        left: 50%;
        display: grid;
        width: min(1760px, calc(100vw - 80px));
        max-height: calc(100vh - var(--st-utility-height, 34px) - var(--st-header-height, 72px) - var(--st-menu-height, 42px) - 28px);
        padding: 20px;
        grid-template-columns: repeat(6, minmax(0, 1fr));
        align-items: start;
        gap: 28px;
        overflow: auto;
        border: 1px solid #e4e7eb;
        border-radius: 0 0 12px 12px;
        background: #fdfdfd;
        box-shadow: 0 14px 32px rgba(24, 33, 43, .12);
        transform: translateX(-50%);
    }

    .st-mega-column {
        display: grid;
        min-width: 0;
        align-content: start;
        gap: 22px;
    }

    .st-mega-group { min-width: 0; }
    .st-mega-title {
        display: flex;
        min-height: 31px;
        align-items: center;
        gap: 8px;
        border-bottom: 1px solid #e2e5e8;
        color: #303943;
        font-size: 15px;
        font-weight: 700;
        text-decoration: none;
    }

    .st-mega-title:hover { color: #f05d1a; }
    .st-mega-title img,
    .st-mega-title .material-icons-outlined {
        width: 19px;
        height: 19px;
        flex: 0 0 19px;
        object-fit: contain;
    }
    .st-mega-title .material-icons-outlined { font-size: 19px; }

    .st-mega-links { display: grid; padding-top: 7px; gap: 2px; }
    .st-mega-links a {
        display: block;
        min-height: 27px;
        padding: 4px 8px;
        overflow: hidden;
        border-radius: 5px;
        color: #4b5561 !important;
        font-size: 13px;
        font-weight: 400;
        line-height: 19px;
        text-decoration: none;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .st-mega-links a:hover,
    .st-mega-links a[aria-current="page"] {
        color: #f05d1a !important;
        background: #fff2ea;
        font-weight: 600;
    }

    .st-mega-links.is-collapsible .st-mega-extra { display: none; }
    .st-mega-group.is-expanded .st-mega-links.is-collapsible .st-mega-extra { display: block; }

    .st-mega-expand {
        display: inline-flex;
        width: max-content;
        min-height: 28px;
        align-items: center;
        margin-top: 4px;
        padding: 3px 8px;
        gap: 3px;
        border: 0;
        border-radius: 5px;
        background: transparent;
        color: #f05d1a;
        font-family: inherit;
        font-size: 13px;
        font-weight: 600;
        cursor: pointer;
    }

    .st-mega-expand:hover { background: #fff2ea; }
    .st-mega-expand .material-icons-outlined { font-size: 16px; }
}
