/* ============================================================
   Boao Intelligence - English Site Product Detail Stylesheet
   Premium B2B Industrial Product Detail Page
   Depends on main.css (shares CSS variables)
   ============================================================ */

/* ===== Product Detail Hero Banner (shared across all product pages) ===== */
.pd-detail-hero {
    position: relative;
    background: linear-gradient(135deg, #0a0f3d 0%, #16205c 40%, #1e2d7a 100%);
    color: #fff;
    padding: 56px 0 52px;
    overflow: hidden;
}

/* Decorative background */
.pd-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.pd-hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
}
.pd-hero-orb-1 {
    top: -120px;
    right: -60px;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(255,193,7,0.12) 0%, transparent 70%);
}
.pd-hero-orb-2 {
    bottom: -140px;
    left: -80px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(0,131,143,0.10) 0%, transparent 70%);
}
.pd-hero-grid-lines {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(180deg, rgba(0,0,0,0.6), transparent 80%);
    -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.6), transparent 80%);
}

/* Inner layout */
.pd-hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}
.pd-hero-content {
    flex: 1;
    min-width: 0;
}

/* Eyebrow */
.pd-hero-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #ffc107;
    background: rgba(255,193,7,0.1);
    border: 1px solid rgba(255,193,7,0.25);
    border-radius: 4px;
    padding: 4px 12px;
    margin-bottom: 16px;
}

/* Title (h2, not h1 — h1 stays in product info for SEO) */
.pd-hero-title {
    font-size: 38px;
    font-weight: 800;
    letter-spacing: -0.8px;
    line-height: 1.15;
    margin: 0 0 10px;
    color: #fff;
}
.pd-hero-accent {
    background: linear-gradient(90deg, #ffc107, #ff9800);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.pd-hero-tagline {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    margin: 0;
    letter-spacing: 0.3px;
}

/* Trust badges */
.pd-hero-trust {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-shrink: 0;
}
.pd-trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}
.pd-trust-num {
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}
.pd-trust-label {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}
.pd-trust-divider {
    width: 1px;
    height: 36px;
    background: rgba(255,255,255,0.12);
}

/* Responsive */
@media (max-width: 768px) {
    .pd-detail-hero { padding: 40px 0 36px; }
    .pd-hero-inner { flex-direction: column; align-items: flex-start; gap: 24px; }
    .pd-hero-title { font-size: 28px; }
    .pd-hero-trust { gap: 16px; }
    .pd-trust-num { font-size: 22px; }
    .pd-trust-label { font-size: 10px; }
    .pd-trust-divider { height: 28px; }
}
@media (max-width: 480px) {
    .pd-hero-trust { gap: 12px; }
    .pd-trust-num { font-size: 18px; }
    .pd-trust-label { font-size: 9px; }
}

/* ===== 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; }

/* ===== Product Info Section (Gallery + Info) ===== */
.pd-hero {
    padding: 40px 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; }

/* ===== Compact Spacing Override (product detail page) ===== */
/* Reduce .section vertical padding from 80px to 48px */
.pd-detail-hero + .pd-breadcrumb ~ .section,
section.section[id^="pd-"],
section.section:has(.pd-cta-banner) {
    padding-top: 48px;
    padding-bottom: 48px;
}
/* First section after breadcrumb gets less top padding */
.pd-hero {
    padding: 32px 0 40px;
}
/* Section header: reduce bottom margin from 56px to 28px */
section[id^="pd-"] .section-header,
section.section:has(.pd-cta-banner) .section-header {
    margin-bottom: 28px;
}
/* Description card: reduce padding from 40px 48px to 28px 36px */
.pd-description {
    padding: 28px 36px;
}
/* CTA banner: reduce padding from 56px 64px to 36px 48px */
.pd-cta-banner {
    padding: 36px 48px;
}
.pd-cta-banner h2 { font-size: 26px; margin-bottom: 8px; }
.pd-cta-banner p { margin-bottom: 20px; }
/* Specs table: reduce cell padding */
.pd-specs-html { padding: 20px; }
/* FAQ items: tighten */
.pd-faq-item { padding: 14px 20px; }
/* Features grid: reduce card padding */
.pd-feature-card { padding: 22px 18px; }
/* Anchor nav: tighten */
.pd-anchor-nav { padding: 12px 0; }

/* ===== Description Collapse/Expand ===== */
.pd-detail-wrap {
    position: relative;
}
.pd-detail-content {
    max-height: 500px;
    overflow: hidden;
    transition: max-height 0.5s ease;
}
.pd-detail-content.expanded {
    max-height: none;
}
.pd-detail-fade {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 120px;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 70%, #fff 100%);
    pointer-events: none;
}
.pd-detail-toggle {
    display: block;
    margin: 20px auto 0;
    padding: 10px 32px;
    background: #fff;
    border: 2px solid #1e40af;
    border-radius: 6px;
    color: #1e40af;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.pd-detail-toggle:hover {
    background: #1e40af;
    color: #fff;
}
.pd-detail-toggle .pd-toggle-icon {
    display: inline-block;
    margin-left: 6px;
    transition: transform 0.3s;
}
.pd-detail-toggle.expanded .pd-toggle-icon {
    transform: rotate(180deg);
}

/* ===== 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; }
}
