/* ==========================================================================
   HAPPYPIP — Quiz Page: "Find Your Perfect Match"
   ========================================================================== */

/* ── Page Wrapper ── */
.hp-quiz-page {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-xl) var(--space-md) var(--space-3xl);
    min-height: 100vh;
}

/* ==========================================================================
   PROGRESS BAR
   ========================================================================== */

.hp-quiz__progress {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--bg-page);
    padding: var(--space-md) 0 var(--space-sm);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hp-quiz__progress.is-visible {
    opacity: 1;
}

.hp-quiz__progress-fill {
    height: 3px;
    background: var(--gradient-sunset);
    border-radius: var(--radius-full);
    width: 0%;
    transition: width 0.5s ease;
    box-shadow: 0 1px 8px rgba(236, 169, 110, 0.3);
}

.hp-quiz__progress-steps {
    display: flex;
    justify-content: space-between;
    margin-top: var(--space-sm);
}

.hp-quiz__progress-step {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: var(--text-small);
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-input);
    border: 2px solid var(--border-default);
    transition: all 0.3s ease;
}

.hp-quiz__progress-step.is-active {
    color: #fff;
    background: var(--sunset-mid);
    border-color: var(--sunset-mid);
    box-shadow: 0 0 12px rgba(236, 169, 110, 0.4);
}

.hp-quiz__progress-step.is-done {
    color: #fff;
    background: var(--green-mid);
    border-color: var(--green-mid);
}

/* ==========================================================================
   STEP TRANSITIONS
   ========================================================================== */

.hp-quiz__container {
    position: relative;
    overflow: hidden;
}

/* Steps are stacked — no layout reflow on transition */
.hp-quiz__step {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transform: translateX(40px);
    transition: opacity 0.35s ease, transform 0.35s ease, visibility 0s 0.35s;
    pointer-events: none;
}

.hp-quiz__step.is-active {
    opacity: 1;
    visibility: visible;
    position: relative;
    transform: translateX(0);
    transition: opacity 0.35s ease, transform 0.35s ease, visibility 0s 0s;
    pointer-events: auto;
}

.hp-quiz__step.is-exiting {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.hp-quiz__step.is-active.from-back {
    animation: quizSlideFromLeft 0.35s ease-out;
}

@keyframes quizSlideFromLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to   { opacity: 1; transform: translateX(0); }
}

.hp-quiz__step-inner {
    text-align: center;
    padding: var(--space-xl) 0;
}

/* ==========================================================================
   SPLASH (Step 0)
   ========================================================================== */

.hp-quiz__splash {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-3xl) var(--space-lg);
    gap: var(--space-lg);
    text-align: center;
}

/* ── Animated Gradient Orb ── */
.hp-quiz__splash-orb {
    position: relative;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hp-quiz__splash-orb-inner {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--gradient-sunset);
    box-shadow:
        0 0 40px rgba(236, 169, 110, 0.4),
        0 0 80px rgba(244, 192, 138, 0.2);
    animation: hpOrbPulse 3s ease-in-out infinite;
}

.hp-quiz__splash-orb-ring {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(236, 169, 110, 0.2);
    animation: hpOrbRing 3s ease-in-out infinite;
}

.hp-quiz__splash-orb-ring--2 {
    inset: -14px;
    border-color: rgba(236, 169, 110, 0.1);
    animation-delay: 0.5s;
}

@keyframes hpOrbPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 40px rgba(236, 169, 110, 0.4), 0 0 80px rgba(244, 192, 138, 0.2);
    }
    50% {
        transform: scale(1.08);
        box-shadow: 0 0 60px rgba(236, 169, 110, 0.5), 0 0 100px rgba(244, 192, 138, 0.25);
    }
}

@keyframes hpOrbRing {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.12); opacity: 1; }
}

/* ── Title ── */
.hp-quiz__splash-title {
    font-family: var(--font-heading);
    font-size: clamp(32px, 6vw, 44px);
    font-weight: 700;
    color: var(--green-dark);
    margin: 0;
    line-height: 1.15;
}

