@charset "utf-8";

/* 핫딜 게시판 PC 스킨 */

/* 분류 탭 */
#bo_cate .active a {
    font-weight: 700;
}

/* 모바일 분류 — 2줄 격자 탭(PC .sly-tab 톤), 스크롤·화살표 없음 */
@media all and (max-width: 767px) {
    #bo_cate.hotdeal-cate-grid--mo .hotdeal-cate-wrap {
        overflow: hidden;
        border-radius: 6px;
    }

    #bo_cate.hotdeal-cate-grid--mo .hotdeal-cate-ul {
        display: flex;
        flex-wrap: wrap;
        width: 100%;
        margin: 0;
        padding: 0;
        border-left: 1px solid #e5e5e5;
        border-top: 1px solid #e5e5e5;
        border-radius: 6px;
    }

    #bo_cate.hotdeal-cate-grid--mo .hotdeal-cate-ul > li {
        flex: 0 0 20%;
        max-width: 20%;
        box-sizing: border-box;
        list-style: none;
        margin: 0;
        padding: 0;
    }

    #bo_cate.hotdeal-cate-grid--mo .hotdeal-cate-ul > li a {
        display: block;
        white-space: normal;
        word-break: keep-all;
        line-height: 1.35;
        font-size: 13px;
        padding: 0.55rem 0.15rem !important;
        text-align: center;
        color: #333;
        background: #fafafa;
        border-right: 1px solid #e5e5e5;
        border-bottom: 1px solid #e5e5e5;
        border-left: 0;
        border-top: 0;
        text-decoration: none;
    }

    #bo_cate.hotdeal-cate-grid--mo .hotdeal-cate-ul > li.active a {
        background: #fff;
        font-weight: 700;
        color: #212529;
        position: relative;
        z-index: 1;
    }

    #bo_cate.hotdeal-cate-grid--mo .hotdeal-cate-ul > li:first-child a {
        border-top-left-radius: 5px;
    }

    #bo_cate.hotdeal-cate-grid--mo .hotdeal-cate-ul > li:nth-child(5) a {
        border-top-right-radius: 5px;
    }

    #bo_cate.hotdeal-cate-grid--mo .hotdeal-cate-ul > li:nth-child(6) a {
        border-bottom-left-radius: 5px;
    }

    #bo_cate.hotdeal-cate-grid--mo .hotdeal-cate-ul > li:nth-child(10) a {
        border-bottom-right-radius: 5px;
    }
}

/* 목록 — 모바일: 정렬·검색 버튼 숨김(빈 여백 축소) */
@media all and (max-width: 767px) {
    .hotdeal-list-wrap .hotdeal-list-btn-sort,
    .hotdeal-list-wrap .hotdeal-list-btn-search {
        display: none !important;
    }

    .hotdeal-list-wrap #bo_btn_top #bo_list_total {
        display: none;
    }

    .hotdeal-list-wrap #bo_btn_top {
        margin-bottom: 0.35rem !important;
    }

    .hotdeal-list-wrap #bo_btn_top .text-right {
        width: 100%;
        text-align: right;
    }
}

/* 목록 */
.hotdeal-list-wrap .hotdeal-list {
    border-top: 1px solid #e9ecef;
}

.hotdeal-list-item {
    border-bottom: 1px solid #eee;
    transition: background-color 0.15s ease;
}

.hotdeal-list-item:hover {
    background-color: #fafafa;
}

.hotdeal-list-item--current {
    background-color: #f0f7ff;
}

.hotdeal-list-item--notice {
    background-color: #fff8e6;
    /* Bootstrap align-items-start(!important) 덮어쓰기 — 공지 1줄 제목 세로 중앙 */
    align-items: center !important;
}

.hotdeal-list-item--notice .hotdeal-list-check {
    padding-top: 0 !important;
}

.hotdeal-list-item--notice .hotdeal-list-line1 {
    align-items: center;
}

.hotdeal-list-link--notice {
    align-items: center;
}

.hotdeal-list-link {
    color: inherit;
}

.hotdeal-list-link:hover {
    color: inherit;
    text-decoration: none;
}

.hotdeal-list-thumb {
    width: 72px;
    height: 72px;
    overflow: hidden;
    border-radius: 4px;
    background: #f1f3f5;
}

