
/* ==========================================
   BAZAAR 201 상품 상세페이지
========================================== */

#sit {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 0 70px;
    background: #fff;
    box-sizing: border-box;
}

/* 상단 상품 영역 */

#sit_ov_from {
    width: 100%;
    margin: 0 0 35px;
    padding: 0;
    border: 0;
    background: #fff;
}

#sit_ov_wrap {
    display: flex;
    align-items: flex-start;
    gap: 35px;
    width: 100%;
    padding: 0;
    box-sizing: border-box;
}

#sit_pvi {
    position: relative;
    flex: 0 0 52%;
    width: 52%;
    min-width: 0;
}

#sit_pvi_big {
    width: 100%;
    overflow: hidden;
}

#sit_pvi_big img {
    max-width: 100%;
    height: auto;
}

#sit_ov {
    flex: 1;
    min-width: 0;
    padding: 5px 0 0;
}

.ff-detail-brand {
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 700;
    color: #333;
}

#sit_title {
    margin: 0 0 18px;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.4;
    color: #111;
}

#sit_ov .sit_ov_tbl {
    width: 100%;
    border: 0;
}

#sit_ov .sit_ov_tbl th,
#sit_ov .sit_ov_tbl td {
    padding: 12px 0;
    border: 0;
    border-bottom: 1px solid #eee;
}

#sit_ov .sit_ov_tbl th {
    width: 120px;
    font-weight: 400;
    color: #666;
}

.ff-detail-price-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ff-detail-price-row strong,
#sit_ov .tr_price strong {
    font-size: 25px;
    font-weight: 700;
    color: #111;
}

.ff-detail-discount {
    font-size: 21px;
    font-weight: 700;
    color: #ed003b;
}

#sit_sel_option {
    margin-top: 15px;
    background: #fafafa;
    border: 1px solid #eee;
}

/* 상단 구매 버튼 */

#sit_ov_from #sit_ov_btn {
    display: flex;
    align-items: stretch;
    gap: 10px;
    margin-top: 20px;
}

#sit_ov_from #sit_ov_btn .sit_btn_buy {
    order: 1;
    flex: 1;
    width: auto;
    background: #ed003b !important;
    border: 1px solid #ed003b !important;
    color: #fff !important;
    font-weight: 700;
}

#sit_ov_from #sit_ov_btn .sit_btn_cart {
    order: 2;
    flex: 1;
    width: auto;
    background: #fff !important;
    border: 1px solid #ccc !important;
    color: #111 !important;
    font-weight: 700;
}

#sit_ov_from #sit_ov_btn .sit_btn_wish {
    order: 3;
    flex: 0 0 48px;
    width: 48px;
}

/* 관련상품 */

#sit_rel {
    width: 100%;
    margin: 35px 0 45px;
    padding: 25px;
    border: 1px solid #eee;
    box-sizing: border-box;
}

#sit_rel h2 {
    margin: 0 0 25px;
    font-size: 21px;
    font-weight: 700;
    text-align: left;
}

/* ==========================================
   하단 상품정보 영역
========================================== */

#sit_info {
    display: flex !important;
    align-items: flex-start;
    gap: 25px;
    width: 100%;
    margin: 30px 0 0;
    padding: 0;
    border: 0;
    background: #fff;
    box-sizing: border-box;
}

#sit_info #sit_tab {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    float: none;
    margin: 0;
    padding: 0;
    border: 0;
    box-sizing: border-box;
}

/* ==========================================
   BAZAAR 201 상품 상세 하단 탭
========================================== */

#sit_info #sit_tab .tab_tit {
    display: flex;
    width: 100%;
    height: auto;
    margin: 0 0 30px;
    padding: 0;
    border: 1px solid #ddd;
    background: #fff;
    list-style: none;
    box-sizing: border-box;
}

#sit_info #sit_tab .tab_tit li {
    position: static;
    flex: 1 1 0;
    float: none;
    width: 25%;
    height: auto;
    margin: 0;
    padding: 0;
    border: 0 !important;
    background: #fff !important;
    box-sizing: border-box;
}

/* 탭 사이 구분선 */
#sit_info #sit_tab .tab_tit li:not(:last-child) {
    border-right: 1px solid #ddd !important;
}

