.kforw_color_selection_wrap {

    display: flex;

    flex-wrap: wrap;

    padding-top: 10%;

    position: relative;

}

.kforw_calculation_wrap {

    margin-top: 15px;

}

input.kforw_select_color_type {

    position: absolute;

    left: 0px;

    cursor: pointer;

    top: -33px;

    margin-right: 10px;

}

input.kforw_select_color_type:focus {

    outline: none;

}

.kforw_color_selection_wrap h4.top_heading_color_selector {

    position: absolute;

    top: -4px;

    /*    left: 6px;*/

    font-size: 21px;

}



.kforw_color_swatches_wrap,

.kforw_color_manually_wrap,

.kforw_color_white_wrap {

    width: 33%;

    padding: 10px;

    box-sizing: border-box;

    position: relative;

    font-size: 10px;

}

div#kforw_white_color_box::before {

    content: "100% White";

    position: absolute;

    top: -35px;

    left: 25px;

    background-color: #fff;

    padding: 5px;

    font-size: 14px;

}

div#kforw_white_color_box {

    background-size: cover;

    background-position: center center;

    background-repeat: no-repeat;

    position: relative;

    cursor: pointer;

    border: 1px solid #000;

    text-align: center;

    padding: 8px;

    border-radius: 10px;

}

.kforw_white_color_box_inside {

    border: 1px dashed #ccc;

    padding: 60px;

}

.kforw_white_color_box_inside .button {

    padding: 9px;

    font-size: 11px;

    font-weight: 700;

    position: absolute;

    bottom: 14px;

    outline: none;

    font-weight: 500;

}

div#kforw_popup_color_box::before {

    content: "Color Selector";

    position: absolute;

    top: -35px;

    left: 25px;

    background-color: #fff;

    padding: 5px;

    font-size: 14px;

}

div#kforw_popup_color_box {

    background-size: cover;

    background-position: center center;

    background-repeat: no-repeat;

    position: relative;

    cursor: pointer;

    border: 1px solid #000;

    text-align: center;

    padding: 8px;

    border-radius: 10px;

}

.kforw_popup_color_box_inside {

    border: 1px dashed #ccc;

    padding: 60px;

}

.kforw_popup_color_box_inside .button {

    padding: 9px;

    font-size: 11px;

    font-weight: 500;

    position: absolute;

    bottom: 14px;

    outline: none;

}

div#kforw_manually_color_box {

    padding-top: 10%;

    background-size: cover;

    background-position: center center;

    background-repeat: no-repeat;

    position: relative;

    cursor: pointer;

    border: 1px solid #000;

    padding-bottom: 11.5px;

    border-radius: 10px;

}

div#kforw_manually_color_box span {

    font-size: 11px;

    padding: 0px 10px;

    display: block;

    margin-bottom: 10px;

    line-height: 12px;

    text-align: justify;

}

div#kforw_manually_color_box h4 {

    font-size: 12px;

    padding: 0px 10px;

    font-weight: 550;

    margin: -5px 0px 0px 0px;

}

.kforw_calculation_wrap h4 {

    font-size: 21px;

    font-weight: 400;

}

div#kforw_manually_color_box input {

    font-size: 14px;

    box-shadow: none;

    background: none;

    border: 1px dashed #ccc;

    border-radius: 6px;

    width: 52%;

    padding: 4px 10px 6px 10px;

    margin-left: 10px;

    margin-right: 3px;

}

div#kforw_manually_color_box::before {

    content: "Custom Color";

    position: absolute;

    top: -35px;

    left: 25px;

    background-color: #fff;

    padding: 5px;

    font-size: 14px;

}

a.kforw_select_custom.select_custom_color {

    padding: 9px 10px;

    font-size: 10px;

    font-weight: 500;

    position: absolute;

    bottom: 13px;

    outline: none;

}

.kforw_color_selection_wrap h4 {

    font-weight: 400;

}

.kforw-variation {

    display: table;

    width: 100%;

    margin-top: 8px;

}

.kforw-variation>div {

    display: table-row;

}

.kforw-variation .kforw_header span {

    font-size: 14px !important;

    display: table-cell;

    font-weight: 100;

    color: black;

    text-align: center;

    padding-bottom: 4px;

    padding-top: 6px;

    background: #b4b4b447;

}

.kforw-variation .kforw_attribute.kforwodd {

    background: #f6f6f6b5;

}

.kforw-variation .kforw_attribute.kforweven {

    background: #ffffff;

}

.kforw-variation .kforw_attribute span {

    font-size: 16px !important;

    display: table-cell;

    text-align: center;

    padding: 5px;

    color: black;

}

span.kforw_qty .kforw_number span.minus,
span.kforw_qty .kforw_number span.plus {

    width: 22px;

    height: 22px;

    background: white;

    border-radius: 50px;

    padding: 2px 0px 0px 0px;

    color: black;

    border: 1px solid #ddd;

    display: inline-block !important;

    vertical-align: middle;

    text-align: center;

    position: relative;

}

