﻿/* ============================================
   선택삭제/복사/이동 버튼 스타일 (관리자 버튼)
   ============================================ */
.btn_bo_adm li input[type="submit"] {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    height: 40px !important;
    padding: 0 15px !important;
    border-radius: 4px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    border: 1px solid #6c757d !important;
    background: #6c757d !important;
    color: #fff !important;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn_bo_adm li input[type="submit"]:hover {
    background: #5a6268 !important;
    border-color: #545b62 !important;
}

/* ============================================
   쇼핑몰 (프로젝트의뢰) 페이지 디자인 개선
   ============================================ */
/* 장바구니 레이아웃 */
#sod_bsk {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 1.25rem;
}

#sod_bsk .cart-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 0.625rem;
}

#sod_bsk .cart-header p {
    color: #666;
    font-size: 0.9375rem;
}

/* 장바구니 테이블 - 프리미엄 디자인 */
#sod_bsk .tbl_head01 {
    background: #fff;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 0.125rem 1rem rgba(0, 0, 0, 0.06);
}

#sod_bsk .tbl_head01 table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

#sod_bsk .tbl_head01 thead th {
    padding: 1rem 0.75rem;
    background: #f8f9fc;
    font-weight: 600;
    font-size: 0.875rem;
    color: #333;
    border-bottom: 2px solid #e5e5e5;
    text-align: center;
    white-space: nowrap;
}

#sod_bsk .tbl_head01 tbody td {
    height: auto;
    padding: 1.25rem 0.75rem;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
    font-size: 0.875rem;
    color: #555;
}

#sod_bsk .tbl_head01 tbody tr:hover {
    background: #fafbfc;
}

#sod_bsk .tbl_head01 tbody tr:last-child td {
    border-bottom: none;
}

#sod_bsk .tbl_head01 .td_prd {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
}

#sod_bsk .sod_img {
    flex-shrink: 0;
}

#sod_bsk .sod_img img {
    width: 5rem;
    height: 5rem;
    object-fit: cover;
    border-radius: 0.5rem;
    border: 1px solid #eee;
}

#sod_bsk .sod_name {
    flex: 1;
}

#sod_bsk .sod_name .prd_name {
    display: block;
    margin-bottom: 0.25rem;
}

#sod_bsk .sod_name .prd_name b {
    font-size: 0.9375rem;
    color: #333;
    font-weight: 600;
}

#sod_bsk .sod_name .prd_name:hover b {
    color: #e91e63;
}

#sod_bsk .sod_opt {
    font-size: 0.8125rem;
    color: #888;
    margin-top: 0.5rem;
    line-height: 1.5;
}

#sod_bsk .td_num,
#sod_bsk .td_numbig {
    text-align: center;
    font-weight: 500;
    color: #333;
}

#sod_bsk .total_prc {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary-color, #e91e63);
}

#sod_bsk .chk_box {
    width: 3rem;
    text-align: center;
}

#sod_bsk .empty_table {
    padding: 3rem !important;
    color: #888;
    font-size: 0.9375rem;
    text-align: center;
}

/* 장바구니 버튼 영역 */
#sod_bsk .btn_cart_del {
    margin-top: 1rem;
    padding: 0.75rem 0;
    border-top: 1px solid #eee;
    display: flex;
    gap: 0.5rem;
}

#sod_bsk #sod_bsk_tot {
    background: linear-gradient(135deg, #f8f9fc 0%, #eef1f5 100%);
    padding: 1.5rem 2rem;
    border-radius: 0.75rem;
    text-align: right;
    margin-top: 1.5rem;
    border: 1px solid #e5e5e5;
}

#sod_bsk #sod_bsk_tot ul {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

#sod_bsk #sod_bsk_tot .sod_bsk_cnt {
    font-size: 1rem;
    color: #333;
}

#sod_bsk #sod_bsk_tot .sod_bsk_cnt span {
    color: #555;
}

#sod_bsk #sod_bsk_tot strong,
#sod_bsk #sod_bsk_tot .price-highlight {
    color: var(--primary-color, #e91e63);
    font-size: 1.75rem;
    font-weight: 800;
    margin: 0 0.25rem;
}

#sod_bsk #sod_bsk_act {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

/* 프로젝트 의뢰하기 버튼 강조 */
#sod_bsk #sod_bsk_act .btn_submit {
    background: linear-gradient(135deg, var(--primary-color, #e91e63), var(--primary-dark, #c2185b)) !important;
    border: none !important;
    padding: 1rem 2.5rem !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    border-radius: 0.5rem !important;
    box-shadow: 0 0.25rem 1rem rgba(233, 30, 99, 0.3);
    transition: all 0.3s ease;
}

#sod_bsk #sod_bsk_act .btn_submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.375rem 1.25rem rgba(233, 30, 99, 0.4);
}

#sod_bsk #sod_bsk_act .btn_b01 {
    padding: 1rem 1.5rem !important;
    font-size: 0.9375rem !important;
    border-radius: 0.5rem !important;
}

/* 옵션 수정 버튼 */
#sod_bsk .sod_option_btn {
    margin-top: 0.5rem;
}

#sod_bsk .sod_option_btn .mod_options {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

/* 체크박스 스타일 */
#sod_bsk .chk_box input[type="checkbox"] {
    width: 1.125rem;
    height: 1.125rem;
    accent-color: var(--primary-color, #e91e63);
}

/* 반응형 - 태블릿 */
@media (max-width: 992px) {
    #sod_bsk {
        padding: 1.5rem 1rem;
    }

    #sod_bsk .tbl_head01 thead th,
    #sod_bsk .tbl_head01 tbody td {
        padding: 0.875rem 0.5rem;
        font-size: 0.8125rem;
    }

    #sod_bsk .sod_img img {
        width: 4rem;
        height: 4rem;
    }
}

