/* CME WooCommerce Shop Page */

/* Page spacing below fixed nav */
body.woocommerce-shop main.cme2026-page,
body.tax-product_cat main.cme2026-page,
body.woocommerce-page main.cme2026-page,
body.post-type-archive-product main.cme2026-page {
    padding-top: 95px !important;
}

/* Frame the shop content */
body.woocommerce-shop .the-content,
body.tax-product_cat .the-content,
body.woocommerce-page .the-content,
body.post-type-archive-product .the-content {
    max-width: 1180px !important;
    width: 100% !important;
    margin: 0 auto 70px auto !important;
    padding: 0 24px !important;
    box-sizing: border-box !important;
}

/* Shop top area */
body.woocommerce-shop h1.title,
body.tax-product_cat h1.title,
body.woocommerce-page h1.title,
body.post-type-archive-product h1.title {
    display: block !important;
    max-width: 1180px !important;
    margin: 0 auto 22px auto !important;
    padding: 0 24px !important;
    font-size: 34px !important;
    font-weight: 800 !important;
    color: #222 !important;
}

/* Result count + sorting row */
body.woocommerce-shop .woocommerce-result-count,
body.woocommerce-page .woocommerce-result-count,
body.tax-product_cat .woocommerce-result-count,
body.post-type-archive-product .woocommerce-result-count {
    display: block !important;
}

body.woocommerce-shop .woocommerce-ordering,
body.woocommerce-page .woocommerce-ordering,
body.tax-product_cat .woocommerce-ordering,
body.post-type-archive-product .woocommerce-ordering {
    display: block !important;
}

/* Put top controls above product cards */
body.woocommerce-shop .woocommerce,
body.woocommerce-page .woocommerce,
body.tax-product_cat .woocommerce,
body.post-type-archive-product .woocommerce {
    align-items: flex-start !important;
}

body.woocommerce-shop ul.products,
body.woocommerce-page ul.products,
body.tax-product_cat ul.products,
body.post-type-archive-product ul.products {
    flex-basis: 100% !important;
}

/* Result count and sorting row */
body.woocommerce-shop .woocommerce,
body.woocommerce-page .woocommerce,
body.tax-product_cat .woocommerce,
body.post-type-archive-product .woocommerce {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 18px !important;
}

body.woocommerce-shop .woocommerce-result-count,
body.woocommerce-page .woocommerce-result-count,
body.tax-product_cat .woocommerce-result-count,
body.post-type-archive-product .woocommerce-result-count {
    margin: 0 !important;
    color: #7f8b96 !important;
    font-size: 14px !important;
}

body.woocommerce-shop .woocommerce-ordering,
body.woocommerce-page .woocommerce-ordering,
body.tax-product_cat .woocommerce-ordering,
body.post-type-archive-product .woocommerce-ordering {
    margin: 0 !important;
}

body.woocommerce-shop .woocommerce-ordering select,
body.woocommerce-page .woocommerce-ordering select,
body.tax-product_cat .woocommerce-ordering select,
body.post-type-archive-product .woocommerce-ordering select {
    min-height: 42px !important;
    padding: 8px 12px !important;
    border: 1px solid #d9d9d9 !important;
    border-radius: 8px !important;
    background: #fff !important;
}

/* Product grid */
body.woocommerce-shop ul.products,
body.woocommerce-page ul.products,
body.tax-product_cat ul.products,
body.post-type-archive-product ul.products {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 20px !important;
    margin: 28px 0 0 0 !important;
    padding: 0 !important;
}

body.woocommerce-shop ul.products li.product,
body.woocommerce-page ul.products li.product,
body.tax-product_cat ul.products li.product,
body.post-type-archive-product ul.products li.product {
    width: auto !important;
    float: none !important;
    margin: 0 !important;
    background: #fff !important;
    border: 1px solid #e4e4e4 !important;
    border-radius: 16px !important;
    padding: 22px !important;
    box-shadow: 0 8px 28px rgba(0,0,0,.05) !important;
    transition: opacity .18s ease, transform .18s ease, box-shadow .18s ease !important;
}

body.woocommerce-shop ul.products li.product:hover,
body.woocommerce-page ul.products li.product:hover,
body.tax-product_cat ul.products li.product:hover,
body.post-type-archive-product ul.products li.product:hover {
    opacity: .9 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 34px rgba(0,0,0,.08) !important;
}