span.kforw_qty .kforw_number span {

    cursor: pointer;

}



.kforw_number {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    margin: 0;

}

.kforw-variation .kforw_attribute span.kforw_qty input {

    width: 40px;

    height: 30px;

    text-align: center;

    border: 1px solid #ccc;

    border-radius: 5px;

    -moz-appearance: textfield;

    margin: 0 5px;

    font-size: 16px;

    padding: 0px;

    box-shadow: none;

    background-color: white;

}

span.kforw_qty .kforw_number span.minus i,
span.kforw_qty .kforw_number span.plus i {

    font-size: 17px;

}

.kforw-variation .kforw_attribute p.kforw_regular_price.saleexist {

    text-decoration: line-through;

    font-size: 0.8em;

}

.kforw-variation .kforw_attribute span.kforw_price p {

    display: inline;

}

p.kforw_regular_price.saleexist span {

    color: red !important;

}

span.kforw_price_regular p,

span.kforw_price_sale p {

    margin-bottom: 0px !important;

}

.kforw_regular_price span bdi,

.kforw_price_sale span bdi {

    position: relative;

    left: 55px;

}

.kforw_total span bdi {

    position: relative;

    left: 15px;

}

.kforw_color_product_variations_wrap {

    padding: 0px 10px;

    box-sizing: border-box;

}

.kforw_color_product_variations_wrap h4 {

    font-weight: 400;

    margin-bottom: 0px !important;

}

input.manually_select_color:focus {

    outline: none;

}

.kforw_popup_body {

    display: flex;

    flex-wrap: wrap;

}

#kforw_left_wrap {

    width: 40%;

    box-sizing: border-box;

    padding: 0px 10px;

}

#kforw_rigth_wrap {

    width: 60%;

    box-sizing: border-box;

    padding: 0px 10px;

}

.thumbnail-slides {

    display: flex;

    justify-content: flex-start;

    gap: 10px;

    padding-top: 10px;

}

.thumbnail-slide {

    width: auto;

    height: 100px;

    cursor: pointer;

}

.mySlides {

    display: none;

}

.mySlides.active {

    display: block;

}

.slideshow-container {

    max-width: 500px;

    max-height: 500px;

    overflow: hidden;

}

.mySlides {

    width: 100%;

    height: 100%;

}

.kforw_header_title {

    text-align: center;

    font-size: 12px;

}

.kforw_category_top {

    display: flex;

    flex-wrap: wrap;

    gap: 10px;

}

.kforw_swatch {

    cursor: pointer;

    display: flex;

    flex-direction: column;

    align-items: center;

    width: calc(9% - 5px);

    max-width: 120px;

}

.kforw_swatch_bg {

    width: 45px;

    height: 45px;

}

.kforw_swatch_name {

    font-size: 12px;

    text-align: center;

    margin-top: 5px;

    text-transform: uppercase;

    background-color: #ed5521;

    color: white;

    width: 60px;

    padding: 2px;

    border: 2px solid white;

    border-radius: 8px;

    margin-left: 20%;

}

.kforw_search input {

    width: 100%;

    border-radius: 5px;

    box-shadow: unset;

    border: 1px solid #ccc;

    background: unset;

    font-size: 15px;

    padding: 5px;

    -webkit-border-radius: 5px;

    -moz-border-radius: 5px;

    -ms-border-radius: 5px;

    -o-border-radius: 5px;

}

.kforw_search {

    margin-top: 15px;

}

.kforw_search input:focus {

    outline: none;

}

.kforw_swatches_col_wrap .kforw_color_container {

    height: 400px;

    overflow-x: hidden;

    margin: 0 -10px;

}

.kforw_swatches_col_wrap .kforw_farve {

    border: 1px solid #6a6a6a52;

    -webkit-transition: all .5s ease;

    -moz-transition: all .5s ease;

    -ms-transition: all .5s ease;

    -o-transition: all .5s ease;

    transition: all .5s ease;

    cursor: pointer;

    margin: 5px;

    line-height: 40px;

    overflow: hidden;

    width: calc(25% - 10px);

    position: relative;

    float: left;

    width: calc(11% - 5px);



}

.kforw_swatches_col_wrap .kforw_farve .kforw_farve_bg {

    height: 50px;

}

.kforw_swatches_col_wrap .kforw_farve .kforw_farve_hover {

    padding: 5px 0 5px 10px;

    border-top: 1px solid #f2f2f2;

}

.kforw_swatches_col_wrap .kforw_farve .kforw_farve_hover>div {

    line-height: 16px;

}

.kforw_swatches_col_wrap .kforw_farve .kforw_farve_navn {

    font-size: 10px;

    font-weight: 800;

}

.kforw_swatches_col_wrap .kforw_farve .kforw_farve_hover>div {

    line-height: 16px;

}

.kforw_farve_kort {

    font-size: 12px;

    padding-top: 4px;

}

.kforw_swatches_col_wrap {

    margin-top: 12px;

}

.kforw_swatch_bg.active {

    border: 1px dotted black;

}

