/* ✅ 메뉴 최상위 컨테이너 */
#child-menu-root {
    position: static;
    z-index: 9999;
}

.child-menu-btn {
    position: absolute;
    top: 56px;
    right: 59px;
    width: 37px;
    height: 28px;
    z-index: 9997;
    cursor: pointer;
    overflow: visible;
}

/* ✅ 메뉴 패널 */
.child-menu-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 320px;
    height: 100%;
    background: #FF6440;
    z-index: 9998;
    padding: 90px 35px;
    transform: translateX(100%);
    box-shadow: -3px 0 10px rgba(0, 0, 0, 0.25);
    transition: 0.5s cubic-bezier(0.25, 1, 0.3, 1);
}

/* ✅ dim */
.child-menu-dim {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 9997;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s ease;
}

@media (max-width: 768px) {
.child-menu-panel {
    max-width: 100%;
}
}

.child-menu-close {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 28px;
    height: 28px;
    cursor: pointer;
    z-index: 10000;
}

/* ✅ 메뉴 항목 */
.child-menu-item {
    font-size: 22px;
    font-weight: 500;
    padding: 16px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #000;
    cursor: pointer;
    margin-bottom: 20px;
}

.child-menu-item img {
    width: 18px;
    height: auto;
}

@media (max-width: 768px) {
    .child-menu-btn {
    position: absolute;
        top: 24px;
    right: 24px;
    width: 19px;
    height: 16px;
}

/* ✅ X 애니메이션 */
.child-menu-btn.open .bar1 {
    transform: rotate(45deg) translate(6.3px, 6.3px);
}

.child-menu-btn.open .bar2 {
    opacity: 0;
}

.child-menu-btn.open .bar3 {
    transform: rotate(-45deg) translate(6.3px, -6.3px);
}
}