/* Product images */
body.woocommerce-shop ul.products li.product img,
body.woocommerce-page ul.products li.product img,
body.tax-product_cat ul.products li.product img,
body.post-type-archive-product ul.products li.product img {
    width: 160px !important;
    height: 160px !important;
    object-fit: contain !important;
    margin: 0 auto 18px auto !important;
    display: block !important;
}

/* Product titles */
body.woocommerce-shop ul.products li.product .woocommerce-loop-product__title,
body.woocommerce-page ul.products li.product .woocommerce-loop-product__title,
body.tax-product_cat ul.products li.product .woocommerce-loop-product__title,
body.post-type-archive-product ul.products li.product .woocommerce-loop-product__title {
    font-size: 17px !important;
    font-weight: 800 !important;
    color: #222 !important;
    line-height: 1.3 !important;
    margin: 0 0 10px 0 !important;
}

/* Prices */
body.woocommerce-shop ul.products li.product .price,
body.woocommerce-page ul.products li.product .price,
body.tax-product_cat ul.products li.product .price,
body.post-type-archive-product ul.products li.product .price {
    color: #777 !important;
    font-size: 15px !important;
    margin-bottom: 16px !important;
}

/* Buttons */
body.woocommerce-shop ul.products li.product .button,
body.woocommerce-page ul.products li.product .button,
body.tax-product_cat ul.products li.product .button,
body.post-type-archive-product ul.products li.product .button {
    padding: 11px 16px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

/* Sale badge */
body.woocommerce-shop ul.products li.product .onsale,
body.woocommerce-page ul.products li.product .onsale,
body.tax-product_cat ul.products li.product .onsale,
body.post-type-archive-product ul.products li.product .onsale {
    background: var(--cme-primary) !important;
    color: var(--cme-text-light) !important;
    border-radius: 999px !important;
    padding: 6px 10px !important;
    font-weight: 800 !important;
}

/* Tablet */
@media (max-width: 1000px) {
    body.woocommerce-shop ul.products,
    body.woocommerce-page ul.products,
    body.tax-product_cat ul.products,
    body.post-type-archive-product ul.products {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

/* Mobile */
@media (max-width: 700px) {
    body.woocommerce-shop main.cme2026-page,
    body.woocommerce-page main.cme2026-page,
    body.tax-product_cat main.cme2026-page,
    body.post-type-archive-product main.cme2026-page {
        padding-top: 95px !important;
    }

    body.woocommerce-shop ul.products,
    body.woocommerce-page ul.products,
    body.tax-product_cat ul.products,
    body.post-type-archive-product ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 18px !important;
    }

    body.woocommerce-shop ul.products li.product img,
    body.woocommerce-page ul.products li.product img,
    body.tax-product_cat ul.products li.product img,
    body.post-type-archive-product ul.products li.product img {
        width: 120px !important;
        height: 120px !important;
    }
}

@media (max-width: 480px) {
    body.woocommerce-shop ul.products,
    body.woocommerce-page ul.products,
    body.tax-product_cat ul.products,
    body.post-type-archive-product ul.products {
        grid-template-columns: 1fr !important;
    }
}

/* Shop controls row: search left, sorting right */
body.woocommerce-shop .cme-shop-search,
body.woocommerce-page .cme-shop-search,
body.tax-product_cat .cme-shop-search,
body.post-type-archive-product .cme-shop-search {
    width: auto !important;
    margin: 22px 0 24px auto !important;
    order: 1 !important;
}

body.woocommerce-shop .woocommerce-ordering,
body.woocommerce-page .woocommerce-ordering,
body.tax-product_cat .woocommerce-ordering,
body.post-type-archive-product .woocommerce-ordering {
    display: block !important;
    order: 2 !important;
    margin: 22px 0 24px 16px !important;
}

body.woocommerce-shop .woocommerce-result-count,
body.woocommerce-page .woocommerce-result-count,
body.tax-product_cat .woocommerce-result-count,
body.post-type-archive-product .woocommerce-result-count {
    display: none !important;
}

body.woocommerce-shop .woocommerce-product-search,
body.woocommerce-page .woocommerce-result-count,
body.tax-product_cat .woocommerce-product-search,
body.post-type-archive-product .woocommerce-product-search {
    display: flex !important;
    gap: 10px !important;
    width: 520px !important;
    max-width: 100% !important;
}

body.woocommerce-shop .woocommerce-product-search .search-field,
body.woocommerce-page .woocommerce-result-count,
body.tax-product_cat .woocommerce-product-search .search-field,
body.post-type-archive-product .woocommerce-product-search .search-field {
    flex: 1 !important;
    min-height: 44px !important;
    padding: 10px 14px !important;
    border: 1px solid #d9d9d9 !important;
    border-radius: 8px !important;
}

body.woocommerce-shop .woocommerce-product-search button,
body.woocommerce-page .woocommerce-product-search button,
body.tax-product_cat .woocommerce-product-search button,
body.post-type-archive-product .woocommerce-product-search button {
    min-height: 44px !important;
    padding: 10px 22px !important;
    font-weight: 700 !important;
}

/* Make product grid start below controls */
body.woocommerce-shop ul.products,
body.woocommerce-page ul.products,
body.tax-product_cat ul.products,
body.post-type-archive-product ul.products {
    order: 10 !important;
}

/* Force products closer to search/sort */
body.woocommerce-shop .the-content,
body.woocommerce-page .the-content,
body.tax-product_cat .the-content,
body.post-type-archive-product .the-content {
    margin-top: 0 !important;
}

body.woocommerce-shop .woocommerce,
body.woocommerce-page .woocommerce,
body.tax-product_cat .woocommerce,
body.post-type-archive-product .woocommerce {
    align-content: flex-start !important;
}

body.woocommerce-shop ul.products,
body.woocommerce-page ul.products,
body.tax-product_cat ul.products,
body.post-type-archive-product ul.products {
    margin-top: -25px !important;
}

/* Pull whole shop section upward slightly */
body.woocommerce-shop main.cme2026-page,
body.woocommerce-page main.cme2026-page,
body.tax-product_cat main.cme2026-page,
body.post-type-archive-product main.cme2026-page {
    padding-top: 35px !important;
}

/* Safe shop spacing adjustment */
body.woocommerce-shop .cme-shop-search,
body.woocommerce-page .cme-shop-search,
body.tax-product_cat .cme-shop-search,
body.post-type-archive-product .cme-shop-search {
    margin-top: 8px !important;
    margin-bottom: 14px !important;
}

body.woocommerce-shop .woocommerce-ordering,
body.woocommerce-page .woocommerce-ordering,
body.tax-product_cat .woocommerce-ordering,
body.post-type-archive-product .woocommerce-ordering {
    margin-top: 8px !important;
    margin-bottom: 14px !important;
}

/* Product cards: responsive centered area, left-filled rows */
body.woocommerce-shop ul.products,
body.woocommerce-page ul.products,
body.tax-product_cat ul.products,
body.post-type-archive-product ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(230px, 245px)) !important;
    justify-content: center !important;
    justify-items: stretch !important;
    gap: 16px !important;
    width: 100% !important;
    padding-left: 0 !important;
    margin-top: -8px !important; /* Reduce gap under search/sort only */
    margin-left: auto !important;
    margin-right: auto !important;
}