.hotdeal-list-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hotdeal-list-thumb-empty {
    display: block;
    width: 72px;
    height: 72px;
    background: #e9ecef url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='%23adb5bd'%3E%3Cpath d='M4 6h16v12H4z'/%3E%3C/svg%3E") center/28px no-repeat;
    border-radius: 4px;
}

.hotdeal-list-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.35rem;
}

.hotdeal-list-line1,
.hotdeal-list-line2,
.hotdeal-list-line3 {
    margin: 0;
    line-height: 1.35;
}

.hotdeal-list-title {
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.35;
    word-break: break-word;
}

.hotdeal-list-line1 {
    gap: 0.35rem;
}

.hotdeal-list-new {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.2rem;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    background: #e65100;
    border-radius: 2px;
    flex-shrink: 0;
}

/* 2줄 — .f-sm(14px). 가격만 주황, 나머지 텍스트 #495057 */
.hotdeal-list-line2 {
    color: #495057;
}

.hotdeal-list-line2 .hotdeal-list-price {
    color: #e65100;
    font-weight: 700;
}

.hotdeal-list-line2 .hotdeal-list-sep {
    color: #adb5bd;
}

/* 3줄 — 날짜·추천·조회·작성자 (2줄과 동일 색상) */
.hotdeal-list-line3 {
    color: #495057;
}

.hotdeal-list-line3 .hotdeal-list-meta-sep {
    color: #adb5bd;
    margin: 0 0.15rem;
}

/* 상세 — 제목 (BS4-Basic-Community / BS4-Running 동일) */
#bo_v_title {
    font-size: 23px;
    font-weight: bold;
    line-height: 1.4;
    letter-spacing: -1px;
}

@media all and (max-width: 575px) {
    .responsive #bo_v_title {
        font-size: 20px;
        line-height: 1.5;
    }
}

/* 상세 — 본문: 모바일 가로 넘침 방지(외부 HTML·고정폭 이미지·표) */
#bo_v_con {
    max-width: 100%;
    word-break: break-word;
    overflow-wrap: anywhere;
    overflow-x: hidden;
}

#bo_v_con .view-content {
    max-width: 100%;
    overflow-x: hidden;
}

#bo_v_con img,
#bo_v_con .view-content img,
#bo_v_con iframe,
#bo_v_con video,
#bo_v_con embed,
#bo_v_con object {
    max-width: 100% !important;
    height: auto !important;
}

#bo_v_con table {
    max-width: 100% !important;
    width: 100% !important;
    table-layout: fixed;
}

#bo_v_con td,
#bo_v_con th {
    word-break: break-word;
    overflow-wrap: anywhere;
}

#bo_v_img {
    max-width: 100%;
    overflow: hidden;
    text-align: center;
}

#bo_v_img img {
    display: block;
    max-width: 100%;
    height: auto;
    cursor: default;
}

#bo_v_con .view-content img {
    cursor: default;
}

/* 상세 — 핫딜 정보 표 (BS4-Running #bo_v_runinfo label/con 과 동일 1rem) */
.hotdeal-info-table,
.hotdeal-info-table th,
.hotdeal-info-table td {
    font-size: 1rem;
    vertical-align: middle;
}

.hotdeal-info-th {
    width: 8.5rem;
    min-width: 8.5rem;
    background: #f8f9fa;
    font-weight: 600;
    vertical-align: middle;
    white-space: nowrap;
    text-align: left;
    padding-left: 0.65rem;
    padding-right: 0.75rem;
}

/* BS4-Running #bo_v_runinfo .vi — 아이콘·라벨 붙여서 왼쪽 정렬 */
.hotdeal-info-th .vi {
    display: inline;
    width: auto;
    margin: 0;
    padding: 0;
    line-height: 1;
    vertical-align: baseline;
}

.hotdeal-info-price {
    color: #e65100;
    font-weight: 700;
}

/* 상세 — 핫딜 정보 표 외곽(모바일 분류 탭과 동일 6px 라운드, 테두리 1/3) */
#hotdeal_v_info {
    --hotdeal-info-border-w: 0.334px;
    --hotdeal-info-border-c: #dee2e6;
}

