/**
 * ClearVyzr main product page — revamped layout.
 *
 * Loads on the single product view for the 'clearvyzr' product only.
 * All selectors scoped to .cv-pp so they can never bleed onto the rest of
 * the site (marketing pages, other products, checkout).
 */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

/*
 * CRITICAL: the existing .cv-page wrapper sets overflow-x: hidden, which
 * silently kills position: sticky on every descendant. All major engines
 * create a new scroll context for overflow:hidden ancestors. We switch to
 * overflow-x: clip — same horizontal protection, but no new scroll context,
 * so the sticky gallery and the sticky scroll-features image work.
 *
 * Safe to set unconditionally: this stylesheet is only enqueued on the
 * ClearVyzr product page (see clearvyzr-product enqueue in functions.php).
 */
.cv-page {
    overflow-x: clip !important;
}

.cv-pp {
    --pp-white: #ffffff;
    --pp-off-white: #f8f7f5;
    --pp-light: #eeede9;
    --pp-border: #e4e2dc;
    --pp-border-mid: #ccc9c0;
    --pp-text: #111110;
    --pp-text-mid: #555450;
    --pp-text-muted: #8c8a82;
    --pp-text-dim: #c0bdb5;
    --pp-black: #111110;
    --pp-font-head: 'Outfit', 'Inter', Helvetica, Arial, sans-serif;
    --pp-font-body: 'Inter', Helvetica, Arial, sans-serif;

    color: var(--pp-text);
    font-family: var(--pp-font-body);
    font-size: 15px;
    line-height: 1.6;
    background: var(--pp-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.cv-pp *,
.cv-pp *::before,
.cv-pp *::after {
    box-sizing: border-box;
}

.cv-pp h1,
.cv-pp h2,
.cv-pp h3,
.cv-pp h4 {
    font-family: var(--pp-font-head);
    color: var(--pp-text);
    margin: 0;
    letter-spacing: -0.01em;
}

.cv-pp p {
    margin: 0;
}

.cv-pp dl,
.cv-pp dt,
.cv-pp dd {
    margin: 0;
    padding: 0;
}

.cv-pp a {
    color: inherit;
    text-decoration: none;
}

.cv-pp img {
    max-width: 100%;
    display: block;
}

/* ─────────────────────────────────────────────── breadcrumb */

.cv-pp-breadcrumb {
    padding: 14px clamp(20px, 4vw, 48px);
    border-bottom: 1px solid var(--pp-border);
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 12px;
    color: var(--pp-text-dim);
    font-family: var(--pp-font-body);
}

.cv-pp-breadcrumb a {
    color: var(--pp-text-muted);
    transition: color .15s ease;
}

.cv-pp-breadcrumb a:hover {
    color: var(--pp-text);
}

.cv-pp-breadcrumb__sep {
    color: var(--pp-text-dim);
}

.cv-pp-breadcrumb__current {
    color: var(--pp-text-mid);
}

/* ─────────────────────────────────────────────── product split */

.cv-pp-split {
    display: grid;
    grid-template-columns: 1fr 460px;
    border-bottom: 1px solid var(--pp-border);
    /* No align-items: cells stretch to the row height so position:sticky
       inside the gallery cell has the full row to stick within. */
}

/* Gallery wrap fills its row so the inner sticky has space to stick. */
.cv-pp-gallery-wrap {
    border-right: 1px solid var(--pp-border);
    align-self: stretch;
    position: relative;
}

.cv-pp-gallery-sticky {
    position: sticky;
    top: var(--cv-header-h, 76px);
    display: grid;
    grid-template-columns: 76px 1fr;
    height: calc(100vh - var(--cv-header-h, 76px));
}

.cv-pp-thumbs {
    border-right: 1px solid var(--pp-border);
    padding: 14px 10px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    overflow-y: auto;
    scrollbar-width: none;
}

.cv-pp-thumbs::-webkit-scrollbar {
    display: none;
}

.cv-pp-thumb {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    border: 1.5px solid transparent;
    overflow: hidden;
    background: var(--pp-off-white);
    transition: border-color .15s ease;
    padding: 0;
    cursor: pointer;
}

.cv-pp-thumb.is-active {
    border-color: var(--pp-black);
}

.cv-pp-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cv-pp-main {
    background: var(--pp-off-white);
    overflow: hidden;
    position: relative;
}

.cv-pp-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity .18s ease;
}

/* Buy box */

.cv-pp-buybox {
    padding: 36px 44px 60px;
    display: flex;
    flex-direction: column;
}

.cv-pp-tag {
    font-family: var(--pp-font-body);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--pp-text-muted);
    margin-bottom: 14px;
}

