/* ============================================================
   Boao Intelligence - English Site Product Detail Stylesheet
   Premium B2B Industrial Product Detail Page
   Depends on main.css (shares CSS variables)
   ============================================================ */

/* ===== Breadcrumb (light version) ===== */
.pd-breadcrumb {
    background: var(--bg-light);
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
}
.pd-breadcrumb .container {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
}
.pd-breadcrumb a { color: var(--text-light); }
.pd-breadcrumb a:hover { color: var(--navy); }
.pd-breadcrumb .sep { color: var(--border); }
.pd-breadcrumb .current { color: var(--text); font-weight: 600; }

/* ===== Hero Section (Gallery + Info) ===== */
.pd-hero {
    padding: 48px 0 64px;
}
.pd-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
}

/* --- Gallery --- */
.pd-gallery { position: sticky; top: 88px; }
.pd-gallery-main {
    width: 100%;
    aspect-ratio: 1;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow);
}
.pd-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.pd-gallery-main:hover img { transform: scale(1.05); }
.pd-gallery-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    color: var(--border);
}
.pd-gallery-thumbs {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}
.pd-thumb {
    width: 72px;
    height: 72px;
    border: 2px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    background: var(--bg-light);
    flex-shrink: 0;
}
.pd-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.pd-thumb:hover { border-color: var(--navy-light); }
.pd-thumb.active { border-color: var(--navy); box-shadow: 0 0 0 2px rgba(26,35,126,0.15); }

/* --- Info Column --- */
.pd-category-tag {
    display: inline-block;
    background: rgba(26,35,126,0.08);
    color: var(--navy);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}
.pd-info h1 {
    font-size: 32px;
    font-weight: 800;
    color: var(--text);
    line-height: 1.25;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}
.pd-info-subtitle {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 20px;
}

/* --- Rating Row --- */
.pd-rating {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}
.pd-rating-stars { color: var(--accent); font-size: 16px; letter-spacing: 2px; }
.pd-rating-num { font-size: 16px; font-weight: 700; color: var(--text); }
.pd-rating-text { font-size: 13px; color: var(--text-muted); }
.pd-rating-text strong { color: var(--text); font-weight: 700; }
.pd-rating-divider { width: 1px; height: 14px; background: var(--border); }

/* --- Badges (selling points) --- */
.pd-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}
.pd-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--bg-light);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    transition: var(--transition);
}
.pd-badge:hover { border-color: var(--navy); color: var(--navy); }
.pd-badge.gold { background: rgba(255,193,7,0.12); border-color: rgba(255,193,7,0.3); color: var(--accent-dark); }

/* --- Price Box --- */
.pd-price-box {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    margin-bottom: 24px;
}
.pd-price-label { font-size: 13px; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.pd-price-value { font-size: 36px; font-weight: 800; color: var(--navy); line-height: 1; }
.pd-price-value .currency { font-size: 20px; font-weight: 700; margin-right: 2px; }
.pd-price-value .unit { font-size: 14px; font-weight: 500; color: var(--text-muted); margin-left: 8px; }
.pd-price-note { font-size: 13px; color: var(--text-muted); margin-top: 8px; }
.pd-price-contact { font-size: 22px; font-weight: 700; color: var(--navy); }
.pd-price-contact small { font-size: 13px; color: var(--text-muted); font-weight: 500; display: block; margin-top: 4px; }

/* --- Meta Info (SKU/MOQ/Stock) --- */
.pd-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    padding: 16px 0;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border);
}
.pd-meta-item { font-size: 13px; }
.pd-meta-label { color: var(--text-muted); font-weight: 600; margin-right: 6px; }
.pd-meta-value { color: var(--text); font-weight: 600; }
.pd-meta-value.in-stock { color: var(--success); }
.pd-meta-value.out-stock { color: var(--danger); }

/* --- CTA Button Group --- */
.pd-cta-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
.pd-cta-group .btn { flex: 1; min-width: 140px; padding: 14px 24px; font-size: 15px; }

/* --- Trust Badges --- */
.pd-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}
.pd-trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-light);
    font-weight: 600;
}
.pd-trust-item .icon { font-size: 16px; }

/* ===== Sticky Anchor Navigation ===== */
.pd-anchor-nav {
    position: sticky;
    top: 72px;
    z-index: 90;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.pd-anchor-nav .container {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    padding: 0 24px;
    scrollbar-width: none;
}
.pd-anchor-nav .container::-webkit-scrollbar { display: none; }
.pd-anchor-link {
    display: block;
    padding: 16px 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-light);
    white-space: nowrap;
    position: relative;
    transition: var(--transition);
    border-bottom: 2px solid transparent;
}
.pd-anchor-link:hover { color: var(--navy); }
.pd-anchor-link.active { color: var(--navy); border-bottom-color: var(--navy); }