#sit_info #sit_tab .tab_tit li button {
    position: static;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100%;
    height: 45px;
    min-height: 45px;
    margin: 0;
    padding: 0 5px;
    border: 0 !important;
    border-radius: 0;
    background: #fff !important;
    box-shadow: none !important;
    color: #777;
    font-size: 13px;
    font-weight: 400;
    text-align: center;
    cursor: pointer;
    box-sizing: border-box;
}

/* 선택된 탭 - 빨간색 밑줄 제거 */
#sit_info #sit_tab .tab_tit li button.selected {
    color: #111 !important;
    border: 0 !important;
    background: #fff !important;
    font-weight: 700;
}

#sit_info #sit_tab .tab_tit li button::before,
#sit_info #sit_tab .tab_tit li button::after {
    display: none !important;
    content: none !important;
}

/* 탭 내용 */

#sit_info #sit_tab .tab_con {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 0;
    border: 0;
    background: #fff;
    list-style: none;
}

#sit_info #sit_tab .tab_con > li {
    position: static;
    float: none;
    width: 100%;
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background: #fff;
    box-sizing: border-box;
}

/* 상품정보 제목 겹침 방지 */

#sit_info #sit_inf .contents_tit {
    position: static !important;
    display: block;
    float: none;
    clear: both;
    width: 100%;
    height: auto !important;
    min-height: 0;
    margin: 0 0 25px !important;
    padding: 0 !important;
    border: 0 !important;
    background: none !important;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.5;
    text-align: left;
    box-sizing: border-box;
}

#sit_info #sit_inf .contents_tit span {
    position: static;
    display: inline;
    float: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
}

/* 상세설명 */

#sit_inf_explan {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

#sit_inf_explan img {
    max-width: 100%;
    height: auto;
}

/* 상품정보 고시 표 */

#sit_info #sit_inf_open {
    clear: both;
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    border-top: 1px solid #333;
}

#sit_info #sit_inf_open th,
#sit_info #sit_inf_open td {
    height: auto;
    padding: 15px 18px;
    border: 0;
    border-bottom: 1px solid #e5e5e5;
    font-size: 14px;
    line-height: 1.5;
    text-align: left;
    vertical-align: middle;
}

#sit_info #sit_inf_open th {
    width: 28%;
    background: #f7f7f7;
    color: #333;
    font-weight: 600;
}

#sit_info #sit_inf_open td {
    background: #fff;
    color: #555;
}

/* ==========================================
   오른쪽 구매 영역
========================================== */

#sit_info #sit_buy {
    position: static !important;
    display: block;
    flex: 0 0 300px;
    float: none !important;
    width: 300px;
    height: auto !important;
    min-height: 0 !important;
    margin: 0;
    padding: 0;
    border: 1px solid #e5e5e5;
    background: #fff;
    align-self: flex-start;
    box-sizing: border-box;
}

#sit_info #sit_buy .sit_buy_inner {
    position: static !important;
    display: block;
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
}

#sit_info #sit_buy .sit_sel_option {
    position: static;
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 0 0 15px;
    border-bottom: 1px solid #eee;
}

/* 버튼을 하단에 고정하지 않고 옵션 바로 아래 배치 */

#sit_info #sit_buy .sum_section {
    position: static !important;
    display: block;
    height: auto !important;
    min-height: 0 !important;
    margin: 15px 0 0;
    padding: 0 !important;
    border: 0;
    background: #fff;
}

#sit_info #sit_buy .sit_order_btn {
    position: static !important;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    height: auto;
    margin: 15px 0 0;
    padding: 0;
}

#sit_info #sit_buy .sit_order_btn button {
    display: block;
    float: none;
    width: 100%;
    height: 50px;
    min-height: 50px;
    margin: 0;
    padding: 0 10px;
    border-radius: 3px;
    font-size: 15px;
    font-weight: 700;
}

#sit_info #sit_buy .sit_btn_buy {
    order: 1;
    background: #ed003b !important;
    border: 1px solid #ed003b !important;
    color: #fff !important;
}

#sit_info #sit_buy .sit_btn_cart {
    order: 2;
    background: #fff !important;
    border: 1px solid #ccc !important;
    color: #111 !important;
}

/* ==========================================
   반응형
========================================== */

