@charset "utf-8";
/* 장터방 스킨 — basic 스킨 기반 + 장터방 전용 스타일 */

/* ============================================================ */
/* 0) 장터방: 좌측 사이드바(#aside1)만 숨김 (본문 폭은 그대로)   */
/*    list/view 스킨이 body에 .market-hide-aside 부여           */
/* ============================================================ */
body.market-hide-aside #aside1 {
    display: none;
}

/* ============================================================ */
/* 1) basic 스킨의 CSS — 호환성을 위해 모두 유지                 */
/* ============================================================ */

/* 게시판 목록 */
#bo_list .td_board {width:120px;text-align:center}
#bo_list .td_chk {width:30px;text-align:center}
#bo_list .td_date {width:60px;text-align:center}
#bo_list .td_datetime {width:110px;text-align:center}
#bo_list .td_group {width:100px;text-align:center}
#bo_list .td_mb_id {width:100px;text-align:center}
#bo_list .td_mng {width:80px;text-align:center}
#bo_list .td_name {width:100px;text-align:left}
#bo_list .td_nick {width:100px;text-align:center}
#bo_list .td_num {width:50px;text-align:center}
#bo_list .td_numbig {width:80px;text-align:center}

#bo_list .txt_active {color:#5d910b}
#bo_list .txt_expired {color:#ccc}

.bo_fx {margin-bottom:5px;zoom:1}
.bo_fx:after {display:block;visibility:hidden;clear:both;content:""}

/* 게시판 읽기 */
#bo_v {margin-bottom:20px;padding-bottom:20px}
#bo_v_table {position:absolute;top:0;right:16px;margin:0;padding:0 5px;height:25px;background:#ff3061;color:#fff;font-weight:bold;line-height:2.2em}
#bo_v_title {padding:10px 0;font-size:1.2em}
#bo_v_atc {min-height:200px;height:auto !important;height:200px}
#bo_v_img {margin:0 0 10px;width:100%;overflow:hidden;zoom:1}
#bo_v_img:after {display:block;visibility:hidden;clear:both;content:""}
#bo_v_img img {margin-bottom:20px;max-width:100%;height:auto}
#bo_v_con {margin-bottom:30px;width:100%;line-height:1.7em;word-break:break-all;overflow:hidden}
#bo_v_con a {color:#000;text-decoration:underline}
#bo_v_con img {max-width:100%;height:auto}

/* 댓글 (basic 그대로 유지) */
#bo_vc {margin:0 0 20px;padding:20px 20px 10px;border:1px solid #e5e8ec;background:#f5f8f9}
#bo_vc h2 {margin-bottom:10px}
#bo_vc article {padding:0 0 10px;border-top:1px dotted #ccc}
#bo_vc header {position:relative;padding:15px 0 5px}
#bo_vc .sv_wrap {margin-right:15px}
#bo_vc .member, #bo_vc .guest, #bo_vc .sv_member, #bo_vc .sv_guest {font-weight:bold}
.bo_vc_hdinfo {display:inline-block;margin:0 15px 0 5px}
#bo_vc p {padding:0 0 5px;line-height:1.8em}
#bo_vc_empty {margin:0;padding:20px !important;text-align:center}

/* ============================================================ */
/* 2) 장터방 전용 스타일 — .market-* 클래스만 사용              */
/*    (글로벌 클래스 .card, .container 등은 절대 건드리지 않음)  */
/* ============================================================ */

/* 카드 공통
 *
 * .market-card는 .col-* 컬럼 안에 들어가는 카드.
 * width: 100% + box-sizing: border-box로 부모 컬럼을 절대 넘지 않게 보장.
 * 이 안전장치 없이는 일부 환경에서 카드가 컬럼 폭을 넘어 펼쳐지는 현상 발생.
 */
.market-card {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
    background: #FFFFFF;
}
.market-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

/* 승인 대기 카드 — 노란 테두리 + 살짝 다른 배경 */
.market-card-pending {
    border-color: #FFC107;
    background: #FFFEF7;
    position: relative;
}

/* 카드 썸네일 영역 (4:3 비율 고정)
 *
 * aspect-ratio 사용하지 않고 padding-top 패딩 트릭으로 통일.
 * 이유: aspect-ratio + 부모 .card .card-body 환경에서 컨테이너 폭 계산이
 *      어긋나며 이미지가 카드를 뚫고 표시되는 이슈 발견됨.
 *      padding-top 방식은 모든 브라우저에서 동일하게 동작.
 *
 * 구조:
 *   .market-thumb-wrap (position: relative; padding-top: 75%)
 *     └ .market-thumb (position: absolute; top/left/right/bottom: 0)
 */
