.product_content{
    display: flex;
    padding-bottom:50px;
}

.product_content,
.category_path,
.product_title{
    padding-left:30px;
    padding-right:30px;
}
.product_content h1,
.product_content h2,
.product_content h3,
.product_content h4,
.product_content h5,
.product_content h6 {
  font-weight: 700; /* bold */
}

.product_title .pc_name{
    margin: 0px 0 20px 0;
    font-size:40px;
    line-height:1.3;
}
.product_title .pc_title{
    margin: 0 0 10px 0;
    font-size:28px;
    line-height:1.3;
}
.product_title .pc_subtitle{
    margin: 12px 0;
    font-size:20px;
    line-height:1.3;
    padding-bottom:40px;
}


.pc_left{/*border:1px solid red;*/width:350px;}
.pc_right{/*border:1px solid purple;*/width: calc((100% - 350px));}

/*이미지 슬라이더*/
/* 전역 회전 제거: 이 블록을 삭제하거나 transform 줄만 지웁니다 */
.carousel-cell {
  counter-increment: carousel-cell;
  color: white;
  width: 100%;
  /* transform: rotate(-90deg);  <-- 이 줄 제거! */
}

/* 메인 캐러셀 */
.carousel-main .carousel-cell {
  width: 100%;
  height: 291px;
  /*height: 500px;*/
  overflow: hidden;
  position: relative;
}
.carousel-main .carousel-cell img{
  height: 100%;
  width: auto;          /* 비율 유지 */
  display: block;
  margin:0 auto;
}
.carousel-main .carousel-cell:before { /* 필요 없으면 제거 가능 */
  content: '';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 썸네일 네비게이션: 컨테이너를 90도 회전 */
.carousel-nav {
  width: 350px;
  height: 42px;
  transform: rotate(90deg) translate(0, -100%);
  transform-origin: left top;
  /*border: 1px solid red;*/
}

/* 각 썸네일 셀은 반대로 -90도 회전해서 똑바로 보이게 */
.carousel-nav .carousel-cell {
  width: 42px;
  height: 42px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ddd;
  margin-right: 8px;
}

/* 이미지 채우기 */
.carousel-nav .carousel-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: rotate(-90deg) !important;
}

/* 선택된 썸네일 표시 */
.carousel-nav .carousel-cell.is-nav-selected {
  border: 2px solid #ffde00;
  background-color: #fff8cc;
}



.pc_gallery {
  display: flex;
  flex-direction: row;   /* 기본값이 row지만 명시하면 확실 */
  flex-wrap: nowrap;     /* 줄바꿈 없이 한 줄에 */
  justify-content: flex-start; /* 가로 정렬 방식 */
  align-items: center;          /* 세로(교차축) 정렬 */
}

.pc_gallery .left {
  width: 42px;
  height:350px;
  margin-right: 2%;
  /*flex: 1 1 100%;*/
}
.pc_gallery .right {
width: 291px;
  /*flex: 1 1 0;*/
}


.pc_right{padding:0 20px;}
.pc_right h2,.pc_right h3,.pc_right h4,.pc_right h5{
    font-weight:normal;
}
.pc_right .pc_description h5{
    font-size:24px;
    line-height:1.3;
    margin-bottom:10px;
}
.pc_right .pc_description div{
    margin-bottom:50px;
}
.pc_right .pc_description p{
    font-size:14px;
    line-height:1.5;
}
.pc_right .pc_description ul {
  list-style: none;       /* 기본 불릿 제거 */
  /*padding-left: 1.2em;    *//* 여백 확보 */
}

.pc_right .pc_description li {
  position: relative;
  margin-bottom: 0.5em;   /* 줄 간격 */
  padding-left: 0.6em;    /* 불릿 공간 */
}

.pc_right .pc_description li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;             /* 글자 높이에 맞춤 */
  width: 6px;
  height: 6px;
  background-color: #333; /* 불릿 색상 */
  border-radius: 50%;     /* 동그라미 */
}


