
/* =========================================================
   JANTA PILES CLINIC — COMPLETE WOOCOMMERCE CSS
   Product gallery | Summary | Quantity | Information tabs
========================================================= */

:root {
    --jpc-shop-primary: #006c63;
    --jpc-shop-primary-dark: #004f49;
    --jpc-shop-dark: #073f43;
    --jpc-shop-text: #173f42;
    --jpc-shop-muted: #607778;
    --jpc-shop-light: #e9f8f4;
    --jpc-shop-bg: #f5fcfb;
    --jpc-shop-border: #dcecea;
    --jpc-shop-white: #ffffff;
    --jpc-shop-shadow: 0 8px 28px rgba(0, 64, 61, 0.06);
}

/* =========================================================
   1. WOOCOMMERCE PAGE CONTAINER
========================================================= */

.jpc-woocommerce-page {
    width: 100%;
    background: var(--jpc-shop-white);
    color: var(--jpc-shop-text);
}

.jpc-woocommerce-container {
    width: min(1440px, calc(100% - 64px));
    max-width: 1440px;
    margin-right: auto;
    margin-left: auto;
    padding-top: 32px;
    padding-bottom: 64px;
    box-sizing: border-box;
}

.jpc-woocommerce-page .woocommerce {
    width: 100%;
    max-width: 100%;
    color: var(--jpc-shop-text);
}

.jpc-woocommerce-page .woocommerce a {
    color: var(--jpc-shop-primary);
    text-decoration: none;
}

.jpc-woocommerce-page .woocommerce a:hover {
    color: var(--jpc-shop-primary-dark);
}

/* Prevent oversized WooCommerce elements */
.jpc-woocommerce-page *,
.jpc-woocommerce-page *::before,
.jpc-woocommerce-page *::after {
    box-sizing: border-box;
}

/* =========================================================
   2. BREADCRUMBS
========================================================= */

.jpc-woocommerce-page .woocommerce-breadcrumb {
    margin: 0 0 24px;
    color: var(--jpc-shop-muted);
    font-size: 13px;
    line-height: 1.6;
}

.jpc-woocommerce-page .woocommerce-breadcrumb a {
    color: var(--jpc-shop-primary);
}

/* =========================================================
   3. SINGLE PRODUCT — TWO-COLUMN LAYOUT
   Image LEFT | Product details RIGHT
========================================================= */

body.single-product div.product {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    grid-template-rows: auto auto;
    align-items: start;
    column-gap: 40px;
    row-gap: 36px;
    /*width: 100%;*/
    max-width: 100%;
    margin: 0 0 48px;
    padding: 0;
    float: none;
}

body.single-product div.product::before,
body.single-product div.product::after {
    display: none !important;
    content: none !important;
}

/* Left column: gallery */
body.single-product div.product > .images,
body.single-product div.product > .woocommerce-product-gallery {
    grid-column: 1 !important;
    grid-row: 1 !important;
    align-self: start;
    float: none !important;
    clear: none !important;
    width: 100% !important;
    max-width: 100%;
    min-width: 0;
    margin: 0 !important;
    padding: 20px;
    overflow: hidden;
    border: 1px solid var(--jpc-shop-border);
    border-radius: 18px;
    background: var(--jpc-shop-bg);
    box-shadow: var(--jpc-shop-shadow);
}

/* Gallery image */
body.single-product div.product .woocommerce-product-gallery__wrapper {
    margin: 0;
}

body.single-product div.product .woocommerce-product-gallery__image {
    overflow: hidden;
    border-radius: 12px;
}

body.single-product div.product .woocommerce-product-gallery__image a {
    display: block;
}

body.single-product div.product .woocommerce-product-gallery img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0;
    border-radius: 12px;
    object-fit: contain;
}

/* Sale badge */
body.single-product div.product .onsale {
    z-index: 5;
    top: 12px;
    left: 12px;
    right: auto;
    min-height: auto;
    min-width: auto;
    margin: 0;
    padding: 9px 12px;
    border-radius: 30px;
    background: #9c9400;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
}

/* Gallery thumbnails */
body.single-product div.product .flex-control-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 16px 0 0;
    padding: 0;
}

body.single-product div.product .flex-control-thumbs li {
    float: none;
    width: 72px;
    margin: 0;
    padding: 0;
}

body.single-product div.product .flex-control-thumbs img {
    display: block;
    width: 100%;
    border: 1px solid var(--jpc-shop-border);
    border-radius: 9px;
    opacity: 0.75;
    cursor: pointer;
}

body.single-product div.product .flex-control-thumbs img:hover,
body.single-product div.product .flex-control-thumbs img.flex-active {
    border-color: var(--jpc-shop-primary);
    opacity: 1;
}

/* Right column: summary */
body.single-product div.product > .summary,
body.single-product div.product > .summary.entry-summary {
    grid-column: 2 !important;
    grid-row: 1 !important;
    align-self: start;
    float: none !important;
    clear: none !important;
    width: 100% !important;
    max-width: 100%;
    min-width: 0;
    margin: 0 !important;
    padding: 28px;
    border: 1px solid var(--jpc-shop-border);
    border-radius: 18px;
    background: var(--jpc-shop-white);
    box-shadow: var(--jpc-shop-shadow);
    color: var(--jpc-shop-text);
}

/* =========================================================
   4. PRODUCT TITLE AND PRICE
========================================================= */

body.single-product div.product .product_title {
    margin: 0 0 18px;
    color: var(--jpc-shop-dark);
    font-size: clamp(28px, 2.5vw, 38px);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.5px;
}

body.single-product div.product p.price,
body.single-product div.product span.price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px;
    margin: 0 0 22px;
    color: var(--jpc-shop-primary);
    font-size: 30px;
    font-weight: 700;
    line-height: 1.4;
}

body.single-product div.product p.price del,
body.single-product div.product span.price del {
    color: #879796;
    font-size: 17px;
    font-weight: 400;
    opacity: 0.85;
}

body.single-product div.product p.price ins,
body.single-product div.product span.price ins {
    color: var(--jpc-shop-primary);
    text-decoration: none;
}

body.single-product div.product .woocommerce-price-suffix {
    font-size: 13px;
    font-weight: 400;
}

/* =========================================================
   5. PRODUCT RATING AND SHORT DESCRIPTION
========================================================= */

body.single-product div.product .woocommerce-product-rating {
    margin: 0 0 16px;
}

body.single-product div.product .star-rating {
    color: #c69b24;
}

body.single-product .jpc-woocommerce-page
.woocommerce-product-details__short-description {
    margin: 0 0 24px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--jpc-shop-border);
    color: var(--jpc-shop-muted);
    font-size: 15px;
    line-height: 1.85;
}

body.single-product .jpc-woocommerce-page
.woocommerce-product-details__short-description p {
    margin: 0 0 12px;
}

body.single-product .jpc-woocommerce-page
.woocommerce-product-details__short-description p:last-child {
    margin-bottom: 0;
}

/* =========================================================
   6. VARIABLE PRODUCT OPTIONS
========================================================= */

body.single-product div.product form.cart .variations {
    width: 100%;
    margin: 20px 0;
    border: 0;
}

body.single-product div.product form.cart .variations tbody,
body.single-product div.product form.cart .variations tr {
    display: block;
}

body.single-product div.product form.cart .variations th,
body.single-product div.product form.cart .variations td {
    display: block;
    width: 100%;
    padding: 0 0 10px;
    text-align: left;
    background: transparent;
}

body.single-product div.product form.cart .variations label {
    display: block;
    margin-bottom: 8px;
    color: var(--jpc-shop-dark);
    font-weight: 700;
}

body.single-product div.product form.cart .variations select {
    width: 100%;
    max-width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid var(--jpc-shop-border);
    border-radius: 9px;
    background: #fff;
    color: var(--jpc-shop-text);
    font: inherit;
}

body.single-product div.product form.cart .reset_variations {
    display: inline-block;
    margin-top: 8px;
    font-size: 13px;
}

/* =========================================================
   7. QUANTITY AND ADD TO CART
========================================================= */

body.single-product div.product form.cart {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin: 22px 0 24px;
}

body.single-product div.product form.cart .quantity {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    float: none !important;
    width: auto !important;
    min-height: 48px;
    margin: 0 !important;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--jpc-shop-border);
    border-radius: 9px;
    background: #fff;
}

/* Plus and minus buttons inserted by woocommerce.js */
body.single-product div.product form.cart .quantity .jpc-qty-btn {
    display: inline-flex;
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 46px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: var(--jpc-shop-bg);
    color: var(--jpc-shop-primary);
    font-family: inherit;
    font-size: 22px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
}

body.single-product div.product form.cart .quantity .jpc-qty-btn:hover {
    background: var(--jpc-shop-light);
    color: var(--jpc-shop-primary-dark);
}

/* Quantity number input */
body.single-product div.product form.cart .quantity input.qty {
    display: block;
    flex: 0 0 44px;
    width: 44px !important;
    min-width: 44px;
    height: 46px;
    min-height: 46px;
    margin: 0;
    padding: 0;
    border: 0 !important;
    border-radius: 0 !important;
    outline: none;
    background: #fff;
    box-shadow: none !important;
    color: var(--jpc-shop-text);
    font-size: 15px;
    text-align: center;
    appearance: textfield;
    -moz-appearance: textfield;
}

body.single-product div.product form.cart .quantity input.qty::-webkit-inner-spin-button,
body.single-product div.product form.cart .quantity input.qty::-webkit-outer-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

