.header-wrapper {
  position: relative;
}

.product-detail-container {
  /* display: flex;
  align-items: flex-start; 
  padding: 0 20px; */
  width: 100%;
}

.product-detail {
  /* margin: 20px auto;  */
  /* padding-left:20px; */
  text-align: center;
  text-wrap: wrap;
  font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
  display: flex;
  flex-direction: column;
}


.product-header {
  width: 100%;
  background: linear-gradient(145deg, #152b3e, #2f3e5b);

  color: #fff;
  text-align: center;
  padding: clamp(5px, 1vw, 15px);

  position: relative;
  z-index: 10;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.subtitle-inner {
  display: flex;
  flex-direction: column;
  padding-bottom: 20px;
}

.product-title {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 10px;
}

.product-title .model-name {
  color: #4cc9f0;
  font-weight: 900;
}

.product-subtitle {
  font-size: 1rem;
  letter-spacing: 1px;
  color: #ced4da;
}

.product-line {
  width: 50px;
  height: 3px;
  background-color: #4cc9f0;
  margin: 0 auto;
  border-radius: 2px;
}




/* 왼쪽 사이드바 */
.model-selector {
  text-align: center;
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: #812f33;
  padding: 10px;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.08);
  height: fit-content;
  z-index: 100;
  /* border-radius: 0 0 10px 10px; */
  transition: all 0.3s ease;
}

/* 내부 스타일은 그대로 유지 */
.model-selector h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1e2a38;
  margin-bottom: 15px;
  border-bottom: 2px solid #dee2e6;
  padding-bottom: 5px;
}

.model-selector ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: row;
  justify-content: space-around;
}

.model-selector .model-item {
  /* background: #ffffff; */
  padding: 10px 14px;
  background-color: #812f33;
  /* border-radius: 10px; */
  cursor: pointer;
  font-weight: 500;
  font-size: clamp(20px, 2vw, 30px);
  color: white;
  transition: all 0.2s ease;
  /* border: 1px solid #dee2e6; */
}

.model-selector .model-item:hover {
  background: #bf958e;
  color: #fff;
  transform: translateX(3px);
  border-radius: 10px;
}

.model-selector .model-item.active {
  background: #6487bd;
  color: #fff;
  border-color: #bf958e;
  border-radius: 10px;
}

/* ===== 이미지 슬라이드 ===== */
.product-detail-main {
  width: 80%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.slider-wrapper {
  position: relative;
  overflow: hidden;
  max-width: 1100px;
  margin: 0 auto;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  background-color: #e2e7ef;
}

.slider-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.slider-track figure {
  flex: 0 0 100%;
  margin: 0;
  text-align: center;
}

.slider-track img {
  width: 100%;
  border-radius: 16px 16px 0 0;
  object-fit: cover;
}

.inside img {
  width: 70%;
  border: 3px solid rgb(133, 133, 139);
}




.slider-track figcaption {
  background: #f8f9fa;
  font-size: 0.95rem;
  padding: 10px 0;
  color: #333;
  border-radius: 0 0 16px 16px;
}

/* 큰 화면일수록 한 화면에 여러 장 표시 */
@media (min-width: 768px) {
  .slider-track figure {
    flex: 0 0 50%;
  }
}

@media (min-width: 1200px) {
  .slider-track figure {
    flex: 0 0 33.33%;
  }
}

/* 버튼 */
.slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(13, 27, 42, 0.6);
  color: #fff;
  border: none;
  font-size: 2rem;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  transition: background 0.3s ease;
}

.slide-btn:hover {
  background: rgba(13, 27, 42, 0.85);
}

.slide-btn.prev {
  left: 15px;
}

.slide-btn.next {
  right: 15px;
}

/* ===== 제원표 ===== */
.specs-section {
  text-align: center;
}

.specs-section h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #071927;
  margin-bottom: 20px;
  text-align: center;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.spec-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
  font-size: 0.95rem;
  color: #333;
  text-align: left;
}

.spec-table tr:nth-child(even) td {
  background-color: #f9f9f9;
}

.spec-table td:first-child {
  font-weight: 600;
  color: #222;
  width: 45%;
}

/* 반응형 */
@media (max-width: 768px) {

  .specs-section h3 {
    font-size: 1.3rem;
  }

  .spec-table td {
    font-size: 0.9rem;
    padding: 10px 12px;
  }

  .model-selector h3 {
    display: none;
  }

  .model-selector {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;

    padding: 10px;
    padding-left: 0;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 0;
    z-index: 200;
  }

  .model-selector ul {
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: space-around;
  }

  .model-item {
    flex-shrink: 0;
    padding: 8px 14px;
    font-size: 0.9rem;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    margin-bottom: 0;
  }

  /* 본문은 모델 선택바 높이만큼 여백 추가 */
  .product-detail {
    gap: 60px;
  }


  .product-title {
    font-size: 1.6rem;
  }

  .product-subtitle {
    font-size: 0.95rem;
  }

  .catalog-btn-area {
    text-align: center;
  }

  .catalog-download-btn {
    font-size: 0.95rem;
  }


}


/* comming soon */

.product-detail.coming-soon {
  position: relative;
  overflow: hidden;
  filter: grayscale(0.6);
  opacity: 0.8;
  pointer-events: none;
}

.coming-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  animation: fadeIn 0.8s ease forwards;
}

.coming-box {
  text-align: center;
  color: #fff;
  padding: 40px 60px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 20px;
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.coming-box h1 {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.coming-box p {
  font-size: 1.1rem;
  opacity: 0.9;
  line-height: 1.6;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}


/* comming soon용 이미지 */
.product-detail.coming-soon .product-gallery {
  overflow: visible;
}

.product-detail.coming-soon .gallery-track {
  display: flex !important;
  justify-content: center !important;
  align-items: center;
  width: 100%;
}

.product-detail.coming-soon .gallery-track img {
  width: 50% !important;
  height: auto !important;
  flex: 0 0 auto !important;
  margin: 0 auto !important;
  object-fit: contain !important;
  display: block !important;
  border-radius: 16px;
}

.hidden {
  display: none;
}



.catalog-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #1e2a38;
  /* 짙은 남회색 */
  border: 2px solid #4cc9f0;
  /* 브랜드 포인트 컬러 */
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.5px;
  padding: 14px 34px;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* ✅ 호버 시 */
.catalog-download-btn:hover {
  background: #4cc9f0;
  color: #0d1b2a;
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(76, 201, 240, 0.3);
}

/* ✅ 아이콘 스타일 */
.download-icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  transition: transform 0.3s ease;
}

.catalog-download-btn:hover .download-icon {
  transform: translateY(3px);
}