.product_content2{
    width:100%;
    background-color:#eee;
    position:relative;
    padding:0 30px 30px 30px;
}
.doc-actions{
    position:absolute;
    right:30px;
    top:30px;
    border: 1px solid #eee;
    width: 20%;
    padding:0 20px 20px 20px;
    border-radius: 12px;
    background: #fff;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.doc-actions h5{
padding:20px 0 10px;
}
.doc-actions .btn_download{
    display:block;
    border-radius: 12px;
    background-color: #21293c;
    color:#fff;
    text-align:center;
    line-height:2;
}
.spec_table{
    border: 1px solid #eee;
    width: calc(80% - 30px);
    border-radius: 12px;
    background: #fff;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin-top:30px;
}

/* ========== Technical Specifications Table ========== */
.spec_table table{
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans KR", Arial, sans-serif;
  font-size: 15px;
  color: #111827;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
}

/* 헤더 */
.spec_table table thead th{
  text-align: left;
  padding: 16px 20px;
  font-size: 16px;
  font-weight: 700;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}

/* 셀 기본 */
.spec_table table tbody td{
  vertical-align: top;
  padding: 16px 20px;
  border-bottom: 1px solid #eef2f7;
}

/* 좌측(항목명) 컬럼 */
.spec_table table tbody td:first-child{
  width: 280px;
  font-weight: 700;
  color: #374151;
  background: #ffffff;
}

.spec_table .image-card img{ width:100%;}


/* 전체 행 줄무늬 배경 */
.spec_table table tbody tr:nth-child(odd) td{
  background: #fafafa;
}

/* 우측 컬럼 안의 리스트 스타일 */
.spec_table table tbody td ul{
  margin: 0;
  padding-left: 1.2rem;
  list-style: disc;
}
.spec_table table tbody td li{
  line-height: 1.6;
  margin: 2px 0;
}

/* 단위/링크 강조 */
.spec_table table tbody td a{
  text-decoration: none;
  border-bottom: 1px dotted #3b82f6;
   color: #2563eb;
   font-weight: 600;
 }
.spec_table table tbody td a:hover{
border-bottom-style: solid;
}

/* 변수와 스타일을 btn_back 범위로 제한 */
.btn_back {
    position:absolute;
    right:30px;
    bottom:30px;
}

.btn_back .back-link {
  width:150px;
  display:block;
      border-radius: 12px;
      background-color: #21293c;
      color:#fff;
      text-align:center;
      line-height:2;
}

/* 아이콘 기본값 + 애니메이션 대상 지정 */
.btn_back .back-link__icon{
  display: inline-block;            /* 변환 적용을 위해 */
  transform: translateX(0);         /* 초기 위치 */
  transition: transform .15s ease;  /* transform을 애니메이션 */
}

/* hover: 아이콘 움찔(왼쪽으로) + 배경색 살짝 연하게 */
.btn_back .back-link{
  transition: background-color .15s ease; /* 배경 전환도 부드럽게 */
}
.btn_back .back-link:hover{
  background-color: #2d364d; /* 기존 #21293c 보다 연한 톤 */
}
.btn_back .back-link:hover .back-link__icon{
  transform: translateX(-4px);
}

.btn.is-disabled { pointer-events: none; opacity: 0.5; }


/* ===========================
   Product detail - 모바일 대응
   =========================== */