/* Add to cart button */
body.single-product div.product form.cart .single_add_to_cart_button {
    display: inline-flex;
    flex: 1 1 180px;
    align-items: center;
    justify-content: center;
    float: none !important;
    min-width: 0;
    min-height: 48px;
    margin: 0;
    padding: 13px 24px;
    border: 1px solid var(--jpc-shop-primary);
    border-radius: 9px;
    background: var(--jpc-shop-primary);
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

body.single-product div.product form.cart .single_add_to_cart_button:hover {
    border-color: var(--jpc-shop-primary-dark);
    background: var(--jpc-shop-primary-dark);
    color: #fff;
}

body.single-product div.product form.cart .single_add_to_cart_button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* Variable product price and availability */
body.single-product div.product .single_variation {
    margin: 12px 0;
}

body.single-product div.product .woocommerce-variation-price {
    margin-bottom: 12px;
}

body.single-product div.product .stock {
    margin: 12px 0;
    color: var(--jpc-shop-primary);
    font-size: 14px;
}

/* =========================================================
   8. SKU, CATEGORY AND PRODUCT META
========================================================= */

body.single-product div.product .product_meta {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin: 0;
    padding-top: 20px;
    border-top: 1px solid var(--jpc-shop-border);
    color: var(--jpc-shop-muted);
    font-size: 13px;
    line-height: 1.7;
}

body.single-product div.product .product_meta .sku_wrapper,
body.single-product div.product .product_meta .posted_in,
body.single-product div.product .product_meta .tagged_as {
    display: block;
}

body.single-product div.product .product_meta a {
    color: var(--jpc-shop-primary);
    font-weight: 600;
    text-decoration: none;
}

body.single-product div.product .product_meta a:hover {
    color: var(--jpc-shop-primary-dark);
    text-decoration: underline;
}

/* =========================================================
   9. PRODUCT INFORMATION TABS
   Description | Additional Information | Reviews
========================================================= */

body.single-product div.product > .woocommerce-tabs {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    float: none !important;
    clear: both;
    width: 100% !important;
    max-width: 100%;
    min-width: 0;
    margin: 0 !important;
    padding: 28px;
    border: 1px solid var(--jpc-shop-border);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--jpc-shop-shadow);
}

/* Tabs navigation */
body.single-product div.product .woocommerce-tabs ul.tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 8px;
    margin: 0 0 24px !important;
    padding: 0 0 0 !important;
    border: 0;
    border-bottom: 1px solid var(--jpc-shop-border);
    background: transparent;
}

body.single-product div.product .woocommerce-tabs ul.tabs::before,
body.single-product div.product .woocommerce-tabs ul.tabs::after,
body.single-product div.product .woocommerce-tabs ul.tabs li::before,
body.single-product div.product .woocommerce-tabs ul.tabs li::after {
    display: none !important;
    content: none !important;
}

body.single-product div.product .woocommerce-tabs ul.tabs li {
    float: none;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 8px 8px 0 0;
    background: transparent !important;
    box-shadow: none;
    list-style: none;
}

body.single-product div.product .woocommerce-tabs ul.tabs li a {
    display: block;
    padding: 13px 18px !important;
    color: var(--jpc-shop-muted) !important;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: none;
}

body.single-product div.product .woocommerce-tabs ul.tabs li.active {
    border-bottom: 3px solid var(--jpc-shop-primary) !important;
    background: var(--jpc-shop-light) !important;
}

body.single-product div.product .woocommerce-tabs ul.tabs li.active a {
    color: var(--jpc-shop-primary) !important;
}

/* Tab content */
body.single-product div.product .woocommerce-tabs .panel {
    float: none;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    color: var(--jpc-shop-text);
    font-size: 15px;
    line-height: 1.85;
}

body.single-product div.product .woocommerce-tabs .panel h2 {
    margin: 0 0 16px;
    color: var(--jpc-shop-dark);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.35;
}

body.single-product div.product .woocommerce-tabs .panel p {
    margin: 0 0 16px;
}

body.single-product div.product .woocommerce-tabs .panel table {
    width: 100%;
    border-collapse: collapse;
}

body.single-product div.product .woocommerce-tabs .panel th,
body.single-product div.product .woocommerce-tabs .panel td {
    padding: 12px;
    border: 1px solid var(--jpc-shop-border);
    text-align: left;
}

/* Reviews form */
body.single-product .jpc-woocommerce-page
.woocommerce #reviews #comments {
    margin-bottom: 24px;
}

body.single-product .jpc-woocommerce-page
.woocommerce #reviews #review_form_wrapper {
    margin-top: 24px;
}

body.single-product .jpc-woocommerce-page
.woocommerce #review_form #respond textarea,
body.single-product .jpc-woocommerce-page
.woocommerce #review_form #respond input[type="text"],
body.single-product .jpc-woocommerce-page
.woocommerce #review_form #respond input[type="email"] {
    width: 100%;
    max-width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--jpc-shop-border);
    border-radius: 8px;
    background: #fff;
    color: var(--jpc-shop-text);
    font: inherit;
}

body.single-product .jpc-woocommerce-page
.woocommerce #review_form #respond .form-submit input {
    padding: 12px 22px;
    border: 0;
    border-radius: 8px;
    background: var(--jpc-shop-primary);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

body.single-product .jpc-woocommerce-page
.woocommerce #review_form #respond .form-submit input:hover {
    background: var(--jpc-shop-primary-dark);
}

/* =========================================================
   10. WOOCOMMERCE NOTICES
========================================================= */

.jpc-woocommerce-page .woocommerce-message,
.jpc-woocommerce-page .woocommerce-info {
    border-top-color: var(--jpc-shop-primary);
}

.jpc-woocommerce-page .woocommerce-message::before,
.jpc-woocommerce-page .woocommerce-info::before {
    color: var(--jpc-shop-primary);
}

.jpc-woocommerce-page .woocommerce-error {
    border-top-color: #b42318;
}

/* =========================================================
   11. CART, CHECKOUT AND ACCOUNT BASIC STYLING
========================================================= */

.jpc-woocommerce-page .woocommerce table.shop_table {
    border-color: var(--jpc-shop-border);
    border-radius: 10px;
}

.jpc-woocommerce-page .woocommerce table.shop_table th,
.jpc-woocommerce-page .woocommerce table.shop_table td {
    padding: 14px;
}

.jpc-woocommerce-page .woocommerce button.button,
.jpc-woocommerce-page .woocommerce a.button,
.jpc-woocommerce-page .woocommerce input.button,
.jpc-woocommerce-page .woocommerce #respond input#submit {
    border: 0;
    border-radius: 8px;
    background: var(--jpc-shop-primary);
    color: #fff;
    font-weight: 700;
}

.jpc-woocommerce-page .woocommerce button.button:hover,
.jpc-woocommerce-page .woocommerce a.button:hover,
.jpc-woocommerce-page .woocommerce input.button:hover,
.jpc-woocommerce-page .woocommerce #respond input#submit:hover {
    background: var(--jpc-shop-primary-dark);
    color: #fff;
}

.jpc-woocommerce-page .woocommerce input.input-text,
.jpc-woocommerce-page .woocommerce textarea,
.jpc-woocommerce-page .woocommerce select {
    max-width: 100%;
    border: 1px solid var(--jpc-shop-border);
    border-radius: 8px;
}

/* =========================================================
   12. TABLET
========================================================= */

@media (min-width: 768px) and (max-width: 1024px) {
    .jpc-woocommerce-container {
        width: calc(100% - 40px);
    }

    body.single-product div.product {
        column-gap: 24px;
    }

    body.single-product div.product > .summary {
        padding: 22px;
    }

    body.single-product div.product .product_title {
        font-size: 30px;
    }

    body.single-product div.product p.price,
    body.single-product div.product span.price {
        font-size: 27px;
    }
}

/* =========================================================
   13. MOBILE
========================================================= */

@media (max-width: 767px) {
    .jpc-woocommerce-container {
        width: calc(100% - 30px);
        padding-top: 18px;
        padding-bottom: 40px;
    }

    body.single-product div.product {
        grid-template-columns: minmax(0, 1fr) !important;
        grid-template-rows: auto auto auto;
        gap: 22px;
        margin-bottom: 32px;
    }

    body.single-product div.product > .images,
    body.single-product div.product > .woocommerce-product-gallery {
        grid-column: 1 !important;
        grid-row: 1 !important;
        padding: 12px;
        border-radius: 14px;
    }

    body.single-product div.product > .summary {
        grid-column: 1 !important;
        grid-row: 2 !important;
        padding: 22px 18px;
        border-radius: 14px;
    }

    body.single-product div.product > .woocommerce-tabs {
        grid-column: 1 !important;
        grid-row: 3 !important;
        padding: 18px;
        border-radius: 14px;
    }

    body.single-product div.product .product_title {
        font-size: 28px;
    }

    body.single-product div.product p.price,
    body.single-product div.product span.price {
        font-size: 26px;
    }

    body.single-product div.product .woocommerce-product-gallery img {
        border-radius: 10px;
    }

    body.single-product div.product form.cart {
        align-items: center;
        gap: 10px;
    }

    body.single-product div.product form.cart .quantity {
        flex-shrink: 0;
    }

    body.single-product div.product form.cart .single_add_to_cart_button {
        flex: 1 1 140px;
        padding: 13px 12px;
        font-size: 14px;
    }

    body.single-product div.product .woocommerce-tabs ul.tabs {
        gap: 4px;
        margin-bottom: 18px !important;
    }

    body.single-product div.product .woocommerce-tabs ul.tabs li a {
        padding: 10px 11px !important;
        font-size: 13px;
    }

    body.single-product div.product .woocommerce-tabs .panel h2 {
        font-size: 21px;
    }

    body.single-product div.product .flex-control-thumbs li {
        width: 58px;
    }

    .jpc-woocommerce-page .woocommerce table.shop_table th,
    .jpc-woocommerce-page .woocommerce table.shop_table td {
        padding: 9px;
    }
}

