/*
 * Real Clear Biogenix — single-product.css
 * Scoped to body.single-product (WooCommerce adds this class automatically).
 * Tokens mirror home.css / shop.css exactly.
 */

/* =========================================================
   TOKENS
   ========================================================= */
body.single-product {
    --v3-dark:       #0a0a0a;
    --v3-navy:       #0a0f1e;
    --v3-navy-2:     #0d1528;
    --v3-light:      #f5f5f5;
    --v3-white:      #ffffff;
    --v3-text:       #111111;
    --v3-muted:      #6b7280;
    --v3-muted-lt:   #9ca3af;
    --v3-blue:       #1e82f0;
    --v3-blue-dk:    #1668cc;
    --v3-blue-lt:    #e6f0fd;
    --v3-border:     #e5e7eb;
    --v3-heading:    'Bebas Neue', 'Impact', 'Arial Narrow', sans-serif;
    --v3-body:       'Inter', system-ui, sans-serif;
    --v3-max:        1200px;
    --v3-px:         40px;
    --v3-shadow-sm:  0 1px 4px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.05);
    --v3-shadow-md:  0 4px 16px rgba(0,0,0,.1), 0 12px 40px rgba(0,0,0,.08);
}

/* =========================================================
   BASE
   ========================================================= */
body.single-product .rcb-page-wrap,
body.single-product #rcb-main {
    background: var(--v3-light);
    color: var(--v3-text);
    font-family: var(--v3-body);
}

/* Suppress any WC-injected breadcrumb / wrapper we don't need */
body.single-product .woocommerce-breadcrumb { display: none; }

/* =========================================================
   1. DARK BREADCRUMB HERO — short, no image
   ========================================================= */
.rcbsp-hero {
    background: linear-gradient(to right, rgba(10,10,10,0.88) 0%, rgba(10,15,30,0.75) 45%, rgba(10,15,30,0.35) 100%),
                url('/wp-content/uploads/2026/06/Gemini-Generated-Image-1.jpg');
    background-size: cover;
    background-position: center;
    padding: 28px var(--v3-px);
}

.rcbsp-hero__inner {
    max-width: var(--v3-max);
    margin: 0 auto;
}

/* Breadcrumb nav */
.rcbsp-breadcrumb ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.rcbsp-breadcrumb li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--v3-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255,255,255,.45);
}

.rcbsp-breadcrumb li a {
    color: rgba(255,255,255,.55);
    text-decoration: none;
    transition: color .15s;
}
.rcbsp-breadcrumb li a:hover {
    color: var(--v3-blue);
}

/* Chevron arrows (SVG) */
.rcbsp-breadcrumb li svg {
    color: rgba(255,255,255,.25);
    flex-shrink: 0;
}

/* Current page — brighter */
.rcbsp-breadcrumb li[aria-current="page"] span {
    color: rgba(255,255,255,.85);
}

/* WC notices — positioning wrapper */
body.single-product .woocommerce-notices-wrapper {
    max-width: var(--v3-max);
    margin: 20px auto;
    padding: 0 var(--v3-px);
}

/* ── "Added to cart" success notice — site blue ─────────── */
body.single-product .woocommerce-message {
    background: var(--v3-blue) !important;
    background-color: var(--v3-blue) !important;
    color: #ffffff !important;
    border: 1px solid var(--v3-blue-dk) !important;
    border-radius: 6px;
    /* flex row keeps ::before icon in flow so it doesn't overlap text */
    display: flex !important;
    align-items: center !important;
    gap: 10px;
    padding: 12px 20px !important;
    margin: 0 !important;
}
body.single-product .woocommerce-message::before {
    color: #ffffff !important;
    /* pull out of absolute positioning so it sits as a flex item */
    position: static !important;
    top: auto !important;
    left: auto !important;
    flex-shrink: 0;
    line-height: 1;
}
body.single-product .woocommerce-message a.button,
body.single-product .woocommerce-message .button {
    /* push button to the far right regardless of DOM order */
    order: 2;
    margin-left: auto !important;
    flex-shrink: 0;
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: var(--v3-blue) !important;
    border: 1.5px solid #ffffff !important;
    border-radius: 6px !important;
    box-shadow: none !important;
    font-family: var(--v3-body);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 10px 18px;
    line-height: 1;
}
body.single-product .woocommerce-message a.button:hover,
body.single-product .woocommerce-message .button:hover {
    background: rgba(255,255,255,.85) !important;
    background-color: rgba(255,255,255,.85) !important;
    color: var(--v3-blue) !important;
    border-color: rgba(255,255,255,.85) !important;
}