body.woocommerce-shop ul.products li.product,
body.woocommerce-shop ul.products li.product-category,
body.woocommerce-page ul.products li.product,
body.woocommerce-page ul.products li.product-category,
body.tax-product_cat ul.products li.product,
body.tax-product_cat ul.products li.product-category,
body.post-type-archive-product ul.products li.product,
body.post-type-archive-product ul.products li.product-category {
    width: 100% !important;
    max-width: 245px !important;
    margin: 0 !important;
    float: none !important;
    clear: none !important;
    box-sizing: border-box !important;
}
/* Remove first-row product indent */
body.woocommerce-shop ul.products,
body.woocommerce-page ul.products,
body.tax-product_cat ul.products,
body.post-type-archive-product ul.products {
    padding-left: 0 !important;
    margin-left: 0 !important;
}

body.woocommerce-shop ul.products::before,
body.woocommerce-shop ul.products::after,
body.woocommerce-page ul.products::before,
body.woocommerce-page ul.products::after,
body.tax-product_cat ul.products::before,
body.tax-product_cat ul.products::after,
body.post-type-archive-product ul.products::before,
body.post-type-archive-product ul.products::after {
    display: none !important;
    content: none !important;
}

/* Make sure category cards line up like products */
body.woocommerce-shop ul.products li.product-category,
body.woocommerce-page ul.products li.product-category,
body.tax-product_cat ul.products li.product-category,
body.post-type-archive-product ul.products li.product-category {
    margin-left: 0 !important;
    padding-left: 22px !important;
}





/*
body.single-product main.cme2026-page {
    padding-top: 70px !important;
}*/

