/*
 * 15 WooCommerce base.
 * Load order: content-style.css -> css/10-content-patterns.css -> css/15-woocommerce.css -> css/20-page-patterns.css -> css/20-support-pages.css -> style.css -> css/pages/50-page-*.css.
 * Purpose: WooCommerce/plugin base styling that should be available before page and support overrides.
 * Related files: content-style.css holds tokens/base utilities; css/10-content-patterns.css holds reusable components; css/20-page-patterns.css and css/20-support-pages.css hold page-family overrides; css/pages/50-page-*.css holds single-page overrides.
 */

/* ============================================================
   WooCommerce Spacing Clearance for Force-Enabled Transparent Headers
   ============================================================ */
.transparent-header:not(.content-title-style-above).woocommerce-page #inner-wrap,
.transparent-header:not(.content-title-style-above).woocommerce-cart #inner-wrap,
.transparent-header:not(.content-title-style-above).woocommerce-checkout #inner-wrap {
    padding-top: 120px;
}

@media (max-width: 1024px) {
    .mobile-transparent-header:not(.content-title-style-above).woocommerce-page #inner-wrap {
        padding-top: 119px;
    }
}

@media (max-width: 767px) {
    .mobile-transparent-header:not(.content-title-style-above).woocommerce-page #inner-wrap {
        padding-top: 109px;
    }
}
/* Hide Kadence/WC "and more" dedup placeholders in product grids */
.woocommerce ul.products > li:not(.product) {
    display: none !important;
}

/* Suppress native WC archive loop chrome on shop page (shortcodes handle display) */
.woocommerce-shop .woocommerce-notices-wrapper,
.woocommerce-shop .kadence-shop-top-row,
.woocommerce-shop .woocommerce-no-products-found {
    display: none !important;
}

/* ── Shop page sections ───────────────────────────────────── */

.dmax-shop-heading {
    position: relative;
    padding-bottom: 20px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dmax-shop-heading::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: var(--global-palette1, var(--dmax-sky));
    margin: 12px auto 0;
}

.dmax-shop-subtitle {
    font-size: 1.1rem;
    color: var(--dmax-ink);
    margin-bottom: 40px;
}

/* WooCommerce product grid inside Kadence sections */
.dmax-row .woocommerce ul.products {
    margin-bottom: 40px;
}

.dmax-row .woocommerce ul.products li.product {
    margin-bottom: 30px;
}

/* ============================================================
   WooCommerce Single Product Parity Adjustments
   ============================================================ */

/* Hide WooCommerce Upsells ("You may also like...") */
body.woocommerce section.upsells.products,
body.woocommerce .up-sells.upsells.products,
body.woocommerce div.product .woocommerce-tabs ul.tabs li:first-child:last-child {
    display: none;
}

