/* BASIC css start */
/* ===== 통합장바구니 리뉴얼 - 1280px ===== */

#cartWrap {
    font-family: 'Pretendard Variable', 'Pretendard', 'Malgun Gothic', sans-serif;
    font-size: 14px;
    color: #333;
}
#cartWrap .page-body { padding-bottom: 60px; }

/* ===== 페이지 타이틀 ===== */
#cartWrap .tit-page { margin-bottom: 0; }
#cartWrap .tit-page img { display: none; }
#cartWrap .tit-page::after {
    content: 'SHOPPING CART';
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: #111;
    padding-bottom: 14px;
    border-bottom: 2px solid #141414;
    margin-bottom: 24px;
    letter-spacing: 1px;
}

/* ===== 정기배송 탭 ===== */
#cartWrap .carttabWrap { margin-bottom: 24px; }
#cartWrap .cart-tab { height: auto; margin: 0; border-bottom: 2px solid #141414; display: flex; }
#cartWrap .cart-tab::after { display: none; }
#cartWrap .cart-tab li {
    flex: 1;
    height: auto;
    margin-left: 0;
    border: 1px solid #e0e0e0;
    border-bottom: none;
    background: #f8f8f8;
    margin-right: 4px;
    border-radius: 4px 4px 0 0;
}
#cartWrap .cart-tab li:last-child { margin-right: 0; }
#cartWrap .cart-tab li a {
    display: block;
    height: 48px;
    line-height: 48px;
    font-size: 15px;
    font-weight: 600;
    color: #888;
    text-align: center;
    text-decoration: none;
    background: none;
    transition: all 0.2s;
}
#cartWrap .cart-tab li.now {
    position: relative;
    z-index: 1;
    height: auto;
    border: 2px solid #141414;
    border-bottom: none;
    background: #fff;
}
#cartWrap .cart-tab li.now a { color: #111; height: 46px; line-height: 46px; }

/* ===== 섹션 타이틀 ===== */
#cartWrap .tit-cart {
    margin-top: 30px;
    margin-bottom: 0;
}
#cartWrap .tit-cart img { display: none; }
#cartWrap .tit-cart::after {
    content: '';
    display: block;
    height: 0;
}
/* 장바구니 담긴 상품 타이틀 */
#cartWrap .table-fill-prd:first-of-type { margin-top: 0; }

/* ===== 상품 테이블 공통 ===== */
#cartWrap .table-cart { margin-top: 8px; }
#cartWrap .table-cart table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    border-top: 2px solid #141414;
}
#cartWrap .table-cart thead th {
    padding: 12px 6px;
    font-size: 13px;
    font-weight: 700;
    color: #333;
    background: #f4f4f4;
    border-bottom: 1px solid #d0d0d0;
    border-right: 1px solid #e8e8e8;
    text-align: center;
}
#cartWrap .table-cart thead th:last-child { border-right: none; }
#cartWrap .table-cart tbody td {
    padding: 14px 6px;
    border-bottom: 1px solid #e8e8e8;
    border-right: 1px solid #f0f0f0;
    vertical-align: middle;
    font-size: 13px;
}
#cartWrap .table-cart tbody td:last-child { border-right: none; }
#cartWrap .table-cart tbody tr.nbg td { background: #fafafa; border-top: none; }

/* tfoot */
#cartWrap .table-cart tfoot td {
    padding: 12px 10px;
    border-top: 1px solid #d0d0d0;
    background: #f8f8f8;
    font-size: 13px;
    color: #555;
}
#cartWrap .table-cart tfoot strong { color: #141414; font-size: 15px; }

/* ===== 썸네일 ===== */
#cartWrap .thumb { width: 64px; height: 64px; margin: 0 auto; overflow: hidden; }
#cartWrap .thumb img { width: 64px; height: 64px; object-fit: cover; display: block; }

/* ===== 상품명 ===== */
#cartWrap .table-cart .tb-left a {
    font-size: 13px;
    font-weight: 600;
    color: #111;
    text-decoration: none;
    line-height: 1.5;
}
#cartWrap .table-cart .tb-left a:hover { color: #d4af6a; }

/* 선택사항 변경 버튼 */
#cartWrap .uni-opt { margin-top: 6px; }
#cartWrap .uni-opt a { font-size: 12px; color: #888; text-decoration: underline; }
#cartWrap .uni-opt img { display: none; }
#cartWrap .uni-opt a::after { content: '선택사항 변경/추가'; }

