/* 모바일: 기본 숨김, .active 시 오버레이로 표시(헤더 버튼으로 열기) */
#category-box {
    display: none;
    height: 100%;
    min-height: 30rem;
    background-color: #323232;
    padding: 7rem 0 0 0;
    padding-top: max(7rem, env(safe-area-inset-top));
    box-sizing: border-box;
    z-index: 10;
}
#category-box.active {
    display: block;
}
#category-box ul li a {
    text-decoration: none;
    color: inherit;
}
#category-box ul {
    width: 14rem;
    height: auto;
    padding: 0 0 1rem 0;
    margin: 0 0 0 1rem;
    list-style: none;
    border-bottom: 1px solid #474747;
}
#category-box .nav-title {
    font-size: 1.8rem;
    padding: 2.5rem 0 1.3rem;
}
#category-box ul li {
    font-size: 1.6rem;
    min-height: 4.4rem;
    display: flex;
    align-items: center;
}
.shortcut-box {
    display: flex;
    width: 16rem;
    height: 4.8rem;
    left: 0;
    bottom: 0;
    justify-content: left;
    align-items: center;
    gap: 10px;
    margin-left: 1rem;
    box-sizing: border-box;
}
.shortcut-box a img {
    width: 2.5rem;
    height: 2.5rem;
    padding: 0.5rem 0;
    transition: transform 0.3s ease;
}
.shortcut-box a img:hover {
    transform: scale(1.1);
}

/* 데스크톱: 우측 사이드바로 인라인 표시(레이아웃 우측에 고정) */
@media (min-width: 1024px) {
    #category-box {
        display: block;
        position: fixed;
        height: auto;
        min-height: 0;
        padding: 0;
        margin-top: 146px;
        background-color: #323232;
        border-radius: 6px;
    }
}