.cv-pp-name {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.12;
    color: var(--pp-black);
    margin: 0 0 14px;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

.cv-pp-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.cv-pp-rating__stars {
    font-size: 13px;
    color: var(--pp-black);
    letter-spacing: 2px;
}

.cv-pp-rating__text {
    font-size: 12px;
    color: var(--pp-text-muted);
    font-family: var(--pp-font-body);
}

.cv-pp-sub {
    font-family: var(--pp-font-body);
    font-size: 14px;
    color: var(--pp-text-mid);
    line-height: 1.7;
    margin-bottom: 22px;
    max-width: 340px;
}

.cv-pp-sub p {
    margin: 0 0 8px;
}

.cv-pp-sub p:last-child {
    margin-bottom: 0;
}

.cv-pp-hr {
    height: 1px;
    background: var(--pp-border);
    margin: 20px 0;
}

.cv-pp-price-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 6px;
}

.cv-pp-price {
    font-family: var(--pp-font-head);
    font-size: 30px;
    font-weight: 700;
    color: var(--pp-black);
    letter-spacing: -0.02em;
}

.cv-pp-price .woocommerce-Price-currencySymbol {
    font-size: 17px;
    font-weight: 700;
}

.cv-pp-price del {
    color: var(--pp-text-dim);
    font-size: 18px;
    font-weight: 500;
    margin-right: 6px;
}

.cv-pp-price ins {
    text-decoration: none;
}

.cv-pp-price__currency {
    font-size: 13px;
    color: var(--pp-text-muted);
    font-family: var(--pp-font-body);
    font-weight: 500;
}

.cv-pp-stock {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 500;
    color: var(--pp-text-mid);
    margin-bottom: 24px;
}

.cv-pp-stock__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22a066;
    animation: cv-pp-blink 2.2s ease-in-out infinite;
    flex-shrink: 0;
}

.cv-pp-stock--out .cv-pp-stock__dot {
    background: #c44;
    animation: none;
}

/* Pre-order stock label — same minimal inline treatment as in-stock, just
   different copy. The green dot still pulses so it reads as "active &
   available", not "out of stock". */
.cv-pp-stock--preorder strong {
    color: var(--pp-text, #111110);
    font-weight: 600;
}

@keyframes cv-pp-blink {
    0%, 100% { opacity: 1; }
    50%      { opacity: .25; }
}

.cv-pp-cart-form {
    display: contents;
}

.cv-pp-qty-label {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--pp-text-muted);
    margin-bottom: 9px;
    font-family: var(--pp-font-body);
}

.cv-pp-qty-chips {
    display: flex;
    gap: 8px;
    margin-bottom: 22px;
}

.cv-pp-chip {
    width: 44px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--pp-border-mid);
    background: var(--pp-white);
    font-family: var(--pp-font-body);
    font-size: 14px;
    font-weight: 500;
    color: var(--pp-text-mid);
    cursor: pointer;
    transition: all .15s ease;
    padding: 0;
}

.cv-pp-chip:hover {
    border-color: var(--pp-text-mid);
    color: var(--pp-text);
}

.cv-pp-chip.is-active {
    border-color: var(--pp-black);
    background: var(--pp-black);
    color: var(--pp-white);
}

