/* 커스텀 모달 스타일 */
.custom-modal {
    display: none;
    position: fixed;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -13%);
    width: 100%;
    height: 95%;
    z-index: 9999999;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.modal-container {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    width: 100%;
    height: 100%;
    overflow: hidden;
    /* animation: modalSlideIn 0.3s ease-out; */
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 24px;
    border-bottom: 1px solid #e0e0e0;
}

.modal-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background-color: #f0f0f0;
    color: #333;
}

.modal-body {
    padding: 24px;
    max-height: 100vh;
}

.product-modal-content {
    color: #555;
    line-height: 1.6;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid #e0e0e0;
    background: #f8f9fa;
}

.btn-primary, .btn-secondary {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 70px;
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #545b62;
}

/* 모달이 열렸을 때 body 스크롤 방지 */
body.modal-open {
    overflow: hidden;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .modal-container {
        width: 95%;
        max-height: 90vh;
    }
    
    .modal-header {
        padding: 16px 20px;
    }
    
    .modal-title {
        font-size: 18px;
    }
    
    .modal-body {
        padding: 20px;
        max-height: 70vh;
    }
    
    .modal-footer {
        padding: 12px 20px;
        flex-direction: column;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        margin-bottom: 8px;
    }

    .modal-close {
        display: flex;
    }
}

@media (max-width: 480px) {
    .modal-container {
        width: 100%;
        height: 100%;
        max-height: 100vh;
        border-radius: 0;
        top: 0;
        left: 0;
        transform: none;
    }
    
    .modal-body {
        max-height: calc(100vh - 140px);
    }
    .modal-close {
        display: flex;
    }
}

/* 스크롤바 스타일링 */
.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}




.inner_warp {
    display: flex;
}
.inner_left {
    width: 30%;
    border-right: 1px solid #ddd;
}
.inner_right {
    width: 70%;
}
.category-item {
    padding: 10px 20px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}
.category-item:hover {
    background-color: #f0f0f0;
}
.category-item.active {
    background-color: #efefef;
    color: black;
    font-weight: bold;
}
.inner_left_box, .inner_right_box {
    list-style: none;
    margin: 0;
    padding: 0;
}
.inner_right_box {
    overflow-y: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}
.inner_right_box li {
    width: 50%;
    border-right: 1px solid #ddd;
}
/* 첫번째 줄은 border-top 적용 */
.inner_right_box li:nth-child(-n+2) {
    border-top: 1px solid #ddd;
}
.inner_right_box li a {
    text-decoration: none;
    color: #333;
    display: block;
    /* padding: 10px 20px; */
}
.inner_right_box li a:hover {
    background-color: #f0f0f0;
}