/* ===== 수량 스핀 ===== */
#cartWrap .opt-spin {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}
#cartWrap .opt-spin .txt-spin {
    width: 44px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    border: 1px solid #d0d0d0;
    border-radius: 3px;
    font-size: 13px;
    font-family: 'Pretendard Variable', 'Pretendard', sans-serif;
}
#cartWrap .opt-spin .btns {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
#cartWrap .opt-spin .btns a {
    display: block;
    width: 22px;
    height: 16px;
    border: 1px solid #d0d0d0;
    border-radius: 2px;
    background: #f8f8f8;
    text-align: center;
    font-size: 0;
    line-height: 0;
    transition: background 0.1s;
}
#cartWrap .opt-spin .btns a:hover { background: #e0e0e0; }
#cartWrap .opt-spin .btns .btn-up img,
#cartWrap .opt-spin .btns .btn-dw img { width: 12px; height: 8px; vertical-align: middle; }

/* ===== 가격 ===== */
#cartWrap .tb-price { color: #e53030; font-weight: 700; font-size: 14px; }
#cartWrap .tb-delivery { font-size: 13px; color: #555; }

/* ===== 관심/삭제 버튼 - img alt 기반 매칭 ===== */
#cartWrap .d-block { display: block; margin-bottom: 4px; }
#cartWrap .d-block:last-child { margin-bottom: 0; }
#cartWrap .d-block a img { display: none; }
#cartWrap .d-block a { font-size: 0; }

/* 관심상품 이동 버튼 */
#cartWrap .d-block a:has(img[alt="관심상품"])::after {
    content: '♡ 관심';
    font-size: 11px;
    color: #555;
    border: 1px solid #d0d0d0;
    padding: 3px 8px;
    border-radius: 3px;
    display: inline-block;
    transition: all 0.2s;
}
#cartWrap .d-block a:has(img[alt="관심상품"]):hover::after { border-color: #d4af6a; color: #d4af6a; }

/* 삭제 버튼 */
#cartWrap .d-block a:has(img[alt="삭제"])::after {
    content: '✕ 삭제';
    font-size: 11px;
    color: #888;
    border: 1px solid #d0d0d0;
    padding: 3px 8px;
    border-radius: 3px;
    display: inline-block;
    transition: all 0.2s;
}
#cartWrap .d-block a:has(img[alt="삭제"]):hover::after { border-color: #e53030; color: #e53030; }

/* 장바구니 담기 버튼 (관심 → 장바구니) */
#cartWrap .d-block a:has(img[alt="장바구니"])::after {
    content: '🛒 장바구니';
    font-size: 11px;
    color: #fff;
    background: #141414;
    padding: 3px 8px;
    border-radius: 3px;
    display: inline-block;
    transition: background 0.2s;
}
#cartWrap .d-block a:has(img[alt="장바구니"]):hover::after { background: #333; }

/* ===== 옵션 행 ===== */
#cartWrap .tb-opt { font-size: 12px; color: #888; padding-left: 70px !important; }
#cartWrap .tb-opt img[alt="옵션"] { display: none; }
#cartWrap .tb-opt::before { content: '└ '; color: #bbb; }

/* ===== 합계 영역 ===== */
#cartWrap .basket-totalprice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: auto;
    margin-top: 24px;
    padding: 16px 24px;
    border: 1px solid #e0e0e0;
    border-top: 2px solid #141414;
    border-radius: 0 0 4px 4px;
    background: #f8f8f8;
    font-size: 14px;
    color: #555;
}
#cartWrap .basket-totalprice .totalprice-img { float: none; padding: 0; }
#cartWrap .basket-totalprice .totalprice-img img { display: none; }
#cartWrap .basket-totalprice .totalprice-img::after {
    content: '합계';
    font-size: 16px;
    font-weight: 700;
    color: #111;
    letter-spacing: 1px;
}
#cartWrap .basket-totalprice .totalprice-txt {
    float: none;
    padding: 0;
    font-size: 14px;
    color: #555;
}
#cartWrap .basket-totalprice .totalprice-txt strong {
    font-size: 20px;
    font-weight: 700;
    color: #e53030;
}

/* 공급사 아이콘 */
#cartWrap .prov-icons { float: none; display: inline-block; margin-right: 6px; }
#cartWrap .prov-icons img { height: 18px; vertical-align: middle; }

