/* ============================================================================
   Veras Single Product — 2026 mockup layout
   Enqueued on product pages only (functions.php).
   Light content canvas over the site’s existing dark chrome.
   ========================================================================== */

body.single-product {
    background: #ffffff;
    color: #111111;
}

body.single-product .site-header {
    background: #0a0a0a;
}

body.single-product .site-footer {
    background: #0a0a0a;
}

body.single-product .vsp {
    background: #ffffff;
    color: #111111;
}

body.single-product .vsp a {
    color: inherit;
}

body.single-product .vsp a:hover {
    opacity: 0.75;
}

/* ─── Hero ──────────────────────────────────────────────────────────────── */
.vsp-hero {
    padding: 28px 0 48px;
}

.vsp-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 36px;
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: #111111;
}

.vsp-breadcrumb a {
    color: #111111;
}

.vsp-breadcrumb-sep {
    color: #9a9a9a;
}

.vsp-breadcrumb-current {
    color: var(--v-champagne);
    text-transform: uppercase;
}

.vsp-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
}

.vsp-hero-media {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
}

.vsp-hero-img {
    width: min(100%, 500px);
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 28px 40px rgba(0, 0, 0, 0.18));
}

.vsp-title {
    margin: 0 0 12px;
    font-family: var(--font-ui);
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: #111111;
}

.vsp-title-size {
    font-weight: 700;
}

.vsp-price {
    margin-bottom: 18px;
    font-family: var(--font-ui);
    font-size: clamp(22px, 2.2vw, 28px);
    font-weight: 600;
    color: var(--v-champagne);
}

.vsp-price .woocommerce-Price-amount,
.vsp-price .amount {
    color: inherit;
}

.vsp-divider {
    border: 0;
    border-top: 1px solid #e5e5e5;
    margin: 0 0 20px;
}

.vsp-specs {
    margin: 0 0 18px;
}

.vsp-spec {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 6px;
    font-family: var(--font-ui);
    font-size: 14px;
    line-height: 1.5;
    color: #444444;
}

.vsp-spec dt {
    font-weight: 700;
    color: #222222;
}

.vsp-spec dd {
    margin: 0;
}