/* Light Theme Styling for Single Product Tabs */
body.woocommerce div.product .woocommerce-tabs ul.tabs li {
    background-color: var(--global-palette7, #f7fafc); /* Inactive light gray tab background */
    border-color: var(--global-palette6, #e2e8f0);
}

body.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    color: var(--global-palette4, var(--dmax-blue, #155492)); /* Secondary branding / dark blue text */
    opacity: 0.7; /* Soften inactive text */
}

body.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover {
    opacity: 1;
}

body.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
    background-color: var(--global-palette9, #ffffff); /* Active tab clean white background */
    border-bottom-color: var(--global-palette9, #ffffff);
}

body.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
    color: var(--global-palette4, var(--dmax-blue, #155492)); /* Active brand blue text */
    opacity: 1;
}

/* WooCommerce Specifications Table Clean Styling (Centralized in 10-table.css) */
body.woocommerce table.shop_attributes {
    /* margin-top: 24px; */
    margin-top: 1rem;
    max-width: 440px;
}

body.woocommerce div.product .product_title {
    font-style: normal;
    font-weight: 900;
    font-size: var(--dmax-h1-size);
    line-height: 1.5;
    color: var(--global-palette1);
}

body.woocommerce div.product div.images.woocommerce-product-gallery {
    opacity: 1 !important;
    max-height: 100vw;
    height: auto !important;
        /* Overrides inline JS height lock on mobile */
}
    
/* Prevent WooCommerce Product Gallery CLS on Mobile (JS initialization race condition) */
.woocommerce-product-gallery>.woocommerce-product-gallery__wrapper>.woocommerce-product-gallery__image:not(:first-child) {
        display: none !important;
}

body.woocommerce div.product div.images,
body.woocommerce #content div.product div.images,
body.woocommerce-page div.product div.images,
body.woocommerce-page #content div.product div.images {
    float: left;
    width: 42%;
}
body.woocommerce div.product div.summary,
body.woocommerce #content div.product div.summary,
body.woocommerce-page div.product div.summary,
body.woocommerce-page #content div.product div.summary {
    float: right;
    width: 54%;
    /* width: 100%;
    float: unset; */
    clear: none;
    margin-top: 0;
}

/* Stack gallery and summary on phones: the 42/54 floats above squeeze both columns (#64). */
@media (max-width: 767px) {
    body.woocommerce div.product div.images,
    body.woocommerce #content div.product div.images,
    body.woocommerce-page div.product div.images,
    body.woocommerce-page #content div.product div.images,
    body.woocommerce div.product div.summary,
    body.woocommerce #content div.product div.summary,
    body.woocommerce-page div.product div.summary,
    body.woocommerce-page #content div.product div.summary {
        float: none;
        width: 100%;
    }

    /* The 100vw cap above lets the thumbnail row spill over the stacked summary. */
    body.woocommerce div.product div.images.woocommerce-product-gallery {
        max-height: none;
    }
}

/* ============================================================
   WooCommerce Cart & Checkout — Production Parity
   ============================================================ */

/* ── Checkout Progress Steps ─────────────────────────────── */

.single-content ul.dmax-checkout-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    list-style: none;
    margin: 0 0 30px;
    padding: 0;
    padding-left: 0;
    counter-reset: step;
}

.dmax-checkout-steps li {
    position: relative;
    padding: 10px 28px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #999;
    background: #f7f7f7;
    border: 1px solid #e2e8f0;
    flex: 1;
    text-align: center;
}

.dmax-checkout-steps li:first-child {
    border-radius: 4px 0 0 4px;
}

.dmax-checkout-steps li:last-child {
    border-radius: 0 4px 4px 0;
}

.dmax-checkout-steps li:not(:first-child) {
    border-left: 0;
}

.dmax-checkout-steps li.dmax-step-active {
    background: var(--global-palette1, #155492);
    color: #fff;
    border-color: var(--global-palette1, #155492);
}

@media (max-width: 767px) {
    /* .dmax-checkout-steps {
        flex-direction: column;
    */
    .dmax-checkout-steps li {
        border-radius: 0;
        border-left: 1px solid #e2e8f0;
        border-top: 0;
    }
    .dmax-checkout-steps li:first-child {
        border-radius: 4px 4px 0 0;
        border-top: 1px solid #e2e8f0;
    }
    .dmax-checkout-steps li:last-child {
        border-radius: 0 0 4px 4px;
    }
    .dmax-checkout-steps li.dmax-step-active {
        border-color: var(--global-palette1, #155492);
    }
}

/* ── Cart Table ──────────────────────────────────────────── */

.woocommerce-cart .cart-summary {
    display: none;
}

.woocommerce-cart table.shop_table {
    border: 1px solid #e2e8f0;
    border-radius: 0;
    border-collapse: collapse;
}

.woocommerce-cart table.shop_table th {
    background: #f7f7f7;
    color: var(--dmax-ink, #333);
    font-weight: 700;
    padding: 12px 15px;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: none;
}

.woocommerce-cart table.shop_table td {
    /* padding: 15px 12px; */
    border-bottom: 1px solid #eee;
    /* vertical-align: middle; */
}

.woocommerce-cart .product-thumbnail img {
    width: 80px;
    height: auto;
}

.woocommerce-cart .product-name a {
    color: var(--dmax-blue, #155492);
    font-weight: 600;
}

.woocommerce-cart .product-remove a,
.woocommerce-cart .product-remove button {
    color: #999;
    font-size: 1.4em;
}

.woocommerce-cart .product-remove a:hover,
.woocommerce-cart .product-remove button:hover {
    color: #cc0000;
}

@media (max-width: 767px) {
    .woocommerce-cart table.shop_table_responsive tr.cart_item {
        position: relative;
    }

    .woocommerce-cart table.shop_table_responsive tr.cart_item td.product-remove {
        position: absolute;
        top: 12px;
        right: 12px;
        z-index: 2;
        width: auto;
        min-height: 0;
        padding: 0;
        border: 0;
        background: transparent;
    }

    .woocommerce-cart table.shop_table_responsive tr.cart_item td.product-remove::before {
        content: none;
    }

    .woocommerce-cart table.shop_table_responsive tr.cart_item td.product-remove a,
    .woocommerce-cart table.shop_table_responsive tr.cart_item td.product-remove button {
        position: absolute;
        top: 0;
        right: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        padding: 0;
        border: 1px solid #e2e8f0;
        border-radius: 50%;
        background: #fff;
        color: #777;
        line-height: 1;
        text-decoration: none;
    }

    .woocommerce-cart table.shop_table_responsive tr.cart_item td.product-thumbnail {
        padding-top: 22px;
    }
}

/* Quantity input */
.woocommerce-cart input.qty {
    width: 60px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 6px 4px;
}

/* ── Cart Totals / Collaterals ───────────────────────────── */

.woocommerce-cart .cart-collaterals {
    /* width: 100%; */
}

.woocommerce-cart .cart_totals {
    float: none;
    width: 100%;
    box-sizing: border-box;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
}

.woocommerce-cart .cart_totals h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dmax-ink, #333);
    margin-bottom: 15px;
}

.woocommerce-cart .cart_totals table {
    width: 100%;
    border-collapse: collapse;
}

.woocommerce-cart .cart_totals th {
    width: 40%;
    text-align: left;
    padding: 8px 0;
    font-weight: 600;
    box-shadow: none;
}

.woocommerce-cart .cart_totals td {
    text-align: right;
    padding: 8px 0;
}

.woocommerce-cart .wc-proceed-to-checkout {
    padding: 20px 0 0;
    clear: both;
}

/* Shipping notice after checkout button */
.woocommerce-cart .woocommerce + p {
    margin-top: 24px;
}

/* ── WooCommerce Buttons (Production-style: less rounded) ── */

.woocommerce-cart .button,
.woocommerce-checkout .button,
.woocommerce-cart input.button,
.woocommerce-checkout input.button,
.woocommerce .button,
.wc-block-components-checkout-place-order-button {
    border-radius: 4px !important;
    padding: 10px 22px !important;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: background-color 0.2s, border-color 0.2s;
    /* line-height: unset !important; -- commented out: selector is too broad and
       hits Add to Cart / Update Cart / Apply Coupon. With unset, line-height
       inherits Kadence global 1.6 (≈24px on 15px font), pushing text below
       the vertical center of the 38-40px button. Using line-height: 1 until the
       original unset intent is scoped to its real target. */
    line-height: 1 !important;
}

.woocommerce-cart .button,
.woocommerce-cart input.button,
.woocommerce .button {
    /* background-color: var(--global-palette1, #155492); */
    /* color: #fff; */
    border: 1px solid var(--global-palette1, #155492) !important;
}

.woocommerce-cart .button:hover,
.woocommerce-cart input.button:hover,
.woocommerce .button:hover {
    background-color: var(--global-palette2, #084785);
    border-color: var(--global-palette2, #084785) !important;
}

/* "Return to shop" button — secondary style */
.woocommerce-cart .return-to-shop .wc-backward,
.woocommerce .return-to-shop .wc-backward {
    background-color: var(--global-palette1, #155492);
    color: #fff;
    border: 1px solid var(--global-palette1, #155492) !important;
}

/* Proceed to Checkout — prominent */
.woocommerce-cart .checkout-button {
    background-color: var(--global-palette1, #155492) !important;
    color: #fff !important;
    border: 1px solid var(--global-palette1, #155492) !important;
    font-size: 1rem;
    padding: 12px 30px !important;
}

.woocommerce-cart .checkout-button:hover {
    background-color: var(--global-palette2, #084785) !important;
}

/* ── Coupon Form ─────────────────────────────────────────── */

.woocommerce-cart .coupon {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    /* margin-bottom: 15px; */
}

.woocommerce-cart .coupon input.input-text {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px 12px;
    width: 160px;
}

.woocommerce-cart .coupon .button {
    background: var(--global-palette1, #155492);
    color: #fff;
    border: 1px solid var(--global-palette1, #155492) !important;
    /* padding: 8px 18px !important; */
}

.woocommerce-checkout .woocommerce-billing-fields h3,
.woocommerce-checkout .woocommerce-shipping-fields h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--dmax-ink, #333);
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--global-palette1, #155492);
}

.woocommerce-checkout label {
    color: var(--dmax-ink, #333);
    font-weight: 600;
    font-size: 0.875rem;
}

.woocommerce-checkout .form-row input[type="text"],
.woocommerce-checkout .form-row input[type="email"],
.woocommerce-checkout .form-row input[type="tel"],
.woocommerce-checkout .form-row input[type="password"],
.woocommerce-checkout .form-row select,
.woocommerce-checkout .form-row textarea {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px 12px;
    font-size: 0.875rem;
    width: 100%;
    background: #fff;
    filter: none;
    box-shadow: none;
}

.woocommerce-checkout .form-row input:focus,
.woocommerce-checkout .form-row select:focus,
.woocommerce-checkout .form-row textarea:focus {
    border-color: var(--global-palette1, #155492);
    box-shadow: 0 0 0 2px rgba(21, 84, 146, 0.1);
    outline: none;
}

/* Order Review / Payment */
.woocommerce-checkout #order_review {
    background: #f9f9f9;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 20px;
}

.woocommerce-checkout #order_review_heading {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dmax-ink, #333);
    margin-bottom: 15px;
}

.woocommerce-checkout #payment {
    background: #fff;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
}

.woocommerce-checkout #payment ul.payment_methods {
    padding: 15px;
    list-style: none;
    margin: 0;
}

.woocommerce-checkout #payment .place-order {
    padding: 15px 20px;
}

.woocommerce-checkout #place_order {
    background-color: var(--global-palette1, #155492) !important;
    color: #fff !important;
    border: 1px solid var(--global-palette1, #155492) !important;
    border-radius: 4px !important;
    font-size: 1rem;
    font-weight: 700;
    padding: 14px 30px !important;
    width: 100%;
}

.woocommerce-checkout #place_order:hover {
    background-color: var(--global-palette2, #084785) !important;
}

/* ── Cart Empty State ────────────────────────────────────── */

.woocommerce-cart .wc-empty-cart-message {
    text-align: center;
    padding: 40px 20px;
}

.woocommerce-cart .woocommerce-info {
    background: #f7f7f7;
    border-top: 3px solid var(--global-palette1, #155492);
    color: var(--dmax-ink, #333);
    padding: 15px 20px;
    border-radius: 4px;
}

/* ============================================================
   WooCommerce Visual Foundations
   ============================================================ */

body.woocommerce,
body.woocommerce-page {
    --global-palette4: var(--dmax-blue);
    --global-palette9: #fcfcfc;
    --global-palette-highlight-alt2: #ffffff;
    --global-palette-highlight: var(--dmax-blue);
    background-color: #fff;
}


body.woocommerce .content-bg,
body.woocommerce-page .content-bg {
    background: #fff;
}

body.woocommerce-page #payment ul.wc_payment_methods li.wc_payment_method>label {
    background: #f4f4ff7d;
}

body.woocommerce style:first-child+.dmax-row,
body.woocommerce.content-title-style-above .dmax-row {
    padding-top: 0;
}

body.woocommerce .dmax-row.dmax-section-light+style+.dmax-row.dmax-section-light:not(.dmax-os-freetrial-section),
body.woocommerce.content-title-style-above .dmax-row {
    padding-bottom: clamp(20px, 2vw, 50px);
}

body.woocommerce .dmax-section-light h2,
body.woocommerce-page .dmax-section-light h2 {
    color: var(--dmax-sky);
}

body.woocommerce-shop .dmax-section-light h2 {
    color: var(--dmax-ink);
}

/* ============================================================
   WooCommerce Product Grids
   ============================================================ */

/* Kadence forces a global column count via CSS Grid, so shortcode grids need
   scoped overrides that still collapse cleanly on smaller screens. */
.woocommerce ul.products.columns-3,
.woocommerce-page ul.products.columns-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.woocommerce ul.products.columns-4,
.woocommerce-page ul.products.columns-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

@media (max-width: 1024px) {

    .woocommerce ul.products.columns-3,
    .woocommerce-page ul.products.columns-3,
    .woocommerce ul.products.columns-4,
    .woocommerce-page ul.products.columns-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 600px) {

    .woocommerce ul.products.columns-3,
    .woocommerce-page ul.products.columns-3,
    .woocommerce ul.products.columns-4,
    .woocommerce-page ul.products.columns-4 {
        grid-template-columns: 1fr !important;
    }
}

/* Hide Add to Cart buttons and descriptions on product loops */
.woocommerce ul.products li.product .product-action-wrap,
.woocommerce ul.products li.product .product-excerpt,
.woocommerce-page ul.products li.product .product-action-wrap,
.woocommerce-page ul.products li.product .product-excerpt {
    display: none;
}

/* ============================================================
   WooCommerce Product Category Archives
   ============================================================ */

/* Constrain content area width to align with header container */
body.tax-product_cat #primary .content-container,
body.tax-product_tag #primary .content-container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

/* Style the sorting dropdown select and result count */
body.tax-product_cat .woocommerce-ordering select.orderby,
body.tax-product_tag .woocommerce-ordering select.orderby {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-color: #ffffff !important;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23155492' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 14px !important;
    padding: 8px 36px 8px 16px !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    color: var(--dmax-navy, #08263c) !important;
    border: 1px solid rgba(8, 38, 60, 0.12) !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    box-shadow: 0 1px 3px rgba(8, 38, 60, 0.02) !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease !important;
    outline: none !important;
    height: auto !important;
    line-height: 1.4 !important;
}

body.tax-product_cat .woocommerce-ordering select.orderby:hover,
body.tax-product_tag .woocommerce-ordering select.orderby:hover {
    border-color: rgba(8, 38, 60, 0.24) !important;
    background-color: #fcfcfc !important;
}

body.tax-product_cat .woocommerce-ordering select.orderby:focus,
body.tax-product_tag .woocommerce-ordering select.orderby:focus {
    border-color: var(--dmax-blue) !important;
    box-shadow: 0 0 0 3px rgba(21, 84, 146, 0.15) !important;
    background-color: #ffffff !important;
}

body.tax-product_cat .woocommerce-result-count,
body.tax-product_tag .woocommerce-result-count {
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    color: #556877 !important;
    line-height: 1.4 !important;
}

/* Apply the custom shop-style boxed product cards to product category and tag archives */
body.tax-product_cat ul.products,
body.tax-product_tag ul.products {
    display: grid;
    gap: 24px;
}

body.tax-product_cat ul.products li.product,
body.tax-product_tag ul.products li.product {
    display: flex;
    position: relative;
    flex-direction: column;
    width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 24px 20px;
    float: none;
    background: #f8fafc;
    border: 1px solid rgba(8, 38, 60, 0.06);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(8, 38, 60, 0.02);
    box-sizing: border-box;
    transition: background 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
                transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
                box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
                border-color 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    justify-content: space-between;
    gap: 2rem;
}

body.tax-product_cat ul.products li.product:hover,
body.tax-product_tag ul.products li.product:hover {
    background: #ffffff;
    border-color: rgba(8, 38, 60, 0.12);
    box-shadow: 0 16px 36px rgba(8, 38, 60, 0.08);
    transform: translateY(-6px);
}

body.tax-product_cat ul.products li.product .woocommerce-placeholder,
body.tax-product_cat ul.products li.product img,
body.tax-product_tag ul.products li.product .woocommerce-placeholder,
body.tax-product_tag ul.products li.product img {
    object-fit: contain;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out !important;
    mix-blend-mode: multiply;
}

body.tax-product_cat ul.products li.product:hover img,
body.tax-product_tag ul.products li.product:hover img {
    transform: scale(1.02);
}

/* Hover swap: Fade out primary image, fade in secondary alternate image */
/* Round-3 #58: hover-swap DISABLED per client ("just keep the original
   image"). Only 4/13 products carried a secondary (stale attachments,
   e.g. an old office photo on the Dream Sensor card) and the fade raced
   with the card lift transform, producing the "random image" flash.
   Restore by un-commenting. */
/*
body.tax-product_cat ul.products.woo-archive-image-hover-fade li.product:has(.secondary-product-image):hover a img:not(.secondary-product-image),
body.tax-product_tag ul.products.woo-archive-image-hover-fade li.product:has(.secondary-product-image):hover a img:not(.secondary-product-image) {
    opacity: 0;
}

body.tax-product_cat ul.products.woo-archive-image-hover-fade li.product:hover a img.secondary-product-image,
body.tax-product_tag ul.products.woo-archive-image-hover-fade li.product:hover a img.secondary-product-image {
    opacity: 1;
}
*/

body.tax-product_cat ul.products li.product .product-details,
body.tax-product_tag ul.products li.product .product-details {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 0;
    background: transparent;
}

body.tax-product_cat ul.products li.product .entry-content-wrap,
body.tax-product_tag ul.products li.product .entry-content-wrap {
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body.tax-product_cat ul.products.woo-archive-action-on-hover li.product:hover .entry-content-wrap,
body.tax-product_cat ul.products.woo-archive-action-on-hover li.product:focus-within .entry-content-wrap,
body.tax-product_tag ul.products.woo-archive-action-on-hover li.product:hover .entry-content-wrap,
body.tax-product_tag ul.products.woo-archive-action-on-hover li.product:focus-within .entry-content-wrap {
    transform: translateY(-2.5rem);
}

body.tax-product_cat ul.products li.product .woocommerce-loop-product__title,
body.tax-product_tag ul.products li.product .woocommerce-loop-product__title {
    min-height: 2.5em;
    color: var(--dmax-ink);
    font-weight: 700;
}

body.tax-product_cat ul.products li.product .price,
body.tax-product_tag ul.products li.product .price {
    margin: 0 0 10px;
    color: var(--dmax-blue);
    font-size: 1.125rem;
    font-weight: 800;
    text-align: center;
}

body.tax-product_cat ul.products li.product .price del,
body.tax-product_tag ul.products li.product .price del {
    color: #697789;
    font-weight: 600;
    opacity: 1;
}

body.tax-product_cat ul.products li.product .product-action-wrap,
body.tax-product_tag ul.products li.product .product-action-wrap {
    display: block;
    position: absolute;
    right: 20px;
    bottom: 20px;
    left: 20px;
    width: auto;
    padding: 0;
    opacity: 0;
    pointer-events: none;
    transform: translateY(5rem);
    transition: opacity 0.22s ease, transform 0.22s ease;
    visibility: hidden;
    z-index: 2;
}

body.tax-product_cat ul.products li.product:hover .product-action-wrap,
body.tax-product_cat ul.products li.product:focus-within .product-action-wrap,
body.tax-product_tag ul.products li.product:hover .product-action-wrap,
body.tax-product_tag ul.products li.product:focus-within .product-action-wrap {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(2rem);
    visibility: visible;
}

body.tax-product_cat ul.products li.product .see-product-btn,
body.tax-product_tag ul.products li.product .see-product-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    margin-top: auto;
    padding: 10px 18px;
    background-color: var(--dmax-blue);
    border: 1px solid var(--dmax-blue);
    border-radius: 6px;
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    transition: background-color 160ms ease, border-color 160ms ease;
}

body.tax-product_cat ul.products li.product .see-product-btn:hover,
body.tax-product_cat ul.products li.product .see-product-btn:focus,
body.tax-product_tag ul.products li.product .see-product-btn:hover,
body.tax-product_tag ul.products li.product .see-product-btn:focus {
    background-color: var(--dmax-ink);
    border-color: var(--dmax-ink);
    color: #ffffff;
}

@media (max-width: 767px) {
    body.tax-product_cat ul.products li.product .product-action-wrap,
    body.tax-product_tag ul.products li.product .product-action-wrap {
        position: static;
        width: 100%;
        margin-top: auto;
        opacity: 1;
        pointer-events: auto;
        transform: none;
        visibility: visible;
    }
    body.tax-product_cat ul.products li.product, body.tax-product_tag ul.products li.product {
        padding: 12px 10px;
        gap: 1.8rem;
    }
}

/* ── Option B: Guided Catalogue 2-Column Hero layout ── */
body.tax-product_cat .entry-hero-container-inner .entry-header,
body.tax-product_tag .entry-hero-container-inner .entry-header {
    /* min-height: 0 !important; */
    /* padding-top: 0 !important; */
    /* padding-bottom: 0 !important; */
    /* margin-top: 0 !important; */
    /* margin-bottom: 0 !important; */
}
body.tax-product_cat .hero-section-overlay {
    display: none;
}

body.tax-product_cat .entry-hero {
    position: relative;
    z-index: -1;
}
body.tax-product_cat #primary {
    margin-top: -200px;
}

body.tax-product_cat .product-archive-title h1.page-title.archive-title,
body.tax-product_tag .product-archive-title h1.page-title.archive-title {
    display: none !important;
}

body.tax-product_cat .archive-description,
body.tax-product_tag .archive-description {
    text-align: left;
    max-width: none;
    margin: 0;
}

body.tax-product_cat .archive-description > p:first-child,
body.tax-product_tag .archive-description > p:first-child {
    display: none !important;
}

.dmax-category-hero-grid {
    display: grid;
    grid-template-columns: 1.35fr 0.65fr;
    gap: 40px;
    align-items: start;
    text-align: left;
    max-width: 1200px;
    margin: 40px auto 40px;
    padding: 0;
    box-sizing: border-box;
}

.dmax-category-hero-title {
    font-size: var(--dmax-h1-size);
    font-weight: 800;
    color: var(--dmax-navy);
    margin: 0 0 14px;
    line-height: 1.15;
}

.dmax-category-hero-desc {
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--dmax-ink);
    margin: 0 0 20px;
    max-width: 720px;
}

.dmax-category-hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.dmax-category-chip {
    background: rgba(60, 188, 230, 0.08);
    /* color: var(--dmax-blue); */
    /* color: var(--dmax-ink); */
    color: var(--dmax-navy);
    border: 1px solid rgba(60, 188, 230, 0.18);
    /* border-radius: 99px; */
    padding: 6px 14px;
    /* font-size: 0.8125rem; */
    font-size: 0.765rem;
    font-weight: 600;
    line-height: 1;
}

.dmax-category-nav-card {
    background: #ffffff;
    border: 1px solid rgba(8, 38, 60, 0.08);
    border-radius: 12px;
    padding: 22px 24px;
    box-shadow: 0 4px 16px rgba(8, 38, 60, 0.02);
}

.dmax-category-nav-title {
    font-size: 0.8125rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--dmax-navy);
    margin: 0 0 14px;
    border-bottom: 2px solid var(--dmax-sky);
    padding-bottom: 8px;
}

.dmax-category-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dmax-category-nav-list li {
    margin: 0 0 10px;
    font-size: 0.9375rem;
    line-height: 1.4;
}

.dmax-category-nav-list li:last-child {
    margin: 0;
}

.dmax-category-nav-list li.is-active strong {
    color: var(--dmax-navy);
    font-weight: 700;
}

.dmax-category-nav-list li a {
    color: var(--dmax-blue);
    text-decoration: none;
    transition: color 0.15s ease;
}

.dmax-category-nav-list li a:hover {
    color: var(--dmax-sky);
}

@media (max-width: 991px) {
    .dmax-category-hero-desc {
        font-size: 1rem;
        margin: 0 0 20px;
    }
    .dmax-category-hero-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        margin: 1.5rem auto 2.5rem;
    }
    .dmax-category-nav-list li {
        /* margin: 0 0 10px; */
        font-size: 0.92rem;
        /* line-height: 1.3; */
    }
}


/* Fix Sale Badge styling to match production (Top-Left, Dark Blue) */
.woocommerce ul.products li.product .onsale,
.onsale {
    /* top: 10px !important; */
    /* left: 10px !important; */
    right: auto;
    /* transform: none !important; */
    /* text-transform: uppercase; */
    /* Changes "Sale!" to "SALE!" */
    /* font-size: 0.75rem !important; */
    /* padding: 0.4em 0.8em !important; */
    /* border-radius: 3px !important; */
    /* background-color: var(--dmax-blue);
    color: #ffffff; */
}

/* Checkout customer fields: override WooCommerce's float-based col2-set layout. */
body.woocommerce-checkout form.checkout #customer_details {
    display: grid !important;
    /* grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); */
    grid-template-columns: 1fr;
    gap: 30px;
}

body.woocommerce-checkout form.checkout #customer_details > .col-1,
body.woocommerce-checkout form.checkout #customer_details > .col-2 {
    float: none !important;
    clear: none !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
}

body.woocommerce-checkout form.checkout #customer_details > .col-1 {
    grid-column: 1;
    grid-row: 1;
}

body.woocommerce-checkout form.checkout #customer_details > .col-2 {
    /* grid-column: 2; */
    /* grid-row: 1; */
}

@media (max-width: 767px) {
    .dmax-category-hero-chips {
        display: none;
    }
    .dmax-category-hero-grid {
        gap: .25rem;
        margin: 1rem auto 2rem;
    }
    body.woocommerce-checkout form.checkout #customer_details {
        grid-template-columns: 1fr;
        gap: 0;
    }

    body.woocommerce-checkout form.checkout #customer_details > .col-1 {
        grid-column: 1;
        grid-row: 1;
    }

    body.woocommerce-checkout form.checkout #customer_details > .col-2 {
        grid-column: 1;
        grid-row: 2;
        /* margin-top: 2rem; */
        padding-top: 2rem;
    }
}

/* ============================================================
   WooCommerce Shop — Product Cards & Custom CTA Button
   ============================================================ */

body.woocommerce-shop .dmax-row ul.products {
    display: grid;
    gap: 24px;
}

body.woocommerce-shop .dmax-row ul.products li.product,
.related.products ul.products li.product,
.up-sells.products ul.products li.product,
.cross-sells.products ul.products li.product {
    display: flex;
    position: relative;
    flex-direction: column;
    width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 24px 20px;
    float: none;
    background: #f8fafc;
    border: 1px solid rgba(8, 38, 60, 0.06);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(8, 38, 60, 0.02);
    box-sizing: border-box;
    transition: background 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
                transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
                box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
                border-color 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    justify-content: space-between;
    gap: 2rem;
}

body.woocommerce-shop ul.products li.product:hover {
    /* background: #ffffff; */
    /* transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(8, 38, 60, 0.08);
    border-color: rgba(8, 38, 60, 0.12); */
}
body.woocommerce-shop .dmax-row ul.products li.product:hover,
.related.products ul.products li.product:hover,
.up-sells.products ul.products li.product:hover,
.cross-sells.products ul.products li.product:hover {
    background: #ffffff;
    border-color: rgba(8, 38, 60, 0.12);
    box-shadow: 0 16px 36px rgba(8, 38, 60, 0.08);
    transform: translateY(-6px);
}

@media (min-width: 992px) {
    body.woocommerce-shop .dmax-row ul.products.grid-lg-col-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    body.woocommerce-shop .dmax-row ul.products.grid-lg-col-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}

/* A 3-column shop grid holding exactly two products centers the pair:
   6 tracks, each card spans 2, the first card starts at track 2. Card
   width stays (W−2g)/3 and the between-card gap stays g, so cards keep
   3-column sizing. Three or more products stop matching :has() and keep
   the plain repeat(3) layout above. The !important mirrors the column
   rules it refines (both shop contexts: body class + production page id).
   Card spans are uncontested and need no !important. */
@media (min-width: 992px) {
    body.woocommerce-shop .dmax-row ul.products.grid-lg-col-3:has(> li.product:nth-child(2):last-child),
    .page-id-19114 ul.products.grid-lg-col-3:has(> li.product:nth-child(2):last-child) {
        grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    }

    .woocommerce ul.products.grid-lg-col-3:has(> li.product:nth-child(2):last-child) > li.product {
        grid-column: span 2;
    }

    .woocommerce ul.products.grid-lg-col-3:has(> li.product:nth-child(2):last-child) > li.product:first-child {
        grid-column: 2 / span 2;
    }
}

body.woocommerce-shop .dmax-row ul.products li.product .woocommerce-placeholder,
body.woocommerce-shop .dmax-row ul.products li.product img,
.related.products ul.products li.product .woocommerce-placeholder,
.related.products ul.products li.product img,
.up-sells.products ul.products li.product .woocommerce-placeholder,
.up-sells.products ul.products li.product img,
.cross-sells.products ul.products li.product .woocommerce-placeholder,
.cross-sells.products ul.products li.product img {
    /* width: 100%; */
    /* max-height: 210px; */
    object-fit: contain;
    /* margin: 0 auto 18px; */
    /* border-radius: 8px; */
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out !important;
    mix-blend-mode: multiply;
}

body.woocommerce-shop .dmax-row ul.products li.product:hover img,
.related.products ul.products li.product:hover img,
.up-sells.products ul.products li.product:hover img,
.cross-sells.products ul.products li.product:hover img {
    transform: scale(1.02);
}

/* Hover swap: Fade out primary image, fade in secondary alternate image */
/* Round-3 #58: hover-swap DISABLED (see note at the archive block above). */
/*
body.woocommerce-shop .dmax-row ul.products.woo-archive-image-hover-fade li.product:has(.secondary-product-image):hover a img:not(.secondary-product-image),
.related.products ul.products li.product:has(.secondary-product-image):hover a img:not(.secondary-product-image),
.up-sells.products ul.products li.product:has(.secondary-product-image):hover a img:not(.secondary-product-image),
.cross-sells.products ul.products li.product:has(.secondary-product-image):hover a img:not(.secondary-product-image) {
    opacity: 0;
}

body.woocommerce-shop .dmax-row ul.products.woo-archive-image-hover-fade li.product:hover a img.secondary-product-image,
.related.products ul.products li.product:hover a img.secondary-product-image,
.up-sells.products ul.products li.product:hover a img.secondary-product-image,
.cross-sells.products ul.products li.product:hover a img.secondary-product-image {
    opacity: 1;
}
*/

body.woocommerce-shop .dmax-row ul.products li.product .product-details,
.related.products ul.products li.product .product-details,
.up-sells.products ul.products li.product .product-details,
.cross-sells.products ul.products li.product .product-details {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 0;
    background: transparent;
}

body.woocommerce-shop .dmax-row ul.products li.product .entry-content-wrap,
.related.products ul.products li.product .entry-content-wrap,
.up-sells.products ul.products li.product .entry-content-wrap,
.cross-sells.products ul.products li.product .entry-content-wrap {
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body.woocommerce-shop .dmax-row ul.products.woo-archive-action-on-hover li.product:hover .entry-content-wrap,
body.woocommerce-shop .dmax-row ul.products.woo-archive-action-on-hover li.product:focus-within .entry-content-wrap,
.related.products ul.products li.product:hover .entry-content-wrap,
.related.products ul.products li.product:focus-within .entry-content-wrap,
.up-sells.products ul.products li.product:hover .entry-content-wrap,
.up-sells.products ul.products li.product:focus-within .entry-content-wrap,
.cross-sells.products ul.products li.product:hover .entry-content-wrap,
.cross-sells.products ul.products li.product:focus-within .entry-content-wrap {
    /* transform: none; */
    transform: translateY(-2.5rem);
}

body.woocommerce-shop .dmax-row ul.products li.product .woocommerce-loop-product__title,
.related.products ul.products li.product .woocommerce-loop-product__title,
.up-sells.products ul.products li.product .woocommerce-loop-product__title,
.cross-sells.products ul.products li.product .woocommerce-loop-product__title {
    min-height: 2.5em;
    /* margin: 10px 0 8px; */
    color: var(--dmax-ink);
    /* font-size: 1.0625rem; */
    font-weight: 700;
    /* line-height: 1.35; */
    /* text-align: center; */
}

body.woocommerce-shop .dmax-row ul.products li.product .price,
.related.products ul.products li.product .price,
.up-sells.products ul.products li.product .price,
.cross-sells.products ul.products li.product .price {
    margin: 0 0 10px;
    color: var(--dmax-blue);
    font-size: 1.125rem;
    font-weight: 800;
    text-align: center;
}

body.woocommerce-shop .dmax-row ul.products li.product .price del,
.related.products ul.products li.product .price del,
.up-sells.products ul.products li.product .price del,
.cross-sells.products ul.products li.product .price del {
    color: #697789;
    font-weight: 600;
    opacity: 1;
}

body.woocommerce-shop .dmax-row ul.products li.product .product-action-wrap,
.related.products ul.products li.product .product-action-wrap,
.up-sells.products ul.products li.product .product-action-wrap,
.cross-sells.products ul.products li.product .product-action-wrap {
    display: block;
    position: absolute;
    right: 20px;
    bottom: 20px;
    left: 20px;
    width: auto;
    padding: 0;
    opacity: 0;
    pointer-events: none;
    transform: translateY(5rem);
    transition: opacity 0.22s ease, transform 0.22s ease;
    visibility: hidden;
    z-index: 2;
}

body.woocommerce-shop .dmax-row ul.products li.product:hover .product-action-wrap,
body.woocommerce-shop .dmax-row ul.products li.product:focus-within .product-action-wrap,
.related.products ul.products li.product:hover .product-action-wrap,
.related.products ul.products li.product:focus-within .product-action-wrap,
.up-sells.products ul.products li.product:hover .product-action-wrap,
.up-sells.products ul.products li.product:focus-within .product-action-wrap,
.cross-sells.products ul.products li.product:hover .product-action-wrap,
.cross-sells.products ul.products li.product:focus-within .product-action-wrap {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(2rem);
    visibility: visible;
}

body.woocommerce-shop .dmax-row ul.products li.product .see-product-btn,
.related.products ul.products li.product .product-action-wrap .button,
.up-sells.products ul.products li.product .product-action-wrap .button,
.cross-sells.products ul.products li.product .product-action-wrap .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    margin-top: auto;
    padding: 10px 18px;
    background-color: var(--dmax-blue);
    border: 1px solid var(--dmax-blue);
    border-radius: 6px;
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    transition: background-color 160ms ease, border-color 160ms ease;
}

body.woocommerce-shop .dmax-row ul.products li.product .see-product-btn:hover,
body.woocommerce-shop .dmax-row ul.products li.product .see-product-btn:focus,
.related.products ul.products li.product .product-action-wrap .button:hover,
.related.products ul.products li.product .product-action-wrap .button:focus,
.up-sells.products ul.products li.product .product-action-wrap .button:hover,
.up-sells.products ul.products li.product .product-action-wrap .button:focus,
.cross-sells.products ul.products li.product .product-action-wrap .button:hover,
.cross-sells.products ul.products li.product .product-action-wrap .button:focus {
    background-color: var(--dmax-ink);
    border-color: var(--dmax-ink);
    color: #ffffff;
}

body.woocommerce-shop .dmax-row .wp-block-kadence-advancedbtn {
    margin-top: 28px;
}

body.woocommerce-shop .dmax-row .wp-block-kadence-advancedbtn .kb-button {
    border-radius: 999px;
}

@media (max-width: 767px) {
    body.woocommerce-shop .dmax-row ul.products li.product .product-action-wrap,
    .related.products ul.products li.product .product-action-wrap,
    .up-sells.products ul.products li.product .product-action-wrap,
    .cross-sells.products ul.products li.product .product-action-wrap {
        position: static;
        width: 100%;
        margin-top: auto;
        opacity: 1;
        pointer-events: auto;
        transform: none;
        visibility: visible;
    }
}


/* ── Woo Product Short Description List styling ── */
/* Idea 1: Flexbox Table-Row Emulation (Active) */
.woocommerce-product-details__short-description ul,
.single-content .woocommerce-product-details__short-description ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    max-width: 990px;
}

.woocommerce-product-details__short-description ul li {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 8px 12px;
    /* border-bottom: 1px solid rgba(255, 255, 255, 0.08); */
    font-size: 0.95rem;
    /* color: rgba(255, 255, 255, 0.9); */
    transition: background-color 0.2s ease;
}

.woocommerce-product-details__short-description ul li:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

.woocommerce-product-details__short-description ul li:last-child {
    border-bottom: none;
}

/* Left Pill (Checkmark Badge) */
.woocommerce-product-details__short-description ul li::before {
    content: "✓";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1;
    background: rgba(60, 188, 230, 0.12);
    color: #3cbce6;
    border: 1px solid rgba(60, 188, 230, 0.25);
    flex-shrink: 0;
}

@media (max-width: 767px) {
    .woocommerce-product-details__short-description ul li {
        padding: 12px 8px;
    }
}

/* Idea 2: Alternating Grid-Card Rows (Commented out) */
/*
.woocommerce-product-details__short-description ul {
    list-style: none;
    padding: 0;
    margin: 24px 0;
    border-radius: 8px;
    overflow: hidden;
}

.woocommerce-product-details__short-description ul li {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    transition: background-color 0.2s ease;
}

.woocommerce-product-details__short-description ul li:nth-child(odd) {
    background-color: rgba(255, 255, 255, 0.02);
}

.woocommerce-product-details__short-description ul li:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.04);
}

.woocommerce-product-details__short-description ul li:hover {
    background-color: rgba(60, 188, 230, 0.08);
}

.woocommerce-product-details__short-description ul li::before {
    content: "✓";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}
*/



/* ============================================================
   WooCommerce Shop Variant B — Premium Cards & Custom CTA Button
   ============================================================ */

.page-id-19114 ul.products li.product {
    background: #f8fafc !important;
    border: 1px solid rgba(8, 38, 60, 0.05) !important;
    border-radius: 12px !important;
    padding: 24px 20px !important;
    box-shadow: 0 2px 8px rgba(8, 38, 60, 0.01) !important;
    transition: background 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
                transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
                box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
                border-color 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between;
}

.page-id-19114 ul.products li.product:hover {
    background: #ffffff !important;
    transform: translateY(-6px) !important;
    box-shadow: 0 16px 36px rgba(8, 38, 60, 0.08) !important;
    border-color: rgba(8, 38, 60, 0.12) !important;
}

/* Force same height grid for products */
.page-id-19114 ul.products {
    display: grid !important;
    gap: 24px !important;
}

@media (min-width: 992px) {
    .page-id-19114 ul.products.grid-lg-col-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
    .page-id-19114 ul.products.grid-lg-col-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}

/* Ensure WooCommerce default floats are cleared in grid */
.page-id-19114 ul.products li.product {
    width: 100% !important;
    margin: 0 !important;
    float: none !important;
}

/* Style the product image container in WooCommerce */
.page-id-19114 ul.products li.product .woocommerce-placeholder,
.page-id-19114 ul.products li.product img {
    /* border-radius: 8px !important; */
    /* margin-bottom: 16px !important; */
    /* transition: transform 0.3s ease !important; */
    mix-blend-mode: multiply;
}

.page-id-19114 ul.products li.product:hover img {
    transform: scale(1.02) !important;
}

/* Centered content elements */
.page-id-19114 .woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--dmax-ink);
    line-height: 1.3;
    margin: 12px 0 8px 0;
    text-align: center;
}