/* ── Primary CTA (Add to Cart) ─────────────────────────────────────────────
   Solid black rectangle. No visible border (it's the same color as the
   background, so it just sits as a clean filled shape). Substantial height
   so the button has real visual weight. */
.cv-pp-btn-primary {
    position: relative;
    width: 100%;
    height: 64px;
    background: var(--pp-black);
    color: var(--pp-white);
    font-family: var(--pp-font-body);
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.005em;
    text-transform: none;
    border: 0;
    border-radius: 0;
    cursor: pointer;
    margin: 6px 0 8px;
    padding: 0 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    transition: background-color .18s ease, color .18s ease;
}

.cv-pp-btn-primary:hover {
    background: #2a2a2a;
}

.cv-pp-btn-primary:active {
    background: #000;
}

.cv-pp-btn-primary:disabled {
    opacity: .55;
    cursor: not-allowed;
}

/* ── Pre-order sub-note ────────────────────────────────────────────────────
   Thin, soft outline. Dark text but a very light border — reads as a
   secondary, quiet companion to the Add-to-cart, not a competing CTA. */
.cv-pp-btn-subnote {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 64px;
    margin: 0 0 18px;
    padding: 0 20px;
    background: transparent;
    color: var(--pp-text, #111110);
    font-family: var(--pp-font-body, inherit);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.005em;
    border: 1px solid var(--pp-border, #e4e2dc);
    border-radius: 0;
    box-sizing: border-box;
    pointer-events: none;
}

.cv-pp-btn-primary:disabled {
    opacity: .5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Shipping/pre-order tagline under the primary CTA */
.cv-pp-btn-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0 0 14px;
    color: var(--pp-text-muted);
    font-family: var(--pp-font-body);
    font-size: 12px;
    line-height: 1.4;
}

.cv-pp-btn-meta svg {
    width: 13px;
    height: 13px;
    stroke: var(--pp-text-muted);
    flex-shrink: 0;
}

.cv-pp-btn-meta strong {
    color: var(--pp-text);
    font-weight: 600;
}

/* "Gift this product" CSS (was for the YITH plugin) has been removed —
   the plugin is gone, replaced by PW Gift Cards which uses an entirely
   different markup pattern. The gift-card product is its own purchase
   flow now; no inline "buy as a gift" button on regular product pages. */

.cv-pp-trust {
    list-style: none;
    margin: 0 0 18px;
    padding: 18px 0;
    border-top: 1px solid var(--pp-border);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 16px;
}

.cv-pp-trust li {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    color: var(--pp-text-mid);
    font-family: var(--pp-font-body);
    line-height: 1.3;
}

.cv-pp-trust svg {
    width: 13px;
    height: 13px;
    stroke: var(--pp-text-muted);
    flex-shrink: 0;
}

.cv-pp-specs-inline {
    display: flex;
    flex-direction: column;
}

.cv-pp-specs-inline > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 11px 0;
    border-bottom: 1px solid var(--pp-border);
    font-size: 13px;
}

.cv-pp-specs-inline > div:first-child {
    border-top: 1px solid var(--pp-border);
}

.cv-pp-specs-inline dt {
    color: var(--pp-text-muted);
    font-family: var(--pp-font-body);
    font-weight: 400;
}

.cv-pp-specs-inline dd {
    color: var(--pp-text);
    font-weight: 500;
    font-family: var(--pp-font-body);
    text-align: right;
}

/* ─────────────────────────────────────────────── scroll features */

.cv-pp-scroll {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid var(--pp-border);
}

.cv-pp-panel {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 80px 80px clamp(20px, 4vw, 48px);
    border-bottom: 1px solid var(--pp-border);
    opacity: 0.3;
    transition: opacity .4s ease;
}

.cv-pp-panel:last-child {
    border-bottom: none;
}

/* The per-panel image is for mobile only. On desktop the sticky image
   column (.cv-pp-scroll__img) handles the visual story so we hide the
   inline copy. mobile.css un-hides it below 768px. */
.cv-pp-panel__img {
    display: none;
}

.cv-pp-panel.is-active {
    opacity: 1;
}

.cv-pp-panel__num {
    font-family: var(--pp-font-head);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--pp-text-dim);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.cv-pp-panel__title {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.1;
    color: var(--pp-black);
    margin: 0 0 20px;
    letter-spacing: -0.02em;
}

.cv-pp-panel__desc {
    font-family: var(--pp-font-body);
    font-size: 15px;
    color: var(--pp-text-mid);
    line-height: 1.8;
    max-width: 380px;
}

.cv-pp-panel__desc strong {
    color: var(--pp-text);
    font-weight: 600;
}

.cv-pp-scroll__img {
    position: sticky;
    top: var(--cv-header-h, 76px);
    height: calc(100vh - var(--cv-header-h, 76px));
    overflow: hidden;
    border-left: 1px solid var(--pp-border);
    background: var(--pp-off-white);
}

.cv-pp-scroll-image {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .45s ease;
}

.cv-pp-scroll-image.is-active {
    opacity: 1;
}

.cv-pp-scroll-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ─────────────────────────────────────────────── what's included */

.cv-pp-included {
    background: var(--pp-off-white);
    border-top: 1px solid var(--pp-border);
    border-bottom: 1px solid var(--pp-border);
    padding: 80px clamp(20px, 4vw, 48px);
}

/* Shared inner-content centering — all the section's children sit in a
   centered 1100px column on wide screens, full-width on narrow. */
.cv-pp-included > *,
.cv-pp-how > *,
.cv-pp-specs > *,
.cv-pp-reviews > *,
.cv-pp-faq > *,
.cv-pp-video-section > * {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

/* The global `.cv-pp h2 { margin: 0 }` reset (0,1,1) was beating the shared
   centering above on the section TITLES (which are h2s), so titles hung out
   to the left edge while their eyebrows + content sat in the centered 1100px
   column — a staggered, broken-looking header. Re-centre the titles so the
   eyebrow, title, and content all share the same left edge. */
.cv-pp .cv-pp-section__title,
.cv-pp .cv-pp-how__title,
.cv-pp-faq > h2 {
    margin-left: auto;
    margin-right: auto;
}

.cv-pp-section__eyebrow {
    font-family: var(--pp-font-body);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--pp-text-muted);
    margin-bottom: 10px;
}

.cv-pp-section__title {
    font-size: 36px;
    font-weight: 700;
    color: var(--pp-black);
    margin: 0 auto 48px;
    line-height: 1.15;
    letter-spacing: -0.02em;
    max-width: 1100px;
}

.cv-pp-included__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--pp-border);
    border: 1px solid var(--pp-border);
    max-width: 1100px;
}