.vsp-size-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.vsp-swatch {
    padding: 8px 14px;
    border: 1px solid #d0d0d0;
    border-radius: 999px;
    background: #fff;
    color: #222;
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.vsp-swatch:hover {
    border-color: var(--v-champagne);
}

.vsp-swatch.is-active {
    border-color: var(--v-champagne);
    background: var(--v-champagne);
    color: #fff;
}

/* Buy bar — pill with quantity + CTA */
.vsp-buy-bar {
    display: flex;
    align-items: stretch;
    max-width: 480px;
    background: #ffffff;
    border-radius: 999px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

.vsp-qty {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
    padding: 0 18px;
    cursor: pointer;
}

.vsp-qty-label {
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #111111;
    pointer-events: none;
}

.vsp-qty-select {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    font-size: 16px;
}

.vsp-qty-chevron {
    margin-left: 8px;
    color: #111111;
    pointer-events: none;
    flex-shrink: 0;
}

.vsp-add-btn {
    flex: 0 0 52%;
    min-height: 52px;
    padding: 14px 20px;
    border: 0;
    border-radius: 999px;
    background: var(--v-champagne);
    color: #ffffff;
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
    transition: opacity 0.2s;
}

.vsp-add-btn:hover:not(:disabled) {
    opacity: 0.9;
}

.vsp-add-btn:disabled,
.vsp-add-btn.loading {
    opacity: 0.55;
    cursor: wait;
}

/* ─── Tabs ──────────────────────────────────────────────────────────────── */
.vsp-tabs-section {
    padding: 8px 0 64px;
}

.vsp-tablist {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin-bottom: 0;
}

.vsp-tab {
    appearance: none;
    border: 1px solid var(--v-teal-light);
    border-bottom: none;
    background: #ffffff;
    color: var(--v-teal-light);
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 600;
    padding: 12px 22px;
    border-radius: 10px 10px 0 0;
    cursor: pointer;
    margin-right: 4px;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.vsp-tab:hover:not(.is-active) {
    background: rgba(58, 122, 131, 0.06);
}

.vsp-tab.is-active {
    background: var(--v-champagne);
    border-color: var(--v-champagne);
    color: #ffffff;
}

.vsp-tab-card {
    border: 1px solid rgba(58, 122, 131, 0.45);
    border-radius: 0 12px 12px 12px;
    background: #ffffff;
    padding: clamp(28px, 4vw, 48px);
}

.vsp-tab-panel[hidden] {
    display: none !important;
}

.vsp-panel-title {
    margin: 0 0 20px;
    font-family: var(--font-ui);
    font-size: clamp(18px, 2vw, 22px);
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #111111;
}

.vsp-prose {
    font-family: var(--font-ui);
    font-size: 15px;
    line-height: 1.75;
    color: #222222;
}

.vsp-prose p {
    margin: 0 0 16px;
}

.vsp-section-heading {
    margin: 36px 0 14px;
    font-family: var(--font-ui);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #111111;
}

.vsp-chem-list {
    margin: 0;
}

.vsp-chem-list > div {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 6px;
    font-family: var(--font-ui);
    font-size: 15px;
    color: #222;
}

.vsp-chem-list dt {
    font-weight: 700;
}

.vsp-chem-list dd {
    margin: 0;
}

.vsp-research-item {
    margin-bottom: 22px;
}

.vsp-research-item h4 {
    margin: 0 0 8px;
    font-family: var(--font-ui);
    font-size: 15px;
    font-weight: 700;
    color: #111;
    letter-spacing: 0;
    text-transform: none;
}

.vsp-research-item p {
    margin: 0;
    font-family: var(--font-ui);
    font-size: 15px;
    line-height: 1.7;
    color: #222;
}

.vsp-notice p,
.vsp-references ul {
    font-family: var(--font-ui);
    font-size: 15px;
    line-height: 1.7;
    color: #222;
}

.vsp-references ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.vsp-references li {
    margin-bottom: 4px;
}

.vsp-researcher {
    margin-top: 36px;
    padding: 24px 28px;
    border: 1px solid #4a4a4a;
    border-radius: 2px;
}

.vsp-researcher-name {
    margin: 0 0 14px;
    font-family: var(--font-ui);
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    color: var(--v-teal);
}

.vsp-researcher p {
    margin: 0 0 12px;
    font-family: var(--font-ui);
    font-size: 14px;
    line-height: 1.7;
    color: #222;
}

.vsp-researcher p:last-child {
    margin-bottom: 0;
}

/* ─── Testing & Quality value props (description tab) ───────────────────── */
.vsp-testing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 32px;
    margin: 0 0 28px;
}

.vsp-testing-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.vsp-testing-icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--v-teal-light);
    border-radius: 999px;
    color: var(--v-teal);
}

.vsp-testing-icon .testing-card-icon {
    width: 22px;
    height: 22px;
}

.vsp-testing-text h4 {
    margin: 2px 0 6px;
    font-family: var(--font-ui);
    font-size: 15px;
    font-weight: 700;
    color: #111;
}

.vsp-testing-text p {
    margin: 0;
    font-family: var(--font-ui);
    font-size: 15px;
    line-height: 1.7;
    color: #222;
}

.vsp-testing-coa {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    padding: 13px 30px;
    border-radius: 999px;
    background: var(--v-teal);
    color: #fff !important;
    font-family: var(--font-ui);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: background .18s ease, opacity .18s ease;
}

.vsp-testing-coa:hover {
    background: var(--v-teal-light);
    opacity: 1;
}

