/* ── Showcase Popup Overlay ── */

/* 오버레이 */
.sc-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.sc-popup-overlay.is-visible {
    opacity: 1;
}

.sc-popup-overlay.is-hiding {
    opacity: 0;
}

/* 배경 */
.sc-popup-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* 콘텐츠 래퍼 */
.sc-popup-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 40px 16px;
    box-sizing: border-box;
    margin: auto;
}

/* 데스크톱 가로 배치 */
.sc-popup-desktop {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.sc-popup-item {
    width: 280px;
    flex-shrink: 0;
}

/* 모바일 Swiper */
.sc-popup-mobile {
    display: none;
    width: 100%;
    overflow: visible;
}

.sc-popup-mobile .showcase-popup-swiper {
    overflow: visible;
}

.sc-popup-mobile .swiper-slide {
    width: 260px;
}

/* 이미지 공통 */
.showcase-popup-image {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    aspect-ratio: 3 / 4;
}

.showcase-popup-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.showcase-popup-image:hover img {
    transform: scale(1.02);
}

/* 하단 바 */
.sc-popup-bottom {
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    color: #fff;
    font-size: 14px;
}

.sc-popup-check-label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
}

.sc-popup-close-btn {
    padding: 6px 16px;
    border: none;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.sc-popup-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Swiper pagination 커스텀 */
.showcase-popup-swiper .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
}

.showcase-popup-swiper .swiper-pagination-bullet-active {
    background: #fff;
}

.showcase-popup-swiper .swiper-pagination {
    position: relative;
    margin-top: 12px;
}

/* 반응형: 1024px 이하에서 스와이프 전환 */
@media (max-width: 1023px) {
    .sc-popup-desktop {
        display: none;
    }

    .sc-popup-mobile {
        display: block;
    }
}
