/* ═══════════════════════════════════════════════════════════════
   ViewMath Learning Path – v2 Redesign
   A bold, timeline-based learning journey for math ebook products.
   ═══════════════════════════════════════════════════════════════ */

/* ── Tokens with fallbacks ─────────────────────────────────────── */
.vm-lp {
    --_lp-primary:    var(--vm-primary, #2563eb);
    --_lp-primary-dk: var(--vm-primary-dk, #1d4ed8);
    --_lp-primary-lt: var(--vm-primary-lt, #dbeafe);
    --_lp-accent:     var(--vm-accent, #f59e0b);
    --_lp-text:       var(--vm-text, #1e293b);
    --_lp-text-muted: var(--vm-text-muted, #64748b);
    --_lp-bg:         var(--vm-bg, #fff);
    --_lp-bg-alt:     var(--vm-bg-alt, #f8fafc);
    --_lp-border:     var(--vm-border, #e2e8f0);
    --_lp-radius:     var(--vm-radius, 10px);
    --_lp-radius-sm:  var(--vm-radius-sm, 6px);
    --_lp-radius-lg:  var(--vm-radius-lg, 16px);
    --_lp-shadow:     var(--vm-shadow-sm, 0 1px 3px rgba(0,0,0,.06));
    --_lp-shadow-md:  var(--vm-shadow-md, 0 10px 15px -3px rgba(0,0,0,.08));
    --_lp-shadow-lg:  var(--vm-shadow-lg, 0 20px 25px -5px rgba(0,0,0,.08));
    --_lp-dur:        var(--vm-dur, 200ms);
    --_lp-ease:       var(--vm-ease, cubic-bezier(.4,0,.2,1));
    --_lp-font:       var(--vm-font, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);

    /* Phase palette */
    --_lp-blue:       #2563eb;
    --_lp-blue-soft:  #eff6ff;
    --_lp-blue-glow:  rgba(37, 99, 235, 0.15);
    --_lp-green:      #059669;
    --_lp-green-soft: #ecfdf5;
    --_lp-green-glow: rgba(5, 150, 105, 0.15);
    --_lp-orange:     #d97706;
    --_lp-orange-soft:#fffbeb;
    --_lp-orange-glow:rgba(217, 119, 6, 0.15);

    /* Timeline */
    --_tl-circle:     48px;
    --_tl-line-w:     3px;
    --_tl-gap:        28px;
}

/* ── Section wrapper ───────────────────────────────────────────── */
.vm-lp {
    width: 100%;
    margin: var(--vm-sp-6, 3rem) 0 var(--vm-sp-5, 2rem);
    padding: var(--vm-sp-6, 3rem) var(--vm-sp-5, 2rem);
    background: linear-gradient(
        180deg,
        var(--_lp-bg-alt) 0%,
        var(--_lp-bg) 100%
    );
    border-radius: var(--_lp-radius-lg);
    border: 1px solid var(--_lp-border);
    font-family: var(--_lp-font);
}

/* ── Section header ────────────────────────────────────────────── */
.vm-lp__header {
    text-align: center;
    margin-bottom: var(--vm-sp-6, 3rem);
    max-width: 680px;
    margin-inline: auto;
}

.vm-lp__eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--_lp-primary);
    background: var(--_lp-primary-lt);
    padding: 0.3rem 1rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}

.vm-lp__title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--_lp-text);
    margin: 0 0 0.75rem;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.vm-lp__subtitle {
    font-size: 1rem;
    color: var(--_lp-text-muted);
    margin: 0;
    line-height: 1.6;
}

/* ── Timeline layout ───────────────────────────────────────────── */
.vm-lp__timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
}

/* ── Phase row = step column + content ─────────────────────────── */
.vm-lp__phase {
    display: grid;
    grid-template-columns: var(--_tl-circle) 1fr;
    gap: 0 var(--_tl-gap);
    position: relative;
}

/* ── Step column (circle + line) ───────────────────────────────── */
.vm-lp__step-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.vm-lp__step-circle {
    width: var(--_tl-circle);
    height: var(--_tl-circle);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transition: transform var(--_lp-dur) var(--_lp-ease);
}

/* Phase-colored circles */
.vm-lp__phase--blue .vm-lp__step-circle {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}
.vm-lp__phase--green .vm-lp__step-circle {
    background: linear-gradient(135deg, #10b981, #047857);
}
.vm-lp__phase--orange .vm-lp__step-circle {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

/* Active phase: pulsing ring */
.vm-lp__phase--active .vm-lp__step-circle {
    transform: scale(1.1);
}
.vm-lp__phase--active .vm-lp__step-circle::after {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 2.5px solid currentColor;
    opacity: 0.4;
    animation: vm-lp-pulse 2s ease-in-out infinite;
}
.vm-lp__phase--blue.vm-lp__phase--active .vm-lp__step-circle::after { border-color: var(--_lp-blue); }
.vm-lp__phase--green.vm-lp__phase--active .vm-lp__step-circle::after { border-color: var(--_lp-green); }
.vm-lp__phase--orange.vm-lp__phase--active .vm-lp__step-circle::after { border-color: var(--_lp-orange); }

@keyframes vm-lp-pulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50%      { opacity: 0.1; transform: scale(1.3); }
}

.vm-lp__step-num {
    position: relative;
    z-index: 1;
}

/* Connecting line */
.vm-lp__step-line {
    width: var(--_tl-line-w);
    flex: 1;
    min-height: 32px;
    border-radius: 2px;
}
.vm-lp__phase--blue .vm-lp__step-line  { background: linear-gradient(to bottom, #3b82f6, #10b981); }
.vm-lp__phase--green .vm-lp__step-line { background: linear-gradient(to bottom, #10b981, #f59e0b); }

/* ── Phase content area ────────────────────────────────────────── */
.vm-lp__phase-content {
    padding-bottom: 2rem;
}

.vm-lp__phase:last-child .vm-lp__phase-content {
    padding-bottom: 0;
}

/* ── Phase header ──────────────────────────────────────────────── */
.vm-lp__phase-head {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    margin-bottom: 1.25rem;
    padding: 1rem 1.25rem;
    border-radius: var(--_lp-radius);
    transition: background var(--_lp-dur) var(--_lp-ease);
}

/* Phase head background tints */
.vm-lp__phase--blue .vm-lp__phase-head  { background: var(--_lp-blue-soft); }
.vm-lp__phase--green .vm-lp__phase-head { background: var(--_lp-green-soft); }
.vm-lp__phase--orange .vm-lp__phase-head{ background: var(--_lp-orange-soft); }

.vm-lp__phase-icon {
    font-size: 2rem;
    line-height: 1;
    flex-shrink: 0;
}

.vm-lp__phase-info {
    flex: 1;
    min-width: 0;
}

.vm-lp__phase-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--_lp-text);
    margin: 0;
    line-height: 1.3;
}

.vm-lp__phase-desc {
    font-size: 0.85rem;
    color: var(--_lp-text-muted);
    margin: 0.15rem 0 0;
    line-height: 1.4;
}

.vm-lp__phase-count {
    flex-shrink: 0;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    white-space: nowrap;
}
.vm-lp__phase--blue .vm-lp__phase-count {
    color: var(--_lp-blue);
    background: rgba(37, 99, 235, 0.1);
}
.vm-lp__phase--green .vm-lp__phase-count {
    color: var(--_lp-green);
    background: rgba(5, 150, 105, 0.1);
}
.vm-lp__phase--orange .vm-lp__phase-count {
    color: var(--_lp-orange);
    background: rgba(217, 119, 6, 0.1);
}

/* ── Card grid ─────────────────────────────────────────────────── */
.vm-lp__cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

/* ── Card ──────────────────────────────────────────────────────── */
.vm-lp__card {
    display: flex;
    flex-direction: column;
    background: var(--_lp-bg);
    border: 1px solid var(--_lp-border);
    border-radius: var(--_lp-radius);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform var(--_lp-dur) var(--_lp-ease),
                box-shadow var(--_lp-dur) var(--_lp-ease),
                border-color var(--_lp-dur) var(--_lp-ease);
}

.vm-lp__card:hover {
    transform: translateY(-4px);
    box-shadow: var(--_lp-shadow-lg);
    text-decoration: none;
    color: inherit;
}

.vm-lp__phase--blue .vm-lp__card:hover  { border-color: var(--_lp-blue); }
.vm-lp__phase--green .vm-lp__card:hover { border-color: var(--_lp-green); }
.vm-lp__phase--orange .vm-lp__card:hover{ border-color: var(--_lp-orange); }

/* Card inner link — fills the clickable area above the button */
.vm-lp__card-link {
    display: flex;
    flex-direction: column;
    flex: 1;
    text-decoration: none;
    color: inherit;
}
.vm-lp__card-link:hover {
    text-decoration: none;
    color: inherit;
}

/* ── Card image ────────────────────────────────────────────────── */
.vm-lp__card-img {
    position: relative;
    aspect-ratio: 200 / 260;
    overflow: hidden;
    background: var(--_lp-bg-alt);
}

.vm-lp__card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s var(--_lp-ease);
}

a.vm-lp__card-link:hover .vm-lp__card-img img {
    transform: scale(1.04);
}

/* ── Current card styling ──────────────────────────────────────── */
.vm-lp__card--current {
    pointer-events: none;
    position: relative;
}

.vm-lp__phase--blue .vm-lp__card--current {
    border: 2px solid var(--_lp-blue);
    box-shadow: 0 0 0 4px var(--_lp-blue-glow), var(--_lp-shadow);
}
.vm-lp__phase--green .vm-lp__card--current {
    border: 2px solid var(--_lp-green);
    box-shadow: 0 0 0 4px var(--_lp-green-glow), var(--_lp-shadow);
}
.vm-lp__phase--orange .vm-lp__card--current {
    border: 2px solid var(--_lp-orange);
    box-shadow: 0 0 0 4px var(--_lp-orange-glow), var(--_lp-shadow);
}

/* "You're here" badge */
.vm-lp__here-badge {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    color: #fff;
    white-space: nowrap;
    line-height: 1.3;
    box-shadow: 0 2px 8px rgba(0,0,0,.18);
}

.vm-lp__here-badge svg {
    width: 8px;
    height: 8px;
    animation: vm-lp-dot 1.5s ease-in-out infinite;
}

@keyframes vm-lp-dot {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.3; }
}

.vm-lp__phase--blue .vm-lp__here-badge  { background: var(--_lp-blue); }
.vm-lp__phase--green .vm-lp__here-badge { background: var(--_lp-green); }
.vm-lp__phase--orange .vm-lp__here-badge{ background: var(--_lp-orange); }

/* ── Card body ─────────────────────────────────────────────────── */
.vm-lp__card-body {
    padding: 0.65rem 0.75rem 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

/* Type badge */
.vm-lp__type {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    line-height: 1.5;
    align-self: flex-start;
}
.vm-lp__type--blue  { background: var(--_lp-blue-soft);  color: var(--_lp-blue); }
.vm-lp__type--green { background: var(--_lp-green-soft); color: var(--_lp-green); }
.vm-lp__type--orange{ background: var(--_lp-orange-soft); color: var(--_lp-orange); }

/* Price */
.vm-lp__price {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--_lp-text);
}
.vm-lp__price del {
    color: var(--_lp-text-muted);
    font-weight: 400;
    opacity: 0.6;
}
.vm-lp__price ins {
    text-decoration: none;
}

/* Card title */
.vm-lp__card-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--_lp-text);
    margin: 0;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Card actions (download button) */
.vm-lp__card-actions {
    padding: 0 0.75rem 0.75rem;
    margin-top: auto;
}

.vm-lp__card-actions form {
    margin: 0;
}

.vm-lp__download-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35em;
    padding: 0.55rem 0.75rem;
    font-size: 0.82rem;
    font-weight: 700;
    font-family: inherit;
    line-height: 1;
    color: #fff;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border: none;
    border-radius: var(--_lp-radius-sm);
    cursor: pointer;
    text-align: center;
    box-shadow: 0 2px 6px rgba(217, 119, 6, 0.35);
    transition: all var(--_lp-dur) var(--_lp-ease);
}

.vm-lp__download-btn::before {
    content: '⬇';
    font-size: 0.85em;
}

.vm-lp__download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(217, 119, 6, 0.45);
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #fff;
}

.vm-lp__download-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(217, 119, 6, 0.3);
}

/* ═══════════════════════════════════════════════════════════════
   "Download Free Preview" – beside Add-to-Cart on single product
   ═══════════════════════════════════════════════════════════════ */
.vm-preview-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 0.35em;
    margin-left: 0.75rem;
    padding: 0.75em 1.5em !important;
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1;
    color: #fff !important;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
    border: none !important;
    border-radius: var(--vm-radius, 10px) !important;
    text-decoration: none !important;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
    transition: all 200ms cubic-bezier(.4,0,.2,1);
    white-space: nowrap;
    vertical-align: middle;
}

.vm-preview-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.45);
    background: linear-gradient(135deg, #60a5fa 0%, #2563eb 100%) !important;
    color: #fff !important;
    text-decoration: none !important;
}

