@charset "utf-8";

/* 리스트 스타일 모바일 목록 */
.wr-photo-img img {
  width: 50px;
  height: 50px;
}
@media all and (max-width: 767px) {
  .responsive #bo_list .float-left.float-md-none {
    margin-right: 1rem;
  }
  .responsive #bo_list .na-title {
    margin-bottom: 0.14rem;
  }
  .responsive .wr-photo-img.nw-5 {
    width: auto !important;
  }
}

/* 갤러리 스타일 */
#bo_gallery .chk-box {
  position: absolute;
  bottom: 5px;
  right: 10px;
  z-index: 2;
}
#bo_gallery .wr-now {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 1;
}

/* 웹진 스타일 */
#bo_webzine .chk-box {
  position: absolute;
  bottom: 5px;
  right: 10px;
  z-index: 2;
}
#bo_webzine .wr-now {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 1;
}

/* 게시판 읽기 */
#bo_v_title {
  font-size: 23px;
  font-weight: bold;
  line-height: 1.4;
  letter-spacing: -1px;
}
#bo_v_con {
  min-height: 200px;
  word-break: break-all;
  overflow: hidden;
}
@media all and (max-width: 575px) {
  .responsive #bo_v_title {
    font-size: 20px;
    line-height: 1.5;
  }
  .responsive #bo_v_con {
    min-height: 140px;
  }
}

#bo_v_con img {
  max-width: 100%;
  height: auto;
}
#bo_v_img {
  width: 100%;
  text-align: center;
  overflow: hidden;
  zoom: 1;
}
#bo_v_img:after {
  display: block;
  visibility: hidden;
  clear: both;
  content: "";
}
#bo_v_img a.view_image {
  display: block;
}
#bo_v_img img {
  margin-bottom: 1rem;
}

/* 게시판 읽기 : SNS 공유 */
#bo_v_sns_icon {
  margin: -5px auto;
}
#bo_v_sns_icon img {
  width: 40px;
  border-radius: 50%;
  margin: 5px;
}

/* 게시판 댓글 : 내용 */
.cmt-reply {
  top: 0;
  left: -16px;
}
.by-writer {
  background: #fbefef !important;
  border-top: 1px solid #f6cece !important;
}
.cmt-content {
  word-break: break-all;
  overflow: hidden;
}
.cmt-content img {
  max-width: 100%;
  height: auto;
}

/* 게시판 댓글 : 대댓글, 수정, 삭제 */
.cmt-btn ul {
  list-style: none;
  margin: 0;
}
.cmt-btn ul > li {
  float: left;
  font-size: 12px;
  padding: 0 10px;
}
.cmt-btn ul > li::before {
  float: left;
  color: #ccc;
  content: "|";
  margin-left: -12px;
}
.cmt-btn ul > li:last-child {
  padding-right: 0;
}
.cmt-btn ul > li:first-child::before,
.cmt-btn ul > li.no-bar::before {
  content: "";
  margin-left: 0;
}
.cmt-btn ul > li > a {
  float: left;
  color: #888;
  white-space: nowrap;
}

/* 게시판 댓글 : 쓰기폼 */
#fviewcomment #wr_content {
  resize: none;
}
@media all and (max-width: 575px) {
  .responsive .cmt-box {
    border-right: 0 !important;
  }
  .responsive #bo_vc_w .cmt-box {
    border-left: 0 !important;
    border-radius: 0 !important;
  }
  .responsive #bo_vc_login {
    border-left: 0 !important;
    border-right: 0 !important;
    border-radius: 0 !important;
  }
}

/* 게시판 댓글 : SNS 등록 */
#bo_vc_opt ol {
  margin: 0;
  padding: 0;
  list-style: none;
  zoom: 1;
  background: #ccc;
  border-radius: 3px;
}
#bo_vc_opt ol:after {
  display: block;
  visibility: hidden;
  clear: both;
  content: "";
}
#bo_vc_opt ol li {
  float: left;
  margin: 0;
}
#bo_vc_send_sns ul {
  margin: 0;
  padding: 0;
  list-style: none;
  zoom: 1;
}
#bo_vc_send_sns ul:after {
  display: block;
  visibility: hidden;
  clear: both;
  content: "";
}
#bo_vc_send_sns ul li {
  float: left;
  margin: 0 1rem 0 0;
}
#bo_vc_send_sns input {
  margin: 0 0 0 0.5rem;
}

/* 게시판 쓰기 */
#bo_w .list-group-item {
  padding-left: 0;
  padding-right: 0;
  border-left: 0;
  border-right: 0;
}
#bo_w #wr_content {
  margin-bottom: 1rem !important;
}
@media all and (max-width: 575px) {
  #bo_w .list-group-item {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .responsive #bo_w #wr_content {
    max-height: 160px !important;
  }
}

