#modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    backdrop-filter: blur(4px);
    background: rgba(0,0,0,0.55);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

#modal.active { display: flex; }

.modal-content {
    width: 92%;
    max-width: 420px;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    animation: popUp 0.35s ease-out;
}

@keyframes popUp {
    from { transform: scale(0.8); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

.modal-img {
    width: 100%;
    height: 270px;
    object-fit: cover;
}

.modal-body { padding: 20px; text-align: center; }

.modal-title { font-size: 20px; font-weight: 600; }
.modal-price { margin-bottom: 15px; }
.modal-desc { font-size: 15px; color: #666; }

#modal-close {
    width: 100%;
    padding: 14px 0;
    background: #000;
    color: #fff;
    border: none;
    font-size: 15px;
    cursor: pointer;
}
/* ===============================
   상품 상세 모달
================================ */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    position: relative;
    background: #fff;
    width: 90%;
    max-width: 420px;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
}

.modal-content img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 8px;
}

.modal-close {
    position: absolute;
    right: 16px;
    top: 12px;
    font-size: 22px;
    cursor: pointer;
}