/* =========================================================
   14. SMALL MOBILE
========================================================= */

@media (max-width: 380px) {
    .jpc-woocommerce-container {
        width: calc(100% - 24px);
    }

    body.single-product div.product > .summary {
        padding: 18px 14px;
    }

    body.single-product div.product .product_title {
        font-size: 25px;
    }

    body.single-product div.product form.cart {
        gap: 8px;
    }

    body.single-product div.product form.cart .quantity .jpc-qty-btn {
        flex-basis: 32px;
        width: 32px;
    }

    body.single-product div.product form.cart .quantity input.qty {
        flex-basis: 36px;
        width: 36px !important;
        min-width: 36px;
    }
}

/* Keep the sale badge out of the product grid flow */
body.single-product div.product {
    position: relative;
}

body.single-product div.product > .onsale {
    position: absolute !important;
    top: 14px !important;
    left: 14px !important;
    right: auto !important;
    z-index: 10 !important;
}

/* Final control polish */
body.single-product div.product .summary form.cart .single_add_to_cart_button {
    background: var(--jpc-shop-primary) !important;
    border-color: var(--jpc-shop-primary) !important;
    color: #fff !important;
    border-radius: 9px !important;
    min-height: 48px;
    font-weight: 700;
}

body.single-product div.product .summary form.cart .single_add_to_cart_button:hover {
    background: var(--jpc-shop-primary-dark) !important;
    border-color: var(--jpc-shop-primary-dark) !important;
    color: #fff !important;
}

body.single-product div.product .summary form.cart .quantity .jpc-qty-btn {
    cursor: pointer;
}


/* =====================================================
   JPC PRODUCT TABS — DESCRIPTION / INFO / REVIEWS
===================================================== */

body.single-product .woocommerce-tabs {
    margin-top: 42px !important;
    padding: 30px !important;
    background: #fff;
    border: 1px solid #dcecea;
    border-radius: 16px;
    box-shadow: 0 8px 28px rgba(0, 64, 61, 0.05);
}

body.single-product .woocommerce-tabs ul.tabs {
    display: flex !important;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 28px !important;
    padding: 0 0 12px !important;
    border-bottom: 1px solid #dcecea !important;
}

body.single-product .woocommerce-tabs ul.tabs::before,
body.single-product .woocommerce-tabs ul.tabs::after,
body.single-product .woocommerce-tabs ul.tabs li::before,
body.single-product .woocommerce-tabs ul.tabs li::after {
    display: none !important;
    content: none !important;
}

body.single-product .woocommerce-tabs ul.tabs li {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.single-product .woocommerce-tabs ul.tabs li a {
    display: block;
    padding: 12px 20px !important;
    border-radius: 8px;
    color: #607778 !important;
    font-size: 15px;
    font-weight: 600;
    transition: background .2s ease, color .2s ease;
}

body.single-product .woocommerce-tabs ul.tabs li a:hover {
    background: #f5fcfb;
    color: #006c63 !important;
}

body.single-product .woocommerce-tabs ul.tabs li.active {
    border: 0 !important;
    border-radius: 8px;
    background: #e9f8f4 !important;
}

body.single-product .woocommerce-tabs ul.tabs li.active a {
    color: #006c63 !important;
}

body.single-product .woocommerce-tabs .woocommerce-Tabs-panel {
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #173f42;
    font-size: 15px;
    line-height: 1.85;
}

body.single-product .woocommerce-tabs .woocommerce-Tabs-panel > h2 {
    margin: 0 0 18px;
    color: #073f43;
    font-size: 25px;
    font-weight: 750;
}

body.single-product .woocommerce-tabs .woocommerce-Tabs-panel p {
    margin: 0 0 16px;
}

body.single-product .woocommerce-tabs .woocommerce-Tabs-panel ul {
    padding-left: 18px;
}
body.single-product .woocommerce-tabs .woocommerce-Tabs-panel ul li{
    list-style-type: disc;
}
body.single-product .woocommerce-tabs .woocommerce-Tabs-panel table {
    width: 100%;
    border-collapse: collapse;
}

body.single-product .woocommerce-tabs .woocommerce-Tabs-panel th,
body.single-product .woocommerce-tabs .woocommerce-Tabs-panel td {
    padding: 13px 16px;
    border: 1px solid #dcecea;
    text-align: left;
}

body.single-product .woocommerce-tabs .woocommerce-Tabs-panel tr:nth-child(even) {
    background: #f5fcfb;
}

/* =====================================================
   BUY NOW BUTTON
===================================================== */

body.single-product .summary form.cart .jpc-buy-now-button {
    display: inline-flex;
    flex: 1 1 150px;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    margin: 0;
    padding: 13px 24px;
    border: 1px solid #004f49;
    border-radius: 9px;
    background: #fff;
    color: #006c63;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}

body.single-product .summary form.cart .jpc-buy-now-button:hover {
    background: #004f49;
    color: #fff;
}

/* =====================================================
   MORE PRODUCTS SECTION
===================================================== */

.jpc-more-products {
    width: 100%;
    margin: 54px 0 24px;
    padding: 36px 28px;
    overflow: hidden;
    border: 1px solid #dcecea;
    border-radius: 18px;
    background: #f5fcfb;
    box-sizing: border-box;
}

.jpc-more-products-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.jpc-section-eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    color: #006c63;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.jpc-more-products-heading h2 {
    margin: 0 0 8px;
    color: #073f43;
    font-size: clamp(25px, 3vw, 34px);
    font-weight: 750;
    line-height: 1.25;
}

.jpc-more-products-heading p {
    margin: 0;
    color: #607778;
    font-size: 15px;
    line-height: 1.7;
}

.jpc-related-slider-wrap {
    position: relative;
    padding: 0 2px;
}

.jpc-related-products-slider {
    margin: 0 !important;
    padding: 4px 0 12px !important;
    list-style: none;
}

.jpc-related-products-slider .slick-track {
    display: flex !important;
    align-items: stretch;
}

.jpc-related-products-slider .slick-slide {
    height: auto !important;
    padding: 0 10px;
}

.jpc-related-products-slider .slick-slide > div {
    height: 100%;
}

.jpc-related-products-slider li.product {
    display: flex !important;
    flex-direction: column;
    float: none !important;
    width: 100% !important;
    height: 100%;
    margin: 0 !important;
    padding: 14px;
    overflow: hidden;
    border: 1px solid #dcecea;
    border-radius: 14px;
    background: #fff;
    box-sizing: border-box;
    transition: box-shadow .2s ease, transform .2s ease;
}

.jpc-related-products-slider li.product:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 64, 61, .09);
}

.jpc-related-products-slider li.product a img {
    display: block;
    width: 100% !important;
    height: 210px !important;
    margin: 0 0 16px !important;
    border-radius: 10px;
    background: #fff;
    object-fit: contain;
}

.jpc-related-products-slider li.product .woocommerce-loop-product__title {
    min-height: 44px;
    margin: 0 0 10px !important;
    padding: 0 !important;
    color: #073f43;
    font-size: 16px !important;
    font-weight: 700;
    line-height: 1.45;
}

.jpc-related-products-slider li.product .price {
    display: block;
    margin: 0 0 16px !important;
    color: #006c63 !important;
    font-size: 17px !important;
    font-weight: 750;
}

.jpc-related-products-slider li.product .price del {
    margin-right: 5px;
    color: #899695;
    font-size: 13px;
    font-weight: 400;
}

.jpc-related-products-slider li.product .price ins {
    text-decoration: none;
}

.jpc-related-products-slider li.product .button {
    display: block !important;
    width: 100%;
    margin: auto 0 0 !important;
    padding: 12px 10px !important;
    border: 1px solid #006c63 !important;
    border-radius: 8px !important;
    background: #006c63 !important;
    color: #fff !important;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

.jpc-related-products-slider li.product .button:hover {
    border-color: #004f49 !important;
    background: #004f49 !important;
}

.jpc-related-products-slider li.product .onsale {
    top: 20px !important;
    right: 20px !important;
    left: auto !important;
    z-index: 2;
    min-height: auto;
    min-width: auto;
    padding: 7px 10px;
    border-radius: 20px;
    background: #006c63;
    color: #fff;
    font-size: 11px;
    line-height: 1.3;
}

.jpc-slider-arrow {
    position: absolute;
    top: -66px;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid #c9ddda;
    border-radius: 50%;
    background: #fff;
    color: #006c63;
    font-size: 23px;
    line-height: 1;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}

.jpc-slider-prev {
    right: 54px;
}

.jpc-slider-next {
    right: 4px;
}

.jpc-slider-arrow:hover {
    border-color: #006c63;
    background: #006c63;
    color: #fff;
}

.jpc-slider-arrow.slick-disabled {
    opacity: .35;
    cursor: not-allowed;
}

.jpc-related-products-slider .slick-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}

.jpc-related-products-slider .slick-dots button {
    width: 9px;
    height: 9px;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 50%;
    background: #c9ddda;
    font-size: 0;
    cursor: pointer;
}

.jpc-related-products-slider .slick-dots .slick-active button {
    width: 24px;
    border-radius: 10px;
    background: #006c63;
}