.kforw_footer_container {

    position: relative;

    padding-bottom: 60px;

}

.button_container {

    display: flex;

    justify-content: space-between;

    position: absolute;

    bottom: 0;

    left: 0;

    width: 100%;

}

.button_container button {

    width: 48%;
    /* Adjust the width as needed */

    padding: 10px;

}

.button_container button.kforw_buttons:focus {

    outline: none;

}

button.kforw_buttons {

    background: none;

    border: 1px solid #ccc;

    border-radius: 10px;

    padding: 6px 0px;

    font-weight: 500;

}

.kforw_calcualtion_product_wrap {
    margin-top: 25px;
    background: #fdfdfd;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    padding: 20px 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.kforw_calcualtion_product_wrap h4 {
    margin-top: 0;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

.kforw_inner_calcualtion_box {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: center;
    position: relative;
    cursor: default;
    text-align: left;
}

.kforw_dimenssion_left_cal {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-end;
    flex: 1;
}

.dimensions_wrap {
    display: flex;
    gap: 15px;
}

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

.dimension_label, 
.layers_wrap label, 
.total_wrap label {
    font-size: 14px;
    font-weight: 500;
    color: #555;
    margin: 0;
}

.dimensions input[type="text"], 
.total_wrap input, 
.layers select {
    padding: 10px 14px;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    background-color: #fff;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.02);
}

.dimensions input[type="text"]:focus, 
.total_wrap input:focus, 
.layers select:focus {
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.dimensions input[type="text"] {
    width: 90px;
}

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

.layers {
    display: flex;
    align-items: center;
    gap: 12px;
}

.layers span {
    font-size: 16px;
    color: #888;
    font-weight: 600;
}

.layers select {
    cursor: pointer;
}

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

.total {
    display: flex;
    align-items: center;
    gap: 10px;
}

.total_wrap input {
    width: 110px;
    background: #f9f9f9 !important;
}

.total span {
    font-size: 16px;
    color: #555;
    font-weight: 600;
}

.kforw_total_right_cal {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 240px;
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

#totalvolumn_kforw {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.totalright_selection {
    margin-top: 5px;
}

a#button_kforw_selection_liter {
    display: block;
    background: #333;
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
    border: none;
}

a#button_kforw_selection_liter:hover {
    background: #000;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.kforw_addtocart_product_wrap {

    margin-top: 25px;

}

button.kforw-add-tocart {

    background: #eeeeee;

    color: black;

    font-weight: 500;

    border: 1px solid #ccc;

    padding: 6px 35px;

    font-size: 15px;

    border-color: #eeeeee;

}

input.kforw_line_quantity::-webkit-outer-spin-button,

input.kforw_line_quantity::-webkit-inner-spin-button,

input.kforw_standard_variation_qty::-webkit-outer-spin-button,

input.kforw_standard_variation_qty::-webkit-inner-spin-button {

    -webkit-appearance: none;

    margin: 0;

}

input.kforw_line_quantity[type=number],

input.kforw_standard_variation_qty[type=number] {

    -moz-appearance: textfield;

}



.kforw_select_color_type {

    -webkit-appearance: none;

    display: block;

    margin: 10px;

    width: 24px;

    height: 24px;

    cursor: pointer;

    vertical-align: middle;

    box-shadow: hsla(0, 0%, 100%, .15) 0 1px 1px, inset hsla(0, 0%, 0%, .5) 0 0 0 1px;

    background-image: -webkit-radial-gradient(hsla(200, 100%, 90%, 1) 0%, hsla(200, 100%, 70%, 1) 15%, hsla(200, 100%, 60%, .3) 28%, hsla(200, 100%, 30%, 0) 70%);

    background-repeat: no-repeat;

    -webkit-transition: background-position .15s cubic-bezier(.8, 0, 1, 1),

        -webkit-transform 1s cubic-bezier(.8, 0, 1, 1);

    outline: none;

}

.kforw_select_color_type:checked {

    -webkit-transition: background-position .2s .15s cubic-bezier(0, 0, .2, 1),

        -webkit-transform .25s cubic-bezier(0, 0, .2, 1);

}

.kforw_select_color_type:active {

    -webkit-transform: scale(1.5);

    -webkit-transition: -webkit-transform .1s cubic-bezier(0, 0, .2, 1);

}

.kforw_select_color_type,

.kforw_select_color_type:active {

    background-position: 0 24px;

}

.kforw_select_color_type:checked {

    background-position: 0 0;

}

.kforw_select_color_type:checked~.kforw_select_color_type,

.kforw_select_color_type:checked~.kforw_select_color_type:active {

    background-position: 0 -24px;

}



a.kforw_select_custom.select_custom_color.button.button-alt {

    padding: 9px 10px;

    font-size: 10px;

    font-weight: 500;

    position: absolute;

    bottom: 13px;

    outline: none;

    width: 65px;

}



