:root {
    --bg-page: #f8fafc;
    --bg-card: #ffffff;
    --ink-main: #0f172a;
    --ink-body: #334155;
    --ink-muted: #64748b;
    --line: #e2e8f0;
    --accent: #0b4f8a;
    --accent-hover: #083a66;
    --ok-bg: #f0fdf4;
    --ok-border: #bbf7d0;
    --ok-ink: #166534;
    --warn-bg: #fef2f2;
    --warn-border: #fecaca;
    --warn-ink: #991b1b;
}
* {
    box-sizing: border-box;
}
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--bg-page);
    color: var(--ink-body);
    line-height: 1.65;
    font-size: 15px;
}
a {
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}


/* Site Header Placeholder (Replace with your header.php include) */
.site-header {
    background: #0f172a;
    color: #fff;
    border-bottom: 1px solid #1e293b;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.brand-logo {
    font-size: 19px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.3px;
}
.brand-logo:hover {
    text-decoration: none;
}
.top-nav a {
    color: #cbd5e1;
    margin-left: 22px;
    font-size: 14px;
    font-weight: 500;
}
.top-nav a:hover {
    color: #fff;
    text-decoration: none;
}

/* Breadcrumb */
.breadcrumb {
    padding: 16px 0;
    font-size: 13px;
    color: var(--ink-muted);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.breadcrumb a {
    color: var(--ink-muted);
}
.breadcrumb a:hover {
    color: var(--accent);
}
.breadcrumb .sep {
    color: #cbd5e1;
}
.breadcrumb .current {
    color: var(--ink-main);
    font-weight: 600;
}

/* Hero Product Card */
.product-hero {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px;
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 36px;
    align-items: start;
}
.media-box {
    background: #f1f5f9;
    border: 1px solid var(--line);
    border-radius: 8px;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 16px;
}
.media-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}
.badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    background: #eff6ff;
    color: var(--accent);
    border: 1px solid #dbeafe;
}
.badge-neutral {
    background: #f1f5f9;
    color: #334155;
    border-color: var(--line);
}
.product-title {
    margin: 0 0 12px;
    font-size: 26px;
    line-height: 1.3;
    color: var(--ink-main);
    font-weight: 700;
    height: auto;
    display:inline-block;
}
.sku-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
    font-size: 14px;
    color: var(--ink-muted);
}
.sku-code {
    font-family: Consolas, Monaco, monospace;
    font-weight: 700;
    color: var(--ink-main);
    background: #f1f5f9;
    padding: 3px 8px;
    border-radius: 4px;
}
.btn-copy {
    background: #fff;
    border: 1px solid var(--line);
    color: var(--ink-body);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.btn-copy:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.lead-summary {
    margin: 0 0 22px;
    color: var(--ink-body);
    font-size: 15px;
}

/* Key Metric Highlights */
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}
.metric-card {
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 12px 14px;
}
.metric-label {
    font-size: 12px;
    color: var(--ink-muted);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 4px;
}
.metric-val {
    font-size: 15px;
    font-weight: 700;
    color: var(--ink-main);
}

/* Action Bar (No Form) */
.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 4px;
}
.btn-primary, .btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}
.btn-primary {
    background: var(--accent);
    color: #fff;
    border: 1px solid var(--accent);
}
.btn-primary:hover {
    background: var(--accent-hover);
    text-decoration: none;
}
.btn-outline {
    background: #fff;
    color: var(--ink-main);
    border: 1px solid #cbd5e1;
}
.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    text-decoration: none;
}

/* Content Sections */
.section-card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 28px 32px;
    margin-top: 24px;
}
.section-title {
    margin: 0 0 18px;
    font-size: 19px;
    color: var(--ink-main);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    gap: 10px;
}
.section-title i {
    color: var(--accent);
    font-size: 17px;
}

.prose p {
    margin: 0 0 16px;
    color: var(--ink-body);
    font-size: 15px;
    line-height: 1.75;
}
.prose p:last-child {
    margin-bottom: 0;
}

/* Chemical Compatibility Grid */
.compat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 22px;
}
.compat-box {
    border-radius: 6px;
    padding: 14px 16px;
    font-size: 14px;
}
.compat-ok {
    background: var(--ok-bg);
    border: 1px solid var(--ok-border);
    color: var(--ok-ink);
}
.compat-warn {
    background: var(--warn-bg);
    border: 1px solid var(--warn-border);
    color: var(--warn-ink);
}
.compat-box strong {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 6px;
    font-size: 14px;
}

/* Technical Specifications Table */
.spec-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.spec-table tr {
    border-bottom: 1px solid var(--line);
}
.spec-table tr:nth-child(even) {
    background: #f8fafc;
}
.spec-table th {
    width: 34%;
    text-align: left;
    padding: 11px 14px;
    color: var(--ink-muted);
    font-weight: 600;
    vertical-align: top;
}
.spec-table td {
    padding: 11px 14px;
    color: var(--ink-main);
    font-weight: 500;
}

/* Related Products Grid */
.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.rel-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px;
    background: #fff;
    display: flex;
    flex-direction: column;
    transition: border-color 0.15s ease;
}
.rel-card:hover {
    border-color: var(--accent);
    text-decoration: none;
}
.rel-sku {
    font-family: Consolas, Monaco, monospace;
    font-size: 12px;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 6px;
}
.rel-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink-main);
    margin-bottom: 10px;
    line-height: 1.4;
}
.rel-meta {
    margin-top: auto;
    font-size: 12px;
    color: var(--ink-muted);
    border-top: 1px solid #f1f5f9;
    padding-top: 8px;
}

/* Site Footer Placeholder (Replace with your footer.php include) */
.site-footer {
    margin-top: 48px;
    background: #0f172a;
    color: #94a3b8;
    padding: 28px 0;
    font-size: 13px;
}
.footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
}
.site-footer a {
    color: #cbd5e1;
}

@media (max-width: 900px) {
    .product-hero {
        grid-template-columns: 1fr;
        padding: 22px;
        gap: 24px;
    }
    .media-box {
        max-width: 340px;
        margin: 0 auto;
        width: 100%;
    }
    .compat-grid {
        grid-template-columns: 1fr;
    }
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .highlights-grid {
        grid-template-columns: 1fr;
    }
    .related-grid {
        grid-template-columns: 1fr;
    }
    .section-card {
        padding: 20px;
    }
    .spec-table th {
        width: 44%;
    }
}