/* ===== 기본 컬러 변수 ===== */
:root {
    --point-color: #051C95;
    --bg-gray: #ffffff;
    --text-dark: #111;
    --border-color: #e0e0e0;
    --background-color: #f5f5f5;
}

/* ===== 장바구니 래퍼 ===== */
#sod_bsk {
    max-width: 1300px;
    margin: 40px auto;
    padding-bottom: 100px;
}

/* ===== 테이블 래퍼 ===== */
#sod_bsk .tbl_wrap {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

/* ===== 카테고리 제목 ===== */
.category_title {
    padding: 15px 0 10px 0;
    font-size: 16px;
    font-weight: bold;
    border-bottom: 2px solid #333;
    margin: 0;
}

#sod_bsk table {
    width: 100%;
    border-collapse: collapse;
}

/* ===== 테이블 헤더 (item.form.skin.php 스타일) ===== */
#sod_bsk thead {
    background: #f5f5f5;
    color: #333;
    border-bottom: 1px solid #051C95;
}

#sod_bsk thead th {
    padding: 20px 15px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

#sod_bsk thead th.chk_box {
    padding: 20px 5px;
}

/* ===== 테이블 바디 ===== */
#sod_bsk tbody tr {
    border-bottom: 1px solid #e8e8e8;
    transition: background-color 0.2s ease;
}

#sod_bsk tbody tr:hover {
    background-color: #fafafa;
}

#sod_bsk tbody td {
    padding: 20px 15px;
    text-align: center;
    vertical-align: middle;
}

#sod_bsk .td_chk {
    width: 20px;
    padding: 20px 5px;
}

#sod_bsk .td_del .sod_item_del_btn {
    width: 30px;
    height: 30px;
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
    color: #999;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease;
}

#sod_bsk .td_del .sod_item_del_btn:hover {
    color: #e74c3c;
}

/* ===== 상품명 셀 (좌측 정렬) ===== */
#sod_bsk .td_prd {
    text-align: left;
    /* width: 40%; */
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 15px 20px 1px;
}

#sod_bsk .sod_img {
    flex-shrink: 0;
}

#sod_bsk .sod_img img {
    width: 140px;
    height: 140px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid #e8e8e8;
}

#sod_bsk .sod_name {
    flex: 1;
    position: relative;
    align-self: baseline;
}

#sod_bsk .prd_name {
    color: #333;
    text-decoration: none;
    font-weight: 600;
    display: block;
    margin-bottom: 6px;
    font-size: 15px;
    line-height: 1.3;
}

#sod_bsk .prd_name:hover {
    color: var(--point-color);
}

/* ===== 정기구독 라벨 ===== */
.subscription-label-wrapper {
    display: block;
    margin-top: 8px;
}

.subscription-label {
    color: #643FCE;
    font-size: 15px;
}

#sod_bsk .sod_opt {
    font-size: 14px;
    color: #6b6868;
    margin-top: 5px;
    line-height: 1.4;
}

/* ===== 숫자 셀 ===== */
#sod_bsk .td_num {
    font-size: 14px;
    color: #333;
    font-weight: 600;
    width: 100px;
}

#sod_bsk .td_numbig {
    font-size: 14px;
    color: #333;
    font-weight: 600;
}

#sod_bsk .td_dvr {
    color: var(--point-color);
    font-size: 13px;
    font-weight: 700;
}

#sod_bsk .total_prc {
    color: #ff6b6b;
    font-size: 16px;
    font-weight: 800;
}

/* ===== 장바구니 상단 제어판 ===== */
.cart_select_label {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0;
    cursor: pointer;
    white-space: nowrap;
}

.cart_buttons {
    display: flex;
    gap: 10px;
}

/* ===== 카테고리별 주문 섹션 ===== */
.category_order_section {
    padding: 20px;
    background: #f9f9f9;
    border-top: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.category_summary {
    display: flex;
    gap: 8px;
    align-items: center;
}

.summary_item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.summary_label {
    color: #666;
    font-weight: 500;
}

.summary_value {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.summary_value .won_unit {
    font-size: 14px;
    font-weight: 400;
}

.summary_total .summary_value {
    color: var(--point-color);
}

.category_order_btn {
    padding: 12px 30px;
    background: var(--point-color);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.category_order_btn:hover {
    background: #000E5C;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(98, 0, 234, 0.2);
}

.category_order_btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.5;
}


#sod_bsk .empty_table {
    text-align: center !important;
    padding: 60px 20px !important;
    color: #999;
    font-size: 16px;
}

/* ===== 버튼 영역 (선택삭제/비우기) ===== */
#sod_bsk .btn_cart_del {
    padding: 15px 0;
    background: #ffffff;
    border-top: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

#sod_bsk .cart_select_label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

#sod_bsk .cart_select_text {
    font-size: 15px;
    font-weight: 700;
    color: #333;
}

