@charset "utf-8";

/**
 * 상품 상세 — Tailwind로 넣기 어려운 부분만 유지
 * - 갤러리 슬라이드 transform / touch
 * - get_it_thumbnail() 출력 img
 * - JS 토글 상태 (.is-active, .is-wishlist)
 * - 주문 버튼 등 기존 #sit_* float 해제
 */

#sit {
    overflow: hidden;
}

/* 슬라이드 트랙 — JS가 transform 제어 */
.shop-item-gallery__track {
    transition: transform 0.35s ease;
    will-change: transform;
    touch-action: pan-y;
}

.shop-item-gallery__slide img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

.shop-item-gallery__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.shop-item-gallery__dot.is-active {
    background-color: #003281;
}

.shop-item-gallery__thumb.is-active {
    border-color: rgba(0, 50, 129, 0.45);
    box-shadow: 0 0 0 1px rgba(0, 50, 129, 0.25);
}

.shop-item-info__wish.is-wishlist {
    color:var(--color-primary);
}

/* ----- 주문 영역 (피그마 12:2111) — float/고정폭 해제 ----- */
.shop-item-order #sit_sel_option h3 {
    position: static;
    font-size: inherit;
    line-height: inherit;
    overflow: visible;
}

.shop-item-order #sit_sel_option .sound_only {
    position: absolute;
    font-size: 0;
    line-height: 0;
    overflow: hidden;
}

.shop-item-order #sit_opt_added {
    margin: 0;
    padding: 0;
    list-style: none;
}

.shop-item-order #sit_sel_option li.sit_opt_list,
.shop-item-order #sit_sel_option li.sit_spl_list {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 0;
    padding: 0.75rem 0;
    border: 0;
    border-bottom: 1px solid #e5e5e5;
    background: #fff;
}

.shop-item-order #sit_sel_option li:after {
    display: none;
    content: none;
}

.shop-item-order #sit_sel_option .opt_name {
    margin: 0;
    font-weight: 400;
    line-height: 1.25;
}

.shop-item-order #sit_sel_option .sit_opt_subj {
    display: block;
    color: rgba(0, 0, 0, 0.6);
    font-size: 0.75rem; /* 12px */
    font-weight: 400;
    line-height: 1.25;
    word-break: break-all;
}

.shop-item-order #sit_sel_option .opt_count {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.shop-item-order #sit_sel_option .opt_count:after {
    display: none;
    content: none;
}

.shop-item-order__qty {
    display: inline-flex;
    align-items: stretch;
    overflow: hidden;
    border: 1px solid #afafaf;
    border-radius: 2px;
    background: #fff;
}

.shop-item-order #sit_sel_option .sit_qty_minus,
.shop-item-order #sit_sel_option .sit_qty_plus {
    float: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: #fff;
    color: #000;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
}

.shop-item-order #sit_sel_option .sit_qty_minus {
    border-right: 1px solid #afafaf;
}

.shop-item-order #sit_sel_option .sit_qty_plus {
    border-left: 1px solid #afafaf;
}

.shop-item-order #sit_sel_option .num_input {
    float: none;
    box-sizing: border-box;
    width: 2.5rem;
    min-width: 2.5rem;
    height: 2rem;
    margin: 0;
    padding: 0 0.25rem;
    border: 0;
    border-radius: 0;
    background: #fff;
    color: #000;
    font-size: 0.875rem; /* 14px */
    font-weight: 600;
    line-height: 2rem;
    text-align: center;
}

/* 옵션 동적 추가 시 qty 래퍼 없을 때 */
.shop-item-order #sit_sel_option .opt_count > .sit_qty_minus,
.shop-item-order #sit_sel_option .opt_count > .sit_qty_plus,
.shop-item-order #sit_sel_option .opt_count > .num_input {
    float: none;
}

.shop-item-order #sit_sel_option .opt_count > .sit_qty_minus,
.shop-item-order #sit_sel_option .opt_count > .num_input,
.shop-item-order #sit_sel_option .opt_count > .sit_qty_plus {
    border: 1px solid #afafaf;
}

.shop-item-order #sit_sel_option .opt_count > .sit_qty_minus {
    border-radius: 2px 0 0 2px;
    border-right: 0;
}

