/*
Theme Name: Kadence Child
Template: kadence
Version: 1.0.29
Text Domain: kadence-child
*/

/* =========================================================
   Site variables
   ========================================================= */

body {
    --border-color: #e4c66c;
    --header-color: #f2d0ab;
    --back-color2: #f2d0ab;
    --back-color: rgba(242, 208, 171, 0.01);
    --back2-color: rgba(242, 208, 171, 0.3);
    --btn-color: #3182ce;
    --badge-color: #ffcc00;
    --badge-border: #ffcc00;
    --img-border-color: transparent;
    --nav-tab1: 20px;
}

body.single-product,
body.single-product #content.site-content {
    background: #f3e4c9fa;
}

/* =========================================================
   General helpers retained from old Custom CSS
   ========================================================= */

.minWidth100 { min-width: 100%; }
.dark-background { background-color: #333; }
.dont-split { page-break-inside: avoid; break-inside: avoid; }
h1, h2 { page-break-after: avoid; }

.menu-divider {
    padding-bottom: 10px;
    border-bottom: 1px solid #ccc;
    background: none;
    color: transparent;
}

.nav-tab1 { margin-left: var(--nav-tab1); }
.toggleBtn { padding: 5px 10px; margin-right: 5px; }

.back-to-category {
    margin-top: 1em;
    border: 2px solid var(--btn-color);
    border-radius: 50px;
    padding: 7px 20px;
    text-align: center;
    transition: border-color 0.5s ease;
}

.back-to-category:hover { border-color: #1e1e1e; }

.icon-with-background {
    display: inline-block;
    background-color: #3182ce;
    color: #fff;
    padding: 25px;
    border-radius: 50%;
    text-align: center !important;
    line-height: 1;
}

.icon-with-background:hover {
    background-color: rgb(242, 216, 180);
    color: #444;
}

.ul-left-align { text-align: left; }
.qview-margin { margin-left: 15px; }
.opacity40 { opacity: 0.7; z-index: 10; }

.my-border {
    border: 3px var(--border-color) solid;
    border-right-width: 6px;
    border-bottom-width: 6px;
    border-radius: 20px;
}

.my-border-none { border: none !important; }

.scroll-to-bottom {
    position: fixed;
    right: 5px;
    z-index: 9999;
    bottom: 80px;
    font-size: 1.2em;
    padding: 0.1em 0.4em;
    color: #000;
    border: 2px #000 solid;
    border-radius: 0;
}

.fa-arrow-down { color: var(--global-palette4); }

.html-btn2 {
    padding: 0 15px;
    background-color: transparent;
    color: #555;
    border: none;
    margin-right: 10px;
}

.my-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}

.my-item { flex-grow: 1; flex-shrink: 1; }
.home-icon { width: 25px; }

/*
   Newspaper-style two column text.
   Apply .newspaper2 to a Group, Row, Column or text block.
   If a Kadence wrapper sits inside the block, the nested rule below still columns the real content.
*/
.newspaper2,
.newspaper2 > .kt-inside-inner-col,
.newspaper2 > .wp-block-group__inner-container,
.newspaper2 > .kt-row-column-wrap,
.newspaper2 > .wp-block-kadence-column > .kt-inside-inner-col {
    column-count: 2;
    column-gap: var(--global-lg-spacing, 2rem);
    max-width: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.newspaper2 > h1,
.newspaper2 > h2,
.newspaper2 > h3,
.newspaper2 > h4,
.newspaper2 > h5,
.newspaper2 > h6,
.newspaper2 > p:first-of-type,
.newspaper2 > .kt-inside-inner-col > h1,
.newspaper2 > .kt-inside-inner-col > h2,
.newspaper2 > .kt-inside-inner-col > h3,
.newspaper2 > .kt-inside-inner-col > h4,
.newspaper2 > .kt-inside-inner-col > h5,
.newspaper2 > .kt-inside-inner-col > h6,
.newspaper2 > .kt-inside-inner-col > p:first-of-type,
.newspaper2 > .wp-block-group__inner-container > h1,
.newspaper2 > .wp-block-group__inner-container > h2,
.newspaper2 > .wp-block-group__inner-container > h3,
.newspaper2 > .wp-block-group__inner-container > h4,
.newspaper2 > .wp-block-group__inner-container > h5,
.newspaper2 > .wp-block-group__inner-container > h6,
.newspaper2 > .wp-block-group__inner-container > p:first-of-type {
    column-span: all;
    break-after: avoid;
}

.newspaper2 p,
.newspaper2 li {
    break-inside: avoid-column;
}

@media (max-width: 768px) {
    .newspaper2,
    .newspaper2 > .kt-inside-inner-col,
    .newspaper2 > .wp-block-group__inner-container,
    .newspaper2 > .kt-row-column-wrap,
    .newspaper2 > .wp-block-kadence-column > .kt-inside-inner-col {
        column-count: 1;
    }
}

/* =========================================================
   Gallery helpers retained
   ========================================================= */

.gallery-max-height {
    max-height: 80%;
    overflow-y: auto;
    padding-right: 10px;
    scroll-behavior: smooth;
}

.resize-gallery .wp-block-kadence-advancedgallery img {
    max-height: 80vh;
    height: auto;
    width: auto;
    object-fit: contain;
}

.gallery-resize-fit .kt-gallery-item {
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 0 !important;
}

.gallery-resize-fit .kt-gallery-item img {
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.gallery-resize-fit .kt-blocks-gallery-caption {
    margin-top: 0;
    font-size: 0.9em;
    text-align: center;
}

.kb-gallery-ul.kb-gallery-type-slider
.kadence-blocks-gallery-item
.kadence-blocks-gallery-item-inner
.kb-gallery-image-contain.kadence-blocks-gallery-intrinsic.kb-gallery-image-ratio-inherit {
    padding-bottom: 40% !important;
}

.flex-control-nav.flex-control-thumbs > li {
    margin-right: 10px !important;
}

body.single-product .flex-control-thumbs {
    margin: 10px 0 0 !important;
}

/* =========================================================
   Product page layout
   ========================================================= */

body.single-product div.product,
body.single-product .woocommerce div.product,
body.single-product .woocommerce-tabs,
body.single-product .related.products,
body.single-product .upsells.products {
    box-sizing: border-box;
}

body.single-product .woocommerce-tabs,
body.single-product .related.products,
body.single-product .upsells.products {
    clear: both;
    width: 100%;
    max-width: 100%;
}

body.single-product.jg-enhanced-product-page div.product .woocommerce-product-gallery,
body.single-product.jg-enhanced-product-page div.product .summary,
body.single-product.jg-enhanced-product-page .woocommerce-tabs {
    border: 1px solid #eadcc8;
    border-radius: 24px;
    box-sizing: border-box;
}

body.single-product.jg-enhanced-product-page div.product .woocommerce-product-gallery {
    background: #f4eadc;
    padding: 12px;
}

body.single-product.jg-enhanced-product-page div.product .summary {
    background: #fffaf3;
    padding: 20px;
}

body.single-product div.product .woocommerce-product-gallery .flex-viewport,
body.single-product div.product .woocommerce-product-gallery__wrapper,
body.single-product div.product .woocommerce-product-gallery__image {
    margin-bottom: 0 !important;
}

body.single-product div.product .woocommerce-product-gallery img {
    display: block !important;
    max-width: 100% !important;
    height: auto !important;
    border: 0 !important;
    border-radius: 0 !important;
}

body.single-product .summary.entry-summary {
    margin-bottom: 0 !important;
}

body.single-product h1.product_title,
body.single-product .summary h1.product_title {
    font-size: var(--global-heading-size, 2.3125rem) !important;
    line-height: var(--global-heading-line-height, 1.2) !important;
    font-weight: inherit;
}

body.single-product.jg-hide-product-meta .product .sku_wrapper,
body.single-product.jg-hide-product-meta .orderby,
body.single-product.jg-hide-product-meta .product .product_meta,
body.single-product.jg-hide-product-meta .posted_in,
body.single-product.jg-hide-product-meta .tagged_as {
    display: none !important;
}

body.single-product .woocommerce-product-details__short-description {
    font-size: 1.05rem !important;
    line-height: 1.65 !important;
    text-align: left !important;
}

body.single-product div.product {
    margin-top: 0 !important;
}

body.single-product div.product > .woocommerce-product-gallery,
body.single-product div.product > .summary {
    margin-top: 0 !important;
    align-self: flex-start !important;
}

@media (min-width: 900px) {
    body.single-product.jg-force-equal-product-columns div.product {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: space-between !important;
        column-gap: var(--jg-product-column-gap, var(--global-sm-spacing)) !important;
        row-gap: var(--global-md-spacing) !important;
        align-items: flex-start !important;
    }

    body.single-product.jg-force-equal-product-columns div.product > .woocommerce-product-gallery {
        float: none !important;
        width: calc(var(--jg-product-gallery-width, 50%) - (var(--jg-product-column-gap, var(--global-sm-spacing)) / 2)) !important;
        max-width: calc(var(--jg-product-gallery-width, 50%) - (var(--jg-product-column-gap, var(--global-sm-spacing)) / 2)) !important;
        min-width: 0 !important;
    }

    body.single-product.jg-force-equal-product-columns div.product > .summary {
        float: none !important;
        width: calc(var(--jg-product-summary-width, 50%) - (var(--jg-product-column-gap, var(--global-sm-spacing)) / 2)) !important;
        max-width: calc(var(--jg-product-summary-width, 50%) - (var(--jg-product-column-gap, var(--global-sm-spacing)) / 2)) !important;
        min-width: 0 !important;
    }

    body.single-product.jg-force-equal-product-columns div.product > .woocommerce-tabs,
    body.single-product.jg-force-equal-product-columns div.product > .related.products,
    body.single-product.jg-force-equal-product-columns div.product > .upsells.products {
        flex-basis: 100% !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    body.single-product.jg-force-equal-product-columns div.product > nav.jg-product-paging-bottom {
        flex: 0 1 auto !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

@media (max-width: 899px) {
    body.single-product div.product > .woocommerce-product-gallery,
    body.single-product div.product > .summary {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* =========================================================
   Product paging - top and bottom share the same CSS
   ========================================================= */

body.single-product nav.jg-product-paging,
body.single-product div.product > nav.jg-product-paging,
body.single-product nav.jg-product-paging.jg-product-paging-bottom,
body.single-product div.product > nav.jg-product-paging.jg-product-paging-bottom {
    width: var(--jg-product-paging-width-desktop, 60%) !important;
    max-width: var(--jg-product-paging-width-desktop, 60%) !important;
    min-width: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
}

body.single-product nav.jg-product-paging {
    margin-top: 10px !important;
    margin-bottom: 6px !important;
}

body.single-product nav.jg-product-paging.jg-product-paging-bottom {
    margin-top: 16px !important;
    margin-bottom: 18px !important;
}

body.single-product .jg-product-paging-inner {
    display: grid !important;
    grid-template-columns: 1fr auto 1fr !important;
    gap: var(--global-xs-spacing) !important;
    align-items: center !important;
    width: 100% !important;
}

body.single-product .jg-product-paging-prev { justify-self: start !important; }
body.single-product .jg-product-paging-more { justify-self: center !important; }
body.single-product .jg-product-paging-next { justify-self: end !important; }

body.single-product .jg-product-paging-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 18px;
    border: 1px solid #d6c3ad;
    border-radius: 999px;
    background: #fffaf3;
    color: #5c3a28;
    white-space: nowrap !important;
    font-weight: 700 !important;
    line-height: 1.2;
    text-decoration: none;
}

body.single-product .jg-product-paging-more {
    background: #5c3a28;
    color: #fffaf3;
    border-color: #5c3a28;
}

body.single-product .jg-product-paging-link:hover,
body.single-product .jg-product-paging-link:focus {
    background: #f1dfc8;
    color: #402719;
    border-color: #9a6a40;
}

body.single-product .jg-product-paging-more:hover,
body.single-product .jg-product-paging-more:focus {
    background: #402719;
    color: #fffaf3;
}

@media (max-width: 1024px) {
    body.single-product nav.jg-product-paging,
    body.single-product div.product > nav.jg-product-paging,
    body.single-product nav.jg-product-paging.jg-product-paging-bottom,
    body.single-product div.product > nav.jg-product-paging.jg-product-paging-bottom {
        width: var(--jg-product-paging-width-tablet, 80%) !important;
        max-width: var(--jg-product-paging-width-tablet, 80%) !important;
    }
}

@media (max-width: 768px) {
    body.single-product nav.jg-product-paging,
    body.single-product div.product > nav.jg-product-paging,
    body.single-product nav.jg-product-paging.jg-product-paging-bottom,
    body.single-product div.product > nav.jg-product-paging.jg-product-paging-bottom {
        width: var(--jg-product-paging-width-mobile, 100%) !important;
        max-width: var(--jg-product-paging-width-mobile, 100%) !important;
        padding-left: var(--global-content-edge-padding);
        padding-right: var(--global-content-edge-padding);
    }

    body.single-product .jg-product-paging-link {
        font-size: 0.8rem !important;
        padding-left: 8px;
        padding-right: 8px;
    }
}

/* =========================================================
   Variation cards
   ========================================================= */

body.single-product .jg-combined-variation-wrap {
    margin: 12px 0 16px;
}

body.single-product .jg-combined-variation-title {
    margin: 0 0 8px;
    color: #2a241e;
    font-size: 1.05rem;
    font-weight: 700;
}

body.single-product .jg-combined-variation-cards {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: var(--global-xs-spacing) !important;
}

body.single-product .jg-combined-variation-card {
    width: 100%;
    min-height: 66px;
    padding: 11px 12px;
    border: 2px solid #d6c3ad;
    border-radius: 14px;
    background: #fffdf8 !important;
    color: #2a241e !important;
    text-align: center !important;
    font-weight: 800 !important;
    cursor: pointer;
}

body.single-product .jg-combined-variation-main,
body.single-product .jg-combined-variation-price {
    display: block;
    text-align: center !important;
    color: #2a241e !important;
    font-weight: 800 !important;
}

body.single-product .jg-combined-variation-price {
    margin-top: 5px;
}

body.single-product .jg-combined-variation-card:hover,
body.single-product .jg-combined-variation-card:focus,
body.single-product .jg-combined-variation-card.is-selected {
    color: #2a241e !important;
    background: #f1dfc8 !important;
    border-color: #5c3a28 !important;
}

body.single-product .jg-combined-variation-card.is-disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

body.single-product .jg-combined-variation-ui table.variations {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
}

/* =========================================================
   Trust panel and cart button
   ========================================================= */

body.single-product .jg-product-trust-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--global-xs-spacing);
    margin: 12px 0 14px;
}

body.single-product .jg-product-trust-panel-summary-mobile {
    display: none;
}

body.single-product .jg-product-trust-item {
    background: #f1dfc8;
    border: 2px solid #5c3a28;
    border-radius: 16px;
    color: #2a241e;
    padding: 10px 12px;
}

body.single-product .jg-product-trust-title {
    display: block;
    font-weight: 700;
    color: #2a241e;
}

body.single-product .jg-product-trust-text {
    display: block;
    margin-top: 3px;
    font-size: 0.9rem;
    color: #2a241e;
}

body.single-product form.cart .button.single_add_to_cart_button {
    min-height: 52px;
    border-radius: 16px;
    padding: 0 34px;
    background: #5c3a28;
    color: #fffaf3;
    font-size: 1.05rem;
    font-weight: 700;
}

@media (max-width: 768px) {
    body.single-product.jg-enhanced-product-page div.product .woocommerce-product-gallery,
    body.single-product.jg-enhanced-product-page div.product .summary,
    body.single-product.jg-enhanced-product-page .woocommerce-tabs {
        border-radius: 18px;
        padding: 12px;
    }

    body.single-product .jg-product-trust-panel {
        grid-template-columns: 1fr;
    }

    body.single-product.jg-trust-panel-below-gallery .jg-product-trust-panel-gallery {
        display: none;
    }

    body.single-product.jg-trust-panel-below-gallery .jg-product-trust-panel-summary-mobile {
        display: grid;
    }

    body.single-product .jg-combined-variation-cards {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 6px !important;
    }

    body.single-product .jg-combined-variation-card {
        min-height: 54px;
        padding: 8px 6px;
    }

    body.single-product .jg-combined-variation-main,
    body.single-product .jg-combined-variation-price {
        font-size: 0.82rem;
    }
}

@media (max-width: 480px) {
    body.single-product .jg-combined-variation-main,
    body.single-product .jg-combined-variation-price {
        font-size: 0.76rem;
    }
}

/* =========================================================
   WooCommerce tabs
   ========================================================= */

body.single-product.jg-enhanced-product-page .woocommerce-tabs {
    clear: both !important;
    display: block !important;
    margin-top: 24px !important;
    background: #fffdf8;
    padding: 18px;
}

body.single-product .woocommerce-tabs ul.tabs {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    padding: 0 !important;
    margin: 0 0 18px 0 !important;
    border-bottom: 0 !important;
}

body.single-product .woocommerce-tabs ul.tabs,
body.single-product .woocommerce-tabs ul.tabs::before,
body.single-product .woocommerce-tabs ul.tabs::after,
body.single-product .woocommerce-tabs ul.tabs li,
body.single-product .woocommerce-tabs ul.tabs li::before,
body.single-product .woocommerce-tabs ul.tabs li::after,
body.single-product .woocommerce-tabs ul.tabs li.active,
body.single-product .woocommerce-tabs ul.tabs li.active::before,
body.single-product .woocommerce-tabs ul.tabs li.active::after,
body.single-product .woocommerce-tabs ul.tabs li.active a,
body.single-product .woocommerce-tabs ul.tabs li.active a::before,
body.single-product .woocommerce-tabs ul.tabs li.active a::after {
    border-bottom: 0 !important;
    box-shadow: none !important;
}

body.single-product .woocommerce-tabs ul.tabs li {
    border: 0;
    background: transparent;
    padding: 0;
    margin: 0 !important;
}

body.single-product .woocommerce-tabs ul.tabs li a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    min-width: 130px;
    border-radius: 999px;
    padding: 10px 20px !important;
    background: #f4e6d4;
    color: #3b3028 !important;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
}

body.single-product .woocommerce-tabs ul.tabs li.active a,
body.single-product .woocommerce-tabs ul.tabs li a[aria-selected="true"] {
    background: #5c3a28 !important;
    color: #fff !important;
    font-weight: 800 !important;
}

@media (max-width: 768px) {
    body.single-product .woocommerce-tabs ul.tabs li a {
        min-width: 0;
        width: 100%;
        font-size: 0.88rem;
    }
}

/* =========================================================
   Product shortcode cards inside product pages
   ========================================================= */

body.single-product .woocommerce.columns-1 ul.products,
body.single-product .woocommerce.columns-2 ul.products,
body.single-product .woocommerce.columns-3 ul.products,
body.single-product .woocommerce.columns-4 ul.products,
body.single-product .woocommerce.columns-5 ul.products,
body.single-product .woocommerce.columns-6 ul.products,
body.single-product .woocommerce ul.products {
    display: grid !important;
    gap: var(--global-md-spacing) !important;
    margin: var(--global-sm-spacing) 0 0 !important;
    padding: 0 !important;
}

body.single-product .woocommerce.columns-1 ul.products { grid-template-columns: 1fr !important; }
body.single-product .woocommerce.columns-2 ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
body.single-product .woocommerce.columns-3 ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }

body.single-product .woocommerce.columns-4 ul.products,
body.single-product .woocommerce ul.products.columns-4,
body.single-product .related.products ul.products {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

body.single-product .woocommerce.columns-5 ul.products { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; }
body.single-product .woocommerce.columns-6 ul.products { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; }

body.single-product .woocommerce ul.products li.product,
body.single-product .woocommerce-page ul.products li.product {
    float: none !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    min-width: 0 !important;
    border-color: var(--border-color) !important;
    border-style: solid !important;
    border-width: 3px 6px 6px 3px !important;
    border-radius: 10px !important;
    background-color: #ddd !important;
    padding: var(--global-xs-spacing) !important;
    box-sizing: border-box !important;
    text-align: center !important;
    overflow: hidden !important;
}

body.single-product .woocommerce ul.products li.product img,
body.single-product .woocommerce-page ul.products li.product img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border: 0 !important;
    border-radius: 0 !important;
    margin: 0 auto var(--global-xs-spacing) !important;
}

body.single-product .woocommerce ul.products li.product .woocommerce-loop-product__title,
body.single-product .woocommerce-page ul.products li.product .woocommerce-loop-product__title {
    min-height: 2.7em;
    margin: 0 auto var(--global-xxs-spacing) !important;
    padding: 0 !important;
    text-align: center !important;
    color: #111827 !important;
    font-size: 1rem !important;
    line-height: 1.35 !important;
    font-weight: 500 !important;
}

body.single-product .woocommerce ul.products li.product .star-rating,
body.single-product .woocommerce-page ul.products li.product .star-rating {
    float: none !important;
    margin: 0 auto var(--global-xxs-spacing) !important;
}

body.single-product .woocommerce ul.products li.product .price,
body.single-product .woocommerce-page ul.products li.product .price {
    display: block !important;
    min-height: 1.5em;
    margin: 0 auto var(--global-xs-spacing) !important;
    text-align: center !important;
    color: #111827 !important;
    font-size: 0.95rem !important;
}

body.single-product .woocommerce ul.products li.product .button,
body.single-product .woocommerce-page ul.products li.product .button,
body.single-product .woocommerce ul.products li.product a.button,
body.single-product .woocommerce-page ul.products li.product a.button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: var(--global-xxs-spacing) auto 0 !important;
    padding: 0 !important;
    min-height: auto !important;
    background: transparent !important;
    color: #1f2933 !important;
    border: 0 !important;
    box-shadow: none !important;
    text-align: center !important;
    font-weight: 800 !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
}

body.single-product .woocommerce ul.products li.product .button:hover,
body.single-product .woocommerce-page ul.products li.product .button:hover {
    background: transparent !important;
    color: #5c3a28 !important;
}

@media (max-width: 1024px) {
    body.single-product .woocommerce.columns-4 ul.products,
    body.single-product .woocommerce.columns-5 ul.products,
    body.single-product .woocommerce.columns-6 ul.products,
    body.single-product .woocommerce ul.products.columns-4,
    body.single-product .related.products ul.products {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 768px) {
    body.single-product .woocommerce.columns-3 ul.products,
    body.single-product .woocommerce.columns-4 ul.products,
    body.single-product .woocommerce.columns-5 ul.products,
    body.single-product .woocommerce.columns-6 ul.products,
    body.single-product .woocommerce ul.products.columns-4,
    body.single-product .related.products ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 480px) {
    body.single-product .woocommerce.columns-2 ul.products,
    body.single-product .woocommerce.columns-3 ul.products,
    body.single-product .woocommerce.columns-4 ul.products,
    body.single-product .woocommerce.columns-5 ul.products,
    body.single-product .woocommerce.columns-6 ul.products,
    body.single-product .woocommerce ul.products.columns-4,
    body.single-product .related.products ul.products {
        grid-template-columns: 1fr !important;
    }
}

/* =========================================================
   Archive product cards retained outside product pages
   ========================================================= */

body:not(.single-product) li.product.type-product {
    border-color: var(--border-color);
    border-style: solid;
    border-width: 3px 6px 6px 3px;
    padding: 10px !important;
    border-radius: 10px;
    background-color: #ddd;
}

.product-details {
    background: transparent !important;
    text-align: center;
}

.product-details > h2 {
    font-size: 20px;
    margin-bottom: auto;
}

/* =========================================================
   Newspaper two-column article override
   ========================================================= */

.newspaper2 {
    --jg-newspaper-gap: clamp(2rem, 4vw, 4rem);
    --jg-newspaper-para-gap: 1rem;
}

.newspaper2,
.newspaper2 > .kt-inside-inner-col,
.newspaper2 > .wp-block-group__inner-container {
    column-count: 2 !important;
    column-gap: var(--jg-newspaper-gap) !important;
    column-rule: 0 !important;
    column-fill: balance !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.newspaper2 > .kt-row-column-wrap,
.newspaper2 > .wp-block-kadence-column > .kt-inside-inner-col {
    display: block !important;
    column-count: 2 !important;
    column-gap: var(--jg-newspaper-gap) !important;
}

.newspaper2 p,
.newspaper2 li,
.newspaper2 ul,
.newspaper2 ol,
.newspaper2 h1,
.newspaper2 h2,
.newspaper2 h3,
.newspaper2 h4,
.newspaper2 h5,
.newspaper2 h6 {
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.newspaper2 p {
    margin-top: 0 !important;
    margin-bottom: var(--jg-newspaper-para-gap) !important;
    break-inside: auto !important;
}

.newspaper2 h1,
.newspaper2 h2,
.newspaper2 h3,
.newspaper2 h4,
.newspaper2 h5,
.newspaper2 h6 {
    margin-top: 0.4em !important;
    margin-bottom: 0.45em !important;
    line-height: 1.2 !important;
    break-after: avoid-column !important;
}

.newspaper2 > h1,
.newspaper2 > h2,
.newspaper2 > h3,
.newspaper2 > h4,
.newspaper2 > h5,
.newspaper2 > h6,
.newspaper2 > .kt-inside-inner-col > h1,
.newspaper2 > .kt-inside-inner-col > h2,
.newspaper2 > .kt-inside-inner-col > h3,
.newspaper2 > .kt-inside-inner-col > h4,
.newspaper2 > .kt-inside-inner-col > h5,
.newspaper2 > .kt-inside-inner-col > h6,
.newspaper2 > .wp-block-group__inner-container > h1,
.newspaper2 > .wp-block-group__inner-container > h2,
.newspaper2 > .wp-block-group__inner-container > h3,
.newspaper2 > .wp-block-group__inner-container > h4,
.newspaper2 > .wp-block-group__inner-container > h5,
.newspaper2 > .wp-block-group__inner-container > h6 {
    column-span: all;
}

.newspaper2 > p:first-of-type,
.newspaper2 > .kt-inside-inner-col > p:first-of-type,
.newspaper2 > .wp-block-group__inner-container > p:first-of-type {
    column-span: all;
    margin-bottom: 1.1rem !important;
}

.newspaper2 .wp-block-spacer,
.newspaper2 .kt-block-spacer,
.newspaper2 .wp-block-kadence-spacer,
.newspaper2 .kb-spacer,
.newspaper2 .kb-divider,
.newspaper2 hr {
    display: none !important;
}

@media (max-width: 768px) {
    .newspaper2,
    .newspaper2 > .kt-inside-inner-col,
    .newspaper2 > .wp-block-group__inner-container,
    .newspaper2 > .kt-row-column-wrap,
    .newspaper2 > .wp-block-kadence-column > .kt-inside-inner-col {
        column-count: 1 !important;
        column-gap: 0 !important;
    }
}
