/**
 * Single Product Template V4 — Minotti Light
 * Aligned with product-archive-v3 and home v2 design system.
 *
 * @package Romak
 */

/* ── Tokens ─────────────────────────────────────────────────── */
.spv4-main {
    --spv4-brand:      var(--gold, #1E5447);
    --spv4-brand-dark: #163D34;
    --spv4-brand-lite: #eef7f5;
    --spv4-ink:        var(--ink, #111110);
    --spv4-ink-soft:   var(--ink-60, rgba(17, 17, 16, 0.52));
    --spv4-bg:         var(--ivory, #f8f6f2);
    --spv4-bg-card:    var(--white, #ffffff);
    --spv4-border:     var(--ink-10, rgba(17, 17, 16, 0.1));
    --spv4-radius:     4px;
    --spv4-ease:       var(--ease, cubic-bezier(.25,.46,.45,.94));
    --spv4-section-gap: clamp(3rem, 6vw, 5rem);
    background: var(--spv4-bg);
    color: var(--spv4-ink);
    direction: rtl;
    font-family: var(--ff-body, 'IRANSans', Tahoma, sans-serif);
    font-weight: 300;
}

.spv4-container {
    max-width: 1400px;
    margin-inline: auto;
    padding-inline: clamp(1.25rem, 4vw, 4rem);
}

.spv4-eyebrow {
    display: inline-block;
    font-size: .72rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--spv4-brand);
    margin-block-end: .75rem;
    position: relative;
    padding-inline-end: 1.5rem;
}

.spv4-eyebrow::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 1px;
    background: var(--gold-light, #3a8a75);
    vertical-align: middle;
    margin-inline-start: .6rem;
    opacity: .75;
}

/* ── Nav override (light ivory hero) ───────────────────────── */
body.romak-spv4-product .nav.over-dark {
    color: var(--ink, #0e0e0c);
}

body.romak-spv4-product .nav.over-dark::before {
    opacity: 1;
    background: linear-gradient(
        180deg,
        rgba(252, 250, 247, .94) 0%,
        rgba(245, 242, 237, .88) 100%
    );
    backdrop-filter: blur(20px) saturate(1.35);
    -webkit-backdrop-filter: blur(20px) saturate(1.35);
    border-bottom: 1px solid rgba(14, 14, 12, .08);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .85),
        0 8px 28px rgba(14, 14, 12, .06);
}

body.romak-spv4-product .nav.over-dark::after {
    opacity: .55;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(30, 84, 71, .28) 50%,
        transparent 100%
    );
}

body.romak-spv4-product .nav.over-dark .nav__link,
body.romak-spv4-product .nav.over-dark .nav__logo {
    text-shadow: none;
}

body.romak-spv4-product .nav.over-dark .nav__logo img {
    filter: none;
}

/* Mobile icons: dark on light hero before scroll (override contrast-fix white icons) */
@media (max-width: 768px) {
    body.romak-spv4-product .nav.over-dark:not(.scrolled) .nav__burger,
    body.romak-spv4-product .nav.over-dark:not(.scrolled) .nav__icon,
    body.romak-spv4-product .nav.over-dark:not(.scrolled) .nav__icon--search,
    body.romak-spv4-product .nav.over-dark:not(.scrolled) .nav__icon--contact {
        color: var(--ink, #0e0e0c) !important;
    }

    body.romak-spv4-product .nav.over-dark:not(.scrolled) .nav__burger span {
        background-color: currentColor !important;
    }

    body.romak-spv4-product .nav.over-dark:not(.scrolled) .nav__icon svg {
        stroke: currentColor !important;
    }
}

/* ── First viewport (fold) ─────────────────────────────────── */
.spv4-fold {
    padding-block-start: calc(var(--h-nav, 72px) + var(--nav-top, 1.35rem) + .75rem);
    padding-block-end: clamp(1.5rem, 3vw, 2.5rem);
    background:
        linear-gradient(
            168deg,
            var(--ivory, #faf8f5) 0%,
            var(--cream, #f5f2ed) 38%,
            var(--spv4-bg) 100%
        );
    border-block-end: 1px solid var(--spv4-border);
    min-height: calc(100dvh - var(--h-nav, 72px) - var(--nav-top, 1.35rem));
    display: flex;
    flex-direction: column;
}

.spv4-fold__inner {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: .75rem;
}

.spv4-fold .spv4-breadcrumb {
    font-size: .78rem;
    line-height: 1.4;
    flex-shrink: 0;
}

.spv4-fold .spv4-breadcrumb .woocommerce-breadcrumb,
.spv4-fold .spv4-breadcrumb nav.woocommerce-breadcrumb {
    margin: 0;
    padding: 0;
    font-size: inherit;
    color: var(--spv4-ink) !important;
}

.spv4-fold .spv4-breadcrumb .woocommerce-breadcrumb a,
.spv4-fold .spv4-breadcrumb nav.woocommerce-breadcrumb a {
    color: var(--spv4-ink-soft) !important;
    text-decoration: none !important;
    transition: color .2s;
}

.spv4-fold .spv4-breadcrumb .woocommerce-breadcrumb a:hover,
.spv4-fold .spv4-breadcrumb nav.woocommerce-breadcrumb a:hover {
    color: var(--spv4-brand) !important;
}

/* ── Two-column layout ───────────────────────────────────── */
.spv4-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, 420px);
    gap: clamp(1rem, 2.5vw, 2rem);
    align-items: start;
    flex: 1;
}

@media (max-width: 960px) {
    .spv4-fold {
        min-height: auto;
        padding-block-start: calc(var(--h-nav, 72px) + var(--nav-top, 1.35rem) + .35rem);
        padding-block-end: 1rem;
    }

    .spv4-fold__inner {
        gap: .5rem;
    }

    .spv4-container {
        padding-inline: 1rem;
    }

    .spv4-layout {
        grid-template-columns: 1fr;
        gap: .65rem;
    }

    .spv4-gallery {
        gap: .35rem;
    }

    .spv4-gallery__main {
        aspect-ratio: 16 / 10;
        max-height: min(36vh, 260px);
    }

    .spv4-gallery__thumbs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: .35rem;
    }

    .spv4-gallery__thumbs::-webkit-scrollbar {
        display: none;
    }

    .spv4-gallery__thumb {
        width: 48px;
        height: 48px;
    }

    .spv4-info__inner {
        padding: .85rem 1rem;
    }

    .spv4-info__title {
        font-size: 1.15rem;
        margin-block-end: .5rem;
    }

    .spv4-info__headline {
        margin-block-end: .65rem;
    }

    .spv4-excerpt {
        -webkit-line-clamp: 2;
        margin-block-start: .5rem;
        font-size: .82rem;
        line-height: 1.6;
    }

    .spv4-meta-chips {
        margin-block-start: .5rem;
    }

    .spv4-below-fold {
        margin-block-start: .5rem;
        padding-block-start: .5rem;
    }
}

@media (max-width: 640px) {
    .spv4-fold {
        padding-block-start: calc(var(--h-nav, 72px) + var(--nav-top, 1.35rem) + .15rem);
        padding-block-end: .75rem;
    }

    .spv4-fold .spv4-breadcrumb {
        font-size: .65rem;
        line-height: 1.25;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .spv4-gallery__main {
        aspect-ratio: 16 / 11;
        max-height: min(30vh, 220px);
    }

    .spv4-gallery__thumb {
        width: 42px;
        height: 42px;
    }

    .spv4-info__inner {
        padding: .7rem .85rem;
    }

    .spv4-info__title {
        font-size: 1.05rem;
        line-height: 1.3;
        margin-block-end: .4rem;
    }

    .spv4-info__headline {
        margin-block-end: .5rem;
        gap: .4rem;
    }

    .spv4-price-label {
        font-size: .62rem;
    }

    .spv4-price {
        font-size: 1rem;
    }

    .spv4-stock-badge {
        padding: .18rem .5rem;
        font-size: .62rem;
    }

    .spv4-excerpt {
        display: none;
    }

    .spv4-meta-chips {
        margin-block-start: .4rem;
        gap: .25rem;
    }

    .spv4-meta-chip {
        padding: .18rem .45rem;
        font-size: .62rem;
    }

    .spv4-below-fold {
        display: none;
    }
}

/* ── Gallery (standard single product) ───────────────────── */
.spv4-gallery {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    position: sticky;
    top: calc(var(--h-nav, 72px) + 1rem);
}

@media (max-width: 960px) {
    .spv4-gallery {
        position: static;
    }
}

.spv4-gallery__main {
    position: relative;
    overflow: hidden;
    background: var(--cream, #f5f2ed);
    border-radius: var(--spv4-radius);
    border: 1px solid var(--spv4-border);
    line-height: 0;
    aspect-ratio: 4 / 5;
    max-height: min(calc(100dvh - 220px), 560px);
}

.spv4-gallery__main img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    cursor: zoom-in;
    transition: opacity .3s var(--spv4-ease);
}

.spv4-gallery__thumbs {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}

.spv4-gallery__thumb {
    width: 60px;
    height: 60px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: var(--spv4-radius);
    overflow: hidden;
    cursor: pointer;
    background: var(--cream, #f5f2ed);
    transition: border-color .2s, opacity .2s;
    opacity: .7;
    flex-shrink: 0;
}

.spv4-gallery__thumb.is-active,
.spv4-gallery__thumb:hover {
    border-color: var(--spv4-brand);
    opacity: 1;
}

.spv4-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.spv4-gallery__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    background: var(--cream, #f5f2ed);
    border-radius: var(--spv4-radius);
    color: var(--spv4-ink-soft);
    font-size: .95rem;
}

/* ── Info panel (sticky) ───────────────────────────────────── */
.spv4-info {
    position: sticky;
    top: calc(var(--h-nav, 72px) + 1rem);
    align-self: start;
}

@media (max-width: 960px) {
    .spv4-info {
        position: static;
    }
}

.spv4-info__inner {
    background: var(--spv4-bg-card);
    border: 1px solid var(--spv4-border);
    border-radius: var(--spv4-radius);
    padding: clamp(1rem, 2vw, 1.5rem);
}

.spv4-info__cats {
    font-size: .68rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--spv4-brand);
    margin-block-end: .5rem;
    line-height: 1.5;
}

.spv4-info__cats a {
    color: inherit;
    text-decoration: none;
    transition: color .2s;
}

.spv4-info__cats a:hover {
    color: var(--spv4-brand-dark);
}

.spv4-info__title {
    font-family: var(--ff-body, 'IRANSans', Tahoma, sans-serif);
    font-size: clamp(1.35rem, 2.5vw, 1.85rem);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -.01em;
    margin: 0 0 .75rem;
    color: var(--spv4-ink);
}

.spv4-info__headline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    flex-wrap: wrap;
    margin-block-end: 1rem;
}

.spv4-stock-badge {
    display: inline-flex;
    align-items: center;
    padding: .25rem .7rem;
    font-size: .72rem;
    letter-spacing: .06em;
    border-radius: 2px;
    font-weight: 500;
    flex-shrink: 0;
}

.spv4-stock-badge.in-stock {
    background: var(--spv4-brand-lite);
    color: var(--spv4-brand);
}

.spv4-stock-badge.out-stock {
    background: rgba(179, 51, 51, .1);
    color: #b33;
}

.spv4-excerpt {
    font-size: .88rem;
    line-height: 1.75;
    color: var(--spv4-ink-soft);
    margin-block-start: .75rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.spv4-excerpt p {
    margin: 0;
}

.spv4-meta-chips {
    list-style: none;
    margin: .75rem 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}

.spv4-meta-chip {
    display: inline-block;
    padding: .3rem .65rem;
    font-size: .72rem;
    letter-spacing: .04em;
    color: var(--spv4-brand);
    background: var(--spv4-brand-lite);
    border-radius: 2px;
}

.spv4-meta-chip--muted {
    color: var(--spv4-ink-soft);
    background: var(--cream, #f5f2ed);
}

.spv4-below-fold {
    margin-block-start: .75rem;
    padding-block-start: .75rem;
    border-block-start: 1px solid var(--spv4-border);
}

.spv4-actions--primary {
    margin-block-end: 0;
}

.spv4-actions__ctas {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

@media (min-width: 769px) {
    .spv4-actions__ctas {
        gap: 1rem;
    }
}

.spv4-actions--primary .spv4-btn {
    padding-block: .75rem;
    font-size: .88rem;
}

.spv4-divider {
    height: 1px;
    margin-block: 1.25rem;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(30, 84, 71, 0.18) 50%,
        transparent 100%
    );
}

.spv4-price-wrap {
    display: flex;
    flex-direction: column;
    gap: .15rem;
}

.spv4-price-label {
    font-size: .68rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--spv4-ink-soft);
}

.spv4-price {
    font-size: clamp(1.15rem, 1.8vw, 1.45rem);
    font-weight: 500;
    color: var(--spv4-ink);
    line-height: 1.2;
}

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

.spv4-price del {
    opacity: .5;
    font-size: .85em;
}

.spv4-price ins {
    text-decoration: none;
}

/* ── Meta list ─────────────────────────────────────────────── */
.spv4-meta-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .65rem;
}

.spv4-meta-list li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    font-size: .88rem;
    padding-block-end: .65rem;
    border-block-end: 1px solid var(--spv4-border);
}

.spv4-meta-list li:last-child {
    border-block-end: none;
    padding-block-end: 0;
}

.spv4-meta-list__key {
    color: var(--spv4-ink-soft);
    flex-shrink: 0;
}

.spv4-meta-list__val {
    color: var(--spv4-ink);
    text-align: end;
    font-weight: 400;
}

.spv4-stock.in-stock { color: var(--spv4-brand); }
.spv4-stock.out-stock { color: #b33; }

/* ── Buttons ───────────────────────────────────────────────── */
.spv4-actions {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.spv4-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    width: 100%;
    padding: .85rem 1.5rem;
    font-size: .9rem;
    font-weight: 400;
    letter-spacing: .02em;
    border-radius: var(--spv4-radius);
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background .2s, color .2s, border-color .2s, transform .2s;
}

.spv4-btn--primary {
    background: var(--spv4-brand);
    color: #fff;
    border-color: var(--spv4-brand);
}

.spv4-btn--primary:hover {
    background: var(--spv4-brand-dark);
    border-color: var(--spv4-brand-dark);
    color: #fff;
}

.spv4-btn--ghost {
    background: transparent;
    color: var(--spv4-ink);
    border-color: var(--spv4-border);
}

.spv4-btn--ghost:hover {
    border-color: var(--spv4-brand);
    color: var(--spv4-brand);
}

/* ── Mobile sticky CTA bar ─────────────────────────────────── */
.spv4-mobile-bar {
    display: none;
}

@media (max-width: 768px) {
    body.romak-spv4-product {
        padding-bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px));
    }

    body.romak-spv4-product .spv4-actions__ctas {
        display: none;
    }

    body.romak-spv4-product .spv4-info__headline .spv4-price-wrap {
        display: none;
    }

    .spv4-mobile-bar {
        display: flex;
        align-items: center;
        gap: .65rem;
        position: fixed;
        inset-inline: 0;
        bottom: 0;
        z-index: 9990;
        padding: .6rem .85rem;
        padding-bottom: calc(.6rem + env(safe-area-inset-bottom, 0px));
        background: rgba(255, 255, 255, .98);
        backdrop-filter: blur(14px) saturate(1.2);
        -webkit-backdrop-filter: blur(14px) saturate(1.2);
        border-block-start: 1px solid var(--spv4-border);
        box-shadow: 0 -10px 36px rgba(14, 14, 12, .1);
    }

    .spv4-mobile-bar__price {
        flex-shrink: 0;
        min-width: 0;
        max-width: 36%;
        padding-inline-end: .35rem;
        border-inline-end: 1px solid var(--spv4-border);
    }

    .spv4-mobile-bar__price-label {
        display: block;
        font-size: .6rem;
        letter-spacing: .1em;
        text-transform: uppercase;
        color: var(--spv4-ink-soft);
        margin-block-end: .1rem;
    }

    .spv4-mobile-bar__price-value {
        display: block;
        font-size: .92rem;
        font-weight: 500;
        color: var(--spv4-ink);
        line-height: 1.25;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .spv4-mobile-bar__price-value .woocommerce-Price-amount {
        color: inherit;
        font-weight: inherit;
    }

    .spv4-mobile-bar__price-value del {
        display: block;
        font-size: .68rem;
        font-weight: 400;
        opacity: .55;
        line-height: 1.2;
    }

    .spv4-mobile-bar__price-value ins {
        text-decoration: none;
    }

    .spv4-mobile-bar__actions {
        flex: 1;
        display: flex;
        align-items: stretch;
        gap: .4rem;
        min-width: 0;
    }

    .spv4-mobile-bar__btn {
        flex: 1;
        min-width: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: .65rem .55rem;
        min-height: 44px;
        font-family: inherit;
        font-size: .76rem;
        font-weight: 400;
        line-height: 1.25;
        text-align: center;
        text-decoration: none;
        border-radius: 999px;
        border: 1px solid transparent;
        cursor: pointer;
        transition: background .2s, color .2s, border-color .2s, transform .15s;
        white-space: nowrap;
    }

    .spv4-mobile-bar__btn--primary {
        flex: 1.4;
        background: var(--spv4-brand);
        color: #fff;
        border-color: var(--spv4-brand);
    }

    .spv4-mobile-bar__btn--primary:hover,
    .spv4-mobile-bar__btn--primary:focus-visible {
        background: var(--spv4-brand-dark);
        border-color: var(--spv4-brand-dark);
        color: #fff;
    }

    .spv4-mobile-bar__btn--secondary {
        background: var(--spv4-bg-card);
        color: var(--spv4-brand);
        border-color: var(--spv4-brand);
    }

    .spv4-mobile-bar__btn--secondary:hover,
    .spv4-mobile-bar__btn--secondary:focus-visible {
        background: var(--spv4-brand-lite);
        color: var(--spv4-brand-dark);
    }

    .spv4-mobile-bar__btn:active {
        transform: scale(.98);
    }
}

@media (max-width: 380px) {
    .spv4-mobile-bar__btn {
        font-size: .7rem;
        padding-inline: .4rem;
    }

    .spv4-mobile-bar__price {
        max-width: 32%;
    }
}

/* ── Specs section (always visible) ────────────────────────── */
.spv4-specs-section {
    margin-block-start: 0;
}

.spv4-specs-section__title {
    margin: 0 0 .75rem;
    font-size: .85rem;
    font-weight: 500;
    color: var(--spv4-ink);
    letter-spacing: .02em;
}

.spv4-specs {
    list-style: none;
    margin: 0;
    padding: 0;
}

.spv4-specs li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .65rem 0;
    border-block-end: 1px solid var(--spv4-border);
    font-size: .88rem;
}