/* Responsive */
@media (max-width: 767px) {
    body.single-product .woocommerce-tabs {
        margin-top: 28px !important;
        padding: 18px !important;
    }

    body.single-product .woocommerce-tabs ul.tabs {
        gap: 4px;
    }

    body.single-product .woocommerce-tabs ul.tabs li a {
        padding: 10px 12px !important;
        font-size: 13px;
    }

    .jpc-more-products {
        margin-top: 36px;
        padding: 22px 12px;
        border-radius: 14px;
    }

    .jpc-more-products-heading {
        margin-bottom: 22px;
    }

    .jpc-more-products-heading p {
        max-width: 85%;
        font-size: 13px;
    }

    .jpc-slider-arrow {
        top: -72px;
        width: 36px;
        height: 36px;
        font-size: 20px;
    }

    .jpc-slider-prev {
        right: 46px;
    }

    .jpc-slider-next {
        right: 2px;
    }

    .jpc-related-products-slider .slick-slide {
        padding: 0 6px;
    }

    .jpc-related-products-slider li.product {
        padding: 10px;
    }

    .jpc-related-products-slider li.product a img {
        height: 180px !important;
    }

    body.single-product .summary form.cart .jpc-buy-now-button {
        flex: 1 1 140px;
        padding: 12px;
    }
}


/* =====================================================
   JPC PRODUCT PAGE — GALLERY SCROLL + RESPONSIVE FIX
   Add at the END of assets/css/woocommerce.css
===================================================== */

/* Prevent product page from causing horizontal overflow */
body.single-product,
body.single-product #page,
body.single-product #primary {
    max-width: 100%;
}

body.single-product .jpc-woocommerce-container {
    width: min(1440px, calc(100% - 48px));
    max-width: 1440px;
    margin-inline: auto;
    box-sizing: border-box;
}

/* Product layout */
body.single-product div.product {
    display: grid !important;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr) !important;
    gap: 32px !important;
    align-items: start !important;
    /*width: 100% !important;*/
    min-width: 0;
    width: min(1440px, calc(100% - 64px));
    margin-left: auto;
    margin-right: auto;
}

/* Main gallery */
body.single-product div.product > .woocommerce-product-gallery,
body.single-product div.product > .images {
    grid-column: 1 !important;
    grid-row: 1 !important;
    float: none !important;
    width: 100% !important;
    min-width: 0;
    margin: 0 !important;
    padding: 16px !important;
    overflow: hidden;
}

/* Main image and gallery wrapper */
body.single-product .woocommerce-product-gallery .flex-viewport {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    border-radius: 12px;
}

body.single-product .woocommerce-product-gallery__wrapper {
    margin: 0 !important;
}

body.single-product .woocommerce-product-gallery__image {
    overflow: hidden;
}

body.single-product .woocommerce-product-gallery__image img {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    object-fit: contain;
}

/* Thumbnail strip: one horizontal row with scroll */
body.single-product .woocommerce-product-gallery .flex-control-thumbs {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    margin: 14px 0 2px !important;
    padding: 0 0 8px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    list-style: none;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #006c63 #e9f8f4;
}

body.single-product .woocommerce-product-gallery .flex-control-thumbs li {
    /*flex: 0 0 88px !important;*/
    /*float: none !important;*/
    /*width: 88px !important;*/
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
}

body.single-product .woocommerce-product-gallery .flex-control-thumbs img {
    display: block;
    width: 100% !important;
    /*height: 88px !important;*/
    object-fit: contain;
    border: 1px solid #dcecea;
    border-radius: 9px;
    background: #fff;
    opacity: .75;
    cursor: pointer;
    transition: opacity .2s ease, border-color .2s ease;
}

body.single-product .woocommerce-product-gallery .flex-control-thumbs img:hover,
body.single-product .woocommerce-product-gallery .flex-control-thumbs img.flex-active {
    opacity: 1;
    border-color: #006c63;
}

/* Product information */
body.single-product div.product > .summary {
    grid-column: 2 !important;
    grid-row: 1 !important;
    float: none !important;
    width: 100% !important;
    min-width: 0;
    margin: 0 !important;
    padding: 26px !important;
    overflow-wrap: anywhere;
}

/* Description / Reviews tabs below both columns */
body.single-product div.product > .woocommerce-tabs {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    width: 100% !important;
    min-width: 0;
    margin: 0 !important;
}

/* Cart controls must fit inside the summary */
body.single-product .summary form.cart {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    width: 100%;
}

body.single-product .summary form.cart .quantity {
    max-width: 100%;
}

body.single-product .summary form.cart .single_add_to_cart_button,
body.single-product .summary form.cart .jpc-buy-now-button {
    flex: 1 1 140px;
    min-width: 0;
    max-width: 100%;
}

/* Tablet */
@media (max-width: 1024px) {
    body.single-product .jpc-woocommerce-container {
        width: calc(100% - 32px);
    }

    body.single-product div.product {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
        gap: 22px !important;
    }

    body.single-product div.product > .summary {
        padding: 20px !important;
    }

    body.single-product div.product .product_title {
        font-size: clamp(25px, 3vw, 32px);
    }
}

/* Mobile */
@media (max-width: 767px) {
    body.single-product .jpc-woocommerce-container {
        width: calc(100% - 24px);
        padding-top: 16px;
        padding-bottom: 32px;
    }

    body.single-product div.product {
        display: block !important;
        grid-template-columns: minmax(0, 1fr) !important;
        grid-template-rows: auto auto auto;
        gap: 18px !important;
    }

    body.single-product div.product > .woocommerce-product-gallery,
    body.single-product div.product > .images {
        grid-column: 1 !important;
        grid-row: 1 !important;
        padding: 10px !important;
    }

    body.single-product div.product > .summary {
        grid-column: 1 !important;
        grid-row: 2 !important;
        padding: 20px 16px !important;
    }

    body.single-product div.product > .woocommerce-tabs {
        grid-column: 1 !important;
        grid-row: 3 !important;
        padding: 18px !important;
    }

    body.single-product div.product .product_title {
        font-size: clamp(24px, 6vw, 30px);
        line-height: 1.3;
    }

    body.single-product div.product p.price,
    body.single-product div.product span.price {
        font-size: 25px;
    }

    body.single-product .woocommerce-product-gallery .flex-control-thumbs li {
        flex-basis: 72px !important;
        width: 72px !important;
    }

    body.single-product .woocommerce-product-gallery .flex-control-thumbs img {
        height: 72px !important;
    }

    body.single-product .woocommerce-tabs ul.tabs {
        gap: 4px;
    }

    body.single-product .woocommerce-tabs ul.tabs li a {
        padding: 10px 11px !important;
        font-size: 13px;
    }

    body.single-product .summary form.cart .single_add_to_cart_button,
    body.single-product .summary form.cart .jpc-buy-now-button {
        flex: 1 1 120px;
        padding: 12px 10px;
        font-size: 14px;
    }
}

/* Small mobile */
@media (max-width: 380px) {
    body.single-product .jpc-woocommerce-container {
        width: calc(100% - 16px);
    }

    body.single-product div.product > .summary {
        padding: 16px 12px !important;
    }

    body.single-product .summary form.cart {
        gap: 8px;
    }

    body.single-product .summary form.cart .single_add_to_cart_button,
    body.single-product .summary form.cart .jpc-buy-now-button {
        flex-basis: 100%;
        width: 100%;
    }
}

/* JPC: WooCommerce product image lightbox close button */

.pswp button.pswp__button--close,
.pswp__button--close {
    display: block !important;
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    z-index: 999999 !important;
    width: 44px !important;
    height: 44px !important;
    padding: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    background-color: rgba(0, 79, 73, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.7) !important;
    border-radius: 50% !important;
    color: #fff !important;
    cursor: pointer !important;
}

/* Visible cross icon */
.pswp button.pswp__button--close::after,
.pswp__button--close::after {
    content: "\00D7";
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #fff;
    font-size: 32px;
    font-weight: 400;
    line-height: 1;
}

/* Ensure the lightbox controls are above the image */
.pswp__top-bar {
    z-index: 999998 !important;
}

/* Product trust badges */
.jpc-trust-badges {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    width: 100%;
    margin: 24px 0;
}

.jpc-trust-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 20px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    box-sizing: border-box;
}

.jpc-trust-badge svg {
    display: block;
    width: 21px;
    height: 21px;
    flex-shrink: 0;
}

.jpc-shipping {
    background: #d5efdc;
    color: #286b36;
}

.jpc-cod {
    background: #e6efff;
    color: #2055db;
}

.jpc-returns {
    background: #fbefe4;
    color: #cf4b18;
}