/* WC error and info notices — keep in flow */
body.single-product .woocommerce-error,
body.single-product .woocommerce-info {
    max-width: var(--v3-max);
    margin: 20px auto 0;
    padding: 12px 20px 12px 44px;
    outline: none;
}

/* =========================================================
   2. MAIN PRODUCT BLOCK — 45 / 55 two-column grid
   ========================================================= */
.rcbsp-main {
    background: var(--v3-white);
    padding: 56px var(--v3-px) 64px;
}

.rcbsp-main__inner {
    max-width: var(--v3-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 45fr 55fr;
    gap: 60px;
    align-items: flex-start;
}

/* ── Gallery ─────────────────────────────────────────────── */
.rcbsp-gallery {
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: sticky;
    top: 100px; /* below fixed header */
}

.rcbsp-gallery__stage {
    position: relative;
    background: var(--v3-light);
    border: 1px solid var(--v3-border);
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.rcbsp-gallery__sale {
    position: absolute;
    top: 14px;
    left: 14px;
    font-family: var(--v3-body);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    background: var(--v3-blue);
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    z-index: 1;
}

.rcbsp-gallery__main-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .35s ease;
}
.rcbsp-gallery__stage:hover .rcbsp-gallery__main-img {
    transform: scale(1.04);
}

/* Thumbnail strip */
.rcbsp-gallery__thumbs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.rcbsp-gallery__thumb {
    width: 72px;
    height: 72px;
    border: 2px solid var(--v3-border);
    border-radius: 6px;
    overflow: hidden;
    background: var(--v3-light);
    padding: 6px;
    cursor: pointer;
    transition: border-color .15s;
    flex-shrink: 0;
}
.rcbsp-gallery__thumb:hover {
    border-color: var(--v3-blue);
}
.rcbsp-gallery__thumb.is-active {
    border-color: var(--v3-blue);
    box-shadow: 0 0 0 3px rgba(30,130,240,.15);
}
.rcbsp-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ── Summary (right column) ─────────────────────────────── */
.rcbsp-summary {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* Category badge */
.rcbsp-summary__cat {
    display: inline-block;
    font-family: var(--v3-body);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--v3-blue);
    background: var(--v3-blue-lt);
    padding: 5px 12px;
    border-radius: 3px;
    align-self: flex-start;
}

/* Product title */
.rcbsp-summary__title {
    font-family: var(--v3-body);
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.02em;
    color: var(--v3-text);
    margin: 0;
}

/* Price area */
.rcbsp-summary__price {
    font-family: var(--v3-body);
    font-size: 26px;
    font-weight: 700;
    color: var(--v3-text);
    line-height: 1;
    margin: 0;
}
.rcbsp-summary__price del {
    color: var(--v3-muted-lt);
    font-weight: 400;
    font-size: 18px;
    margin-right: 6px;
    text-decoration: line-through;
}
.rcbsp-summary__price ins {
    text-decoration: none;
    color: var(--v3-blue);
}
/* WC wraps price in .woocommerce-Price-amount */
.rcbsp-summary__price .woocommerce-Price-amount {
    color: inherit;
}

/* Short description */
.rcbsp-summary__desc {
    font-family: var(--v3-body);
    font-size: 14px;
    line-height: 1.7;
    color: var(--v3-muted);
    margin: 0;
}
.rcbsp-summary__desc p { margin: 0 0 .6em; }
.rcbsp-summary__desc p:last-child { margin-bottom: 0; }

/* ── Tested For row ─────────────────────────────────────────
   Pill chips, not fine print — these are credentials shoppers should
   register at a glance, so they get real icon/text size and their own
   background rather than reading as a caption line under the price. */
.rcbsp-tested-for {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 4px 0;
}

.rcbsp-tested-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--v3-body);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: var(--v3-text);
    white-space: nowrap;
    background: var(--v3-blue-lt);
    border: 1px solid rgba(30, 130, 240, .18);
    border-radius: 999px;
    padding: 9px 16px 9px 12px;
}

.rcbsp-tested-item svg {
    color: var(--v3-blue);
    flex-shrink: 0;
}

/* View Certificate — secondary sibling to the Add to Cart button below:
   same type family/weight/letter-spacing/radius, outline instead of
   filled so it reads as the supporting action, not the primary one. */
