/* ---- GLOBAL ---- */

.product.khg-wc-membership-customer-only-for-members a.add_to_cart_button,
.product.khg-wc-membership-customer-only-for-members .cart {
    display: none !important;
}
.product.khg-wc-membership-customer-only-for-members .khg-wc-membership-customer-product-banner {
    display: block !important;
}

.includes_tax {
    font-size: 0.8em;
}



/* ---- SHOP ---- */
.khg-wc-is-shop-page .site-main {
    margin-top: 4em;
    margin-bottom: 3em;
}

.khg-wc-is-shop-page .site-main .woocommerce-breadcrumb {
    display: none;
}

.khg-wc-is-shop-page .site-main h1 {
    font-weight: bold;
    margin-bottom: 2em;
}

.khg-wc-is-shop-page .woocommerce-products-header #ppcp-messages,
.khg-wc-is-shop-page .woocommerce-products-header .ppcp-messages {
    display: none !important;
}

.khg-wc-product-presentation-form {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5em;
    margin-bottom: 2em;
}

.khg-wc-product-presentation-options {
    display: flex;
    flex-wrap: wrap;
}

.khg-wc-product-presentation-options .khg-wc-product-presentation-labels:first-child {
    margin-right: 1em;
}

.khg-wc-product-presentation-labels {
    display: flex;
    align-items: center;
    padding: 0.5em 1em;
    border-radius: 0.5em;
    background-color: #EBEAE8;
    width: fit-content;
    margin-bottom: 0.5em;
}

.khg-wc-product-presentation-labels span {
    margin-right: 1em;
    font-size: 0.9em;
}

.khg-wc-product-presentation-labels label {
    cursor: pointer;
}

.khg-wc-product-presentation-labels .khg-product-presentation-grid-label {
    margin-right: 0.5em;
}

.khg-product-presentation-grid-label span,
.khg-product-presentation-list-label span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.khg-wc-product-presentation-labels svg {
    height: 25px;
    width: 25px;
}

.khg-wc-product-presentation-labels input:checked + label rect {
    fill: #6ca84d;
}

.khg-wc-product-presentation-labels select {
    padding: 0.4em 0.9em;
    background: white;
    font-size: 0.9em;
}

.khg-wc-product-filter-form {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    row-gap: 1em;
    column-gap: 1.5em;
    margin-bottom: 2em;
}

.khg-wc-product-filter-form .khg-wc-product-filter-input-container {
    width: calc(33.33% - 1em);
}

.khg-wc-product-filter-form .khg-wc-product-filter-input-container p {
    margin-bottom: 0.5em;
}

.khg-wc-product-filter-form .khg-wc-product-filter-input-container select {
    width: 100%;
}

.khg-wc-product-filter-form .khg-wc-product-filter-input-container input {
    width: 100%;
}

.khg-wc-is-shop-page .products,
.khg-wc-is-products-by-badge {
    display: flex;
    flex-wrap: wrap;
    margin-left: -1em;
    margin-right: -1em;
}

.khg-wc-is-shop-page .products .product,
.khg-wc-is-products-by-badge .product {
    width: calc(25% - 2em);
    margin: 1em;
}



/* ---- PRODUCT CARD ---- */
.products .product {
    display: block;
}

.products .product a {
    text-decoration: none;
}

.products .product .khg-wc-product-badge {
    display: inline-block;
    padding: 10px;
    background: #6ca84d;
    font-size: 0.8em;
    position: absolute;
    margin-left: 10px;
    margin-top: 10px;
    border-radius: 3px;
}

.products .product .khg-wc-product-badge span {
    color: #fff;
    font-weight: 400;
}

.products .product img {
    height: 400px;
    width: 100%;
    object-fit: contain;
    margin-bottom: 1em;
}

.products .product .woocommerce-loop-product__title {
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 1em;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    height: 2.8em;
}

.khg-wc-product-card-content-container {
    min-height: 240px;
}

.khg-wc-product-card-excerpt-container {
    display: none;
    margin-bottom: 1em;
    font-size: 0.8em;
}

.khg-wc-product-card-excerpt-container p {
    line-height: 1.5;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    -webkit-line-clamp: 3;
    line-clamp: 3;
}

.khg-wc-membership-customer-product-banner {
    padding: 10px 15px;
    text-align: center;
    background-color: #8E47B3;
    border-radius: 5px;
    display: none;
    padding: 13px 10px;
    text-align: center;
    text-decoration: none;
}

.khg-wc-membership-customer-product-banner p {
    margin: 0px;
    color: #fff;
    line-height: 1.3;
}

.products .product .price {
    display: inline-block;
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 1em;
}

