@charset "utf-8";

/* ==========================================
   BM식자재 제품 카탈로그 스타일
   ========================================== */

:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #64748b;
    --success-color: #22c55e;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --top10-color: #f59e0b;
    --top3-color: #ef4444;
    --bg-light: #f8fafc;
    --border-color: #e2e8f0;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
}

/* 기본 레이아웃 */
#bm_product_catalog {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 헤더 영역 */
.catalog_header {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 12px;
    margin-bottom: 25px;
    color: #fff;
}

.catalog_title {
    font-size: 1.8em;
    font-weight: 700;
    margin: 0 0 10px;
}

.catalog_title i {
    margin-right: 10px;
}

.catalog_desc {
    font-size: 0.95em;
    opacity: 0.9;
    margin: 0;
}

.top10_badge {
    display: inline-block;
    background: var(--top10-color);
    color: #fff;
    font-size: 0.75em;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    vertical-align: middle;
    margin-left: 5px;
}

/* 카테고리 탭 */
#product_category {
    margin-bottom: 25px;
}

.category_tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.category_tabs li a {
    display: block;
    padding: 10px 20px;
    border: 1px solid var(--border-color);
    border-radius: 25px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.9em;
}

.category_tabs li a:hover,
.category_tabs li a.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

/* TOP100 하이라이트 섹션 - BM Today 스타일 */
.top100_section {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 20px 25px;
    margin-bottom: 25px;
}

.top100_section h3 {
    font-size: 1.1em;
    color: #333;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e5e5;
    text-align: left;
}

.top100_section h3 i {
    color: #f59e0b;
    margin-right: 8px;
}

.top100_grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px;
}

.top100_item {
    display: flex;
    align-items: center;
    background: #f9f9f9;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #eee;
    transition: background 0.2s ease;
}

.top100_item:hover {
    background: #f0f0f0;
}

/* TOP 1~3 강조 (빨강) */
.top100_item.top3 {
    background: #fff5f5;
    border: 1px solid #fca5a5;
}

.top100_item.top3 .rank_badge {
    background: #dc2626;
}

.top100_item.top3 .item_name {
    color: #b91c1c;
    font-weight: 600;
}

/* TOP 4~10 강조 (주황) */
.top100_item.top10 {
    background: #fffbeb;
    border: 1px solid #fcd34d;
}

.top100_item.top10 .rank_badge {
    background: #ea580c;
}

.top100_item.top10 .item_name {
    color: #c2410c;
    font-weight: 600;
}

.top100_item .rank_badge {
    width: 26px;
    height: 26px;
    background: #9ca3af;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.75em;
    margin-right: 10px;
    flex-shrink: 0;
}

