/**
 * JeVibe Design Studio — productstory v3
 * Rustige, premium opmaak voor de productpagina én de Studio-preview.
 * Ondersteunt ook de oudere v2-markup (span/strong-rijen en ✓-spans),
 * zodat bestaande omschrijvingen dezelfde details- en kenmerkenopmaak krijgen.
 */

.jv-product-story {
    --jv-blue: #0b63df;
    --jv-ink: #14213a;
    --jv-text: #3e4c60;
    --jv-muted: #6d7a8c;
    --jv-line: #e8edf3;
    --jv-soft: #f7f9fc;
    --jv-soft-blue: #eef4fd;
    --jv-radius: 20px;
    --jv-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.4 8.3l2.3 2.3 4.9-5' fill='none' stroke='%230b63df' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    width: 100%;
    max-width: none;
    margin: 0;
    color: var(--jv-text);
    font-size: 15px;
    line-height: 1.7;
}

.jv-product-story,
.jv-product-story * {
    box-sizing: border-box;
}

.jv-product-story img {
    display: block;
    max-width: 100%;
    height: auto;
}

.jv-product-story p,
.jv-product-story figure {
    margin-top: 0;
}

/*
 * Koppen: bescheiden formaat, geen zware typografie.
 * Gewicht 500: het thema laadt IBM Plex Sans alleen in 400 en 700, dus 600 zou als vet (700) verschijnen.
 * 500 toont op de site als 400 en in de Studio (systeemlettertype) als medium.
 */
.jv-product-story h2,
.jv-product-story h3 {
    margin: 0 0 14px;
    color: var(--jv-ink);
    font-family: inherit;
    font-weight: 500;
    letter-spacing: -0.015em;
    text-transform: none;
}

.jv-product-story h2 {
    max-width: 640px;
    font-size: clamp(26px, 2.6vw, 36px);
    line-height: 1.15;
}

.jv-product-story h3 {
    font-size: clamp(22px, 2vw, 28px);
    line-height: 1.22;
}

.jv-product-story__eyebrow {
    display: block;
    margin-bottom: 10px;
    color: var(--jv-blue);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: .14em;
    text-transform: uppercase;
}

/* Intro */
.jv-product-story__intro {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(380px, .88fr);
    align-items: center;
    gap: clamp(32px, 5vw, 72px);
    padding: clamp(32px, 4.5vw, 64px);
    overflow: hidden;
    border: 1px solid var(--jv-line);
    border-radius: 24px;
    background: linear-gradient(180deg, #ffffff 0%, var(--jv-soft) 100%);
}

.jv-product-story__copy {
    min-width: 0;
}

.jv-product-story__lead {
    max-width: 620px;
    margin-bottom: 20px;
    color: var(--jv-text);
    font-size: clamp(15px, 1.3vw, 17px);
    line-height: 1.75;
}

.jv-product-story__intro-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.jv-product-story__intro-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 12px;
    border: 1px solid var(--jv-line);
    border-radius: 999px;
    background: #fff;
    color: #415069;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .01em;
}

.jv-product-story__hero-media {
    position: relative;
    width: min(100%, 520px);
    margin: 0 0 0 auto;
    overflow: hidden;
    border: 1px solid var(--jv-line);
    border-radius: 18px;
    background: var(--jv-soft);
}

.jv-product-story__hero-image {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

/* Drie korte kenmerken onder de intro */
.jv-product-story__feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 16px 0 0;
}

.jv-product-story__feature-card {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 64px;
    padding: 16px 18px;
    border: 1px solid var(--jv-line);
    border-radius: 16px;
    background: #fff;
}

.jv-product-story__feature-card strong {
    color: var(--jv-ink);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

/* Eén klein vinkje voor alle lijsten (het ✓-teken in de HTML wordt verborgen). */
.jv-product-story__feature-icon,
.jv-product-story__why li > span:first-child,
.jv-product-story__feature-item::before {
    display: inline-block;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--jv-soft-blue) var(--jv-check) center / 12px 12px no-repeat;
    color: transparent;
    font-size: 0;
    line-height: 0;
}

/* Editorial */
.jv-product-story__editorial {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr);
    gap: clamp(28px, 5vw, 72px);
    align-items: center;
    margin: clamp(48px, 6vw, 80px) 0;
    padding: 0 clamp(4px, 1.5vw, 16px);
}