.products .product .price .woocommerce-price-suffix {
    display: none;
}

.products .product .price * {
    color: #6ca84d;
}

.khg-wc-product-card-more-container {
    margin-bottom: 1em;
}
.khg-wc-product-card-more-container p {
    color: #6ca84d;
    text-decoration: underline;
}
.products .product .button {
    display: none;
}
.products .product .add_to_cart_button {
    display: block !important;
    padding: 13px 10px;
    text-align: center;
    background-color: #6ca84d;
    border: solid 3px #6ca84d;
    color: #fff;
    border-radius: 5px;
}
.products .product .add_to_cart_button.added {
    display: none !important;
}
.products .product .added_to_cart {
    display: block !important;
    padding: 13px 10px;
    text-align: center;
    border: solid 3px #6ca84d;
    color: #6ca84d;
    font-weight: bold;
    border-radius: 5px;
}

.khg-wc-is-shop-page.khg-wc-is-shop-presentation-list .products .product img,
.khg-wc-is-shop-page.khg-wc-is-shop-presentation-list .products .product .khg-wc-product-card-excerpt-container,
.khg-wc-is-shop-page.khg-wc-is-shop-presentation-list .products .product .khg-wc-product-badge {
    display: none;
}

@media screen and (min-width: 800px) {
    .khg-wc-is-shop-page.khg-wc-is-shop-presentation-list .products .product {
        width: 100%;
        display: flex;
        justify-content: space-between;
        border-bottom: solid 1.5px #ebeae8;
    }
    .khg-wc-is-shop-page.khg-wc-is-shop-presentation-list .products .product .woocommerce-loop-product__link {
        flex: 1;
    }
    .khg-wc-is-shop-page.khg-wc-is-shop-presentation-list .products .product .khg-wc-product-card-content-container {
        display: flex;
        min-height: auto;
    }
    .khg-wc-is-shop-page.khg-wc-is-shop-presentation-list .products .product .woocommerce-loop-product__title {
        font-size: 1.2em;
        flex: 1;
        height: auto;
    }
    .khg-wc-is-shop-page.khg-wc-is-shop-presentation-list .products .product .khg-wc-product-card-more-container {
        margin: 0em 1em;
    }
    .khg-wc-is-shop-page.khg-wc-is-shop-presentation-list .products .product .khg-wc-product-card-more-container p {
        margin-top: 5px;
        font-size: 0.9em;
    }
    .khg-wc-is-shop-page.khg-wc-is-shop-presentation-list .products .product .add_to_cart_button,
    .khg-wc-is-shop-page.khg-wc-is-shop-presentation-list .products .product .khg-wc-membership-customer-product-banner {
        height: fit-content;
    }
    .khg-wc-is-shop-page.khg-wc-is-shop-presentation-list .products .product .added_to_cart,
    .khg-wc-is-shop-page.khg-wc-is-shop-presentation-list .products .product .khg-wc-membership-customer-product-banner {
        font-size: 0.9em;
        padding: 6px 10px;
        height: fit-content;
    }
    .khg-wc-is-shop-page.khg-wc-is-shop-presentation-list .products .product .price {
        line-height: 1.5;
        font-size: 1.2em;
    }
    .khg-wc-is-shop-page.khg-wc-is-shop-presentation-list .products .product .add_to_cart_button {
        font-size: 0.9em;
        padding: 6px 10px;
    }
}



/* ---- PRODUCT DETAIL ---- */
.product .onsale {
    display: none;
}

.khg-wc-is-product-page .woocommerce-breadcrumb {
    display: none;
}

.khg-wc-single-product-summary {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    column-gap: 2em;
    margin-top: 4em;
    margin-bottom: 3em;
}

.khg-wc-single-product-summary h1 {
    font-weight: bold;
    margin-bottom: 1em;
}

.khg-wc-single-product-summary .woocommerce-message {
    margin-bottom: 1em;
}

.khg-wc-single-product-summary .woocommerce-message .button {
    display: none;
}

.khg-wc-single-product-summary .summary {
    max-width: 600px;
}

.khg-wc-single-product-summary .summary #ppcp-messages,
.khg-wc-single-product-summary .summary .ppcp-messages {
    display: none !important;
}

.khg-wc-single-product-summary .khg-wc-single-product-content p {
    line-height: 1.5em;
}

.khg-wc-single-product-summary .khg-wc-single-product-content {
    margin-bottom: 1em;
}

.khg-wc-single-product-summary .price {
    display: inline-block;
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 1em;
}

.khg-wc-single-product-summary .price .woocommerce-price-suffix {
    font-size: 0.5em;
}

