/* ==========================================
   KIMIA NATURIS
   SINGLE PRODUCT
========================================== */


/* ==========================================
   PRODUCT PAGE
========================================== */

.kn-product-page {
    width: 100%;
    background: #ffffff;
    padding: 32px 24px 60px;
}

.kn-product-container {
    width: 100%;
    max-width: 1680px;

    margin: 0 auto;

    display: grid;
    grid-template-columns: minmax(0, 45%) minmax(0, 55%);

    gap: 32px;
    align-items: start;
}

.kn-product-left,
.kn-product-right {
    min-width: 0;
}


/* ==========================================
   PRODUCT IMAGE
========================================== */

.kn-product-image-card {
    margin-bottom: 20px;

    background: #f8f4ec;

    border-radius: 14px;

    overflow: hidden;
}

.kn-product-image-card img {
    display: block;

    width: 100%;
    height: auto;

    object-fit: cover;
}


/* ==========================================
   PRODUCT INFORMATION
========================================== */

.kn-product-title {
    margin: 0 0 10px;

    color: #123f22;

    font-size: 34px;
    line-height: 1.15;
    font-weight: 800;
}

.kn-product-rating {
    margin-bottom: 18px;
}

.kn-product-description {
    max-width: 560px;

    margin-bottom: 34px;

    color: #26352b;

    font-size: 15px;
    line-height: 1.7;
}


/* ==========================================
   REVIEWS
========================================== */

.kn-product-reviews-card {
    padding-top: 24px;

    border-top: 1px solid #e7e7e7;
}


/* ==========================================
   PRODUCT BUILDER CARD
========================================== */

.kn-builder-card {
    width: 100%;
    min-width: 0;

    padding: 28px;

    background: #ffffff;

    border: 1px solid #dedede;
    border-radius: 16px;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}


/* ==========================================
   HIDE DEFAULT PRODUCT PRICE
========================================== */

.kn-builder-card .price,
.kn-builder-card p.price {
    display: none !important;
}


/* ==========================================
   CART FORM STRUCTURE
========================================== */

.kn-builder-card form.cart {
    width: 100%;
    min-width: 0;

    display: grid !important;
    grid-template-columns: 140px minmax(0, 1fr);

    gap: 16px;

    align-items: center;
}


/* ==========================================
   WAPF FULL WIDTH INSIDE CART
========================================== */

.kn-builder-card form.cart > .wapf {
    grid-column: 1 / -1;

    width: 100% !important;
    min-width: 0;
}

.kn-builder-card .wapf,
.kn-builder-card .wapf-wrapper {
    width: 100% !important;
    min-width: 0;
}

.kn-builder-card .wapf-wrapper {
    display: block !important;
}


/* ==========================================
   WAPF FIELD STRUCTURE
========================================== */

.kn-builder-card .wapf-field-row {
    display: block !important;

    width: 100% !important;

    margin-left: 0 !important;
}

.kn-builder-card .wapf-field-container {
    display: block !important;

    width: 100% !important;
    max-width: none !important;

    padding: 0 0 24px !important;
    margin: 0 0 24px !important;

    border-bottom: 1px solid #e5e5e5;

    box-sizing: border-box;
}

.kn-builder-card .wapf-field-container:last-child {
    margin-bottom: 0 !important;
}

.kn-builder-card .wapf-field-label {
    display: block;

    width: 100%;

    margin: 0 0 12px;

    color: #134522;

    font-size: 16px;
    line-height: 1.3;
    font-weight: 800;
}

.kn-builder-card .wapf-field-description {
    display: block;

    width: 100%;
    max-width: 580px;

    margin: 12px 0 0;

    color: #6b6b6b;

    font-size: 13px;
    line-height: 1.5;
}


/* ==========================================
   WAPF FIELD INPUT
========================================== */

.kn-builder-card .wapf-field-input {
    display: block !important;

    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;

    float: none !important;
}


/* ==========================================
   WAPF OPTIONS GRID
========================================== */

.kn-builder-card .wapf-field-input > .wapf-radios,
.kn-builder-card .wapf-field-input > .wapf-checkboxes {
    display: grid !important;

    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 12px;

    margin: 0 !important;
    padding: 0 !important;
}


/* ==========================================
   WAPF OPTION
========================================== */

.kn-builder-card .wapf-radios > .wapf-checkable,
.kn-builder-card .wapf-checkboxes > .wapf-checkable {
    display: block !important;

    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;

    margin: 0 !important;
    padding: 0 !important;

    float: none !important;
}


/* ==========================================
   WAPF OPTION CARD
========================================== */