.woocommerce div.product form.cart .button {

    vertical-align: middle;

    float: left;

    padding: 9px;

    font-size: 10px;

    font-weight: 500;

    position: absolute;

    bottom: 12px;

    outline: none;

    width: 65px;

    height: 40px;

}





@media (max-width: 1300px) {

    .kforw_swatches_col_wrap .kforw_farve {

        width: calc(11% - 4px);

    }

    .kforw_swatches_col_wrap .kforw_farve .kforw_farve_bg {

        height: 45px;

    }

    .kforw_swatches_col_wrap .kforw_farve .kforw_farve_navn {

        font-size: 8px;

        font-weight: 800;

        margin: 0px 0px -5px -5px;

    }

    .kforw_color_selection_wrap h4.top_heading_color_selector {

        top: -30px;



    }

    .kforw_white_color_box_inside,
    .kforw_popup_color_box_inside {

        padding: 60px 45px 60px 0px;

    }

}











@media screen and (max-width: 768px) {

    #kforw_left_wrap,

    #kforw_rigth_wrap {

        width: 100%;

    }

    .kforw_swatches_col_wrap .kforw_farve {

        width: calc(23% - 5px);

    }

    .kforw_regular_price span bdi,

    .kforw_price_sale span bdi,

    .kforw_total span bdi {

        position: static !important;
        left: auto;

    }

}

@media (max-width: 768px) {

    .kforw-variation {
        display: block;
    }

    .kforw-variation .kforw_header {
        display: grid !important;
        grid-template-columns: minmax(35px, 1fr) max-content max-content max-content;
        gap: 4px;
        border-bottom: 2px solid #ddd;
        padding-bottom: 6px;
        margin-bottom: 6px;
    }

    .kforw-variation .kforw_header span:nth-child(1) { grid-column: 1; text-align: left; }
    .kforw-variation .kforw_header span:nth-child(3) { grid-column: 2; }
    .kforw-variation .kforw_header span:nth-child(2) { grid-column: 3; }
    .kforw-variation .kforw_header span:nth-child(5) { grid-column: 4; text-align: right; }
    .kforw-variation .kforw_header span:nth-child(4) { display: none !important; }

    .kforw-variation .kforw_header span {
        font-size: 11px !important;
        font-weight: 600;
        color: #888;
        background: transparent !important;
        padding: 0 !important;
        display: block !important;
        text-transform: uppercase;
        border: none;
    }

    .kforw-variation>div {
        display: grid;
        grid-template-columns: minmax(35px, 1fr) max-content max-content max-content;
        gap: 4px;
        align-items: center;
        margin-bottom: 0;
        border: none;
        border-bottom: 1px solid #f0f0f0;
        border-radius: 0;
        padding: 8px 0;
        background: transparent;
    }

    .kforw-variation .kforw_attribute span {
        display: flex !important;
        justify-content: center;
        align-items: center;
        box-sizing: border-box;
        font-size: 13px !important;
        padding: 0;
        border-bottom: none;
        margin: 0;
    }

    .kforw-variation .kforw_attribute span.kforw_size {
        grid-column: 1;
        justify-content: flex-start;
        font-weight: 600;
        color: #333;
        font-size: 13px !important;
    }

    .kforw-variation .kforw_attribute span.kforw_price_regular {
        grid-column: 2;
        grid-row: 1;
        font-size: 12px !important;
        white-space: nowrap;
    }

    .kforw-variation .kforw_attribute span.kforw_price_sale {
        grid-column: 2;
        grid-row: 2;
        font-size: 12px !important;
        color: #d00;
        white-space: nowrap;
    }

    .kforw-variation .kforw_attribute span.kforw_qty {
        grid-column: 3;
        grid-row: 1 / 3;
        white-space: nowrap;
    }

    .kforw-variation .kforw_attribute span.kforw_total {
        grid-column: 4;
        grid-row: 1 / 3;
        justify-content: flex-end;
        font-weight: 700;
        color: #222;
        font-size: 13px !important;
        white-space: nowrap;
    }
    
    /* Forza il simbolo euro a non andare mai a capo con flexbox */
    .kforw-variation .amount,
    .kforw-variation bdi {
        display: inline-flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: baseline !important;
        white-space: nowrap !important;
    }
    
    .kforw-variation .woocommerce-Price-currencySymbol {
        display: inline-block !important;
        white-space: nowrap !important;
        margin-left: 2px;
    }
    
    .kforw-variation .kforw_attribute span::before {
        content: none !important;
    }

    span.kforw_qty .kforw_number {
        margin: 0;
        transform: scale(0.85);
        transform-origin: center;
    }

    .kforw_category_top {

        margin-top: -25px;

        gap: 40px;

    }

}

@media (max-width: 768px) {

    .kforw_color_swatches_wrap,

    .kforw_color_manually_wrap,

    .kforw_color_white_wrap {

        width: 100%;

        margin: 15px 0px 15px 0px;

    }

}