/* Outer single-product wrapper 
body.single-product .onerow.max1000 {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
}*/

/* Product content must use the same width as the title 
body.single-product .the-content {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

body.single-product .col9.main-content > article.post > h1.title {
    width: 100% !important;
    margin: 32px 0 22px 0 !important;
    padding: 0 !important;
}

body.single-product .the-content {
    padding-top: 0 !important;
}*/

/* Product layout 
body.single-product div.product {
    display: grid !important;
    grid-template-columns: minmax(260px, 360px) minmax(0, 1fr) !important;
    column-gap: 42px !important;
    row-gap: 20px !important;
    align-items: start !important;

    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

body.single-product div.product .woocommerce-product-gallery {
    grid-column: 1 !important;
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
}

body.single-product div.product .summary {
    grid-column: 2 !important;
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
}*/

/* Hide category/SKU meta 
body.single-product .product_meta {
    display: none !important;
}



body.single-product .woocommerce-Tabs-panel,
body.single-product .woocommerce-tabs .panel {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.single-product .woocommerce-Tabs-panel h2,
body.single-product .woocommerce-tabs h2 {
    margin-top: 0 !important;
}*/

/* Related products spacing 
body.single-product .related.products > h2 {
    margin: 0 0 18px 0 !important;
    padding: 0 !important;
}
@media (max-width: 950px) {
    body.single-product .related.products {
        margin: 30px 0 0 0 !important;
    }
}*/

/* Mobile 
@media (max-width: 800px) {
    body.single-product div.product {
        display: block !important;
    }
}

body.single-product .woocommerce-Tabs-panel h2,
body.single-product .woocommerce-tabs h2 {
    margin-top: 0 !important;
}
body.single-product .woocommerce-Tabs-panel h2,
body.single-product .woocommerce-tabs h2 {
    margin: 0 0 24px 0 !important;
    padding: 0 !important;
}*/


/* Single product: reduce gap under title/date before product area 
body.single-product .the-content {
    padding-top: 0 !important;
}

body.single-product .the-content > .woocommerce {
    margin-top: 10px !important;
}


body.single-product div.product .summary,
body.single-product form.cart,
body.single-product .wapf,
body.single-product .wapf-wrapper,
body.single-product .wapf-field-container,
body.single-product .wapf-field-input,
body.single-product .wapf-card-wrap,
body.single-product .wapf-product-totals {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

body.single-product select,
body.single-product textarea,
body.single-product input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]) {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

body.single-product .wapf-card-wrap {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important;
    gap: 14px !important;
}

body.single-product .wapf-card {
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}*/


/* ANIMATIONS 
body.single-product .wapf-product-totals {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 14px 18px !important;
    margin: 18px 0 10px 0 !important;
    border-radius: 10px !important;
    transition: background-color .35s ease, box-shadow .35s ease;
}

body.single-product .wapf-product-totals.cme-total-updated {
    background: #f4f9ff !important;
    box-shadow: 0 0 0 1px #bcdcff inset;
}

body.single-product button.single_add_to_cart_button {
    transition: opacity .2s ease, transform .2s ease, background-color .2s ease;
}

body.single-product button.single_add_to_cart_button.cme-adding-to-cart {
    opacity: .85 !important;
    cursor: wait !important;
    background: var(--cme-primary-hover) !important;
    transform: translateY(1px);
}

.cme-button-spinner {
    display: inline-block;
    width: 13px;
    height: 13px;
    margin-right: 6px;
    border: 2px solid rgba(255,255,255,.55);
    border-top-color: #fff;
    border-radius: 50%;
    vertical-align: -2px;
    animation: cme-spin .7s linear infinite;
}

@keyframes cme-spin {
    to {
        transform: rotate(360deg);
    }
}

body.single-product select:invalid,
body.single-product input:invalid,
body.single-product textarea:invalid {
    border: 2px solid var(--cme-error) !important;
    background: #fff8f8 !important;
}

body.single-product select:focus,
body.single-product input:focus,
body.single-product textarea:focus {
    outline: none !important;
    border-color: var(--cme-primary) !important;
    box-shadow: 0 0 0 3px rgba(0,85,255,.12) !important;
}*/