#sod_bsk .cart_buttons {
    display: flex;
    gap: 10px;
    margin-left: auto;
}

#sod_bsk .cart_buttons button {
    padding: 12px 24px;
    border: 1px solid var(--border-color);
    background: white;
    color: #333;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
}

#sod_bsk .cart_buttons button:hover {
    border-color: var(--point-color);
    color: var(--point-color);
    background: #f9f9f9;
    transform: translateY(-1px);
}

/* ===== 합계 섹션 (item.form.skin.php 스타일) ===== */
#sod_bsk_tot {
    background: #f5f5f5;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid #e0e0e0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* footer 내 #sod_bsk_tot 스타일 override */
#sod_bsk_footer #sod_bsk_tot {
    margin-bottom: 0;
    background: transparent;
    border-radius: 0;
    padding: 0;
    margin: 0;
    box-shadow: none;
    border: none;
}

/* 아이템화된 요약 항목 - 수평 레이아웃 */
.tot_summary_item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
}

/* 연산자 표시 */
.tot_operator {
    font-size: 18px;
    color: #999;
    font-weight: 600;
    margin-bottom: 2px;
}

.tot_operator_wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
}

.tot_summary_item .tot_label {
    font-size: 16px;
    color: #999;
    font-weight: 400;
}

.tot_summary_item.total .tot_label {
    font-size: 16px;
    font-weight: 400;
    color: #999;
}

.tot_price_group {
    display: flex;
    align-items: center;
    gap: 4px;
}

.tot_summary_item .tot_value {
    font-size: 20px;
    font-weight: 700;
    color: #333;
}

.tot_summary_item.total .tot_value {
    font-size: 20px;
    font-weight: 700;
    color: #e74c3c;
}

.tot_summary_item .tot_unit {
    font-size: 16px;
    font-weight: 400;
    color: #999;
}

/* ===== 버튼 섹션 (item.form.skin.php 스타일) ===== */
#sod_bsk_act {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

/* footer 내 #sod_bsk_act 스타일 */
#sod_bsk_footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: #fff;
    border-top: 1px solid #ddd;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.08);
}

#sod_bsk_footer .footer_wrapper {
    max-width: 1300px;
    margin: 0 auto;
    padding: 30px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    width: 100%;
}

/* 푸터 좌측 - 버튼들 */
#sod_bsk_footer .footer_left {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-shrink: 0;
}

#sod_bsk_footer .footer_left button {
    padding: 12px 24px;
    border: 1px solid var(--border-color);
    background: white;
    color: #333;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
}

#sod_bsk_footer .footer_left button:hover {
    border-color: var(--point-color);
    color: var(--point-color);
    background: #f9f9f9;
    transform: translateY(-1px);
}

#sod_bsk_footer .footer_left .quote_print_btn {
    background-color: #f8f8f8;
}

#sod_bsk_footer .footer_left .quote_print_btn:hover {
    background: #e8e8e8;
    border-color: #999;
}

/* 푸터 우측 - 가격정보 + 버튼 */
#sod_bsk_footer .footer_right {
    display: flex;
    gap: 40px;
    align-items: center;
}

#sod_bsk_footer #sod_bsk_tot {
    width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
    border: none;
    justify-content: flex-end;
    gap: 15px;
}

#sod_bsk_footer #sod_bsk_act {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-shrink: 0;
    margin-bottom: 0;
}

#sod_bsk_footer #sod_bsk_act a,
#sod_bsk_footer #sod_bsk_act button {
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

#sod_bsk_footer #sod_bsk_act .btn01 {
    background: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
}

#sod_bsk_footer #sod_bsk_act .btn01:hover {
    background: #e0e0e0;
    border-color: #999;
}

#sod_bsk_footer #sod_bsk_act .btn_submit {
    background: #051C95;
    color: #fff;
    min-width: 180px;
}

#sod_bsk_footer #sod_bsk_act .btn_submit:hover {
    background: #000E5C;
}