.jv-product-story__editorial-copy p {
    max-width: 640px;
    margin-bottom: 0;
    color: var(--jv-text);
    font-size: 16px;
    line-height: 1.8;
}

.jv-product-story__quote {
    display: grid;
    gap: 10px;
    padding: clamp(24px, 3.5vw, 36px);
    border: 1px solid var(--jv-line);
    border-radius: var(--jv-radius);
    background: var(--jv-soft);
}

.jv-product-story__quote span {
    color: var(--jv-blue);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.jv-product-story__quote strong {
    color: var(--jv-ink);
    font-size: clamp(18px, 1.7vw, 22px);
    font-weight: 500;
    line-height: 1.4;
}

/* Beelden */
.jv-product-story__gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 clamp(48px, 6vw, 80px);
}

.jv-product-story__gallery-card {
    position: relative;
    display: grid;
    grid-template-rows: minmax(0, 1fr) 42px;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--jv-line);
    border-radius: 18px;
    background: #fff;
}

.jv-product-story__gallery-image {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    transition: transform .35s ease;
}

.jv-product-story__gallery-card:hover .jv-product-story__gallery-image {
    transform: scale(1.012);
}

.jv-product-story__gallery-card > span {
    position: static;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    min-height: 42px;
    padding: 0 12px;
    border-radius: 0;
    background: #f7f9fc;
    color: var(--jv-ink);
    font-size: 11px;
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    transform: none;
    backdrop-filter: none;
}

/* Productdetails + Kenmerken: twee gelijke kaarten, één familie. */
.jv-product-story__info {
    display: grid;
    gap: 16px;
    margin: 0 0 clamp(40px, 5vw, 64px);
}

.jv-product-story__details {
    display: block;
    margin: 0;
    padding: clamp(28px, 3.6vw, 44px) clamp(24px, 3vw, 42px);
    border: 1px solid var(--jv-line);
    border-radius: var(--jv-radius);
    background: #fff;
}

.jv-product-story__details .jv-product-story__panel-head {
    margin-bottom: 20px;
}

.jv-product-story__why {
    display: grid;
    grid-template-columns: minmax(200px, 270px) minmax(0, 1fr);
    gap: clamp(28px, 5vw, 72px);
    align-items: start;
    margin: 0;
    padding: clamp(28px, 3.6vw, 44px) clamp(24px, 4vw, 52px);
    border: 1px solid var(--jv-line);
    border-radius: var(--jv-radius);
    background: #fff;
}

/* Oudere v2-markup (zonder .jv-product-story__info) */
.jv-product-story > .jv-product-story__details + .jv-product-story__why {
    margin-top: 16px;
}

.jv-product-story > .jv-product-story__why {
    margin-bottom: clamp(40px, 5vw, 64px);
}

.jv-product-story .jv-product-story__details h3,
.jv-product-story .jv-product-story__why h3 {
    margin: 0;
    font-size: clamp(22px, 2.1vw, 28px);
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.jv-product-story .jv-product-story__detail-list {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    border: 0;
}

.jv-product-story .jv-product-story__detail-row {
    position: relative;
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 9px;
    row-gap: 2px;
    align-items: center;
    min-width: 0;
    min-height: 66px;
    margin: 0;
    padding: 11px 12px;
    border: 1px solid var(--jv-line);
    border-radius: 14px;
    background: #fff;
}

.jv-product-story .jv-product-story__detail-row::before {
    content: "";
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--jv-soft-blue) var(--jv-check) center / 12px 12px no-repeat;
}

.jv-product-story .jv-product-story__detail-row > :first-child {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    color: var(--jv-muted);
    font-size: 9px;
    font-weight: 500;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: .045em;
}

.jv-product-story .jv-product-story__detail-row > :last-child {
    grid-column: 2;
    grid-row: 2;
    min-width: 0;
    margin: 0;
    color: var(--jv-ink);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    text-align: left;
    overflow-wrap: anywhere;
}

.jv-product-story .jv-product-story__why ul {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.jv-product-story .jv-product-story__why li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0;
    padding: 11px 0;
    border-bottom: 1px solid var(--jv-line);
    color: var(--jv-ink);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
    list-style: none;
}

.jv-product-story .jv-product-story__why li:first-child {
    padding-top: 0;
}