/* ===== Features Section ===== */
.pd-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}
.pd-feature-card {
    text-align: center;
    padding: 28px 20px;
}
.pd-feature-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    color: #fff;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 16px rgba(26,35,126,0.2);
}
.pd-feature-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.pd-feature-card p { font-size: 14px; color: var(--text-light); line-height: 1.6; }

/* ===== Specifications Table ===== */
.pd-specs-wrap {
    max-width: 900px;
    margin: 0 auto;
}
.pd-specs-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.pd-specs-table th,
.pd-specs-table td {
    padding: 16px 24px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}
.pd-specs-table th {
    background: var(--bg-light);
    font-weight: 700;
    color: var(--text);
    width: 40%;
}
.pd-specs-table td { color: var(--text-light); }
.pd-specs-table tr:last-child th,
.pd-specs-table tr:last-child td { border-bottom: none; }
.pd-specs-table tr:nth-child(even) td { background: rgba(245,247,250,0.5); }
.pd-specs-html { background: var(--bg-card); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); }
.pd-specs-html table { width: 100%; border-collapse: collapse; }
.pd-specs-html table th,
.pd-specs-html table td { padding: 12px 16px; border: 1px solid var(--border); font-size: 14px; }

/* ===== Description Section ===== */
.pd-description {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px 48px;
    box-shadow: var(--shadow);
}
.pd-description h2 { font-size: 24px; font-weight: 700; margin: 32px 0 16px; color: var(--navy); }
.pd-description h2:first-child { margin-top: 0; }
.pd-description h3 { font-size: 18px; font-weight: 700; margin: 24px 0 12px; color: var(--text); }
.pd-description p { font-size: 15px; line-height: 1.8; color: var(--text-light); margin-bottom: 16px; }
.pd-description ul, .pd-description ol { padding-left: 24px; margin-bottom: 16px; }
.pd-description ul li, .pd-description ol li { font-size: 15px; line-height: 1.8; color: var(--text-light); margin-bottom: 8px; }
.pd-description img { max-width: 100%; height: auto; border-radius: 8px; margin: 16px 0; }
.pd-description strong { color: var(--text); font-weight: 700; }
.pd-description table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.pd-description table th, .pd-description table td { padding: 10px 14px; border: 1px solid var(--border); font-size: 14px; }

/* ===== FAQ Accordion ===== */
.pd-faq-list {
    max-width: 900px;
    margin: 0 auto;
}
.pd-faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
    transition: var(--transition);
}
.pd-faq-item:hover { border-color: var(--navy-light); box-shadow: var(--shadow); }
.pd-faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    user-select: none;
}
.pd-faq-q-text { flex: 1; padding-right: 16px; }
.pd-faq-q-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border-radius: 50%;
    font-size: 18px;
    color: var(--navy);
    transition: var(--transition);
    flex-shrink: 0;
}
.pd-faq-item.open .pd-faq-q-icon { transform: rotate(45deg); background: var(--navy); color: #fff; }
.pd-faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.pd-faq-a-inner {
    padding: 0 24px 20px;
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-light);
}

/* ===== Related Products ===== */
.pd-related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* ===== CTA Banner (reuse cta-banner style) ===== */
.pd-cta-banner {
    background: linear-gradient(135deg, var(--navy-dark), var(--navy));
    border-radius: var(--radius-lg);
    padding: 56px 64px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.pd-cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,193,7,0.1) 0%, transparent 70%);
    border-radius: 50%;
}
.pd-cta-banner h2 { font-size: 32px; font-weight: 800; margin-bottom: 12px; position: relative; z-index: 2; }
.pd-cta-banner p { font-size: 16px; color: rgba(255,255,255,0.8); margin-bottom: 28px; position: relative; z-index: 2; }
.pd-cta-banner .hero-actions { justify-content: center; position: relative; z-index: 2; }

/* ===== 404 Not Found ===== */
.pd-notfound {
    padding: 80px 0;
    text-align: center;
}
.pd-notfound h1 { font-size: 48px; font-weight: 800; color: var(--text); margin-bottom: 16px; }
.pd-notfound p { font-size: 16px; color: var(--text-light); margin-bottom: 32px; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .pd-hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .pd-gallery { position: static; }
    .pd-features-grid { grid-template-columns: repeat(2, 1fr); }
    .pd-related-grid { grid-template-columns: repeat(2, 1fr); }
    .pd-info h1 { font-size: 28px; }
}
@media (max-width: 768px) {
    .pd-hero { padding: 32px 0 48px; }
    .pd-info h1 { font-size: 24px; }
    .pd-price-value { font-size: 28px; }
    .pd-anchor-link { padding: 12px 16px; font-size: 13px; }
    .pd-features-grid { grid-template-columns: 1fr; }
    .pd-related-grid { grid-template-columns: 1fr; }
    .pd-description { padding: 24px; }
    .pd-cta-banner { padding: 36px 24px; }
    .pd-cta-banner h2 { font-size: 24px; }
    .pd-cta-group .btn { min-width: 100%; }
    .pd-specs-table th, .pd-specs-table td { padding: 12px 16px; }
}