.spv4-specs li:last-child { border-block-end: none; }

.spv4-specs span { color: var(--spv4-ink-soft); }
.spv4-specs strong { color: var(--spv4-ink); font-weight: 400; }

.spv4-wc-meta .product_meta {
    margin-block-start: .75rem;
    font-size: .85rem;
    color: var(--spv4-ink-soft);
}

/* ── Section rhythm ────────────────────────────────────────── */
.spv4-article > .spv4-features,
.spv4-article > .pav3-description,
.spv4-article > .pav3-section,
.spv4-article > .spv4-cta {
    margin-block: 0;
}

.spv4-features {
    padding-block: var(--spv4-section-gap);
    border-block-start: 1px solid var(--spv4-border);
}

.spv4-article > .pav3-description {
    padding-block: var(--spv4-section-gap);
}

.spv4-related {
    padding-block: var(--spv4-section-gap);
    border-block-start: 1px solid var(--spv4-border);
}

.spv4-related__header {
    margin-block-end: clamp(1.5rem, 3vw, 2.25rem);
}

.spv4-related__header .pav3-description__title {
    margin-block-start: .65rem;
}

/* Table headers: white text — must beat dark heading overrides below */
body.romak-spv4-product .pav3-description .entry-content table :is(thead th, thead td, > tbody > tr:first-child > th, > tbody > tr:first-child > td, > tr:first-child > th, > tr:first-child > td),
body.romak-spv4-product .pav3-description .entry-content table th {
    background: var(--spv4-brand, #1E5447) !important;
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}

body.romak-spv4-product .pav3-description .entry-content table :is(thead th, thead td, > tbody > tr:first-child > th, > tbody > tr:first-child > td, > tr:first-child > th, > tr:first-child > td) :is(*, strong, b, h1, h2, h3, h4, h5, h6, span, p, a),
body.romak-spv4-product .pav3-description .entry-content table th :is(*, strong, b, h1, h2, h3, h4, h5, h6, span, p, a) {
    color: #fff !important;
}

/* ── Description: force dark headings on WooCommerce pages (not table headers) ─ */
body.romak-spv4-product .pav3-description .entry-content h1,
body.romak-spv4-product .pav3-description .entry-content h2,
body.romak-spv4-product .pav3-description .entry-content h3,
body.romak-spv4-product .pav3-description .entry-content h4,
body.romak-spv4-product .pav3-description .entry-content h5,
body.romak-spv4-product .pav3-description .entry-content h6 {
    color: var(--pav3-ink, var(--spv4-ink)) !important;
}

body.romak-spv4-product .pav3-description .pav3-description__title {
    color: var(--pav3-ink, var(--spv4-ink)) !important;
}

body.romak-spv4-product .spv4-related .pav3-description__title {
    color: var(--pav3-ink, var(--spv4-ink)) !important;
}

/* ── CTA banner ──────────────────────────────────────────── */
.spv4-cta {
    padding-block: var(--spv4-section-gap);
    background: var(--cream, #f5f2ed);
    border-block-start: 1px solid var(--spv4-border);
    color: var(--spv4-ink);
}

.spv4-cta__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.spv4-cta .pav3-hero__eyebrow {
    color: var(--spv4-brand);
}

.spv4-cta__title {
    color: var(--spv4-ink) !important;
    margin-block: .65rem .75rem;
}

.spv4-cta__text p {
    margin: 0;
    color: var(--spv4-ink-soft);
    font-size: .95rem;
    line-height: 1.75;
    max-width: 42ch;
}

.spv4-cta__actions {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
}

.spv4-btn--dark {
    background: var(--ink, #0e0e0c);
    color: #fff;
    border-color: var(--ink, #0e0e0c);
}

.spv4-btn--dark:hover {
    background: #2a2a28;
    border-color: #2a2a28;
    color: #fff;
}

.spv4-cta .spv4-btn--ghost {
    color: var(--spv4-ink);
    border-color: var(--spv4-border);
    background: var(--spv4-bg-card);
}

.spv4-cta .spv4-btn--ghost:hover {
    border-color: var(--spv4-brand);
    color: var(--spv4-brand);
    background: var(--spv4-bg-card);
}

.spv4-cta .spv4-btn {
    width: auto;
    min-width: 160px;
}

/* ── Feature cards (unchanged layout, unified spacing) ───── */

.spv4-features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1.25rem, 3vw, 2.5rem);
}

@media (max-width: 768px) {
    .spv4-features__grid {
        grid-template-columns: 1fr;
    }
}

.spv4-feature-card {
    text-align: center;
    padding: clamp(1.5rem, 3vw, 2rem);
    background: var(--spv4-bg-card);
    border: 1px solid var(--spv4-border);
    border-radius: var(--spv4-radius);
    transition: transform .35s var(--spv4-ease), box-shadow .35s var(--spv4-ease);
}

.spv4-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(17, 17, 16, 0.08);
}

.spv4-feature-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-block-end: 1rem;
    color: var(--spv4-brand);
    background: var(--spv4-brand-lite);
    border-radius: 50%;
}

