#sorting-options {
    margin-bottom: 25px;
}
#custom-sorting-options {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap; /* Allow items to wrap on smaller screens */
}

#custom-sorting-options li {
    padding: 7px 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    display: flex;
    align-items: center;
    position: relative; /* Required for `::after` to work properly */
    color: #000000;
}
#custom-sorting-options li:not(:last-child):not(.lst-dwn):not(.span-hold):not(.active)::after {
    content: "|"; /* Slash character */
    padding-left: 5px;
}
#custom-sorting-options li:hover {
    background-color: #eaeaea;
}

#custom-sorting-options li.span-hold {
    color: #0f0f0f;
}

#custom-sorting-options li.lst-dwn {
    padding-left: 3px;
    padding-right: 3px;
}

#custom-sorting-options li.active {
    background-color: #0073aa;
    color: #fff;
    font-weight: bold;
    border-color: #0073aa;
    padding-right:25px
}

#custom-sorting-options li.active.srt-asc::after {
    content: "▲"; /* Unicode for an up arrow */
    position: absolute;
    right: 10px; /* Adjust the position of the arrow */
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px; /* Adjust icon size */
    color: white; /* Icon color */
    pointer-events: none; /* Prevent interactions with the icon */
}

#custom-sorting-options li.active.srt-desc::after {
    content: "▼"; /* Unicode for a down arrow */
    position: absolute;
    right: 10px; /* Adjust the position of the arrow */
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px; /* Adjust icon size */
    color: white; /* Icon color */
    pointer-events: none; /* Prevent interactions with the icon */
}
.cat-srt {
    margin-bottom: 10px;
}
/* ------------------------- MOBILE RESPONSIVE STYLES ------------------------- */
@media screen and (max-width: 768px) {
    /* Adjust container margins */
    #sorting-options {
        margin-bottom: 15px;
    }

    /* Stack list items vertically */
    #custom-sorting-options {
        flex-direction: column; /* Stack vertically */
        gap: 0; /* Remove horizontal gap */
        align-items: flex-start; /* Align items to the left */
    }

    #custom-sorting-options li {
        padding: 10px;
        font-size: 14px; /* Slightly smaller font size */
        width: 100%; /* Full width for mobile */
        border-bottom: 1px solid #ddd; /* Add a subtle separator */
    }

    /* Remove the vertical separator "|" for mobile */
    #custom-sorting-options li:not(:last-child):not(.lst-dwn):not(.span-hold):not(.active)::after {
        content: "";
        padding-left: 0;
    }

    /* Center arrows for active state */
    #custom-sorting-options li.active.srt-asc::after,
    #custom-sorting-options li.active.srt-desc::after {
        right: 15px;
        font-size: 14px;
    }
    #custom-sorting-options li.span-hold {
        border-bottom: 0;
        padding-bottom:0;
    }
    #custom-sorting-options li.lst-dwn {
        border-bottom: 0;
        padding-bottom:3px;
        padding-top: 3px;
        margin-left: 25px;
    }
    #custom-sorting-options li.lst-dwn:last-child {
        border-bottom: 1px solid #ddd; /* Add a subtle separator */
    }
}