@media (max-width: 900px) {
    #sit {
        padding: 20px 15px 50px;
    }

    #sit_ov_wrap {
        flex-direction: column;
        gap: 25px;
    }

    #sit_pvi,
    #sit_ov {
        flex: none;
        width: 100%;
    }

    #sit_info {
        flex-direction: column;
    }

    #sit_info #sit_tab,
    #sit_info #sit_buy {
        flex: none;
        width: 100%;
    }

    #sit_info #sit_tab .tab_tit li button {
        font-size: 13px;
        padding: 10px 4px;
    }
}
/* 영카트 기본 파란색 탭 표시 제거 */
#sit_info #sit_tab .tab_tit li .selected::after {
    display: none !important;
    content: none !important;
}

/* ==========================================
   BAZAAR 201 상세페이지
   메인 이미지 + 오른쪽 세로 썸네일
========================================== */

@media (min-width: 901px) {

    /* 상품 이미지 전체 영역 */
    #sit_ov_wrap #sit_pvi {
		display: flex;
		flex-direction: row;
		align-items: flex-start;
		gap: 10px;
		flex: 0 0 47%;
		width: 47%;
		min-width: 0;
	}

    /* 메인 이미지 */
    #sit_ov_wrap #sit_pvi_big {
        position: relative;
        flex: 1 1 0;
        width: auto;
        min-width: 0;
        overflow: hidden;
    }

    #sit_ov_wrap #sit_pvi_big a.visible {
        display: block;
    }

    #sit_ov_wrap #sit_pvi_big img {
        display: block;
        width: 100%;
        max-width: 100%;
        height: auto;
        border-radius: 6px;
    }

    /* 오른쪽 썸네일 목록 */
    #sit_ov_wrap #sit_pvi_thumb {
        position: static;
        display: flex;
        flex: 0 0 70px;
        flex-direction: column;
        gap: 10px;
        width: 70px;
        height: auto;
        margin: 0;
        padding: 0;
        overflow: visible;
        list-style: none;
    }

    #sit_ov_wrap #sit_pvi_thumb li {
        float: none;
        width: 70px;
        height: 90px;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    #sit_ov_wrap #sit_pvi_thumb li a {
        display: block;
        width: 100%;
        height: 100%;
        overflow: hidden;
        border-radius: 6px;
    }

    #sit_ov_wrap #sit_pvi_thumb li img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}
/* ==========================================
   BAZAAR 201 상세페이지 배경 흰색 통일
========================================== */

body,
#wrapper,
#container,
#content,
#sit {
    background-color: #fff !important;
}

/* 상품 상세 상단 영역 */
#sit_ov_from,
#sit_ov_wrap {
    background-color: #fff !important;
}
/* 상품정보 상단 라인 제거 */
#sit_ov {
    border-top: 0 !important;
}

#sit_ov .ff-detail-brand {
    border-top: 0 !important;
    padding-top: 0 !important;
    margin-top: 0 !important;
}
/* 상품 상세 상단 가로 라인 제거 */
#sit_ov_from,
#sit_ov_wrap,
#sit_pvi,
#sit_ov {
    border-top: none !important;
}

/* 영카트 기본 가상요소 라인 제거 */
#sit_ov_from::before,
#sit_ov_wrap::before {
    border: none !important;
    background: none !important;
}

/* 상품 상세 썸네일 크기 조정 */
@media (min-width: 901px) {

    #sit_ov_wrap #sit_pvi_thumb {
        flex: 0 0 80px;
        width: 80px;
        gap: 10px;
    }

    #sit_ov_wrap #sit_pvi_thumb li {
		flex: 0 0 100px;
		width: 80px;
		height: 100px;
	}

    #sit_ov_wrap #sit_pvi_thumb li a {
        width: 100%;
        height: 100%;
    }

    #sit_ov_wrap #sit_pvi_thumb li img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}
/* ==========================================
   BAZAAR 201 상품 상세정보 간소화
========================================== */

/* 상품 기본정보 표의 판매가격만 노출 */
#sit_ov .ff-product-summary .sit_ov_tbl tbody > tr:not(.tr_price) {
    display: none;
}

/* 판매가격 영역 */
#sit_ov .ff-product-summary .sit_ov_tbl .tr_price th {
    display: none;
}

#sit_ov .ff-product-summary .sit_ov_tbl .tr_price td {
    display: block;
    width: 100%;
    padding: 15px 0 20px;
    border-bottom: 1px solid #eee;
}

#sit_ov .ff-product-summary .ff-detail-price-row {
    display: flex;
    align-items: center;
    gap: 12px;
}
/* ==========================================
   BAZAAR 201 상세페이지 옵션 가로 정렬
========================================== */

