/* ==============================
   Item Modal Detail Page
   기존 item.html에 영향 주지 않기 위해
   .pp-item-modal-page 내부에서만 적용
============================== */

.pp-item-modal-page {
    width: 100%;
    max-width: 980px;
    margin: 24px auto 40px;
    background: #fff;
    overflow: visible;
}

.pp-item-modal-page * {
    box-sizing: border-box;
}

.pp-item-modal-page .item_area_wd,
.pp-item-modal-page .item_area {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
}

.pp-item-modal-page .item_area {
    padding: 0 24px 64px !important;
}

/* 모달에서는 기존 상세페이지 상단 요소 숨김 */
.pp-item-modal-page .item_area_hd,
.pp-item-modal-page .prev_page,
.pp-item-modal-page .item_area_hd_right,
.pp-item-modal-page .sticky_header,
.pp-item-modal-page .sticky_header_area {
    display: none !important;
}

/* 이미지 공통 */
.pp-item-modal-page img {
    max-width: 100%;
}

.pp-item-modal-page #item_content,
.pp-item-modal-page #item_content .uk-card {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.pp-item-modal-page #item_content img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* ==============================
   Top Product Layout
============================== */

.pp-item-modal-page .pp-modal-top-grid {
    display: flex !important;
    align-items: flex-start;
    gap: 28px;
    margin: 0 !important;
}

.pp-item-modal-page .pp-modal-image-col {
    width: calc(58% - 14px) !important;
    flex: 0 0 calc(58% - 14px);
    padding-left: 0 !important;
}

.pp-item-modal-page .pp-modal-info-col {
    width: calc(42% - 14px) !important;
    flex: 0 0 calc(42% - 14px);
    padding-left: 0 !important;
}

.pp-item-modal-page .item_info_area {
    padding-top: 0;
}

.pp-item-modal-page .item-title {
    word-break: keep-all;
    overflow-wrap: break-word;
    white-space: normal;
    line-height: 1.35;
}

.pp-item-modal-page .item_info_area,
.pp-item-modal-page .item_func_area {
    box-shadow: none;
}

/* ==============================
   Swiper / Thumbnail
============================== */

.pp-item-modal-page .item_info_hd {
    width: 100%;
    overflow: hidden;
    border-radius: 5px;
    margin-top: 0 !important;
}

.pp-item-modal-page .mySwiper {
    width: calc(100% - 1px);
    aspect-ratio: 16 / 9;
    height: auto !important;
    max-height: 420px;
    overflow: hidden;
}

