@charset "utf-8";
/* ============================================================
   video-thumb.css  —  상품 썸네일 영상 스타일
   ------------------------------------------------------------
   · 영상은 기존 이미지와 완전히 동일한 크기/비율로 표시됩니다.
   · 이 파일만 지우면 원래 상태로 되돌아갑니다.
   ============================================================ */

/* ── 1. 영상을 이미지와 똑같이 취급 ───────────────────────── */
.product-grid .item .img-box video.thumb-video,
.product-slider .swiper-slide video.thumb-video,
.box-item .product-grid .item .img-box video.thumb-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: all .2s ease-in-out;
    background-color: #111;
}

/* 목록 카드 호버 시 확대 (기존 이미지와 동일한 효과) */
.product-grid .item:hover .img-box video.thumb-video {
    scale: 1.1;
}

/* 영상이 들어간 상자는 배지 위치 기준점이 필요 */
.img-box,
.product-slider .swiper-slide {
    position: relative;
}


/* ── 2. "영상" 배지 ──────────────────────────────────────── */
.thumb-video-badge {
    position: absolute;
    left: 10px;
    top: 10px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 9px;
    border-radius: 100px;
    background-color: rgba(0, 0, 0, .55);
    color: #fff;
    font-size: 11px;
    line-height: 1.4;
    letter-spacing: .02em;
    pointer-events: none;
    transition: opacity .2s ease;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}
.thumb-video-badge svg {
    width: 9px;
    height: 9px;
    fill: #fff;
}
/* 재생 중에는 배지를 숨김 */
.img-box.is-playing .thumb-video-badge,
.swiper-slide.is-playing .thumb-video-badge {
    opacity: 0;
}


/* ── 3. 상세페이지 "크게 보기" 버튼 ───────────────────────── */
.thumb-video-expand {
    position: absolute;
    right: 16px;
    bottom: 16px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 9px 15px;
    border: 0;
    border-radius: 100px;
    background-color: rgba(0, 0, 0, .7);
    color: #fff;
    font-size: 12px;
    font-family: inherit;
    cursor: pointer;
    transition: background-color .2s ease;
}
.thumb-video-expand:hover {
    background-color: rgba(0, 0, 0, .9);
}
.thumb-video-expand svg {
    width: 13px;
    height: 13px;
}
/* 상세페이지 영상 슬라이드는 클릭 가능 표시 */
.product-slider .swiper-slide video.thumb-video[data-lightbox] {
    cursor: zoom-in;
}


/* ── 4. 영상 팝업(라이트박스) ─────────────────────────────── */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background-color: rgba(0, 0, 0, .92);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 60px 20px 40px;
}
.video-modal.on {
    display: flex;
}
.video-modal .video-box {
    position: relative;
    width: 100%;
    max-width: 720px;
    max-height: 100%;
}
.video-modal video {
    width: 100%;
    max-height: calc(100vh - 140px);
    display: block;
    border-radius: 8px;
    background-color: #000;
}
.video-modal .modal-close {
    position: absolute;
    top: -46px;
    right: 0;
    width: 36px;
    height: 36px;
    border: 0;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.video-modal .modal-close::before,
.video-modal .modal-close::after {
    content: "";
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: #fff;
}
.video-modal .modal-close::before { transform: rotate(45deg); }
.video-modal .modal-close::after  { transform: rotate(-45deg); }

.video-modal .modal-guide {
    margin-top: 14px;
    text-align: center;
    font-size: 12.5px;
    color: #ccc;
    line-height: 1.7;
}


/* ── 5. 모바일 대응 ──────────────────────────────────────── */
@media (max-width: 1024px) {
    .thumb-video-expand {
        right: 12px;
        bottom: 12px;
        padding: 8px 13px;
        font-size: 11.5px;
    }
    .thumb-video-badge {
        left: 8px;
        top: 8px;
        padding: 3px 8px;
        font-size: 10.5px;
    }
    .video-modal {
        padding: 56px 14px 30px;
    }
    .video-modal .modal-close {
        top: -42px;
    }
}