/* ── Subtitle ── */
.hp-quiz__splash-sub {
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--text-body);
    max-width: 420px;
    margin: 0;
    line-height: 1.6;
}

/* ── CTA Button ── */
.hp-quiz__start {
    margin-top: var(--space-sm);
    padding: 16px 52px;
    font-size: 16px;
}

/* ── Meta Stats Row ── */
.hp-quiz__splash-meta {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
    justify-content: center;
    margin-top: var(--space-sm);
}

.hp-quiz__splash-stat {
    font-family: var(--font-heading);
    font-size: var(--text-small);
    color: var(--text-muted);
}

.hp-quiz__splash-stat strong {
    color: var(--green-dark);
    font-weight: 700;
}

.hp-quiz__splash-divider {
    color: var(--border-default);
    font-size: var(--text-small);
}

/* ==========================================================================
   QUESTION STEPS
   ========================================================================== */

.hp-quiz__eyebrow {
    font-family: var(--font-heading);
    font-size: var(--text-label);
    font-weight: 700;
    color: var(--sunset-text);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: block;
    margin-bottom: var(--space-sm);
}

.hp-quiz__question {
    font-family: var(--font-heading);
    font-size: var(--text-h1);
    font-weight: 700;
    color: var(--green-dark);
    margin: 0 0 var(--space-xs);
}

.hp-quiz__hint {
    font-family: var(--font-body);
    font-size: var(--text-sub);
    color: var(--text-muted);
    margin: 0 0 var(--space-xl);
}

/* ==========================================================================
   OPTION TILES (Step 1: Occasion)
   ========================================================================== */

.hp-quiz__options--tiles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    max-width: 600px;
    margin: 0 auto;
}

.hp-quiz__tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-lg) var(--space-md);
    background: var(--bg-card);
    border: 2px solid var(--border-default);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: var(--font-heading);
}

.hp-quiz__tile:hover {
    border-color: var(--sunset-light);
    background: var(--bg-surface);
    transform: translateY(-2px);
}

.hp-quiz__tile.is-selected {
    border-color: var(--sunset-mid);
    background: rgba(236, 169, 110, 0.06);
    box-shadow: 0 0 0 3px rgba(236, 169, 110, 0.15), 0 4px 16px rgba(236, 169, 110, 0.12);
}

.hp-quiz__tile-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hp-quiz__tile-icon .hp-ico {
    width: 32px;
    height: 32px;
}

.hp-quiz__tile-label {
    font-size: var(--text-sub);
    font-weight: 600;
    color: var(--green-dark);
    text-align: center;
    line-height: 1.3;
}

/* ==========================================================================
   EFFECT PILLS (Step 2: Effects)
   ========================================================================== */

.hp-quiz__options--pills {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    justify-content: center;
    max-width: 600px;
    margin: 0 auto;
}

/* Matches mobile menu .hp-mob__vibe — single source of truth */
.hp-quiz__pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: var(--radius-full);
    background: var(--color-card);
    border: 1px solid var(--border-input);
    color: var(--color-text-primary);
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.1s ease, border-color 0.1s ease, transform 0.1s ease;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
}

.hp-quiz__pill:hover {
    border-color: var(--sunset-mid);
}

.hp-quiz__pill:active {
    transform: scale(0.95);
}

.hp-quiz__pill.is-selected {
    background: var(--gradient-sunset);
    border-color: var(--sunset-mid);
    color: var(--color-text-primary);
}

.hp-quiz__pill.is-selected .hp-ico {
    filter: brightness(0) invert(1);
}

.hp-quiz__pill.is-maxed:not(.is-selected) {
    opacity: 0.4;
    pointer-events: none;
}

.hp-quiz__pill .hp-icon--xs {
    width: 16px;
    height: 16px;
}

.hp-quiz__pill .hp-ico {
    width: 16px;
    height: 16px;
}

.hp-quiz__pill-count {
    font-family: var(--font-heading);
    font-size: var(--text-small);
    color: var(--text-muted);
    margin-top: var(--space-md);
}

/* ==========================================================================
   OPTION CARDS (Steps 3-5)
   ========================================================================== */

.hp-quiz__options--cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    max-width: 600px;
    margin: 0 auto;
}

