/* ==========================================================
 * WINGFOIL CONFIGURATOR
 * ========================================================== */

#ws-configurator {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.ws-configurator-inner {
    background: #fff;
    border: 1px solid #dedede;
    border-radius: 18px;
    padding: 38px;
    box-shadow: 0 8px 30px rgba(0,0,0,.05);
}

#ws-configurator h2 {
    margin: 0 0 35px;
    font-size: 28px;
    line-height: 1.2;
}


/* ==========================================================
 * FIELDS
 * ========================================================== */

.ws-field {
    margin-bottom: 30px;
    padding: 22px 24px;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    background: #fafafa;
}

.ws-field > label {
    display: block;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    color: #111;
}

.ws-field > label strong {
    font-weight: 700;
}


/* ==========================================================
 * OPTION BUTTONS
 * ========================================================== */

.ws-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ws-buttons button {
    appearance: none;
    min-height: 46px;
    padding: 11px 20px!important;

    border: 1px solid #cfcfcf;
    border-radius: 8px!important;

    background: #fff;
    color: #222;

    font-size: 15px;
    font-weight: 600;
    line-height: 1;

    cursor: pointer;

    transition:
        background .18s ease,
        color .18s ease,
        border-color .18s ease,
        box-shadow .18s ease,
        transform .18s ease;
}

.ws-buttons button:hover {
    border-color: #111;
    background: #f5f5f5;
    transform: translateY(-1px);
}

.ws-buttons button:focus-visible {
    outline: 2px solid #111;
    outline-offset: 2px;
}

.ws-buttons button.active {
    background: #111;
    border-color: #111;
    color: #fff;
    box-shadow: 0 3px 8px rgba(0,0,0,.15);
}


/* ==========================================================
 * RANGE SLIDERS
 * ========================================================== */

#ws-weight,
#ws-budget {
    width: 100%;
    display: block;
    margin: 20px 0 0;

    cursor: pointer;
    accent-color: #111;
}

#ws-weight:focus,
#ws-budget:focus {
    outline: none;
}


/* ==========================================================
 * BUILD BUTTON
 * ========================================================== */

#ws-build {
    width: 100%;
    min-height: 58px;
    margin-top: 2px;

    border-radius: 9px;

    font-size: 16px;
    font-weight: 700;

    transition:
        opacity .2s ease,
        transform .2s ease;
}

#ws-build:hover:not(:disabled) {
    transform: translateY(-1px);
}

#ws-build:disabled {
    opacity: .6;
    cursor: wait;
}


/* ==========================================================
 * RESULT
 * ========================================================== */

#ws-result {
    margin-top: 40px;
}

.ws-result-title {
    margin-bottom: 20px;
}

.ws-result-title h3 {
    margin: 0;
    font-size: 22px;
}


/* ==========================================================
 * PRODUCTS
 * ========================================================== */

.ws-items {
    border-top: 1px solid #eee;
}

.ws-item {
    display: flex;
    align-items: center;
    gap: 20px;

    padding: 20px 0;

    border-bottom: 1px solid #eee;
}

.ws-item-image {
    flex: 0 0 90px;
}

.ws-item-image img {
    display: block;

    width: 90px;
    height: 90px;

    object-fit: cover;

    border-radius: 10px;
}

.ws-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ws-product-name {
    font-weight: 600;
    color: inherit;
    text-decoration: none;
}

.ws-product-name:hover {
    text-decoration: underline;
}

.ws-product-price {
    color: #777;
}


/* ==========================================================
 * TOTAL
 * ========================================================== */

.ws-total {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin: 25px 0;

    font-size: 20px;
}

.ws-total strong {
    font-size: 26px;
}


/* ==========================================================
 * CART BUTTON
 * ========================================================== */

.ws-cart {
    width: 100%;
    min-height: 56px;

    border-radius: 9px;

    font-weight: 700;
}

.ws-cart:disabled {
    opacity: .6;
    cursor: wait;
}


/* ==========================================================
 * WARNINGS / ERRORS
 * ========================================================== */

.ws-error {
    padding: 15px 18px;

    border: 1px solid #e3bcbc;
    border-radius: 8px;

    background: #fff4f4;
    color: #a00000;
}

.ws-loading-message {
    padding: 20px 0;
}

.ws-budget-warning {
    margin-bottom: 25px;
    padding: 17px 20px;

    border: 1px solid #e5d9b8;
    border-radius: 9px;

    background: #fffaf0;
    color: #5f4b1f;

    line-height: 1.5;
}


