/* 장바구니 화면(cart.php) 프리미엄 리뉴얼 CSS */
#sod_bsk {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: 'Inter', 'Noto Sans KR', sans-serif;
}

/* 1. 장바구니 테이블 리스타일링 */
#sod_bsk_list {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
    padding: 25px;
    margin-bottom: 30px;
}

.tbl_head03 table {
    width: 100% !important;
    border-collapse: collapse !important;
    border: none !important;
}

.tbl_head03 th {
    background: #f8fafc !important;
    color: #475569 !important;
    font-weight: 700 !important;
    font-size: 1.4rem !important;
    padding: 15px 10px !important;
    border-bottom: 2px solid #e2e8f0 !important;
}

.tbl_head03 td {
    padding: 20px 10px !important;
    border-bottom: 1px solid #f1f5f9 !important;
    color: #334155 !important;
    font-size: 1.45rem !important;
    vertical-align: middle !important;
}

/* 체크박스 정렬 */
.selec_chk + label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}
.selec_chk + label span {
    width: 20px;
    height: 20px;
    border: 2px solid #cbd5e1;
    border-radius: 5px;
    display: inline-block;
    position: relative;
    margin-right: 8px;
    transition: 0.2s;
    background: #fff;
}
.selec_chk:checked + label span {
    background: #2B5C17;
    border-color: #2B5C17;
}
.selec_chk:checked + label span::after {
    content: "✓";
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* 상품 정보 칸 정합 */
.td_prd {
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: left;
}
.td_prd img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    object-fit: cover;
}
.prd_name {
    font-size: 1.55rem !important;
    color: #1e293b !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}
.prd_name:hover {
    color: #2B5C17 !important;
}
.sod_opt {
    font-size: 1.25rem;
    color: #64748b;
    margin-top: 5px;
}

.td_num, .td_numbig, .td_dvr {
    text-align: center !important;
    font-weight: 600 !important;
}
.total_prc {
    color: #1e293b !important;
    font-weight: 800 !important;
    font-size: 1.6rem !important;
}

/* 2. 삭제 및 비우기 버튼 */
.btn_cart_del {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}
.btn_cart_del button {
    height: 38px;
    padding: 0 16px;
    border-radius: 8px;
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #64748b;
}
.btn_cart_del button:hover {
    background: #f8fafc;
    color: #1e293b;
    border-color: #cbd5e1;
}

/* 3. 총 합계 가격판 리뉴얼 */
#sod_bsk_tot {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 25px 30px;
    margin-bottom: 40px;
}

#sod_bsk_tot ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

@media(min-width: 768px) {
    #sod_bsk_tot ul {
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
    }
}

#sod_bsk_tot li {
    font-size: 1.5rem;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

@media(min-width: 768px) {
    #sod_bsk_tot li {
        justify-content: center;
        gap: 15px;
        border-right: 1px solid #e2e8f0;
    }
    #sod_bsk_tot li:last-child {
        border-right: none;
    }
}

#sod_bsk_tot li span {
    font-weight: 600;
}

#sod_bsk_tot li strong {
    font-size: 2.0rem;
    color: #1e293b;
    font-weight: 800;
}

#sod_bsk_tot li.sod_bsk_cnt strong {
    color: #2B5C17;
    font-size: 2.4rem;
}

/* 4. 하단 액션 버튼 그룹 */
#sod_bsk_act {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

#sod_bsk_act a.btn01, #sod_bsk_act button.btn_submit {
    height: 54px;
    padding: 0 40px;
    border-radius: 12px;
    font-size: 1.6rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none !important;
}

#sod_bsk_act a.btn01 {
    background: #f1f5f9;
    color: #475569 !important;
    border: 1px solid #e2e8f0;
}
#sod_bsk_act a.btn01:hover {
    background: #e2e8f0;
    color: #1e293b !important;
}

#sod_bsk_act button.btn_submit {
    background: #2B5C17;
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(71, 192, 216, 0.3);
}
#sod_bsk_act button.btn_submit:hover {
    background: #39b0c8;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(71, 192, 216, 0.4);
}
