@charset "utf-8";

/* 교재 상세정보 리뉴얼 프리미엄 CSS (theme_item_renewal.css) */

:root {
    --primary-color: #2B5C17;
    --primary-hover: #3caabf;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --bg-light: #f8fafc;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* 전체 컨테이너 */
#sit {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: 'Inter', 'Noto Sans KR', sans-serif;
    box-sizing: border-box;
}

/* 상단 상품 정보 2단 그리드 */
#sit_ov_wrap {
    display: flex;
    flex-direction: column;
    gap: 40px;
    background: #ffffff;
    border-radius: 20px;
    padding: 40px;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    margin-bottom: 50px;
}

@media(min-width: 992px) {
    #sit_ov_wrap {
        display: grid;
        grid-template-columns: 450px 1fr;
        align-items: start;
        gap: 50px;
    }
}

/* Left: 썸네일 영역 */
#sit_pvi {
    width: 100%;
}

#sit_pvi_big {
    width: 100%;
    height: auto;
    position: relative;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

#sit_pvi_big img {
    width: 100%;
    height: auto;
    max-height: 550px;
    object-fit: cover;
    display: block;
}

/* 돋보기 버튼 숨김 또는 스타일링 */
#popup_item_image {
    position: absolute;
    right: 15px;
    bottom: 15px;
    background: rgba(0,0,0,0.6);
    color: #fff !important;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.4rem;
    text-decoration: none;
}

#sit_pvi_thumb {
    list-style: none;
    padding: 0;
    margin: 15px 0 0 0;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

#sit_pvi_thumb li {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    cursor: pointer;
    background: #fff;
}

#sit_pvi_thumb li img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#sit_pvi_thumb li:hover {
    border-color: var(--primary-color);
}

/* Right: 상세 요약 및 옵션 선택 */
#sit_ov {
    width: 100% !important;
    float: none !important;
    padding: 0 !important;
}

#sit_title {
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.4;
    margin: 0 0 10px 0;
}

#sit_desc {
    font-size: 1.5rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0 0 25px 0;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

#sit_star_sns {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-bottom: 25px;
}

#sit_btn_opt {
    margin-left: auto;
    display: flex;
    gap: 10px;
}

/* 옵션 테이블 리뉴얼 */
.sit_info {
    margin-bottom: 30px;
}

.sit_ov_tbl {
    width: 100%;
    border-collapse: collapse;
}

.sit_ov_tbl th {
    text-align: left;
    color: var(--text-muted);
    font-size: 1.45rem;
    font-weight: 700;
    padding: 15px 0;
    width: 120px;
    border-bottom: 1px solid #f1f5f9;
}

.sit_ov_tbl td {
    padding: 15px 0;
    color: var(--text-dark);
    font-size: 1.45rem;
    border-bottom: 1px solid #f1f5f9;
}

.sit_ov_tbl .tr_price td strong {
    font-size: 2.6rem;
    color: var(--primary-color);
    font-weight: 900;
    letter-spacing: -0.5px;
}

/* 선택옵션 영역 */
#sit_opt {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 25px;
    border: 1px solid var(--border-color);
    margin-bottom: 30px;
}

#sit_opt h3 {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0 0 15px 0;
}

.sit_opt_list {
    margin-bottom: 15px;
}

/* 옵션 드롭다운 선택 필드 */
#sit_opt select {
    width: 100%;
    height: 48px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    padding: 0 16px;
    font-size: 1.4rem;
    color: var(--text-dark);
    outline: none;
    box-sizing: border-box;
}

#sit_opt select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(71, 192, 216, 0.15);
}

/* 선택된 옵션 목록 및 수량 제어 */
#sit_sel_option {
    list-style: none;
    padding: 0;
    margin: 20px 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#sit_sel_option li {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}

#sit_sel_option .sit_opt_subj {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-dark);
}

#sit_sel_option .sit_opt_prc {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--text-dark);
}

#sit_sel_option .sit_opt_qty {
    display: flex;
    align-items: center;
    gap: 4px;
}

#sit_sel_option .sit_qty_input {
    width: 50px;
    height: 32px;
    text-align: center;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-size: 1.3rem;
}

#sit_sel_option .btn_qty_up, #sit_sel_option .btn_qty_down {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.4rem;
    font-weight: 700;
}

/* 총 합계 금액 */
#sit_tot_price {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed var(--border-color);
}

#sit_tot_price em {
    font-size: 2.6rem;
    color: var(--primary-color);
    font-style: normal;
    font-weight: 900;
}

/* 바로구매/장바구니 버튼 그룹 */
#sit_ov_btn {
    display: flex;
    gap: 12px;
    width: 100%;
}

#sit_ov_btn button, #sit_ov_btn a.sit_btn_wish {
    height: 56px;
    border-radius: 12px;
    font-size: 1.7rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

.sit_btn_cart {
    flex: 1;
    background: #ffffff !important;
    border: 2px solid var(--primary-color) !important;
    color: var(--primary-color) !important;
}

.sit_btn_cart:hover {
    background: #e8f6f9 !important;
}

.sit_btn_buy {
    flex: 1.5;
    background: var(--primary-color) !important;
    border: none !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(71, 192, 216, 0.3);
}

.sit_btn_buy:hover {
    background: var(--primary-hover) !important;
}

.sit_btn_wish {
    width: 56px;
    background: #ffffff;
    border: 2px solid var(--border-color);
    color: #94a3b8;
    text-decoration: none;
}

.sit_btn_wish:hover {
    border-color: #f43f5e;
    color: #f43f5e;
    background: #fff5f5;
}

/* 7. 하단 상품정보 탭 (sanchor) */
.sanchor {
    list-style: none;
    padding: 0;
    margin: 50px 0 30px 0;
    display: flex;
    border-bottom: 2px solid var(--border-color);
    justify-content: space-around;
}

.sanchor li {
    flex-grow: 1;
    text-align: center;
}

.sanchor a {
    display: block;
    padding: 18px 0;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-muted);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}

.sanchor a:hover, .sanchor a.sanchor_on {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.sanchor a span {
    font-size: 1.2rem;
    background: #e2e8f0;
    color: #475569;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 4px;
    vertical-align: middle;
}

.sanchor a.sanchor_on span {
    background: #e8f6f9;
    color: var(--primary-color);
}

/* 8. 상세 설명 콘텐츠 박스 */
#sit_inf, #sit_use, #sit_qa, #sit_dvr, #sit_ex {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px;
    border: 1px solid var(--border-color);
    margin-bottom: 40px;
    box-shadow: var(--card-shadow);
}

#sit_inf h2, #sit_use h2, #sit_qa h2, #sit_dvr h2, #sit_ex h2 {
    font-size: 2.0rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-top: 0;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

#sit_inf_ex {
    font-size: 1.5rem;
    line-height: 1.8;
    color: #334155;
}

/* 테이블 서브 헤더 숨김 처리용 */
.2017_renewal_itemform {
    float: none !important;
    width: 100% !important;
}