.vm-preview-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(37, 99, 235, 0.3);
}

@media (max-width: 480px) {
    .vm-preview-btn {
        margin-left: 0;
        margin-top: 0.5rem;
        font-size: 0.85rem;
        padding: 0.65em 1.2em !important;
    }
}

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .vm-lp {
        padding: var(--vm-sp-4, 1.5rem) var(--vm-sp-3, 1rem);
        margin: var(--vm-sp-5, 2rem) 0 var(--vm-sp-4, 1.5rem);
        --_tl-circle: 40px;
        --_tl-gap: 20px;
    }

    .vm-lp__header {
        margin-bottom: var(--vm-sp-5, 2rem);
    }

    .vm-lp__phase-icon {
        font-size: 1.5rem;
    }

    .vm-lp__phase-head {
        padding: 0.75rem 1rem;
    }

    .vm-lp__phase-desc {
        display: none;
    }

    .vm-lp__cards {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 0.75rem;
    }

    .vm-lp__card-title {
        font-size: 0.72rem;
        -webkit-line-clamp: 2;
    }

    .vm-lp__download-btn {
        font-size: 0.72rem;
        padding: 0.35rem 0.4rem;
    }
}

@media (max-width: 480px) {
    .vm-lp {
        --_tl-circle: 36px;
        --_tl-gap: 14px;
        padding: 1.25rem 0.75rem;
    }

    .vm-lp__step-circle {
        font-size: 0.9rem;
    }

    .vm-lp__eyebrow {
        font-size: 0.68rem;
    }

    .vm-lp__cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .vm-lp__phase-count {
        display: none;
    }
}