.jv-product-story .jv-product-story__why li:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.jv-product-story__feature-item::before {
    content: "";
    margin-top: 2px;
}

.jv-product-story__why li > span:first-child {
    margin-top: 2px;
}

/* Service */
.jv-product-story__service {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid var(--jv-line);
    border-radius: var(--jv-radius);
    background: var(--jv-soft);
}

.jv-product-story__service > div {
    display: grid;
    gap: 2px;
    padding: 20px 24px;
    border-right: 1px solid var(--jv-line);
}

.jv-product-story__service > div:last-child {
    border-right: 0;
}

.jv-product-story__service strong {
    color: var(--jv-ink);
    font-size: 14px;
    font-weight: 600;
}

.jv-product-story__service span {
    color: var(--jv-muted);
    font-size: 13px;
}

/* Korte omschrijving (bulletlijst naast de koopknop) */
.jv-kenmerken {
    margin: 0;
    padding-left: 1.25em;
    list-style: disc !important;
}

.jv-kenmerken li {
    display: list-item !important;
    padding: 3px 0;
    list-style: disc !important;
}

.jv-kenmerken li::marker {
    color: #0b63df;
}


/* Brede schermen: benut de producttab volledig, maar houd tekst prettig leesbaar. */
@media (min-width: 1280px) {
    .jv-product-story__intro {
        grid-template-columns: minmax(0, 1.18fr) minmax(460px, .82fr);
        padding-left: clamp(48px, 4vw, 76px);
        padding-right: clamp(48px, 4vw, 76px);
    }

    .jv-product-story__copy,
    .jv-product-story__editorial-copy {
        max-width: 820px;
    }

    .jv-product-story__gallery {
        gap: 18px;
    }

    .jv-product-story__details,
    .jv-product-story__why {
        padding-left: clamp(38px, 4vw, 68px);
        padding-right: clamp(38px, 4vw, 68px);
    }
}




@media (max-width: 1023px) {
    .jv-product-story .jv-product-story__detail-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .jv-product-story .jv-product-story__detail-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .jv-product-story .jv-product-story__detail-row {
        min-height: 62px;
        padding: 10px;
        border-radius: 12px;
    }

    .jv-product-story .jv-product-story__detail-row > :first-child {
        font-size: 8px;
    }

    .jv-product-story .jv-product-story__detail-row > :last-child {
        font-size: 12px;
    }

    .jv-product-story__gallery-card {
        grid-template-rows: minmax(0, 1fr) 36px;
    }

    .jv-product-story__gallery-card > span {
        min-height: 36px;
        padding: 0 8px;
        font-size: 10px;
        text-align: center;
    }
}

/* Tablet */
@media (max-width: 900px) {
    .jv-product-story__intro {
        grid-template-columns: 1fr 300px;
        gap: 28px;
        padding: 32px;
    }

    .jv-product-story__feature-grid,
    .jv-product-story__service {
        grid-template-columns: 1fr;
    }

    .jv-product-story__feature-card {
        min-height: 56px;
    }

    .jv-product-story__service > div {
        border-right: 0;
        border-bottom: 1px solid var(--jv-line);
    }

    .jv-product-story__service > div:last-child {
        border-bottom: 0;
    }

    .jv-product-story__details,
    .jv-product-story__why {
        grid-template-columns: minmax(170px, 220px) minmax(0, 1fr);
        gap: 32px;
    }
}

