/* =========================================================
   HL3C Product Layout V13 Compact
   目標：
   1. 產品頁參考舊 catalog/detail，不再佔滿巨大主視覺
   2. LINE 浮動按鈕改用接近官方 LINE 圖示樣式
   3. 規格與應用更輕量，搬運尺寸有填才顯示
   ========================================================= */

:root{
  --hl3c-red:#d84b32;
  --hl3c-orange:#f97316;
  --hl3c-dark:#0f172a;
  --hl3c-text:#111827;
  --hl3c-muted:#64748b;
  --hl3c-border:#e5e7eb;
  --hl3c-soft:#f8fafc;
  --line-green:#06c755;
}

/* 關閉前幾版太大的 hero 影響 */
.product-v11-page {
  background:#f6f7f9 !important;
  padding: 26px 0 64px !important;
}

.product-v11-topline {
  display:none !important;
}

.product-v11-hero,
.product-v11-content {
  width:min(1180px, calc(100% - 32px)) !important;
  margin-left:auto !important;
  margin-right:auto !important;
}

/* 主商品卡改成 compact，不再巨大 landing page */
.product-v11-hero {
  margin-top:10px !important;
  margin-bottom:22px !important;
  border-radius:22px !important;
  border:1px solid var(--hl3c-border) !important;
  background:#fff !important;
  box-shadow:0 14px 44px rgba(15,23,42,.07) !important;
  overflow:hidden !important;
}

.product-v11-hero::before {
  height:5px !important;
  background:linear-gradient(90deg, var(--hl3c-red), var(--hl3c-orange), var(--hl3c-dark)) !important;
}

.product-v11-hero-inner {
  display:grid !important;
  grid-template-columns:minmax(0,1fr) 430px !important;
  gap:0 !important;
  min-height:0 !important;
}

/* 左側商品資訊 */
.product-v11-copy {
  padding:38px 42px !important;
  display:flex !important;
  flex-direction:column !important;
  justify-content:center !important;
}

.product-v11-badge {
  display:inline-flex !important;
  width:max-content !important;
  max-width:100% !important;
  align-items:center !important;
  padding:7px 12px !important;
  margin-bottom:16px !important;
  border-radius:999px !important;
  background:#fff1f2 !important;
  border:1px solid #fecaca !important;
  color:#b83222 !important;
  font-size:14px !important;
  font-weight:900 !important;
  text-decoration:none !important;
}

.product-v11-title {
  margin:0 !important;
  color:var(--hl3c-text) !important;
  font-size:clamp(34px, 3.4vw, 52px) !important;
  line-height:1.14 !important;
  letter-spacing:.01em !important;
}

.product-v11-summary {
  margin:16px 0 0 !important;
  max-width:620px !important;
  color:#475569 !important;
  font-size:18px !important;
  line-height:1.65 !important;
}

/* 因右下角已有 LINE 浮動，主卡不放 LINE CTA */
.product-v11-actions {
  margin-top:22px !important;
  display:flex !important;
  gap:12px !important;
  flex-wrap:wrap !important;
}

.product-v11-actions .product-v11-btn.primary {
  display:none !important;
}

.product-v11-btn,
.product-v11-btn.secondary {
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  min-height:42px !important;
  padding:10px 16px !important;
  border-radius:11px !important;
  background:#111827 !important;
  color:#fff !important;
  text-decoration:none !important;
  font-weight:900 !important;
  font-size:15px !important;
  box-shadow:none !important;
}

