/**
 * Skate Keuzehulp Wizard Styles
 *
 * Mobile-first, matches WinkelvanHugo theme tokens:
 *   --orange, --orange-dark, --black, --gray-*, --white, --cream
 *   Font: DM Sans
 *
 * @package WinkelvanHugo
 */

/* ═══════════════════════════════════════════════════════════════
 * Container
 * ═══════════════════════════════════════════════════════════════ */
.wvh-kh {
    max-width: 960px;
    margin: 40px auto;
    padding: 0 16px;
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    position: relative;
}

/* ═══════════════════════════════════════════════════════════════
 * Progress Bar
 * ═══════════════════════════════════════════════════════════════ */
.wvh-kh__progress {
    margin-bottom: 32px;
    text-align: center;
}

.wvh-kh__progress-bar {
    height: 6px;
    background: var(--gray-200, #e5e5e5);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.wvh-kh__progress-fill {
    height: 100%;
    background: var(--orange, #FF7900);
    border-radius: 3px;
    transition: width 0.4s ease;
}

.wvh-kh__progress-text {
    font-size: 13px;
    color: var(--gray-500, #777);
    font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════
 * Steps
 * ═══════════════════════════════════════════════════════════════ */
.wvh-kh__step {
    display: none;
    animation: wvhKhFadeIn 0.35s ease;
}

.wvh-kh__step--active {
    display: block;
}

.wvh-kh__step--exit {
    animation: wvhKhFadeOut 0.3s ease;
}

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

@keyframes wvhKhFadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.wvh-kh__title {
    font-size: 28px;
    font-weight: 700;
    color: var(--black, #111);
    margin: 0 0 8px;
    text-align: center;
}

.wvh-kh__subtitle {
    font-size: 15px;
    color: var(--gray-500, #777);
    margin: 0 0 28px;
    text-align: center;
}

/* ═══════════════════════════════════════════════════════════════
 * Back Button
 * ═══════════════════════════════════════════════════════════════ */
.wvh-kh__back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-500, #777);
    cursor: pointer;
    padding: 0;
    margin-bottom: 20px;
    font-family: inherit;
    transition: color 0.2s;
}

.wvh-kh__back:hover {
    color: var(--black, #111);
}

.wvh-kh__back svg {
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════
 * Selection Cards
 * ═══════════════════════════════════════════════════════════════ */
.wvh-kh__cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 16px;
}

.wvh-kh__cards--2col {
    grid-template-columns: repeat(2, 1fr);
    max-width: 500px;
    margin: 0 auto;
}

.wvh-kh__cards--3col {
    grid-template-columns: repeat(3, 1fr);
    max-width: 680px;
    margin: 0 auto;
}

.wvh-kh__cards--budget {
    grid-template-columns: repeat(2, 1fr);
    max-width: 560px;
    margin: 0 auto;
}

.wvh-kh__cards--purpose {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    max-width: 680px;
    margin: 0 auto;
}

.wvh-kh__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    padding: 24px 16px;
    background: #fff;
    border: 2px solid var(--gray-200, #e5e5e5);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    position: relative;
}

.wvh-kh__card:hover {
    border-color: var(--orange, #FF7900);
    box-shadow: 0 4px 16px rgba(255, 121, 0, 0.12);
    transform: translateY(-2px);
}

.wvh-kh__card--selected {
    border-color: var(--orange, #FF7900);
    background: var(--orange-light, #FFF4EB);
    box-shadow: 0 0 0 3px rgba(255, 121, 0, 0.15);
}

.wvh-kh__card-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--orange, #FF7900);
    margin-bottom: 4px;
}

.wvh-kh__card-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: 6px;
    background: var(--gray-100, #f5f5f5);
    color: var(--gray-500, #777);
}

.wvh-kh__card--selected .wvh-kh__card-badge {
    background: var(--orange, #FF7900);
    color: #fff;
}

.wvh-kh__card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--black, #111);
    margin: 0;
}

.wvh-kh__card-desc {
    font-size: 13px;
    color: var(--gray-500, #777);
    margin: 0;
    line-height: 1.4;
}

/* ═══════════════════════════════════════════════════════════════
 * Size Grid (Step 3)
 * ═══════════════════════════════════════════════════════════════ */
.wvh-kh__size-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
    max-width: 640px;
    margin: 0 auto;
}

.wvh-kh__size-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 14px 8px;
    background: #fff;
    border: 2px solid var(--gray-200, #e5e5e5);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.wvh-kh__size-btn:hover {
    border-color: var(--orange, #FF7900);
}

.wvh-kh__size-btn--active {
    border-color: var(--orange, #FF7900);
    background: var(--orange-light, #FFF4EB);
    box-shadow: 0 0 0 3px rgba(255, 121, 0, 0.15);
}

.wvh-kh__size-num {
    font-size: 18px;
    font-weight: 700;
    color: var(--black, #111);
}

.wvh-kh__size-deck {
    font-size: 11px;
    color: var(--gray-500, #777);
    font-weight: 500;
}

.wvh-kh__size-btn--active .wvh-kh__size-num {
    color: var(--orange, #FF7900);
}

/* ═══════════════════════════════════════════════════════════════
 * Skip Button
 * ═══════════════════════════════════════════════════════════════ */
.wvh-kh__skip {
    display: block;
    margin: 20px auto 0;
    background: none;
    border: none;
    font-size: 14px;
    color: var(--gray-500, #777);
    cursor: pointer;
    text-decoration: underline;
    font-family: inherit;
    transition: color 0.2s;
}

.wvh-kh__skip:hover {
    color: var(--black, #111);
}

/* ═══════════════════════════════════════════════════════════════
 * Loading Spinner
 * ═══════════════════════════════════════════════════════════════ */
.wvh-kh__loading,
.wvh-kh__protection-loading,
.wvh-kh__cart-adding {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 48px 0;
    color: var(--gray-500, #777);
}

.wvh-kh__spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--gray-200, #e5e5e5);
    border-top-color: var(--orange, #FF7900);
    border-radius: 50%;
    animation: wvhKhSpin 0.7s linear infinite;
}

@keyframes wvhKhSpin {
    to { transform: rotate(360deg); }
}

/* ═══════════════════════════════════════════════════════════════
 * Results Cards
 * ═══════════════════════════════════════════════════════════════ */
.wvh-kh__results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.wvh-kh__result-card {
    background: #fff;
    border: 1px solid var(--gray-200, #e5e5e5);
    border-radius: 14px;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
    position: relative;
}

.wvh-kh__result-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.wvh-kh__result-card:first-child {
    border-color: var(--orange, #FF7900);
    box-shadow: 0 2px 12px rgba(255, 121, 0, 0.1);
}

.wvh-kh__result-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    background: var(--orange, #FF7900);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 6px;
}

.wvh-kh__result-badge--sale {
    background: #e74c3c;
}

.wvh-kh__result-badge--value {
    background: #00854a;
}

.wvh-kh__result-badge--premium {
    background: #1e293b;
}

.wvh-kh__result-image {
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--gray-100, #f5f5f5);
}

.wvh-kh__result-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
}

.wvh-kh__result-info {
    padding: 16px;
}

.wvh-kh__result-brand {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray-500, #777);
    display: block;
    margin-bottom: 4px;
}

.wvh-kh__result-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--black, #111);
    margin: 0 0 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wvh-kh__result-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--black, #111);
    margin-bottom: 10px;
}

.wvh-kh__result-price del {
    font-size: 14px;
    color: var(--gray-500, #777);
    font-weight: 400;
}

.wvh-kh__result-price ins {
    text-decoration: none;
    color: #e74c3c;
}

.wvh-kh__result-reasons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

.wvh-kh__reason {
    font-size: 11px;
    font-weight: 500;
    padding: 3px 8px;
    background: #eafff4;
    color: #00854a;
    border-radius: 20px;
    white-space: nowrap;
}

.wvh-kh__result-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wvh-kh__result-actions .wvh-btn {
    width: 100%;
    justify-content: center;
    font-size: 13px;
    padding: 10px 16px;
}

.wvh-kh__result-detail {
    font-size: 13px;
    color: var(--gray-500, #777);
    text-align: center;
    text-decoration: underline;
    transition: color 0.2s;
}

.wvh-kh__result-detail:hover {
    color: var(--black, #111);
}

/* No results */
.wvh-kh__no-results {
    text-align: center;
    padding: 40px 0;
    color: var(--gray-500, #777);
}

.wvh-kh__no-results p {
    margin-bottom: 20px;
    font-size: 15px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* ═══════════════════════════════════════════════════════════════
 * Protection Step
 * ═══════════════════════════════════════════════════════════════ */
.wvh-kh__selected-product {
    margin-bottom: 24px;
}

.wvh-kh__selected-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--orange-light, #FFF4EB);
    border: 1px solid rgba(255, 121, 0, 0.2);
    border-radius: 12px;
}

.wvh-kh__selected-item img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
}

.wvh-kh__selected-item strong {
    display: block;
    font-size: 15px;
    margin-bottom: 4px;
}

.wvh-kh__protection-group {
    font-size: 16px;
    font-weight: 600;
    color: var(--black, #111);
    margin: 24px 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--gray-200, #e5e5e5);
}

.wvh-kh__protection-group:first-child {
    margin-top: 0;
}

.wvh-kh__protection-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 2px solid var(--gray-200, #e5e5e5);
    border-radius: 12px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.wvh-kh__protection-item:hover {
    border-color: var(--gray-300, #ccc);
}

.wvh-kh__protection-item:has(.wvh-kh__protection-check:checked) {
    border-color: var(--orange, #FF7900);
    background: var(--orange-light, #FFF4EB);
}

.wvh-kh__protection-check {
    width: 20px;
    height: 20px;
    accent-color: var(--orange, #FF7900);
    flex-shrink: 0;
}

.wvh-kh__protection-item img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
    flex-shrink: 0;
}

.wvh-kh__protection-info {
    flex: 1;
    min-width: 0;
}

.wvh-kh__protection-name {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--black, #111);
    margin-bottom: 2px;
}

.wvh-kh__protection-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--black, #111);
}

.wvh-kh__protection-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    margin-top: 28px;
    flex-wrap: wrap;
}

.wvh-kh__skip-protection {
    background: none;
    border: none;
    font-size: 14px;
    color: var(--gray-500, #777);
    cursor: pointer;
    text-decoration: underline;
    font-family: inherit;
    transition: color 0.2s;
}

.wvh-kh__skip-protection:hover {
    color: var(--black, #111);
}

/* ═══════════════════════════════════════════════════════════════
 * Cart Summary
 * ═══════════════════════════════════════════════════════════════ */
.wvh-kh__cart-summary {
    max-width: 560px;
    margin: 0 auto 24px;
}

.wvh-kh__cart-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--gray-200, #e5e5e5);
}

.wvh-kh__cart-item:last-child {
    border-bottom: none;
}

.wvh-kh__cart-item img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    border-radius: 8px;
    background: var(--gray-100, #f5f5f5);
    flex-shrink: 0;
}

.wvh-kh__cart-item--main {
    padding-bottom: 16px;
}

.wvh-kh__cart-item--main img {
    width: 80px;
    height: 80px;
}

.wvh-kh__cart-item-info strong {
    display: block;
    font-size: 15px;
    margin-bottom: 4px;
}

.wvh-kh__cart-item-info span {
    display: block;
    font-size: 14px;
    color: var(--gray-700, #444);
}

.wvh-kh__cart-total {
    max-width: 560px;
    margin: 0 auto 20px;
}

.wvh-kh__combo-discount {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #eafff4;
    border: 1px solid #a8ebc8;
    border-radius: 10px;
    font-size: 14px;
    color: #00854a;
}

.wvh-kh__combo-discount svg {
    flex-shrink: 0;
    color: #00854a;
}

.wvh-kh__add-to-cart {
    display: flex;
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    font-size: 16px;
    padding: 16px 24px;
}

/* Cart success */
.wvh-kh__cart-success {
    text-align: center;
    padding: 40px 0;
}

.wvh-kh__cart-success svg {
    margin: 0 auto 12px;
}

.wvh-kh__cart-success p {
    font-size: 18px;
    font-weight: 600;
    color: var(--black, #111);
    margin-bottom: 24px;
}

.wvh-kh__cart-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════════════════
 * WhatsApp CTA
 * ═══════════════════════════════════════════════════════════════ */
.wvh-kh__whatsapp {
    text-align: center;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--gray-200, #e5e5e5);
}

.wvh-kh__whatsapp a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #25D366;
    transition: opacity 0.2s;
}

.wvh-kh__whatsapp a:hover {
    opacity: 0.8;
}

/* ═══════════════════════════════════════════════════════════════
 * Responsive
 * ═══════════════════════════════════════════════════════════════ */

/* Tablet */
@media (max-width: 768px) {
    .wvh-kh {
        margin: 24px auto;
    }

    .wvh-kh__title {
        font-size: 22px;
    }

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

    .wvh-kh__cards--3col {
        grid-template-columns: repeat(3, 1fr);
    }

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

/* Mobile */
@media (max-width: 480px) {
    .wvh-kh__title {
        font-size: 20px;
    }

    .wvh-kh__subtitle {
        font-size: 14px;
    }

    .wvh-kh__cards--2col,
    .wvh-kh__cards--3col {
        grid-template-columns: 1fr;
    }

    .wvh-kh__cards {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .wvh-kh__card {
        padding: 16px 12px;
    }

    .wvh-kh__card-icon {
        width: 40px;
        height: 40px;
    }

    .wvh-kh__card-icon svg {
        width: 36px;
        height: 36px;
    }

    .wvh-kh__size-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }

    .wvh-kh__size-btn {
        padding: 10px 6px;
    }

    .wvh-kh__results {
        grid-template-columns: 1fr;
    }

    .wvh-kh__result-card:first-child .wvh-kh__result-image {
        aspect-ratio: 4/3;
    }

    .wvh-kh__protection-item {
        padding: 12px;
    }

    .wvh-kh__selected-item {
        flex-direction: column;
        text-align: center;
    }

    .wvh-kh__cart-actions {
        flex-direction: column;
    }

    .wvh-kh__cart-actions .wvh-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ═══════════════════════════════════════════════════════════════
 * Category page CTA banner
 * ═══════════════════════════════════════════════════════════════ */
.wvh-kh-cat-cta {
    margin: 0 0 1.5rem;
}
.wvh-kh-cat-cta__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 60%, #4f46e5 100%);
    color: #fff;
    padding: 1rem 1.5rem;
    border-radius: 12px;
}
.wvh-kh-cat-cta__text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.wvh-kh-cat-cta__text strong {
    font-size: 0.95rem;
}
.wvh-kh-cat-cta__text span {
    font-size: 0.82rem;
    color: rgba(255,255,255,.8);
}
.wvh-kh-cat-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
    background: #ff7900;
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
}
.wvh-kh-cat-cta__btn:hover {
    background: #e06d00;
    transform: translateY(-1px);
    color: #fff;
}
@media (max-width: 600px) {
    .wvh-kh-cat-cta__inner {
        flex-direction: column;
        text-align: center;
        padding: 1.25rem 1rem;
    }
}
