{* Defensive: Handles LazyArray objects for category *}
{if is_object($category)}
  {$category = $category|json_encode|json_decode:true}
  {if isset($category.category)}
    {$category = $category.category}
  {/if}
{/if}

<div id="js-product-list-footer">
    {if isset($category.additional_description) && $category.additional_description && $listing.pagination.items_shown_from == 1}
      <div id="category-description-2" class="cms-content my-3">
        {$category.additional_description nofilter}
      </div>
    {/if}
</div>