/* 右側圖片與規格：圖片縮小，規格更像舊 catalog 的資訊區 */
.product-v11-visual {
  padding:28px !important;
  background:
    linear-gradient(180deg,#f8fafc,#fff) !important;
  border-left:1px solid #eef2f7 !important;
  display:grid !important;
  grid-template-rows:auto auto !important;
  gap:14px !important;
  align-content:start !important;
}

.product-v11-photo-card {
  width:100% !important;
  min-height:230px !important;
  max-height:300px !important;
  padding:16px !important;
  border:1px solid var(--hl3c-border) !important;
  border-radius:18px !important;
  background:#fff !important;
  box-shadow:0 8px 24px rgba(15,23,42,.06) !important;
  cursor:zoom-in !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
}

.product-v11-photo-card img {
  width:100% !important;
  height:100% !important;
  max-height:260px !important;
  object-fit:contain !important;
  display:block !important;
}

/* 規格與應用：輕量資訊表 */
.product-v11-spec {
  background:#fff !important;
  border:1px solid var(--hl3c-border) !important;
  border-radius:18px !important;
  padding:16px 18px !important;
  box-shadow:0 8px 24px rgba(15,23,42,.045) !important;
  color:var(--hl3c-text) !important;
}

.product-v11-spec h2 {
  margin:0 0 10px !important;
  color:var(--hl3c-text) !important;
  font-size:19px !important;
  line-height:1.3 !important;
}

.product-v11-spec-grid {
  display:grid !important;
  gap:0 !important;
}

.product-v11-spec-row {
  display:grid !important;
  grid-template-columns:92px minmax(0,1fr) !important;
  gap:12px !important;
  padding:9px 0 !important;
  border-top:1px solid #eef2f7 !important;
}

.product-v11-spec-row:first-child {
  border-top:0 !important;
}

.product-v11-spec-row strong {
  color:#334155 !important;
  font-size:13px !important;
  line-height:1.55 !important;
  font-weight:900 !important;
}

.product-v11-spec-row span {
  color:#475569 !important;
  font-size:14px !important;
  line-height:1.6 !important;
  overflow-wrap:anywhere !important;
}

/* 內容區 */
.product-v11-content {
  margin-top:0 !important;
  margin-bottom:60px !important;
}

.product-v11-section,
.product-related-cases {
  background:#fff !important;
  border:1px solid var(--hl3c-border) !important;
  border-radius:22px !important;
  padding:32px 38px !important;
  margin-bottom:20px !important;
  box-shadow:0 12px 38px rgba(15,23,42,.055) !important;
}

.product-v11-section h2,
.product-related-cases h2 {
  margin:0 0 20px !important;
  color:var(--hl3c-text) !important;
  font-size:clamp(28px,2.4vw,38px) !important;
  line-height:1.2 !important;
}

.product-v11-html {
  color:#1f2937 !important;
  font-size:17px !important;
  line-height:1.85 !important;
  max-width:100% !important;
  overflow:hidden !important;
}

.product-v11-html img {
  max-width:100% !important;
  height:auto !important;
  object-fit:contain !important;
  border-radius:14px !important;
}

.product-v11-html iframe {
  display:block !important;
  max-width:100% !important;
  width:min(100%,552px) !important;
  margin:18px auto !important;
}

/* 圖片放大 */
.hl3c-img-lightbox {
  position:fixed;
  inset:0;
  z-index:10000;
  display:none;
  align-items:center;
  justify-content:center;
  padding:34px;
  background:rgba(2,6,23,.84);
  backdrop-filter:blur(5px);
}

.hl3c-img-lightbox.is-open {
  display:flex;
}

.hl3c-img-lightbox img {
  max-width:96vw;
  max-height:92vh;
  object-fit:contain;
  border-radius:16px;
  background:#fff;
  box-shadow:0 30px 90px rgba(0,0,0,.45);
}

.hl3c-img-lightbox button {
  position:absolute;
  top:22px;
  right:24px;
  width:42px;
  height:42px;
  border:0;
  border-radius:999px;
  background:#fff;
  color:#0f172a;
  font-size:26px;
  line-height:1;
  cursor:pointer;
}

/* LINE 浮動：接近官方圖示，小顆不擋畫面 */
.hl3c-line-float {
  position:fixed !important;
  right:18px !important;
  bottom:18px !important;
  z-index:9999 !important;
  width:54px !important;
  height:54px !important;
  padding:0 !important;
  border-radius:14px !important;
  background:var(--line-green) !important;
  color:#fff !important;
  text-decoration:none !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  box-shadow:0 10px 28px rgba(6,199,85,.32) !important;
  transition:transform .18s ease, box-shadow .18s ease !important;
}

.hl3c-line-float:hover {
  transform:translateY(-2px) !important;
  box-shadow:0 14px 34px rgba(6,199,85,.42) !important;
}

.hl3c-line-float svg {
  width:38px !important;
  height:38px !important;
  display:block !important;
}

.hl3c-line-float .line-icon,
.hl3c-line-float span:not(.line-icon) {
  display:none !important;
}

/* 防止舊版右側小卡殘留 */
.product-v2-side,
.product-v2-side-card {
  display:none !important;
}

/* 後台搬運尺寸欄位 */
.hl3c-transport-size-note {
  color:#64748b;
  font-size:13px;
  margin-top:6px;
}

@media (max-width:980px){
  .product-v11-hero-inner {
    grid-template-columns:1fr !important;
  }

  .product-v11-visual {
    border-left:0 !important;
    border-top:1px solid #eef2f7 !important;
  }
}

@media (max-width:720px){
  .product-v11-page {
    padding-top:14px !important;
  }

  .product-v11-hero,
  .product-v11-content {
    width:min(100% - 22px, 100%) !important;
  }

  .product-v11-copy {
    padding:30px 24px !important;
  }

  .product-v11-title {
    font-size:34px !important;
  }

  .product-v11-summary {
    font-size:16px !important;
  }

  .product-v11-visual {
    padding:20px !important;
  }

  .product-v11-photo-card {
    min-height:210px !important;
  }

  .product-v11-spec-row {
    grid-template-columns:1fr !important;
    gap:2px !important;
  }

  .product-v11-section,
  .product-related-cases {
    padding:26px 22px !important;
  }

  .hl3c-line-float {
    right:14px !important;
    bottom:14px !important;
    width:50px !important;
    height:50px !important;
  }
}