/* Tablet */
@media (max-width: 768px) {
    .jpc-trust-badges {
        gap: 8px;
        margin: 18px 0;
    }

    .jpc-trust-badge {
        padding: 10px 14px;
        gap: 6px;
        font-size: 14px;
    }

    .jpc-trust-badge svg {
        width: 18px;
        height: 18px;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .jpc-trust-badges {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .jpc-trust-badge {
        width: 100%;
        justify-content: center;
        padding: 12px 16px;
        font-size: 15px;
    }
}


/* =========================================
   JPC - CART PAGE DESIGN
========================================= */

/* Main cart page container */
body.woocommerce-cart .site-main .container.prose {
    width: min(1240px, calc(100% - 40px));
    max-width: 1240px;
    margin: 0 auto;
    padding: 32px 0 70px;
    color: #173f42;
}

/* Breadcrumbs */
body.woocommerce-cart .breadcrumbs {
    margin-bottom: 14px;
    color: #718584;
    font-size: 13px;
    font-weight: 500;
}

body.woocommerce-cart .breadcrumbs a {
    color: #006c63;
    text-decoration: none;
}

body.woocommerce-cart .breadcrumbs a:hover {
    text-decoration: underline;
}

/* Page heading */
body.woocommerce-cart .page-title {
    margin: 0 0 30px;
    color: #073f43;
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 750;
    line-height: 1.2;
    letter-spacing: -0.8px;
}

/* Cart layout */
body.woocommerce-cart .wc-block-cart {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 350px;
    align-items: start;
    gap: 28px;
}

body.woocommerce-cart .wc-block-cart__main,
body.woocommerce-cart .wc-block-cart__sidebar {
    min-width: 0;
    width: 100%;
}

/* Product table card */
body.woocommerce-cart .wc-block-cart-items {
    width: 100%;
    border: 1px solid #e1ece9;
    border-radius: 16px;
    border-spacing: 0;
    border-collapse: separate;
    overflow: hidden;
    background: #fff;
}

/* Table header */
body.woocommerce-cart .wc-block-cart-items__header th {
    padding: 18px 16px !important;
    background: #f3faf8;
    color: #426563;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #e1ece9;
}

body.woocommerce-cart .wc-block-cart-items__header-image {
    width: 112px;
}

/* Product row */
body.woocommerce-cart .wc-block-cart-items__row td {
    padding: 22px 16px;
    background: #fff;
    border-bottom: 1px solid #edf2f0;
    vertical-align: top;
}

body.woocommerce-cart .wc-block-cart-items__row:last-child td {
    border-bottom: 0;
}

/* Product image */
body.woocommerce-cart .wc-block-cart-item__image img {
    display: block;
    width: 88px;
    height: 88px;
    max-width: 100%;
    object-fit: cover;
    border: 1px solid #e4eeeb;
    border-radius: 12px;
    background: #f7fbfa;
}

/* Product name */
body.woocommerce-cart .wc-block-components-product-name {
    display: inline-block;
    margin-bottom: 10px;
    color: #073f43;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    text-decoration: none;
}

body.woocommerce-cart .wc-block-components-product-name:hover {
    color: #008477;
}

/* Product price */
body.woocommerce-cart .wc-block-cart-item__prices,
body.woocommerce-cart .wc-block-cart-item__total {
    color: #173f42;
    font-size: 15px;
    font-weight: 700;
}

body.woocommerce-cart .wc-block-cart-item__total {
    white-space: nowrap;
}

/* Product description */
body.woocommerce-cart .wc-block-components-product-metadata {
    margin: 6px 0 14px;
    color: #718584;
    font-size: 13px;
    line-height: 1.65;
}

body.woocommerce-cart .wc-block-components-product-metadata p {
    margin: 0;
}

/* Quantity controls */
body.woocommerce-cart .wc-block-components-quantity-selector {
    display: inline-flex;
    align-items: center;
    width: max-content;
    max-width: 100%;
    min-height: 42px;
    margin: 4px 0 10px;
    overflow: hidden;
    border: 1px solid #dce9e6;
    border-radius: 9px;
    background: #fff;
}

body.woocommerce-cart .wc-block-components-quantity-selector__button {
    width: 38px;
    min-width: 38px;
    height: 40px;
    padding: 0;
    border: 0;
    background: #f3faf8;
    color: #006c63;
    font-size: 21px;
    cursor: pointer;
}

body.woocommerce-cart .wc-block-components-quantity-selector__button:hover {
    background: #e4f4ef;
}

body.woocommerce-cart .wc-block-components-quantity-selector__input {
    width: 42px;
    min-width: 42px;
    height: 40px;
    padding: 0;
    border: 0;
    background: #fff;
    color: #173f42;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    box-shadow: none;
}

/* Remove item */
body.woocommerce-cart .wc-block-cart-item__remove-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 0;
    border: 0;
    background: transparent;
    color: #ba4b45;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

body.woocommerce-cart .wc-block-cart-item__remove-link:hover {
    color: #92332f;
}

body.woocommerce-cart .wc-block-cart-item__remove-link svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
}

/* Cart totals card */
body.woocommerce-cart .wc-block-cart__sidebar {
    padding: 24px;
    border: 1px solid #e1ece9;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(0, 64, 61, 0.06);
}

body.woocommerce-cart .wc-block-cart__totals-title {
    margin: 0 0 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e8efed;
    color: #073f43;
    font-size: 21px;
    font-weight: 750;
}

/* Coupon section */
body.woocommerce-cart .wc-block-components-totals-coupon {
    color: #006c63;
    font-size: 14px;
    font-weight: 600;
}

body.woocommerce-cart .wc-block-components-totals-coupon
.wc-block-components-panel__button {
    /*padding: 14px 0;*/
    cursor: pointer;
}

/* Subtotal and shipping */
body.woocommerce-cart .wc-block-components-totals-wrapper {
    border-color: #e8efed;
}

body.woocommerce-cart .wc-block-components-totals-item {
    /*padding: 13px 0;*/
    color: #607778;
    font-size: 14px;
}

body.woocommerce-cart .wc-block-components-totals-item__value {
    color: #173f42;
    font-weight: 650;
}

body.woocommerce-cart .wc-block-components-totals-footer-item {
    margin-top: 8px;
    padding: 18px 0;
    border-top: 1px solid #e1ece9;
}

body.woocommerce-cart .wc-block-components-totals-footer-item
.wc-block-components-totals-item__label {
    color: #073f43;
    font-size: 16px;
    font-weight: 750;
}

body.woocommerce-cart .wc-block-components-totals-footer-item
.wc-block-components-totals-item__value {
    color: #006c63;
    font-size: 21px;
    font-weight: 800;
}

/* Checkout button */
body.woocommerce-cart .wc-block-cart__submit {
    margin-top: 20px;
}

body.woocommerce-cart .wc-block-cart__submit-button {
    display: flex;
    width: 100%;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    padding: 14px 18px;
    border: 0;
    border-radius: 10px;
    background: #006c63;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

body.woocommerce-cart .wc-block-cart__submit-button:hover {
    background: #004f49;
    color: #fff;
    transform: translateY(-1px);
}

/* Keyboard accessibility */
body.woocommerce-cart .wc-block-cart a:focus-visible,
body.woocommerce-cart .wc-block-cart button:focus-visible {
    outline: 2px solid #008477;
    outline-offset: 3px;
}

/* =========================================
   TABLET
========================================= */
@media (max-width: 1024px) {
    body.woocommerce-cart .wc-block-cart {
        grid-template-columns: minmax(0, 1fr) 300px;
        gap: 18px;
    }

    body.woocommerce-cart .wc-block-cart__sidebar {
        padding: 20px;
    }

    body.woocommerce-cart .wc-block-cart-items__row td {
        padding: 18px 12px;
    }

    body.woocommerce-cart .wc-block-cart-item__image img {
        width: 72px;
        height: 72px;
    }
}

/* =========================================
   MOBILE
========================================= */
@media (max-width: 782px) {
    body.woocommerce-cart .site-main .container.prose {
        width: calc(100% - 28px);
        padding: 22px 0 45px;
    }

    body.woocommerce-cart .page-title {
        margin-bottom: 22px;
        font-size: 29px;
    }

    body.woocommerce-cart .wc-block-cart {
        display: flex;
        flex-direction: column;
        gap: 22px;
    }

    body.woocommerce-cart .wc-block-cart__main,
    body.woocommerce-cart .wc-block-cart__sidebar {
        width: 100%;
    }

    body.woocommerce-cart .wc-block-cart-items {
        border-radius: 12px;
    }

    body.woocommerce-cart .wc-block-cart-items__header th {
        padding: 12px 8px !important;
        font-size: 11px;
    }

    body.woocommerce-cart .wc-block-cart-items__row td {
        padding: 14px 8px;
    }

    body.woocommerce-cart .wc-block-cart-item__image {
        width: 76px;
        min-width: 76px;
    }

    body.woocommerce-cart .wc-block-cart-item__image img {
        width: 64px;
        height: 64px;
        border-radius: 9px;
    }

    body.woocommerce-cart .wc-block-components-product-name {
        font-size: 14px;
        line-height: 1.45;
    }

    body.woocommerce-cart .wc-block-cart-item__prices,
    body.woocommerce-cart .wc-block-cart-item__total {
        font-size: 13px;
    }

    body.woocommerce-cart .wc-block-components-product-metadata {
        font-size: 12px;
        line-height: 1.5;
    }

    body.woocommerce-cart .wc-block-cart__sidebar {
        padding: 20px;
        border-radius: 12px;
    }

    body.woocommerce-cart .wc-block-cart__totals-title {
        font-size: 20px;
    }
}

/* Very small mobile screens */
@media (max-width: 420px) {
    body.woocommerce-cart .site-main .container.prose {
        width: calc(100% - 20px);
    }

    body.woocommerce-cart .wc-block-cart-items__header-image {
        width: 62px;
    }

    body.woocommerce-cart .wc-block-cart-item__image {
        width: 62px;
        min-width: 62px;
    }

    body.woocommerce-cart .wc-block-cart-item__image img {
        width: 54px;
        height: 54px;
    }

    body.woocommerce-cart .wc-block-cart-items__row td {
        padding: 12px 5px;
    }

    body.woocommerce-cart .wc-block-components-quantity-selector__button {
        width: 30px;
        min-width: 30px;
    }

    body.woocommerce-cart .wc-block-components-quantity-selector__input {
        width: 32px;
        min-width: 32px;
    }

    body.woocommerce-cart .wc-block-cart__sidebar {
        padding: 16px;
    }
}



/* =========================================
   JPC - CHECKOUT PAGE
========================================= */

body.woocommerce-checkout .site-main .container.prose {
    width: min(1240px, calc(100% - 40px));
    max-width: 1240px;
    margin: 0 auto;
    padding: 32px 0 70px;
    color: #173f42;
    box-sizing: border-box;
}

body.woocommerce-checkout .breadcrumbs {
    margin-bottom: 14px;
    color: #718584;
    font-size: 13px;
    font-weight: 500;
}

body.woocommerce-checkout .breadcrumbs a {
    color: #006c63;
    text-decoration: none;
}

body.woocommerce-checkout .page-title {
    margin: 0 0 30px;
    color: #073f43;
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 750;
    line-height: 1.2;
    letter-spacing: -0.8px;
}

/* Main two-column layout */
/*body.woocommerce-checkout .wc-block-checkout {*/
/*    display: grid;*/
/*    grid-template-columns: minmax(0, 1fr) 370px;*/
/*    align-items: start;*/
/*    gap: 30px;*/
/*}*/

body.woocommerce-checkout .wc-block-checkout__main,
body.woocommerce-checkout .wc-block-checkout__sidebar {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

/* Left side form */
body.woocommerce-checkout .wc-block-checkout__form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Checkout sections */
body.woocommerce-checkout .wc-block-components-checkout-step {
    margin: 0;
    padding: 24px;
    border: 1px solid #e1ece9;
    border-radius: 14px;
    background: #fff;
}

body.woocommerce-checkout .wc-block-components-checkout-step__heading-container {
    margin-bottom: 20px;
}

body.woocommerce-checkout .wc-block-components-checkout-step__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

body.woocommerce-checkout .wc-block-components-checkout-step__title {
    margin: 0;
    color: #073f43;
    font-size: 19px;
    font-weight: 750;
    line-height: 1.4;
}

body.woocommerce-checkout .wc-block-components-checkout-step__content {
    color: #173f42;
}

/* Input fields */
body.woocommerce-checkout .wc-block-components-text-input,
body.woocommerce-checkout .wc-blocks-components-select__container {
    margin-bottom: 14px;
}

body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-blocks-components-select__select {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    border: 1px solid #dce9e6;
    border-radius: 9px;
    background-color: #fff;
    color: #173f42;
    font-size: 14px;
    box-shadow: none;
    box-sizing: border-box;
}

body.woocommerce-checkout .wc-block-components-text-input input:focus,
body.woocommerce-checkout .wc-blocks-components-select__select:focus {
    border-color: #008477;
    outline: 2px solid rgba(0, 132, 119, 0.12);
    outline-offset: 1px;
}

body.woocommerce-checkout .wc-block-components-text-input label,
body.woocommerce-checkout .wc-blocks-components-select__label {
    color: #607778;
    font-size: 13px;
}

/* Address fields grid */
body.woocommerce-checkout .wc-block-components-address-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 14px;
}

body.woocommerce-checkout .wc-block-components-address-form__email,
body.woocommerce-checkout .wc-block-components-address-form__country,
body.woocommerce-checkout .wc-block-components-address-form__address_1,
body.woocommerce-checkout .wc-block-components-address-form__address_2,
body.woocommerce-checkout .wc-block-components-address-form__city,
body.woocommerce-checkout .wc-block-components-address-form__phone {
    grid-column: 1 / -1;
}

body.woocommerce-checkout .wc-block-components-address-form__address_2-toggle {
    margin: 0 0 14px;
    color: #006c63;
    font-size: 13px;
    cursor: pointer;
}

/* Address edit link */
body.woocommerce-checkout .wc-block-components-address-card {
    padding: 14px;
    border: 1px solid #e1ece9;
    border-radius: 10px;
    background: #f7fbfa;
}

body.woocommerce-checkout .wc-block-components-address-card address {
    color: #426563;
    font-size: 14px;
    line-height: 1.6;
}

body.woocommerce-checkout .wc-block-components-address-card__edit {
    color: #006c63;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

/* Checkbox */
body.woocommerce-checkout .wc-block-components-checkbox {
    margin: 8px 0;
}

body.woocommerce-checkout .wc-block-components-checkbox__label {
    color: #426563;
    font-size: 13px;
    line-height: 1.6;
}

body.woocommerce-checkout .wc-block-components-checkbox__input {
    accent-color: #006c63;
}

/* Shipping and payment choices */
body.woocommerce-checkout .wc-block-components-radio-control__option {
    border-color: #dce9e6;
    border-radius: 10px;
    background: #fff;
}

body.woocommerce-checkout .wc-block-components-radio-control__option-checked {
    background: #f2faf7;
}

body.woocommerce-checkout .wc-block-components-radio-control__label,
body.woocommerce-checkout .wc-block-components-radio-control__secondary-label {
    color: #173f42;
    font-size: 14px;
}

body.woocommerce-checkout .wc-block-components-radio-control__input {
    accent-color: #006c63;
}

/* Order notes */
body.woocommerce-checkout .wc-block-checkout__order-notes {
    padding: 18px 24px;
    border: 1px solid #e1ece9;
    border-radius: 12px;
    background: #fff;
}

/* Terms and privacy */
body.woocommerce-checkout .wc-block-checkout__terms {
    margin: 4px 0;
    color: #607778;
    font-size: 12px;
    line-height: 1.8;
}

body.woocommerce-checkout .wc-block-checkout__terms a {
    color: #006c63;
    text-decoration: underline;
}

/* Order summary sidebar */
body.woocommerce-checkout .wc-block-checkout__sidebar {
    position: sticky;
    top: 16px;
    padding: 24px;
    border: 1px solid #e1ece9;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(0, 64, 61, 0.06);
}

body.woocommerce-checkout .wc-block-components-checkout-order-summary__title {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e8efed;
}

body.woocommerce-checkout .wc-block-components-checkout-order-summary__title-text {
    margin: 0;
    color: #073f43;
    font-size: 20px;
    font-weight: 750;
}

body.woocommerce-checkout .wc-block-components-checkout-order-summary__title-price {
    margin-left: auto;
    color: #006c63;
    font-size: 17px;
    font-weight: 750;
}

body.woocommerce-checkout .wc-block-components-checkout-order-summary__content {
    padding-top: 16px;
}

/* Product in order summary */
body.woocommerce-checkout .wc-block-components-order-summary-item {
    gap: 12px;
    padding-bottom: 18px;
}

body.woocommerce-checkout .wc-block-components-order-summary-item__image img {
    display: block;
    width: 64px;
    height: 64px;
    object-fit: cover;
    border: 1px solid #e1ece9;
    border-radius: 9px;
}

body.woocommerce-checkout .wc-block-components-order-summary-item__quantity {
    background: #006c63;
    color: #fff;
    border-radius: 50%;
}

body.woocommerce-checkout .wc-block-components-order-summary-item
.wc-block-components-product-name {
    color: #073f43;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    text-decoration: none;
}

body.woocommerce-checkout .wc-block-components-order-summary-item
.wc-block-components-product-metadata {
    margin-top: 5px;
    color: #718584;
    font-size: 12px;
    line-height: 1.5;
}

/* Coupon */
body.woocommerce-checkout .wc-block-components-totals-coupon {
    color: #006c63;
    font-size: 14px;
    font-weight: 650;
    padding: 0px !important;
}

body.woocommerce-checkout .wc-block-components-totals-coupon
.wc-block-components-panel__button {
    cursor: pointer;
}

/* Summary amounts */
body.woocommerce-checkout .wc-block-components-totals-wrapper {
    border-color: #e8efed;
}

body.woocommerce-checkout .wc-block-components-totals-item {
    /*padding: 13px 0;*/
    color: #607778;
    font-size: 14px;
}

body.woocommerce-checkout .wc-block-components-totals-item__value {
    color: #173f42;
    font-weight: 650;
}

body.woocommerce-checkout .wc-block-components-totals-footer-item {
    margin-top: 8px;
    padding: 18px 0;
    border-top: 1px solid #e1ece9;
}

body.woocommerce-checkout .wc-block-components-totals-footer-item
.wc-block-components-totals-item__label {
    color: #073f43;
    font-size: 16px;
    font-weight: 750;
}

body.woocommerce-checkout .wc-block-components-totals-footer-item
.wc-block-components-totals-item__value {
    color: #006c63;
    font-size: 22px;
    font-weight: 800;
}

/* Place Order button */
body.woocommerce-checkout .wc-block-checkout__actions {
    margin-top: 8px;
}

body.woocommerce-checkout .wc-block-components-checkout-place-order-button {
    display: flex;
    width: 100%;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    padding: 14px 20px;
    border: 0;
    border-radius: 10px;
    background: #006c63;
    color: #fff;
    font-size: 15px;
    font-weight: 750;
    box-shadow: none;
    transition: background 0.2s ease;
}

body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover {
    background: #004f49;
    color: #fff;
}

/* Validation messages */
body.woocommerce-checkout .wc-block-components-validation-error {
    color: #b42318;
    font-size: 12px;
}

body.woocommerce-checkout .has-error input {
    border-color: #d92d20;
}

/* Tablet */
@media (max-width: 1024px) {
    body.woocommerce-checkout .wc-block-checkout {
        grid-template-columns: minmax(0, 1fr) 320px;
        gap: 18px;
    }

    body.woocommerce-checkout .wc-block-components-checkout-step {
        padding: 20px;
    }

    body.woocommerce-checkout .wc-block-checkout__sidebar {
        padding: 20px;
    }
}

/* Mobile */
@media (max-width: 782px) {
    body.woocommerce-checkout .site-main .container.prose {
        width: calc(100% - 28px);
        padding: 22px 0 45px;
    }

    body.woocommerce-checkout .page-title {
        margin-bottom: 22px;
        font-size: 29px;
    }

    body.woocommerce-checkout .wc-block-checkout {
        display: flex;
        flex-direction: column;
        gap: 22px;
    }

    body.woocommerce-checkout .wc-block-checkout__main,
    body.woocommerce-checkout .wc-block-checkout__sidebar {
        width: 100%;
    }

    body.woocommerce-checkout .wc-block-checkout__sidebar {
        position: static;
        order: 2;
    }

    body.woocommerce-checkout .wc-block-components-checkout-step {
        padding: 18px;
        border-radius: 12px;
    }

    body.woocommerce-checkout .wc-block-components-checkout-step__title {
        font-size: 17px;
    }

    body.woocommerce-checkout .wc-block-components-address-form {
        grid-template-columns: minmax(0, 1fr);
    }

    body.woocommerce-checkout .wc-block-components-address-form > * {
        grid-column: 1 / -1;
    }

    body.woocommerce-checkout .wc-block-checkout__sidebar {
        padding: 18px;
        border-radius: 12px;
    }

    body.woocommerce-checkout .wc-block-checkout__order-notes {
        padding: 16px 18px;
    }
}

/* Small mobile */
@media (max-width: 420px) {
    body.woocommerce-checkout .site-main .container.prose {
        width: calc(100% - 20px);
    }

    body.woocommerce-checkout .wc-block-components-checkout-step {
        padding: 15px;
    }

    body.woocommerce-checkout .wc-block-checkout__sidebar {
        padding: 15px;
    }

    body.woocommerce-checkout .wc-block-components-text-input input,
    body.woocommerce-checkout .wc-blocks-components-select__select {
        min-height: 47px;
        font-size: 14px;
    }

    body.woocommerce-checkout .wc-block-components-checkout-order-summary__title-text {
        font-size: 18px;
    }
    .is-medium table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__image, .is-mobile table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__image, .is-small table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__image {
    padding-right: 0px;
    }
}
.wp-block-woocommerce-checkout-order-summary-block {
     border: 0px !important; 
}
.wc-block-components-order-summary .wc-block-components-order-summary-item__description {
    padding: unset !IMPORTANT;
}
.woocommerce-checkout .section , .woocommerce-cart .section{
    padding-top: 40px;
}

/* =========================================
   JPC - WOOCOMMERCE SUCCESS NOTICE
========================================= */

.woocommerce-notices-wrapper {
    width: 100%;
    margin: 0 0 24px;
    width: min(1440px, calc(100% - 64px));
    margin-left: auto;
    margin-right: auto;
    margin-top: 20px;
}

/* Success message container */
.woocommerce-notices-wrapper .woocommerce-message {
    position: relative;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    width: 100%;
    box-sizing: border-box;

    margin: 0;
    padding: 20px 22px 20px 60px;

    background: #f0faf5;
    border: 1px solid #ccebd9;
    border-left: 4px solid #16805d;
    border-radius: 12px;

    color: #245b46;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.7;

    box-shadow: 0 5px 18px rgba(0, 64, 61, 0.045);
}

/* Remove default WooCommerce icon if present */
.woocommerce-notices-wrapper .woocommerce-message::before {
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);

    display: flex;
    align-items: center;
    justify-content: center;

    width: 26px;
    height: 26px;
    border: 1px solid #b5e2ca;
    border-radius: 50%;

    background: #d9f3e5;
    color: #16805d;

    content: "✓";
    font-family: Arial, sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
}

/* View Cart button */
.woocommerce-notices-wrapper .woocommerce-message a.button.wc-forward {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 42px;
    margin: 0 0 0 auto;
    padding: 10px 20px;

    border: 1px solid #006c63;
    border-radius: 8px;

    background: #006c63;
    color: #fff;

    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
    white-space: nowrap;

    box-shadow: none;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.woocommerce-notices-wrapper .woocommerce-message a.button.wc-forward:hover {
    background: #004f49;
    border-color: #004f49;
    color: #fff;
    transform: translateY(-1px);
}

/* Keyboard accessibility */
.woocommerce-notices-wrapper .woocommerce-message a.button.wc-forward:focus-visible {
    outline: 2px solid #008477;
    outline-offset: 3px;
}

/* Mobile responsive */
@media (max-width: 600px) {
    .woocommerce-notices-wrapper {
        margin-bottom: 18px;
    }

    .woocommerce-notices-wrapper .woocommerce-message {
        gap: 12px;
        padding: 16px 14px 16px 48px;
        font-size: 13px;
        line-height: 1.6;
        border-radius: 10px;
    }

    .woocommerce-notices-wrapper .woocommerce-message::before {
        left: 13px;
        width: 24px;
        height: 24px;
        font-size: 14px;
    }

    .woocommerce-notices-wrapper .woocommerce-message a.button.wc-forward {
        width: 100%;
        min-height: 42px;
        margin: 0;
        padding: 11px 16px;
    }
}



/* =========================================
   JPC PRODUCT LISTING / SHOP ARCHIVE
========================================= */

body.post-type-archive-product .jpc-shop-page,
body.tax-product_cat .jpc-shop-page {
    --jpc-primary: #006c63;
    --jpc-primary-dark: #004f49;
    --jpc-dark: #073f43;
    --jpc-text: #173f42;
    --jpc-muted: #607778;
    --jpc-light: #f3faf8;
    --jpc-border: #dcecea;
    --jpc-shadow: 0 8px 28px rgba(0, 64, 61, 0.06);

    color: var(--jpc-text);
    background: #fff;
}

.jpc-shop-container {
    width: min(1240px, calc(100% - 40px));
    margin: 0 auto;
    padding: 30px 0 70px;
}

.jpc-shop-breadcrumbs {
    margin-bottom: 18px;
    color: var(--jpc-muted);
    font-size: 13px;
}

.jpc-shop-breadcrumbs a {
    color: var(--jpc-primary);
    text-decoration: none;
}

.jpc-shop-header {
    margin-bottom: 32px;
    padding: 32px;
    border: 1px solid var(--jpc-border);
    border-radius: 18px;
    background: linear-gradient(120deg, #f1faf7, #fff);
}

.jpc-shop-eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--jpc-primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.jpc-shop-title {
    margin: 0 0 12px;
    color: var(--jpc-dark);
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.7px;
}

.jpc-shop-description {
    max-width: 720px;
    margin: 0;
    color: var(--jpc-muted);
    font-size: 15px;
    line-height: 1.8;
}

.jpc-shop-description p {
    margin: 0;
}

/* Two-column layout */
.jpc-shop-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    align-items: start;
    gap: 30px;
}

.jpc-shop-sidebar {
    min-width: 0;
    padding: 22px;
    border: 1px solid var(--jpc-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--jpc-shadow);
}

.jpc-filter-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--jpc-border);
}

.jpc-filter-heading h2 {
    margin: 0;
    color: var(--jpc-dark);
    font-size: 18px;
    font-weight: 750;
}

.jpc-filter-heading > a {
    color: var(--jpc-primary);
    font-size: 12px;
    font-weight: 650;
    text-decoration: none;
}

.jpc-filter-section {
    margin: 0;
    padding: 22px 0;
    border-bottom: 1px solid #edf2f0;
}

.jpc-filter-section:last-child {
    border-bottom: 0;
}

.jpc-filter-section h3 {
    margin: 0 0 15px;
    color: var(--jpc-dark);
    font-size: 15px;
    font-weight: 750;
}

.jpc-category-list,
.jpc-stock-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.jpc-category-list li,
.jpc-stock-list li {
    margin: 0;
    padding: 0;
}

.jpc-category-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--jpc-muted);
    font-size: 13px;
    line-height: 1.5;
    text-decoration: none;
    transition: color 0.2s ease;
}