.cv-pp-included__card {
    background: var(--pp-white);
    padding: 32px 28px;
}

.cv-pp-included__num {
    font-family: var(--pp-font-head);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--pp-text-dim);
    text-transform: uppercase;
    margin-bottom: 20px;
}

.cv-pp-included__card h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--pp-black);
    margin: 0 0 8px;
    letter-spacing: -0.01em;
}

.cv-pp-included__card p {
    font-size: 13px;
    color: var(--pp-text-muted);
    line-height: 1.75;
    font-family: var(--pp-font-body);
}

/* ─────────────────────────────────────────────── how it works (dark) */

.cv-pp-how {
    background: var(--pp-black);
    color: var(--pp-white);
    padding: 100px clamp(20px, 4vw, 48px);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.cv-pp-how__eyebrow {
    font-family: var(--pp-font-body);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .35);
    margin-bottom: 10px;
}

/* Heading needs .cv-pp ancestor selector to outrank the global
   `.cv-pp h2 { color: var(--pp-text) }` rule (same specificity otherwise
   would render this title as dark text on a dark background). */
.cv-pp .cv-pp-how__title,
.cv-pp-how__title {
    font-size: 46px;
    font-weight: 700;
    line-height: 1.08;
    margin: 0 auto 64px;
    letter-spacing: -0.02em;
    max-width: 1100px;
    color: var(--pp-white) !important;
}