/* Product page field + button polish
body.single-product select,
body.single-product input,
body.single-product textarea {
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

body.single-product select:hover,
body.single-product input:hover,
body.single-product textarea:hover {
    border-color: color-mix(in srgb, var(--cme-primary) 30%, white) !important;
}

body.single-product select:focus,
body.single-product input:focus,
body.single-product textarea:focus {
    outline: none !important;
    border-color: #0055ff !important;
    box-shadow: 0 0 0 3px rgba(var(--cme-primary-rgb), .12) !important;
}

body.single-product button.single_add_to_cart_button {
    transition: background-color .18s ease, transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

body.single-product button.single_add_to_cart_button:hover {
    transform: translateY(-1px);
    /*box-shadow: 0 8px 20px rgba(0,85,255,.22);*/
} */


/* Shop product search button polish */
body.woocommerce-shop form.woocommerce-product-search button[type="submit"],
body.woocommerce-page form.woocommerce-product-search button[type="submit"],
body.tax-product_cat form.woocommerce-product-search button[type="submit"],
body.post-type-archive-product form.woocommerce-product-search button[type="submit"] {
    cursor: pointer !important;
    transition: background-color .18s ease, transform .18s ease, box-shadow .18s ease !important;
}

body.woocommerce-shop form.woocommerce-product-search button[type="submit"]:active,
body.woocommerce-page form.woocommerce-product-search button[type="submit"]:active,
body.tax-product_cat form.woocommerce-product-search button[type="submit"]:active,
body.post-type-archive-product form.woocommerce-product-search button[type="submit"]:active {
    transform: translateY(0) !important;
}






/* Single product tablet/narrow layout fix 
@media (max-width: 950px) {
    body.single-product div.product {
        display: block !important;
    }

    body.single-product div.product .woocommerce-product-gallery,
    body.single-product div.product .summary {
        width: 100% !important;
        max-width: 100% !important;
    }

    body.single-product form.cart,
    body.single-product .wapf,
    body.single-product .wapf-wrapper,
    body.single-product .wapf-field-container,
    body.single-product .wapf-product-totals {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    body.single-product select,
    body.single-product textarea,
    body.single-product input {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    body.single-product button.single_add_to_cart_button {
        margin-bottom: 30px !important;
    }
}

body.single-product .product_meta {
    display: none !important;
}*/

/* ==================================================
   SINGLE PRODUCT — DESCRIPTION AND LOWER CONTENT
   ================================================== */

/* Hide WooCommerce tab buttons 
body.single-product .woocommerce-tabs ul.tabs,
body.single-product .wc-tabs {
    display: none !important;
}*/

/* Keep floated/cart content contained inside the summary 
body.single-product div.product .summary {
    grid-column: 2 !important;
    grid-row: 1 !important;
    display: flow-root !important;
}*/

/* Keep Add to Cart inside the form, above Description
body.single-product form.cart {
    display: flow-root !important;
    width: 100% !important;
    margin-bottom: 0 !important;
}

body.single-product button.single_add_to_cart_button {
    display: block !important;
    float: none !important;
    clear: both !important;
    margin: 20px 0 0 0 !important;
} */

/* Description occupies its own full-width grid row 
body.single-product .woocommerce-tabs,
body.single-product .wc-tabs-wrapper {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;

    display: block !important;
    clear: both !important;

    width: 100% !important;
    max-width: 100% !important;

    margin: 40px 0 0 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}*/

/* Description panel 
body.single-product .woocommerce-Tabs-panel,
body.single-product .woocommerce-tabs .panel {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;

    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}*/

/* Description heading 
body.single-product .woocommerce-Tabs-panel h2,
body.single-product .woocommerce-tabs .panel h2 {
    margin: 0 0 18px 0 !important;
    padding: 0 !important;
}*/

/* Related products occupy the next full-width row 
body.single-product .related.products {
    grid-column: 1 / -1 !important;
    grid-row: 3 !important;

    width: 100% !important;
    margin: 70px 0 0 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

body.single-product .related.products > h2 {
    margin: 0 0 18px 0 !important;
    padding: 0 !important;
}


@media (max-width: 1000px) {
    body.single-product .woocommerce-tabs,
    body.single-product .wc-tabs-wrapper {
        margin-top: 35px !important;
    }
    
    body.single-product .related.products {
        margin-top: 45px !important;
    }
}*/





























/* Product category pages — match Shop page layout */
body.woocommerce-page:not(.woocommerce-shop):not(.single-product):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) #primary,
body.woocommerce-page:not(.woocommerce-shop):not(.single-product):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) #content,
body.woocommerce-page:not(.woocommerce-shop):not(.single-product):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) article.post {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.woocommerce-page:not(.woocommerce-shop):not(.single-product):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) .the-content {
    max-width: 1180px !important;
    width: 100% !important;
    margin: 0 auto 70px auto !important;
    padding: 0px 24px 0 24px !important;
    box-sizing: border-box !important;
}

