/* Sokkenwijzer quiz — self-contained, works in any layout */
.sw {
    font-family: 'DM Sans', system-ui, sans-serif;
    box-sizing: border-box;
    color: #1A1A1A;
}

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

.sw-wrap {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 16px;
}

.sw-center {
    text-align: center;
}

.sw-label {
    color: #5AA9E6;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.sw-title {
    font-size: clamp(24px, 5vw, 36px);
    font-weight: 900;
    line-height: 1.1;
    margin: 0 0 12px;
    color: #1A1A1A;
}

.sw-subtitle {
    color: #888;
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
}

.sw-btn {
    display: inline-block;
    background: #FF6392;
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    padding: 14px 32px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
}

.sw-btn:hover {
    background: #e8507e;
    transform: translateY(-1px);
}

.sw-btn-outline {
    background: transparent;
    color: #5AA9E6;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    padding: 8px 0;
    transition: color 0.2s;
    font-family: inherit;
}

.sw-btn-outline:hover {
    color: #FF6392;
}

.sw-mt {
    margin-top: 32px;
}

.sw-mt-sm {
    margin-top: 16px;
}

.sw-mb {
    margin-bottom: 32px;
}

.sw-pad {
    padding: 64px 0;
}

@media (max-width: 640px) {
    .sw-pad {
        padding: 40px 0;
    }
}

.sw-progress-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #888;
    margin-bottom: 8px;
}

.sw-progress-bar {
    height: 6px;
    background: #f0f0f0;
    border-radius: 999px;
    overflow: hidden;
}

.sw-progress-fill {
    height: 100%;
    background: #FF6392;
    border-radius: 999px;
    transition: width 0.5s ease;
}

.sw-question {
    font-size: clamp(20px, 4vw, 28px);
    font-weight: 900;
    text-align: center;
    margin: 0 0 28px;
    color: #1A1A1A;
}

.sw-step-area {
    min-height: 420px;
    display: flex;
    flex-direction: column;
}

@media (max-width: 640px) {
    .sw-step-area {
        min-height: 360px;
    }
}

.sw-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sw-option {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 16px 20px;
    background: #fff;
    border: 2px solid #E5E5E5;
    border-radius: 12px;
    cursor: pointer;
    text-align: left;
    font-size: 15px;
    font-weight: 600;
    color: #1A1A1A;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
    font-family: inherit;
}

.sw-option:hover {
    border-color: #FF6392;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-1px);
}

.sw-option:hover .sw-option-label {
    color: #FF6392;
}

.sw-option-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.sw-option-label {
    transition: color 0.2s;
}

.sw-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #f0f0f0;
    border-top-color: #FF6392;
    border-radius: 50%;
    animation: sw-spin 0.8s linear infinite;
}

@keyframes sw-spin {
    to {
        transform: rotate(360deg);
    }
}

.sw-products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

@media (max-width: 640px) {
    .sw-products {
        grid-template-columns: 1fr;
    }
}

.sw-card {
    background: #fff;
    border: 1px solid #E5E5E5;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s, transform 0.2s;
    display: block;
}

.sw-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.sw-card-img {
    aspect-ratio: 4/5;
    background: #F5F0E8;
    padding: 8px;
}

.sw-card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
}

.sw-card-body {
    padding: 16px;
}

.sw-card-name {
    font-weight: 700;
    font-size: 14px;
    line-height: 1.3;
    margin: 0 0 4px;
    color: #1A1A1A;
}

.sw-card:hover .sw-card-name {
    color: #FF6392;
}

.sw-card-specs {
    font-size: 12px;
    color: #888;
    margin: 0 0 8px;
}

.sw-card-price {
    font-size: 18px;
    font-weight: 900;
    color: #1A1A1A;
    margin: 0;
}

.sw-card-selectors {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.sw-colors {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.sw-color {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #E5E5E5;
    cursor: pointer;
    transition: border-color 0.15s, transform 0.15s;
    padding: 0;
}

.sw-color:hover, .sw-color.active {
    border-color: #5AA9E6;
    transform: scale(1.15);
}

.sw-sizes {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.sw-size {
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid #E5E5E5;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    font-family: inherit;
    color: #1A1A1A;
    transition: all 0.15s;
}

.sw-size:hover {
    border-color: #1A1A1A;
}

.sw-size.active {
    background: #1A1A1A;
    color: #fff;
    border-color: #1A1A1A;
}

.sw-size.oos {
    opacity: 0.3;
    cursor: not-allowed;
    text-decoration: line-through;
}

.sw-atc {
    width: 100%;
    padding: 10px;
    font-size: 13px;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
    margin-top: 4px;
}

.sw-atc-ready {
    background: #1A1A1A;
    color: #fff;
}

.sw-atc-ready:hover {
    background: #333;
}

.sw-atc-disabled {
    background: #f0f0f0;
    color: #aaa;
    cursor: not-allowed;
}

.sw-atc-done {
    background: #16a34a;
    color: #fff;
}

.sw-empty {
    background: #F5F0E8;
    border: 1px solid #E5E5E5;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    color: #888;
    margin-bottom: 32px;
}

.sw-compact {
    background: #F5F0E8;
    border: 1px solid #E5E5E5;
    border-radius: 16px;
    padding: 24px 32px;
    text-align: center;
    font-family: 'DM Sans', system-ui, sans-serif;
}

.sw-compact h3 {
    font-size: clamp(18px, 3vw, 22px);
    font-weight: 900;
    color: #1A1A1A;
    margin: 0 0 8px;
}

.sw-compact p {
    color: #888;
    font-size: 14px;
    margin: 0 0 16px;
}

@media (max-width: 640px) {
    .sw-compact {
        padding: 20px;
    }
}

/* Hero mode — full-width background image with cream overlay */
.sw-hero {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    overflow: hidden;
}

.sw-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.sw-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sw-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgb(245 240 232 / 89%);
    z-index: 1;
}

.sw-hero > .sw {
    position: relative;
    z-index: 2;
}
