/* 남해베리팜농장 클론 - 게시판/회원/주문 공통 스타일 (테마 팔레트 준수) */
#svis .st_con h2 { }
.bf_board { max-width: 1200px; margin: 0 auto; color:#333; }
.bf_board .bo_head { border-bottom: 2px solid #361d82; padding-bottom: 14px; margin-bottom: 20px; position:relative; }
.bf_board .bo_head h2 { font-size: 26px; font-weight: 700; color:#222; letter-spacing:-0.05em; margin:0; }
.bf_board .bo_head .bo_count { position:absolute; right:2px; bottom:16px; font-size:13px; color:#868686; }
.bf_board .bo_head .bo_desc { margin:10px 0 0; font-size:14px; color:#868686; }

/* 테이블 공통 */
.bf_table { width:100%; border-collapse:collapse; border-top:2px solid #361d82; font-size:14px; }
.bf_table thead th { background:#f6f5fa; color:#444c69; font-weight:600; padding:12px 8px; border-bottom:1px solid #e5e5ee; text-align:center; }
.bf_table tbody td { padding:13px 8px; border-bottom:1px solid #ececec; text-align:center; color:#555; }
.bf_table .td_subject { text-align:left; }
.bf_table .td_subject a { color:#333; }
.bf_table .td_subject a:hover { color:#361d82; text-decoration:underline; }
.bf_table .td_num,.bf_table .td_hit { width:70px; color:#999; }
.bf_table .td_name { width:120px; }
.bf_table .td_date { width:110px; color:#999; }
.bf_table .cnt_cmt { color:#b23b3b; font-size:12px; font-weight:700; }
.bf_table .empty_table { padding:60px 0; color:#999; }
.bo_notice { display:inline-block; background:#415508; color:#fff; font-size:11px; padding:2px 8px; border-radius:2px; }

/* 버튼 영역 */
.bo_btn_area { margin-top:24px; text-align:center; display:flex; gap:8px; justify-content:center; flex-wrap:wrap; }
.bo_btn_area a, .bo_btn_area button { display:inline-block; padding:11px 26px; font-size:14px; border-radius:3px; border:0; cursor:pointer; text-decoration:none; line-height:1.2; }
.btn_write, .btn_submit, .btn_cmt { background:#361d82; color:#fff !important; }
.btn_write:hover, .btn_submit:hover, .btn_cmt:hover { background:#2a1668; }
.btn_list { background:#8c93a1; color:#fff !important; border:0 !important; }
.btn_list:hover { background:#79808e; }
.btn_mod { background:#5f7b0d; color:#fff !important; }
.btn_del { background:#8a849b; color:#fff !important; }
.bf_list .bo_btn_area, .bf_gallery .bo_btn_area { justify-content:flex-end; }

/* 갤러리 */
.bf_gal_list { list-style:none; margin:0; padding:0; overflow:hidden; }
.bf_gal_list:after { content:""; display:block; clear:both; }
.bf_gal_list li { float:left; width:25%; padding:0.8%; box-sizing:border-box; }
.bf_gal_list li.empty_gal { float:none; width:100%; text-align:center; padding:60px 0; color:#999; }
.bf_gal_list .img_box { position:relative; width:100%; padding-top:100%; overflow:hidden; background:#f4f4f7; border:1px solid #eee; box-sizing:border-box; }
.bf_gal_list .img_box a { display:block; position:absolute; inset:0; }
.bf_gal_list .img_box img { position:absolute; inset:0; margin:auto; width:100%; height:100%; object-fit:cover; }
.bf_gal_list .img_box a:after { content:""; position:absolute; inset:0; background:rgba(68,76,105,0.7); opacity:0; transition:all .3s; }
.bf_gal_list .img_box a:before { content:"\f002"; font-family:"FontAwesome"; position:absolute; inset:0; margin:auto; width:56px; height:56px; line-height:56px; text-align:center; border-radius:50%; background:#fff; color:#444c69; opacity:0; transition:all .3s; z-index:1; }
.bf_gal_list .img_box a:hover:after, .bf_gal_list .img_box a:hover:before { opacity:1; }
.bf_gal_list .info_box { margin-top:12px; text-align:center; }
.bf_gal_list .info_box dt { font-size:15px; }
.bf_gal_list .info_box dt a { color:#333; }
.bf_gal_list .info_box dt a:hover { color:#361d82; }

/* 보기 */
.bf_view .view_head { border-bottom:1px solid #ececec; padding-bottom:16px; }
.bf_view .view_subject { font-size:22px; font-weight:700; color:#222; margin:0 0 12px; }
.bf_view .view_meta span { font-size:13px; color:#999; margin-right:16px; }
.bf_view .view_content { padding:30px 4px; min-height:200px; line-height:1.8; font-size:15px; color:#444; }
.bf_view .view_content img { max-width:100%; height:auto; }
.content_view img { max-width:100%; height:auto; }

/* 댓글 */
.cmt_area { margin-top:40px; border-top:1px solid #ececec; padding-top:24px; }
.cmt_title { font-size:16px; margin:0 0 16px; }
.cmt_title strong { color:#361d82; }
.cmt_list { list-style:none; margin:0 0 20px; padding:0; }
.cmt_item { border-bottom:1px solid #f0f0f0; padding:12px 0; }
.cmt_item .cmt_name { font-weight:700; color:#444; margin-right:12px; }
.cmt_item .cmt_date { font-size:12px; color:#aaa; }
.cmt_item .cmt_body { margin-top:6px; color:#555; font-size:14px; }
.cmt_none { padding:20px 0; color:#aaa; text-align:center; }
.cmt_form { background:#f8f8fb; padding:16px; border-radius:4px; }
.cmt_form .cmt_guest { display:flex; gap:8px; margin-bottom:8px; }
.cmt_form .cmt_guest input { flex:1; }
.cmt_form textarea { width:100%; height:70px; border:1px solid #ddd; border-radius:3px; padding:10px; box-sizing:border-box; resize:vertical; }
.cmt_form input { border:1px solid #ddd; border-radius:3px; padding:9px; box-sizing:border-box; }
.cmt_form .btn_cmt { margin-top:8px; float:right; }
.cmt_form:after { content:""; display:block; clear:both; }

/* 폼 (쓰기/회원/주문) */
.write_form .form_row, .mb_form .form_row { margin-bottom:14px; }
.write_form label, .mb_form label { display:block; font-size:14px; font-weight:600; color:#444; margin-bottom:6px; }
.write_form input[type=text], .write_form input[type=password],
.mb_form input, .order_form input, .order_form select, .order_form textarea,
.write_form textarea { width:100%; border:1px solid #ccc; border-radius:3px; padding:11px; box-sizing:border-box; font-size:14px; }
.write_form textarea { resize:vertical; }
.mb_form { max-width:460px; margin:0 auto; }
.form_err { background:#fdecec; color:#c0392b; padding:12px 16px; border-radius:4px; text-align:center; margin-bottom:16px; font-size:14px; }

/* 주문 */
.order_tbl th { width:160px; background:#f6f5fa; text-align:left; padding-left:16px; color:#444c69; }
.order_tbl td { text-align:left; }
.order_tbl .od_qty { width:100px; display:inline-block; }
.order_tbl .od_zip { width:160px; }
.order_tbl .od_hint { display:block; font-size:12px; color:#999; margin-top:4px; }
.order_done { background:#eef5e2; border:1px solid #c9dca0; color:#415508; padding:18px; border-radius:4px; text-align:center; margin-bottom:20px; line-height:1.6; }
.od_status { display:inline-block; padding:3px 10px; border-radius:12px; font-size:12px; color:#fff; }
.od_new { background:#5f7b0d; } .od_ing { background:#8a849b; } .od_done { background:#361d82; }
.mb_info th { width:140px; background:#f6f5fa; text-align:left; padding-left:16px; }
.mb_info td { text-align:left; }

/* 페이징 */
.bf_paging { text-align:center; margin-top:26px; }
.bf_paging a, .bf_paging strong { display:inline-block; min-width:36px; padding:8px 0; margin:0 2px; border:1px solid #e2e2e2; border-radius:3px; text-decoration:none; color:#666; font-size:14px; }
.bf_paging strong.pg_cur { background:#361d82; color:#fff; border-color:#361d82; }
.bf_paging a:hover { border-color:#361d82; color:#361d82; }

/* ===== 로그인 박스: 원본 스킨의 absolute 레이아웃을 일반 흐름 라운드 카드로 재정의 ===== */
#mb_login { position:static !important; left:auto !important; top:auto !important; width:100% !important; max-width:420px !important; margin:10px auto !important; padding:0 !important; letter-spacing:normal !important; }
#mb_login h1 { margin:0 0 18px !important; font-size:30px !important; text-align:center !important; }
#mb_login h1 a { color:#361d82 !important; }
#mb_login form { height:auto !important; border:1px solid #e2e2e2 !important; border-radius:16px !important; background:#fff !important; padding:26px 24px !important; box-shadow:0 3px 16px rgba(54,29,130,.07) !important; }
#mb_login #login_fs { width:auto !important; padding:0 !important; }
#mb_login #login_fs .login_id, #mb_login #login_fs .login_pw { display:none !important; }
#mb_login #login_fs .frm_input { float:none !important; width:100% !important; height:46px !important; margin:0 0 10px !important; padding:10px 14px !important; box-sizing:border-box !important; border:1px solid #ccc !important; border-radius:7px !important; font-size:14px !important; }
#mb_login #login_fs .btn_submit { position:static !important; float:none !important; width:100% !important; height:46px !important; margin:16px 0 0 !important; border-radius:7px !important; background:#361d82 !important; color:#fff !important; font-size:15px !important; cursor:pointer !important; }
#mb_login #login_fs .auto_login { clear:both !important; margin:14px 0 0 !important; }
#mb_login #login_fs .auto_login input { margin:0 6px 0 0 !important; vertical-align:middle !important; }
#mb_login #login_fs .auto_login label { color:#666 !important; font-size:13px !important; margin:0 !important; }
#mb_login h2:before { display:none !important; }
#mb_login #login_info { width:auto !important; margin:18px 0 0 !important; padding:18px 0 0 !important; border-top:1px solid #eee !important; }
#mb_login #login_info > div { margin:0 !important; }
#mb_login #login_info h2 { font-size:14px !important; color:#444 !important; margin:0 0 6px !important; }
#mb_login #login_info p { padding:0 0 14px !important; font-size:13px !important; color:#777 !important; line-height:1.6 !important; }
#mb_login #login_info a.btn01, #mb_login #login_info a.btn02 { float:none !important; display:inline-block !important; width:auto !important; padding:10px 16px !important; border:1px solid #ccc !important; border-radius:7px !important; color:#444 !important; font-size:13px !important; text-decoration:none !important; margin:0 6px 0 0 !important; background:#fff !important; line-height:1.2 !important; }
#mb_login #login_info a.btn01 { background:#f1eff8 !important; color:#361d82 !important; border-color:#d8cff0 !important; font-weight:600 !important; }
#mb_login #login_info a.btn01:before, #mb_login #login_info a.btn02:before { content:"" !important; margin:0 !important; }
.form_err { margin:10px 0 0 !important; }

/* ===== 반응형 (모바일/태블릿) ===== */
@media (max-width:768px) {
  #container .inner { padding:22px 12px !important; }
  .sub_paper { padding:20px 14px !important; border-radius:12px !important; }
  .bf_board .bo_head h2 { font-size:21px; }
  .bf_board .bo_head .bo_count { position:static; display:block; margin-top:8px; }
  .bf_gal_list li { width:50%; }
  .bf_table { font-size:13px; }
  .bf_table thead th, .bf_table tbody td { padding:10px 5px; }
  .bf_table .td_name, .bf_table .td_hit { display:none; }
  .order_tbl th { width:90px; padding-left:8px; font-size:13px; }
  .mb_info th { width:92px; padding-left:8px; font-size:13px; }
  #order_cat { width:100%; }
  .goods_cat th, .goods_cat td { padding:6px 4px; font-size:12px; }
  .goods_cat img { width:46px !important; height:46px !important; }
  .order_agree .scr { font-size:12px; height:150px !important; }
  .bf_table form { flex-wrap:wrap; }
  #mb_login { width:100% !important; }
}
@media (max-width:480px) {
  .sub_paper { padding:15px 10px !important; }
  .bf_board .bo_head h2 { font-size:19px; }
  .bf_gal_list li { width:50%; }
  .bf_table thead th, .bf_table tbody td { padding:9px 3px; font-size:12px; }
  .bo_btn_area a, .bo_btn_area button { padding:11px 16px; font-size:13px; }
  /* 라벨/입력 세로 적층 (주문·회원정보 폼) */
  .order_tbl tr, .mb_info tr { display:block; border-bottom:1px solid #ececec; }
  .order_tbl th, .mb_info th { display:block; width:auto; background:transparent; padding:10px 6px 2px; font-size:13px; }
  .order_tbl td, .mb_info td { display:block; width:auto; padding:0 6px 12px; }
}