#hotdeal_v_info .hotdeal-info-table-outer {
    border: var(--hotdeal-info-border-w) solid var(--hotdeal-info-border-c) !important;
    border-radius: 6px;
    overflow: hidden;
}

#hotdeal_v_info .hotdeal-info-table-outer .hotdeal-info-table {
    margin-bottom: 0;
    border: 0 !important;
}

#hotdeal_v_info .hotdeal-info-table-outer .hotdeal-info-table.table-bordered > tbody > tr > th,
#hotdeal_v_info .hotdeal-info-table-outer .hotdeal-info-table.table-bordered > tbody > tr > td {
    border: var(--hotdeal-info-border-w) solid var(--hotdeal-info-border-c) !important;
}

/* PC: Bootstrap border 단축·collapse 올림 보정, 외곽은 셀 테두리만 + 아주 약한 라운드 */
@media all and (min-width: 768px) {
    #hotdeal_v_info .hotdeal-info-table-outer {
        border: none !important;
        border-radius: 3px;
        overflow: hidden;
    }

    #hotdeal_v_info .hotdeal-info-table-outer .hotdeal-info-table {
        border-collapse: separate !important;
        border-spacing: 0 !important;
    }

    #hotdeal_v_info .hotdeal-info-table-outer .hotdeal-info-table.table-bordered > tbody > tr > th,
    #hotdeal_v_info .hotdeal-info-table-outer .hotdeal-info-table.table-bordered > tbody > tr > td {
        border: none !important;
        border-right: var(--hotdeal-info-border-w) solid var(--hotdeal-info-border-c) !important;
        border-bottom: var(--hotdeal-info-border-w) solid var(--hotdeal-info-border-c) !important;
    }

    #hotdeal_v_info .hotdeal-info-table-outer .hotdeal-info-table.table-bordered > tbody > tr > th:first-child,
    #hotdeal_v_info .hotdeal-info-table-outer .hotdeal-info-table.table-bordered > tbody > tr > td:first-child {
        border-left: var(--hotdeal-info-border-w) solid var(--hotdeal-info-border-c) !important;
    }

    #hotdeal_v_info .hotdeal-info-table-outer .hotdeal-info-table.table-bordered > tbody > tr:first-child > th,
    #hotdeal_v_info .hotdeal-info-table-outer .hotdeal-info-table.table-bordered > tbody > tr:first-child > td {
        border-top: var(--hotdeal-info-border-w) solid var(--hotdeal-info-border-c) !important;
    }
}

/* 상세 — 모바일: 2열 표 유지 + 긴 URL 줄바꿈(레이아웃 밖으로 안 나감) */
@media all and (max-width: 767px) {
    #hotdeal_v_info {
        max-width: 100%;
        overflow-x: hidden;
    }

    #hotdeal_v_info .hotdeal-info-table-outer {
        max-width: 100%;
        border-radius: 6px;
    }

    #hotdeal_v_info .hotdeal-info-table {
        width: 100%;
        max-width: 100%;
        table-layout: fixed;
    }

    #hotdeal_v_info .hotdeal-info-th {
        width: 5.75rem;
        min-width: 0;
        max-width: 32%;
        white-space: nowrap;
        vertical-align: middle;
    }

    #hotdeal_v_info .hotdeal-info-table td {
        min-width: 0;
        word-break: break-all;
        overflow-wrap: anywhere;
        vertical-align: middle;
        padding-top: 0.55rem;
        padding-bottom: 0.55rem;
    }

    #hotdeal_v_info .hotdeal-info-table td a {
        word-break: break-all;
        overflow-wrap: anywhere;
    }
}

/* 글쓰기 — 공지 시 핫딜 전용 필드 완화 */
.hd-write-deal-li.hd-write-deal-fields--notice {
    opacity: 0.92;
}

.hd-write-deal-li.hd-write-deal-fields--notice .hd-write-deal-opt {
    font-weight: 400;
}

/* 글쓰기 — 라디오 */
.hotdeal-write-cate .custom-control-inline,
.hotdeal-write-store .custom-control-inline {
    margin-right: 0.75rem;
    margin-bottom: 0.5rem;
}

.hotdeal-write-store {
    display: flex;
    flex-wrap: wrap;
}