@media (min-width: 901px) {

    /* 선택옵션 제목 숨김 */
    #sit_ov .sit_option > h3 {
        display: none;
    }

    /* 옵션별 행 */
    #sit_ov .sit_option > ul > li {
        display: flex;
        align-items: center;
        gap: 15px;
        margin-bottom: 8px;
    }

    /* 옵션명 */
    #sit_ov .sit_option label {
        flex: 0 0 55px;
        width: 55px;
        margin: 0;
        font-size: 13px;
        color: #222;
    }

    /* 옵션 선택창 */
    #sit_ov .sit_option select {
        flex: 1;
        width: 100%;
        height: 40px;
        min-width: 0;
        border: 1px solid #e5e5e5;
        background-color: #fff;
        font-size: 12px;
    }
}
/* 상품 제목과 설명 사이 여백 조정 */
#sit_ov #sit_title {
    margin-bottom: 20px !important;
}

#sit_ov #sit_desc {
    margin-top: 0 !important;
}
/* 가격 영역 아래 중복 가로선 정리 */
#sit_ov .ff-product-summary .sit_ov_tbl .tr_price td {
    border-bottom: 0 !important;
}

#sit_ov .ff-product-summary .sit_ov_tbl {
    border-bottom: 0 !important;
}
/* 가격 영역의 테두리 제거 */
#sit_ov .ff-product-summary,
#sit_ov .ff-product-summary .sit_ov_tbl,
#sit_ov .ff-product-summary .sit_ov_tbl tbody,
#sit_ov .ff-product-summary .sit_ov_tbl .tr_price,
#sit_ov .ff-product-summary .sit_ov_tbl .tr_price th,
#sit_ov .ff-product-summary .sit_ov_tbl .tr_price td {
    border-top: 0 !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
}

/* ==========================================
   BAZAAR 201 상품 상세 - 옵션 가로 정렬
========================================== */

@media (min-width: 901px) {

    /* 옵션 영역 */
    #sit_ov .sit_option {
        margin-top: 20px;
        padding: 0;
        border: 0;
    }

    /* 선택옵션 제목 숨기기 */
    #sit_ov .sit_option > h3 {
        display: none !important;
    }

    /* 영카트 옵션 목록 */
    #sit_ov .sit_option .get_item_options {
        display: flex !important;
        align-items: center;
        gap: 15px;
        margin-bottom: 10px;
        width: 100%;
    }

    /* 컬러, 사이즈 옵션명 */
    #sit_ov .sit_option .get_item_options > label {
        flex: 0 0 55px;
        width: 55px;
        margin: 0 !important;
        font-size: 13px;
        color: #222;
    }

    /* 옵션 선택창 */
    #sit_ov .sit_option .get_item_options > select {
        flex: 1 1 auto;
        width: auto !important;
        min-width: 0;
        height: 40px;
        margin: 0 !important;
        padding: 0 12px;
        border: 1px solid #e5e5e5;
        border-radius: 2px;
        background-color: #fff;
        font-size: 12px;
    }
}
/* 상품 옵션 가로 정렬 및 선택창 너비 수정 */
@media (min-width: 901px) {

    #sit_ov .sit_option .get_item_options {
        display: flex !important;
        align-items: center;
        width: 100%;
        gap: 15px;
    }

    #sit_ov .sit_option .get_item_options > label {
        flex: 0 0 55px;
        width: 55px;
        margin: 0 !important;
    }

    #sit_ov .sit_option .get_item_options > select {
        display: block;
        flex: 1 1 0 !important;
        width: 100% !important;
        min-width: 0;
        max-width: none !important;
        height: 40px;
        margin: 0 !important;
        box-sizing: border-box;
    }
}
/* BAZAAR 201 옵션 선택창 너비 보정 */
@media (min-width: 901px) {

    #sit_ov .sit_option .get_item_options {
        display: flex !important;
        align-items: center !important;
        width: 100% !important;
        gap: 15px !important;
    }

    #sit_ov .sit_option .get_item_options > label {
        flex: 0 0 55px !important;
        width: 55px !important;
    }

    #sit_ov .sit_option .get_item_options select,
    #sit_ov .sit_option .get_item_options .it_option {
        flex: 1 1 auto !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        box-sizing: border-box;
    }
}
/* ==========================================
   BAZAAR 201 옵션 선택창 너비 최종 수정
========================================== */