.shop-item-order #sit_sel_option .opt_count > .sit_qty_plus {
    border-radius: 0 2px 2px 0;
    border-left: 0;
}

.shop-item-order #sit_sel_option .opt_count > .num_input {
    border-left: 0;
    border-right: 0;
}

.shop-item-order #sit_sel_option .sit_opt_prc {
    float: none;
    display: block;
    width: auto;
    margin-left: auto;
    padding: 0;
    color: #000;
    font-size: 0.875rem; /* 14px */
    font-weight: 500;
    line-height: 1.25;
    text-align: right;
    white-space: nowrap;
}

.shop-item-order #sit_sel_option .sit_opt_del {
    position: absolute;
    top: 0.5rem;
    right: 0;
    float: none;
    width: 1.5rem;
    height: 1.5rem;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #7d7d7d;
    font-size: 0.875rem;
    line-height: 1;
}

.shop-item-order #sit_tot_price,
.shop-item-order__total {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    margin: 0;
    padding: 1rem 0;
    border-bottom: 1px solid #e5e5e5;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    text-align: left;
}

.shop-item-order #sit_tot_price:after {
    display: none;
    content: none;
}

.shop-item-order #sit_tot_price .shop-item-order__total-label,
.shop-item-order #sit_tot_price > span:first-child {
    float: none;
    color: #000;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1;
}

@media (min-width: 1024px) {
    .shop-item-order #sit_tot_price .shop-item-order__total-label,
    .shop-item-order #sit_tot_price > span:first-child {
        font-size: 0.9375rem; /* 15px */
    }
}

.shop-item-order #sit_tot_price .shop-item-order__total-value {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.25rem;
    margin-left: auto;
    text-align: right;
}

.shop-item-order #sit_tot_price strong,
.shop-item-order #sit_tot_price .shop-item-order__total-price {
    margin: 0;
    color: #003281;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1;
}

@media (min-width: 768px) {
    .shop-item-order #sit_tot_price strong,
    .shop-item-order #sit_tot_price .shop-item-order__total-price {
        font-size: 1.25rem;
    }
}

@media (min-width: 1024px) {
    .shop-item-order #sit_tot_price strong,
    .shop-item-order #sit_tot_price .shop-item-order__total-price {
        font-size: 1.4375rem; /* 23px */
    }
}

.shop-item-order #sit_tot_price .shop-item-order__total-qty {
    color: #7d7d7d;
    font-size: 0.8125rem; /* 13px */
    font-weight: 400;
    line-height: 1;
}

.shop-item-order #sit_ov_btn::after {
    display: none;
    content: none;
}

.shop-item-order #sit_ov_btn.shop-item-order__btns {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

@media (min-width: 1024px) {
    .shop-item-order #sit_ov_btn.shop-item-order__btns {
        margin-top: 0.875rem;
        gap: 0.5rem;
    }
}

.shop-item-order #sit_ov_btn button {
    float: none;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 0;
    height: auto;
    margin: 0;
    padding: 0.875rem 1rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 1.2;
    cursor: pointer;
}

@media (min-width: 768px) {
    .shop-item-order #sit_ov_btn button {
        padding: 1rem 1.25rem;
        font-size: 1.125rem; /* 18px */
    }
}

.shop-item-order #sit_ov_btn .sit_btn_cart {
    flex: 0 0 auto;
    min-width: 6.5rem;
    border: 1px solid #1d1717;
    background: #fff;
    color: #1d1717;
}

.shop-item-order #sit_ov_btn .sit_btn_cart:hover {
    background: #f7f7f7;
    color: #1d1717;
}

.shop-item-order #sit_ov_btn .sit_btn_buy {
    flex: 1 1 auto;
    border: 1px solid #1d1717;
    background: #1d1717;
    color: #fff;
}

.shop-item-order #sit_ov_btn .sit_btn_buy:hover {
    background: #000;
    border-color: #000;
    color: #fff;
}

@media (min-width: 1024px) {
    .shop-item-order #sit_ov_btn .sit_btn_cart {
        min-width: 7.75rem; /* ~124px */
    }
}

.shop-item-form #sit_siblings {
    clear: both;
    margin-top: 1.5rem;
}