.top100_item .item_name {
    font-weight: 400;
    color: #333;
    font-size: 0.9em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* TOP20 하이라이트 섹션 */
.top20_section {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
}

.top20_section h3 {
    font-size: 1.2em;
    color: #92400e;
    margin: 0 0 20px;
    text-align: center;
}

.top20_section h3 i {
    color: #f59e0b;
    margin-right: 8px;
}

.top20_grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.top20_item {
    display: flex;
    align-items: center;
    background: #fff;
    padding: 12px 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.2s ease;
}

.top20_item:hover {
    transform: translateY(-2px);
}

.top20_item.top3 {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border: 2px solid #ef4444;
}

.top20_item .rank_badge {
    width: 28px;
    height: 28px;
    background: var(--top10-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85em;
    margin-right: 12px;
    flex-shrink: 0;
}

.top20_item.top3 .rank_badge {
    background: var(--top3-color);
}

.top20_item .item_name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* TOP10 하이라이트 섹션 */
.top10_section {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
}

.top10_section h3 {
    font-size: 1.2em;
    color: #92400e;
    margin: 0 0 20px;
}

.top10_section h3 i {
    color: var(--top10-color);
    margin-right: 8px;
}

.top10_grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.top10_item {
    display: flex;
    align-items: center;
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.2s ease;
}

.top10_item:hover {
    transform: translateY(-2px);
}

.top10_item.top3 {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
}

.rank_badge {
    width: 36px;
    height: 36px;
    background: var(--top10-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1em;
    margin-right: 12px;
    flex-shrink: 0;
}

.top10_item.top3 .rank_badge {
    background: var(--top3-color);
}

.item_info {
    flex: 1;
    min-width: 0;
}

.item_name {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item_name:hover {
    color: var(--primary-color);
}

.item_group,
.item_sales {
    font-size: 0.85em;
    color: var(--text-secondary);
}

.item_group::after {
    content: " · ";
}

/* 목록 상단 정보 */
#bo_btn_top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

#bo_list_total {
    font-size: 0.9em;
    color: var(--text-secondary);
}

#bo_list_total strong {
    color: var(--primary-color);
    font-weight: 600;
}

.btn_bo_user {
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.btn_bo_user li {
    position: relative;
}

.btn_bo_user .btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: #fff;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn_bo_user .btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

/* 제품 목록 테이블 */
.product_table_wrap {
    overflow-x: auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.product_table {
    width: 100%;
    border-collapse: collapse;
}

.product_table thead th {
    padding: 15px 12px;
    background: var(--bg-light);
    border-bottom: 2px solid var(--border-color);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.85em;
    text-align: left;
    white-space: nowrap;
}

.product_table tbody td {
    padding: 15px 12px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.product_table tbody tr:hover {
    background: #f8fafc;
}

.product_table tbody tr.top10_row {
    background: #fffbeb;
}

.product_table tbody tr.top10_row:hover {
    background: #fef3c7;
}

/* 테이블 컬럼별 스타일 */
.th_chk, .td_chk { width: 40px; text-align: center; }
.th_num, .td_num { width: 50px; text-align: center; }
.th_category, .td_category { width: 80px; }
.th_pname, .td_pname { min-width: 150px; }
.th_unit, .td_unit { width: 140px; white-space: nowrap; }

/* 정렬 가능 컬럼 */
.sortable a {
    color: var(--text-secondary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.sortable a:hover {
    color: var(--primary-color);
}

.sortable a i {
    font-size: 0.85em;
    opacity: 0.5;
}

.sortable a i.fa-sort-up,
.sortable a i.fa-sort-down {
    opacity: 1;
    color: var(--primary-color);
}

.rank_num {
    display: inline-block;
    width: 28px;
    height: 28px;
    line-height: 28px;
    text-align: center;
    background: var(--top10-color);
    color: #fff;
    border-radius: 50%;
    font-weight: 600;
    font-size: 0.85em;
}

.rank_num.rank_1,
.rank_num.rank_2,
.rank_num.rank_3 {
    background: var(--top3-color);
}

.rank_normal {
    color: var(--text-secondary);
}

.group_badge {
    display: inline-block;
    padding: 4px 10px;
    background: #e0f2fe;
    color: #0369a1;
    border-radius: 4px;
    font-size: 0.85em;
}

.product_link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
}

.product_link:hover {
    color: var(--primary-color);
}

.td_price strong {
    color: var(--primary-color);
}

.empty_table {
    text-align: center;
    padding: 60px 20px !important;
    color: var(--text-secondary);
}

/* 페이지네이션 */
.pagination_wrap {
    padding: 25px 0;
    text-align: center;
}

/* 검색 팝업 */
.bo_sch_wrap {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.bo_sch {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    width: 400px;
    max-width: 90%;
}

.bo_sch h3 {
    padding: 20px;
    margin: 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 1.1em;
}

.bo_sch form {
    padding: 20px;
}

.bo_sch select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 0.95em;
}

.bo_sch .sch_select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 0.9em;
    background: #fff;
}

.bo_sch .sch_bar {
    display: flex;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.bo_sch .sch_input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    font-size: 0.95em;
}

.bo_sch .sch_btn {
    width: 50px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    cursor: pointer;
}

.bo_sch .bo_sch_cls {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.2em;
    color: var(--text-secondary);
    cursor: pointer;
}

.bo_sch_bg {
    background: rgba(0,0,0,0.5);
    width: 100%;
    height: 100%;
}

/* 더보기 옵션 메뉴 */
.more_opt {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 120px;
    z-index: 100;
    margin-top: 5px;
    list-style: none;
    padding: 0;
}

.more_opt li {
    border-bottom: 1px solid var(--border-color);
}

.more_opt li:last-child {
    border-bottom: none;
}

.more_opt li button,
.more_opt li a {
    display: block;
    width: 100%;
    padding: 12px 15px;
    background: none;
    border: none;
    text-align: left;
    color: var(--text-primary);
    text-decoration: none;
    cursor: pointer;
}

.more_opt li button:hover,
.more_opt li a:hover {
    background: var(--bg-light);
}

/* ==========================================
   제품 상세 보기 스타일
   ========================================== */
#product_view {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.pv_nav {
    margin-bottom: 20px;
}

.pv_nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9em;
}

.pv_nav a:hover {
    color: var(--primary-color);
}

.nav_separator {
    margin: 0 10px;
    color: var(--border-color);
}

/* 제품 카드 */
.product_card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: 30px;
    position: relative;
    overflow: hidden;
}

.product_card.is_top10 {
    border: 2px solid var(--top10-color);
}

.top10_ribbon {
    position: absolute;
    top: 20px;
    right: -35px;
    background: var(--top10-color);
    color: #fff;
    padding: 8px 40px;
    transform: rotate(45deg);
    font-weight: 700;
    font-size: 0.85em;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.product_header {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.product_group {
    margin-bottom: 10px;
}

.group_label {
    display: inline-block;
    padding: 6px 14px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 500;
}

.product_name {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--text-primary);
    margin: 10px 0 0;
}

/* 제품 정보 그리드 */
.product_info_grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.info_item {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 12px;
}

.info_item.highlight {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}

.info_label {
    display: block;
    font-size: 0.85em;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.info_label i {
    margin-right: 5px;
}

.info_value {
    display: block;
    font-size: 1.3em;
    font-weight: 600;
    color: var(--text-primary);
}

.info_value.price {
    color: var(--primary-color);
}

.info_value.sales {
    color: var(--success-color);
}

/* 제품 설명 */
.product_desc {
    margin-bottom: 25px;
}

.product_desc h3 {
    font-size: 1em;
    color: var(--text-secondary);
    margin: 0 0 15px;
}

.desc_content {
    line-height: 1.8;
    color: var(--text-primary);
}

/* 제품 이미지 */
.product_images h3 {
    font-size: 1em;
    color: var(--text-secondary);
    margin: 0 0 15px;
}

.image_gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.gallery_item img {
    width: 100%;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.product_meta {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 20px;
    font-size: 0.9em;
    color: var(--text-secondary);
}

/* 하단 버튼 */
.pv_buttons {
    display: flex;
    justify-content: space-between;
    margin: 25px 0;
}

.pv_buttons ul {
    display: flex;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pv_buttons .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.2s ease;
}

.pv_buttons .btn_list {
    background: var(--primary-color);
    color: #fff;
}

.pv_buttons .btn_edit {
    background: var(--secondary-color);
    color: #fff;
}

.pv_buttons .btn_delete {
    background: var(--danger-color);
    color: #fff;
}

/* 이전/다음 제품 */
.pv_navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.pv_navigation a {
    display: block;
    padding: 20px;
    background: var(--bg-light);
    border-radius: 12px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.pv_navigation a:hover {
    background: #e2e8f0;
}

.nav_prev { text-align: left; }
.nav_next { text-align: right; }

.nav_label {
    display: block;
    font-size: 0.85em;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.nav_title {
    display: block;
    color: var(--text-primary);
    font-weight: 500;
}

/* ==========================================
   글쓰기 스타일
   ========================================== */
#product_write {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.write_title {
    font-size: 1.5em;
    margin: 0 0 25px;
    color: var(--text-primary);
}

/* 탭 메뉴 */
.write_tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.tab_btn {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background: #fff;
    font-size: 1em;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab_btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.tab_btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.tab_btn i {
    margin-right: 8px;
}

/* 엑셀 업로드 가이드 */
.excel_guide {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
}

.excel_guide h3 {
    color: #0369a1;
    margin: 0 0 15px;
    font-size: 1.1em;
    border: none !important;
    padding: 0 !important;
}

.guide_content p {
    margin: 0 0 15px;
    color: var(--text-primary);
    line-height: 1.6;
}

.upload_notice {
    background: #fef3c7;
    border: 2px solid #f59e0b;
    border-radius: 8px;
    padding: 15px 20px;
    font-size: 0.95em;
    line-height: 1.8;
}

.upload_notice i {
    color: #f59e0b;
    margin-right: 8px;
}

.excel_format_table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.excel_format_table th,
.excel_format_table td {
    padding: 12px;
    border: 1px solid var(--border-color);
    text-align: center;
    font-size: 0.9em;
}

.excel_format_table th {
    background: var(--bg-light);
    font-weight: 600;
}

.excel_format_table tr.example {
    background: #fef3c7;
}

.excel_format_table tr.result {
    background: #dbeafe;
}

.notice {
    color: #b45309;
    font-size: 0.9em;
    margin: 10px 0 !important;
}

.notice i {
    margin-right: 5px;
}

.file_hint {
    display: block;
    margin-top: 8px;
    font-size: 0.85em;
    color: var(--text-secondary);
}

/* 라디오 그룹 */
.radio_group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio_label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    line-height: 1.5;
}

.radio_label input[type="radio"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--primary-color);
}

/* 폼 섹션 */
.form_section {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.form_section h3 {
    font-size: 1em;
    color: var(--text-secondary);
    margin: 0 0 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.form_row {
    margin-bottom: 20px;
}

.form_row:last-child {
    margin-bottom: 0;
}

.form_row label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.form_row label.required::after {
    content: " *";
    color: var(--danger-color);
}

.form_row_half {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.frm_input,
.frm_select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95em;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.frm_input:focus,
.frm_select:focus {
    border-color: var(--primary-color);
    outline: none;
}

.frm_textarea {
    width: 100%;
    min-height: 100px;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95em;
    resize: vertical;
    box-sizing: border-box;
}

.frm_file {
    width: 100%;
}

.file_input_wrap {
    position: relative;
}

.current_file {
    margin-top: 10px;
    padding: 10px 15px;
    background: var(--bg-light);
    border-radius: 6px;
    font-size: 0.9em;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 제출 버튼 */
.btn_submit_wrap {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.btn_submit_wrap .btn {
    padding: 15px 40px;
    border-radius: 10px;
    font-size: 1em;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn_cancel {
    background: var(--bg-light);
    color: var(--text-secondary);
    border: 1px solid var(--border-color) !important;
}

.btn_cancel:hover {
    background: #e2e8f0;
}

.btn_submit {
    background: var(--primary-color);
    color: #fff;
}

.btn_submit:hover {
    background: var(--primary-dark);
}

/* 체크박스 스타일 */
.selec_chk {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.selec_chk + label span,
.chk_box label span {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    vertical-align: middle;
    cursor: pointer;
    transition: all 0.2s ease;
}

.selec_chk:checked + label span,
.chk_box input:checked + label span {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* 댓글 스타일 */
#bo_vc_w {
    margin-top: 30px;
    padding: 25px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

#bo_vc_w h2 {
    font-size: 1.1em;
    margin: 0 0 20px;
    color: var(--text-secondary);
}

.bo_vc_w_info {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.bo_vc_w_info .frm_input {
    flex: 1;
}

#bo_vc {
    margin-top: 25px;
}

#bo_vc h2 {
    font-size: 1.1em;
    margin: 0 0 20px;
    color: var(--text-primary);
}

#bo_vc h2 span {
    color: var(--primary-color);
}

#bo_vc article {
    padding: 20px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 10px;
}

#bo_vc header {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 0.9em;
}

#bo_vc .member {
    font-weight: 600;
}

#bo_vc .datetime {
    color: var(--text-secondary);
}

#bo_vc .secret {
    color: var(--warning-color);
}

#bo_vc .cmt_contents {
    line-height: 1.7;
    color: var(--text-primary);
}

#bo_vc .bo_vc_act {
    margin-top: 10px;
    display: flex;
    gap: 15px;
}

#bo_vc .bo_vc_act a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85em;
}

#bo_vc .bo_vc_act a:hover {
    color: var(--primary-color);
}

/* 반응형 */
@media (max-width: 768px) {
    .catalog_header {
        padding: 20px 15px;
    }
    
    .catalog_title {
        font-size: 1.4em;
    }
    
    .category_tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 10px;
    }
    
    .category_tabs li a {
        white-space: nowrap;
        padding: 8px 15px;
    }
    
    .top10_grid {
        grid-template-columns: 1fr;
    }
    
    .product_info_grid {
        grid-template-columns: 1fr;
    }
    
    .form_row_half {
        grid-template-columns: 1fr;
    }
    
    .pv_navigation {
        grid-template-columns: 1fr;
    }
    
    .pv_buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .pv_buttons ul {
        justify-content: center;
    }
    
    .bo_vc_w_info {
        flex-direction: column;
    }
}