.hp-quiz__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-xl) var(--space-md);
    background: var(--bg-card);
    border: 2px solid var(--border-default);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: var(--font-heading);
}

.hp-quiz__card:hover {
    border-color: var(--sunset-light);
    background: var(--bg-surface);
    transform: translateY(-2px);
}

.hp-quiz__card.is-selected {
    border-color: var(--sunset-mid);
    background: rgba(236, 169, 110, 0.06);
    box-shadow: 0 0 0 3px rgba(236, 169, 110, 0.15), 0 4px 16px rgba(236, 169, 110, 0.12);
}

.hp-quiz__card-emoji {
    font-size: 28px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
}

.hp-quiz__card-emoji .hp-ico {
    width: 32px;
    height: 32px;
}

.hp-quiz__card-title {
    font-size: var(--text-sub);
    font-weight: 700;
    color: var(--green-dark);
}

.hp-quiz__card-desc {
    font-family: var(--font-body);
    font-size: var(--text-small);
    color: var(--text-muted);
    line-height: 1.4;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */

.hp-quiz__nav {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    margin-top: var(--space-2xl);
}

.hp-quiz__nav .hp-btn {
    min-width: 120px;
}

.hp-quiz__next:disabled {
    opacity: 0.4;
    pointer-events: none;
}

/* ==========================================================================
   RESULTS — VIBE PROFILE
   ========================================================================== */

.hp-quiz__profile {
    background: var(--green-deep);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl) var(--space-xl);
    text-align: center;
    margin-bottom: var(--space-2xl);
    position: relative;
    overflow: hidden;
    animation: quizProfileIn 0.5s ease-out;
}

.hp-quiz__profile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-sunset);
}

@keyframes quizProfileIn {
    from { opacity: 0; transform: scale(0.95); }
    to   { opacity: 1; transform: scale(1); }
}

.hp-quiz__profile-eyebrow {
    font-family: var(--font-heading);
    font-size: var(--text-label);
    font-weight: 700;
    color: var(--sunset-mid);
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: var(--space-sm);
}

.hp-quiz__profile-name {
    font-family: var(--font-heading);
    font-size: var(--text-h1);
    font-weight: 700;
    color: #fff;
    margin: 0 0 var(--space-md);
}

.hp-quiz__profile-feeling {
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: rgba(250, 246, 239, 0.7);
    max-width: 500px;
    margin: 0 auto var(--space-lg);
    line-height: 1.6;
    font-style: italic;
}

.hp-quiz__profile-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    justify-content: center;
    margin-bottom: var(--space-md);
}

.hp-quiz__profile-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    background: rgba(250, 246, 239, 0.08);
    border: 1px solid rgba(250, 246, 239, 0.12);
    font-family: var(--font-heading);
    font-size: var(--text-label);
    font-weight: 500;
    color: rgba(250, 246, 239, 0.75);
}

.hp-quiz__profile-terpenes {
    font-family: var(--font-heading);
    font-size: var(--text-small);
    color: rgba(250, 246, 239, 0.45);
    margin-top: var(--space-sm);
}

/* ==========================================================================
   RESULTS — PRODUCT RECOMMENDATIONS
   ========================================================================== */

.hp-quiz__results-section {
    margin-bottom: var(--space-2xl);
}

.hp-quiz__results-title {
    font-family: var(--font-heading);
    font-size: var(--text-h2);
    font-weight: 700;
    color: var(--green-dark);
    margin: 0 0 var(--space-lg);
}

.hp-quiz__products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.hp-quiz__products .hp-pc-flip {
    animation: quizCardIn 0.4s ease-out both;
}

.hp-quiz__products .hp-pc-flip:nth-child(1) { animation-delay: 0.1s; }
.hp-quiz__products .hp-pc-flip:nth-child(2) { animation-delay: 0.2s; }
.hp-quiz__products .hp-pc-flip:nth-child(3) { animation-delay: 0.3s; }
.hp-quiz__products .hp-pc-flip:nth-child(4) { animation-delay: 0.4s; }
.hp-quiz__products .hp-pc-flip:nth-child(5) { animation-delay: 0.5s; }
.hp-quiz__products .hp-pc-flip:nth-child(6) { animation-delay: 0.6s; }