.jpc-category-list a:hover,
.jpc-category-list a.is-active {
    color: var(--jpc-primary);
    font-weight: 700;
}

.jpc-category-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 25px;
    padding: 3px 6px;
    border-radius: 6px;
    background: var(--jpc-light);
    color: var(--jpc-primary);
    font-size: 11px;
    font-weight: 700;
}

.jpc-filter-empty {
    color: var(--jpc-muted);
    font-size: 13px;
}

.jpc-price-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 13px;
}

.jpc-price-fields label {
    display: block;
    min-width: 0;
    color: var(--jpc-muted);
    font-size: 11px;
    font-weight: 650;
}

.jpc-price-fields label span {
    display: block;
    margin-bottom: 6px;
}

.jpc-price-fields input {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 42px;
    padding: 9px;
    border: 1px solid var(--jpc-border);
    border-radius: 7px;
    background: #fff;
    color: var(--jpc-text);
    font-size: 13px;
    box-sizing: border-box;
}

.jpc-price-fields input:focus {
    border-color: var(--jpc-primary);
    outline: 2px solid rgba(0, 108, 99, 0.1);
}

.jpc-filter-button {
    width: 100%;
    min-height: 43px;
    padding: 10px 14px;
    border: 0;
    border-radius: 8px;
    background: var(--jpc-primary);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.jpc-filter-button:hover {
    background: var(--jpc-primary-dark);
    color: #fff;
}

.jpc-stock-list a {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--jpc-muted);
    font-size: 13px;
    text-decoration: none;
}

