/* ==========================================================================
   梧村有限公司 - 商品內頁專屬原版工業風樣式 (完全對齊原始設計與 RWD)
   ========================================================================== */

/* 1. 基礎麵包屑 */
.breadcrumb { background: var(--white); border-bottom: 1px solid var(--stone-100); }
.breadcrumb ol { display: flex; gap: 8px; padding: 14px 0; font-size: 13px; color: var(--steel-700); flex-wrap: wrap; list-style: none; }
.breadcrumb a:hover { color: var(--safety-dark); }
.breadcrumb li:not(:last-child)::after { content: "›"; margin-left: 8px; color: var(--steel-400); }
.breadcrumb li[aria-current] { color: var(--ink); font-weight: 700; }

/* 2. 商品主區塊 (Essential Section) */
.product-essential { padding: 48px 0; background: var(--white); border-bottom: 1px solid var(--stone-100); }
.product-essential .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: start; }

/* 左側：多圖相簿 */
.product-gallery { display: flex; flex-direction: column; gap: 16px; }
.gallery-main { background: var(--stone-50); border-radius: 8px; overflow: hidden; aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; border: 1px solid var(--stone-100); position: relative; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; transition: opacity 0.2s ease; }

.gallery-thumbs { display: flex; gap: 12px; flex-wrap: wrap; }
.thumb-item { width: 80px; aspect-ratio: 4/3; background: var(--stone-50); border: 2px solid var(--stone-100); border-radius: 4px; overflow: hidden; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--steel-700); font-weight: 700; text-align: center; padding: 4px; transition: transform 0.15s, border-color 0.15s; }
.thumb-item img { width: 100%; height: 100%; object-fit: cover; }
.thumb-item:hover { transform: translateY(-2px); border-color: var(--steel-700); }
.thumb-item.active { border-color: var(--safety); box-shadow: 0 0 0 1px var(--safety); }
.photo-placeholder { color: var(--steel-400); font-size: 14px; font-weight: 700; text-align: center; }

/* 右側：基本規格與賣點 */
.product-order-info { display: flex; flex-direction: column; }
.product-title-area { margin-bottom: 16px; }
.product-title-area h1 { font-size: clamp(24px, 3vw, 34px); font-weight: 900; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 8px; color: var(--steel-900); }
.code-badge { font-family: var(--font-mono); font-size: 14px; background: var(--steel-900); color: var(--stone-50); padding: 4px 10px; border-radius: 4px; letter-spacing: 0.05em; }
.badge-subsidy-large { display: inline-block; font-size: 13px; font-weight: 700; color: var(--white); background: var(--field); padding: 6px 14px; border-radius: 4px; margin-top: 8px; width: fit-content; }

.tagline { font-size: 17px; font-weight: 700; color: var(--steel-700); margin-bottom: 24px; border-left: 3px solid var(--safety); padding-left: 12px; }
.feature-list { margin-bottom: 32px; background: var(--stone-50); padding: 20px; border-radius: 6px; list-style: none; }
.feature-list li { font-size: 14.5px; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; color: var(--steel-700); }
.feature-list li:last-child { margin-bottom: 0; }
.feature-list li i.icon-check::before { content: "✓"; color: var(--safety); font-weight: 900; font-style: normal; }

.action-buttons { display: flex; gap: 16px; }
.btn-outline { border: 2px solid var(--steel-900); color: var(--steel-900); font-weight: 700; }
.btn-outline:hover { background: var(--steel-900); color: var(--white); }

/* 3. 詳細規格區塊 (Details Block) */
.product-details-block { padding: 48px 0; }
.product-long-desc { background: var(--white); padding: 32px; border-radius: 8px; border: 1px solid var(--stone-100); margin-bottom: 36px; }
.product-long-desc h3 { font-size: 18px; margin-bottom: 16px; border-bottom: 2px solid var(--stone-100); padding-bottom: 10px; color: var(--steel-900); }
.product-long-desc p { font-size: 15px; color: var(--steel-700); }

/* 影片 */
.video-section { margin-bottom: 40px; }
.video-section h3 { font-size: 18px; margin-bottom: 16px; }
.video-container { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 8px; background: var(--steel-900); box-shadow: 0 4px 20px rgba(0,0,0,0.05); }
.video-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

/* 規格表 */
.spec-section { margin-bottom: 40px; }
.spec-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: 8px; overflow: hidden; border: 1px solid var(--stone-100); }
.spec-table th, .spec-table td { padding: 14px 20px; font-size: 14px; border-bottom: 1px solid var(--stone-100); text-align: left; }
.spec-table th { background: var(--steel-900); color: var(--white); font-size: 15px; font-weight: 700; }
.spec-key { background: var(--stone-50); width: 25%; color: var(--steel-700); font-weight: 700; }
.spec-value { color: var(--ink); }

/* FAQ 風琴簾 */
.faq-section { margin-top: 40px; }
.faq-section h3 { font-size: 18px; margin-bottom: 16px; }
.faq-item { background: var(--white); border: 1px solid var(--stone-100); border-radius: 6px; margin-bottom: 12px; overflow: hidden; }
.faq-q { padding: 16px 20px; font-weight: 700; font-size: 14.5px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; background: var(--white); }
.faq-q::after { content: "+"; font-size: 18px; color: var(--safety); font-weight: bold; transition: transform 0.2s; }
.faq-item.open .faq-q::after { content: "−"; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; font-size: 14px; color: var(--steel-700); background: var(--stone-50); }
.faq-item.open .faq-a { max-height: 300px; }
.faq-a p { padding: 16px 20px; margin: 0; }

/* 4. 同系列其他機型推薦 */
.related-products-section { padding: 56px 0; border-top: 1px solid var(--stone-100); }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 20px; }
.rel-card { background: var(--white); border: 1px solid var(--stone-100); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; transition: transform 0.2s, box-shadow 0.2s; }
.rel-card:hover { transform: translateY(-4px); box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
.rel-photo { aspect-ratio: 4/3; background: var(--stone-50); display: flex; align-items: center; justify-content: center; overflow: hidden; border-bottom: 1px solid var(--stone-100); color: var(--steel-400); font-size: 12px; }
.rel-photo img { width: 100%; height: 100%; object-fit: cover; }
.rel-info { padding: 16px; }
.rel-info .code { font-family: var(--font-mono); font-size: 11px; background: var(--steel-900); color: var(--white); padding: 2px 6px; border-radius: 3px; font-weight: 700; }
.rel-info h4 { font-size: 14.5px; margin-top: 8px; color: var(--steel-900); font-weight: 700; }

/* 5. 手機固定底部 CTA */
.sticky-cta { position: fixed; bottom: 0; left: 0; right: 0; background: var(--white); border-top: 1px solid var(--stone-100); padding: 12px 24px; display: flex; justify-content: center; z-index: 100; box-shadow: 0 -4px 12px rgba(0,0,0,0.05); }
.sticky-cta .btn { width: 100%; max-width: 500px; justify-content: center; }

/* RWD 響應式調整 */
@media (max-width: 900px) {
  .product-essential .wrap { grid-template-columns: 1fr; gap: 32px; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .related-grid { grid-template-columns: 1fr; }
}