/* 기본 모바일 타깃: 768px 이하 */
@media (max-width: 768px) {

  /* 전체 컨테이너 내부 여백 축소 */
  .container.container_sub,
  .product_content,
  .product_content2,
  .category_path,
  .product_title {
    padding-left: 16px;
    padding-right: 16px;
  }

  /* product_content: 좌/우 -> 상/하 (스택) */
  .product_content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-bottom: 24px;
  }

  /* 왼쪽(갤러리)과 오른쪽(정보) 넓이 조정: 풀폭 */
  .pc_left,
  .pc_gallery .left,
  .pc_gallery .right,
  .pc_right {
    width: 100% !important;
    max-width: 100%;
  }

  /* 메인 이미지 크기 축소(세로) */
  .carousel-main .carousel-cell {
    height: 220px; /* 모바일에서 이미지 높이 */
  }

  .carousel-main .carousel-cell img {
    height: 100%;
    width: 100%;
    object-fit: cover;
  }

  /* 썸네일 네비: 회전 제거하고 가로 썸네일로 변경 */
  .carousel-nav {
    width: 100% !important;
    height: auto !important;
    transform: none !important;
    transform-origin: initial !important;
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding: 8px 0;
    box-sizing: border-box;
  }

  .carousel-nav .carousel-cell {
    width: 64px;
    height: 64px;
    flex: 0 0 auto;
    border: 1px solid #ddd;
    margin-right: 8px;
    transform: none !important;
  }

  .carousel-nav .carousel-cell img {
    transform: none !important;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
  }

  /* gallery 레이아웃 정리 */
  .pc_gallery {
    flex-direction: column;
    align-items: stretch;
  }

  .pc_gallery .left {
    margin-right: 0;
    margin-bottom: 8px;
    height: auto;
  }

  .pc_gallery .right {
    width: 100%;
  }

  /* 우측 정보(설명) 여백조정 */
  .pc_right {
    padding: 0;
  }

  .pc_right .pc_description h5 {
    font-size: 18px;
  }

  .pc_right .pc_description p,
  .pc_right .pc_description div {
    margin-bottom: 20px;
    font-size: 14px;
  }

  /* product_content2 내 박스들: 풀폭으로 나열 (doc-actions은 상단이동) */
  .product_content2 {
    padding: 16px;
  }

  .doc-actions {
    position: relative !important; /* 절대 위치 해제 */
    right: auto;
    top: auto;
    width: 100% !important;
    margin: 0 0 16px 0;
    padding: 12px;
    box-shadow: none;
    display: flex;
    gap: 12px;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }

  .doc-actions h5 {
    width: 100%;
    margin: 0 0 6px 0;
    padding: 0;
  }

  .doc-actions .btn_download {
    flex: 1 1 auto;
    padding: 10px 12px;
    border-radius: 8px;
    line-height: 1.2;
  }

  /* spec_table 처리: 풀폭, 카드화 */
  .spec_table {
    width: 100% !important;
    margin-top: 12px;
    padding: 12px;
    box-shadow: none;
  }

  .spec_table table,
  .spec_table table thead th,
  .spec_table table tbody td {
    font-size: 14px;
  }

  .spec_table table tbody td:first-child {
    width: 140px; /* 모바일에서 좌측 컬럼 좁힘 */
  }

  /* catalog 이미지 카드 */
  .spec_table .image-card {
    width: 100%;
    margin-bottom: 12px;
  }

  .spec_table .image-card img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
  }

  /* back 버튼: 절대 위치 해제, 블록으로 아래에 배치 */
  .btn_back {
    position: relative !important;
    right: auto;
    bottom: auto;
    margin-top: 16px;
    display: flex;
    justify-content: flex-start;
  }

  .btn_back .back-link {
    width: auto;
    padding: 8px 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }

  .btn_back .back-link__icon {
    transform: translateX(0);
  }

  /* 타이틀 크기 줄이기(가독성) */
  .product_title .pc_name { font-size: 28px; margin-bottom: 10px; }
  .product_title .pc_title { font-size: 20px; margin-bottom: 8px; }
  .product_title .pc_subtitle { font-size: 16px; margin-bottom: 12px; padding-bottom: 0; }

  /* 카테고리 경로 줄임 글자 크기 */
  .category_path { font-size: 13px; margin-bottom: 8px; }

}

/* -------------------------
   더 작은 모바일: 480px 이하
   ------------------------- */
@media (max-width: 480px) {

  .carousel-main .carousel-cell {
    height: 160px;
  }

  .carousel-nav .carousel-cell {
    width: 56px;
    height: 56px;
  }

  .product_title .pc_name { font-size: 22px; }
  .product_title .pc_title { font-size: 18px; }
  .product_title .pc_subtitle { font-size: 15px; }

  .doc-actions .btn_download {
    padding: 8px 10px;
    font-size: 14px;
  }

  .spec_table table tbody td:first-child {
    width: 120px;
  }
}