/* ======================================================================
   슬롯 전용 게시판 목록 스타일 (list_style = slot)
   - 카드형 레이아웃
   - 모바일 1열, PC 2열 기본
   - 기존 테마 색상/폰트는 그대로 사용
   ====================================================================== */

.slot-board-list .slot-list {
  margin: 0;
  padding: 0;
}

/* 전체 카드 */
.slot-board-list .slot-card {
  min-height: 150px;
  overflow: hidden;
}

/* 썸네일 영역 */
.slot-board-list .slot-thumb {
  width: 100%;
  max-width: 260px;
  min-height: 140px;
}

.slot-board-list .slot-thumb img {
  object-fit: cover;
}

/* 썸네일 없을 때 대체 박스 */
.slot-board-list .slot-thumb-empty {
  background: #f1f3f5;
  font-size: 11px;
}

/* 배지 위치 */
.slot-board-list .slot-badge {
  top: 10px;
  right: 10px;
  z-index: 2;
}

/* 제목 라인 */
.slot-board-list .slot-title {
  font-size: 0.95rem;
  line-height: 1.4;
}

.slot-board-list .slot-title:hover {
  text-decoration: underline;
}

/* 댓글 배지 */
.slot-board-list .slot-cmt {
  font-size: 0.75rem;
}

/* 스펙 라벨/값 */
.slot-board-list .slot-spec-label {
  font-weight: 600;
  margin-right: 2px;
}

.slot-board-list .slot-spec-value {
  font-weight: 400;
}

/* 반응형 처리 */
@media (max-width: 767.98px) {
  .slot-board-list .slot-card {
    flex-direction: row;
  }

  .slot-board-list .slot-thumb {
    max-width: 40%;
    min-height: 120px;
  }

  .slot-board-list .slot-body {
    padding: 0.75rem 0.75rem 0.75rem 0.75rem !important;
  }

  .slot-board-list .slot-title {
    font-size: 0.9rem;
  }
}

@media (min-width: 768px) {
  .slot-board-list .slot-item {
    /* PC에서 카드 간 여백 */
    margin-bottom: 1.25rem;
  }
}

/* ======================================================================
   슬롯/공급사 카테고리 필터 스타일
   - 대상 : category.skin.php 에서 출력되는 #bo_cate 영역
   - 기능 : 상단 카테고리를 pill 형태 버튼으로 표시
   - 주의 : 코어 PHP/JS 변경 없음, CSS 추가만으로 동작
   ====================================================================== */

/* bo_cate 전체 영역 여백 조정 */
#bo_cate {
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
}

/* 카테고리 리스트 기본 레이아웃 */
#bo_cate .sly-list {
  /* 기존에 d-flex 로 잡혀 있음 */
  align-items: center;
  padding: 0;
  margin: 0;
  list-style: none;
}

/* 각 카테고리 li 간격 */
#bo_cate .sly-list li {
  margin-right: 0.5rem;
}

/* 카테고리 버튼 기본 모양 */
#bo_cate .sly-list li a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.6rem;
  border-radius: 999px; /* pill 모양 */
  background-color: #f3f4f6; /* 연회색 배경 */
  color: #444;
  font-size: 0.9rem;
  line-height: 1;
  border: 1px solid transparent;
  white-space: nowrap; /* 한 줄 유지 */
  transition: background-color 0.15s ease, color 0.15s ease,
    box-shadow 0.15s ease, transform 0.1s ease;
}

/* 활성(선택)된 카테고리 버튼 */
#bo_cate .sly-list li.active a {
  background-color: #ff8a00; /* 주황색 (원하면 테마 컬러에 맞게 조정) */
  color: #fff;
  font-weight: 600;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.04);
}

/* 호버 효과 */
#bo_cate .sly-list li a:hover {
  background-color: #ffe0bf;
  color: #222;
  text-decoration: none;
}

/* "전체" 버튼만 조금 더 강조하고 싶으면(선택) */
/*
#bo_cate .sly-list li:first-child a {
  font-weight: 600;
}
*/

/* 좌우 슬라이드 버튼 (◀ ▶) 정리 */
#bo_cate .sly-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background-color: #f3f4f6;
  color: #666;
  border: none;
  margin-left: 0.25rem;
  transition: background-color 0.15s ease, color 0.15s ease;
}

#bo_cate .sly-btn:hover {
  background-color: #e5e7eb;
  color: #222;
  text-decoration: none;
}

/* 보더라인 약하게 */
#bo_cate > .px-3 > .d-flex {
  border-radius: 999px;
}

/* 아래 hr 여백 약간 줄이기 */
#bo_cate hr {
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
}

/* 모바일에서 살짝 줄이기 */
@media (max-width: 767.98px) {
  #bo_cate .sly-list li a {
    padding: 0.45rem 1.2rem;
    font-size: 0.85rem;
  }

  #bo_cate {
    margin-bottom: 1rem;
  }
}