.cv-pp-how__steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-top: 1px solid rgba(255, 255, 255, .1);
    max-width: 1100px;
}

.cv-pp-how__step {
    padding: 40px 44px 40px 0;
    border-right: 1px solid rgba(255, 255, 255, .1);
}

.cv-pp-how__step:nth-child(2) {
    padding: 40px 44px;
}

.cv-pp-how__step:last-child {
    border-right: none;
    padding: 40px 0 40px 44px;
}

.cv-pp-how__num {
    font-family: var(--pp-font-head);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, .2);
    text-transform: uppercase;
    margin-bottom: 16px;
}

.cv-pp-how__step h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--pp-white);
    margin: 0 0 10px;
    letter-spacing: -0.01em;
}

.cv-pp-how__step p {
    font-size: 14px;
    color: rgba(255, 255, 255, .5);
    line-height: 1.8;
    font-family: var(--pp-font-body);
}

/* ─────────────────────────────────────────────── specs */

.cv-pp-specs {
    padding: 80px clamp(20px, 4vw, 48px);
    border-bottom: 1px solid var(--pp-border);
}

.cv-pp-specs__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 100px;
    max-width: 1100px;
}

.cv-pp-specs__col h3 {
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 28px;
    color: var(--pp-black);
    letter-spacing: -0.01em;
}

.cv-pp-specs__col dl {
    display: flex;
    flex-direction: column;
}

.cv-pp-specs__col dl > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 13px 0;
    border-top: 1px solid var(--pp-border);
    font-size: 14px;
}

.cv-pp-specs__col dl > div:last-child {
    border-bottom: 1px solid var(--pp-border);
}

.cv-pp-specs__col dt {
    color: var(--pp-text-muted);
    font-family: var(--pp-font-body);
    font-weight: 400;
}

.cv-pp-specs__col dd {
    color: var(--pp-text);
    font-weight: 500;
    font-family: var(--pp-font-body);
    text-align: right;
}

/* ─────────────────────────────────────────────── reviews */

.cv-pp-reviews {
    background: var(--pp-off-white);
    padding: 80px clamp(20px, 4vw, 48px);
    border-bottom: 1px solid var(--pp-border);
}

.cv-pp-reviews__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 48px;
    max-width: 1100px;
    gap: 20px;
    flex-wrap: wrap;
}

.cv-pp-reviews__top h2 {
    font-size: 34px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--pp-black);
    margin: 0;
}

.cv-pp-reviews__avg {
    text-align: right;
}

.cv-pp-reviews__avg-num {
    font-family: var(--pp-font-head);
    font-size: 48px;
    font-weight: 700;
    color: var(--pp-black);
    line-height: 1;
    letter-spacing: -0.03em;
}

.cv-pp-reviews__avg-stars {
    font-size: 13px;
    color: var(--pp-black);
    margin: 3px 0;
}

.cv-pp-reviews__avg-sub {
    font-size: 12px;
    color: var(--pp-text-muted);
    font-family: var(--pp-font-body);
}

.cv-pp-reviews__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 1100px;
}

.cv-pp-review {
    background: var(--pp-white);
    padding: 28px;
    border: 1px solid var(--pp-border);
}

.cv-pp-review__stars {
    font-size: 12px;
    color: var(--pp-black);
    letter-spacing: 2px;
    margin-bottom: 14px;
}

.cv-pp-review__body {
    font-size: 14px;
    color: var(--pp-text-mid);
    line-height: 1.8;
    margin: 0 0 20px;
    font-style: italic;
    font-family: var(--pp-font-body);
}

.cv-pp-review__author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cv-pp-review__avatar {
    width: 32px;
    height: 32px;
    background: var(--pp-light);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--pp-font-head);
    font-weight: 700;
    font-size: 12px;
    color: var(--pp-black);
}

.cv-pp-review__name {
    font-size: 13px;
    font-weight: 600;
    color: var(--pp-black);
    font-family: var(--pp-font-body);
}