.rcbsp-view-cert-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    align-self: flex-start;
    font-family: var(--v3-body);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--v3-blue);
    background: transparent;
    border: 1.5px solid var(--v3-blue);
    border-radius: 6px;
    padding: 10px 18px;
    height: 40px;
    cursor: pointer;
    transition: background .18s, color .18s;
    line-height: 1;
}
.rcbsp-view-cert-btn:hover {
    background: var(--v3-blue);
    color: #ffffff;
}
.rcbsp-view-cert-btn:focus-visible {
    outline: 2px solid var(--v3-blue);
    outline-offset: 2px;
}
.rcbsp-view-cert-btn svg {
    flex-shrink: 0;
}

/* Divider */
.rcbsp-divider {
    border: none;
    border-top: 1px solid var(--v3-border);
    margin: 0;
}

/* =========================================================
   WC FORM — variation pills, qty, add-to-cart button
   ========================================================= */
.rcbsp-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ── Suppress WC default elements we replace via JS ─────── */
/* The .variations table is hidden by single-product.js     */
.rcbsp-form table.variations {
    display: none;
}

/* ── Variation pills (injected by JS) ───────────────────── */
.rcbsp-variation-pills {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.rcbsp-pill-group {}

.rcbsp-pill-group__label {
    font-family: var(--v3-body);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--v3-muted);
    margin-bottom: 10px;
}

.rcbsp-pill-group__row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rcbsp-pill {
    font-family: var(--v3-body);
    font-size: 13px;
    font-weight: 600;
    color: var(--v3-text);
    background: var(--v3-white);
    border: 1.5px solid var(--v3-border);
    border-radius: 6px;
    padding: 9px 18px;
    cursor: pointer;
    transition: border-color .15s, color .15s, background .15s;
    line-height: 1;
    min-width: 60px;
    text-align: center;
}
.rcbsp-pill:hover {
    border-color: var(--v3-blue);
    color: var(--v3-blue);
}
body.single-product .rcbsp-pill.is-active {
    border-color: var(--v3-blue) !important;
    color: #ffffff !important;
    background: var(--v3-blue) !important;
    font-weight: 700;
}
body.single-product .rcbsp-pill.is-active:hover {
    background: var(--v3-blue-dk) !important;
    border-color: var(--v3-blue-dk) !important;
    color: #ffffff !important;
}
.rcbsp-pill:disabled,
.rcbsp-pill.is-unavailable {
    opacity: .4;
    pointer-events: none;
    text-decoration: line-through;
}

/* ── Variation price update area ────────────────────────── */
.rcbsp-form .woocommerce-variation.single_variation {
    padding: 14px 0 4px;
}
.rcbsp-form .woocommerce-variation-price .price {
    font-family: var(--v3-body);
    font-size: 22px;
    font-weight: 700;
    color: var(--v3-blue);
}
.rcbsp-form .woocommerce-variation-price .price del {
    color: var(--v3-muted-lt);
    font-weight: 400;
    font-size: 16px;
    margin-right: 4px;
}
.rcbsp-form .woocommerce-variation-price .price ins {
    text-decoration: none;
}
.rcbsp-form .woocommerce-variation-availability {
    font-family: var(--v3-body);
    font-size: 13px;
    color: var(--v3-muted);
    margin-top: 4px;
}
.rcbsp-form .woocommerce-variation-availability .stock {
    color: #15803d;
    font-weight: 600;
}
.rcbsp-form .woocommerce-variation-availability .out-of-stock {
    color: #dc2626;
    font-weight: 600;
}

/* Variable product form: flex column so children can be ordered */
.rcbsp-form form.variations_form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
/* Order: variation price first, size pills second, qty+button third */
.rcbsp-form table.variations                    { order: 0; }
.rcbsp-form .single_variation_wrap              { order: 1; }
.rcbsp-form .rcbsp-variation-pills              { order: 2; }
.rcbsp-form .woocommerce-variation-add-to-cart  { order: 3; }