.khg-wc-single-product-summary .price  * {
    color: #6ca84d;
}

.khg-wc-single-product-summary .cart {
    display: flex;
    flex-wrap: wrap;
    row-gap: 1em;
}

.khg-wc-single-product-summary .cart select {
    margin-right: 1em;
}

.khg-wc-single-product-summary input {
    width: 100px;
    border-radius: 5px;
}

.khg-wc-single-product-summary .cart button {
    padding: 13px 25px;
    text-align: center;
    background-color: #6ca84d;
    border: solid 3px #6ca84d;
    color: #fff;
    border-radius: 5px;
}

.khg-wc-single-product-summary .cart button:focus {
    border: solid 3px #6CA84D;
}

.khg-wc-single-product-summary .woocommerce-product-gallery .flex-viewport {
   width: 600px;
}

.khg-wc-single-product-summary .woocommerce-product-gallery img {
    width: 100%;
    height: 600px;
    object-fit: contain;
}

.khg-wc-single-product-summary .woocommerce-product-gallery .flex-control-nav {
    display: flex;
    justify-content: center;
    margin-top: 1em;
}

.khg-wc-single-product-summary .woocommerce-product-gallery .flex-control-nav li {
    display: block;
}

.khg-wc-single-product-summary .woocommerce-product-gallery .flex-control-nav img {
    height: 50px;
    width: 100px;
    object-fit: contain;
    opacity: 0.5;
    transition: 1s;
    cursor: pointer;
}

.khg-wc-single-product-summary .woocommerce-product-gallery .flex-control-nav img.flex-active {
    opacity: 1 !important;
}

.khg-wc-is-product-page .khg-tab-button {
    display: inline-block;
    margin-top: 3em;
    margin-bottom: 3em;
}

.khg-wc-is-product-page .related.products {
    margin-bottom: 4em;
}

.khg-wc-is-product-page .related.products h2 {
    margin-bottom: 1em;
}

.khg-wc-is-product-page .related .products {
    display: flex;
    flex-wrap: wrap;
    margin-left: -1em;
    margin-right: -1em;
}

.khg-wc-is-product-page .products .product {
    width: calc(25% - 3.5em);
    margin: 1em;
}

.khg-wc-is-product-page .wc-block-components-notice-banner__content a {
    display: none;
}

.khg-wc-is-product-page p.out-of-stock {
    font-weight: bold;
}

.khg-wc-is-product-page .khg-wc-product-is-contract p.out-of-stock {
    display: none !important;
}


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

    /* -- PRODUCT DETAIL -- */
    .khg-wc-single-product-summary .woocommerce-product-gallery {
        max-width: 50%;
    }
    .khg-wc-single-product-summary .woocommerce-product-gallery .flex-viewport {
        max-width: 100%;
    }

}



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

    /* -- PRODUCT DETAIL -- */
    .khg-wc-is-product-page .products .product {
        width: calc(50% - 3.5em);
    }

    /* ---- SHOP ---- */
    .khg-wc-is-shop-page .products .product,
    .khg-wc-is-products-by-badge .product {
        width: calc(33.33% - 2em);
    }

}




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

    /* -- PRODUCT DETAIL -- */
    .khg-wc-single-product-summary {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        margin-top: 0em;
        margin-bottom: 3em;
    }
    .khg-wc-single-product-summary .woocommerce-product-gallery {
        min-width: auto;
        margin-right: -20px;
        margin-left: -20px;
        margin-bottom: 2em;
    }
    .khg-wc-single-product-summary .woocommerce-product-gallery .flex-viewport {
        width: 450px;
    }
    .khg-wc-single-product-summary .woocommerce-product-gallery img {
        width: 100%;
        height: 500px;
    }
    .khg-wc-is-product-page .products .product {
        width: 100%;
    }


    /* ---- PRODUCT CARD ---- */
    .khg-wc-product-card-content-container {
        min-height: auto;
    }


    /* ---- SHOP ---- */
    .khg-wc-is-shop-page .products .product,
    .khg-wc-is-products-by-badge .product {
        width: calc(50% - 2em);
    }

}



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

    /* -- PRODUCT DETAIL -- */
    .khg-wc-single-product-summary .woocommerce-product-gallery .flex-viewport {
        width: 100vw;
    }
    .khg-wc-single-product-summary .woocommerce-product-gallery img {
        width: 100%;
        height: 500px;
    }


    /* -- SHOP -- */
    .khg-wc-product-filter-form .khg-wc-product-filter-input-container {
        width: 100%;
    }
    .khg-wc-is-shop-page .products .product,
    .khg-wc-is-products-by-badge {
        width: calc(100%);
    }

}