.pp-item-modal-page .mySwiper swiper-slide {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pp-item-modal-page .mySwiper .slide_image,
.pp-item-modal-page .slide_image {
    width: 100%;
    height: 100%;
    max-height: 420px;
    object-fit: cover !important;
    display: block;
}

.pp-item-modal-page .mySwiper2 {
    width: 100%;
    height: fit-content !important;
    max-height: 96px;
    overflow: hidden;
}

.pp-item-modal-page .mySwiper2 swiper-slide {
    width: 126px !important;
    height: auto !important;
    border-radius: 8px;
    overflow: hidden;
    background: #f6f7f9;
    margin-right: 8px !important;
}

.pp-item-modal-page .mySwiper2 .slide_image_s,
.pp-item-modal-page .slide_image_s {
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    display: block;
}

.pp-item-modal-page div.item_info_area{
    padding: 0;
}

/* ==============================
   Modal Sticky Header
   탭 전용
============================== */

.pp-item-modal-page .pp-modal-sticky-header {
    position: sticky;
    top: 0;
    z-index: 80;
    width: 100%;
    margin: 24px 0 24px;
    background: #fff;
    border-radius: 0;
    overflow: hidden !important;
    border-bottom: 1px solid #e8eaf0;
}

/* 모달 sticky에서는 상품 요약 줄 숨김 */
.pp-item-modal-page .pp-modal-sticky-header .sticky_header_top {
    display: none !important;
}

.pp-item-modal-page .pp-modal-sticky-header .sticky_header_body {
    width: 100%;
}

.pp-item-modal-page .pp-modal-sticky-header .sticky_header_bottom {
    width: 100%;
    border-top: 0 !important;
}

.pp-item-modal-page .pp-modal-sticky-header .sticky_nav {
    display: flex !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff;
    overflow: hidden !important;
    flex-wrap: nowrap !important;
}

.pp-item-modal-page .pp-modal-sticky-header .sticky_nav li {
    flex: 1 1 0 !important;
    width: auto !important;
    min-width: 0 !important;
    height: 48px;
    line-height: 48px;
    padding: 0 !important;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #555;
    background: #fff;
    border-bottom: 3px solid transparent;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pp-item-modal-page .pp-modal-sticky-header .sticky_nav li.selected {
    color: #0B318F;
    border-bottom-color: #0B318F;
}

.pp-item-modal-page .pp-modal-sticky-header .sticky_nav li .re_count,
.pp-item-modal-page .pp-modal-sticky-header .sticky_nav li .qa_count {
    display: inline-block;
    font-size: 12px;
    color: inherit;
}

/* ==============================
   Modal Bottom Buy Bar
   PC/모바일 공통 하단 다운로드 / 구매 버튼
   원래 다운로드 버튼이 위로 지나간 뒤 표시
============================== */

.pp-item-modal-page .pp-modal-bottom-buy {
    display: block;
    position: fixed;
    left: 50%;
    transform: translateX(-50%) translateY(16px);
    z-index: 99;
    width: min(460px, calc(100vw - 40px));
    padding: 10px;
    background: #fff;
    box-sizing: border-box;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.pp-item-modal-page.pp-modal-bottom-buy-on .pp-modal-bottom-buy {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.pp-item-modal-page .pp-modal-bottom-buy .sticky_header_top_buy {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    width: 100%;
}

.pp-item-modal-page .pp-modal-bottom-buy .sticky_header_top_buy .uk-button,
.pp-item-modal-page .pp-modal-bottom-buy .sticky_header_top_buy a,
.pp-item-modal-page .pp-modal-bottom-buy .sticky_header_top_buy button {
    height: 48px !important;
    min-width: 0 !important;
    padding: 0 12px !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 5px;
    white-space: nowrap;
    border: 1px solid #e1e1e1;
    background: #fff;
    color: #222;
    box-sizing: border-box;
}

.pp-item-modal-page .pp-modal-bottom-buy .sticky_header_top_buy .purchase {
    flex: 1;
    background: #0B318F !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 5px;
}

.pp-item-modal-page .pp-modal-bottom-buy .sticky_header_top_buy img {
    width: 16px !important;
    height: 16px !important;
    margin: 0 !important;
}

.pp-item-modal-page .pp-modal-bottom-buy .sticky_header_top_buy span {
    color: #0B318F;
    font-weight: 800;
}

.pp-item-modal-page .pp-modal-bottom-buy .sticky_header_top_buy .purchase span {
    color: #fff;
}

/* 하단 버튼 때문에 마지막 콘텐츠가 가려지지 않도록 여백 */
.pp-item-modal-page .item_area {
    padding-bottom: 120px !important;
}

@media (max-width: 768px) {
    .pp-item-modal-page .pp-modal-bottom-buy {
        bottom: 12px;
        width: calc(100vw - 40px);
        max-width: 460px;
    }
}

@media (max-width: 420px) {
    .pp-item-modal-page .pp-modal-bottom-buy {
        width: calc(100vw - 24px);
        bottom: 10px;
        padding: 8px;
    }

    .pp-item-modal-page .pp-modal-bottom-buy .sticky_header_top_buy .uk-button,
    .pp-item-modal-page .pp-modal-bottom-buy .sticky_header_top_buy a,
    .pp-item-modal-page .pp-modal-bottom-buy .sticky_header_top_buy button {
        height: 46px !important;
        font-size: 14px !important;
        padding: 0 10px !important;
        border-radius:5px;
    }

    .pp-item-modal-page .pp-modal-bottom-buy .sticky_header_top_buy .purchase {
        font-size: 14px !important;
    }
}

/* ==============================
   Modal Scroll Anchor
============================== */

.pp-item-modal-page .pp-modal-scroll-anchor {
    display: block;
    width: 100%;
    height: 1px;
    margin: 0;
    padding: 0;
    overflow: visible;
    pointer-events: none;
    opacity: 0;
}

/* ==============================
   Content Sections
============================== */

.pp-item-modal-page #item_content {
    margin-top: 24px;
}

.pp-item-modal-page .detail_tag_section {
    margin-top: 24px;
}

/* ==============================
   Mobile Layout
============================== */

@media (max-width: 768px) {
    .pp-item-modal-page {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        border-radius: 0 !important;
        overflow: visible;
    }


    .pp-item-modal-page .item_area {
        padding: 24px 0px 120px !important;
    }


    .pp-item-modal-page .pp-modal-top-grid {
        display: block !important;
        margin: 0 !important;
    }

    .pp-item-modal-page .pp-modal-image-col,
    .pp-item-modal-page .pp-modal-info-col {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
        padding-left: 0 !important;
    }

    .pp-item-modal-page .pp-modal-info-col {
        margin-top: 10px;
    }

    .pp-item-modal-page .item_info_area {
        padding-top: 0;
    }

    .pp-item-modal-page .item-title {
        font-size: 17px;
        line-height: 1.45;
    }

    .pp-item-modal-page .item_info_a_price {
        font-size: 19px;
    }

    .pp-item-modal-page .mySwiper {
        max-height: none;
    }

    .pp-item-modal-page .mySwiper .slide_image,
    .pp-item-modal-page .slide_image {
        max-height: none;
    }

    .pp-item-modal-page .mySwiper2 {
        height: 78px !important;
        max-height: 78px;
    }

    .pp-item-modal-page .mySwiper2 swiper-slide {
        width: 106px !important;
        /* height: 44px !important; */
    }

    .pp-item-modal-page .pp-modal-sticky-header {
        margin: 16px 0 18px !important;
        border-radius: 0 !important;
    }

    .pp-item-modal-page .pp-modal-sticky-header .sticky_nav li {
        height: 44px !important;
        line-height: 44px !important;
        font-size: 16px !important;
    }

    .pp-item-modal-page .pp-modal-sticky-header .sticky_nav li .re_count,
    .pp-item-modal-page .pp-modal-sticky-header .sticky_nav li .qa_count {
        font-size: 11px;
    }
}

/* 아주 좁은 화면 */
@media (max-width: 420px) {
    .pp-item-modal-page {
        max-width: calc(100vw - 20px);
        margin: 12px auto;
    }

    .pp-item-modal-page .pp-modal-bottom-buy {
        width: calc(100vw - 24px);
        padding: 8px;
    }

    .pp-item-modal-page .pp-modal-bottom-buy .sticky_header_top_buy .uk-button,
    .pp-item-modal-page .pp-modal-bottom-buy .sticky_header_top_buy a,
    .pp-item-modal-page .pp-modal-bottom-buy .sticky_header_top_buy button {
        height: 56px !important;
        font-size: 14px !important;
        padding: 0 10px !important;
    }
}

/* ==============================
   Modal Edge Fixed Bar Override
   모바일: 상단 탭/하단 버튼 화면 끝까지
   PC: 하단 버튼 상세페이지 폭 끝까지
============================== */

/* PC */
@media (min-width: 769px) {
    .pp-item-modal-page .pp-modal-bottom-buy {
        left: 50%;
        bottom: 0;
        width: min(980px, calc(100vw - 48px));
        max-width: 980px;
        transform: translateX(-50%) translateY(16px);
        border-radius: 14px;
    }

    .pp-item-modal-page.pp-modal-bottom-buy-on .pp-modal-bottom-buy {
        transform: translateX(-50%) translateY(0);
    }

    .pp-item-modal-page .pp-modal-bottom-buy .sticky_header_top_buy {
        width: 100%;
    }

    .pp-item-modal-page .pp-modal-bottom-buy .sticky_header_top_buy .purchase {
        flex: 1;
    }
}

/* 모바일 */
@media (max-width: 768px) {
    /*
        상단 탭을 모달 내부 폭이 아니라 실제 화면 끝까지 확장
    */
    .pp-item-modal-page .pp-modal-sticky-header {
        width: 100vw !important;
        margin-left: calc((100vw - 100%) / -2) !important;
        margin-right: calc((100vw - 100%) / -2) !important;
        border-radius: 0 !important;
        border-left: 0 !important;
        border-right: 0 !important;
    }

    /*
        하단 다운로드 버튼도 화면 끝까지
    */
    .pp-item-modal-page .pp-modal-bottom-buy {
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        max-width: none !important;
        transform: translateY(16px) !important;
        border-radius: 0 !important;
        padding: 10px 0 0 !important;
    }

    .pp-item-modal-page.pp-modal-bottom-buy-on .pp-modal-bottom-buy {
        transform: translateY(0) !important;
    }

    .pp-item-modal-page .pp-modal-bottom-buy .sticky_header_top_buy {
        width: 100%;
    }

    .pp-item-modal-page .pp-modal-bottom-buy .sticky_header_top_buy .purchase {
        flex: 1;
    }

    /*
        하단 고정 버튼에 본문이 가리지 않게 여백 확보
    */
    .pp-item-modal-page .item_area {
        padding-bottom: 120px !important;
    }
}

/* =========================================================
   Modal PC Layout - item.html 방식처럼 오른쪽 info sticky
   모바일은 기존 레이아웃 유지
========================================================= */

@media (min-width: 769px) {

    /* iframe 안쪽 실제 상세페이지 폭 확장 */
    .pp-item-modal-page {
        width: 100% !important;
        max-width: 1360px !important;
        margin: 0 auto !important;
        padding: 0 !important;
        background: #fff !important;
        overflow: visible !important;
    }

    .pp-item-modal-page .item_area_wd {
        width: 100% !important;
        max-width: 1360px !important;
        margin: 0 auto !important;
        display: block !important;
    }

    /*
       기존 item.html 느낌:
       왼쪽 콘텐츠 영역 + 오른쪽 상품정보 sticky 영역
    */
    .pp-item-modal-page .item_area {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        padding: 0 0 90px !important;
        display: grid !important;
        grid-template-columns: minmax(0, 810px) minmax(460px, 1fr);
        column-gap: 28px;
        align-items: start;
        box-sizing: border-box;
    }

    /*
       item_area 바로 아래에 있는 요소들은 기본적으로 왼쪽 영역에 배치
       베스트 상품 / 상세정보 / 구매평 / Q&A가 오른쪽 영역 밑으로 깔리지 않게 함
    */
    .pp-item-modal-page .item_area > * {
        grid-column: 1;
        min-width: 0;
    }

    /*
       기존 top grid를 레이아웃 박스로 쓰지 않고
       내부의 이미지/정보 컬럼만 grid에 참여하게 함
    */
    .pp-item-modal-page .pp-modal-top-grid {
        display: contents !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* 왼쪽 이미지 영역 */
    .pp-item-modal-page .pp-modal-image-col {
        grid-column: 1 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding-left: 0 !important;
        margin: 0 !important;
    }

    /* 오른쪽 상품 정보 영역 */
    .pp-item-modal-page .pp-modal-info-col {
        grid-column: 2 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding-left: 0 !important;
        margin: 0 !important;

        position: sticky;
        top: 24px;
        align-self: start;
        z-index: 20;
        background: #fff;
    }

    .pp-item-modal-page .pp-modal-info-col .item_info_area {
        padding-top: 0 !important;
        background: #fff;
    }

    .pp-item-modal-page .pp-modal-info-col .item_func_area {
        margin-top: 24px !important;
        background: #fff;
    }

    .pp-item-modal-page .pp-modal-info-col .item_func_area > div {
        width: 100%;
        gap: 10px;
    }

    .pp-item-modal-page .pp-modal-info-col .item_func_area .uk-button,
    .pp-item-modal-page .pp-modal-info-col .item_func_area a.uk-button,
    .pp-item-modal-page .pp-modal-info-col .item_func_area button.uk-button {
        height: 58px !important;
        border-radius: 8px !important;
        font-size: 15px !important;
        font-weight: 800 !important;
    }

    .pp-item-modal-page .pp-modal-info-col .item_func_area .purchase {
        background: #0B318F !important;
        color: #fff !important;
    }

    /*
       왼쪽 이미지 크기 item.html 느낌으로 확장
    */
    .pp-item-modal-page .item_info_hd,
    .pp-item-modal-page .mySwiper {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }

    .pp-item-modal-page .mySwiper {
        aspect-ratio: 16 / 9;
        height: auto !important;
        max-height: none !important;
    }

    .pp-item-modal-page .mySwiper .slide_image,
    .pp-item-modal-page .slide_image {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        display: block;
    }

    /*
       작은 썸네일은 Swiper 계산을 건드리지 않고 이미지만 프레임에 맞춤
    */
    .pp-item-modal-page .mySwiper2 {
        width: 100% !important;
        max-width: 100% !important;
        margin-top: 12px !important;
        overflow: hidden !important;
    }

    .pp-item-modal-page .mySwiper2 .slide_image_s,
    .pp-item-modal-page .slide_image_s {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        display: block;
    }
}

/* ==============================
   Modal Inner Top Spacing
   iframe 안쪽 상단 여백 줄이기
============================== */

@media (min-width: 769px) {
    .pp-item-modal-page {
        margin-top: 0 !important;
    }

    .pp-item-modal-page .item_area_wd,
    .pp-item-modal-page .item_area {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }

    .pp-item-modal-page .pp-modal-image-col,
    .pp-item-modal-page .pp-modal-info-col {
        padding-top: 8px !important;
    }
}

.pp-item-modal-page {
    margin-top: 0 !important;
}

/* ==============================
   Modal Bottom Buy Button Ratio
   기존 sticky_header 버튼 비율처럼 조정
============================== */

@media (max-width: 768px) {
    .pp-item-modal-page .pp-modal-bottom-buy .sticky_header_top_buy {
        display: flex !important;
        align-items: center;
        gap: 10px;
        width: 100%;
    }

    /* 장바구니 / 내상품 / 리뷰작성 같은 보조 버튼 */
    .pp-item-modal-page .pp-modal-bottom-buy .sticky_header_top_buy .uk-button:not(.purchase),
    .pp-item-modal-page .pp-modal-bottom-buy .sticky_header_top_buy a:not(.purchase),
    .pp-item-modal-page .pp-modal-bottom-buy .sticky_header_top_buy button:not(.purchase) {
        flex: 0 0 28% !important;
        width: 28% !important;
        min-width: 0 !important;
        max-width: 180px;
    }

    /* 구매하기 / 다운로드 메인 버튼 */
    .pp-item-modal-page .pp-modal-bottom-buy .sticky_header_top_buy .purchase {
        flex: 1 1 auto !important;
        width: auto !important;
        min-width: 0 !important;
    }

    /* 버튼이 1개만 있을 때는 전체 너비 사용 */
    .pp-item-modal-page .pp-modal-bottom-buy .sticky_header_top_buy .uk-button:only-child,
    .pp-item-modal-page .pp-modal-bottom-buy .sticky_header_top_buy a:only-child,
    .pp-item-modal-page .pp-modal-bottom-buy .sticky_header_top_buy button:only-child {
        flex: 1 1 100% !important;
        width: 100% !important;
        max-width: none !important;
    }
}

/* =========================================================
   AJAX 모달 단계별 활성화
   - 상단 탭 활성화
   - 하단 고정 구매 버튼 활성화
========================================================= */

.pp-item-modal-page .pp-modal-sticky-header {
    display: block !important;
}

.pp-item-modal-page .pp-modal-bottom-buy {
    display: block !important;
}

/* =========================================================
   AJAX 모달 하단 고정 구매 버튼 최종 보정
========================================================= */

/*
 * 바깥 상품 모달보다 위,
 * 다운로드·결제·마스터팩 팝업보다는 아래
 */
.pp-item-modal-page .pp-modal-bottom-buy {
    z-index: 110 !important;
    bottom: 0 !important;
}

/* PC */
@media (min-width: 769px) {
    .pp-item-modal-page .pp-modal-bottom-buy {
        left: 50% !important;
        width: min(980px, calc(100vw - 160px)) !important;
        max-width: 980px !important;
        padding: 10px !important;
        border: 1px solid #edf0f5;
        border-bottom: 0;
        border-radius: 12px 12px 0 0 !important;
        transform:
            translateX(-50%)
            translateY(16px) !important;
    }

    .pp-item-modal-page.pp-modal-bottom-buy-on
    .pp-modal-bottom-buy {
        transform:
            translateX(-50%)
            translateY(0) !important;
    }
}

/* 모바일 */
@media (max-width: 768px) {
    .pp-item-modal-page .pp-modal-bottom-buy {
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        max-width: none !important;
        padding:
            10px
            10px
            calc(10px + env(safe-area-inset-bottom)) !important;
        border-radius: 0 !important;
        transform: translateY(16px) !important;
    }

    .pp-item-modal-page.pp-modal-bottom-buy-on
    .pp-modal-bottom-buy {
        transform: translateY(0) !important;
    }
}

/* =========================================================
   AJAX 상품 모달 UI
   기존 item.css 디자인과 동일하게 적용
========================================================= */

/* ---------------------------------------------------------
   PC 전체 구조
--------------------------------------------------------- */

@media (min-width: 769px) {
    .pp-item-modal-page {
        width: 100% !important;
        max-width: 1314px !important;
        margin: 0 auto !important;
        padding: 0 !important;
        background: #fff;
    }

    .pp-item-modal-page .item_area_wd {
        display: block !important;
        width: 100% !important;
        max-width: 1314px !important;
        margin: 0 auto !important;
    }

    .pp-item-modal-page .item_area {
        display: grid !important;
        grid-template-columns: minmax(0, 860px) minmax(0, 1fr);
        column-gap: 30px;
        align-items: start;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 0 120px !important;
    }

    .pp-item-modal-page .item_area > * {
        grid-column: 1;
        min-width: 0;
    }

    .pp-item-modal-page .pp-modal-top-grid {
        display: contents !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .pp-item-modal-page .pp-modal-image-col {
        grid-column: 1 !important;
        width: 100% !important;
        max-width: 860px !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 24px 0 0 !important;
    }

    .pp-item-modal-page .pp-modal-info-col {
        grid-column: 2 !important;
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 24px 0 0 30px !important;

        position: sticky;
        top: 0;
        align-self: start;
        z-index: 20;
        background: #fff;
    }
}

/* ---------------------------------------------------------
   이미지·Swiper
--------------------------------------------------------- */

.pp-item-modal-page .item_info_hd {
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.pp-item-modal-page swiper-container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.pp-item-modal-page swiper-slide {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #fff;
    text-align: center;
}

.pp-item-modal-page swiper-slide::before {
    content: "";
    display: block;
    padding-bottom: 56.25%;
}

.pp-item-modal-page swiper-slide img {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
}

.pp-item-modal-page .mySwiper {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.pp-item-modal-page .mySwiper .slide_image {
    width: 100% !important;
    height: 100% !important;
    border: 1px solid #cdcdcd;
    border-radius: 10px;
    object-fit: cover !important;
}

.pp-item-modal-page .mySwiper2 {
    width: 100% !important;
    height: auto !important;
    margin-top: 0 !important;
    padding: 10px 0 !important;
    overflow: hidden;
}

.pp-item-modal-page .mySwiper2 swiper-slide {
    width: 25%;
    height: auto !important;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 5px;
    background: #fff;
    opacity: 0.6;
}

.pp-item-modal-page .mySwiper2 swiper-slide.swiper-slide-thumb-active {
    border-color: #636363;
    opacity: 1;
}

.pp-item-modal-page .mySwiper2 .slide_image_s {
    width: 100% !important;
    height: 100% !important;
    border: 1px solid #cdcdcd;
    border-radius: 5px;
    object-fit: cover !important;
}

.pp-item-modal-page swiper-container::part(button-next),
.pp-item-modal-page swiper-container::part(button-prev) {
    display: none;
    height: calc(var(--swiper-navigation-size) + 10px);
    color: #fff;
    fill: currentColor;
    stroke: #3d3d3d;
    stroke-width: 0.5;
}

.pp-item-modal-page swiper-container:hover::part(button-next),
.pp-item-modal-page swiper-container:hover::part(button-prev) {
    display: block;
}

/* ---------------------------------------------------------
   오른쪽 상품 정보
--------------------------------------------------------- */

.pp-item-modal-page .item_info_area {
    margin: 0;
    padding: 30px 0 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.pp-item-modal-page .profile_area {
    margin: 0;
    padding: 0;
}

.pp-item-modal-page .seller_info {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    margin: 0;
}

.pp-item-modal-page .seller_image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    overflow: hidden;
    border-radius: 24px;
}

.pp-item-modal-page .seller_profile_img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
}

.pp-item-modal-page .seller_nick_name {
    color: #666;
    font-size: 14px;
    font-weight: 700;
    line-height: 24px;
}

.pp-item-modal-page .item_title_area {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between;
    gap: 4px;
    width: 100%;
    margin-top: 8px;
}

.pp-item-modal-page .item-title {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    color: #333;
    font-size: 22px;
    font-weight: 700;
    line-height: 32px;
    word-break: keep-all;
    overflow-wrap: break-word;
    white-space: normal;
}

/* 공유 버튼 */
.pp-item-modal-page .share_area {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    margin-left: 4px;
    border: 1px solid #e1e1e1;
    border-radius: 5px;
}

.pp-item-modal-page .share_document {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: #333;
    cursor: pointer;
}

.pp-item-modal-page .share_document svg {
    width: 20px;
    height: 20px;
}

.pp-item-modal-page .share_popup {
    position: absolute;
    top: 34px;
    right: 0;
    z-index: 100;
    display: none;
    margin: auto;
}

.pp-item-modal-page .share_popup ul.share {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 12px 16px;
    border: 1px solid #e1e1e1;
    border-radius: 5px;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.pp-item-modal-page .share_popup ul.share li {
    width: 100%;
}

.pp-item-modal-page .share_popup ul.share li a {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
}

/* 다운로드·별점 */
.pp-item-modal-page .item_info_download_rating {
    display: flex !important;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
}

.pp-item-modal-page .item_info_download {
    color: #333;
    font-size: 14px;
    font-weight: 700;
}

.pp-item-modal-page .item_info_rating {
    color: #000;
    font-size: 14px;
}

.pp-item-modal-page .star_rate {
    color: #ffab00;
}

/* 가격 */
.pp-item-modal-page .item_info_a_price {
    margin-top: 8px;
    padding: 0;
    border: 0;
    color: #333;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.4;
}

/* ---------------------------------------------------------
   구성·키워드·색상 정보
--------------------------------------------------------- */

.pp-item-modal-page .item_info_table {
    width: 100%;
    margin: 10px 0;
    border: 0;
    border-collapse: collapse;
}

.pp-item-modal-page .item_info_table tr {
    border: 0;
}

.pp-item-modal-page .item_info_table td {
    border: 0;
}

.pp-item-modal-page .item_info_table td.configuration {
    position: relative;
    padding: 7px 0;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    vertical-align: top;
    white-space: nowrap;
}

.pp-item-modal-page .item_info_table td.title {
    width: 55px;
    padding-right: 8px;
}

.pp-item-modal-page .item_info_table .benefit,
.pp-item-modal-page .item_info_table .benefit_title {
    padding: 7px 0;
    color: #dd0c31;
    font-size: 14px;
    vertical-align: top;
}

.pp-item-modal-page .item_info_table .benefit_title {
    width: 55px;
    font-weight: 400;
    white-space: nowrap;
}

/* 기존 item.css와 동일하게 키워드 행 숨김 */
.pp-item-modal-page tr.keyword_wrap {
    display: none;
}

/* 색상 옵션 */
.pp-item-modal-page .color_option_circle_area {
    padding-top: 8px;
    padding-bottom: 8px;
}

.pp-item-modal-page .item_color_label {
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

.pp-item-modal-page .item_color_label .js-selected-color-name {
    color: #111;
    font-weight: 700;
}

.pp-item-modal-page .color_option_circle_area .item_color_option_list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.pp-item-modal-page .color_option_circle_area .item_color_option {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    min-height: 0;
    padding: 0;
    border: 1px solid #d9d9d9;
    border-radius: 50%;
    background: #fff;
    box-shadow: none;
    cursor: pointer;
}

.pp-item-modal-page .color_option_circle_area .item_color_chip {
    display: block;
    width: 20px;
    height: 20px;
    border: 1px solid #e1e1e1;
    border-radius: 50%;
}

.pp-item-modal-page .color_option_circle_area .item_color_option.selected {
    border-color: #111;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.08);
}

.pp-item-modal-page .color_option_circle_area .item_color_option:hover {
    border-color: #111;
}

/* ---------------------------------------------------------
   장바구니·구매·다운로드 버튼
--------------------------------------------------------- */

.pp-item-modal-page .item_func_area {
    margin-top: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.pp-item-modal-page .item_func_area > div {
    display: flex !important;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.pp-item-modal-page .item_func_area > div button,
.pp-item-modal-page .item_func_area > div a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: auto;
    height: 56px !important;
    min-width: 0;
    margin: 0 !important;
    padding: 0 12px !important;
    border: 1px solid #e1e1e1 !important;
    border-radius: 5px !important;
    background: #fff !important;
    color: #333 !important;
    font-size: 12px !important;
    line-height: 1 !important;
    text-decoration: none !important;
}

.pp-item-modal-page .item_func_area > div button span,
.pp-item-modal-page .item_func_area > div a span {
    display: inline-block;
    color: #0b318f;
    font-size: 14px;
    font-weight: 700;
}

.pp-item-modal-page .item_func_area > div .purchase {
    flex: 1 1 auto;
    width: calc(100% - 82px);
    border: 0 !important;
    background: #0b318f !important;
    color: #fff !important;
    font-size: 16px !important;
    font-weight: 600 !important;
}

.pp-item-modal-page .item_func_area > div .purchase span {
    color: #fff;
}

.pp-item-modal-page .item_func_area > div .uk-button:only-child,
.pp-item-modal-page .item_func_area > div a:only-child,
.pp-item-modal-page .item_func_area > div button:only-child {
    flex: 1 1 100%;
    width: 100%;
}

.pp-item-modal-page .download_icon {
    width: 16px !important;
}

.pp-item-modal-page .cart_icon {
    width: 22px !important;
}

.pp-item-modal-page .wallet_icon {
    width: 16px !important;
}

/* ---------------------------------------------------------
   상세 탭
--------------------------------------------------------- */

.pp-item-modal-page .pp-modal-sticky-header {
    background: #fff;
}

.pp-item-modal-page .pp-modal-sticky-header .sticky_nav {
    margin: 0 !important;
    padding: 0 !important;
}

.pp-item-modal-page .pp-modal-sticky-header ul.sticky_nav li {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: auto !important;
    padding: 8px 0 !important;
    border-bottom: 1px solid #e1e1e1;
    background: #fff;
    color: #333;
    font-size: 14px !important;
    font-weight: 400;
    line-height: 1.4 !important;
    cursor: pointer;
}

.pp-item-modal-page .pp-modal-sticky-header ul.sticky_nav li.selected {
    border-bottom: 2px solid #333;
    color: #333;
    font-weight: 700;
}

.pp-item-modal-page .pp-modal-sticky-header .re_count,
.pp-item-modal-page .pp-modal-sticky-header .qa_count {
    color: #333;
}

/* ---------------------------------------------------------
   상세 태그
--------------------------------------------------------- */

.pp-item-modal-page .detail_tag_section {
    width: 100%;
}

.pp-item-modal-page .detail_tag_list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.pp-item-modal-page .detail_tag_chip {
    display: inline-flex;
    align-items: center;
    height: 30px;
    padding: 0 13px;
    border: 1px solid #e5e5e5;
    border-radius: 999px;
    background: #fff;
    color: #666;
    font-size: 13px;
    line-height: 1;
    text-decoration: none;
}

.pp-item-modal-page .detail_tag_chip:hover {
    background: #f1f1f2;
    color: #666;
    text-decoration: none;
}

/* =========================================================
   모바일
========================================================= */

@media (max-width: 768px) {
    .pp-item-modal-page {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }

    .pp-item-modal-page .item_area {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 0 120px !important;
    }

    .pp-item-modal-page .pp-modal-top-grid {
        display: block !important;
        margin: 0 !important;
    }

    .pp-item-modal-page .pp-modal-image-col,
    .pp-item-modal-page .pp-modal-info-col {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding-left: 0 !important;
        position: static !important;
    }

    .pp-item-modal-page .pp-modal-image-col {
        padding-top: 0 !important;
    }

    .pp-item-modal-page .pp-modal-info-col {
        padding-top: 0 !important;
    }

    .pp-item-modal-page .item_info_hd {
        margin-top: 0 !important;
    }

    .pp-item-modal-page .mySwiper .slide_image,
    .pp-item-modal-page .mySwiper2 .slide_image_s {
        object-fit: contain !important;
        background: #fff;
    }

    .pp-item-modal-page .item_info_area {
        padding: 20px 0 !important;
    }

    .pp-item-modal-page .item-title {
        font-size: 17px;
        line-height: 1.45;
    }

    .pp-item-modal-page .item_info_a_price {
        font-size: 17px;
    }

    .pp-item-modal-page .detail_tag_chip {
        padding: 0 10px;
        font-size: 12px;
    }

    .pp-item-modal-page swiper-container::part(button-next),
    .pp-item-modal-page swiper-container::part(button-prev) {
        display: block;
    }
}

/* =========================================================
   AJAX 상품 모달
   베스트 상품 / 최근 업데이트 상품
========================================================= */

.pp-item-modal-page .best_item_area {
    width: 100%;
    margin-top: 34px;
    overflow: hidden;
}

.pp-item-modal-page .best_item_title_area {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.pp-item-modal-page .best_item_title {
    color: #333;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
}

.pp-item-modal-page .best_item_prev_next_area {
    flex: 0 0 auto;
}

.pp-item-modal-page .best_item_prev_next_button_area {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pp-item-modal-page .best_item_prev_next_button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid #e1e1e1;
    border-radius: 5px;
    background: #fff;
    color: #555;
    cursor: pointer;
}

.pp-item-modal-page .best_item_prev_next_button svg,
.pp-item-modal-page .best_item_prev_next_button i {
    width: 15px;
    height: 15px;
    font-size: 14px;
}

.pp-item-modal-page .best_item_list_area {
    width: 100%;
    overflow: hidden;
}

/* 베스트 / 최근 상품 공통 목록 */
.pp-item-modal-page .best_item_list,
.pp-item-modal-page .recent_item_list {
    display: flex;
    align-items: stretch;
    gap: 16px;
    width: max-content;
    min-width: 100%;
    transition: transform 0.25s ease;
}

/* 상품 카드 */
.pp-item-modal-page .best_item_list > a.item,
.pp-item-modal-page .recent_item_list > a.item {
    display: block;
    width: calc((860px - 32px) / 3);
    max-width: 276px;
    flex: 0 0 calc((100% - 32px) / 3);
    overflow: hidden;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    background: #fff;
    color: inherit;
    text-decoration: none;
}

.pp-item-modal-page .best_item_list > a.item:hover,
.pp-item-modal-page .recent_item_list > a.item:hover {
    color: inherit;
    text-decoration: none;
}

.pp-item-modal-page .best_item_list .uk-card,
.pp-item-modal-page .recent_item_list .uk-card {
    width: 100%;
    box-shadow: none;
}

/* 썸네일 */
.pp-item-modal-page .best_item_area .item_image_area {
    position: relative;
    width: 100%;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #f5f5f5;
}

.pp-item-modal-page .best_item_area .item_image_area > img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
}

/* 최근 업데이트 상품 실제 이미지 */
.pp-item-modal-page .best_item_area .recent_thumb_frame {
    background: #fff;
}

.pp-item-modal-page .best_item_area .recent_thumb_img {
    object-fit: contain !important;
    object-position: center;
}

/* 북마크 */
.pp-item-modal-page .best_item_area .bookmark {
    position: absolute;
    right: 10px;
    bottom: 9px;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 29px;
    cursor: pointer;
}

.pp-item-modal-page .best_item_area .bookmark img {
    display: block;
    width: 22px;
    height: auto;
}

/* 다운로드 수 / 슬라이드 수 */
.pp-item-modal-page .best_item_area .item_download_slide_area {
    position: absolute;
    left: 9px;
    bottom: 9px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 5px;
    max-width: calc(100% - 50px);
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: #555;
    font-size: 11px;
    line-height: 1;
}

.pp-item-modal-page .best_item_area .item_download_count,
.pp-item-modal-page .best_item_area .item_slide_count {
    white-space: nowrap;
}

.pp-item-modal-page .best_item_area .dot {
    color: #999;
}

/* 카드 하단 */
.pp-item-modal-page .best_item_area .item_bottom {
    padding: 12px 13px 14px;
}

.pp-item-modal-page .best_item_area .item_bottom_center {
    min-width: 0;
}

.pp-item-modal-page .best_item_area .item_title {
    overflow: hidden;
    display: -webkit-box;
    min-height: 42px;
    color: #333;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.pp-item-modal-page .best_item_area .item_seller_info_area {
    margin-top: 7px;
}

.pp-item-modal-page
.best_item_area
.item_seller_info_nick_name_price_area {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    color: #777;
    font-size: 12px;
}

.pp-item-modal-page .best_item_area .item_seller_nick_name,
.pp-item-modal-page .best_item_area .item_sales {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pp-item-modal-page .best_item_area .item_add_benefit_area {
    margin-top: 6px;
}

.pp-item-modal-page .best_item_area .item_add_benefit {
    color: #dd0c31;
    font-size: 11px;
    font-weight: 600;
}

/* =========================================================
   모바일
========================================================= */

@media (max-width: 768px) {
    .pp-item-modal-page .best_item_area {
        width: 100%;
        margin-top: 28px;
        padding: 0;
        overflow: visible;
    }

    .pp-item-modal-page .best_item_title_area {
        margin-bottom: 12px;
    }

    .pp-item-modal-page .best_item_title {
        font-size: 17px;
    }

    /*
     * 모바일에서는 직접 스와이프할 수 있으므로
     * 이전·다음 화살표를 숨긴다.
     */
    .pp-item-modal-page .best_item_prev_next_area {
        display: none;
    }

    .pp-item-modal-page .best_item_list_area {
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scroll-behavior: smooth;
        overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .pp-item-modal-page .best_item_list_area::-webkit-scrollbar {
        display: none;
    }

    .pp-item-modal-page .best_item_list,
    .pp-item-modal-page .recent_item_list {
        display: flex !important;
        align-items: stretch;
        gap: 10px;
        width: max-content !important;
        min-width: 0 !important;
        transform: none !important;
        transition: none !important;
    }

    .pp-item-modal-page .best_item_list > a.item,
    .pp-item-modal-page .recent_item_list > a.item {
        width: min(62vw, 250px) !important;
        max-width: 250px !important;
        flex: 0 0 min(62vw, 250px) !important;
        scroll-snap-align: start;
    }

    .pp-item-modal-page .best_item_area .item_bottom {
        padding: 10px 11px 12px;
    }

    .pp-item-modal-page .best_item_area .item_title {
        min-height: 38px;
        font-size: 13px;
    }

    .pp-item-modal-page
    .best_item_area
    .item_seller_info_nick_name_price_area {
        font-size: 11px;
    }

    .pp-item-modal-page .best_item_area .item_download_slide_area {
        left: 7px;
        bottom: 7px;
        font-size: 10px;
    }

    .pp-item-modal-page .best_item_area .bookmark {
        right: 7px;
        bottom: 6px;
    }
}

/* =========================================================
   베스트상품 / 최근상품 PC 가로 스크롤 활성화
========================================================= */

.pp-item-modal-page .best_item_list_area {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-behavior: smooth;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.pp-item-modal-page .best_item_list_area::-webkit-scrollbar {
    display: none;
}

/*
 * 기존 JS에서 transform을 넣더라도
 * PC 가로 스크롤과 충돌하지 않도록 초기화
 */
.pp-item-modal-page .best_item_list,
.pp-item-modal-page .recent_item_list {
    width: max-content !important;
    min-width: 100% !important;
}

/* =========================================
   모달 상단 여백/선 정리
========================================= */
.pp-item-modal-page,
.pp-item-modal-page .item_area_wd,
.pp-item-modal-page .item_area,
.pp-item-modal-page .pp-modal-top-grid,
.pp-item-modal-page .item_info_area,
.pp-item-modal-page .item_func_area {
    border-top: 0 !important;
    box-shadow: none !important;
}

.pp-item-modal-page .item_area {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* =========================================
   오른쪽 버튼 영역 정리
========================================= */
@media (min-width: 769px) {
    .pp-item-modal-page .pp-modal-info-col .item_func_area > div {
        display: flex !important;
        align-items: stretch !important;
        gap: 10px !important;
        flex-wrap: nowrap !important;
    }

    .pp-item-modal-page .pp-modal-info-col .item_func_area .insert_cart {
        flex: 0 0 118px !important;
        width: 118px !important;
        min-width: 118px !important;
    }

    .pp-item-modal-page .pp-modal-info-col .item_func_area .purchase {
        flex: 1 1 auto !important;
        min-width: 0 !important;
    }

    .pp-item-modal-page .pp-modal-info-col .item_func_area .uk-button,
    .pp-item-modal-page .pp-modal-info-col .item_func_area a.uk-button,
    .pp-item-modal-page .pp-modal-info-col .item_func_area button.uk-button {
        white-space: nowrap !important;
        word-break: keep-all !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .pp-item-modal-page .pp-modal-info-col .item_func_area .insert_cart span {
        white-space: nowrap !important;
        word-break: keep-all !important;
    }
    
}
/* 모바일 메인 슬라이드 좌우 화살표 숨김 */
@media (max-width: 768px) {
    .pp-item-modal-page
    .mySwiper::part(button-prev),

    .pp-item-modal-page
    .mySwiper::part(button-next) {
        display: none !important;
    }
}

/* 모바일 장바구니 버튼 한 줄 고정 */
@media (max-width: 768px) {
    .pp-item-modal-page
    .item_func_area
    .insert_cart {
        flex: 0 0 96px !important;
        width: 96px !important;
        min-width: 96px !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;

        padding: 0 10px !important;

        white-space: nowrap !important;
        word-break: keep-all !important;
    }

    .pp-item-modal-page
    .item_func_area
    .insert_cart span {
        display: inline-block !important;
        white-space: nowrap !important;
        word-break: keep-all !important;
        line-height: 1 !important;
        font-size: 14px !important;
    }

    .pp-item-modal-page
    .item_func_area
    .insert_cart img {
        flex: 0 0 auto !important;
        width: 20px !important;
        height: 20px !important;
    }

    .pp-item-modal-page
    .item_func_area
    .purchase {
        flex: 1 1 auto !important;
        min-width: 0 !important;
    }
}

/* =========================================================
   상품 모달 메인 썸네일 16:9 최종 고정
========================================================= */

.pp-item-modal-page .item_info_hd {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
}

/* Swiper 자체를 정확한 16:9로 */
.pp-item-modal-page .mySwiper {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    aspect-ratio: 16 / 9 !important;
    overflow: hidden !important;
}

/* 각 슬라이드도 16:9 영역을 꽉 채움 */
.pp-item-modal-page .mySwiper swiper-slide {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;

    overflow: hidden !important;
}

/* 기존 비율 생성용 가상 요소 제거 */
.pp-item-modal-page .mySwiper swiper-slide::before {
    display: none !important;
    content: none !important;
    padding: 0 !important;
}

/* 실제 이미지 */
.pp-item-modal-page .mySwiper .slide_image {
    position: static !important;

    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;

    margin: 0 !important;

    object-fit: cover !important;
    object-position: center !important;

    border-radius: 10px;
}