/* 弗洛材料 — 產品內頁樣式 */

/* ── 產品詳情頁 ─────────────────────────── */
.product-wrap {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2.5rem;
    align-items: start;
    padding: 3rem 0 5rem;
}
@media (max-width: 1024px) {
    .product-wrap { grid-template-columns: 1fr; }
}

/* 主圖 */
.product-cover {
    background: #f8fafc;
    border: 1px solid #e5eaf3;
    border-radius: 1rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    max-height: 480px;
    cursor: zoom-in;
}
.product-cover img {
    width: 100%;
    max-height: 480px;
    object-fit: contain;
    padding: 1.5rem;
    transition: transform .3s;
}
.product-cover:hover img { transform: scale(1.03); }

/* Tab */
.product-tabs {
    display: flex;
    border-bottom: 2px solid #e5eaf3;
    gap: .25rem;
    margin: 1.75rem 0 1.5rem;
}
.ptab {
    padding: .6rem 1.5rem;
    font-size: .875rem;
    font-weight: 600;
    color: #6b8199;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
    transition: color .15s, border-color .15s;
}
.ptab.active { color: #1976D2; border-bottom-color: #1976D2; }
.ptab-panel { display: none; }
.ptab-panel.active { display: block; }

/* 老站 HTML 圖片強制響應式 */
.product-content img,
.product-specs img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: .5rem;
    margin: .75rem 0;
}
.product-content h1,.product-content h2,.product-content h3 {
    font-weight: 700; color: #1a2d45; margin: 1.5rem 0 .75rem;
}
.product-content h1 { font-size: 1.4rem; }
.product-content h2 { font-size: 1.2rem; }
.product-content h3 { font-size: 1.05rem; }
.product-content p  { line-height: 1.85; margin-bottom: .9rem; color: #374151; }
.product-content ul, .product-content ol {
    padding-left: 1.5rem; margin-bottom: 1rem; color: #374151;
}
.product-content li { margin-bottom: .4rem; line-height: 1.7; }
.product-content table {
    width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: .875rem;
}
.product-content th, .product-content td {
    padding: .6rem .9rem;
    border: 1px solid #e5eaf3;
    text-align: left;
}
.product-content th { background: #f0f6ff; font-weight: 600; color: #1a2d45; }

/* Sticky 側欄 */
.product-sidebar {
    position: sticky;
    top: 86px;
}
.inquiry-card {
    background: linear-gradient(145deg, #0D2137 0%, #1a3a5c 100%);
    border-radius: 1rem;
    padding: 1.5rem;
    color: white;
}
.inquiry-card h3 {
    font-size: .75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .1em;
    color: #90caf9; margin-bottom: .75rem;
}
.contact-row {
    display: flex; align-items: center; gap: .6rem;
    padding: .5rem 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
    font-size: .82rem; color: rgba(255,255,255,.7);
}
.contact-row:last-child { border-bottom: none; }
.contact-row i { color: #90caf9; font-size: 1rem; flex-shrink: 0; }

/* Lightbox */
.lightbox {
    display: none; position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,.85); align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 90vh; object-fit: contain; border-radius: .5rem; }
.lightbox-close {
    position: absolute; top: 1rem; right: 1.5rem;
    color: white; font-size: 2rem; cursor: pointer; line-height: 1;
    background: none; border: none;
}

/* Related */
.related-card {
    background: white; border: 1px solid #e5eaf3; border-radius: .75rem;
    overflow: hidden; text-decoration: none;
    transition: box-shadow .2s, transform .2s;
}
.related-card:hover { box-shadow: 0 8px 24px rgba(25,118,210,.12); transform: translateY(-2px); }
.related-card .thumb {
    aspect-ratio: 4/3; background: #f8fafc;
    display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.related-card .thumb img {
    width: 100%; height: 100%; object-fit: contain; padding: .75rem;
}
