@charset "utf-8";

/* =========================================================
   쇼룸 공통 세팅
========================================================= */
body.showroom-mode,
html.showroom-mode {
    overflow: hidden;
    height: 100%;
}

.showroom-overlay {
    background: #212121;
    overflow: hidden;
    height: 100vh;
    position: relative;
}

/* =========================================================
   쇼룸 공통 헤더
========================================================= */

#header {
    display: none !important;
}

.showroom-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: 70px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
}

.showroom-header-inner {
    max-width: 100%;
    height: 100%;
    margin: 0 auto;
    padding: 0 140px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
}

.showroom-header .sh-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.showroom-header .sh-code {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

.showroom-header .sh-price {
    font-size: 14px;
    font-weight: 600;
    color: #facc15;
}

.showroom-header .sh-toggle {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.showroom-header .sh-toggle-btn {
    min-width: 100px;
    height: 36px;
    padding: 0 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 500;
}

.showroom-header .sh-toggle-btn.active {
    background: #fff;
    color: #212121;
}

.showroom-header .sh-toggle-btn .icon-pc,
.showroom-header .sh-toggle-btn .icon-mobile {
    width: 18px;
    height: 18px;
    display: block;
    background-size: contain;
    background-repeat: no-repeat;
    flex-shrink: 0;
}

/* PC 버튼 아이콘 */
.showroom-header .sh-toggle-btn .icon-pc {
    background-image: url('/template-market/showroom/assets/images/icon-desktop-w.svg');
}

.showroom-header .sh-toggle-btn.active .icon-pc {
    background-image: url('/template-market/showroom/assets/images/icon-desktop-b.svg');
}

/* Mobile 버튼 아이콘 */
.showroom-header .sh-toggle-btn .icon-mobile {
    background-image: url('/template-market/showroom/assets/images/icon-mobile-w.svg');
}

.showroom-header .sh-toggle-btn.active .icon-mobile {
    background-image: url('/template-market/showroom/assets/images/icon-mobile-b.svg');
}

/* 닫기 버튼 아이콘 */
.showroom-header .sh-action-btn .icon-close {
    width: 18px;
    height: 18px;
    display: block;
    background-image: url('/template-market/showroom/assets/images/icon-close.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.showroom-header .sh-toggle-btn .sh-toggle-text {
    display: block;
    line-height: 1;
}


.showroom-header .sh-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.showroom-header .sh-action-btn {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.showroom-header .sh-action-btn {
    position: relative;
}

.showroom-header .sh-tooltip {
    position: absolute;
    bottom: -34px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
}

.showroom-header .sh-action-btn:hover .sh-tooltip,
.showroom-header .sh-action-btn:focus-visible .sh-tooltip {
    opacity: 1;
}

.showroom-overlay .showroom-view {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    margin-top: 70px;
}

#showroomFrame {
    width: 1920px;
    height: 100vh;
    border: 0;
    transition: width 0.3s ease;
}

.showroom-view.is-mobile #showroomFrame {
    width: 460px;
    border-radius: 16px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* =========================================================
   쇼룸 iframe 뷰
========================================================= */
.showroom-view {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.showroom-view iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}


/* =========================================================
   쇼룸 플로팅 바
========================================================= */
.showroom-floating {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    z-index: 1000;
}

.showroom-floating-inner {
    width: 680px;
    height: 88px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    background: rgba(25, 25, 25, .6);
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
}

.showroom-floating .sf-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.showroom-floating .sf-code {
    font-size: 14px;
    font-weight: 600;
    color: #d6c2a5;
}

.showroom-floating .sf-price {
    display: flex;
    align-items: center;
    gap: 10px;
}

.showroom-floating .sf-origin {
    font-size: 14px;
    color: #9a9a9a;
    text-decoration: line-through;
    display: none;
}

.showroom-floating .sf-current {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
}

.showroom-floating .sf-badge {
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
    background: #e60000;
    padding: 4px 8px;
    border-radius: 6px;
    display: none;
}

.showroom-floating.is-discount .sf-origin,
.showroom-floating.is-discount .sf-badge {
    display: inline-block;
}

/* -----------------------------------------
   Actions
----------------------------------------- */
.showroom-floating .sf-actions {
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

.showroom-floating .sf-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
}

/* 아이콘 원형 영역 */
.showroom-floating .ic {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #667080;
}

.showroom-floating .sf-icon {
    width: 20px;
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.showroom-floating .sf-btn.sf-like .sf-icon {
    background-image: url('/template-market/showroom/assets/images/icon-like.svg');
}

.showroom-floating .sf-btn.sf-archive .sf-icon {
    background-image: url('/template-market/showroom/assets/images/icon-archive.svg');
}

.showroom-floating .sf-btn.sf-tempalte .sf-icon {
    background-image: url('/template-market/showroom/assets/images/icon-tempalte.svg');
}

.showroom-floating .sf-btn.sf-consult .sf-icon {
    background-image: url('/template-market/showroom/assets/images/icon-consult.svg');
}

.showroom-floating .sf-btn.sf-like.active .sf-icon {
    background-image: url('/template-market/showroom/assets/images/icon-like-fill.svg');
}

/* 상담 버튼 강조 */
.showroom-floating .sf-consult .ic {
    background: #2f6dd5;
}


/* 라벨 */
.showroom-floating .sf-label {
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
}

/* 찜 카운트 배지 (아이콘 기준) */
.showroom-floating .sf-count {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: #e60000;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.showroom-floating .sf-count:empty {
    display: none;
}

/* =========================================================
   미디어 쿼리
========================================================= */

@media (max-width: 768px) {
    .showroom-header-inner {
        padding: 0 20px;
    }
    
    .showroom-floating {
        width: 96%;
    }
    
    .showroom-floating-inner {
        width: 100%;
    }
    
    .showroom-view.is-mobile #showroomFrame {
        width: 100%;
    }
}

@media (max-width: 500px) {
    .showroom-header .sh-toggle {
        display: none;
    }
    
    .showroom-header .sh-actions {
        align-items: flex-end;
        justify-content: flex-end;
    }
}