.market-thumb-wrap {
    display: block;
    position: relative;
    padding-top: 75%;       /* 4:3 비율 = height = width * 0.75 */
    background: #F5F5F5;
    overflow: hidden;
    width: 100%;
}
.market-thumb {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.market-thumb-empty {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%;
    height: 100%;
    background: #F5F5F5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #C5C5C5;
    font-size: 48px;
    flex-direction: column;
}
/* 리스트뷰의 작은 썸네일은 절대위치가 필요 없음 — 별도 처리 */
.market-list-thumb .market-thumb-empty {
    position: static;
    width: 100%;
    height: 100%;
}
/* 상세화면 — 대표 이미지 없을 때 큰 placeholder */
.market-thumb-empty-lg {
    position: relative;       /* 상세화면에선 부모가 .market-view-image라 별도 비율 처리 */
    padding-top: 75%;
    width: 100%;
    font-size: 72px;
    display: block;           /* flex 해제 후 안쪽 컨텐츠는 ::before로 잡거나 별도 자식으로 */
    background: #F5F5F5;
    color: #C5C5C5;
    border-radius: 4px;
}
.market-thumb-empty-lg > * {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
}

/* 카테고리 뱃지 (이미지 위 좌상단) */
.market-cat-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.92);
    color: #333;
}
.market-cat-badge-inline {
    position: static;
    display: inline-block;
}

