/* ======================================================
   Woo Chair Builder
====================================================== */

.wcb-wrapper{
    width:100%;
    padding:40px 0;
}

.wcb-container{
    max-width:1400px;
    margin:0 auto;
    display:flex;
    gap:60px;
    align-items:flex-start;
    padding:0 20px;
}

/* ======================================================
   LEFT
====================================================== */

.wcb-left{
    width:50%;
    position:sticky;
    top:30px;
}

.wcb-preview-wrap{
    background:#fff;
    border:1px solid #e5e5e5;
    padding:20px;
    border-radius:10px;
}

.wcb-preview{
    position:relative;
}

.wcb-main-image{
    width:100%;
    display:block;
    height:auto;
}

.wcb-live-preview{
    margin-top:25px;
    display:flex;
    gap:20px;
}

.wcb-preview-seat,
.wcb-preview-frame{
    width:120px;
    height:120px;
    border-radius:12px;
    border:1px solid #ddd;
}

/* ======================================================
   RIGHT
====================================================== */

.wcb-right{
    width:50%;
}

.wcb-title{
    font-size:36px;
    font-weight:700;
    margin-bottom:25px;
    line-height:1.2;
}

.wcb-price-row{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:30px;
    font-size:20px;
    font-weight:600;
}

/* ======================================================
   SECTION
====================================================== */

.wcb-section{
    margin-bottom:40px;
}

.wcb-heading{
    font-size:24px;
    margin-bottom:20px;
    font-weight:700;
}

.wcb-color-group{
    margin-bottom:25px;
}

.wcb-color-group h4{
    margin-bottom:12px;
    font-size:16px;
    font-weight:600;
}

/* ======================================================
   SWATCHES
====================================================== */

.wcb-swatches{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
}

.wcb-swatch{
    width:100px;
    min-height:110px;
    border:1px solid #ddd;
    border-radius:10px;
    padding:12px;
    cursor:pointer;
    text-align:center;
    transition:all .25s ease;
    background:#fff;
    position:relative;
}

.wcb-swatch:hover{
    border-color:#111;
    transform:translateY(-2px);
}

.wcb-swatch.selected{
    border:2px solid #111;
    box-shadow:0 4px 12px rgba(0,0,0,.1);
}

.wcb-swatch input{
    display:none;
}

.wcb-swatch-circle{
    width:42px;
    height:42px;
    border-radius:50%;
    display:block;
    margin:0 auto 10px;
    border:2px solid #ddd;
}

.wcb-color-name{
    display:block;
    font-size:13px;
    font-weight:600;
    line-height:1.3;
}

/* ======================================================
   PREMIUM
====================================================== */

.wcb-swatch.premium{
    border-color:#d4af37;
}

.wcb-swatch.premium::before{
    content:"Premium";
    position:absolute;
    top:-10px;
    left:50%;
    transform:translateX(-50%);
    background:#d4af37;
    color:#fff;
    font-size:11px;
    padding:3px 8px;
    border-radius:20px;
    font-weight:600;
}

.wcb-premium-note{
    display:block;
    margin-top:5px;
    font-size:12px;
    color:#d4af37;
    font-weight:600;
}

/* ======================================================
   SUMMARY
====================================================== */

.wcb-summary{
    border:2px solid #111;
    border-radius:12px;
    padding:25px;
    margin-top:30px;
    background:#fafafa;
}

.wcb-summary h3{
    margin:0 0 20px;
    font-size:22px;
    font-weight:700;
}

.wcb-summary-row{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:10px 0;
    border-bottom:1px solid #ececec;
}

.wcb-summary-row:last-child{
    border-bottom:none;
}

.wcb-summary-row.total{
    font-size:24px;
    font-weight:700;
    padding-top:20px;
}

/* ======================================================
   BUTTON
====================================================== */

.wcb-actions{
    margin-top:25px;
}

.wcb-add-cart{
    width:100%;
    height:58px;
    font-size:18px !important;
    font-weight:700 !important;
}

/* ======================================================
   HOVER
====================================================== */

.wcb-swatch.hovering{
    box-shadow:0 8px 18px rgba(0,0,0,.12);
}

/* ======================================================
   ERRORS
====================================================== */

.wcb-error{
    color:#d63638;
    margin-top:10px;
    font-size:14px;
}

/* ======================================================
   MOBILE
====================================================== */

@media(max-width:991px){

    .wcb-container{
        flex-direction:column;
    }

    .wcb-left,
    .wcb-right{
        width:100%;
    }

    .wcb-left{
        position:relative;
        top:auto;
    }

    .wcb-title{
        font-size:28px;
    }
}

@media(max-width:767px){

    .wcb-wrapper{
        padding:20px 0;
    }

    .wcb-container{
        gap:30px;
        padding:0 15px;
    }

    .wcb-swatches{
        justify-content:center;
    }

    .wcb-swatch{
        width:90px;
    }

    .wcb-summary-row.total{
        font-size:20px;
    }

    .wcb-add-cart{
        height:52px;
    }
}