/* ═══════════════════════════════════════════════════════════════
   Bundle "Included" badge — on bundle product pages
   ═══════════════════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════════════════════
   Bundle Savings Banner — inside Description tab
   ═══════════════════════════════════════════════════════════════ */
.vm-bundle-banner {
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    color: #fff;
    padding: 24px 28px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 28px;
}

.vm-bundle-banner__amount {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 4px;
}

.vm-bundle-banner__detail {
    font-size: 16px;
    opacity: 0.9;
    line-height: 1.6;
}

.vm-bundle-banner__sale {
    font-weight: 700;
    font-size: 20px;
}

.vm-bundle-banner__regular {
    text-decoration: line-through;
}

@media (max-width: 480px) {
    .vm-bundle-banner {
        padding: 18px 16px;
    }
    .vm-bundle-banner__amount {
        font-size: 22px;
    }
    .vm-bundle-banner__detail {
        font-size: 14px;
    }
    .vm-bundle-banner__sale {
        font-size: 18px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   Bundle "Included" badge — on bundle product pages
   ═══════════════════════════════════════════════════════════════ */
.vm-lp__bundle-badge {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    white-space: nowrap;
    line-height: 1.3;
    box-shadow: 0 2px 8px rgba(109, 40, 217, 0.35);
}

/* "View Book" button on bundle included books cards */
.vm-lp__view-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35em;
    padding: 0.55rem 0.75rem;
    font-size: 0.82rem;
    font-weight: 700;
    font-family: inherit;
    line-height: 1;
    color: #fff;
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    border: none;
    border-radius: var(--_lp-radius-sm, 6px);
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(109, 40, 217, 0.35);
    transition: all var(--_lp-dur, 200ms) var(--_lp-ease, ease);
}

.vm-lp__view-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(109, 40, 217, 0.45);
    background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%);
    color: #fff;
    text-decoration: none;
}