.kn-builder-card .wapf-checkable > .wapf-input-label {
    display: flex !important;

    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    min-height: 58px;

    align-items: center;
    justify-content: center;

    margin: 0 !important;
    padding: 14px 16px;

    background: #ffffff;

    border: 1px solid #d8dfd9;
    border-radius: 14px;

    color: #222222;

    cursor: pointer;

    box-sizing: border-box;

    transition:
        border-color 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.kn-builder-card .wapf-checkable > .wapf-input-label:hover {
    border-color: #2e5e3a;

    transform: translateY(-1px);

    box-shadow: 0 6px 18px rgba(46, 94, 58, 0.08);
}


/* ==========================================
   HIDE NATIVE RADIO / CHECKBOX
========================================== */

.kn-builder-card .wapf-input-label > .wapf-input {
    position: absolute !important;

    width: 1px !important;
    height: 1px !important;

    margin: 0 !important;

    opacity: 0;

    overflow: hidden;

    pointer-events: none;
}


/* ==========================================
   OPTION LABEL
========================================== */

.kn-builder-card .wapf-label-text {
    display: block;

    width: 100%;

    padding-left: 0 !important;

    color: #222222;

    text-align: center;

    font-size: 15px;
    line-height: 1.35;
    font-weight: 600;

    white-space: normal;
}


/* ==========================================
   HIDE WAPF PRICE HINT
========================================== */

.kn-builder-card .wapf-pricing-hint {
    display: none;
}


/* ==========================================
   SELECTED OPTION
========================================== */

.kn-builder-card .wapf-checkable.wapf-checked > .wapf-input-label,
.kn-builder-card .wapf-checkable:has(.wapf-input:checked) > .wapf-input-label {
    background: #f3f8f4;

    border-color: #2e5e3a;

    box-shadow: 0 0 0 2px rgba(46, 94, 58, 0.1);
}

.kn-builder-card
.wapf-checkable:has(.wapf-input:checked)
.wapf-label-text {
    color: #123f22;
}



/* ==========================================
   WAPF TOTALS
========================================== */

.kn-builder-card .wapf-product-totals {
    display: none !important;
}


/* ==========================================
   QUANTITY
========================================== */

.kn-builder-card .quantity {
    display: flex;

    width: 100%;
    height: 52px;
}

.kn-builder-card .quantity input.qty {
    width: 100%;
    height: 52px;

    border: 1px solid #dddddd;
    border-radius: 8px;

    text-align: center;
}


/* ==========================================
   ADD TO CART
========================================== */

.kn-builder-card .single_add_to_cart_button {
    width: 100%;
    height: 56px;

    background: #1f7138 !important;
    color: #ffffff !important;

    border: none !important;
    border-radius: 8px !important;

    font-size: 16px;
    font-weight: 800;
}

.kn-builder-card .single_add_to_cart_button:hover {
    background: #185b2d !important;
}


/* ==========================================
   PICKUP CARD
========================================== */

.kn-pickup-card {
    display: flex;

    align-items: flex-start;

    gap: 16px;

    margin-top: 24px;
    padding: 20px;

    background: #f7faf7;

    border: 1px solid #dce7de;
    border-radius: 14px;
}


/* ==========================================
   PICKUP ICON
========================================== */

.kn-pickup-card__icon {
    position: relative;

    display: flex;

    flex: 0 0 42px;

    width: 42px;
    height: 42px;

    align-items: center;
    justify-content: center;

    background: #ffffff;

    border: 1px solid #d5e2d7;
    border-radius: 12px;
}

.kn-pickup-card__icon::before {
    content: "";

    width: 17px;
    height: 14px;

    border: 2px solid #2e5e3a;
    border-top: none;

    border-radius: 0 0 2px 2px;
}

.kn-pickup-card__icon::after {
    content: "";

    position: absolute;

    width: 21px;
    height: 7px;

    top: 10px;

    border: 2px solid #2e5e3a;
    border-radius: 2px 2px 0 0;
}


/* ==========================================
   PICKUP CONTENT
========================================== */

.kn-pickup-card__content {
    min-width: 0;
}

.kn-pickup-card__title {
    margin: 0 0 5px;

    color: #123f22;

    font-size: 16px;
    line-height: 1.3;
    font-weight: 800;
}

.kn-pickup-card__text {
    margin: 0;

    color: #26352b;

    font-size: 14px;
    line-height: 1.55;
}

.kn-pickup-card__note {
    margin: 5px 0 0;

    color: #6b746e;

    font-size: 13px;
    line-height: 1.5;
}


/* ==========================================
   PICKUP MOBILE
========================================== */

@media (max-width: 767px) {

    .kn-pickup-card {
        padding: 16px;

        gap: 12px;
    }

    .kn-pickup-card__icon {
        flex-basis: 38px;

        width: 38px;
        height: 38px;
    }

}


/* ==========================================
   TABLET
========================================== */

@media (max-width: 1024px) {

    .kn-product-container {
        grid-template-columns: 1fr;
    }

    .kn-builder-card
    .wapf-field-input > .wapf-radios,
    .kn-builder-card
    .wapf-field-input > .wapf-checkboxes {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}


/* ==========================================
   MOBILE
========================================== */

@media (max-width: 767px) {

    .kn-product-page {
        padding: 20px 16px 40px;
    }

    .kn-builder-card {
        padding: 20px;
    }

    .kn-builder-card form.cart {
        grid-template-columns: 1fr;
    }

    .kn-builder-card form.cart > .wapf,
    .kn-builder-card .wapf-product-totals {
        grid-column: 1;
    }

    .kn-builder-card
    .wapf-field-input > .wapf-radios,
    .kn-builder-card
    .wapf-field-input > .wapf-checkboxes {
        grid-template-columns: 1fr;
    }

}