/* Mobiel: alles onder elkaar, compact en goed leesbaar. */
@media (max-width: 700px) {
    .jv-product-story {
        font-size: 14px;
    }

    .jv-product-story__intro {
        grid-template-columns: 1fr;
        gap: 22px;
        padding: 24px 20px;
        border-radius: 18px;
    }

    .jv-product-story h2 {
        margin-bottom: 12px;
        font-size: 24px;
        line-height: 1.2;
    }

    .jv-product-story h3 {
        font-size: 22px;
    }

    .jv-product-story__lead {
        margin-bottom: 16px;
        font-size: 15px;
        line-height: 1.7;
    }

    .jv-product-story__intro-tags {
        gap: 6px;
    }

    .jv-product-story__intro-tags span {
        min-height: 28px;
        padding: 4px 10px;
        font-size: 11px;
    }

    .jv-product-story__hero-media {
        width: 100%;
        max-width: none;
        margin: 0;
        border-radius: 14px;
    }

    .jv-product-story__feature-grid {
        grid-template-columns: 1fr;
        gap: 8px;
        margin-top: 10px;
    }

    .jv-product-story__feature-card {
        min-height: 0;
        padding: 13px 16px;
        border-radius: 14px;
    }

    .jv-product-story__editorial {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 40px 0;
        padding: 0 4px;
    }

    .jv-product-story__editorial-copy p {
        font-size: 15px;
        line-height: 1.75;
    }

    .jv-product-story__quote {
        padding: 22px 20px;
        border-radius: 16px;
    }

    .jv-product-story__quote strong {
        font-size: 18px;
    }

    .jv-product-story__gallery {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin-bottom: 40px;
    }

    .jv-product-story__gallery-card {
        border-radius: 14px;
    }

    .jv-product-story__gallery-card:first-child {
        grid-column: 1 / -1;
    }

    

    .jv-product-story__info {
        gap: 12px;
        margin-bottom: 40px;
    }

    .jv-product-story__details,
    .jv-product-story__why {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 24px 20px;
        border-radius: 16px;
    }

    .jv-product-story > .jv-product-story__details + .jv-product-story__why {
        margin-top: 12px;
    }

    .jv-product-story > .jv-product-story__why {
        margin-bottom: 40px;
    }

    .jv-product-story .jv-product-story__details h3,
    .jv-product-story .jv-product-story__why h3 {
        font-size: 22px;
    }

    .jv-product-story .jv-product-story__detail-row {
        grid-template-columns: minmax(104px, 38%) minmax(0, 1fr);
        gap: 14px;
        padding: 12px 0;
    }

    .jv-product-story .jv-product-story__detail-row > :first-child {
        font-size: 13px;
    }

    .jv-product-story .jv-product-story__detail-row > :last-child {
        font-size: 15px;
    }

    .jv-product-story .jv-product-story__why li {
        gap: 10px;
        padding: 10px 0;
        font-size: 15px;
    }

    .jv-product-story__service {
        border-radius: 16px;
    }

    .jv-product-story__service > div {
        padding: 16px 18px;
    }

    .jv-product-story__service strong {
        font-size: 13px;
    }

    .jv-product-story__service span {
        font-size: 12px;
    }
}

/* Respect reduced motion. */
@media (prefers-reduced-motion: reduce) {
    .jv-product-story__gallery-image {
        transition: none;
    }
}

@media (max-width: 700px) {
    .jv-product-story .jv-product-story__detail-list {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .jv-product-story .jv-product-story__detail-row {
        min-height: 62px;
        padding: 11px 13px;
        border-radius: 12px;
    }

    .jv-product-story .jv-product-story__detail-row > :first-child {
        font-size: 9px;
    }

    .jv-product-story .jv-product-story__detail-row > :last-child {
        font-size: 13px;
    }
}


/* v0.11.0 — één definitieve gallery-captionregel.
 * Studio-preview en storefront gebruiken exact dezelfde CSS.
 */
.jv-product-story__gallery-card {
    display: grid;
    grid-template-rows: minmax(0, 1fr) 44px;
    overflow: hidden;
    border: 1px solid var(--jv-line);
    border-radius: 18px;
    background: #fff;
}

.jv-product-story__gallery-card > .jv-product-story__gallery-image {
    display: block;
    width: 100%;
    min-width: 0;
    height: auto;
    margin: 0;
}

.jv-product-story__gallery-card > .jv-product-story__gallery-caption,
.jv-product-story__gallery-card > span {
    position: static;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    height: 44px;
    min-height: 44px;
    margin: 0;
    padding: 0 14px;
    box-sizing: border-box;
    border: 0;
    border-top: 1px solid #e8edf4;
    border-radius: 0;
    background: #fafbfd;
    color: #26364d;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: .025em;
    text-align: center;
    white-space: nowrap;
    transform: none;
}

.jv-product-story__gallery-caption-text {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    text-align: center;
    line-height: 1.2;
}

@media (max-width: 700px) {
    .jv-product-story__gallery-card {
        grid-template-rows: minmax(0, 1fr) 38px;
        border-radius: 14px;
    }

    .jv-product-story__gallery-card > .jv-product-story__gallery-caption,
    .jv-product-story__gallery-card > span {
        height: 38px;
        min-height: 38px;
        padding: 0 10px;
        font-size: 10px;
    }
}