body.woocommerce-page:not(.woocommerce-shop):not(.single-product):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) .the-content > .woocommerce {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 18px !important;
}

/* Category pages only — avoids changing main Shop */
body.woocommerce-page:not(.woocommerce-shop):not(.single-product):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) .woocommerce-result-count {
    display: none !important;
}

body.woocommerce-page:not(.woocommerce-shop):not(.single-product):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) .the-content > .woocommerce {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 18px !important;
}

body.woocommerce-page:not(.woocommerce-shop):not(.single-product):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) .cme-shop-search {
    order: 1 !important;
    margin: 8px 0 14px auto !important;
}

body.woocommerce-page:not(.woocommerce-shop):not(.single-product):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) .woocommerce-ordering {
    order: 2 !important;
    margin: 8px 0 14px 16px !important;
}

body.woocommerce-page:not(.woocommerce-shop):not(.single-product):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) .woocommerce-product-search {
    display: flex !important;
    gap: 10px !important;
    width: 520px !important;
    max-width: 100% !important;
}

body.woocommerce-page:not(.woocommerce-shop):not(.single-product):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) .woocommerce-product-search .search-field {
    flex: 1 !important;
    min-height: 44px !important;
    padding: 10px 14px !important;
    border: 1px solid #d9d9d9 !important;
    border-radius: 8px !important;
}

body.woocommerce-page:not(.woocommerce-shop):not(.single-product):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) ul.products {
    order: 10 !important;
    display: grid !important;
    grid-template-columns: repeat(4, 245px) !important;
    justify-content: center !important;
    gap: 16px !important;
    width: 100% !important;
    margin: -8px auto 0 auto !important;
    padding: 0 !important;
}

/* Hide result count on main Shop page */
body.woocommerce-shop .woocommerce-result-count {
    display: none !important;
}

/* Product category responsive columns */
@media (max-width: 1000px) {
    body.woocommerce-page:not(.woocommerce-shop):not(.single-product):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) ul.products {
        grid-template-columns: repeat(3, 245px) !important;
    }
}

@media (max-width: 850px) {
    body.woocommerce-page:not(.woocommerce-shop):not(.single-product):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) ul.products {
        grid-template-columns: repeat(2, 245px) !important;
    }
}

@media (max-width: 560px) {
    body.woocommerce-page:not(.woocommerce-shop):not(.single-product):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) ul.products {
        grid-template-columns: 245px !important;
    }
}



/* Mobile shop/category controls */
@media (max-width: 700px) {
    body.woocommerce-shop .the-content > .woocommerce,
    body.woocommerce-page:not(.woocommerce-shop):not(.single-product):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) .the-content > .woocommerce {
        justify-content: flex-end !important;
    }

    body.woocommerce-shop .cme-shop-search,
    body.woocommerce-page:not(.woocommerce-shop):not(.single-product):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) .cme-shop-search {
        width: 100% !important;
        margin: 8px 0 14px 0 !important;
    }

    body.woocommerce-shop .woocommerce-ordering,
    body.woocommerce-page:not(.woocommerce-shop):not(.single-product):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) .woocommerce-ordering {
        width: auto !important;
        margin: 0 0 18px auto !important;
    }

    body.woocommerce-shop .woocommerce-ordering select,
    body.woocommerce-page:not(.woocommerce-shop):not(.single-product):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) .woocommerce-ordering select {
        width: auto !important;
        min-width: 210px !important;
    }
}

/* Mobile/tablet shop controls alignment */
@media (max-width: 850px) {
    body.woocommerce-shop .the-content > .woocommerce,
    body.woocommerce-page:not(.woocommerce-shop):not(.single-product):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) .the-content > .woocommerce {
        justify-content: flex-end !important;
        column-gap: 10px !important;
    }

    body.woocommerce-shop .cme-shop-search,
    body.woocommerce-page:not(.woocommerce-shop):not(.single-product):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) .cme-shop-search {
        width: 100% !important;
        margin: 8px 0 14px 0 !important;
    }

    body.woocommerce-shop .woocommerce-product-search,
    body.woocommerce-page:not(.woocommerce-shop):not(.single-product):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) .woocommerce-product-search {
        width: 100% !important;
        display: flex !important;
    }

    body.woocommerce-shop .woocommerce-product-search .search-field,
    body.woocommerce-page:not(.woocommerce-shop):not(.single-product):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) .woocommerce-product-search .search-field {
        flex: 1 1 auto !important;
        min-width: 0 !important;
    }

    body.woocommerce-shop .woocommerce-ordering,
    body.woocommerce-page:not(.woocommerce-shop):not(.single-product):not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) .woocommerce-ordering {
        margin: 0 0 18px auto !important;
    }
}