/* ===== 회원 등급 ===== */
#cartWrap .mem-lvl {
    margin-top: 24px;
    padding: 14px 20px;
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: visible;
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 13px;
    color: #555;
    line-height: 1.6;
}
#cartWrap .mem-lvl .lvl-img img { height: 28px; }
#cartWrap .mem-lvl em { color: #d4af6a; font-style: normal; font-weight: 700; }

/* ===== 배송 메시지 ===== */
#cartWrap .delivery {
    margin-top: 14px;
    text-align: center;
    font-size: 13px;
    color: #888;
    padding: 10px;
    background: #f8f8f8;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

/* ===== 주문 컨트롤 버튼 ===== */
#cartWrap .btn-order-ctrl {
    margin-top: 24px;
    text-align: center;
    font-size: 0;
    line-height: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}
#cartWrap .btn-order-ctrl a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 28px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 3px;
    text-decoration: none;
    transition: all 0.2s;
    letter-spacing: 0.3px;
}
/* gif 이미지 숨김 + img alt 기반 매칭 */
#cartWrap .btn-order-ctrl a img { display: none; }

/* 주문하기 */
#cartWrap .btn-order-ctrl a:has(img[alt="주문하기"]) {
    background: #141414; color: #fff; border: 1px solid #141414;
}
#cartWrap .btn-order-ctrl a:has(img[alt="주문하기"])::after { content: '주문하기'; font-size: 14px; }
#cartWrap .btn-order-ctrl a:has(img[alt="주문하기"]):hover { background: #333; }

/* 선물하기 */
#cartWrap .btn-order-ctrl a:has(img[alt="선물하기"]) {
    background: #d4af6a; color: #141414; border: 1px solid #d4af6a;
}
#cartWrap .btn-order-ctrl a:has(img[alt="선물하기"])::after { content: '선물하기'; font-size: 14px; }
#cartWrap .btn-order-ctrl a:has(img[alt="선물하기"]):hover { background: #e8c587; }

/* 계속쇼핑하기 */
#cartWrap .btn-order-ctrl a:has(img[alt="계속쇼핑하기"]) {
    background: #fff; color: #555; border: 1px solid #d0d0d0;
}
#cartWrap .btn-order-ctrl a:has(img[alt="계속쇼핑하기"])::after { content: '계속쇼핑하기'; font-size: 14px; }
#cartWrap .btn-order-ctrl a:has(img[alt="계속쇼핑하기"]):hover { border-color: #141414; color: #111; }

/* 장바구니 비우기 */
#cartWrap .btn-order-ctrl a:has(img[alt="장바구니 비우기"]) {
    background: #fff; color: #888; border: 1px solid #d0d0d0;
}
#cartWrap .btn-order-ctrl a:has(img[alt="장바구니 비우기"])::after { content: '장바구니 비우기'; font-size: 14px; }
#cartWrap .btn-order-ctrl a:has(img[alt="장바구니 비우기"]):hover { border-color: #e53030; color: #e53030; }

/* 견적서 출력 */
#cartWrap .btn-order-ctrl a:has(img[alt="견적서 출력"]) {
    background: #fff; color: #666; border: 1px solid #d0d0d0;
}
#cartWrap .btn-order-ctrl a:has(img[alt="견적서 출력"])::after { content: '견적서 출력'; font-size: 14px; }
#cartWrap .btn-order-ctrl a:has(img[alt="견적서 출력"]):hover { border-color: #555; color: #333; }

/* ===== 간편결제 영역 ===== */
.cart-ft2 { margin-top: 16px; text-align: center; }

/* ===== 샵페이 스타일 (원본 유지) ===== */
#cartWrap .wish-opt { color: #FFA500; }
#nhn_btn { display: inline; }
#payco_order_btn { display: inline; }
#kakaopay_order_btn { display: inline; vertical-align: top; }
.__checkout_img_comm { visibility: unset !important; }
#cartWrap #shoppay_btn { display: inline; }

/* 옵션 상세 */
.tb-opt { }
.tb-opt .basket-option-detail { display: inline-block; vertical-align: top; padding-left: 8px; }
.tb-opt .basket-option-detail .basket-option-dlist li { margin-bottom: 5px; word-break: break-all; font-size: 12px; color: #666; }
.tb-opt .basket-option-detail .basket-option-dlist li img { width: 22px; height: 22px; vertical-align: middle; }

/* 정렬 유틸 */
.tb-center { text-align: center; }
.tb-left { text-align: left; padding-left: 6px; }
.tb-right { text-align: right; padding-right: 6px; }
.tb-bold { font-weight: 700; }
/* BASIC css end */