/* ── Quantity + Add to Cart row ─────────────────────────── */
/* Use :not(.variations_form) so we don't flex-row the outer WC form */
.rcbsp-form form.cart:not(.variations_form),
.rcbsp-form .woocommerce-variation-add-to-cart {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Quantity custom wrapper (added by JS) */
.rcbsp-qty-wrap {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid var(--v3-border);
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.rcbsp-qty-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 44px;
    background: transparent;
    border: none;
    font-size: 18px;
    color: var(--v3-text);
    cursor: pointer;
    transition: background .15s, color .15s;
    line-height: 1;
    font-family: var(--v3-body);
}
.rcbsp-qty-btn:hover {
    background: var(--v3-blue-lt);
    color: var(--v3-blue);
}

/* Qty input (native) */
.rcbsp-form .qty,
.rcbsp-form input[type="number"].qty {
    width: 52px;
    height: 44px;
    border: none;
    border-left: 1px solid var(--v3-border);
    border-right: 1px solid var(--v3-border);
    border-radius: 0;
    text-align: center;
    font-family: var(--v3-body);
    font-size: 15px;
    font-weight: 700;
    color: var(--v3-text);
    background: var(--v3-white);
    -moz-appearance: textfield;
    padding: 0;
    outline: none;
}
.rcbsp-form .qty::-webkit-outer-spin-button,
.rcbsp-form .qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

/* Fallback if JS didn't run — style the native quantity div */
.rcbsp-form .quantity:not(.rcbsp-qty-wrap *) {
    flex-shrink: 0;
}

/* Add to cart button — use body scope + !important to beat WC's #7f54b3 purple */
body.single-product .rcbsp-form .single_add_to_cart_button,
body.single-product .rcbsp-form .button.alt,
body.single-product .rcbsp-form button.button {
    flex: 1;
    display: block;
    text-align: center;
    font-family: var(--v3-body);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #ffffff !important;
    background: var(--v3-blue) !important;
    background-color: var(--v3-blue) !important;
    border: none !important;
    border-radius: 6px;
    padding: 14px 24px;
    height: 48px;
    cursor: pointer;
    transition: background .18s;
    line-height: 1;
    text-decoration: none;
    min-width: 0;
    box-shadow: none !important;
}
body.single-product .rcbsp-form .single_add_to_cart_button:hover,
body.single-product .rcbsp-form .button.alt:hover,
body.single-product .rcbsp-form button.button:hover {
    background: var(--v3-blue-dk) !important;
    background-color: var(--v3-blue-dk) !important;
    color: #ffffff !important;
}
body.single-product .rcbsp-form .single_add_to_cart_button:disabled,
body.single-product .rcbsp-form .button.alt:disabled {
    opacity: .5;
    cursor: not-allowed;
}

/* Loading spinner on button */
.rcbsp-form .single_add_to_cart_button.loading::after {
    display: none;
}

/* "Reset variations" link */
.rcbsp-form .reset_variations {
    display: none; /* hidden — pills do this via deselect */
}

/* ── Shipping trust icons below button ──────────────────── */
.rcbsp-shipping {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    padding-top: 28px;
    border-top: 1px solid var(--v3-border);
}

.rcbsp-shipping__item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex: 1;
    min-width: 120px;
}

.rcbsp-shipping__item svg {
    color: var(--v3-blue);
    flex-shrink: 0;
    margin-top: 2px;
}

.rcbsp-shipping__item div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.rcbsp-shipping__item strong {
    font-family: var(--v3-body);
    font-size: 11px;
    font-weight: 700;
    color: var(--v3-text);
    letter-spacing: .04em;
    display: block;
}

.rcbsp-shipping__item span {
    font-family: var(--v3-body);
    font-size: 10px;
    color: var(--v3-muted);
    display: block;
}

/* =========================================================
   3. TABS — Description | COA
   ========================================================= */
.rcbsp-tabs-wrap {
    background: var(--v3-white);
    border-top: 1px solid var(--v3-border);
    margin-top: 2px;
}

.rcbsp-tabs-inner {
    max-width: var(--v3-max);
    margin: 0 auto;
    padding: 0 var(--v3-px);
}

/* Tab bar */
.rcbsp-tab-bar {
    display: flex;
    border-bottom: 2px solid var(--v3-border);
    gap: 0;
    margin-bottom: 0;
}

.rcbsp-tab {
    font-family: var(--v3-body);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--v3-muted);
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    padding: 20px 28px;
    cursor: pointer;
    transition: color .15s, border-color .15s;
    white-space: nowrap;
}
.rcbsp-tab:hover {
    color: var(--v3-blue);
}
.rcbsp-tab.is-active {
    color: var(--v3-blue);
    border-bottom-color: var(--v3-blue);
}