/* ==========================================================
 * MOBILE
 * ========================================================== */

@media (max-width: 600px) {

    .ws-configurator-inner {
        padding: 22px;
        border-radius: 14px;
    }

    #ws-configurator h2 {
        font-size: 24px;
        margin-bottom: 25px;
    }

    .ws-field {
        padding: 18px;
        margin-bottom: 20px;
    }

    .ws-field > label {
        font-size: 15px;
        margin-bottom: 13px;
    }

    .ws-buttons {
        gap: 8px;
    }

    .ws-buttons button {
        min-height: 44px;
        padding: 10px 15px;
        font-size: 14px;
    }

    .ws-item {
        gap: 14px;
    }

    .ws-item-image {
        flex-basis: 70px;
    }

    .ws-item-image img {
        width: 70px;
        height: 70px;
    }

    .ws-total {
        font-size: 18px;
    }

    .ws-total strong {
        font-size: 22px;
    }
}

.ws-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.ws-product-name {
    font-weight: 600;
    color: inherit;
    text-decoration: none;
}

.ws-product-name:hover {
    text-decoration: underline;
}

.ws-product-price {
    color: #777;
}

.ws-product-delivery {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-top: 2px;
    padding: 4px 8px;
    border-radius: 5px;
    background: #f1f7f2;
    color: #286b35;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
}
.ws-surge-components{margin:20px 0;padding:18px;border:1px solid #ddd;border-radius:8px}.ws-surge-field{display:block;margin:12px 0;font-weight:600}.ws-surge-select{display:block;width:100%;margin-top:5px}.ws-surge-preview{display:flex;align-items:center;gap:12px;margin-bottom:12px}.ws-surge-preview img{width:75px;height:75px;object-fit:contain}.ws-surge-note{font-size:13px;color:#666}

/* Visuele productkeuze: wing, board en complete wingfoil-foilset */
.ws-choice-section{margin:26px 0}.ws-choice-section h4{font-size:21px;margin:0 0 14px}
.ws-choice-cards{display:flex;gap:16px;overflow-x:auto;scroll-snap-type:x proximity;padding:2px 2px 10px}
.ws-choice-card{flex:0 0 min(310px,80%);display:flex;flex-direction:column;align-items:stretch;text-align:left;gap:10px;padding:12px!important;background:#fff!important;color:#161616!important;border:1px solid #ddd!important;border-radius:16px!important;cursor:pointer;scroll-snap-align:start;box-shadow:none!important;transition:border-color .15s,background .15s}
.ws-choice-card.is-selected{border-color:#b6d6fa!important;background:#f8fbff!important}
.ws-choice-image{display:flex;align-items:center;justify-content:center;aspect-ratio:1/1;border:1px solid #e7e7e7;border-radius:13px;background:#fff;overflow:hidden}
.ws-choice-image img{width:100%;height:100%;object-fit:contain}
.ws-choice-name{font-size:16px;font-weight:700;display:flex;align-items:center;justify-content:space-between;gap:8px}
.ws-choice-check{display:none;border:1px solid #2177dd;border-radius:50%;color:#2177dd;width:19px;height:19px;text-align:center;font-size:14px;line-height:17px;flex-shrink:0}
.ws-choice-card.is-selected .ws-choice-check{display:inline-block}
.ws-choice-detail{font-size:14px;color:#777;min-height:20px}.ws-choice-price{font-size:20px}
.ws-choice-colors{padding:10px 5px}.ws-color-caption{margin-bottom:9px}.ws-color-dots{display:flex;gap:12px;flex-wrap:wrap}
.ws-color-dot{width:39px;height:39px;border-radius:50%!important;background:var(--ws-swatch)!important;border:4px solid #fff!important;outline:1px solid #ddd;cursor:pointer;padding:0!important}
.ws-color-dot.is-selected{outline:3px solid #cde4ff}
.ws-choice-summary{border:1px solid #ddd;border-radius:12px;padding:15px;margin:12px 0 22px;display:grid;gap:9px}
.ws-choice-summary>div{display:flex;justify-content:space-between;gap:12px}
@media(max-width:600px){.ws-choice-card{flex-basis:85%}.ws-choice-summary>div{flex-wrap:wrap}}

/* Compact Surge component editor beneath the selected foilset card. */
#ws-result .ws-surge-components { margin: 10px 0 24px; padding: 16px 18px; border: 1px solid #e5e5e5; border-radius: 12px; background: #fafafa; }
#ws-result .ws-surge-components h4 { margin: 0 0 12px; font-size: 16px; }
#ws-result .ws-surge-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px 16px; }
#ws-result .ws-surge-field { display: flex; flex-direction: column; gap: 5px; margin: 0; font-size: 13px; font-weight: 600; }
#ws-result .ws-surge-select { width: 100%; min-width: 0; padding: 9px 10px; font-size: 13px; border: 1px solid #ddd; border-radius: 7px; background: #fff; }
#ws-result .ws-surge-product { cursor: default; }
@media (max-width: 620px) { #ws-result .ws-surge-fields { grid-template-columns: 1fr; } }

/* Unified horizontal product configurator — October 2026 */
#ws-result .ws-result-title h3{font-size:clamp(24px,3vw,34px);margin:0 0 18px}
#ws-result .ws-choice-section{margin:0;padding:22px 0 24px;border-bottom:1px solid #e7e7e7}
#ws-result .ws-choice-section h4{font-size:clamp(19px,2.2vw,24px);font-weight:700;margin:0 0 16px}
#ws-result .ws-choice-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;overflow:visible;padding:2px}
#ws-result .ws-choice-card{position:relative;display:grid;grid-template-columns:minmax(90px,37%) minmax(0,1fr);grid-template-rows:auto auto 1fr;column-gap:18px;row-gap:9px;align-items:center;flex:none;width:100%;min-width:0;min-height:210px;padding:16px!important;border-radius:13px!important;background:#fff!important;border:1px solid #dedede!important;box-sizing:border-box}
#ws-result .ws-choice-card.is-selected{border:2px solid #1976d2!important;padding:15px!important;background:#fff!important}
#ws-result .ws-choice-image{grid-column:1;grid-row:1/4;aspect-ratio:1/1;border:0;background:#fff;border-radius:8px}
#ws-result .ws-choice-image img{object-fit:contain;width:100%;height:100%}
#ws-result .ws-choice-name{grid-column:2;grid-row:1;display:block;font-size:17px;line-height:1.35;padding-right:22px}
#ws-result .ws-choice-detail{grid-column:2;grid-row:2;min-height:0;font-size:14px;color:#777}
#ws-result .ws-choice-price{grid-column:2;grid-row:3;align-self:start;font-size:21px}
#ws-result .ws-choice-check{position:absolute;right:12px;top:12px;width:25px;height:25px;line-height:23px;background:#1976d2;color:#fff;border-color:#1976d2}
#ws-result .ws-choice-colors{padding:10px 2px 0;margin:0}
#ws-result .ws-color-caption{font-size:13px;margin-bottom:7px}
#ws-result .ws-color-dots{display:flex;align-items:center;gap:9px}
#ws-result .ws-color-dot{width:32px;height:32px;min-width:32px;border:3px solid #fff;border-radius:50%;background:var(--ws-swatch,#999);box-shadow:0 0 0 1px #ddd;cursor:pointer;padding:0}
#ws-result .ws-color-dot.is-selected{box-shadow:0 0 0 2px #1976d2}
#ws-result .ws-choice-summary{display:none!important}
#ws-result .ws-surge-set{border-bottom:0;padding-bottom:8px}
#ws-result .ws-surge-set .ws-choice-cards{grid-template-columns:minmax(0,1fr);max-width:520px}
#ws-result .ws-surge-product{min-height:180px}
#ws-result .ws-surge-components{background:#f5f7fa;border:0;border-radius:14px;padding:16px 18px;margin:8px 0 18px}
#ws-result .ws-surge-components h4{font-size:17px;margin:0 0 12px}
#ws-result .ws-surge-fields{gap:10px}
#ws-result .ws-surge-field{padding:9px 12px;background:#fff;border:1px solid #e1e3e8;border-radius:9px}
#ws-result .ws-surge-select{margin-top:3px}
#ws-result .ws-total{margin-top:20px}
@media(max-width:700px){#ws-result .ws-choice-cards{grid-template-columns:1fr}#ws-result .ws-choice-card{min-height:150px;grid-template-columns:120px minmax(0,1fr)}#ws-result .ws-surge-set .ws-choice-cards{max-width:none}}
@media(max-width:390px){#ws-result .ws-choice-card{grid-template-columns:95px minmax(0,1fr);gap:8px;padding:10px!important}#ws-result .ws-choice-card.is-selected{padding:9px!important}}