.jpc-stock-list a:hover {
    color: var(--jpc-primary);
}

.jpc-stock-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #26965e;
}

/* Results toolbar */
.jpc-shop-results {
    min-width: 0;
}

.jpc-shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 17px;
    border-bottom: 1px solid var(--jpc-border);
}

.jpc-shop-result-count {
    color: var(--jpc-muted);
    font-size: 13px;
}

.jpc-shop-ordering .woocommerce-ordering {
    float: none;
    margin: 0;
}

.jpc-shop-ordering select {
    max-width: 100%;
    min-height: 43px;
    padding: 8px 32px 8px 12px;
    border: 1px solid var(--jpc-border);
    border-radius: 8px;
    background: #fff;
    color: var(--jpc-text);
    font-size: 13px;
}

/* WooCommerce product grid */
.jpc-shop-results ul.products {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px 18px;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
}

.jpc-shop-results ul.products::before,
.jpc-shop-results ul.products::after {
    display: none !important;
    content: none !important;
}

.jpc-shop-results ul.products li.product {
    float: none !important;
    clear: none !important;
    width: auto !important;
    min-width: 0;
    margin: 0 !important;
    padding: 14px;
    overflow: hidden;
    border: 1px solid var(--jpc-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 4px 18px rgba(0, 64, 61, 0.035);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.jpc-shop-results ul.products li.product:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 64, 61, 0.09);
}