@media (min-width: 901px) {

    #sit_ov .sit_option .get_item_options {
        display: flex !important;
        align-items: center !important;
        gap: 15px !important;
        width: 100% !important;
    }

    /* 컬러 / 사이즈 이름 */
    #sit_ov .sit_option .get_item_options > label {
        flex: 0 0 55px !important;
        width: 55px !important;
        margin: 0 !important;
    }

    /* 선택창을 감싸는 span */
    #sit_ov .sit_option .get_item_options > span {
        display: block !important;
        flex: 1 1 0% !important;
        width: auto !important;
        min-width: 0 !important;
    }

    /* 실제 선택창 */
    #sit_ov .sit_option .get_item_options > span > select {
        display: block !important;
        width: 100% !important;
        max-width: none !important;
        height: 40px !important;
        margin: 0 !important;
        box-sizing: border-box;
    }
}
/* ==========================================
   BAZAAR 201 선택 옵션 / 수량 / 총금액
========================================== */

/* 선택된 옵션 목록 */
#sit_sel_option {
    margin-top: 15px !important;
    padding: 0 !important;
    border: 0 !important;
    background: #fff !important;
}

/* 선택된 상품 행 */
#sit_sel_option > ul > li {
    position: relative;
    padding: 15px 0 !important;
    border: 0 !important;
    border-bottom: 1px solid #eee !important;
    background: #fff !important;
}

/* 옵션명 */
#sit_sel_option .sit_opt_subj {
    font-size: 13px !important;
    font-weight: 400 !important;
    color: #333 !important;
}

/* 수량 조절 버튼 */
#sit_sel_option .sit_qty_btn {
    border-radius: 0 !important;
}

/* 선택 옵션 삭제 */
#sit_sel_option .sit_opt_del {
    opacity: 0.6;
}

/* 총금액 */
#sit_tot_price {
    padding: 18px 0 !important;
    border-top: 1px solid #222 !important;
    font-size: 14px !important;
}

#sit_tot_price strong {
    font-size: 22px !important;
    font-weight: 700 !important;
}
/* 선택옵션 실제 판매금액 */
#sit_sel_option .ff-option-display-price {
    font-size: 13px;
    font-weight: 500;
    color: #222;
}
/* =====================================
   BAZAAR 201 비슷한 상품 추천
===================================== */

.ff-related-products {
    max-width: 1200px;
    margin: 55px auto 35px;
}

.ff-related-products h3 {
    margin: 0 0 15px;
    font-size: 16px;
    font-weight: 600;
    color: #111;
}

.ff-related-list {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 6px;
}

.ff-related-item {
    display: block;
    overflow: hidden;
}

.ff-related-item img {
    display: block;
    width: 100%;
    height: 180px;
    object-fit: cover;
}

@media (max-width: 900px) {
    .ff-related-products {
        margin: 30px 15px;
    }

    .ff-related-list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .ff-related-item img {
        height: 150px;
    }
}

@media (max-width: 480px) {
    .ff-related-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
/* 입점사 다른 상품 영역 */
.ff-partner-products {
    margin-top: 35px;
    margin-bottom: 45px;
}
/* 상세페이지 기존 너비 유지 */
.ff-item-layout {
    position: relative;
    display: block;
    width: 100%;
}

.ff-item-main {
    width: 100%;
    min-width: 0;
}

.ff-item-main #sit {
    width: 100%;
    max-width: 100%;
}

/* 사이드바는 상세페이지 너비에 영향 없이 배치 */
.ff-item-sidebar {
    position: absolute;
    top: 40px;
    left: calc(100% - 125px);
    width: 125px;
    z-index: 10;
}

@media (max-width: 1450px) {
    .ff-item-sidebar {
        display: none;
    }
}
/* 상세페이지 오른쪽 사이드바 위치 조정 */
@media (min-width: 1200px) {
    .ff-item-sidebar {
        position: relative;
        left: 35px;
    }
}
/* ==========================================
   BAZAAR 201 상품 상세 퀵 사이드바
========================================== */

@media (min-width: 1451px) {

    .ff-item-layout {
        position: relative;
    }

    .ff-item-sidebar {
        position: absolute !important;
        top: 40px;
        left: auto !important;
        right: -165px;
        width: 125px;
        z-index: 100;
    }

    .ff-item-sidebar .ff-main-sidebar {
        position: sticky;
        top: 20px;
    }

}
