/* ============================================================
   Categories dropdown — main panel (corporate_new desktop)
   ============================================================ */

.cat-menu {
    position: absolute;
    top: calc(100% + 18px);
    right: 60px;
    z-index: 200;
    width: 260px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15), 0 1px 4px rgba(0, 0, 0, 0.08);
    padding: 8px 0;
    opacity: 0;
    transform-origin: top center;
    transform: scaleY(0);
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.cat-menu.open {
    opacity: 1;
    transform: scaleY(1);
    pointer-events: auto;
}

.cat-menu__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cat-menu__item {
    position: relative;
}

.cat-menu__link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 20px;
    text-decoration: none;
    color: #46494F;
    font-size: 17px;
    font-weight: 500;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.cat-menu__link:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Keep the parent highlighted while its sub-menu is open — signals to the user
   which parent category they're currently exploring even after the cursor moves
   into the sub panel. */
.cat-menu__item:has(.cat-menu__sub.open) > .cat-menu__link {
    background-color: rgba(0, 0, 0, 0.05);
}

.cat-menu__icon {
    width: 22px;
    text-align: center;
    flex-shrink: 0;
    color: #46494F;
    font-size: 18px;
}

.cat-menu__name {
    flex: 1;
}

.cat-menu__chevron {
    font-size: 12px;
    color: #46494F;
    flex-shrink: 0;
}

/* ============================================================
   Submenu — separate panel, opens to the left of its parent row
   ============================================================ */

.cat-menu__sub {
    position: absolute;
    top: 0;
    right: 100%;
    margin-right: 8px;
    z-index: 201;
    min-width: 220px;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15), 0 1px 4px rgba(0, 0, 0, 0.08);
    padding: 8px 0;
    opacity: 0;
    transform: translateX(8px);
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.cat-menu__sub.open {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.cat-menu__sub-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cat-menu__sub-link {
    display: block;
    padding: 12px 20px;
    text-decoration: none;
    color: #46494F;
    font-size: 17px;
    font-weight: 500;
    white-space: nowrap;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.cat-menu__sub-link:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Hide on mobile (mobile uses its own categories nav inside the hamburger) */
@media (max-width: 768px) {
    .cat-menu {
        display: none;
    }
}