@media (max-width: 768px) {

    .kforw_calcualtion_product_wrap {
        padding: 15px;
    }

    .kforw_inner_calcualtion_box {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }

    .kforw_dimenssion_left_cal {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .dimensions_wrap {
        flex-direction: row;
        width: 100%;
        justify-content: space-between;
    }

    .dimensions {
        flex: 1;
    }

    .dimensions input[type="text"] {
        width: 100%;
    }
    
    .layers_wrap, .total_wrap {
        width: 100%;
    }
    
    .layers select {
        flex: 1;
    }
    
    .total_wrap input {
        flex: 1;
        width: auto;
    }
    
    .kforw_total_right_cal {
        min-width: unset;
        width: 100%;
        box-sizing: border-box;
    }

    .kforw_swatch {

        margin: 0px auto;

    }

}

@media (max-width: 480px) {

    .kforw_category_top {

        margin-top: -60px;

    }



    div#kforw_manually_color_box h4 {

        margin: -10px 0 5px;

    }

    .kforw_regular_price span bdi,

    .kforw_price_sale span bdi,

    .kforw_total span bdi {

        position: static !important;
        left: auto;

    }

}



@media (max-width: 375px) {

    .kforw_category_top {

        margin-top: -70px;

        margin-bottom: -5px;

    }

}

@media screen and (max-width: 1280px) and (min-width: 769px) {}

/* ── Fix swatch grid layout between 769px and 1450px ───────────────────────
   Problema: float:left + etichette di altezza variabile causano il "snagging"
   della seconda riga. Soluzione: flexbox sul contenitore + larghezza fissa.
   Valido per tutti i tab: NATURE, PASTEL, 120K, 1080K, BASE. */
@media screen and (min-width: 769px) and (max-width: 1450px) {

    .kforw_swatches_col_wrap .kforw_color_container {
        display: flex;
        flex-wrap: wrap;
        align-content: flex-start; /* evita distribuzione verticale extra */
        align-items: flex-start;
        overflow-y: auto;          /* scroll esplicito per tab con molti colori (es. PASTEL 400+) */
        margin: 0 -5px;
    }

    .kforw_swatches_col_wrap .kforw_farve {
        float: none;               /* annulla il float ereditato */
        width: calc(16.66% - 10px); /* ~6 colonne per riga nel pannello dx */
        margin: 5px;
        box-sizing: border-box;
        align-self: flex-start;    /* evita che le celle si allunghino verticalmente */
    }
}



@media screen and (min-width: 768px) {

    .kforw_swatch {

        width: calc(15% - 5px);

    }

}

/* Sovrascrive il valore precedente per il range 769-1450px.
   Posizionato DOPO la regola min-width:768px per vincere la cascade. */
@media screen and (min-width: 769px) and (max-width: 1450px) {

    .kforw_swatch {
        width: calc(18% - 5px);
    }

}

/* ── Fix layout "Selettore colori" prodotto tra 769px e 1100px ──────────────
   A 33% ciascuno i tre box sono troppo stretti: il testo e il pulsante di
   "Tinte personalizzate" fuoriescono. Layout corretto:
   · riga 1: Bianco 50% + Catalogo Colori 50%
   · riga 2: Tinte personalizzate 100%                                       */
@media screen and (min-width: 769px) and (max-width: 1100px) {

    .kforw_color_selection_wrap {
        flex-wrap: wrap;
    }

    .kforw_color_white_wrap,
    .kforw_color_swatches_wrap {
        width: 50%;
        margin-bottom: 15px;
    }

    .kforw_color_manually_wrap {
        width: 100%;
    }

}

/* Color Catalog Page Styles */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600&display=swap');

.kforw-color-catalog-page .kforw-catalog-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    font-family: 'Montserrat', sans-serif;
}

.kforw-color-catalog-page .kforw-catalog-header {
    text-align: center;
    margin-bottom: 2rem;
}

.kforw-color-catalog-page .kforw-catalog-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: #2c2c2c;
    margin-bottom: 0.5rem;
}

.kforw-color-catalog-page .kforw-catalog-description {
    font-size: 1.1rem;
    color: #888;
    line-height: 1.6;
}

.kforw-color-catalog-page .kforw-catalog-nav {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 3rem;
    text-align: center;
    position: -webkit-sticky;
    position: sticky;
    top: 20px;
    z-index: 1000;
}

.kforw-color-catalog-page .kforw-catalog-nav label {
    font-weight: 600;
    margin-right: 1rem;
    color: #4a4a4a;
}

.kforw-color-catalog-page #kforw-nav-select {
    padding: 0.5rem 1rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #fff;
    cursor: pointer;
    outline: none;
    transition: outline 0.2s ease;
}

.kforw-color-catalog-page #kforw-nav-select:focus {
    outline: 2px solid #007bff;
}

.kforw-color-catalog-page .kforw-catalog-section {
    padding-top: 120px;
    margin-top: -100px;
}

.kforw-color-catalog-page .kforw-catalog-section-title {
    font-size: 1.8rem;
    color: #2c2c2c;
    border-bottom: 2px solid #dee2e6;
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
}