/* Tab panels */
.rcbsp-tab-panel {
    padding: 48px 0 56px;
    animation: rcbsp-fade-in .2s ease;
}
.rcbsp-tab-panel[hidden] {
    display: none;
}

@keyframes rcbsp-fade-in {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Description panel content ─────────────────────────── */
.rcbsp-description {
    max-width: 760px;
    font-family: var(--v3-body);
    font-size: 15px;
    line-height: 1.75;
    color: #333;
}
.rcbsp-description h1,
.rcbsp-description h2,
.rcbsp-description h3 {
    font-family: var(--v3-heading);
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--v3-text);
    margin: 1.5em 0 .6em;
    padding-left: 14px;
    border-left: 3px solid var(--v3-blue);
    line-height: 1.15;
}
.rcbsp-description h1 { font-size: 38px; }
.rcbsp-description h2 { font-size: 38px; }
.rcbsp-description h3 { font-size: 28px; }
.rcbsp-description h1:first-child,
.rcbsp-description h2:first-child,
.rcbsp-description h3:first-child { margin-top: 0; }

/* Real product feeds sometimes wrap the heading text in a <span style="font-size:...">
   — the inline style would otherwise shrink our h2/h3 sizing, so force it to inherit. */
.rcbsp-description h1 span,
.rcbsp-description h2 span,
.rcbsp-description h3 span {
    font-size: inherit !important;
    font-weight: inherit !important;
}

/* Sub-heading used inside "Research Topics" list items (<li><h4>Label:</h4><span>text</span></li>) */
.rcbsp-description h4 {
    font-family: var(--v3-body);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: none;
    color: var(--v3-text);
    margin: 0 0 .4em;
}

/* Some feeds emit a bare <span style="font-size:...pt"> as a pseudo-heading instead of
   a real heading tag, e.g. <span style="font-size:12pt"><strong>Research Background</strong>text…</span> */
.rcbsp-description > span[style*="font-size"] {
    display: block;
    margin: 1.6em 0 .6em;
    font-size: 15px !important;
    line-height: 1.75;
}
.rcbsp-description > span[style*="font-size"] > strong:first-child {
    display: block;
    font-family: var(--v3-heading);
    font-size: 22px;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--v3-text);
    padding-left: 14px;
    border-left: 3px solid var(--v3-blue);
    margin-bottom: .5em;
    line-height: 1.15;
}

.rcbsp-description p  { margin: 0 0 1.1em; }
.rcbsp-description p:last-child { margin-bottom: 0; }
.rcbsp-description p:empty { display: none; }

/* Some feeds cram several "PMID: 12345" refs into one <p> as sibling <strong> tags
   separated only by a literal newline (which HTML collapses) — stack them instead. */
.rcbsp-description p strong:not(:first-child) {
    display: block;
    margin-top: .35em;
}

.rcbsp-description ul,
.rcbsp-description ol {
    padding-left: 22px;
    margin: 0 0 1.1em;
}
.rcbsp-description ul:last-child,
.rcbsp-description ol:last-child { margin-bottom: 0; }
.rcbsp-description li {
    margin-bottom: .6em;
    padding-left: 4px;
}
.rcbsp-description li::marker {
    color: var(--v3-blue);
    font-weight: 700;
}
.rcbsp-description li:last-child { margin-bottom: 0; }

/* "Research Topics" lists nest a whole mini-section (h4 + copy) inside each <li> —
   give each entry breathing room and a divider instead of a cramped bullet. */
.rcbsp-description li:has(> h4) {
    list-style: none;
    margin-left: -22px;
    padding: 0 0 1em;
    border-bottom: 1px solid var(--v3-border);
    margin-bottom: 1em;
}
.rcbsp-description li:has(> h4):last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.rcbsp-description a {
    color: var(--v3-blue);
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 600;
}
.rcbsp-description a:hover { color: var(--v3-blue-dk); }

.rcbsp-description strong,
.rcbsp-description b { color: inherit; font-weight: 700; }

/* Citation lines under "Peer-Reviewed Studies" (author list / journal name in <i>/<em>) */
.rcbsp-description p > i,
.rcbsp-description p > em,
.rcbsp-description > em {
    color: var(--v3-muted);
    font-size: 13px;
    line-height: 1.6;
}

.rcbsp-description figure {
    margin: 1.4em 0;
    text-align: center;
}
.rcbsp-description figure img {
    max-width: 280px;
    width: 100%;
    height: auto;
    background: var(--v3-white);
    border: 1px solid var(--v3-border);
    border-radius: 10px;
    padding: 16px;
}

