.product-detail {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 1rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

/* 商品圖片畫廊 */
.product-gallery {
  position: sticky;
  top: 100px;
}

.main-image {
  position: relative;
  width: 100%;
  padding-bottom: 100%;
  background: #f5f5f5;
  overflow: hidden;
  margin-bottom: 1rem;
  border: 1px solid #e0e0e0;
}

.main-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 縮圖畫廊樣式 */
.thumbnail-gallery {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.thumbnail-gallery .thumbnail {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border: 2px solid #e0e0e0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.thumbnail-gallery .thumbnail:hover,
.thumbnail-gallery .thumbnail.active {
  border-color: #333;
  transform: scale(1.05);
}

/* 商品詳細資訊 */
.product-info-detail {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1.5rem;
}

.product-title {
  font-size: 2rem;
  font-weight: 700;
  color: #333;
  line-height: 1.3;
}

.product-excerpt {
  width: 50%;
  font-size: 1rem;
  color: #666;
  line-height: 1.6;
}

/* ==================== 規格選擇器 (下拉選單) ==================== */

.variant-select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e0e0e0;
  font-size: 1rem;
  background: white;
  cursor: pointer;
  transition: border-color 0.3s ease;
}

.variant-select:hover {
  border-color: #333;
}

.variant-select:focus {
  outline: none;
  border-color: #333;
  box-shadow: 0 0 0 3px rgba(51, 51, 51, 0.1);
}

/* 價格區塊 */

.price-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.price-row:last-child {
  margin-bottom: 0;
}

.price-original-large {
  font-size: 1.25rem;
  color: #999;
  text-decoration: line-through;
}

.price-current-large {
  font-size: 2rem;
  font-weight: 700;
  color: #333;
}

/* 數量選擇器 */
.quantity-selector {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.quantity-input {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* ==================== 圖文配對區塊 ==================== */
.section-block {
  width: 100%;
}

.image-text-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

/* 左圖右文 */
.image-text-block.image-left .image-wrapper {
  order: 1;
}

.image-text-block.image-left .text-content {
  order: 2;
}

/* 左文右圖 */
.image-text-block.image-right .image-wrapper {
  order: 2;
}

.image-text-block.image-right .text-content {
  order: 1;
}

/* 圖片樣式 */
.image-wrapper img {
  width: 100%;
  height: auto;
}

/* 文字樣式 */
.text-content {
  font-size: 1rem;
  line-height: 1.8;
  color: #666;
}

/* ==================== 純文字區塊 ==================== */
.text-only-block {
  max-width: 800px;
  margin: 0 auto 60px;
}

/* ==================== 純圖片區塊 ==================== */
.image-only-block {
  text-align: center;
}

/* ==================== 商品說明區 ==================== */

/* Tab 導航 */
.tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 2px solid #e0e0e0;
  margin-bottom: 2rem;
}

.tab-btn {
  padding: 1rem 1.5rem;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  color: #666;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.tab-btn:hover {
  color: #333;
}

.tab-btn.active {
  color: #333;
  border-bottom-color: #333;
}

/* Tab 內容 */
.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

.content-wrapper {
  max-width: 800px;
  line-height: 1.8;
  color: #666;
}

.content-wrapper h3 {
  font-size: 1.5rem;
  color: #333;
  margin: 1.5rem 0 1rem;
}

.content-wrapper ul,
.content-wrapper ol {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.content-wrapper li {
  margin-bottom: 0.5rem;
}