.page-id-19114 ul.products li.product .price {
    font-size: 1.25rem !important;
    color: var(--dmax-sky) !important;
    font-weight: 800 !important;
    margin-bottom: 20px !important;
    text-align: center !important;
}

/* Force action button wrapper to display on Variant B */
.page-id-19114 ul.products li.product .product-action-wrap {
    display: block !important;
}

/* Elegant custom "See Product" button styling */
.page-id-19114 ul.products li.product .see-product-btn,
.page-id-19114 .woocommerce ul.products.woo-archive-btn-button li.product .see-product-btn.button:not(.kb-button),
.page-id-19114 .woocommerce ul.products:not(.woo-archive-btn-button) li.product:where(:not(.woo-archive-btn-button)) .see-product-btn:not(.kb-button) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 44px;
    background-color: var(--dmax-sky);
    color: #ffffff;
    font-weight: 700;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    border-radius: 6px !important;
    font-size: 0.875rem !important;
    border: none !important;
    transition: background-color 0.2s ease, transform 0.1s ease !important;
    margin-top: auto !important;
}

.page-id-19114 ul.products li.product .see-product-btn:hover {
    background-color: var(--dmax-ink) !important;
    color: #ffffff !important;
    text-decoration: none !important;
}


/* Dark mode, 2026-06-07 */