.rcbsp-description pre {
    font-family: var(--v3-body);
    white-space: normal;
    background: none;
    padding: 0;
    margin: 0 0 1.1em;
    font-size: 15px;
    color: #333;
}

.rcbsp-description hr {
    border: none;
    border-top: 1px solid var(--v3-border);
    margin: 1.6em 0;
}

.rcbsp-description div:empty { display: none; }

/* PubChem link */
.rcbsp-pubchem {
    margin-top: 24px;
    font-size: 13px;
    color: var(--v3-muted);
}
.rcbsp-pubchem a {
    color: var(--v3-blue);
    text-decoration: none;
    font-weight: 600;
}
.rcbsp-pubchem a:hover {
    text-decoration: underline;
}

/* RUO disclaimer box — purchase zone, below shipping trust icons */
.rcbsp-ruo-box {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 16px;
    padding: 10px 14px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-left: 3px solid var(--v3-blue);
    border-radius: 0 4px 4px 0;
    font-size: 12px;
    color: #6b7280;
    line-height: 1.5;
}
.rcbsp-ruo-box svg {
    flex-shrink: 0;
    margin-top: 1px;
    color: var(--v3-blue);
}

/* ── COA panel ──────────────────────────────────────────── */
.rcbsp-coa {
    max-width: 600px;
}

.rcbsp-coa__header {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 32px;
}

.rcbsp-coa__badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: var(--v3-body);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--v3-blue);
    background: var(--v3-blue-lt);
    border: 1px solid rgba(30,130,240,.2);
    padding: 6px 14px;
    border-radius: 4px;
    align-self: flex-start;
}

.rcbsp-coa__heading {
    font-family: var(--v3-body);
    font-size: 22px;
    font-weight: 800;
    color: var(--v3-text);
    margin: 0;
    letter-spacing: -.01em;
}

.rcbsp-coa__sub {
    font-family: var(--v3-body);
    font-size: 13px;
    line-height: 1.6;
    color: var(--v3-muted);
    margin: 0;
    max-width: 480px;
}

/* COA file grid — one card per uploaded lab report */
.rcbsp-coa__files {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
    gap: 14px;
}

.rcbsp-coa-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    padding: 14px 10px 16px;
    background: var(--v3-light);
    border: 1px solid var(--v3-border);
    border-radius: 10px;
    text-decoration: none;
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
.rcbsp-coa-card:hover {
    border-color: var(--v3-blue);
    box-shadow: var(--v3-shadow-sm);
    transform: translateY(-2px);
}

.rcbsp-coa-card__thumb {
    width: 100%;
    aspect-ratio: 3 / 4;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--v3-white);
    border: 1px solid var(--v3-border);
    border-radius: 6px;
    overflow: hidden;
    color: var(--v3-muted-lt);
}
.rcbsp-coa-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.rcbsp-coa-card__label {
    font-family: var(--v3-body);
    font-size: 12px;
    font-weight: 700;
    color: var(--v3-text);
    line-height: 1.3;
}

.rcbsp-coa-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: var(--v3-body);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--v3-blue);
}

/* COA kit-components groups — shown on kit/bundle products instead of a
   placeholder. Each group renders one bundled peptide's actual COA files,
   so certificates are directly visible without navigating away. */
.rcbsp-coa__kit-intro {
    font-family: var(--v3-body);
    font-size: 13px;
    line-height: 1.6;
    color: var(--v3-muted);
    margin: 0 0 24px;
    max-width: 600px;
}

.rcbsp-coa__kit-groups {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.rcbsp-coa__kit-group + .rcbsp-coa__kit-group {
    padding-top: 28px;
    border-top: 1px solid var(--v3-border);
}

.rcbsp-coa__kit-group-heading {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--v3-body);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .02em;
    color: var(--v3-text);
    text-decoration: none;
    margin-bottom: 14px;
}
.rcbsp-coa__kit-group-heading svg {
    color: var(--v3-muted-lt);
    transition: transform .15s, color .15s;
}
.rcbsp-coa__kit-group-heading:hover {
    color: var(--v3-blue);
}
.rcbsp-coa__kit-group-heading:hover svg {
    color: var(--v3-blue);
    transform: translateX(2px);
}

.rcbsp-coa__kit-group-pending {
    font-family: var(--v3-body);
    font-size: 13px;
    color: var(--v3-muted);
    margin: 0;
}