@keyframes quizCardIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hp-quiz__loading {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: var(--space-2xl);
}

.hp-quiz__loading span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--sunset-mid);
    animation: quizDot 1.2s ease-in-out infinite;
}

.hp-quiz__loading span:nth-child(2) { animation-delay: 0.15s; }
.hp-quiz__loading span:nth-child(3) { animation-delay: 0.3s; }

@keyframes quizDot {
    0%, 80%, 100% { opacity: 0.3; transform: scale(0.8); }
    40%           { opacity: 1;   transform: scale(1.1); }
}

.hp-quiz__no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: var(--space-2xl);
    font-family: var(--font-body);
    color: var(--text-muted);
}

.hp-quiz__relaxed-hint {
    grid-column: 1 / -1;
    text-align: center;
    padding: var(--space-sm) var(--space-md);
    margin-bottom: 0;
    font-family: var(--font-body);
    font-size: var(--text-sub);
    color: var(--text-secondary);
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
}

/* ==========================================================================
   RESULTS — TERPENE SECTION (tiles + modals reuse PDP styles from product-page.css)
   ========================================================================== */

.hp-quiz__terpenes-section {
    margin-bottom: var(--space-2xl);
}

/* ==========================================================================
   RESULTS — EMAIL ME RESULTS
   ========================================================================== */

.hp-quiz__email-card {
    background: var(--bg-card);
    border: 2px solid var(--border-default);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.hp-quiz__email-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-sm);
    width: 48px;
    height: 48px;
    background: rgba(236, 169, 110, 0.1);
    border-radius: 50%;
    padding: var(--space-sm);
}

.hp-quiz__email-icon .hp-ico {
    width: 24px;
    height: 24px;
}

.hp-quiz__email-title {
    font-family: var(--font-heading);
    font-size: var(--text-h3);
    font-weight: 700;
    color: var(--green-dark);
    margin: 0 0 var(--space-xs);
}

.hp-quiz__email-sub {
    font-family: var(--font-body);
    font-size: var(--text-sub);
    color: var(--text-muted);
    margin: 0 0 var(--space-lg);
}

.hp-quiz__email-row {
    display: flex;
    gap: var(--space-sm);
    max-width: 480px;
    margin: 0 auto;
}

.hp-quiz__email-row input[type="email"] {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--border-input);
    border-radius: var(--radius-full);
    background: var(--bg-input);
    font-family: var(--font-heading);
    font-size: var(--text-sub);
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.2s ease;
}

.hp-quiz__email-row input[type="email"]:focus {
    border-color: var(--sunset-mid);
}

.hp-quiz__email-row input[type="email"].hp-field-error {
    border-color: #e74c3c;
}

.hp-quiz__email-btn {
    white-space: nowrap;
    flex-shrink: 0;
}

.hp-quiz__email-btn-loader {
    display: inline-flex;
    gap: 3px;
}

.hp-quiz__email-btn-loader span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
    animation: quizDot 1.2s ease-in-out infinite;
}

.hp-quiz__email-btn-loader span:nth-child(2) { animation-delay: 0.15s; }
.hp-quiz__email-btn-loader span:nth-child(3) { animation-delay: 0.3s; }

.hp-quiz__email-status {
    margin-top: var(--space-md);
    font-family: var(--font-heading);
    font-size: var(--text-sub);
    padding: 10px 16px;
    border-radius: var(--radius-sm);
}

.hp-quiz__email-status.is-success {
    color: var(--color-success);
    background: rgba(88, 173, 114, 0.08);
}

.hp-quiz__email-status.is-error {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.08);
}

/* ==========================================================================
   RESULTS — PATHS + SHARE
   ========================================================================== */

