@charset "utf-8";

/* 중고명품(bigdeal) — 기본 갤러리 스타일 초기화 + 카드형 목록 */
#bo_gall.bo_gall_bigdeal {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 8px 48px;
    box-sizing: border-box;
    width: 100% !important;
    overflow-x: hidden;
}

#bo_gall.bo_gall_bigdeal #bo_btn_top {
    margin: 0 0 20px;
    padding: 0;
}

#bo_gall.bo_gall_bigdeal #bo_list_total {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

#wrapper_title.bd-list-page-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: calc(2em - 2px);
    font-weight: 800;
    color: #0f172a;
}

#wrapper_title.bd-list-page-title .fa-diamond {
    font-size: calc(2em - 8px);
    color: #64748b;
    line-height: 1;
}

#container_title.bd-list-page-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: calc(1.5em - 2px) !important;
    font-weight: 800;
}

#container_title.bd-list-page-title .fa-diamond {
    font-size: calc(1em + 2px);
    color: #64748b;
}

#bo_gall.bo_gall_bigdeal .btn_bo_user li {
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .08);
}

#bo_gall.bo_gall_bigdeal #gall_ul.bd-card-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    zoom: normal;
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
    float: none !important;
    clear: none !important;
}

#bo_gall.bo_gall_bigdeal #gall_ul.bd-card-grid:before,
#bo_gall.bo_gall_bigdeal #gall_ul.bd-card-grid:after {
    display: none !important;
    content: none !important;
}

#bo_gall.bo_gall_bigdeal #gall_ul.bd-card-grid .bd-card-item {
    float: none !important;
    clear: none !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 100%;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none;
    box-sizing: border-box;
}

#bo_gall.bo_gall_bigdeal .bd-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(15, 23, 42, .05);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

#bo_gall.bo_gall_bigdeal .bd-card:hover {
    transform: translateY(-2px);
    border-color: #cbd5e1;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .1);
}

#bo_gall.bo_gall_bigdeal .bd-card-item.bd-card-now .bd-card {
    border-color: #93c5fd;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, .12);
}

#bo_gall.bo_gall_bigdeal .bd-card-chk {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
}

#bo_gall.bo_gall_bigdeal .bd-card-thumb {
    position: relative;
    display: block;
    width: 100%;
    padding-top: 100%;
    background: #f1f5f9;
    overflow: hidden;
}

#bo_gall.bo_gall_bigdeal .bd-card-thumb img,
#bo_gall.bo_gall_bigdeal .bd-card-noimg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#bo_gall.bo_gall_bigdeal .bd-card-thumb img {
    max-width: none !important;
    height: 100% !important;
    object-fit: cover;
    transition: transform .3s ease;
}

#bo_gall.bo_gall_bigdeal .bd-card:hover .bd-card-thumb img {
    transform: scale(1.03);
}

#bo_gall.bo_gall_bigdeal .bd-card-noimg {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 2rem;
    background: linear-gradient(145deg, #f8fafc, #eef2f7);
}

#bo_gall.bo_gall_bigdeal .bd-card-new {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    background: #e5484d;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    font-style: normal;
    letter-spacing: .04em;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(229, 72, 77, .35);
    pointer-events: none;
}

#bo_gall.bo_gall_bigdeal .bd-card-body {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 14px 14px 16px;
    min-width: 0;
}

#bo_gall.bo_gall_bigdeal .bd-card-title {
    display: block;
    color: #0f172a;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#bo_gall.bo_gall_bigdeal .bd-card-title:hover {
    color: #2563eb;
}

#bo_gall.bo_gall_bigdeal .bd-card-price {
    margin: 0;
    color: #e11d48;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#bo_gall.bo_gall_bigdeal .bd-card-summary {
    margin: 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#bo_gall.bo_gall_bigdeal li.empty_list {
    grid-column: 1 / -1;
    float: none !important;
    width: 100% !important;
    padding: 72px 20px;
    border-radius: 14px;
    background: #f8fafc;
    color: #64748b;
    text-align: center;
    font-size: 15px;
}

#bo_gall.bo_gall_bigdeal .pg_wrap {
    margin-top: 28px;
    text-align: center;
}

#bo_gall.bo_gall_bigdeal .pg_wrap a,
#bo_gall.bo_gall_bigdeal .pg_wrap strong {
    border-radius: 8px;
}

#bo_gall.bo_gall_bigdeal .bo_fx {
    display: none;
}

/* 모바일 전용 — 미디어쿼리 없이 2열 그리드 강제 (G5_IS_MOBILE) */
#bo_gall.bo_gall_bigdeal.bd-is-mobile {
    padding: 0 10px 28px;
}

#bo_gall.bo_gall_bigdeal.bd-is-mobile #gall_ul.bd-card-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

#bo_gall.bo_gall_bigdeal.bd-is-mobile .bd-card-item {
    float: none !important;
    clear: none !important;
    width: auto !important;
    min-width: 0 !important;
}

#bo_gall.bo_gall_bigdeal.bd-is-mobile .bd-card-thumb {
    padding-top: 0 !important;
    aspect-ratio: 1 / 1;
    height: auto;
}

#bo_gall.bo_gall_bigdeal.bd-is-mobile .bd-card-thumb img,
#bo_gall.bo_gall_bigdeal.bd-is-mobile .bd-card-noimg {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    object-fit: cover !important;
}

#bo_gall.bo_gall_bigdeal.bd-is-mobile .bd-card-body {
    padding: 8px 8px 10px;
    gap: 3px;
}

#bo_gall.bo_gall_bigdeal.bd-is-mobile .bd-card-title {
    font-size: 12px;
    line-height: 1.35;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

#bo_gall.bo_gall_bigdeal.bd-is-mobile .bd-card-price {
    font-size: 12px;
}

#bo_gall.bo_gall_bigdeal.bd-is-mobile .bd-card-summary {
    display: none;
}

#bo_gall.bo_gall_bigdeal.bd-is-mobile .bd-card-new {
    top: 6px;
    right: 6px;
    min-width: 32px;
    height: 18px;
    font-size: 9px;
}

@media (max-width: 768px) {
    #bo_gall.bo_gall_bigdeal {
        padding: 0 10px 32px;
    }

    #bo_gall.bo_gall_bigdeal #gall_ul.bd-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    #bo_gall.bo_gall_bigdeal .bd-card-body {
        padding: 10px 10px 12px;
    }

    #bo_gall.bo_gall_bigdeal .bd-card-title {
        font-size: 13px;
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        word-break: break-word;
    }

    #bo_gall.bo_gall_bigdeal .bd-card-price {
        font-size: 13px;
    }

    #bo_gall.bo_gall_bigdeal .bd-card-summary {
        font-size: 11px;
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        word-break: break-word;
    }

    #bo_gall.bo_gall_bigdeal .bd-card-thumb img {
        max-width: 100% !important;
        width: 100% !important;
    }

    #bo_gall.bo_gall_bigdeal .pg_wrap {
        margin-top: 20px;
        padding: 0 4px;
    }

    #bo_gall.bo_gall_bigdeal .pg_wrap a,
    #bo_gall.bo_gall_bigdeal .pg_wrap strong {
        min-width: 32px;
        height: 32px;
        line-height: 32px;
        font-size: 13px;
    }

    #bo_gall.bo_gall_bigdeal + #bo_list_total,
    #bo_list_total {
        margin: 12px 10px;
        font-size: 13px;
    }

    #bo_sch {
        margin: 10px;
    }
}
