/* single-product.css — JP Spare Parts Plugin
 * Extracted from mu-plugins/jpspareparts-single-product.php (inline CSS via
 * wp_add_inline_style in wp_enqueue_scripts callback).
 * Loaded on is_product() via class-assets.php (handle: jps-single-product)
 */

/* ===== Breadcrumb: keep on one line ===== */
.woocommerce-breadcrumb,
.jps-breadcrumb {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.35em;
    white-space: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-bottom: 16px;
    font-size: 0.9rem;
    color: #666;
}
.woocommerce-breadcrumb::-webkit-scrollbar,
.jps-breadcrumb::-webkit-scrollbar { display: none; }
.woocommerce-breadcrumb a,
.jps-breadcrumb a {
    white-space: nowrap;
    color: #011627;
    text-decoration: none;
}
.woocommerce-breadcrumb a:hover,
.jps-breadcrumb a:hover { color: #ff6b35; }

/* ===== Extra structured sections (Overview / OEM / Application / Shipping / Warranty) ===== */
.jpsp-extra { margin: 36px 0; }
.jpsp-block { margin-bottom: 26px; }
.jpsp-block h2 {
    font-size: 1.25rem;
    color: #1a202c;
    border-left: 4px solid #ff6b35;
    padding-left: 12px;
    margin-bottom: 10px;
}
.jpsp-block p { color: #4a5568; line-height: 1.7; margin: 0; }

/* ===== Product disclaimer (trademark compliance, top of summary) ===== */
.jpsp-disclaimer {
    margin: 0 0 16px;
    padding: 10px 14px;
    background: #fff8f3;
    border: 1px solid #ffd9c2;
    border-left: 4px solid #ff6b35;
    border-radius: 6px;
    font-size: 0.85rem;
    line-height: 1.5;
    color: #5a3a2a;
}

/* ===== Product Info Bar (brand + SKU below title) ===== */
.jpsp-product-info-bar {
    display: flex;
    gap: 20px;
    padding: 16px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.jpsp-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
}
.jpsp-info-label {
    font-size: 0.78rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.jpsp-info-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: #011627;
}
.jpsp-brand-tag {
    background: #011627;
    color: #fff !important;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    letter-spacing: 1px;
}
.jpsp-code {
    font-family: "SF Mono", "Monaco", "Consolas", monospace;
    font-size: 0.9rem;
    color: #ff6b35;
}

/* ===== Action Bar (inquiry button + stock badges) ===== */
.jpsp-action-bar {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    flex-wrap: wrap;
}
.jpsp-inquiry-btn {
    display: inline-block;
    background: #ff6b35;
    color: #fff !important;
    padding: 14px 40px;
    border-radius: 6px;
    font-size: 1.05rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}
.jpsp-inquiry-btn:hover {
    background: #e55a2b;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
    color: #fff !important;
}
.jpsp-stock-info {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.jpsp-stock-badge,
.jpsp-lead-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #e8f5e9;
    color: #2e7d32;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.82rem;
    font-weight: 600;
}
.jpsp-lead-badge {
    background: #e3f2fd;
    color: #1565c0;
}

/* ===== Specs Table ===== */
.jpsp-specs {
    margin-top: 40px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 8px;
}
.jpsp-specs-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #011627;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #ff6b35;
    display: inline-block;
}
.jpsp-specs-table {
    width: 100%;
    border-collapse: collapse;
}
.jpsp-specs-table th {
    text-align: left;
    padding: 12px 16px;
    background: #fff;
    color: #666;
    font-weight: 600;
    font-size: 0.85rem;
    width: 200px;
    border-bottom: 1px solid #e0e0e0;
    vertical-align: top;
}
.jpsp-specs-table td {
    padding: 12px 16px;
    background: #fff;
    color: #011627;
    font-size: 0.9rem;
    border-bottom: 1px solid #e0e0e0;
}
.jpsp-specs-table tr:last-child th,
.jpsp-specs-table tr:last-child td {
    border-bottom: none;
}

/* ===== Back Link ===== */
.jpsp-back-link {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}
.jpsp-back-link a {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}
.jpsp-back-link a:hover {
    color: #ff6b35;
}

/* ===== CTA Section ===== */
.jpsp-cta {
    margin-top: 40px;
    padding: 50px 30px;
    background: linear-gradient(135deg, #011627 0%, #0a2540 100%);
    text-align: center;
    border-radius: 8px;
}
.jpsp-cta h2 {
    color: #fff;
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 12px;
}
.jpsp-cta p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    margin-bottom: 24px;
}
.jpsp-cta-btn {
    display: inline-block;
    background: #ff6b35;
    color: #fff !important;
    padding: 12px 36px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}
.jpsp-cta-btn:hover {
    background: #e55a2b;
    transform: translateY(-2px);
    color: #fff !important;
}

/* ===== Responsive ===== */
@media (max-width: 767px) {
    .jpsp-product-info-bar {
        gap: 12px;
    }
    .jpsp-action-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .jpsp-inquiry-btn {
        text-align: center;
        justify-content: center;
    }
    .jpsp-specs {
        padding: 20px 16px;
    }
    .jpsp-specs-table th {
        width: 120px;
        font-size: 0.8rem;
    }
    .jpsp-cta {
        padding: 30px 16px;
    }
    .jpsp-cta h2 {
        font-size: 1.3rem;
    }
}