#sod_bsk_act .btn01 {
    padding: 14px 40px;
    border: 2px solid var(--point-color);
    background: white;
    color: var(--point-color);
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    transition: all 0.3s ease;
    display: inline-block;
    min-width: 120px;
    text-align: center;
}

#sod_bsk_act .btn01:hover {
    background: #f9f9f9;
    transform: translateY(-2px);
}

#sod_bsk_act .btn_submit {
    padding: 14px 40px;
    background: #051C95;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    transition: all 0.3s ease;
    min-width: 180px;
    box-shadow: 0 2px 8px rgba(98, 0, 234, 0.2);
}

#sod_bsk_act .btn_submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(98, 0, 234, 0.3);
    background: #5a00d4;
}

#sod_bsk_act .btn_submit:active {
    transform: translateY(0);
}

/* ===== 체크박스 스타일 ===== */
.selec_chk {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--point-color);
}

.selec_chk + label {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}

.selec_chk + label span {
    display: none;
}

/* ===== 선택사항수정 버튼 ===== */
.sod_option_btn {
    margin-top: 8px;
}

.mod_options {
    padding: 6px 12px;
    background: #f0f0f0;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: #333;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.mod_options:hover {
    background: var(--point-color);
    color: white;
    border-color: var(--point-color);
}

.caution-dup{
    display:block;
    padding: 40px 10px;
    font-size:16px;
}

/* ===== 반응형 (모바일) ===== */
@media (max-width: 768px) {
    #sod_bsk {
        padding: 0 10px;
        margin: 20px auto;
    }

    #sod_bsk thead th {
        padding: 12px 8px;
        font-size: 12px;
    }

    #sod_bsk tbody td {
        padding: 15px 8px;
    }

    #sod_bsk .td_prd {
        width: 100%;
        flex-direction: column;
    }

    #sod_bsk .sod_img img {
        width: 60px;
        height: 60px;
    }

    #sod_bsk_tot {
        padding: 25px;
    }

    #sod_bsk_tot ul {
        gap: 20px;
    }

    #sod_bsk_tot strong {
        font-size: 20px;
    }

    #sod_bsk_tot .sod_bsk_cnt strong {
        font-size: 24px;
    }

    #sod_bsk_act {
        flex-direction: column;
    }

    #sod_bsk_act .btn01,
    #sod_bsk_act .btn_submit {
        width: 100%;
        min-width: auto;
    }

    .btn_cart_del {
        flex-direction: column;
        justify-content: stretch;
    }

    .btn_cart_del button {
        flex: 1;
    }

    .cart_buttons {
        flex-direction: column;
        width: 100%;
    }

    .cart_buttons button {
        width: 100%;
    }

    .category_order_section {
        flex-direction: column;
        gap: 15px;
    }

    .category_summary {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    .category_order_btn {
        width: 100%;
    }
}

/* ===== 크레딧 수량 조정 스타일 ===== */
.credit_qty_controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.qty_input_group {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
}

.credit_qty_btn {
    width: 34px;
    height: 34px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    transition: background 0.2s;
}

.credit_qty_minus {
    border-radius: 4px 0 0 4px;
}

.credit_qty_plus {
    border-radius: 0 4px 4px 0;
}

.credit_qty_btn:hover {
    background: #f5f5f5;
}

.credit_qty_btn:active {
    background: #e8e8e8;
}

.credit_qty_btn i {
    font-size: 12px;
}

.credit_qty_input {
    width: 44px;
    height: 34px;
    min-width: 44px;
    border: 1px solid #ddd;
    border-left: none;
    border-right: none;
    border-radius: 0;
    text-align: center;
    font-weight: bold;
    font-size: 14px;
    color: #333;
    padding: 0;
    outline: none;
    background: #fff;
}

.credit_qty_input:focus {
    border-color: #051C95;
}

/* Chrome, Safari, Edge에서 숫자 입력창 화살표 제거 */
.credit_qty_input::-webkit-outer-spin-button,
.credit_qty_input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.credit_qty_input[type=number] {
    -moz-appearance: textfield;
}

.qty_update_btn {
    width: 112px;
    height: 20px;
    padding: 0;
    border: 1px solid #051C95;
    background: #051C95;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.qty_update_btn:hover {
    background: #5a00d9;
    border-color: #5a00d9;
}

.qty_update_btn:active {
    background: #4a00b0;
    transform: scale(0.95);
}

/* ===== 견적서출력 버튼 ===== */
.quote_print_btn {
    background-color: #f8f8f8;
}


.swal2-icon-hide{
    display: none !important;
}