@media (max-width: 640px) {
    .vsp-testing-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* ─── COA PDF viewer ────────────────────────────────────────────────────── */
.vsp-coa-viewer {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 640px;
}

.vsp-coa-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.vsp-coa-toolbar-label {
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #111;
}

.vsp-coa-download {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border: 1px solid var(--v-teal-light);
    border-radius: 999px;
    color: var(--v-teal-light) !important;
    font-family: var(--font-ui);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.vsp-coa-download:hover {
    background: rgba(58, 122, 131, 0.08);
    opacity: 1;
}

.vsp-coa-frame {
    width: 100%;
    min-height: 720px;
    height: min(78vh, 900px);
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background: #f7f7f7;
}

.vsp-coa-empty {
    font-family: var(--font-ui);
    font-size: 15px;
    line-height: 1.7;
    color: #333;
}

.vsp-coa-empty a {
    color: var(--v-teal-light) !important;
    text-decoration: underline;
}

/* ─── Related products ──────────────────────────────────────────────────── */
.vsp-related {
    padding: 24px 0 80px;
    background: #ffffff;
}

.vsp-related-title {
    margin: 0 0 40px;
    text-align: center;
    font-family: var(--font-ui);
    font-size: clamp(24px, 2.4vw, 32px);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #222222;
}

.vsp-related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.vsp-related-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none !important;
    color: inherit;
    box-sizing: border-box;
    padding: 28px 20px 24px;
    border-radius: 14px;
    border: 1px solid transparent;
    background-color: transparent;
    overflow: hidden;
    transition: background-color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
}
.vsp-related-card:hover {
    background-color: #ffffff;
    border-color: var(--v-champagne);
    box-shadow: 0 20px 44px rgba(0,0,0,0.12);
    transform: translateY(-4px);
}
.vsp-related-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: -60%;
    width: 45%;
    height: 100%;
    background: linear-gradient(115deg, transparent 15%, rgba(197,168,128,0.5) 50%, transparent 85%);
    pointer-events: none;
    z-index: 3;
}
.vsp-related-card:hover::after {
    animation: veras-card-shine 0.9s ease forwards;
}
@keyframes veras-card-shine {
    from { left: -60%; }
    to   { left: 130%; }
}

.vsp-related-media {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 260px;
    margin-bottom: 16px;
}

.vsp-related-media img {
    width: min(100%, 220px);
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.16));
}

.vsp-related-media-placeholder {
    display: block;
    width: 120px;
    height: 180px;
    background: #f0f0f0;
    border-radius: 4px;
}

.vsp-related-name {
    margin: 0 0 8px;
    font-family: var(--font-ui);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.3;
    color: #111111;
}

.vsp-related-price {
    margin-bottom: 12px;
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 500;
    color: var(--v-champagne);
}

.vsp-related-price .woocommerce-Price-amount,
.vsp-related-price .amount {
    color: inherit;
}

.vsp-related-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--v-teal-light);
    color: #ffffff;
    font-family: var(--font-ui);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
}

/* ─── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
    .vsp-hero-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .vsp-hero-media {
        min-height: 280px;
    }

    .vsp-related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 640px) {
    .vsp-hero {
        padding: 20px 0 36px;
    }

    .vsp-buy-bar {
        max-width: none;
        flex-direction: column;
        border-radius: 16px;
    }

    .vsp-qty {
        justify-content: center;
        min-height: 48px;
        padding: 12px 18px;
    }

    .vsp-add-btn {
        flex: none;
        width: 100%;
        border-radius: 0 0 16px 16px;
    }

    .vsp-tab {
        flex: 1 1 auto;
        text-align: center;
        font-size: 13px;
        padding: 11px 12px;
        margin-right: 0;
    }

    .vsp-tab-card {
        border-radius: 0 0 12px 12px;
        padding: 22px 18px;
    }

    .vsp-coa-frame {
        min-height: 480px;
        height: 70vh;
    }

    .vsp-related-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .vsp-related-price {
        font-size: 22px;
    }
}

@media (max-width: 420px) {
    .vsp-related-grid {
        grid-template-columns: 1fr;
    }
}