.kforw-color-catalog-page .kforw-catalog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 3rem;
}

.kforw-color-catalog-page .kforw-catalog-card-wrapper {
    position: relative;
}

.kforw-color-catalog-page .kforw-catalog-card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.2s ease;
    border: 1px solid #f0f0f0;
    margin: 0;
}

.kforw-color-catalog-page .kforw-catalog-card:hover {
    transform: translateY(-3px);
}

.kforw-color-catalog-page .kforw-catalog-swatch {
    aspect-ratio: 1 / 1;
    background-size: cover;
    background-position: center;
}

.kforw-color-catalog-page .kforw-catalog-info {
    padding: 5px;
    text-align: center;
    border-top: 1px solid #f0f0f0;
    background: #ffffff;
}

.kforw-color-catalog-page .kforw-catalog-color-code {
    font-size: 0.9em;
    font-weight: 600;
    margin: 0;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 5px;
}

/* Modal CSS-based */
.kforw-color-catalog-page .kforw-modal-toggle {
    display: none;
}

.kforw-color-catalog-page .kforw-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s 0.3s;
    cursor: default;
}

.kforw-color-catalog-page .kforw-modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    z-index: 1002;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    text-align: center;
}

.kforw-color-catalog-page .kforw-modal-toggle:checked ~ .kforw-modal-overlay {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
}

.kforw-color-catalog-page .kforw-modal-toggle:checked ~ .kforw-modal-content {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.kforw-color-catalog-page .kforw-modal-swatch {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 5px;
    margin-bottom: 1.5rem;
}

.kforw-color-catalog-page .kforw-modal-code {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #333;
}

.kforw-color-catalog-page .kforw-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    color: #aaa;
    cursor: pointer;
    text-decoration: none;
    line-height: 1;
}

.kforw-color-catalog-page .kforw-modal-close:hover {
    color: #333;
}

.kforw-color-catalog-page .kforw-modal-product-link {
    display: inline-block;
    background: #1a1a1a;
    color: #fff !important;
    text-decoration: none !important;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 15px;
    margin-top: 10px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.kforw-color-catalog-page .kforw-modal-product-link:hover {
    background: #000;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.kforw-color-catalog-page .kforw-catalog-empty {
    text-align: center;
    font-size: 1.2rem;
    color: #888;
    padding: 2rem;
}

/* Responsive grid */
@media (max-width: 992px) {
    .kforw-color-catalog-page .kforw-catalog-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .kforw-color-catalog-page .kforw-catalog-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }
    .kforw-color-catalog-page .kforw-catalog-color-code {
        font-size: 0.6em;
    }
}

@media (max-width: 600px) {
    .kforw-color-catalog-page .kforw-catalog-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }
    .kforw-color-catalog-page .kforw-catalog-wrapper {
        padding: 1rem;
    }
    .kforw-color-catalog-page .kforw-catalog-title {
        font-size: 2rem;
    }
    .kforw-color-catalog-page .kforw-catalog-nav {
        top: 10px;
    }
}

/* Specific Term Layout Overrides */