/* Related products: follow the normal product-page width 
body.single-product .related.products {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    margin: 28px 0 60px 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

body.single-product .related.products > h2 {
    margin: 0 0 18px 0 !important;
    padding: 0 !important;
}
*/



/* Advanced Product Fields: card choices 
body.single-product .wapf-card {
    padding: 12px !important;
    border: 2px solid transparent !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    transition:
        border-color .18s ease,
        background-color .18s ease,
        box-shadow .18s ease,
        transform .18s ease !important;
}*/

/* Hover 
body.single-product .wapf-card:hover {
    background: #f7f9fc !important;
    border-color: #c9d8f7 !important;
}*/

/* Selected card 
body.single-product .wapf-card.wapf-checked {
    background: #f2f7ff !important;
    border-color: var(--cme-primary, #0055ff) !important;
    box-shadow: 0 0 0 3px rgba(var(--cme-primary-rgb, 0, 85, 255), .12) !important;
}*/

/* Keep image and label clearly visible 
body.single-product .wapf-card.wapf-checked .wapf-card-img,
body.single-product .wapf-card.wapf-checked .wapf-card-label {
    opacity: 1 !important;
}*/

/* Optional small lift 
body.single-product .wapf-card.wapf-checked {
    transform: translateY(-1px) !important;
}*/
/* Hide native WooCommerce quantity input
body.single-product form.cart .quantity {
    display: none !important;
}
body.single-product main.cme2026-page {
    padding-top: 95px !important;
} */


/* Single product: give title breathing room below navigation 
body.single-product h1.title,
body.single-product h1.product_title {
    margin-top: 30px !important;
}*/

/* Single product: remove old 9-column page limit 
body.single-product .col9.main-content {
    width: 100% !important;
    max-width: none !important;
    float: none !important;
    margin: 0 !important;
}*/

/* Center all single-product content to match the navbar 
body.single-product .col9.main-content > article.post {
    width: calc(100% - 48px) !important;
    max-width: 1180px !important;
    margin: 0 auto !important;
    padding: 0 24px !important;
    box-sizing: border-box !important;
}*/

/* Single-product title aligned with CME logo 
body.single-product .col9.main-content > article.post > h1.title {
    width: 100% !important;
    max-width: none !important;
    margin: 32px 0 22px 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}*/

/*remove date
body.single-product .post-meta {
    display: none !important;
}*/

/* Pull gallery and summary directly under title 
body.single-product div.product {
    margin-top: -18px !important;
}*/





