/* Product Detail 專用 CSS（僅針對產品詳細頁） */

/* 1. 頁面結構 */
.container.main-content {
  flex: 1;
  padding-top: 4rem;
  padding-bottom: 4rem;
  background-color: #fff;
  border-radius: 12px;
}

/* 2. Banner（全站已設 object-fit，僅補保險） */
.banner-container img {
  width: 100%;
  object-fit: cover;
}

/* 3. 麵包屑 */
.breadcrumb-nav {
  margin: 1.5rem 0;
  padding: 0 1.5rem;
}

.breadcrumb {
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.breadcrumb-item a {
  color: #555;
  transition: color 0.3s;
}

.breadcrumb-item a:hover {
  color: #ff6600;
  text-decoration: underline;
}

.breadcrumb-item.active {
  font-weight: 700;
  color: #222;
  font-size: 1rem;
}

/* 4. 主要視覺與縮圖 */
#main-image video,
#main-image img {
  width: 100%;
  height: 360px;
  object-fit: contain;
  border-radius: 12px;
  display: block;
}

#image-thumbs {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  align-items: flex-start;
  max-height: 90px;
  scrollbar-width: none;
}

#image-thumbs::-webkit-scrollbar {
  display: none;
}

#image-thumbs img {
  width: 100px;
  height: 80px;
  min-width: 100px;
  object-fit: contain;
  border: 2px solid transparent;
  border-radius: 8px;
  background: #fff;
  padding: 4px;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}

#image-thumbs img:hover {
  border-color: #ccc;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.06);
}

#image-thumbs img.active {
  border-color: #999;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

/* 5. 縮圖輪播箭頭 */
.thumbs-wrapper {
  margin-top: 2rem;
  position: relative;
}

.thumb-scroll-btn {
  background: rgba(255, 255, 255, 0.8);
  border: none;
  font-size: 2rem;
  padding: 0.25rem 0.75rem;
  cursor: pointer;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: background 0.2s;
  z-index: 10;
}

.thumb-scroll-btn:hover {
  background: #f0f0f0;
}

#thumb-left {
  position: absolute;
  left: -16px;
}

#thumb-right {
  position: absolute;
  right: -16px;
}

.thumb-scroll-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* 6. 產品描述與規格表 */
#product-description {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #444;
}

#features-body p {
  margin-bottom: 0.5rem;
}

.custom-spec-table th {
  width: 40%;
  background: #f5f7fa;
  color: #333;
  font-weight: 600;
  border: none;
  padding: 0.75rem 1rem;
}

.custom-spec-table td {
  color: #555;
  border: none;
  padding: 0.75rem 1rem;
}

.custom-spec-table tr:not(:last-child) {
  border-bottom: 1px solid #e1e4e8;
}

/* 7. 分頁區塊/選項卡 */
.tab-section {
  margin-top: 2.5rem;
  background: #fdfdfd;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

/* 8. 影片與 option 區 */
.option-card img {
  object-fit: contain;
  height: 200px;
  width: 100%;
}

#youtube-container {
  margin: 2rem 0;
}

/* 9. 相關產品 */
.related-products {
  margin-top: 3rem;
}

.related-products h4 {
  margin-bottom: 1rem;
  font-weight: 700;
  color: #003366;
}

/* 10. 動畫效果 */
.fade-in {
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.98);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* 11. 響應式補充 */
@media (max-width: 768px) {

  #main-image video,
  #main-image img {
    height: 220px;
  }

  .container.main-content {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .thumbs-wrapper {
    margin-top: 1rem;
  }
}

@media (max-width: 480px) {

  #main-image video,
  #main-image img {
    height: 160px;
  }

  .tab-section {
    padding: 0.75rem;
  }
}


.custom-collapse-btn {
  background: #fff;
  border: 1.5px solid #003366;
  color: #003366;
  border-radius: 1.7em;
  font-size: 1.08rem;
  font-weight: 500;
  padding: 0.32em 1.4em 0.32em 1em;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
  display: inline-flex;
  align-items: center;
  transition: background .18s, color .18s, border-color .18s;
  outline: none;
  cursor: pointer;
  gap: 2px;
}

.custom-collapse-btn:hover,
.custom-collapse-btn:focus {
  background: #eaf2fa;
  border-color: #0056b3;
  color: #0056b3;
}

.custom-collapse-btn:active {
  background: #dae7f5;
  border-color: #0056b3;
  color: #0056b3;
}

.card.card-body {
  word-break: break-word;
  overflow-wrap: break-word;
  max-height: 80vh;        /* ↑ 調高一點較安全 */
  overflow-y: auto;
  width: 100%;
  box-sizing: border-box;
  background: #f8fafc;
  padding-right: 2rem;
}

.btn-nav-style {
  background: #fff;
  color: #222;
  border: 1.5px solid #c6c6c6;
  border-radius: 16px;    /* 比左側再圓一點，現代感更強 */
  font-weight: 600;
  font-size: 1.02rem;
  padding: 0.50rem 1.25rem 0.50rem 1.25rem;
  box-shadow: 0 2px 8px rgba(60,60,60,0.06);
  letter-spacing: 0.01em;
  transition: background 0.17s, color 0.17s, border 0.17s, box-shadow 0.18s;
  outline: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
}

.btn-nav-style:hover, .btn-nav-style:focus {
  background: #f5f6fa;
  color: #191919;
  border-color: #9e9e9e;
  box-shadow: 0 3px 16px rgba(44,44,44,0.13);
}

.btn-nav-style:active {
  background: #ededed;
  color: #000;
  border-color: #b0b0b0;
  box-shadow: 0 2px 6px rgba(44,44,44,0.10);
}