/* 카테고리별 색상 톤 */
.badge-cat-1 { background: #E1F5EE; color: #0F6E56; }  /* 건강식품 — 그린 */
.badge-cat-2 { background: #FAEEDA; color: #854F0B; }  /* 화장품 — 앰버 */
.badge-cat-3 { background: #E6F1FB; color: #0C447C; }  /* 생활용품 — 블루 */
.badge-cat-4 { background: #FBEAF0; color: #72243E; }  /* 의류·잡화 — 핑크 */
.badge-cat-5 { background: #EEEDFE; color: #3C3489; }  /* 교육·강의 — 퍼플 */
.badge-cat-6 { background: #FAECE7; color: #712B13; }  /* 서비스 — 코랄 */
.badge-cat-7 { background: #F1EFE8; color: #444441; }  /* 기타 — 그레이 */

/* 카드 위(이미지 오버레이) 뱃지는 반투명 화이트 배경 */
.market-thumb-wrap .market-cat-badge {
    background: rgba(255, 255, 255, 0.92);
}
.market-thumb-wrap .badge-cat-1 { color: #0F6E56; background: rgba(255,255,255,0.92); }
.market-thumb-wrap .badge-cat-2 { color: #854F0B; background: rgba(255,255,255,0.92); }
.market-thumb-wrap .badge-cat-3 { color: #0C447C; background: rgba(255,255,255,0.92); }
.market-thumb-wrap .badge-cat-4 { color: #72243E; background: rgba(255,255,255,0.92); }
.market-thumb-wrap .badge-cat-5 { color: #3C3489; background: rgba(255,255,255,0.92); }
.market-thumb-wrap .badge-cat-6 { color: #712B13; background: rgba(255,255,255,0.92); }
.market-thumb-wrap .badge-cat-7 { color: #444441; background: rgba(255,255,255,0.92); }

/* 승인 대기 뱃지 */
.market-pending-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 500;
    background: #FFC107;
    color: #fff;
}
.market-pending-badge-inline {
    position: static;
    display: inline-block;
}

/* 카드 전체를 세로 flex로 — 본문이 늘어나며 푸터(구매버튼)를 항상 아래로 밀착
 * .market-card.h-100 + 부모 .col-*.mb-4 환경에서 카드 높이 통일 */
.market-card {
    display: flex;
    flex-direction: column;
}
.market-thumb-wrap {
    flex: 0 0 auto;   /* 이미지 영역은 고정 */
}

/* 카드 본문 */
.market-card .card-body,
.market-card .market-card-body {
    padding: 16px;
    flex: 1 1 auto;          /* 본문이 남는 공간을 채워 카드 높이 통일 */
    display: flex;
    flex-direction: column;
}
.market-title {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 42px;
}
.market-title a {
    color: #222;
    text-decoration: none;
}
.market-title a:hover {
    color: #1D9E75;
}
.market-price {
    color: #D85A30;
    font-weight: 500;
    font-size: 17px;
}

/* 등록자 영역 — 본문 맨 아래로 밀착 (margin-top:auto) */
.market-writer {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;        /* 위 요소와 거리 벌려 항상 본문 하단에 */
    padding-top: 8px;
}
.market-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #E6F1FB;
    color: #185FA5;
    font-size: 10px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.market-writer-text {
    font-size: 11px;
    color: #999;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.market-card .card-footer {
    background: #fff !important;
    padding: 8px 16px 16px;
    border-top: none;
    flex: 0 0 auto;          /* 푸터는 고정 */
}

/* 리스트형 뷰 */
.market-list-item {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    background: #fff;
    padding: 16px;
    margin-bottom: 10px;
    transition: box-shadow 0.2s;
}
.market-list-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.market-list-thumb {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    overflow: hidden;
    background: #F5F5F5;
    display: block;
    flex-shrink: 0;
}
.market-list-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.market-list-thumb .market-thumb-empty {
    font-size: 24px;
}
.market-list-title {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 4px;
    line-height: 1.4;
}
.market-list-title a {
    color: #222;
    text-decoration: none;
}
.market-list-title a:hover {
    color: #1D9E75;
}
.market-list-action {
    min-width: 160px;
    flex-shrink: 0;
    white-space: nowrap;          /* "10,000원" "바로가기" 등이 한 줄로 유지되도록 */
}
.market-list-action .btn {
    white-space: nowrap;          /* 버튼 내 텍스트도 줄바꿈 방지 */
}
.market-list-action .market-price {
    white-space: nowrap;
}

/* 카테고리 필터 칩 사이 간격 */
.market-cat-filter .btn {
    margin-right: 4px;
    margin-bottom: 4px;
    border-radius: 14px;
    padding: 3px 11px;
    font-size: 12px;
    line-height: 1.5;
}

/* 뷰 토글 버튼 활성 상태 */
.view-toggle-btn.active {
    background: #28a745;
    border-color: #28a745;
    color: #fff;
}

/* ============================================================ */
/* 상세 페이지 (view.skin.php) — v3 시안                        */
/* ============================================================ */

/* 상단 목록바 (그누보드 빨간 #bo_v_table 대체) */
.market-view-topbar {
    padding: 12px 20px;
    border-bottom: 0.5px solid rgba(0,0,0,0.08);
}
.market-view-topbar a {
    font-size: 13px;
    color: #666;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.market-view-topbar a:hover {
    color: #1D9E75;
}

/* 메인 레이아웃 */
.market-view-main {
    align-items: stretch;
}

/* 좌측 이미지 — 컬럼 전체 폭(아래 버튼과 동일 폭), 정사각 비율 */
.market-view-image {
    width: 100%;
    margin: 0 0 14px;
}
.market-view-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    display: block;
}

/* 뱃지 (가로, 중앙) */
.market-view-badges {
    display: flex;
    gap: 6px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

/* 우측 정보 영역 — 세로 flex (메타를 하단 밀착) */
.market-view-right {
    display: flex;
    flex-direction: column;
}
.market-view-title {
    font-size: 23px;
    font-weight: 600;
    line-height: 1.35;
}

/* 수수료 강조 박스 */
.market-view-commission {
    background: #EAF6F0;
    border-radius: 12px;
    padding: 16px 18px;
}
.market-view-commission-label {
    font-size: 12px;
    color: #0F6E56;
    opacity: 0.85;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.market-view-commission-amount {
    font-size: 26px;
    font-weight: 700;
    color: #0F6E56;
    line-height: 1.15;
}

/* 작성자·날짜·조회 (우측 하단) */
.market-view-meta {
    margin-top: auto;
    padding-top: 16px;
    font-size: 12px;
    color: #999;
    text-align: right;
}

/* 팔아주기 버튼 밑 안내 문구 — 시안 크기로 키움 */
.market-inquiry-hint {
    text-align: center;
    font-size: 13px;
    color: #888;
    margin: 10px 0 0;
}

/* ============================================================ */
/* 팔아주기 문의(댓글) 영역 — market 전용 댓글 스킨               */
/* ============================================================ */
.market-comment,
.market-comment-write {
    border: 0.5px solid rgba(0,0,0,0.08);
    border-radius: 12px;
    margin: 0 24px 16px;
}
.market-comment-head {
    background: #FAFAF8;
    border-bottom: 0.5px solid rgba(0,0,0,0.06);
    padding: 14px 18px;
}
.market-comment-title {
    font-size: 15px;
    font-weight: 500;
    color: #333;
}
.market-comment-sub {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}
/* 댓글 입력 본문 */
.market-comment-body {
    padding: 16px 18px;
}
.market-comment-guest {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.market-comment-guest .form-control {
    flex: 1;
    min-width: 120px;
}
.market-comment-captcha {
    margin-bottom: 10px;
}
.market-comment-input-wrap {
    position: relative;
}
.market-comment-textarea {
    width: 100%;
    min-height: 90px;
    border: 0.5px solid rgba(0,0,0,0.15);
    border-radius: 10px;
    padding: 12px;
    font-size: 14px;
    resize: vertical;
    box-sizing: border-box;
}
.market-comment-textarea:focus {
    outline: none;
    border-color: #1D9E75;
}
.market-comment-charcnt {
    display: block;
    text-align: right;
    font-size: 11px;
    color: #aaa;
    margin-bottom: 4px;
}
.market-comment-submit {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}
/* 문의 남기기 버튼 — 전용 버튼이지만 폭은 내용만큼 */
.market-comment-submit-btn {
    width: auto;
    padding: 10px 24px;
    font-size: 14px;
}

/* ---- 장터방 전용 버튼 (부트스트랩/테마 영향 차단) ---- */
/* 공통 베이스 */
.market-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    box-sizing: border-box;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    border: 0.5px solid transparent;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.market-btn:hover, .market-btn:focus {
    text-decoration: none;
}
/* 주 버튼 (팔아주기 문의) — 초록 채움, 크게 */
.market-btn-primary {
    background: #1D9E75;
    color: #fff;
    padding: 15px;
    font-size: 15px;
}
.market-btn-primary:hover, .market-btn-primary:focus {
    background: #178A66;
    color: #fff;
}
/* 보조 버튼 (상품 페이지 보기) — 회색 아웃라인 */
.market-btn-outline {
    background: #fff;
    color: #666;
    border-color: rgba(0,0,0,0.2);
    padding: 11px;
    font-size: 13px;
}
.market-btn-outline:hover, .market-btn-outline:focus {
    background: #F7F7F7;
    color: #333;
}

/* ---- 글 관리 버튼 (수정/삭제/목록/글쓰기) ---- */
.market-manage-toolbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    padding: 0 24px 16px;
}
.market-manage-group {
    display: inline-flex;
    gap: 6px;
}
.market-mbtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    border-radius: 8px;
    border: 0.5px solid rgba(0,0,0,0.2);
    background: #fff;
    color: #666;
    font-size: 13px;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
}
.market-mbtn:hover, .market-mbtn:focus {
    background: #F7F7F7;
    color: #333;
    text-decoration: none;
}

/* ============================================================ */
/* 3) 등록 페이지 (write.skin.php)                              */
/* ============================================================ */

/* 상단 그룹: 좌측 이미지 + 우측 카테고리/상품명 */
.market-write-top {
    display: flex;
    gap: 20px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.market-upload-col {
    flex: 0 0 200px;
}
.market-write-fields {
    flex: 1 1 240px;
    min-width: 240px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* 이미지 업로드 박스 (클릭하면 file input 열림) */
.market-upload-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    /* 정사각형 비율 (padding-top 트릭 대신 고정 높이로 단순화) */
    height: 200px;
    border: 1.5px dashed #C5C5C5;
    border-radius: 12px;
    background: #FAFAFA;
    color: #999;
    cursor: pointer;
    overflow: hidden;
    margin: 0;
    transition: border-color 0.15s, background 0.15s;
}
.market-upload-box:hover {
    border-color: #28a745;
    background: #F4FBF6;
}
.market-upload-guide {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
}
.market-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 가격 + 구매링크 한 줄 배치 */
.market-write-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.market-price-col {
    flex: 0 0 200px;
}
.market-link-col {
    flex: 1 1 240px;
    min-width: 240px;
}

/* 카테고리 + 거래형태 한 줄 배치 */
.market-write-cat-deal {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.market-write-cat-deal .form-group {
    min-width: 130px;
}

/* "팔아주는 분께 드리는 조건" 박스 (수수료 강조) */
.market-deal-box {
    background: #EAF6F0;
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 20px;
}
.market-deal-box-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #0F6E56;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.market-deal-box-sub {
    font-size: 11px;
    color: #0F6E56;
    opacity: 0.7;
    font-weight: 400;
}
.market-deal-box label {
    color: #0F6E56;
    font-weight: 500;
}
/* 수수료 유형 select / 조건부 값 입력 컬럼 */
.market-fee-type-col {
    flex: 1 1 150px;
    min-width: 130px;
}
.market-fee-value-col {
    flex: 1 1 150px;
    min-width: 130px;
}
/* 협의/없음 선택 시 안내 문구 (입력칸 자리) */
.market-fee-none-msg {
    font-size: 12px;
    color: #0F6E56;
    opacity: 0.7;
    margin: 0;
    padding-top: 9px;
}

/* ============================================================ */
/* 4) v3 영업 연결형 — 수수료 중심 재설계                       */
/* ============================================================ */

/* 헤더 히어로 (취지 안내) */
.market-hero {
    background: #E6F1FB;          /* 연한 블루 — 정보/안내 톤 */
    display: block;              /* card-header 기본 flex 무력화 */
}
.market-hero-title {
    color: #0C447C;
    /* .navbar의 가운데 정렬·flex 무력화 → 왼쪽 정렬 */
    display: block !important;
    justify-content: flex-start !important;
    text-align: left;
    margin: 0 0 8px 0;
    min-height: auto;
}
.market-hero-desc {
    color: #185FA5;
}
.market-hero-desc strong {
    color: #0C447C;
}
/* 헤더 버튼 — 시안 크기에 맞게 (작고 둥글게) */
.market-hero .btn {
    border-radius: 8px;
    font-size: 13px;
    padding: 8px 16px;
}

/* 처음 안내 박스 */
.market-intro-box {
    background: #FFFFFF;
    border: 0.5px solid rgba(0,0,0,0.08);
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 13px;
    color: #444;
}

/* 거래형태 뱃지 (회색 톤 — 카테고리 색뱃지와 구분) */
.market-deal-badge {
    display: inline-block;
    background: #F1EFE8;
    color: #5F5E5A;
    font-size: 11px;
    font-weight: 500;
    padding: 3px 9px;
    border-radius: 12px;
    white-space: nowrap;
}

/* 거래형태 필터 칩 — 카테고리와 동일한 둥근 형태 */
.market-deal-filter .btn {
    border-radius: 14px;
    padding: 3px 11px;
    font-size: 12px;
    line-height: 1.5;
}

/* 리스트뷰 "팔아주기 문의" 버튼도 둥글게 */
.market-list-action .btn-success {
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
}

/* --- 가로형 카드 (수수료 강조형) --- */
.market-card-h {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
/* 상단: 이미지 + 정보 */
.market-card-top {
    display: flex;
    gap: 0;
}
.market-h-thumb {
    width: 110px;
    flex-shrink: 0;
    position: relative;
    background: #F5F5F5;
    display: block;
    align-self: stretch;
    min-height: 110px;
}
.market-h-thumb img {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.market-h-thumb .market-thumb-empty {
    position: absolute;
    font-size: 28px;
}
.market-h-info {
    flex: 1 1 auto;
    padding: 12px 14px;
    min-width: 0;             /* 자식 ellipsis 동작용 */
    display: flex;
    flex-direction: column;
}
.market-h-badges {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}
.market-h-price {
    font-size: 13px;
    color: #777;
    margin: 0;
}

/* 하단: 수수료 강조 영역 */
.market-card-deal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    background: #EAF6F0;          /* 연한 그린 — 수수료/혜택 강조 */
    border-top: 0.5px solid rgba(0,0,0,0.06);
    margin-top: auto;            /* 카드 높이 다를 때 항상 아래 정렬 */
}
.market-deal-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.market-deal-label {
    font-size: 11px;
    color: #0F6E56;
    opacity: 0.8;
    margin-bottom: 2px;
}
.market-deal-amount {
    font-size: 16px;
    font-weight: 500;
    color: #0F6E56;
}
.market-deal-btn {
    white-space: nowrap;
    flex-shrink: 0;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    padding: 7px 14px;
}

/* 관리자 승인 영역 (카드 하단 별도 줄) */
.market-card-admin {
    display: flex;
    gap: 6px;
    padding: 8px 14px;
    border-top: 0.5px solid rgba(0,0,0,0.06);
}
.market-card-admin .btn {
    flex: 1;
}

/* 리스트뷰 수수료 표시 */
.market-list-commission {
    line-height: 1.2;
}
.market-list-commission .market-deal-label {
    font-size: 10px;
    display: block;
}
.market-list-commission .market-deal-amount {
    font-size: 14px;
}

/* 모바일 대응 */
@media (max-width: 575px) {
    .market-list-item { padding: 12px; }
    .market-list-thumb { width: 60px; height: 60px; }
    .market-list-action { min-width: 110px; }
    .market-list-action .btn {
        font-size: 11px;
        padding: 4px 8px;
    }
    /* 등록 페이지: 좁은 화면에선 세로로 쌓기 */
    .market-upload-col { flex: 1 1 100%; }
    .market-price-col { flex: 1 1 100%; }
    /* 가로카드: 이미지 약간 축소 */
    .market-h-thumb { width: 88px; min-height: 88px; }
}
