.category-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999; /* Higher than WP Admin Bar and Contact Button */
    visibility: hidden;
    pointer-events: none;
    display: flex;
    justify-content: flex-end;
}
.category-drawer.is-active {
    visibility: visible;
    pointer-events: auto;
}
.category-drawer__overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
    will-change: opacity;
}
.category-drawer.is-active .category-drawer__overlay {
    opacity: 1;
}
.category-drawer__content {
    position: relative;
    width: 100%;
    max-width: 350px;
    height: 100%;
    background: #fff;
    box-shadow: -5px 0 25px rgba(var(--color-primary-rgb), 0.1);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
    display: flex;
    flex-direction: column;
}
.category-drawer.is-active .category-drawer__content {
    transform: translateX(0);
}
.category-drawer__header {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--color-primary);
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.category-drawer__title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}
.category-drawer__close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}
.category-drawer__close svg {
    width: 18px;
    height: 18px;
}
.category-drawer__body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}
.category-drawer__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.category-drawer__item {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    border: 1px solid var(--color-primary);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.2s ease;
}
.category-drawer__item:hover {
    box-shadow: 0 4px 15px rgba(var(--color-primary-rgb), 0.15);
}
.category-drawer__item-img {
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0; 
    background: rgba(var(--color-primary-rgb), 0.03);
}
.category-drawer__item-img img {
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    display: block;
}
.category-drawer__item-title {
    padding: 10px 8px;
    text-align: center;
    border-top: 1px solid var(--color-primary);
    background: var(--color-primary);
}
.category-drawer__item-title span {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
@media (max-width: 480px) {
    .category-drawer__content {
        max-width: 80%;
    }
    .category-drawer__grid {
        gap: 10px;
    }
    .category-drawer__item-title span {
        font-size: 11px;
    }
}