.spv4-feature-card__title {
    font-size: 1rem;
    font-weight: 400;
    color: var(--spv4-ink);
    margin-block-end: .5rem;
}

.spv4-feature-card p {
    font-size: .88rem;
    line-height: 1.75;
    color: var(--spv4-ink-soft);
    margin: 0;
}

/* ── Lightbox ──────────────────────────────────────────────── */
.spv4-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99990;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, visibility .3s;
}

.spv4-lightbox.is-active {
    opacity: 1;
    visibility: visible;
}

.spv4-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(14, 14, 12, .92);
    cursor: pointer;
}

.spv4-lightbox__body {
    position: relative;
    z-index: 1;
    max-width: 92vw;
    max-height: 92vh;
}

.spv4-lightbox__img-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 88vh;
}

.spv4-lightbox__img {
    max-width: 100%;
    max-height: 88vh;
    object-fit: contain;
    transition: transform .2s;
}

.spv4-lightbox__close {
    position: absolute;
    top: -2.5rem;
    left: 0;
    width: 40px;
    height: 40px;
    font-size: 1.75rem;
    line-height: 1;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    opacity: .8;
}

.spv4-lightbox__close:hover { opacity: 1; }

.spv4-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    font-size: 1.25rem;
    color: #fff;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 50%;
    cursor: pointer;
    transition: background .2s;
    display: flex;
    align-items: center;
    justify-content: center;
    direction: ltr;
    unicode-bidi: isolate;
}

.spv4-lightbox__nav:hover {
    background: rgba(255, 255, 255, .22);
}

.spv4-lightbox__nav--prev { right: calc(100% + 1rem); }
.spv4-lightbox__nav--next { left: calc(100% + 1rem); }

@media (max-width: 640px) {
    .spv4-lightbox__nav--prev {
        left: .5rem;
        right: auto;
        top: auto;
        bottom: -3rem;
        transform: none;
    }

    .spv4-lightbox__nav--next {
        right: .5rem;
        left: auto;
        top: auto;
        bottom: -3rem;
        transform: none;
    }
}

body.spv4-lightbox-open {
    overflow: hidden;
}

/* ── Reveal animation ──────────────────────────────────────── */
.spv4-main .reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .7s var(--spv4-ease), transform .7s var(--spv4-ease);
}

.spv4-main .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── WooCommerce overrides ─────────────────────────────────── */
body.romak-spv4-product.woocommerce-page {
    background: var(--spv4-bg);
    color: var(--spv4-ink);
}

body.romak-spv4-product .site-footer,
body.romak-spv4-product footer {
    margin-block-start: 0;
}