/* Bundle savings callout */
.vm-bundle-savings {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 2rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    border: 1px solid #a7f3d0;
    border-radius: var(--_lp-radius, 10px);
    font-size: 0.95rem;
    color: var(--_lp-text, #1e293b);
    line-height: 1.5;
}

.vm-bundle-savings__icon {
    font-size: 1.75rem;
    flex-shrink: 0;
}

.vm-bundle-savings__text strong {
    color: #059669;
}

/* ═══════════════════════════════════════════════════════════════
   "Save with Bundles" section — shown on individual book pages
   and inside landing-page / learning-path sections
   ═══════════════════════════════════════════════════════════════ */

/* Standalone version (on individual product pages) */
.vm-bundles {
    width: 100%;
    margin: var(--vm-sp-6, 3rem) 0 var(--vm-sp-5, 2rem);
    padding: var(--vm-sp-6, 3rem) var(--vm-sp-5, 2rem);
    background: linear-gradient(
        180deg,
        #fefce8 0%,
        #fffbeb 40%,
        var(--_lp-bg, #fff) 100%
    );
    border-radius: var(--_lp-radius-lg, 16px);
    border: 1px solid #fde68a;
    font-family: var(--_lp-font, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
}

/* Inline version (inside learning-path / landing-page sections) */
.vm-bundles--inline {
    margin: 2.5rem 0 0;
    padding: 2rem 1.5rem;
    background: linear-gradient(180deg, #fefce8, #fffbeb);
    border: 1px solid #fde68a;
    border-radius: var(--_lp-radius, 10px);
}

.vm-bundles__header {
    text-align: center;
    margin-bottom: 2rem;
    max-width: 680px;
    margin-inline: auto;
}

.vm-bundles__eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #d97706;
    background: #fef3c7;
    padding: 0.3rem 1rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}

.vm-bundles__title {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 800;
    color: var(--_lp-text, #1e293b);
    margin: 0 0 0.5rem;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.vm-bundles__subtitle {
    font-size: 0.95rem;
    color: var(--_lp-text-muted, #64748b);
    margin: 0;
    line-height: 1.6;
}

/* Bundle card grid */
.vm-bundles__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.25rem;
}

/* Bundle card */
.vm-bundles__card {
    display: flex;
    flex-direction: column;
    background: var(--_lp-bg, #fff);
    border: 1px solid var(--_lp-border, #e2e8f0);
    border-radius: var(--_lp-radius, 10px);
    overflow: hidden;
    transition: transform var(--_lp-dur, 200ms) var(--_lp-ease, ease),
                box-shadow var(--_lp-dur, 200ms) var(--_lp-ease, ease),
                border-color var(--_lp-dur, 200ms) var(--_lp-ease, ease);
}

.vm-bundles__card:hover {
    transform: translateY(-4px);
    box-shadow: var(--_lp-shadow-lg, 0 20px 25px -5px rgba(0,0,0,.08));
    border-color: #f59e0b;
}

.vm-bundles__card-link {
    display: flex;
    flex-direction: column;
    flex: 1;
    text-decoration: none;
    color: inherit;
}
.vm-bundles__card-link:hover {
    text-decoration: none;
    color: inherit;
}

/* Bundle card image */
.vm-bundles__card-img {
    position: relative;
    aspect-ratio: 200 / 260;
    overflow: hidden;
    background: var(--_lp-bg-alt, #f8fafc);
}

.vm-bundles__card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s var(--_lp-ease, ease);
}

a.vm-bundles__card-link:hover .vm-bundles__card-img img {
    transform: scale(1.04);
}

/* Discount badge */
.vm-bundles__discount {
    position: absolute;
    top: 10px;
    right: 10px;
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4);
    line-height: 1;
}

/* Bundle card body */
.vm-bundles__card-body {
    padding: 0.75rem 0.85rem 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.vm-bundles__type {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    line-height: 1.5;
    align-self: flex-start;
    background: #fef3c7;
    color: #d97706;
}

.vm-bundles__card-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--_lp-text, #1e293b);
    margin: 0;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vm-bundles__meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.vm-bundles__num-books {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--_lp-text-muted, #64748b);
}

.vm-bundles__savings {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    color: #059669;
    background: #ecfdf5;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    align-self: flex-start;
}

/* Bundle card actions */
.vm-bundles__card-actions {
    padding: 0 0.85rem 0.85rem;
    margin-top: auto;
}

.vm-bundles__view-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35em;
    padding: 0.55rem 0.75rem;
    font-size: 0.82rem;
    font-weight: 700;
    font-family: inherit;
    line-height: 1;
    color: #fff;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border: none;
    border-radius: var(--_lp-radius-sm, 6px);
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(217, 119, 6, 0.35);
    transition: all var(--_lp-dur, 200ms) var(--_lp-ease, ease);
}

.vm-bundles__view-btn::before {
    content: '📦';
    font-size: 0.85em;
}

.vm-bundles__view-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(217, 119, 6, 0.45);
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #fff;
    text-decoration: none;
}

.vm-bundles__view-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(217, 119, 6, 0.3);
}

/* ── Responsive – bundles ──────────────────────────────────────── */
@media (max-width: 768px) {
    .vm-bundles {
        padding: var(--vm-sp-4, 1.5rem) var(--vm-sp-3, 1rem);
        margin: var(--vm-sp-5, 2rem) 0 var(--vm-sp-4, 1.5rem);
    }

    .vm-bundles--inline {
        padding: 1.25rem 1rem;
        margin: 1.5rem 0 0;
    }

    .vm-bundles__grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 0.85rem;
    }

    .vm-bundles__card-title {
        font-size: 0.72rem;
        -webkit-line-clamp: 2;
    }

    .vm-bundles__view-btn {
        font-size: 0.72rem;
        padding: 0.4rem 0.5rem;
    }

    .vm-bundle-savings {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .vm-bundles {
        padding: 1.25rem 0.75rem;
    }

    .vm-bundles--inline {
        padding: 1rem 0.75rem;
    }

    .vm-bundles__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .vm-bundles__eyebrow {
        font-size: 0.68rem;
    }
}

/* ═══════════════════════════════════════════════════════════════
   Bundle description — Instant download, key points, footer
   ═══════════════════════════════════════════════════════════════ */
.vm-bundle-instant {
    background: #f0fdf4;
    border-left: 4px solid #22c55e;
    padding: 16px 20px;
    border-radius: 0 8px 8px 0;
    margin-bottom: 28px;
    font-size: 15px;
    line-height: 1.6;
    color: #1e293b;
}
.vm-bundle-instant strong {
    color: #15803d;
}

.vm-bundle-keypoints {
    margin: 0 0 28px;
    padding-left: 20px;
    color: #1e293b;
    line-height: 2;
    list-style: none;
    font-size: 15px;
}
.vm-bundle-keypoints li {
    margin-bottom: 2px;
}
.vm-bundle-keypoints strong {
    color: #0f172a;
}

.vm-bundle-footer {
    background: #f8fafc;
    padding: 20px 24px;
    border-radius: 10px;
    margin-top: 24px;
    border: 1px solid #e2e8f0;
}
.vm-bundle-footer p {
    margin: 0 0 8px;
    font-size: 15px;
    line-height: 1.6;
}
.vm-bundle-footer p:last-child {
    margin-bottom: 0;
    font-size: 14px;
    color: #64748b;
}
.vm-bundle-footer a {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
}
.vm-bundle-footer a:hover {
    text-decoration: underline;
}