.hp-quiz__paths {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.hp-quiz__share {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.hp-quiz__share-btn .hp-ico {
    width: 16px;
    height: 16px;
}

/* ==========================================================================
   QUOTE
   ========================================================================== */

.hp-quiz__quote {
    text-align: center;
    padding: var(--space-2xl) var(--space-lg);
    border-top: 1px solid var(--border-default);
}

.hp-quiz__quote blockquote {
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-style: italic;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}

.hp-quiz__quote-author {
    font-style: normal;
    font-weight: 600;
    color: var(--text-secondary);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 700px) {
    .hp-quiz__products {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 540px) {
    .hp-quiz-page {
        padding: var(--space-md) var(--space-sm) var(--space-2xl);
    }

    .hp-quiz__splash {
        padding: var(--space-2xl) 0;
    }

    .hp-quiz__options--tiles {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-sm);
    }

    .hp-quiz__options--cards {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }

    .hp-quiz__card {
        flex-direction: row;
        text-align: left;
        padding: var(--space-md);
    }

    .hp-quiz__card-emoji {
        width: 40px;
        height: 40px;
        font-size: 22px;
        flex-shrink: 0;
    }

    .hp-quiz__card-emoji .hp-ico {
        width: 24px;
        height: 24px;
    }

    .hp-quiz__products {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-sm);
    }

    .hp-quiz__progress-steps {
        display: none;
    }

    .hp-quiz__email-row {
        flex-direction: column;
    }

    .hp-quiz__paths {
        flex-direction: column;
        align-items: stretch;
    }

    .hp-quiz__paths .hp-btn {
        text-align: center;
    }

    .hp-quiz__profile {
        padding: var(--space-xl) var(--space-md);
    }
}

/* ==========================================================================
   STARTER KIT — Unified container with sunset accent
   ========================================================================== */

.hp-quiz__kit {
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-3xl);
}

/* ── Outer wrapper — the single container card ── */

.hp-quiz__kit-wrap {
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
}

/* Sunset accent line at top (matches site header glow pattern) */
.hp-quiz__kit-wrap::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-sunset);
    z-index: 1;
}

/* ── Header (inside wrapper) ── */

.hp-quiz__kit-header {
    padding: var(--space-xl) var(--space-xl) 0;
}

.hp-quiz__kit-header .hp-section-eyebrow {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: var(--space-xs);
}

.hp-quiz__kit-header .hp-section-title {
    margin-bottom: var(--space-xs);
}

.hp-quiz__kit-header .hp-section-tagline {
    margin-bottom: 0;
}

/* ── Kit Grid (inside wrapper) ── */

.hp-quiz__kit-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    padding: var(--space-xl);
}

/* ── Kit Card — borderless inside the wrapper ── */

.hp-quiz__kit-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    padding: var(--space-lg) var(--space-md) var(--space-md);
    position: relative;
    transition: opacity 0.3s ease, transform 0.3s ease;
    animation: quizCardIn 0.4s ease-out both;
    overflow: hidden;
    font-family: var(--font-heading);
}

/* Kill any rogue badges inherited from product card global styles */
.hp-quiz__kit-card .hp-bdg,
.hp-quiz__kit-card .hp-pc__special,
.hp-quiz__kit-card .hp-pc__badges {
    display: none !important;
}

.hp-quiz__kit-card:nth-child(1) { animation-delay: 0.1s; }
.hp-quiz__kit-card:nth-child(2) { animation-delay: 0.2s; }
.hp-quiz__kit-card:nth-child(3) { animation-delay: 0.3s; }

.hp-quiz__kit-card.is-removed {
    opacity: 0.25;
    pointer-events: none;
    transform: scale(0.96);
    filter: grayscale(0.5);
}

/* ── Remove Button (uses global .hp-close-btn--sm component) ── */

.hp-quiz__kit-remove {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    z-index: 2;
}

/* ── Role Label ── */

.hp-quiz__kit-role {
    font-family: var(--font-heading);
    font-size: var(--text-small);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-sm);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    display: inline-block;
}

.hp-quiz__kit-role--anchor {
    color: var(--sunset-deep);
    background: rgba(236, 169, 110, 0.12);
}

.hp-quiz__kit-role--wildcard {
    color: var(--green-mid);
    background: rgba(42, 90, 72, 0.08);
}

.hp-quiz__kit-role--daily {
    color: var(--text-secondary);
    background: rgba(90, 80, 72, 0.06);
}