/* ==================================================
   SINGLE PRODUCT — MOBILE LAYOUT
   ================================================== 

@media (max-width: 1000px) {*/

    /* Keep the complete product page inside the viewport 
    body.single-product .col9.main-content,
    body.single-product .col9.main-content > article.post,
    body.single-product .the-content,
    body.single-product div.product,
    body.single-product div.product .summary,
    body.single-product div.product .woocommerce-product-gallery {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    body.single-product .col9.main-content > article.post {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }*/

    /* Stack image and options 
    body.single-product div.product {
        display: block !important;
        margin-top: 0 !important;
    }

    /* Product gallery must shrink with the screen */
    body.single-product .woocommerce-product-gallery,
    body.single-product .woocommerce-product-gallery .flex-viewport,
    body.single-product .woocommerce-product-gallery__wrapper,
    body.single-product .woocommerce-product-gallery__image,
    body.single-product .woocommerce-product-gallery__image a {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    body.single-product .woocommerce-product-gallery__image img {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
    }*/

    /* Space between gallery and options 
    body.single-product div.product .summary {
        margin-top: 24px !important;
    }*/

    /* Allow card choices to wrap instead of leaving the screen 
    body.single-product .wapf-card-wrap {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    body.single-product .wapf-card,
    body.single-product .wapf-card-inner {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }*/

    /* Form sections and regular fields 
    body.single-product form.cart,
    body.single-product .wapf,
    body.single-product .wapf-wrapper,
    body.single-product .wapf-field-container,
    body.single-product .wapf-field-input,
    body.single-product .wapf-product-totals {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    body.single-product select,
    body.single-product textarea,
    body.single-product input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]) {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }*/

    /* Undo the existing rule that stretches checkboxes/radios 
    body.single-product input[type="checkbox"],
    body.single-product input[type="radio"] {
        width: auto !important;
        max-width: none !important;
        min-width: 0 !important;
    }
}

body.single-product .related.products ul.products {
    justify-content: flex-start !important;
    justify-items: stretch !important;
    margin-left: 0 !important;
}*/

/*hide calculation field 
body.single-product .wapf-field-calc {
    display: none !important;
}*/


/* ==================================================
   WAPF FIELD DESCRIPTION TOOLTIPS
   Keep at the very bottom of shop.css
   ================================================== 

body.single-product .wapf-field-label {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
}

body.single-product .cme-help {
    position: relative !important;
    display: inline-flex !important;
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 0 !important;
    margin-left: 4px !important;
    overflow: visible !important;
}*/

/* The question-mark button 
body.single-product button.cme-help-btn {
    appearance: none !important;
    -webkit-appearance: none !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    max-width: 20px !important;
    min-height: 20px !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 1px solid #7f8b96 !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    color: #66727e !important;

    font-size: 12px !important;
    font-weight: 800 !important;
    line-height: 1 !important;

    cursor: pointer !important;
    box-shadow: none !important;
}*/

/* Hidden tooltip message 
body.single-product .cme-help-popup {
    display: block !important;
    position: absolute !important;
    z-index: 999999 !important;

    left: 50% !important;
    bottom: calc(100% + 10px) !important;
    transform: translateX(-50%) translateY(4px) !important;

    width: 280px !important;
    max-width: calc(100vw - 40px) !important;
    height: auto !important;

    margin: 0 !important;
    padding: 10px 12px !important;

    border-radius: 8px !important;
    background: #222222 !important;
    color: #ffffff !important;

    font-size: 13px !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
    text-align: left !important;
    white-space: normal !important;

    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;

    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22) !important;
    transition:
        opacity 0.16s ease,
        visibility 0.16s ease,
        transform 0.16s ease !important;
}*/

/* Tooltip arrow 
body.single-product .cme-help-popup::after {
    content: "" !important;
    position: absolute !important;
    top: 100% !important;
    left: 50% !important;
    transform: translateX(-50%) !important;

    border: 6px solid transparent !important;
    border-top-color: #222222 !important;
}*/

/* Display after clicking 
body.single-product .cme-help.open .cme-help-popup {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(-50%) translateY(0) !important;
    pointer-events: auto !important;
}*/

/* Optional desktop hover behavior 
@media (hover: hover) {
    body.single-product .cme-help:hover .cme-help-popup {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateX(-50%) translateY(0) !important;
    }
}*/


/* Shop layout next to products 
body.single-product .wapf-field-container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

body.single-product .wapf-field-label {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 230px;
    margin: 0;
}

body.single-product .wapf-field-label label,
body.single-product .wapf--inner {
    font-size: 18px;
    font-weight: 600;
    color: #111;
}

body.single-product .wapf-field-input {
    flex: 1;
}*/

/* Product description 
body.single-product .woocommerce-tabs,
body.single-product .woocommerce-Tabs-panel,
body.single-product .woocommerce-product-details__short-description,
body.single-product .woocommerce-Tabs-panel p {
    color: #222 !important;
}*/

/* Description heading 
body.single-product .woocommerce-Tabs-panel h2,
body.single-product .woocommerce-tabs h2 {
    color: #111 !important;
    font-weight: 700 !important;
}*/

/* Paragraphs 
body.single-product .woocommerce-Tabs-panel p {
    color: #333 !important;
    line-height: 1.65;
}*/

/* Bold labels like "Perfect for:" 
body.single-product .woocommerce-Tabs-panel strong {
    color: #111 !important;
}*/

/* Related Products heading 
body.single-product .related.products > h2 {
    color: #111 !important;
    font-weight: 700 !important;
}*/

/* Stack the image above the label inside each card */
.wapf-field-card .wapf-card-inner {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Center the text area under the image */
.wapf-field-card .wapf-card-body {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    text-align: center !important;
}

/* Center the title itself */
.wapf-field-card .wapf-card-row,
.wapf-field-card .wapf-card-title {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
}

/* Space between image and name */
.wapf-field-card .wapf-card-body {
    margin-top: 6px !important;
}