@charset "UTF-8";

/* ==========================================
   NEOK JAPAN - 製品案内 (상세 페이지) 스타일
   (product_list.css)
   ========================================== */

/* ------------------------------------------
   1. 상단 브레드크럼 & 타이틀 Header
   ------------------------------------------ */
.page-header {
  padding: 40px 0 50px;
  background-color: var(--white);
}

.breadcrumb {
  font-size: 13px;
  color: var(--text-gray);
  margin-bottom: 18px;
  letter-spacing: 0.5px;
}

.breadcrumb a {
  color: var(--text-gray);
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: var(--main-navy);
}

.breadcrumb .separator {
  margin: 0 10px;
  color: #cbd5e0;
  font-weight: 300;
}

.breadcrumb .current {
  color: var(--main-navy);
  font-weight: 600;
}

.page-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--main-navy);
  letter-spacing: -0.5px;
}

/* ------------------------------------------
   2. 제품 상세 본문 Section
   ------------------------------------------ */
.product-detail-section {
  background-color: var(--white);
  padding-bottom: 100px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ------------------------------------------
   3. 타이틀 설명글 영역 (좌측 정렬 적용)
   ------------------------------------------ */
.page-desc-section {
  max-width: 950px;
  margin: 0 0 50px 0; /* 중앙 정렬(auto) 해제 및 좌측 밀착 */
  text-align: left;   /* 텍스트 좌측 정렬 */
}

.page-desc-section p {
  font-size: 16px;
  color: var(--text-dark);
  line-height: 1.8;
  margin: 0;
  /* [수정] 모바일 화면 넘어침 방지 및 부드러운 줄바꿈 처리 */
  white-space: normal;
  word-break: break-word;     /* 긴 단어나 연속 문장도 폭에 맞게 부드럽게 줄바꿈 */
  overflow-wrap: break-word;
}

/* ------------------------------------------
   4. PDF 다운로드 바 (좌측 정렬 적용)
   ------------------------------------------ */
.category-pdf-bar {
  max-width: 800px;
  margin: 0 0 50px 0; /* 중앙 정렬(auto) 해제 및 좌측 밀착 */
  padding: 20px 30px;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.pdf-bar-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pdf-badge {
  background-color: var(--main-navy);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.pdf-text {
  font-size: 15px;
  color: var(--text-dark);
}

.pdf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  background-color: var(--main-navy);
  color: var(--white);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  border-radius: 4px;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.pdf-btn:hover {
  background-color: #1a3c6b;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15, 38, 69, 0.2);
}

/* ------------------------------------------
   5. 갤러리 그리드 (Works와 규격 통일)
   ------------------------------------------ */
.product-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 24px;
}

.gallery-item {
  display: block;
  text-decoration: none;
  cursor: pointer;
}

.gallery-img-box {
  width: 100%;
  aspect-ratio: 4 / 3; /* 통일된 4:3 썸네일 비율 */
  overflow: hidden;
  background-color: #f8fafc;
  border-radius: 8px;
  margin-bottom: 16px;
  position: relative;
}

.gallery-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-img-box img {
  transform: scale(1.05);
}

.gallery-text-box {
  padding: 0 4px;
}

.item-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--main-navy);
  margin: 0 0 6px 0;
  line-height: 1.4;
}

.item-category {
  font-size: 14px;
  color: var(--text-gray);
  margin: 0;
  line-height: 1.4;
}

/* ------------------------------------------
   6. 상세 분할 이미지
   ------------------------------------------ */
.detail-image-box {
  width: 100%;
  max-width: 600px; /* greeting 페이지 사진처럼 안정적이고 보기 좋은 최대 가로폭 */
  margin: 0 auto;
  padding: 0 20px;  /* 기기 가로 사이즈보다 작게 보이도록 양옆 여백(숨통) 추가 */
  box-sizing: border-box;
}

.detail-image-box img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.detail-image-box:first-of-type {
  margin-top: 40px;
}

/* ------------------------------------------
   7. 모바일 반응형 (768px 이하)
   ------------------------------------------ */
@media (max-width: 768px) {
  .page-header {
    padding: 25px 0 30px;
  }
  
  .page-title {
    font-size: 24px;
  }

  .page-desc-section {
    margin-bottom: 40px;
  }

  .page-desc-section p {
    font-size: 14px;
    line-height: 1.7;
    text-align: left;
  }

  .page-desc-section p br {
    display: none; /* 모바일에서 텍스트 자연스럽게 흐르도록 br 무시 */
  }

  .category-pdf-bar {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    gap: 16px;
  }
  
  .pdf-btn {
    width: 100%;
  }

  .product-gallery-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* PC용 기본 설정 */
.pc-only-br {
  display: inline;
}

/* 768px 이하 모바일 반응형 */
@media (max-width: 768px) {
  /* 모바일에서는 PC용 강제 줄바꿈(<br>)을 숨겨서 문장이 흐르듯 자동 줄바꿈되게 함 */
  .pc-only-br {
    display: none;
  }
}