/* 반응형 - 모바일 */
@media (max-width: 768px) {
    #sod_bsk {
        padding: 1rem 0.75rem;
    }

    #sod_bsk .cart-header h2 {
        font-size: 1.25rem;
    }

    #sod_bsk .tbl_head01 {
        border-radius: 0.5rem;
    }

    #sod_bsk .tbl_head01 thead th,
    #sod_bsk .tbl_head01 tbody td {
        padding: 0.75rem 0.375rem;
        font-size: 0.75rem;
    }

    #sod_bsk .tbl_head01 .td_prd {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    #sod_bsk .sod_img img {
        width: 3.5rem;
        height: 3.5rem;
    }

    #sod_bsk .sod_name .prd_name b {
        font-size: 0.8125rem;
    }

    #sod_bsk .total_prc {
        font-size: 0.9375rem;
    }

    #sod_bsk #sod_bsk_tot {
        padding: 1rem;
        border-radius: 0.5rem;
    }

    #sod_bsk #sod_bsk_tot strong,
    #sod_bsk #sod_bsk_tot .price-highlight {
        font-size: 1.25rem;
    }

    #sod_bsk #sod_bsk_act {
        flex-direction: column;
        gap: 0.5rem;
    }

    #sod_bsk #sod_bsk_act .btn_submit,
    #sod_bsk #sod_bsk_act .btn_b01 {
        width: 100%;
        padding: 0.875rem 1rem !important;
    }

    #sod_bsk .btn_cart_del {
        flex-wrap: wrap;
    }

    /* 모바일에서 일부 컬럼 숨김 */
    #sod_bsk .tbl_head01 thead th:nth-child(3),
    #sod_bsk .tbl_head01 tbody td:nth-child(3) {
        display: none;
    }
}

/* ============================================
   장바구니 옵션 수정 레이어 - 컴팩트 모달
   ============================================ */
/* 배경 오버레이 */
.mod_option_bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    backdrop-filter: blur(2px);
}

/* 옵션 수정 폼 - 모달 형태 */
#mod_option_frm {
    position: fixed !important;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    z-index: 9999;
    width: 90%;
    max-width: 480px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 1.25rem 1.5rem;
    animation: modalFadeIn 0.2s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* 모달 헤더 */
#mod_option_frm h2 {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #eee;
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#mod_option_frm h2::before {
    content: '⚙️';
    font-size: 1rem;
}

/* 섹션 제목 숨기거나 간소화 */
#mod_option_frm h3 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #555;
    margin: 0.75rem 0 0.5rem 0;
}

#mod_option_frm .option_wr {
    margin-bottom: 0.75rem;
}

/* 선택된 옵션 리스트 - 가로 한줄 레이아웃 */
#mod_option_frm #sit_sel_option {
    margin-bottom: 1rem;
}

#mod_option_frm #sit_opt_added {
    list-style: none;
    margin: 0;
    padding: 0;
}

#mod_option_frm #sit_opt_added li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: #f8f9fc;
    border-radius: 8px;
    border: 1px solid #eee;
}

#mod_option_frm #sit_opt_added li:last-child {
    margin-bottom: 0;
}

/* 옵션명 */
#mod_option_frm .opt_name {
    flex: 1;
    min-width: 0;
}

#mod_option_frm .sit_opt_subj {
    font-size: 0.8125rem;
    color: #333;
    font-weight: 500;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 수량 조절 영역 - 인라인 */
#mod_option_frm .opt_count {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
}

#mod_option_frm .btn_frmline {
    width: 28px;
    height: 28px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.75rem;
    color: #666;
    transition: all 0.2s;
}

#mod_option_frm .btn_frmline:hover {
    background: #f0f0f0;
    border-color: #ccc;
}

#mod_option_frm .num_input {
    width: 50px !important;
    height: 28px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
}

#mod_option_frm .sit_opt_prc {
    font-size: 0.75rem;
    color: #888;
    white-space: nowrap;
}

#mod_option_frm .sit_opt_del {
    width: 24px;
    height: 24px;
    border: none;
    background: #ff5a5a;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.625rem;
    transition: all 0.2s;
}

#mod_option_frm .sit_opt_del:hover {
    background: #e53e3e;
    transform: scale(1.1);
}

/* 총액 표시 */
#mod_option_frm #sit_tot_price {
    padding: 0.75rem;
    background: #fff3cd;
    border-radius: 8px;
    text-align: right;
    font-size: 0.875rem;
    margin-top: 0.75rem;
}

#mod_option_frm #sit_tot_price strong {
    font-size: 1.125rem;
    color: #e91e63;
}

/* 버튼 영역 */
#mod_option_frm .btn_confirm {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

#mod_option_frm .btn_submit {
    flex: 1;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #e91e63 0%, #c2185b 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

#mod_option_frm .btn_submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.3);
}

#mod_option_frm .btn_close {
    width: 44px;
    height: 44px;
    background: #f0f0f0;
    border: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    color: #666;
    transition: all 0.2s;
}

#mod_option_frm .btn_close:hover {
    background: #e0e0e0;
}

/* 모바일 옵션 모달 */
@media (max-width: 576px) {
    #mod_option_frm {
        width: 95%;
        max-width: none;
        padding: 1rem;
    }

    #mod_option_frm #sit_opt_added li {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    #mod_option_frm .opt_name {
        width: 100%;
        margin-bottom: 0.25rem;
    }

    #mod_option_frm .opt_count {
        width: 100%;
        justify-content: space-between;
    }
}