/* COA empty/placeholder state */
.rcbsp-coa__placeholder {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 28px 24px;
    background: var(--v3-light);
    border: 1px dashed var(--v3-border);
    border-radius: 8px;
    max-width: 480px;
    color: var(--v3-muted);
}
.rcbsp-coa__placeholder svg {
    color: var(--v3-muted-lt);
    flex-shrink: 0;
}
.rcbsp-coa__placeholder p {
    font-family: var(--v3-body);
    font-size: 15px;
    font-weight: 600;
    color: var(--v3-text);
    margin: 0;
}
.rcbsp-coa__placeholder span {
    font-family: var(--v3-body);
    font-size: 13px;
    line-height: 1.6;
    color: var(--v3-muted);
}

/* =========================================================
   4. BLEND COMPOSITION / PRODUCT DETAILS
   ========================================================= */
.rcbsp-details {
    background: var(--v3-light);
    padding: 60px var(--v3-px) 64px;
    border-top: 1px solid var(--v3-border);
}

.rcbsp-details__inner {
    max-width: var(--v3-max);
    margin: 0 auto;
}

.rcbsp-details__heading {
    font-family: var(--v3-heading);
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 400;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--v3-text);
    margin: 0 0 40px;
    text-align: center;
}

.rcbsp-details__cols {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.rcbsp-details__col {
    background: var(--v3-white);
    border: 1px solid var(--v3-border);
    border-radius: 10px;
    padding: 32px 28px;
    box-shadow: var(--v3-shadow-sm);
}

.rcbsp-details__col-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--v3-body);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--v3-blue);
    margin: 0 0 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--v3-border);
}

.rcbsp-details__col-heading svg {
    flex-shrink: 0;
}

/* Definition list */
.rcbsp-details__list {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.rcbsp-details__row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 11px 0;
    border-bottom: 1px solid var(--v3-border);
}
.rcbsp-details__row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.rcbsp-details__row dt {
    font-family: var(--v3-body);
    font-size: 12px;
    font-weight: 600;
    color: var(--v3-muted);
    white-space: nowrap;
    flex-shrink: 0;
}

.rcbsp-details__row dd {
    font-family: var(--v3-body);
    font-size: 13px;
    font-weight: 500;
    color: var(--v3-text);
    margin: 0;
    text-align: right;
}

.rcbsp-details__row--full {
    justify-content: flex-start;
}
.rcbsp-details__row--full dd {
    text-align: left;
    color: var(--v3-muted);
    font-size: 12px;
}

/* =========================================================
   5. RELATED PRODUCTS — reuse .rcb-shop-grid card styles
   ========================================================= */
.rcbsp-related {
    background: var(--v3-light);
    padding: 60px var(--v3-px) 72px;
    border-top: 1px solid var(--v3-border);
}

.rcbsp-related__inner {
    max-width: var(--v3-max);
    margin: 0 auto;
}

.rcbsp-related__heading {
    font-family: var(--v3-heading);
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 400;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--v3-text);
    margin: 0 0 36px;
    text-align: center;
}

/* Grid — identical to shop page */
.rcbsp-related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Product card styles — identical to shop page .rcb-shop-grid .rcb-product-card */
.rcbsp-related-grid .rcb-product-card {
    background: var(--v3-white);
    border: 1px solid var(--v3-border);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--v3-shadow-sm);
    transition: box-shadow .2s, border-color .2s, transform .2s;
}
.rcbsp-related-grid .rcb-product-card:hover {
    box-shadow: var(--v3-shadow-md);
    border-color: var(--v3-blue);
    transform: translateY(-3px);
}
.rcbsp-related-grid .rcb-product-card__img-wrap {
    display: block;
    position: relative;
    background: var(--v3-white);
    height: 176px;
    overflow: hidden;
    padding: 16px;
    flex-shrink: 0;
}
.rcbsp-related-grid .rcb-product-card__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    font-family: var(--v3-body);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    background: var(--v3-blue);
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    z-index: 1;
}
.rcbsp-related-grid .rcb-product-card__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .35s ease;
}
.rcbsp-related-grid .rcb-product-card:hover .rcb-product-card__img {
    transform: scale(1.05);
}
.rcbsp-related-grid .rcb-product-card__body {
    padding: 16px 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}