.cv-pp-review__meta {
    font-size: 11px;
    color: var(--pp-text-dim);
    font-family: var(--pp-font-body);
}

/* ─────────────────────────────────────────────── FAQ */

.cv-pp-faq {
    padding: 80px clamp(20px, 4vw, 48px);
    border-bottom: 1px solid var(--pp-border);
}

.cv-pp-faq h2 {
    font-size: 34px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 auto 40px;
    max-width: 1100px;
}

.cv-pp-faq__list {
    max-width: 1100px;
}

.cv-pp-faq__item {
    border-top: 1px solid var(--pp-border);
}

.cv-pp-faq__item:last-child {
    border-bottom: 1px solid var(--pp-border);
}

.cv-pp-faq__item > summary {
    list-style: none;
    padding: 20px 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    font-weight: 500;
    color: var(--pp-black);
    user-select: none;
    font-family: var(--pp-font-body);
}

.cv-pp-faq__item > summary::-webkit-details-marker {
    display: none;
}

.cv-pp-faq__tog {
    font-family: var(--pp-font-head);
    font-size: 22px;
    color: var(--pp-text-dim);
    transition: transform .22s ease;
    line-height: 1;
    flex-shrink: 0;
    margin-left: 16px;
}

.cv-pp-faq__item[open] .cv-pp-faq__tog {
    transform: rotate(45deg);
}

.cv-pp-faq__a {
    font-size: 14px;
    color: var(--pp-text-mid);
    line-height: 1.8;
    font-family: var(--pp-font-body);
    padding: 0 0 20px;
}

/* ─────────────────────────────────────────────── CTA strip */

.cv-pp-cta {
    background: var(--pp-black);
    padding: 80px clamp(20px, 4vw, 48px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.cv-pp-cta__left h2 {
    font-size: 44px;
    font-weight: 700;
    color: var(--pp-white);
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin: 0 0 8px;
}

.cv-pp-cta__left p {
    font-size: 14px;
    color: rgba(255, 255, 255, .45);
    font-family: var(--pp-font-body);
    margin: 0;
}

.cv-pp-cta__right {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-shrink: 0;
}

.cv-pp-cta__price {
    font-family: var(--pp-font-head);
    font-size: 30px;
    font-weight: 700;
    color: var(--pp-white);
    letter-spacing: -0.02em;
}

.cv-pp-cta__price .woocommerce-Price-currencySymbol {
    font-size: 18px;
    font-weight: 700;
}

.cv-pp-cta__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--pp-white);
    color: var(--pp-black);
    font-family: var(--pp-font-head);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.03em;
    padding: 15px 40px;
    border: none;
    cursor: pointer;
    transition: opacity .15s ease;
    white-space: nowrap;
    text-decoration: none;
}

.cv-pp-cta__btn:hover {
    opacity: .88;
    color: var(--pp-black);
}

/* ─────────────────────────────────────────────── sticky bottom bar */

.cv-pp-sticky {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99;
    background: var(--pp-white);
    border-top: 1px solid var(--pp-border);
    transform: translateY(100%);
    transition: transform .3s ease;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, .07);
}

.cv-pp-sticky.is-visible {
    transform: translateY(0);
}

.cv-pp-sticky__inner {
    padding: 13px clamp(20px, 4vw, 48px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.cv-pp-sticky__name {
    font-family: var(--pp-font-head);
    font-weight: 600;
    font-size: 15px;
    color: var(--pp-black);
}

.cv-pp-sticky__price {
    font-size: 14px;
    color: var(--pp-text-muted);
    font-family: var(--pp-font-body);
}

/* Sticky bar Add-to-cart link. Needs the .cv-pp ancestor on the selector
   so it outranks `.cv-pp a { color: inherit }` which would otherwise pull
   the text color from `.cv-pp` (dark) and render as dark-on-dark. */
.cv-pp .cv-pp-sticky__btn,
.cv-pp-sticky__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--pp-black);
    color: #ffffff !important;
    font-family: var(--pp-font-head);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 11px 30px;
    border: none;
    cursor: pointer;
    transition: opacity .15s ease;
    text-decoration: none !important;
    white-space: nowrap;
    flex-shrink: 0;
}