.jpc-shop-results ul.products li.product a img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    margin: 0 0 14px;
    border-radius: 9px;
    background: #f7fbfa;
    object-fit: contain;
}

.jpc-shop-results ul.products li.product .woocommerce-loop-product__title {
    min-height: 44px;
    margin: 0 0 9px;
    color: var(--jpc-dark);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.55;
}

.jpc-shop-results ul.products li.product .price {
    display: block;
    margin: 0 0 14px;
    color: var(--jpc-primary);
    font-size: 17px;
    font-weight: 800;
}

.jpc-shop-results ul.products li.product .price del {
    margin-right: 5px;
    color: #8a9997;
    font-size: 12px;
    font-weight: 400;
}

.jpc-shop-results ul.products li.product .price ins {
    color: var(--jpc-primary);
    text-decoration: none;
}

.jpc-shop-results ul.products li.product .button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 43px;
    margin: 0;
    padding: 10px 12px;
    border: 0;
    border-radius: 8px;
    background: var(--jpc-primary);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
}

.jpc-shop-results ul.products li.product .button:hover {
    background: var(--jpc-primary-dark);
    color: #fff;
}

.jpc-shop-results ul.products li.product .added_to_cart {
    display: block;
    margin-top: 8px;
    color: var(--jpc-primary);
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

/* Sale badge */
.jpc-shop-results ul.products li.product .onsale {
    top: 22px;
    left: 22px;
    right: auto;
    min-height: auto;
    margin: 0;
    padding: 6px 9px;
    border-radius: 6px;
    background: #e9f6ed;
    color: #286b42;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.3;
}

/* Pagination */
.jpc-shop-results .woocommerce-pagination {
    margin-top: 35px;
}

.jpc-shop-results .woocommerce-pagination ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    border: 0;
}

.jpc-shop-results .woocommerce-pagination ul li {
    float: none;
    border: 0;
}

.jpc-shop-results .woocommerce-pagination ul li a,
.jpc-shop-results .woocommerce-pagination ul li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
    padding: 8px;
    border: 1px solid var(--jpc-border);
    border-radius: 8px;
    background: #fff;
    color: var(--jpc-primary);
    font-size: 13px;
}

.jpc-shop-results .woocommerce-pagination ul li span.current,
.jpc-shop-results .woocommerce-pagination ul li a:hover {
    border-color: var(--jpc-primary);
    background: var(--jpc-primary);
    color: #fff;
}

/* No products found */
.jpc-shop-results .woocommerce-info {
    border-top-color: var(--jpc-primary);
    border-radius: 10px;
    background: var(--jpc-light);
}

/* Extra WooCommerce widgets */
.jpc-extra-shop-widgets .widget {
    margin: 0 0 22px;
}

.jpc-extra-shop-widgets .widget-title {
    margin-bottom: 14px;
    color: var(--jpc-dark);
    font-size: 15px;
}

/* Tablet */
@media (max-width: 1024px) {
    .jpc-shop-layout {
        grid-template-columns: 220px minmax(0, 1fr);
        gap: 20px;
    }

    .jpc-shop-sidebar {
        padding: 17px;
    }

    .jpc-shop-results ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }
}

/* Mobile */
@media (max-width: 700px) {
    .jpc-shop-container {
        width: calc(100% - 28px);
        padding: 22px 0 45px;
    }

    .jpc-shop-header {
        margin-bottom: 22px;
        padding: 22px 18px;
        border-radius: 12px;
    }

    .jpc-shop-title {
        font-size: 29px;
    }

    .jpc-shop-description {
        font-size: 13px;
    }

    .jpc-shop-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 22px;
    }

    .jpc-shop-sidebar {
        padding: 18px;
    }

    .jpc-filter-section {
        padding: 17px 0;
    }

    .jpc-shop-toolbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
        margin-bottom: 18px;
    }

    .jpc-shop-ordering,
    .jpc-shop-ordering .woocommerce-ordering,
    .jpc-shop-ordering select {
        width: 100%;
    }

    .jpc-shop-results ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .jpc-shop-results ul.products li.product {
        padding: 9px;
        border-radius: 11px;
    }

    .jpc-shop-results ul.products li.product a img {
        margin-bottom: 10px;
        border-radius: 7px;
    }

    .jpc-shop-results ul.products li.product .woocommerce-loop-product__title {
        min-height: 0;
        margin-bottom: 7px;
        font-size: 12px;
        line-height: 1.5;
    }

    .jpc-shop-results ul.products li.product .price {
        margin-bottom: 10px;
        font-size: 15px;
    }

    .jpc-shop-results ul.products li.product .button {
        min-height: 40px;
        padding: 9px 5px;
        font-size: 11px;
    }

    .jpc-shop-results ul.products li.product .onsale {
        top: 15px;
        left: 15px;
        padding: 5px 7px;
        font-size: 10px;
    }
}

@media (max-width: 360px) {
    .jpc-shop-container {
        width: calc(100% - 20px);
    }

    .jpc-shop-results ul.products {
        gap: 9px;
    }

    .jpc-shop-results ul.products li.product {
        padding: 7px;
    }
}


/* JPC Mini Cart Drawer */
.jpc-cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(7, 40, 40, 0.48);
    opacity: 0;
    visibility: hidden;
    z-index: 99998;
    transition: opacity .3s ease, visibility .3s ease;
}

.jpc-cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(440px, 100%);
    height: 100vh;
    height: 100dvh;
    background: #fff;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    box-shadow: -8px 0 35px rgba(0, 0, 0, .12);
    transform: translateX(105%);
    visibility: hidden;
    transition: transform .3s ease, visibility .3s ease;
}

body.jpc-cart-open {
    overflow: hidden;
}

body.jpc-cart-open .jpc-cart-overlay {
    opacity: 1;
    visibility: visible;
}

body.jpc-cart-open .jpc-cart-drawer {
    transform: translateX(0);
    visibility: visible;
}

.jpc-cart-drawer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px;
    border-bottom: 1px solid #dcecea;
}

.jpc-cart-drawer__header h2 {
    margin: 0;
    font-size: 22px;
    color: #073f43;
}

.jpc-cart-close {
    border: 0;
    background: #e9f8f4;
    color: #006c63;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.jpc-cart-drawer__body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.jpc-cart-drawer .woocommerce-mini-cart {
    list-style: none;
    padding: 0;
    margin: 0;
}

.jpc-cart-drawer .woocommerce-mini-cart-item {
    position: relative;
    min-height: 90px;
    padding: 0 25px 18px 85px !important;
    margin-bottom: 18px !important;
    border-bottom: 1px solid #dcecea;
    font-size: 14px;
    line-height: 1.5;
}

.jpc-cart-drawer .woocommerce-mini-cart-item img {
    float: left !important;
    width: 68px !important;
    height: 68px !important;
    object-fit: cover;
    margin: 0 0 0 -85px !important;
    border-radius: 8px;
}

.jpc-cart-drawer .woocommerce-mini-cart-item a:not(.remove) {
    color: #173f42;
    font-weight: 600;
    text-decoration: none;
}

.jpc-cart-drawer .woocommerce-mini-cart-item .remove {
    position: absolute;
    top: 0;
    right: 0;
    color: #b42318 !important;
    font-size: 20px;
}

.jpc-cart-drawer .woocommerce-mini-cart__total {
    padding: 18px 0;
    border-top: 1px solid #dcecea;
    color: #073f43;
    font-size: 17px;
}

.jpc-cart-drawer__footer {
    padding: 18px 22px;
    border-top: 1px solid #dcecea;
    display: grid;
    gap: 10px;
}

.jpc-cart-drawer__footer a {
    display: block;
    text-align: center;
    text-decoration: none;
    padding: 14px 18px;
    border-radius: 8px;
    font-weight: 600;
}

.jpc-cart-view {
    border: 1px solid #006c63;
    color: #006c63;
}

.jpc-cart-checkout {
    background: #006c63;
    color: #fff;
}

.jpc-cart-checkout:hover {
    background: #004f49;
    color: #fff;
}

.jpc-cart-drawer .woocommerce-mini-cart__buttons {
    display: none;
}

@media (max-width: 480px) {
    .jpc-cart-drawer__header {
        padding: 18px;
    }

    .jpc-cart-drawer__body {
        padding: 16px;
    }

    .jpc-cart-drawer__footer {
        padding: 14px 16px;
    }
}

/* Keep the cart drawer hidden until opened */
body:not(.jpc-cart-open) .jpc-cart-drawer {
    transform: translateX(100%);
    visibility: hidden;
    pointer-events: none;
}

body:not(.jpc-cart-open) .jpc-cart-overlay {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

body.jpc-cart-open .jpc-cart-drawer {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
}

body.jpc-cart-open .jpc-cart-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}


/* JPC Cart Drawer: hidden by default */
.jpc-cart-drawer {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: min(420px, 100vw) !important;
    height: 100vh !important;
    z-index: 100001 !important;
    background: #ffffff !important;
    overflow-y: auto !important;

    transform: translateX(100%) !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Show drawer only when opened */
body.jpc-cart-open .jpc-cart-drawer {
    transform: translateX(0) !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* Hide overlay by default */
.jpc-cart-overlay {
    position: fixed !important;
    inset: 0 !important;
    z-index: 100000 !important;
    background: rgba(0, 0, 0, 0.5) !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Show overlay only when cart is opened */
body.jpc-cart-open .jpc-cart-overlay {
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}
