.modal-categories {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    justify-content: center;
    align-items: center;
}

.modal-categories.active {
    display: flex;
}

.modal-content-categories {
    background: whitesmoke;
    padding: 2rem 1.5rem;
    border-radius: 0 8px 8px 0;
    max-width: 350px;
    width: 90vw;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.2);
    position: relative;
    left: 0;
    margin-right: auto;
    margin-left: 0;
    transition: all 0.3s;
}

@media (min-width: 992px) {
    .modal-categories {
        justify-content: flex-start;
        align-items: flex-start;
    }

    .modal-content-categories {
        margin-top: 130px;
        margin-left: 0;
        border-radius: 0 8px 8px 0;
        max-width: 350px;
        width: 350px;
        height: calc(100vh - 150px);
        max-height: none;
    }
}

@media (max-width: 991px) {
    .modal-categories {
        justify-content: center;
        align-items: center;
    }

    .modal-content-categories {
        border-radius: 8px;
        width: 90vw;
        max-width: 95vw;
        margin: 0 auto;
        height: auto;
        max-height: 80vh;
    }
}

.close-modal-categories {
    float: right;
    font-size: 1.5rem;
    cursor: pointer;
    margin-top: -1rem;
    margin-right: -1rem;
}

#openCategoriesBtn {
    position: fixed;
    top: 110px;
    left: 10px;
    z-index: 2100;
    display: flex;
    align-items: center;
    gap: 0.4em;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 2em;
    padding: 0.4em 0.9em;
    font-size: 0.98em;
    width: auto;
    min-width: unset;
    max-width: unset;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: background 0.2s;
    white-space: nowrap;
}

#openCategoriesBtn:hover {
    background: #0056b3;
}

#openCategoriesBtn svg {
    width: 1.1em;
    height: 1.1em;
    vertical-align: middle;
}