.cv-pp .cv-pp-sticky__btn:hover,
.cv-pp-sticky__btn:hover {
    opacity: .82;
    color: #ffffff !important;
}

/* ─────────────────────────────────────────────── tablet */

@media (max-width: 1100px) {
    .cv-pp-split {
        grid-template-columns: 1fr 420px;
    }

    .cv-pp-buybox {
        padding: 32px 32px 50px;
    }

    .cv-pp-name {
        font-size: 30px;
    }

    .cv-pp-panel {
        padding: 60px 40px 60px clamp(20px, 4vw, 32px);
    }

    .cv-pp-panel__title {
        font-size: 36px;
    }

    .cv-pp-included__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cv-pp-reviews__grid {
        grid-template-columns: 1fr;
    }
}

/* ─────────────────────────────────────────────── mobile */

@media (max-width: 768px) {
    .cv-pp-split {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .cv-pp-gallery-wrap {
        border-right: 0;
        border-bottom: 1px solid var(--pp-border);
    }

    .cv-pp-gallery-sticky {
        position: static;
        grid-template-columns: 1fr;
        height: auto;
    }

    .cv-pp-thumbs {
        flex-direction: row;
        order: 2;
        border-right: 0;
        border-top: 1px solid var(--pp-border);
        padding: 12px;
        gap: 8px;
        overflow-x: auto;
        overflow-y: hidden;
    }

    .cv-pp-main {
        aspect-ratio: 1 / 1;
        order: 1;
        height: auto;
    }

    .cv-pp-buybox {
        padding: 28px 20px 48px;
    }

    .cv-pp-scroll {
        grid-template-columns: 1fr;
    }

    .cv-pp-scroll__img {
        position: static;
        height: 60vh;
        border-left: 0;
        border-top: 1px solid var(--pp-border);
        order: -1;
    }

    .cv-pp-panel {
        height: auto;
        padding: 48px 20px;
        opacity: 1;
    }

    .cv-pp-panel__title {
        font-size: 30px;
    }

    .cv-pp-included {
        padding: 56px 20px;
    }

    .cv-pp-section__title {
        font-size: 28px;
        margin-bottom: 32px;
    }

    .cv-pp-included__grid {
        grid-template-columns: 1fr;
    }

    .cv-pp-how {
        padding: 64px 20px;
    }

    .cv-pp-how__title {
        font-size: 32px;
        margin-bottom: 40px;
    }

    .cv-pp-how__steps {
        grid-template-columns: 1fr;
    }

    .cv-pp-how__step,
    .cv-pp-how__step:nth-child(2),
    .cv-pp-how__step:last-child {
        padding: 28px 0;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, .1);
    }

    .cv-pp-how__step:last-child {
        border-bottom: 0;
    }

    .cv-pp-specs {
        padding: 56px 20px;
    }

    .cv-pp-specs__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .cv-pp-reviews {
        padding: 56px 20px;
    }

    .cv-pp-reviews__top {
        align-items: flex-start;
        flex-direction: column;
    }

    .cv-pp-reviews__avg {
        text-align: left;
    }

    .cv-pp-faq {
        padding: 56px 20px;
    }

    .cv-pp-faq h2 {
        font-size: 28px;
        margin-bottom: 28px;
    }

    .cv-pp-cta {
        padding: 56px 20px;
        flex-direction: column;
        align-items: flex-start;
    }

    .cv-pp-cta__left h2 {
        font-size: 34px;
    }

    .cv-pp-cta__right {
        width: 100%;
        justify-content: space-between;
    }

    .cv-pp-sticky__name {
        font-size: 13px;
    }

    .cv-pp-sticky__price {
        display: none;
    }

    .cv-pp-sticky__btn {
        padding: 10px 22px;
    }

    body.cv-pp-active {
        padding-bottom: 70px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Mobile gallery swipe slider + buy-box overflow hardening
   ═══════════════════════════════════════════════════════════════════════════ */

/* The swipe carousel is mobile-only; desktop keeps the thumbs + main image. */
.cv-pp-slider {
    display: none;
}

@media (max-width: 768px) {
    /* ── Overflow hardening ───────────────────────────────────────────────
       A single-column "1fr" grid track keeps min-width:auto, so a child with a
       wide intrinsic size (a long spec value, a button label, etc. rendered
       with the real web font) can stretch the buy box past the viewport — and
       the page's overflow-x:clip then hides the right edge. minmax(0,1fr) plus
       min-width:0 lets the column shrink so content wraps instead of clipping. */
    .cv-pp-split {
        grid-template-columns: minmax(0, 1fr);
    }

    .cv-pp-split > *,
    .cv-pp-gallery-wrap,
    .cv-pp-gallery-sticky,
    .cv-pp-main,
    .cv-pp-buybox {
        min-width: 0;
        max-width: 100%;
    }

    /* Spec rows: let the value shrink / wrap rather than force the row wider. */
    .cv-pp-specs-inline > div {
        gap: 14px;
    }

    .cv-pp-specs-inline dt {
        flex: 0 1 auto;
        min-width: 0;
    }

    .cv-pp-specs-inline dd {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    /* ── Swipe carousel ───────────────────────────────────────────────────
       When a slider is present it replaces the single image + thumb strip. */
    .cv-pp-gallery-sticky--has-slider .cv-pp-main,
    .cv-pp-gallery-sticky--has-slider .cv-pp-thumbs {
        display: none;
    }

    .cv-pp-slider {
        display: block;
        position: relative;
        order: 1;
        width: 100%;
        min-width: 0;
    }

    .cv-pp-slider__track {
        display: flex;
        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .cv-pp-slider__track::-webkit-scrollbar {
        display: none;
    }

    .cv-pp-slide {
        flex: 0 0 100%;
        width: 100%;
        aspect-ratio: 1 / 1;
        scroll-snap-align: center;
        scroll-snap-stop: always;
    }

    .cv-pp-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .cv-pp-slider__dots {
        display: flex;
        justify-content: center;
        gap: 7px;
        padding: 14px 0 2px;
    }

    .cv-pp-slider__dot {
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: rgba(0, 0, 0, 0.22);
        transition: background .2s ease, transform .2s ease;
    }

    .cv-pp-slider__dot.is-active {
        background: #0b0b0b;
        transform: scale(1.15);
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   "See it in action" video section (R2-hosted, click-to-play)
   ═══════════════════════════════════════════════════════════════════════════ */
.cv-pp-video-section {
    padding: 80px clamp(20px, 4vw, 48px);
    border-bottom: 1px solid var(--pp-border);
}

.cv-pp-video {
    position: relative;
    max-width: 1100px;
    margin: 28px auto 0;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.5);
}

.cv-pp-video__el {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Custom play overlay — hidden once the video starts. */
.cv-pp-video__play {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 84px;
    height: 84px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #111110;
    cursor: pointer;
    box-shadow: 0 8px 30px -6px rgba(0, 0, 0, 0.45);
    transition: transform .2s ease, background .2s ease, opacity .2s ease;
}

.cv-pp-video__play svg {
    width: 34px;
    height: 34px;
    margin-left: 4px; /* optically centre the triangle */
}

.cv-pp-video__play:hover {
    transform: scale(1.06);
    background: #ffffff;
}

.cv-pp-video.is-playing .cv-pp-video__play {
    opacity: 0;
    pointer-events: none;
}

@media (max-width: 768px) {
    .cv-pp-video-section {
        padding: 56px clamp(16px, 5vw, 28px);
    }

    .cv-pp-video {
        margin-top: 20px;
        border-radius: 12px;
    }

    .cv-pp-video__play {
        width: 64px;
        height: 64px;
    }

    .cv-pp-video__play svg {
        width: 26px;
        height: 26px;
    }
}
