.gt-categories-container {
    display: flex;
    height: 100vh; /* Full height of the viewport */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: -1;
    transition: 0.1s ease-in-out;
}

body.admin-bar.is-logged-in .gt-categories-container {
    top: 42px;
}

@media screen and (min-width: 767px) {
    body.admin-bar.is-logged-in .gt-categories-container {
        top: 32px;
    }
}

.gt-categories-container__visible {
    z-index: 99999;
}

.gt-categories-container__overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transition: 0.3s background-color ease-in-out;
    z-index: -1;
    background-color: rgba(0, 0, 0, 0);
    cursor: pointer;

    /*&:after {*/
    /*    content: "✖";*/
    /*    position: absolute;*/
    /*    right: 20px;*/
    /*    top: 20px;*/
    /*    color: white;*/
    /*    font-size: 24px;*/
    /*    background-image: url("../img/x-mark.svg");*/
    /*}*/
}

.gt-categories-container__visible .gt-categories-container__overlay {
    z-index: 1;
    background: rgba(5, 19, 38, .502);
}

/* Categories Section */
.gt-categories-container__categories {
    list-style: none;
    margin: 0;
    display: flex;
    flex-direction: column; /* Vertically align */
    gap: 20px;
    height: 100%; /* Allow full height */
    justify-content: flex-start; /* Align to the top */
    background: #ffffffc9;
    backdrop-filter: blur(5px);
    padding: 2em;
    z-index: -999;
    transform: translateX(-100%);
    transition: 0.3s transform;
}

.gt-categories-container__close-overlay {
    display: none;
    width: 24px;
    height: 24px;
    background: #b46951;
    border-radius: 100vw;
    color: #fff;
    padding: 2px;
}

@media screen and (max-width: 767px) {
    .gt-categories-container__categories {
        padding: 1em
    }
}

.gt-categories-container__visible .gt-categories-container__categories {
    z-index: 2;
    transform: translateX(0);
}

.gt-categories-container__category-item {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    outline: 1px solid #fff;
    padding: .5rem;
    border-radius: 4px;
}

/*.gt-categories-container__category-item.has-sub:after {*/
/*    content: "";*/
/*    background-image: url('../img/chevron-down.svg');;*/
/*    width: 20px;*/
/*    height: 20px;*/
/*    position: absolute;*/
/*    right: 15px;*/
/*}*/

svg.gt-categories-container__category-toggler {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.gt-categories-container__category-link {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-grow: 1;
}

.gt-categories-container__category-image {
    width: 80px !important;
    height: 80px !important;
    object-fit: cover;
    border-radius: 50% !important;
    border: 2px solid #ddd !important;
    transition: transform 0.3s;
    max-width: 60px;
    max-height: 60px;
}

@media screen and (max-width: 767px) {
    .gt-categories-container__category-image {
        width: 40px !important;
        height: 40px !important;
        display: none;
    }
}

.gt-categories-container__category-item:hover
.gt-categories-container__category-image {
    transform: scale(1.1);
}

.gt-categories-container__category-label {
    font-size: 16px;
    color: #333;
    flex-grow: 1;
}

@media screen and (max-width: 767px) {
    .gt-categories-container__category-label {
        /*display: none;*/
    }
}

/* Subcategories Section */
.gt-categories-container__subcategories {
    list-style: none;
    z-index: 2;
    margin: 0;
    display: none; /* Initially hidden */
    flex-direction: column; /* Vertically align subcategories */
    gap: 20px;
    height: 100%; /* Full height of viewport */
    justify-content: flex-start; /* Center vertically */
    border-left: 1px solid #f5f5f5; /* Separation */
    box-sizing: border-box; /* Include padding in total width */
    background: #ffffffc9;
    backdrop-filter: blur(5px);
    padding: 2em;
    overflow-y: auto;
}

/*@media screen and (max-width: 767px) {*/
/*    padding: 1em;*/
/*}*/

.gt-categories-container__subcategories--visible {
    display: flex; /* Show subcategories */
}

.gt-categories-container__subcategories-item {
    background: none;
}


.gt-categories-container__subcategories-item-link {
    font-size: 16px;
    padding: 10px 20px;
    background: #205f4ea8;
    color: #fff;
    display: block;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.gt-categories-container__subcategories-item-link:hover {
    background: rgba(180, 105, 81, 0.84);
    transform: scale(1.05);
}

.gt-categories-container__subcategories-item-link, .gt-categories-container__subcategories-item-link:hover {
    color: #fff !important;
}

@media screen and (max-width: 767px) {
    .gt-categories-container__close-overlay {
        display: block;
    }
}