/* --- 1080k: > 768px -> 8 columns, <= 768px -> 4 columns --- */
@media (min-width: 769px) {
    .kforw-color-catalog-page.kforw-term-1080k .kforw-catalog-grid,
    .kforw-color-catalog-page .kforw-term-1080k .kforw-catalog-grid {
        grid-template-columns: repeat(8, 1fr) !important;
    }
    .kforw-color-catalog-page.kforw-term-1080k .kforw-catalog-color-code {
        font-size: 0.7em !important;
        padding: 3px !important;
    }
}
@media (max-width: 768px) {
    .kforw-color-catalog-page.kforw-term-1080k .kforw-catalog-grid,
    .kforw-color-catalog-page .kforw-term-1080k .kforw-catalog-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

/* --- 120k & Nature: > 768px -> 5 columns, <= 768px -> 3 columns --- */
@media (min-width: 769px) {
    .kforw-color-catalog-page.kforw-term-120k .kforw-catalog-grid,
    .kforw-color-catalog-page .kforw-term-120k .kforw-catalog-grid,
    .kforw-color-catalog-page.kforw-term-nature .kforw-catalog-grid,
    .kforw-color-catalog-page .kforw-term-nature .kforw-catalog-grid {
        grid-template-columns: repeat(5, 1fr) !important;
    }
    .kforw-color-catalog-page.kforw-term-120k .kforw-catalog-color-code,
    .kforw-color-catalog-page.kforw-term-nature .kforw-catalog-color-code {
        font-size: 0.8em !important;
        padding: 4px !important;
    }
}
@media (max-width: 768px) {
    .kforw-color-catalog-page.kforw-term-120k .kforw-catalog-grid,
    .kforw-color-catalog-page .kforw-term-120k .kforw-catalog-grid,
    .kforw-color-catalog-page.kforw-term-nature .kforw-catalog-grid,
    .kforw-color-catalog-page .kforw-term-nature .kforw-catalog-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* --- Optional Products CSS --- */
.kforw_optional_products_container {
    margin-top: 15px;
    margin-bottom: 15px;
    background: #fbfbfb;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.01);
}

.kforw_optional_title {
    font-size: 1.05em !important;
    font-weight: 600 !important;
    color: #222;
    margin-top: 0 !important;
    margin-bottom: 10px !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

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

.kforw_optional_product_row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 10px 12px;
    gap: 12px;
    transition: all 0.2s ease;
}

.kforw_optional_product_row:hover {
    border-color: #ed5521;
    box-shadow: 0 2px 6px rgba(237, 85, 33, 0.06);
}

.kforw_optional_product_row.kforw_optional_active {
    border-color: #ed5521;
    background-color: #fffaf8;
}

.kforw_optional_left {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

/* Custom Checkbox Styling */
.kforw_checkbox_label {
    display: inline-block;
    position: relative;
    width: 16px;
    height: 16px;
    margin-top: 10px;
    cursor: pointer;
    user-select: none;
    flex-shrink: 0;
}

.kforw_checkbox_label input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.kforw_custom_checkbox {
    position: absolute;
    top: 0;
    left: 0;
    height: 16px;
    width: 16px;
    background-color: #fff;
    border: 2px solid #ccc;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.kforw_checkbox_label:hover input ~ .kforw_custom_checkbox {
    border-color: #ed5521;
}

.kforw_checkbox_label input:checked ~ .kforw_custom_checkbox {
    background-color: #ed5521;
    border-color: #ed5521;
}

.kforw_custom_checkbox:after {
    content: "";
    position: absolute;
    display: none;
}

.kforw_checkbox_label input:checked ~ .kforw_custom_checkbox:after {
    display: block;
}

.kforw_checkbox_label .kforw_custom_checkbox:after {
    left: 4px;
    top: 1px;
    width: 4px;
    height: 7px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.kforw_optional_thumb {
    width: 36px;
    height: 36px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #eee;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.kforw_optional_thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.kforw_optional_details {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

.kforw_optional_name {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}

.kforw_optional_meta_row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.kforw_optional_price {
    font-size: 12px;
    color: #666;
    white-space: nowrap;
}

.kforw_optional_price ins {
    text-decoration: none;
    font-weight: 600;
    color: #111;
}

.kforw_optional_variation_wrap {
    margin: 0;
    flex: 0 1 auto;
}

.kforw_optional_variation_select {
    display: block;
    width: 100%;
    max-width: 220px;
    height: auto;
    font-size: 12px !important;
    font-weight: 500;
    color: #444;
    line-height: 1.4;
    padding: 4px 20px 4px 8px !important;
    background-color: #fff !important;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 8px center !important;
    background-size: 12px !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02) !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
    cursor: pointer;
}

.kforw_optional_variation_select:focus {
    border-color: #ed5521 !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(237, 85, 33, 0.1) !important;
}

.kforw_optional_badge {
    font-size: 10px;
    display: inline-block;
    padding: 1px 6px;
    border-radius: 10px;
    font-weight: 600;
    align-self: center;
    margin-top: 0;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
    flex-shrink: 0;
}

.kforw_optional_badge.badge_fixed {
    background-color: #e2e2e2;
    color: #444;
}

.kforw_optional_badge.badge_yield {
    background-color: #eaf6ff;
    color: #0073aa;
}

.kforw_optional_right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
    align-self: stretch;
    flex-shrink: 0;
}

.optional_qty_wrapper {
    background: #f1f1f1;
    border-radius: 15px;
    padding: 1px;
    display: inline-flex;
    align-items: center;
}

.optional_qty_wrapper span.minus,
.optional_qty_wrapper span.plus {
    width: 20px !important;
    height: 20px !important;
    background: #fff !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    border-radius: 50%;
    cursor: pointer;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.optional_qty_wrapper span.minus i,
.optional_qty_wrapper span.plus i {
    font-size: 10px !important;
    width: 10px !important;
    height: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.optional_qty_wrapper input.kforw_optional_qty {
    width: 24px !important;
    height: 20px !important;
    background: transparent !important;
    border: none !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #222 !important;
    margin: 0 2px !important;
    padding: 0 !important;
    text-align: center !important;
    box-shadow: none !important;
    -moz-appearance: textfield !important;
    appearance: none !important;
}

.optional_qty_wrapper input.kforw_optional_qty::-webkit-outer-spin-button,
.optional_qty_wrapper input.kforw_optional_qty::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

.kforw_optional_row_total {
    font-size: 13px;
    font-weight: 700;
    color: #111;
    min-width: 60px;
    text-align: right;
    line-height: 1.3;
}

/* Responsiveness */
@media (max-width: 768px) {
    .kforw_optional_product_row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 10px;
    }
    .kforw_optional_left {
        width: 100%;
        gap: 8px;
    }
    .kforw_checkbox_label {
        margin-top: 10px;
    }
    .kforw_optional_details {
        gap: 6px;
    }
    .kforw_optional_meta_row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    .kforw_optional_variation_wrap {
        width: 100%;
        max-width: 100%;
    }
    .kforw_optional_variation_select {
        max-width: 100%;
    }
    .kforw_optional_right {
        width: 100%;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        border-top: 1px dashed #eee;
        padding-top: 8px;
        align-self: auto;
    }
}

@media (max-width: 480px) {
    .kforw_optional_left {
        gap: 10px;
    }
    .kforw_optional_name {
        font-size: 0.9em;
    }
}

/* Custom Modal Styles */
.kforw_optional_modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.kforw_optional_modal.kforw_modal_open {
    display: flex !important;
}

.kforw_optional_modal_overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    transition: opacity 0.3s ease;
}

.kforw_optional_modal_wrapper {
    position: relative;
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 600px;
    max-height: 90%;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    z-index: 2;
    animation: kforwModalFadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
}

@keyframes kforwModalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.kforw_optional_modal_close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: transparent;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #888;
    cursor: pointer;
    transition: color 0.2s ease;
    padding: 0;
    z-index: 10;
    box-shadow: none !important;
}

.kforw_optional_modal_close:hover {
    color: #ed5521;
}

.kforw_optional_modal_body {
    display: flex;
    padding: 30px;
    gap: 24px;
    box-sizing: border-box;
}

.kforw_optional_modal_image_wrap {
    width: 200px;
    flex-shrink: 0;
    display: flex;
    align-items: flex-start;
}

.kforw_optional_modal_image_wrap img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid #eee;
    object-fit: cover;
}

.kforw_optional_modal_details_wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.kforw_optional_modal_title {
    font-size: 1.3em !important;
    font-weight: 700 !important;
    color: #222 !important;
    margin: 0 !important;
    line-height: 1.3 !important;
}

.kforw_optional_modal_price {
    font-size: 1.25em;
    font-weight: 700;
    color: #ed5521;
}

.kforw_optional_modal_price del {
    font-size: 0.8em;
    color: #999;
    font-weight: normal;
}

.kforw_optional_modal_desc {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
}

.kforw_optional_modal_desc p {
    margin-bottom: 8px !important;
}

.kforw_optional_modal_actions {
    margin-top: 10px;
}

.woocommerce a.button.kforw_optional_modal_link_btn,
.woocommerce-page a.button.kforw_optional_modal_link_btn,
.kforw_optional_modal_wrapper a.button.kforw_optional_modal_link_btn,
.kforw_optional_modal_link_btn {
    display: inline-block !important;
    background-color: #ed5521 !important;
    color: #fff !important;
    padding: 8px 16px !important;
    border-radius: 4px !important;
    font-weight: 700 !important;
    font-size: 11px !important;
    text-decoration: none !important;
    text-align: center !important;
    min-width: 150px !important;
    white-space: nowrap !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    transition: background-color 0.2s ease !important;
    box-sizing: border-box !important;
    height: auto !important;
    line-height: 1.5 !important;
    position: relative !important;
    float: none !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
}

.woocommerce a.button.kforw_optional_modal_link_btn:hover,
.woocommerce-page a.button.kforw_optional_modal_link_btn:hover,
.kforw_optional_modal_wrapper a.button.kforw_optional_modal_link_btn:hover,
.kforw_optional_modal_link_btn:hover {
    background-color: #d44413 !important;
    color: #fff !important;
}

@media (max-width: 600px) {
    .woocommerce a.button.kforw_optional_modal_link_btn,
    .woocommerce-page a.button.kforw_optional_modal_link_btn,
    .kforw_optional_modal_wrapper a.button.kforw_optional_modal_link_btn {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin: 15px 0 0 0 !important;
        float: none !important;
        position: relative !important;
        text-align: center !important;
        height: auto !important;
        line-height: 1.5 !important;
    }
}

.kforw_optional_info_trigger {
    display: inline-flex;
    align-items: center;
    color: #ed5521;
    cursor: pointer;
    transition: all 0.2s ease;
    vertical-align: middle;
    margin-left: 8px;
    flex-shrink: 0;
    opacity: 0.85;
}

.kforw_optional_info_trigger:hover {
    color: #d44413;
    transform: scale(1.1);
    opacity: 1;
}

.kforw_optional_info_trigger svg {
    display: block;
}

/* Make name and thumbnail hoverable */
.kforw_optional_name {
    cursor: pointer;
    transition: color 0.2s ease;
}

.kforw_optional_name:hover {
    color: #ed5521;
}

.kforw_optional_thumb {
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.kforw_optional_thumb:hover {
    border-color: #ed5521;
}

/* Responsive Modal */
@media (max-width: 600px) {
    .kforw_optional_modal_body {
        flex-direction: column;
        padding: 20px;
        gap: 15px;
    }
    .kforw_optional_modal_image_wrap {
        width: 100%;
        justify-content: center;
    }
    .kforw_optional_modal_image_wrap img {
        max-width: 150px;
    }
    .kforw_optional_modal_wrapper {
        max-height: 95%;
    }
}