.rcbsp-related-grid .rcb-product-card__cat {
    font-family: var(--v3-body);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--v3-blue);
}
.rcbsp-related-grid .rcb-product-card__name {
    font-family: var(--v3-body);
    font-size: 14px;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
    letter-spacing: -.01em;
}
.rcbsp-related-grid .rcb-product-card__name a {
    color: var(--v3-text);
    text-decoration: none;
    transition: color .15s;
}
.rcbsp-related-grid .rcb-product-card__name a:hover {
    color: var(--v3-blue);
}
.rcbsp-related-grid .rcb-product-card__price {
    font-family: var(--v3-body);
    font-size: 14px;
    font-weight: 600;
    color: var(--v3-text);
    margin-top: auto;
    padding-top: 8px;
}
.rcbsp-related-grid .rcb-product-card__price del {
    color: var(--v3-muted-lt);
    font-weight: 400;
    margin-right: 4px;
    font-size: 13px;
}
.rcbsp-related-grid .rcb-product-card__price ins {
    text-decoration: none;
    color: var(--v3-blue);
    font-weight: 700;
}
.rcbsp-related-grid .rcb-product-card__btn {
    display: block;
    text-align: center;
    font-family: var(--v3-body);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--v3-blue);
    background: transparent;
    border: 1.5px solid var(--v3-blue);
    border-radius: 4px;
    padding: 10px 16px;
    text-decoration: none;
    margin-top: 10px;
    transition: background .18s, color .18s;
}
.rcbsp-related-grid .rcb-product-card__btn:hover {
    background: var(--v3-blue);
    color: #fff;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
    .rcbsp-related-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    body.single-product {
        --v3-px: 20px;
    }

    /* Breadcrumb hero */
    .rcbsp-hero {
        padding: 22px var(--v3-px);
    }
    .rcbsp-breadcrumb li {
        font-size: 10px;
    }

    /* 2-col → single column */
    .rcbsp-main {
        padding: 36px var(--v3-px) 48px;
    }
    .rcbsp-main__inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    /* Gallery no longer sticky */
    .rcbsp-gallery {
        position: static;
    }
    .rcbsp-gallery__stage {
        aspect-ratio: 4 / 3;
    }

    /* Summary */
    .rcbsp-summary__title {
        font-size: clamp(20px, 6vw, 26px);
    }
    .rcbsp-summary__price {
        font-size: 22px;
    }

    /* Tested for — 2 per row */
    .rcbsp-tested-for {
        gap: 14px;
    }

    /* Shipping — stack on narrow screens */
    .rcbsp-shipping {
        flex-direction: column;
        gap: 14px;
    }

    /* Tabs */
    .rcbsp-tab {
        padding: 16px 18px;
        font-size: 11px;
    }
    .rcbsp-tab-panel {
        padding: 36px 0 44px;
    }


    /* Details — single column */
    .rcbsp-details {
        padding: 44px var(--v3-px) 48px;
    }
    .rcbsp-details__cols {
        grid-template-columns: 1fr;
    }

    /* Related — 2 columns */
    .rcbsp-related {
        padding: 44px var(--v3-px) 56px;
    }
    .rcbsp-related-grid {
        grid-template-columns: repeat(2, 1fr);
        column-gap: 12px;
        row-gap: 16px;
    }
    .rcbsp-related-grid .rcb-product-card__img-wrap {
        height: 140px;
        padding: 12px;
    }
    .rcbsp-related-grid .rcb-product-card__body {
        padding: 10px 10px 14px;
    }

    /* Form: stack qty and button */
    .rcbsp-form form.cart:not(.variations_form),
    .rcbsp-form .woocommerce-variation-add-to-cart {
        flex-wrap: nowrap;
    }
    .rcbsp-form .single_add_to_cart_button,
    .rcbsp-form .button.alt {
        height: 48px;
        min-height: 48px;
    }
}

@media (max-width: 480px) {
    body.single-product {
        --v3-px: 16px;
    }

    .rcbsp-gallery__thumbs {
        gap: 8px;
    }
    .rcbsp-gallery__thumb {
        width: 60px;
        height: 60px;
    }

    .rcbsp-tested-for {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .rcbsp-related-grid {
        grid-template-columns: repeat(2, 1fr);
        column-gap: 12px;
        row-gap: 14px;
    }

    .rcbsp-coa__stats {
        gap: 24px;
        padding: 18px 20px;
    }
    .rcbsp-coa__stat-val {
        font-size: 20px;
    }
}