.dmax-section-dark .woocommerce div.product div.images .flex-control-thumbs li,
.dmax-section-dark .woocommerce div.product div.images .woocommerce-product-gallery__trigger {
    /* background: var(--global-palette5); */
    background: #08263c0a;
}

.dmax-section-dark form .entry-content table,
.entry-content .dmax-section-dark table.variations,
div.entry-content .dmax-section-dark table tr:first-child th {
    /* background: var(--global-palette5); */
    /* background: #08263c; */
    background: #08263c40;
}

/* .dmax-section-dark .quantity input[type=number], */
/* .dmax-section-dark .woocommerce .quantity .qty, */
.entry-content .dmax-section-dark table.variations select,
.dmax-section-dark table.variations select:focus option {
    background:rgba(27,127,204,.8);
    color: #fff;
    border-color: var(--global-palette6);
}

.dmax-section-dark .entry-content table.variations select:not(:-internal-list-box)::picker(select) {
    background:rgba(27,127,204,.8);
    color: #fff;
    border-color: var(--global-palette6);
}

.entry-content .dmax-section-dark table.variations select {
    background:rgb(27 127 204 / 30%);
}
.entry-content .dmax-section-dark table.variations select:focus {
    background-color: #155492 !important;
}
.dmax-pro-checkout-section.dmax-section-dark .woocommerce div.product div.images .flex-control-thumbs li,
.dmax-pro-checkout-section.dmax-section-dark .woocommerce div.product div.images .flex-control-thumbs li img {
    /* background: var(--global-palette5); */
    background: #08263c1c;
    border-top: 5px solid #08263c1c;
    border-bottom: 0px solid #08263c1c;
    border-right: 5px solid #08263c1c;
}