/* ----- 상품 상세 탭 (피그마 12:3179) — 기존 #sit_info float/table-cell 해제 ----- */
#sit_info.shop-item-tabs {
    display: block;
    float: none;
    width: 100%;
    min-height: 0;
    margin-top: 0;
    margin-bottom: 0;
    background: transparent;
}

#sit_info.shop-item-tabs:after {
    display: none;
    content: none;
}

#sit_info.shop-item-tabs #sit_tab {
    display: block;
    width: 100%;
    float: none;
}

#sit_info.shop-item-tabs #sit_buy {
    display: block;
    width: 100%;
    float: none;
    border-left: 0;
    vertical-align: top;
}

/* 탭 버튼 — 기본 style.css 덮어쓰기 */
#sit_info.shop-item-tabs .tab_tit {
    border-bottom: 0;
    background: transparent;
    padding: 0;
}

#sit_info.shop-item-tabs .tab_tit:after {
    display: none;
    content: none;
}

#sit_info.shop-item-tabs .tab_tit li {
    display: block;
    float: none;
}

#sit_info.shop-item-tabs .tab_tit li button {
    float: none;
    width: 100%;
    height: 48px;
    padding: 0 0.5rem;
    border: 0;
    border-bottom: 2px solid #d9d9d9;
    border-radius: 0;
    background: #fff;
    color: #000;
    font-size: 0.875rem;
    line-height: 48px;
    font-weight: 400;
}

@media (min-width: 768px) {
    #sit_info.shop-item-tabs .tab_tit li button {
        height: 50px;
        line-height: 50px;
    }
}

#sit_info.shop-item-tabs .tab_tit li button.selected {
    font-weight: 500;
    color: #000;
    border-bottom-color: #000;
    background: #fff;
}

#sit_info.shop-item-tabs .tab_tit li button.selected:after {
    display: none;
    content: none;
}

#sit_info.shop-item-tabs .tab_con {
    background: transparent;
    padding: 0;
}

/* 상품설명 HTML(이미지·에디터) */
.shop-item-tabs__explan img,
.shop-item-tabs__dex-body img {
    max-width: 100%;
    height: auto;
}

.shop-item-tabs__explan {
    line-height: 1.7;
    overflow: hidden;
}

/* 상품문의 버튼 — 기본 btn01/btn02 영향 차단 */
#sit_qa_wbtn .shop-item-qa__write,
#sit_qa_wbtn .shop-item-qa__more {
    box-sizing: border-box;
}

#sit_qa_list > h3 {
    position: static;
    font-size: inherit;
    line-height: inherit;
}

/* 상품문의 목록 — style.css float/고정폭 해제 (모바일 줄바꿈 방지, lg 이상 PC 레이아웃 유지) */
#sit_qa_list #sit_qa_ol {
    margin: 0;
    padding: 0;
    border-top: 1px solid #f0f0f0;
    list-style: none;
}


#sit_qa_list .sit_qa_li:after {
    display: none;
}

#sit_qa_list .sit_qa_li_title {
    float: none;
    width: auto;
    display: flex;
    line-height: inherit;
    font-size: inherit;
}

#sit_qa_list .sit_qa_dl {
    float: none;
    width: auto;
    margin: 0;
    line-height: inherit;
    text-align: left;
}

#sit_qa_list .sit_qa_dl dd {
    display: inline-flex;
    align-items: center;
    margin-left: 0;
}

@media (min-width: 1024px) {
    #sit_qa_list .sit_qa_dl {
        text-align: right;
    }
}

/* 답변대기 / 답변완료 뱃지 */
#sit_qa_list .sit_qaa_done {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    margin-right: 0;
    padding: 0 8px;
    border-radius: 3px;
    background: var(--color-primary);
    color: #fff;
    font-size: 12px;
    font-weight: normal;
    line-height: 1;
    white-space: nowrap;
}

#sit_qa_list .sit_qaa_yet {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    margin-right: 0;
    padding: 0 8px;
    border-radius: 3px;
    background: #fafcff;
    color: var(--color-primary);
    font-size: 12px;
    font-weight: normal;
    line-height: 1;
    white-space: nowrap;
}