/* ── Image ── */

.hp-quiz__kit-img {
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-img-placeholder);
    margin-bottom: var(--space-md);
}

.hp-quiz__kit-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ── Info ── */

.hp-quiz__kit-name {
    font-family: var(--font-heading);
    font-size: var(--text-base);
    font-weight: 700;
    color: var(--green-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    line-height: 1.2;
}

.hp-quiz__kit-role-desc {
    font-family: var(--font-body);
    font-size: var(--text-sub);
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: var(--space-md);
}

/* ── Size Buttons (reuses .hp-qs__size-btn + .hp-size-tag from quick-shop) ── */

.hp-quiz__kit-sizes {
    margin-bottom: var(--space-md);
}

/* ── Pricing ── */

.hp-quiz__kit-pricing {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: var(--space-sm);
    border-top: 1px solid var(--border-default);
}

.hp-quiz__kit-price {
    font-family: var(--font-heading);
    font-size: var(--text-h3);
    font-weight: 700;
    color: var(--green-dark);
}

.hp-quiz__kit-per-gram {
    font-family: var(--font-body);
    font-size: var(--text-small);
    color: var(--text-muted);
}

.hp-quiz__kit-pricing .hp-savings {
    font-size: var(--text-small);
}

/* ── Footer — divider row inside wrapper, not a separate card ── */

.hp-quiz__kit-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg) var(--space-xl);
    border-top: 1px solid var(--border-default);
    background: var(--bg-card);
}

.hp-quiz__kit-subtotal {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hp-quiz__kit-subtotal-label {
    font-family: var(--font-heading);
    font-size: var(--text-label);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

.hp-quiz__kit-subtotal-value {
    font-family: var(--font-heading);
    font-size: var(--text-h2);
    font-weight: 700;
    color: var(--green-dark);
}

.hp-quiz__kit-atc {
    min-width: 200px;
    padding: 16px 32px;
}

.hp-quiz__kit-atc-loader {
    display: inline-flex;
    gap: 4px;
}

.hp-quiz__kit-atc-loader span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
    animation: quizDot 0.6s ease-in-out infinite alternate;
}

.hp-quiz__kit-atc-loader span:nth-child(2) { animation-delay: 0.2s; }
.hp-quiz__kit-atc-loader span:nth-child(3) { animation-delay: 0.4s; }

@keyframes quizDot {
    0% { opacity: 0.3; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1); }
}

/* ── Status (outside wrapper, below) ── */

.hp-quiz__kit-status {
    text-align: center;
    padding: var(--space-sm) var(--space-md);
    margin-top: var(--space-sm);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: var(--text-sub);
    font-weight: 500;
}

.hp-quiz__kit-status.is-success {
    background: rgba(88, 173, 114, 0.1);
    color: var(--color-success);
}

.hp-quiz__kit-status.is-error {
    background: rgba(220, 80, 60, 0.1);
    color: #c0392b;
}

/* ── Kit Mobile ── */

@media (max-width: 540px) {
    .hp-quiz__kit-header {
        padding: var(--space-lg) var(--space-md) 0;
    }

    .hp-quiz__kit-grid {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
        padding: var(--space-md);
    }

    .hp-quiz__kit-card {
        display: grid;
        grid-template-columns: 100px 1fr;
        gap: 0 var(--space-md);
        padding: var(--space-md);
    }

    .hp-quiz__kit-img {
        grid-row: 1 / 3;
        margin-bottom: 0;
    }

    .hp-quiz__kit-role {
        margin-bottom: 6px;
    }

    .hp-quiz__kit-info {
        min-width: 0;
    }

    .hp-quiz__kit-name {
        font-size: var(--text-sub);
    }

    .hp-quiz__kit-role-desc {
        margin-bottom: var(--space-sm);
    }

    .hp-quiz__kit-footer {
        position: sticky;
        bottom: 0;
        z-index: 10;
        box-shadow: 0 -4px 20px rgba(200, 165, 100, 0.15);
        padding: var(--space-md) var(--space-lg);
    }

    .hp-quiz__kit-atc {
        min-width: 160px;
        padding: 14px 24px;
    }
}
