.category-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgb(0 0 0 / 45%);
    z-index: 1998;
    opacity: 1;
}

.category-drawer-overlay[hidden] {
    display: none;
}

.category-drawer {
    position: fixed;
    top: 0;
    right: 0;
    left: auto;
    transform: translateX(100%);
    width: min(360px, 88vw);
    height: 100vh;
    height: 100dvh;
    overflow-y: auto;
    background: #fff;
    color: #333;
    z-index: 1999;
    box-shadow: 4px 0 20px rgb(0 0 0 / 15%);
    visibility: hidden;
    transition: transform 0.3s ease, visibility 0.3s ease;
    font-family: inherit;
}

.category-drawer.is-open {
    transform: translateX(0);
    visibility: visible;
}

.category-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e5e5;
}

.category-drawer-header h2 {
    margin: 0;
    font-size: 18px;
}

#category-drawer-close {
    border: 0;
    background: transparent;
    font-size: 30px;
    cursor: pointer;
    color: inherit;
}

.drawer-category-list,
.drawer-subcategories {
    list-style: none;
    margin: 0;
    padding: 0;
}

.drawer-category-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #eee;
}

.drawer-category-row a {
    flex: 1;
    display: block;
    padding: 14px 20px;
    color: inherit;
    text-decoration: none;
}

.drawer-category-row a:hover {
    color: var(--primary-color);
    background: #f7f7f7;
}

.drawer-expand {
    width: 48px;
    min-height: 48px;
    border: 0;
    background: transparent;
    cursor: pointer;
    font-size: 20px;
}

.drawer-subcategories {
    padding-right: 16px;
    background: #f8f8f8;
    border-right: 2px solid var(--primary-color, #16803c);
}

.drawer-subcategories[hidden] {
    display: none;
}

body.category-drawer-open {
    overflow: hidden;
}