/*
 * SAI HERBS Premium Mobile UX Polish V2.6.1
 * CSS-only visual polish where possible. Scoped through plugin body classes.
 */

:root {
    --sai-ux-green: #083f27;
    --sai-ux-green-2: #0f6a3d;
    --sai-ux-cream: #fffaf0;
    --sai-ux-soft: #f3f8ef;
    --sai-ux-gold: #c99a32;
    --sai-ux-black: #121713;
    --sai-ux-ink: #26352d;
    --sai-ux-border: rgba(8, 63, 39, 0.13);
    --sai-ux-shadow: 0 14px 34px rgba(20, 47, 30, 0.12);
    --sai-ux-shadow-soft: 0 8px 22px rgba(20, 47, 30, 0.08);
}

/* SAI_HERBS_MOBILE_VISUAL_POLISH_V2_6_1
 * Final mobile-only visual refinement. Search input ownership note:
 * .sai-herbs-psa-strip is rendered by SAI HERBS Premium Search Archive,
 * so this plugin styles it but does not inject search logic.
 */
@media (max-width: 767px) {
    body.sai-mobile-ux-polish .sai-mobile-header-cart-shortcut {
        height: 36px !important;
        min-height: 36px !important;
        min-width: 36px !important;
        right: 12px !important;
        top: calc(10px + env(safe-area-inset-top, 0px)) !important;
        width: 36px !important;
    }

    body.admin-bar.sai-mobile-ux-polish .sai-mobile-header-cart-shortcut {
        top: calc(56px + env(safe-area-inset-top, 0px)) !important;
    }

    body.sai-mobile-ux-polish .sai-mobile-header-cart-count {
        font-size: 9px !important;
        height: 16px !important;
        line-height: 16px !important;
        min-width: 16px !important;
        right: -4px !important;
        top: -4px !important;
    }

    body.sai-mobile-ux-polish.sai-ux-search-page .sai-herbs-psa-strip {
        background:
            radial-gradient(circle at 12% 10%, rgba(255, 244, 207, 0.14), transparent 34%),
            linear-gradient(150deg, #063d27 0%, #075b37 52%, #123f2b 100%) !important;
        border: 1px solid rgba(199, 154, 50, 0.44) !important;
        border-radius: 20px !important;
        box-shadow: 0 16px 34px rgba(4, 42, 27, 0.2), inset 0 1px 0 rgba(255, 250, 240, 0.14) !important;
        display: grid !important;
        gap: 12px !important;
        margin: 10px 10px 12px !important;
        padding: 17px 14px 14px !important;
    }

    body.sai-mobile-ux-polish.sai-ux-search-page .sai-herbs-psa-strip-main,
    body.sai-mobile-ux-polish.sai-ux-search-page .sai-herbs-psa-strip-side {
        display: block !important;
        min-width: 0 !important;
        width: 100% !important;
    }

    body.sai-mobile-ux-polish.sai-ux-search-page .sai-herbs-psa-eyebrow {
        color: rgba(255, 244, 207, 0.94) !important;
        font-size: 10px !important;
        font-weight: 760 !important;
        letter-spacing: 0.04em !important;
        line-height: 1.25 !important;
        margin: 0 0 4px !important;
        text-transform: uppercase !important;
    }

    body.sai-mobile-ux-polish.sai-ux-search-page .sai-herbs-psa-title {
        color: #fffaf0 !important;
        font-size: 23px !important;
        font-weight: 820 !important;
        letter-spacing: 0 !important;
        line-height: 1.12 !important;
        margin: 0 0 7px !important;
    }

    body.sai-mobile-ux-polish.sai-ux-search-page .sai-herbs-psa-text {
        color: rgba(255, 250, 240, 0.88) !important;
        font-size: 13px !important;
        font-weight: 480 !important;
        line-height: 1.48 !important;
        margin: 0 !important;
        max-width: 31rem !important;
    }

    body.sai-mobile-ux-polish.sai-ux-search-page .sai-herbs-psa-count {
        display: none !important;
    }

    body.sai-mobile-ux-polish.sai-ux-search-page .sai-herbs-psa-chip-row {
        align-items: center !important;
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
        margin: 0 !important;
    }

    body.sai-mobile-ux-polish.sai-ux-search-page .sai-herbs-psa-chip {
        background: rgba(255, 250, 240, 0.12) !important;
        border: 1px solid rgba(255, 250, 240, 0.26) !important;
        border-radius: 999px !important;
        color: #fff4cf !important;
        font-size: 10.5px !important;
        font-weight: 800 !important;
        letter-spacing: 0 !important;
        line-height: 1 !important;
        margin: 0 !important;
        padding: 7px 10px !important;
    }

    body.sai-mobile-ux-polish.sai-ux-search-page .sai-herbs-psa-chip-main {
        background: #fff4cf !important;
        border-color: #fff4cf !important;
        color: #075b37 !important;
        box-shadow: 0 7px 16px rgba(4, 42, 27, 0.2) !important;
    }

    body.sai-mobile-ux-polish .shop-loop-head {
        gap: 8px !important;
        margin-bottom: 12px !important;
    }

    body.sai-mobile-ux-polish .shop-loop-head .wd-shop-tools {
        align-items: stretch !important;
        display: grid !important;
        gap: 8px !important;
        grid-template-columns: 1fr !important;
        width: 100% !important;
    }

    body.sai-mobile-ux-polish :is(.shop-loop-head .woocommerce-result-count, .wd-shop-tools .woocommerce-result-count) {
        background: rgba(255, 253, 247, 0.9) !important;
        border: 1px solid rgba(7, 91, 55, 0.1) !important;
        border-radius: 12px !important;
        color: #486458 !important;
        display: block !important;
        font-size: 11.5px !important;
        font-weight: 720 !important;
        line-height: 1.35 !important;
        margin: 0 !important;
        padding: 8px 10px !important;
        text-align: center !important;
    }

    body.woocommerce-shop .shop-loop-head .wd-shop-tools form.woocommerce-ordering.wd-ordering-mb-icon,
    body.archive.woocommerce .shop-loop-head .wd-shop-tools form.woocommerce-ordering.wd-ordering-mb-icon,
    body.search .shop-loop-head .wd-shop-tools form.woocommerce-ordering.wd-ordering-mb-icon,
    body.search-results .shop-loop-head .wd-shop-tools form.woocommerce-ordering.wd-ordering-mb-icon,
    body.post-type-archive-product .shop-loop-head .wd-shop-tools form.woocommerce-ordering.wd-ordering-mb-icon,
    body.tax-product_cat .shop-loop-head .wd-shop-tools form.woocommerce-ordering.wd-ordering-mb-icon,
    body.tax-product_tag .shop-loop-head .wd-shop-tools form.woocommerce-ordering.wd-ordering-mb-icon {
        margin: 0 !important;
    }

    body.woocommerce-shop .shop-loop-head .wd-shop-tools form.woocommerce-ordering.wd-ordering-mb-icon select.orderby,
    body.archive.woocommerce .shop-loop-head .wd-shop-tools form.woocommerce-ordering.wd-ordering-mb-icon select.orderby,
    body.search .shop-loop-head .wd-shop-tools form.woocommerce-ordering.wd-ordering-mb-icon select.orderby,
    body.search-results .shop-loop-head .wd-shop-tools form.woocommerce-ordering.wd-ordering-mb-icon select.orderby,
    body.post-type-archive-product .shop-loop-head .wd-shop-tools form.woocommerce-ordering.wd-ordering-mb-icon select.orderby,
    body.tax-product_cat .shop-loop-head .wd-shop-tools form.woocommerce-ordering.wd-ordering-mb-icon select.orderby,
    body.tax-product_tag .shop-loop-head .wd-shop-tools form.woocommerce-ordering.wd-ordering-mb-icon select.orderby {
        background-color: #fffdf7 !important;
        border-color: rgba(7, 91, 55, 0.2) !important;
        border-radius: 14px !important;
        box-shadow: 0 9px 20px rgba(17, 54, 39, 0.07) !important;
        color: #10291c !important;
        font-size: 12.5px !important;
        font-weight: 760 !important;
        height: 42px !important;
        line-height: 42px !important;
        min-height: 42px !important;
        padding-left: 54px !important;
    }

    body.woocommerce-shop .shop-loop-head .wd-shop-tools form.woocommerce-ordering.wd-ordering-mb-icon::before,
    body.archive.woocommerce .shop-loop-head .wd-shop-tools form.woocommerce-ordering.wd-ordering-mb-icon::before,
    body.search .shop-loop-head .wd-shop-tools form.woocommerce-ordering.wd-ordering-mb-icon::before,
    body.search-results .shop-loop-head .wd-shop-tools form.woocommerce-ordering.wd-ordering-mb-icon::before,
    body.post-type-archive-product .shop-loop-head .wd-shop-tools form.woocommerce-ordering.wd-ordering-mb-icon::before,
    body.tax-product_cat .shop-loop-head .wd-shop-tools form.woocommerce-ordering.wd-ordering-mb-icon::before,
    body.tax-product_tag .shop-loop-head .wd-shop-tools form.woocommerce-ordering.wd-ordering-mb-icon::before {
        background: rgba(7, 91, 55, 0.08) !important;
        border-radius: 999px !important;
        color: #075b37 !important;
        font-size: 10.5px !important;
        height: 22px !important;
        left: 10px !important;
        padding: 0 8px !important;
        top: 10px !important;
    }

    body.sai-mobile-ux-polish :is(.product-grid-item .product-element-top, .product-grid-item .product-image-link, .products .product .product-element-top, .products .product .woocommerce-LoopProduct-link, li.product .product-element-top) {
        background: linear-gradient(180deg, #fbf8ef, #eef7ec) !important;
        border: 1px solid rgba(7, 91, 55, 0.08) !important;
        border-radius: 14px !important;
        overflow: hidden !important;
    }

    body.sai-mobile-ux-polish :is(.product-grid-item .product-element-top img, .product-grid-item .product-image-link img, .products .product img, li.product img) {
        background: #fffdf7 !important;
        border-radius: 12px !important;
        object-fit: contain !important;
    }

    body.sai-mobile-ux-polish :is(.product-grid-item .product-element-top:not(:has(img)), .products .product .product-element-top:not(:has(img))) {
        background:
            linear-gradient(135deg, rgba(7, 91, 55, 0.08), rgba(199, 154, 50, 0.1)),
            #f6f5eb !important;
    }

    body.sai-mobile-ux-polish :is(.mobile-pages-menu a, .wd-nav-mobile a, .woodmart-nav-link, .footer-container, .footer-container a, .copyrights-wrapper) {
        letter-spacing: 0 !important;
        line-height: 1.42 !important;
    }

    body.sai-mobile-ux-polish :is(.product-grid-item .product-title, .product-grid-item .wd-entities-title, .products .product .woocommerce-loop-product__title, li.product .woocommerce-loop-product__title) {
        font-size: 12.8px !important;
        font-weight: 740 !important;
        line-height: 1.34 !important;
    }

    body.sai-mobile-ux-polish :is(.product-grid-item .price, .products .product .price, li.product .price) {
        font-size: 13px !important;
        font-weight: 820 !important;
        line-height: 1.22 !important;
    }

    body.sai-mobile-ux-polish :is(.product-grid-item .button, .products .product .button, li.product .button, .wd-add-btn a, .wd-product :is(.button, .add_to_cart_button, .product_type_variable)) {
        border-radius: 999px !important;
        font-size: 11.8px !important;
        font-weight: 820 !important;
        min-height: 36px !important;
    }
}

/* SAI_HERBS_PREMIUM_MOBILE_UX_POLISH_V2_6_1_LOADED
 * Mobile-only header cart shortcut, search-card polish, sorting control polish,
 * and typography refinement. No WooCommerce business logic is changed.
 */
.sai-mobile-header-cart-shortcut {
    display: none;
}

@media (max-width: 767px) {
    body.sai-mobile-ux-polish {
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
        letter-spacing: 0;
        text-rendering: optimizeLegibility;
        -webkit-font-smoothing: antialiased;
    }

    body.sai-mobile-ux-polish .sai-mobile-header-cart-shortcut {
        align-items: center !important;
        background: #075b37 !important;
        border: 1px solid rgba(255, 255, 255, 0.68) !important;
        border-radius: 999px !important;
        box-shadow: 0 10px 24px rgba(7, 91, 55, 0.22) !important;
        color: #fffaf0 !important;
        display: inline-flex !important;
        height: 38px !important;
        justify-content: center !important;
        line-height: 1 !important;
        min-height: 38px !important;
        min-width: 38px !important;
        opacity: 1 !important;
        overflow: visible !important;
        padding: 0 !important;
        pointer-events: auto !important;
        position: fixed !important;
        right: 14px !important;
        text-decoration: none !important;
        top: calc(12px + env(safe-area-inset-top, 0px)) !important;
        transform: none !important;
        visibility: visible !important;
        width: 38px !important;
        z-index: 100050 !important;
    }

    body.admin-bar.sai-mobile-ux-polish .sai-mobile-header-cart-shortcut {
        top: calc(58px + env(safe-area-inset-top, 0px)) !important;
    }

    body.sai-mobile-ux-polish .sai-mobile-header-cart-shortcut:focus-visible {
        outline: 2px solid #c79a32 !important;
        outline-offset: 2px !important;
    }

    body.sai-mobile-ux-polish .sai-mobile-header-cart-icon {
        display: block !important;
        height: 20px !important;
        width: 20px !important;
    }

    body.sai-mobile-ux-polish .sai-mobile-header-cart-count {
        align-items: center !important;
        background: #c79a32 !important;
        border: 1px solid rgba(255, 250, 240, 0.92) !important;
        border-radius: 999px !important;
        box-shadow: 0 4px 10px rgba(8, 63, 39, 0.18) !important;
        color: #10291c !important;
        display: inline-flex !important;
        font-size: 10px !important;
        font-weight: 900 !important;
        height: 17px !important;
        justify-content: center !important;
        line-height: 17px !important;
        min-width: 17px !important;
        padding: 0 5px !important;
        position: absolute !important;
        right: -5px !important;
        top: -5px !important;
    }

    body.sai-mobile-ux-polish :is(.site-logo, .wd-logo, .whb-logo, .mobile-nav-icon, .wd-header-mobile-nav) {
        letter-spacing: 0 !important;
    }

    body.sai-mobile-ux-polish :is(h1, h2, h3, .entry-title, .page-title, .product_title) {
        letter-spacing: 0 !important;
        line-height: 1.18 !important;
    }

    body.sai-mobile-ux-polish.sai-ux-search-page :is(.sai-ux-search-banner, .sai-herbs-psa-strip, .sai-herbs-premium-search-hero) {
        background:
            linear-gradient(135deg, rgba(7, 91, 55, 0.97), rgba(13, 77, 52, 0.96)),
            #075b37 !important;
        border: 1px solid rgba(199, 154, 50, 0.38) !important;
        border-radius: 18px !important;
        box-shadow: 0 14px 32px rgba(7, 45, 29, 0.18) !important;
        margin: 10px 12px 14px !important;
        overflow: hidden !important;
        padding: 17px 15px 15px !important;
    }

    body.sai-mobile-ux-polish.sai-ux-search-page :is(.sai-ux-search-banner__eyebrow, .sai-herbs-psa-eyebrow, .sai-herbs-psa-kicker) {
        color: rgba(255, 244, 207, 0.9) !important;
        font-size: 10px !important;
        font-weight: 850 !important;
        letter-spacing: 0.06em !important;
        line-height: 1.2 !important;
    }

    body.sai-mobile-ux-polish.sai-ux-search-page :is(.sai-ux-search-banner h1, .sai-herbs-psa-title, .sai-herbs-premium-search-title) {
        color: #fffaf0 !important;
        font-size: 22px !important;
        font-weight: 820 !important;
        letter-spacing: 0 !important;
        line-height: 1.14 !important;
        margin: 5px 0 7px !important;
    }

    body.sai-mobile-ux-polish.sai-ux-search-page :is(.sai-ux-search-banner p, .sai-herbs-psa-subtitle, .sai-herbs-premium-search-copy) {
        color: rgba(255, 250, 240, 0.86) !important;
        font-size: 13px !important;
        font-weight: 500 !important;
        line-height: 1.45 !important;
        margin: 0 0 10px !important;
    }

    body.sai-mobile-ux-polish.sai-ux-search-page :is(.sai-ux-search-banner__pill, .sai-herbs-psa-chip, .sai-herbs-offer-chip) {
        align-items: center !important;
        background: rgba(255, 250, 240, 0.12) !important;
        border: 1px solid rgba(255, 250, 240, 0.22) !important;
        border-radius: 999px !important;
        color: #fff4cf !important;
        display: inline-flex !important;
        font-size: 11px !important;
        font-weight: 780 !important;
        line-height: 1.15 !important;
        margin: 3px 4px 3px 0 !important;
        padding: 7px 10px !important;
        white-space: nowrap !important;
    }

    body.sai-mobile-ux-polish.sai-ux-search-page :is(.shop-loop-head, .woocommerce-ordering, .wd-shop-tools) {
        letter-spacing: 0 !important;
    }

    body.sai-mobile-ux-polish :is(.shop-loop-head .woocommerce-result-count, .wd-shop-tools .woocommerce-result-count) {
        color: #496458 !important;
        font-size: 12px !important;
        font-weight: 700 !important;
        line-height: 1.35 !important;
    }

    body.sai-mobile-ux-polish :is(.product-grid-item .product-title, .product-grid-item .wd-entities-title, .products .product .woocommerce-loop-product__title, li.product .woocommerce-loop-product__title) {
        color: #10291c !important;
        font-size: 13px !important;
        font-weight: 760 !important;
        letter-spacing: 0 !important;
        line-height: 1.32 !important;
    }

    body.sai-mobile-ux-polish :is(.product-grid-item .price, .products .product .price, li.product .price) {
        color: #075b37 !important;
        font-size: 13px !important;
        font-weight: 850 !important;
        letter-spacing: 0 !important;
        line-height: 1.25 !important;
    }

    body.sai-mobile-ux-polish :is(.product-grid-item .button, .products .product .button, li.product .button, .wd-add-btn a, .wd-product :is(.button, .add_to_cart_button, .product_type_variable)) {
        font-size: 12px !important;
        font-weight: 850 !important;
        letter-spacing: 0 !important;
        line-height: 1.2 !important;
    }

    body.sai-mobile-ux-polish :is(.summary .product_title, .entry-summary .product_title) {
        font-size: 20px !important;
        font-weight: 820 !important;
        line-height: 1.18 !important;
    }

    body.woocommerce-cart.sai-mobile-ux-polish :is(h1, h2, h3, .cart_totals h2),
    body.woocommerce-checkout.sai-mobile-ux-polish :is(h1, h2, h3, #order_review_heading, .woocommerce-billing-fields h3) {
        color: #10291c !important;
        font-weight: 820 !important;
        letter-spacing: 0 !important;
        line-height: 1.18 !important;
    }
}

body.sai-mobile-ux-polish {
    --sai-ux-bottom-offset: calc(74px + env(safe-area-inset-bottom, 0px));
    --sai-ux-bottom-safe: calc(var(--sai-ux-bottom-offset) + 84px);
}

@media (max-width: 768px) {
    body.sai-mobile-ux-polish.sai-ux-mobile-polish {
        background: linear-gradient(180deg, #fff, var(--sai-ux-cream) 620px, #fff 1200px);
        color: var(--sai-ux-ink);
    }
}

/* 1. Loader/logo-only fallback */
body.sai-mobile-ux-polish.sai-ux-loader-fallback.sai-ux-loader-timeout :is(.wd-preloader, .woodmart-preloader, .page-preloader, .preloader, .site-preloader, .loader-overlay, .loading-overlay, #page-preloader, #preloader) {
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 180ms ease !important;
    visibility: hidden !important;
}

body.sai-mobile-ux-polish.sai-ux-loader-fallback :is(.wd-preloader, .woodmart-preloader, .page-preloader, .preloader, .site-preloader, .loader-overlay, .loading-overlay, #page-preloader, #preloader) {
    background: rgba(255, 250, 240, 0.94) !important;
}

/* 2. Mobile header */
@media (max-width: 768px) {
    body.sai-mobile-ux-polish.sai-ux-header-polish :is(.whb-header, .whb-main-header, .site-header, header.main-header) {
        background: rgba(255, 255, 255, 0.97) !important;
        border-bottom: 1px solid rgba(8, 63, 39, 0.09);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.055);
        backdrop-filter: blur(10px);
    }

    body.sai-mobile-ux-polish.sai-ux-header-polish :is(.whb-row, .whb-column, .mobile-header, .wd-header-mobile-nav) {
        min-height: 48px !important;
    }

    body.sai-mobile-ux-polish.sai-ux-header-polish :is(.site-logo img, .wd-logo img, .whb-logo img) {
        max-height: 48px !important;
        object-fit: contain;
    }

    body.sai-mobile-ux-polish.sai-ux-header-polish :is(.wd-tools-icon, .wd-header-cart, .wd-header-wishlist, .wd-header-my-account, .mobile-nav-icon, .wd-header-mobile-nav) {
        border-radius: 999px;
    }

    body.sai-mobile-ux-polish.sai-ux-header-polish :is(.searchform, .wd-search-form, .wd-header-search-form, form.woocommerce-product-search) {
        border-radius: 999px !important;
        overflow: hidden;
    }

    body.sai-mobile-ux-polish.sai-ux-header-polish :is(.searchform input[type="search"], .searchform input[type="text"], .wd-search-form input[type="search"], .wd-search-form input[type="text"], form.woocommerce-product-search input[type="search"]) {
        background: #fff !important;
        border: 1px solid var(--sai-ux-border) !important;
        border-radius: 999px !important;
        box-shadow: 0 7px 18px rgba(8, 63, 39, 0.08) !important;
        color: var(--sai-ux-black) !important;
        font-size: 14px !important;
        min-height: 42px;
        padding-left: 16px !important;
    }
}

/* 3. Search result page */
body.sai-mobile-ux-polish.sai-ux-card-polish.sai-ux-search-page :is(.main-page-wrapper, .site-content, .content-area) {
    background: linear-gradient(180deg, rgba(243, 248, 239, 0.86), #fff 280px);
}

.sai-ux-search-banner {
    background: linear-gradient(135deg, #083f27, #101410);
    border: 1px solid rgba(201, 154, 50, 0.24);
    border-radius: 18px;
    box-shadow: var(--sai-ux-shadow);
    color: #fff;
    margin: 14px auto 18px;
    max-width: 1220px;
    padding: 18px;
}

.sai-ux-search-banner__eyebrow {
    color: #f0d690;
    display: block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sai-ux-search-banner h1 {
    color: #fff;
    font-size: clamp(20px, 5vw, 34px);
    letter-spacing: 0;
    line-height: 1.15;
    margin: 5px 0 8px;
}

.sai-ux-search-banner__pill {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-size: 12px;
    font-weight: 750;
    padding: 7px 11px;
}

body.sai-mobile-ux-polish.sai-ux-card-polish.sai-ux-search-enhanced :is(.wd-page-title, .page-title, .entry-title) {
    min-height: 0 !important;
    padding-bottom: 10px !important;
    padding-top: 10px !important;
}

body.sai-mobile-ux-polish.sai-ux-card-polish :is(.woocommerce-result-count, .woocommerce-ordering, .wd-shop-tools, .wd-shop-tools .wd-show-sidebar-btn, .wd-show-sidebar-btn) {
    border-radius: 999px;
    font-size: 12px;
}

body.sai-mobile-ux-polish.sai-ux-card-polish :is(.wd-show-sidebar-btn, .show-sidebar-btn, .filters-area-button) {
    background: #fff !important;
    border: 1px solid var(--sai-ux-border) !important;
    box-shadow: 0 6px 16px rgba(8, 63, 39, 0.08);
    color: var(--sai-ux-green) !important;
    font-weight: 800;
    padding: 8px 12px !important;
}

/* 4. Shop/search product cards */
body.sai-mobile-ux-polish.sai-ux-card-polish :is(.product-grid-item, .products .product, li.product) {
    background: #fff;
    border: 1px solid rgba(8, 63, 39, 0.11);
    border-radius: 15px;
    box-shadow: var(--sai-ux-shadow-soft);
    overflow: hidden;
}

body.sai-mobile-ux-polish.sai-ux-card-polish :is(.product-grid-item:hover, .products .product:hover, li.product:hover) {
    border-color: rgba(201, 154, 50, 0.35);
    box-shadow: var(--sai-ux-shadow);
}

body.sai-mobile-ux-polish.sai-ux-card-polish :is(.product-grid-item .product-element-top, .product-grid-item .product-image-link, .products .product .product-image-link, li.product .product-thumbnail) {
    aspect-ratio: 1 / 1;
    background: linear-gradient(180deg, #fff 0%, var(--sai-ux-cream) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

body.sai-mobile-ux-polish.sai-ux-card-polish :is(.product-grid-item img, .products .product img, li.product img) {
    max-height: 92%;
    object-fit: contain;
    transform: scale(1.04);
}

body.sai-mobile-ux-polish.sai-ux-card-polish :is(.product-grid-item .wd-entities-title, .product-grid-item .product-title, .products .product .woocommerce-loop-product__title, li.product .woocommerce-loop-product__title) {
    color: var(--sai-ux-black);
    display: -webkit-box;
    font-weight: 750;
    letter-spacing: 0;
    line-height: 1.32;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

body.sai-mobile-ux-polish.sai-ux-card-polish :is(.product-grid-item .product-cat, .product-grid-item .wd-product-cats, .product-grid-item .wd-product-brands-links) {
    color: rgba(38, 53, 45, 0.58);
    font-size: 11px;
    font-weight: 700;
}

body.sai-mobile-ux-polish.sai-ux-card-polish :is(.price, .woocommerce-Price-amount) {
    color: var(--sai-ux-green);
    font-weight: 850;
}

body.sai-mobile-ux-polish.sai-ux-card-polish :is(.button, .add_to_cart_button, .product_type_variable, .product_type_simple) {
    background: var(--sai-ux-green) !important;
    border-color: var(--sai-ux-green) !important;
    border-radius: 999px !important;
    color: #fff !important;
    font-weight: 850 !important;
    letter-spacing: 0;
}

@media (max-width: 768px) {
    body.sai-mobile-ux-polish.sai-ux-card-polish :is(.products, .wd-products) {
        gap: 12px !important;
    }

    body.sai-mobile-ux-polish.sai-ux-card-polish :is(.product-grid-item, .products .product, li.product) {
        border-radius: 13px;
    }

    body.sai-mobile-ux-polish.sai-ux-card-polish :is(.product-grid-item .product-wrapper, .products .product .product-wrapper, li.product) {
        padding-bottom: 10px;
    }

    body.sai-mobile-ux-polish.sai-ux-card-polish :is(.product-grid-item .wd-entities-title, .product-grid-item .product-title, .products .product .woocommerce-loop-product__title, li.product .woocommerce-loop-product__title) {
        font-size: 13px;
        min-height: 35px;
        -webkit-line-clamp: 2;
    }

    body.sai-mobile-ux-polish.sai-ux-card-polish :is(.price, .woocommerce-Price-amount) {
        font-size: 14px;
    }

    body.sai-mobile-ux-polish.sai-ux-card-polish :is(.add_to_cart_button, .product_type_variable, .button.product_type_simple) {
        font-size: 12px !important;
        min-height: 34px;
        padding: 8px 12px !important;
    }
}

/* 5. Single product page */
body.sai-mobile-ux-polish.sai-ux-product-polish.sai-ux-single-product :is(.single-product-page, .product-image-summary, div.product) {
    gap: clamp(12px, 2vw, 26px) !important;
}

body.sai-mobile-ux-polish.sai-ux-product-polish.sai-ux-single-product :is(.woocommerce-product-gallery, .product-images) {
    background: linear-gradient(180deg, #fff, var(--sai-ux-cream));
    border: 1px solid var(--sai-ux-border);
    border-radius: 16px;
    box-shadow: var(--sai-ux-shadow-soft);
    overflow: hidden;
}

body.sai-mobile-ux-polish.sai-ux-product-polish.sai-ux-single-product :is(.summary, .summary-inner, .entry-summary) {
    background: #fff;
    border: 1px solid var(--sai-ux-border);
    border-radius: 16px;
    box-shadow: var(--sai-ux-shadow-soft);
    padding: clamp(14px, 2.4vw, 24px);
}

body.sai-mobile-ux-polish.sai-ux-product-polish.sai-ux-single-product :is(.product_title, .entry-title) {
    color: var(--sai-ux-black);
    font-weight: 820;
    letter-spacing: 0;
    line-height: 1.24;
}

body.sai-mobile-ux-polish.sai-ux-product-polish.sai-ux-single-product :is(.summary .price, .entry-summary .price) {
    color: var(--sai-ux-green);
    font-size: clamp(20px, 4vw, 28px);
    font-weight: 900;
}

body.sai-mobile-ux-polish.sai-ux-product-polish.sai-ux-single-product :is(.variations select, .quantity input, .qty) {
    border-color: var(--sai-ux-border) !important;
    border-radius: 10px !important;
}

body.sai-mobile-ux-polish.sai-ux-product-polish.sai-ux-single-product :is(.single_add_to_cart_button, .buy-now-btn, .wd-buy-now-btn, .wd-buy-now-button, .single_buy_now_button) {
    border-radius: 999px !important;
    box-shadow: 0 8px 18px rgba(8, 63, 39, 0.16);
    font-weight: 900 !important;
}

.sai-ux-product-trust-strip {
    background: linear-gradient(135deg, #fff, var(--sai-ux-soft));
    border: 1px solid var(--sai-ux-border);
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(20, 47, 30, 0.07);
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 12px 0;
    padding: 12px;
}

.sai-ux-product-trust-strip span {
    color: var(--sai-ux-green);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
    padding-left: 16px;
    position: relative;
}

.sai-ux-product-trust-strip span::before {
    background: var(--sai-ux-gold);
    border-radius: 999px;
    content: "";
    height: 7px;
    left: 0;
    position: absolute;
    top: 6px;
    width: 7px;
}

@media (max-width: 768px) {
    body.sai-mobile-ux-polish.sai-ux-product-polish.sai-ux-single-product :is(.main-page-wrapper, .site-content, .content-area) {
        background: linear-gradient(180deg, rgba(243, 248, 239, 0.88), #fff 260px);
    }

    body.sai-mobile-ux-polish.sai-ux-product-polish.sai-ux-single-product :is(.single-breadcrumbs-wrapper, .wd-single-breadcrumbs, .woocommerce-breadcrumb) {
        margin-bottom: 7px !important;
    }

    body.sai-mobile-ux-polish.sai-ux-product-polish.sai-ux-single-product :is(.woocommerce-product-gallery, .product-images) {
        margin-bottom: 10px !important;
    }

    body.sai-mobile-ux-polish.sai-ux-product-polish.sai-ux-single-product :is(.summary, .summary-inner, .entry-summary) {
        margin-top: 0 !important;
        padding: 14px !important;
    }

    body.sai-mobile-ux-polish.sai-ux-product-polish.sai-ux-single-product :is(.product_title, .entry-title) {
        display: -webkit-box;
        font-size: 19px;
        line-height: 1.26;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 4;
    }

    body.sai-mobile-ux-polish.sai-ux-product-polish.sai-ux-single-product :is(.summary .price, .entry-summary .price) {
        margin-bottom: 8px;
    }

    body.sai-mobile-ux-polish.sai-ux-product-polish.sai-ux-single-product :is(form.cart, .variations_form, .woocommerce-variation-add-to-cart) {
        margin-top: 8px !important;
    }

    .sai-ux-product-trust-strip {
        grid-template-columns: 1fr;
    }
}

/* 6. Product description accordion */
.sai-ux-description-toggle {
    background: #fff;
    border: 1px solid var(--sai-ux-border);
    border-radius: 999px;
    color: var(--sai-ux-green);
    cursor: pointer;
    font-weight: 850;
    margin: 12px 0;
    padding: 10px 14px;
    width: 100%;
}

@media (max-width: 768px) {
    body.sai-mobile-ux-polish.sai-ux-product-polish .sai-ux-description-collapsed {
        max-height: 220px;
        overflow: hidden;
        position: relative;
    }

    body.sai-mobile-ux-polish.sai-ux-product-polish .sai-ux-description-collapsed::after {
        background: linear-gradient(180deg, rgba(255,255,255,0), #fff);
        bottom: 0;
        content: "";
        height: 70px;
        left: 0;
        pointer-events: none;
        position: absolute;
        right: 0;
    }

    body.sai-mobile-ux-polish.sai-ux-product-polish .sai-ux-description-expanded {
        max-height: none;
    }

    body.sai-mobile-ux-polish.sai-ux-product-polish .sai-ux-description-expanded::after {
        display: none;
    }
}

/* 7. Homepage Featured Herbal Collections polish */
body.sai-mobile-ux-polish.sai-ux-mobile-polish.sai-ux-home-page .sai-v6-22-featured-collections {
    background: linear-gradient(180deg, #fffaf0, #ffffff) !important;
}

body.sai-mobile-ux-polish.sai-ux-mobile-polish.sai-ux-home-page .sai-v6-22-feature-card {
    border-color: rgba(8, 63, 39, 0.14) !important;
    border-radius: 18px !important;
    box-shadow: 0 14px 32px rgba(20, 47, 30, 0.11) !important;
    overflow: hidden;
}

body.sai-mobile-ux-polish.sai-ux-mobile-polish.sai-ux-home-page .sai-v6-22-feature-card__media {
    background: linear-gradient(180deg, #fff, #fffaf0) !important;
    border-radius: 14px !important;
    overflow: hidden;
    position: relative;
}

body.sai-mobile-ux-polish.sai-ux-mobile-polish.sai-ux-home-page .sai-v6-22-feature-card__media::after {
    background: linear-gradient(180deg, rgba(8, 63, 39, 0), rgba(8, 63, 39, 0.10));
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
}

body.sai-mobile-ux-polish.sai-ux-mobile-polish.sai-ux-home-page .sai-v6-22-feature-card__title {
    color: var(--sai-ux-green) !important;
}

/* 8. Footer polish */
@media (max-width: 768px) {
    body.sai-mobile-ux-polish.sai-ux-footer-polish :is(footer, .footer-container, .wd-footer, .site-footer) {
        background: linear-gradient(180deg, #fff, var(--sai-ux-cream)) !important;
        padding-bottom: calc(var(--sai-ux-bottom-offset) + 20px);
    }

    body.sai-mobile-ux-polish.sai-ux-footer-polish :is(.footer-widget, footer .widget, .wd-footer .widget) {
        background: rgba(255, 255, 255, 0.74);
        border: 1px solid rgba(8, 63, 39, 0.09);
        border-radius: 14px;
        margin-bottom: 12px;
        padding: 14px;
    }

    body.sai-mobile-ux-polish.sai-ux-footer-polish :is(footer a, .footer-container a, .wd-footer a, .site-footer a) {
        color: var(--sai-ux-green);
        font-weight: 720;
    }

    body.sai-mobile-ux-polish.sai-ux-footer-polish :is(footer p, footer li, .footer-container p, .footer-container li, .wd-footer p, .wd-footer li) {
        line-height: 1.55;
    }
}

/* 9. YOGIMATE accents */
body.sai-mobile-ux-polish.sai-ux-yogimate-accent .sai-ux-yogimate-card {
    border-color: rgba(201, 154, 50, 0.32) !important;
    box-shadow: 0 12px 28px rgba(10, 10, 8, 0.12) !important;
}

body.sai-mobile-ux-polish.sai-ux-yogimate-accent .sai-ux-yogimate-card :is(.wd-entities-title, .product-title, .woocommerce-loop-product__title) {
    color: #17140d !important;
}

body.sai-mobile-ux-polish.sai-ux-yogimate-accent .sai-ux-yogimate-card :is(.button, .add_to_cart_button, .product_type_variable) {
    background: #15120d !important;
    border-color: #15120d !important;
    color: #f2d58a !important;
}

body.sai-mobile-ux-polish.sai-ux-yogimate-accent.sai-ux-single-product.sai-ux-yogimate-page :is(.summary, .summary-inner, .entry-summary) {
    border-color: rgba(201, 154, 50, 0.32);
}

/* Sticky mobile CTA */
.sai-ux-sticky-product-cta {
    align-items: center;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(8, 63, 39, 0.12);
    border-radius: 18px 18px 0 0;
    bottom: var(--sai-ux-bottom-offset);
    box-shadow: 0 -12px 30px rgba(0, 0, 0, 0.13);
    display: none;
    gap: 8px;
    left: 8px;
    padding: 10px 10px calc(10px + env(safe-area-inset-bottom, 0px));
    position: fixed;
    right: 8px;
    z-index: 9990;
}

.sai-ux-sticky-product-cta button,
.sai-ux-sticky-product-cta a {
    align-items: center;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    flex: 1 1 0;
    font-size: 13px;
    font-weight: 900;
    justify-content: center;
    min-height: 44px;
    padding: 11px 12px;
    text-decoration: none;
}

.sai-ux-sticky-product-cta .sai-ux-sticky-add {
    background: var(--sai-ux-green);
    color: #fff;
}

.sai-ux-sticky-product-cta .sai-ux-sticky-secondary {
    background: var(--sai-ux-black);
    color: #f5d98f;
}

.sai-ux-sticky-product-cta button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

@media (max-width: 768px) {
    body.sai-mobile-ux-polish.sai-ux-sticky-cta.sai-ux-single-product:not(.sai-ux-sensitive-woo-page) .sai-ux-sticky-product-cta {
        display: flex;
    }

    body.sai-mobile-ux-polish.sai-ux-sticky-cta.sai-ux-single-product :is(.main-page-wrapper, .site-content, .content-area, footer, .footer-container) {
        padding-bottom: var(--sai-ux-bottom-safe);
    }
}

/* V2.2 focused fixes: less loader presence, one search header, tighter mobile cards. */
body.sai-mobile-ux-polish.sai-ux-loader-fallback.sai-ux-loader-timeout :is([class*="preloader"], [class*="loader-overlay"], [id*="preloader"], [id*="loader"]) {
    height: 0 !important;
    min-height: 0 !important;
    opacity: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
    visibility: hidden !important;
}

body.sai-mobile-ux-polish.sai-ux-loader-fallback :is(.wd-preloader img, .woodmart-preloader img, .page-preloader img, .preloader img, #preloader img, #page-preloader img) {
    max-height: 42px !important;
    opacity: 0.55 !important;
}

@media (max-width: 768px) {
    body.sai-mobile-ux-polish.sai-ux-header-polish :is(.site-logo img, .wd-logo img, .whb-logo img) {
        max-height: 40px !important;
    }

    body.sai-mobile-ux-polish.sai-ux-header-polish :is(.whb-row, .mobile-header, .whb-main-header) {
        min-height: 46px !important;
    }
}

body.sai-mobile-ux-polish.sai-ux-card-polish.sai-ux-search-page.sai-ux-search-enhanced .sai-ux-search-banner {
    margin-bottom: 10px;
}

body.sai-mobile-ux-polish.sai-ux-card-polish.sai-ux-search-enhanced .sai-ux-old-search-title {
    display: none !important;
}

@media (max-width: 768px) {
    .sai-ux-search-banner {
        border-radius: 14px;
        margin: 8px 10px 10px;
        padding: 12px 13px;
    }

    .sai-ux-search-banner__eyebrow {
        font-size: 10px;
    }

    .sai-ux-search-banner h1 {
        font-size: 18px;
        line-height: 1.18;
        margin: 3px 0 7px;
    }

    .sai-ux-search-banner h1 span {
        color: #f4d98d;
    }

    .sai-ux-search-banner__pill {
        font-size: 11px;
        padding: 6px 9px;
    }

    body.sai-mobile-ux-polish.sai-ux-card-polish.sai-ux-search-enhanced :is(.wd-shop-tools, .woocommerce-products-header, .term-description) {
        margin-bottom: 8px !important;
        margin-top: 8px !important;
    }
}

body.sai-mobile-ux-polish.sai-ux-card-polish :is(.product-grid-item, .products .product, li.product) {
    background: linear-gradient(180deg, #fff, #fffefb);
}

body.sai-mobile-ux-polish.sai-ux-card-polish :is(.product-grid-item .product-element-top, .product-grid-item .product-image-link, .products .product .product-image-link, li.product .product-thumbnail) {
    aspect-ratio: 4 / 3.45;
    padding: 6px;
}

body.sai-mobile-ux-polish.sai-ux-card-polish :is(.product-grid-item img, .products .product img, li.product img) {
    max-height: 98% !important;
    max-width: 98% !important;
    transform: scale(1.07);
}

body.sai-mobile-ux-polish.sai-ux-card-polish :is(.product-grid-item .product-information, .product-grid-item .product-wrapper, li.product .product-wrapper, .products .product .product-wrapper) {
    padding-left: 10px !important;
    padding-right: 10px !important;
}

body.sai-mobile-ux-polish.sai-ux-card-polish :is(.product-grid-item .wd-entities-title, .product-grid-item .product-title, .products .product .woocommerce-loop-product__title, li.product .woocommerce-loop-product__title) {
    -webkit-line-clamp: 3;
}

body.sai-mobile-ux-polish.sai-ux-card-polish :is(.product-grid-item .button, .products .product .button, li.product .button) {
    box-shadow: 0 8px 17px rgba(8, 63, 39, 0.15) !important;
}

@media (max-width: 768px) {
    body.sai-mobile-ux-polish.sai-ux-card-polish :is(.products, .wd-products) {
        gap: 10px !important;
        row-gap: 13px !important;
    }

    body.sai-mobile-ux-polish.sai-ux-card-polish :is(.product-grid-item, .products .product, li.product) {
        border-radius: 14px;
        box-shadow: 0 8px 18px rgba(20, 47, 30, 0.09);
    }

    body.sai-mobile-ux-polish.sai-ux-card-polish :is(.product-grid-item .product-element-top, .product-grid-item .product-image-link, .products .product .product-image-link, li.product .product-thumbnail) {
        aspect-ratio: 4 / 3.2;
        padding: 4px;
    }

    body.sai-mobile-ux-polish.sai-ux-card-polish :is(.product-grid-item .wd-entities-title, .product-grid-item .product-title, .products .product .woocommerce-loop-product__title, li.product .woocommerce-loop-product__title) {
        font-size: 12.5px;
        line-height: 1.22;
        min-height: 2.44em;
        -webkit-line-clamp: 2;
    }

    body.sai-mobile-ux-polish.sai-ux-card-polish :is(.product-grid-item .price, .products .product .price, li.product .price) {
        margin-bottom: 7px;
        margin-top: 5px;
    }
}

/*
 * Phase 2 compact archive polish.
 * Product links and Select Options URLs are intentionally left untouched.
 */
body.sai-mobile-ux-polish.sai-ux-card-polish.sai-ux-search-enhanced .sai-ux-source-result-count {
    display: none !important;
}

@media (max-width: 768px) {
    body.sai-mobile-ux-polish.sai-ux-card-polish.sai-ux-search-page.sai-ux-search-enhanced .sai-ux-source-result-count {
        display: none !important;
        height: 0 !important;
        margin: 0 !important;
        overflow: hidden !important;
        padding: 0 !important;
    }

    body.sai-mobile-ux-polish.sai-ux-card-polish.sai-ux-search-page :is(.shop-loop-head, .wd-shop-tools, .woocommerce-ordering, .wd-products-per-page, .wd-shop-view) {
        gap: 6px !important;
        margin-bottom: 6px !important;
        margin-top: 4px !important;
        min-height: 0 !important;
        padding-bottom: 6px !important;
        padding-top: 6px !important;
    }

    body.sai-mobile-ux-polish.sai-ux-card-polish.sai-ux-search-page :is(.wd-show-sidebar-btn, .wd-show-sidebar-btn a, .show-sidebar-btn, .filters-area-button, .filters-button) {
        border-radius: 999px !important;
        font-size: 11.5px !important;
        line-height: 1.15 !important;
        min-height: 0 !important;
        padding: 6px 10px !important;
    }

    body.sai-mobile-ux-polish.sai-ux-card-polish.sai-ux-search-page :is(.woocommerce-ordering select, .orderby) {
        font-size: 11.5px !important;
        min-height: 30px !important;
        padding-bottom: 5px !important;
        padding-top: 5px !important;
    }
}

/* Phase 2.2: collapse empty archive/search controls without touching product links. */
@media (max-width: 768px) {
    body.sai-mobile-ux-polish.sai-ux-card-polish.sai-ux-search-page :is(.shop-loop-head, .wd-shop-tools) {
        align-items: center !important;
        gap: 5px !important;
        margin-bottom: 5px !important;
        margin-top: 3px !important;
        padding: 4px 7px !important;
    }

    body.sai-mobile-ux-polish.sai-ux-card-polish.sai-ux-search-page :is(.shop-loop-head, .wd-shop-tools) > :is(:empty, [hidden], [aria-hidden="true"], .sai-ux-source-result-count) {
        display: none !important;
        height: 0 !important;
        margin: 0 !important;
        max-height: 0 !important;
        min-height: 0 !important;
        overflow: hidden !important;
        padding: 0 !important;
        width: 0 !important;
    }

    body.sai-mobile-ux-polish.sai-ux-card-polish.sai-ux-search-page :is(.woocommerce-result-count:empty, .wd-shop-result-count:empty, .wd-products-per-page:empty, .wd-shop-view:empty, .wd-show-sidebar-btn:empty, .show-sidebar-btn:empty) {
        display: none !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    body.sai-mobile-ux-polish.sai-ux-card-polish.sai-ux-search-page :is(.wd-show-sidebar-btn, .wd-show-sidebar-btn a, .show-sidebar-btn, .filters-area-button, .filters-button) {
        box-shadow: 0 4px 10px rgba(8, 63, 39, 0.07) !important;
        font-size: 11px !important;
        min-height: 0 !important;
        padding: 5px 8px !important;
    }
}

@media (max-width: 768px) {
    body.sai-mobile-ux-polish.sai-ux-product-polish.sai-ux-single-product :is(.single-breadcrumbs-wrapper, .wd-single-breadcrumbs, .woocommerce-breadcrumb) {
        font-size: 11px !important;
        margin: 4px 0 6px !important;
        max-width: 100%;
        overflow-x: auto;
        padding-bottom: 2px;
        scrollbar-width: none;
        white-space: nowrap;
    }

    body.sai-mobile-ux-polish.sai-ux-product-polish.sai-ux-single-product :is(.single-breadcrumbs-wrapper, .wd-single-breadcrumbs, .woocommerce-breadcrumb)::-webkit-scrollbar {
        display: none;
    }

    body.sai-mobile-ux-polish.sai-ux-product-polish.sai-ux-single-product :is(.product-image-summary, .single-product-page, div.product) {
        row-gap: 8px !important;
    }

    body.sai-mobile-ux-polish.sai-ux-product-polish.sai-ux-single-product :is(.woocommerce-product-gallery, .product-images) {
        border-radius: 14px;
        margin-bottom: 8px !important;
    }

    body.sai-mobile-ux-polish.sai-ux-product-polish.sai-ux-single-product :is(.summary, .summary-inner, .entry-summary) {
        border-radius: 14px;
        padding: 12px !important;
    }

    body.sai-mobile-ux-polish.sai-ux-product-polish.sai-ux-single-product :is(.product_title, .entry-title) {
        font-size: 17.5px;
        line-height: 1.23;
        margin-bottom: 7px !important;
        -webkit-line-clamp: 3;
    }

    body.sai-mobile-ux-polish.sai-ux-product-polish.sai-ux-single-product :is(.summary .price, .entry-summary .price) {
        font-size: 21px;
        line-height: 1.12;
        margin-bottom: 7px !important;
    }

    body.sai-mobile-ux-polish.sai-ux-product-polish.sai-ux-single-product :is(.variations, .variations tr, .variations td, .variations th) {
        margin-bottom: 6px !important;
        padding-bottom: 4px !important;
        padding-top: 4px !important;
    }

    body.sai-mobile-ux-polish.sai-ux-product-polish.sai-ux-single-product :is(form.cart, .variations_form, .woocommerce-variation-add-to-cart) {
        gap: 7px !important;
        margin-top: 6px !important;
    }
}

body.sai-mobile-ux-polish.sai-ux-mobile-polish.sai-ux-home-page :is(.sai-v6-22-feature-card, [class*="sai-v6-"][class*="feature-card"]) {
    background: linear-gradient(180deg, #fff, #fffaf0) !important;
    position: relative;
}

body.sai-mobile-ux-polish.sai-ux-mobile-polish.sai-ux-home-page :is(.sai-v6-22-feature-card, [class*="sai-v6-"][class*="feature-card"])::before {
    background: linear-gradient(90deg, var(--sai-ux-gold), rgba(201, 154, 50, 0));
    content: "";
    height: 3px;
    left: 16px;
    position: absolute;
    right: 16px;
    top: 0;
}

body.sai-mobile-ux-polish.sai-ux-mobile-polish.sai-ux-home-page :is(.sai-v6-22-feature-card__media, [class*="feature-card"] [class*="media"]) img {
    border-radius: 13px;
}

@media (max-width: 768px) {
    body.sai-mobile-ux-polish.sai-ux-mobile-polish.sai-ux-home-page :is(.sai-v6-22-feature-card, [class*="sai-v6-"][class*="feature-card"]) {
        box-shadow: 0 10px 24px rgba(20, 47, 30, 0.12) !important;
    }
}

@media (max-width: 768px) {
    body.sai-mobile-ux-polish.sai-ux-footer-polish :is(footer, .footer-container, .wd-footer, .site-footer) {
        border-top: 1px solid rgba(8, 63, 39, 0.10);
    }

    body.sai-mobile-ux-polish.sai-ux-footer-polish :is(.footer-widget, footer .widget, .wd-footer .widget) {
        background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,250,240,0.92));
        box-shadow: 0 10px 25px rgba(20, 47, 30, 0.08);
    }

    body.sai-mobile-ux-polish.sai-ux-footer-polish :is(footer .widget-title, footer h2, footer h3, .wd-footer .widget-title) {
        border-bottom: 1px solid rgba(201, 154, 50, 0.28);
        color: var(--sai-ux-black) !important;
        font-size: 14px !important;
        font-weight: 900 !important;
        margin-bottom: 10px;
        padding-bottom: 8px;
    }

    body.sai-mobile-ux-polish.sai-ux-footer-polish :is(footer ul, .wd-footer ul) {
        display: grid;
        gap: 7px;
    }

    body.sai-mobile-ux-polish.sai-ux-footer-polish :is(footer li, .wd-footer li) {
        border-bottom: 1px solid rgba(8, 63, 39, 0.06);
        padding-bottom: 6px;
    }
}

body.sai-mobile-ux-polish.sai-ux-yogimate-accent .sai-ux-yogimate-card :is(.button, .add_to_cart_button, .product_type_variable, .product_type_simple) {
    background: #12110e !important;
    border-color: #12110e !important;
    box-shadow: 0 8px 18px rgba(18, 17, 14, 0.16) !important;
    color: #f2d58a !important;
}

body.sai-mobile-ux-polish.sai-ux-yogimate-accent .sai-ux-yogimate-card :is(.price, .woocommerce-Price-amount) {
    color: #15120d !important;
}

/* V2.2 emergency loader removal and final mobile refinements. */
body.sai-mobile-ux-polish.sai-ux-force-disable-theme-loader {
    opacity: 1 !important;
    visibility: visible !important;
}

body.sai-mobile-ux-polish.sai-ux-force-disable-theme-loader :is(.wd-preloader, .woodmart-preloader, .woodmart-loader, .page-loader, .preloader, .site-preloader, .page-preloader, .wd-page-loader, .wd-preloader-wrapper, .loader-overlay, .loading-overlay, #page-preloader, #preloader, [class*="preloader"], [class*="loader-overlay"], [class*="page-loader"]) {
    display: none !important;
    height: 0 !important;
    inset: auto !important;
    min-height: 0 !important;
    opacity: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
    transform: none !important;
    visibility: hidden !important;
    width: 0 !important;
    z-index: -1 !important;
}

body.sai-mobile-ux-polish.sai-ux-theme-loader-disabled :is(.wd-preloader, .woodmart-preloader, .woodmart-loader, .page-loader, .preloader, .site-preloader, .page-preloader, .wd-page-loader, .wd-preloader-wrapper, .loader-overlay, .loading-overlay, #page-preloader, #preloader, [class*="preloader"], [class*="loader-overlay"], [class*="page-loader"]) {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

@media (max-width: 768px) {
    body.sai-mobile-ux-polish.sai-ux-card-polish.sai-ux-search-page :is(.main-page-wrapper, .site-content, .content-area) {
        background: linear-gradient(180deg, rgba(243, 248, 239, 0.64), #fff 210px);
    }

    body.sai-mobile-ux-polish.sai-ux-card-polish :is(.product-grid-item, .products .product, li.product) {
        border-color: rgba(8, 63, 39, 0.12);
        box-shadow: 0 9px 21px rgba(20, 47, 30, 0.10);
    }

    body.sai-mobile-ux-polish.sai-ux-card-polish :is(.product-grid-item .product-element-top, .product-grid-item .product-image-link, .products .product .product-image-link, li.product .product-thumbnail) {
        aspect-ratio: 1 / 0.74;
        background: radial-gradient(circle at 50% 42%, #fff 0, #fff 46%, #fffaf0 100%);
    }

    body.sai-mobile-ux-polish.sai-ux-card-polish :is(.product-grid-item img, .products .product img, li.product img) {
        max-height: 100% !important;
        transform: scale(1.09);
    }

    body.sai-mobile-ux-polish.sai-ux-card-polish :is(.product-grid-item .button, .products .product .button, li.product .button) {
        min-height: 33px;
        width: calc(100% - 10px);
    }
}

@media (max-width: 768px) {
    body.sai-mobile-ux-polish.sai-ux-product-polish.sai-ux-single-product :is(.single-product-page, .product-image-summary, div.product) {
        gap: 7px !important;
    }

    body.sai-mobile-ux-polish.sai-ux-product-polish.sai-ux-single-product :is(.woocommerce-product-gallery, .product-images) {
        box-shadow: 0 10px 24px rgba(20, 47, 30, 0.10);
    }

    body.sai-mobile-ux-polish.sai-ux-product-polish.sai-ux-single-product :is(.summary, .summary-inner, .entry-summary) {
        box-shadow: 0 11px 26px rgba(20, 47, 30, 0.11);
    }

    body.sai-mobile-ux-polish.sai-ux-product-polish.sai-ux-single-product :is(.single_add_to_cart_button, .buy-now-btn, .wd-buy-now-btn, .wd-buy-now-button, .single_buy_now_button) {
        min-height: 42px !important;
    }

    .sai-ux-product-trust-strip {
        margin-bottom: 8px;
        margin-top: 9px;
        padding: 10px;
    }

    .sai-ux-sticky-product-cta {
        border-radius: 16px;
        left: 10px;
        right: 10px;
    }
}

@media (max-width: 768px) {
    body.sai-mobile-ux-polish.sai-ux-footer-polish :is(.footer-widget, footer .widget, .wd-footer .widget) {
        border-color: rgba(201, 154, 50, 0.18);
        border-radius: 16px;
    }

    body.sai-mobile-ux-polish.sai-ux-footer-polish :is(footer a, .footer-container a, .wd-footer a, .site-footer a) {
        text-decoration: none !important;
    }
}

/* V2.2: stronger loader removal, mobile strip cleanup, richer cards/footer. */
body.sai-mobile-ux-polish.sai-ux-force-disable-theme-loader :is(.woodmart-loader-overlay, .page-loader-wrapper, .preloader-wrapper, .site-loader, .loading-wrapper, .loading-mask, .wd-loader-overlay, #loader, [class*="loading-overlay"], [class*="loading-mask"], [class*="loader-wrapper"]) {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    opacity: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
    visibility: hidden !important;
    width: 0 !important;
    z-index: -1 !important;
}

body.sai-mobile-ux-polish.sai-ux-force-disable-theme-loader :is(.wd-preloader, .woodmart-preloader, .woodmart-loader, .page-loader, .preloader, .site-preloader, .page-preloader, .wd-page-loader, .wd-preloader-wrapper) img {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

@media (max-width: 768px) {
    body.sai-mobile-ux-polish.sai-ux-hide-broken-announcement-bar :is(.sai-ux-broken-mobile-strip, .top-bar:empty, .topbar:empty, .wd-top-bar:empty, .whb-top-bar:empty, .whb-top-row:empty, .header-top:empty, .woodmart-top-bar:empty, .free-shipping-bar:empty, .announcement-bar:empty, .promo-bar:empty) {
        display: none !important;
        height: 0 !important;
        min-height: 0 !important;
        opacity: 0 !important;
        overflow: hidden !important;
        padding: 0 !important;
        visibility: hidden !important;
    }

    body.sai-mobile-ux-polish.sai-ux-hide-broken-announcement-bar :is(.whb-main-header, .site-header, header.main-header, .wd-header-main, .whb-general-header, .mobile-header) {
        display: revert !important;
        height: auto !important;
        max-height: none !important;
        opacity: 1 !important;
        overflow: visible !important;
        pointer-events: auto !important;
        visibility: visible !important;
    }
}

@media (max-width: 768px) {
    body.sai-mobile-ux-polish.sai-ux-card-polish :is(.product-grid-item, .products .product, li.product) {
        background:
            linear-gradient(#fff, #fff) padding-box,
            linear-gradient(135deg, rgba(8, 63, 39, 0.22), rgba(201, 154, 50, 0.18)) border-box;
        border: 1px solid transparent;
        border-radius: 15px;
    }

    body.sai-mobile-ux-polish.sai-ux-card-polish :is(.product-grid-item .product-element-top, .product-grid-item .product-image-link, .products .product .product-image-link, li.product .product-thumbnail) {
        aspect-ratio: 1 / 0.70;
        border-radius: 12px 12px 6px 6px;
        margin: 5px;
        overflow: hidden;
        padding: 2px;
    }

    body.sai-mobile-ux-polish.sai-ux-card-polish :is(.product-grid-item img, .products .product img, li.product img) {
        transform: scale(1.12);
    }

    body.sai-mobile-ux-polish.sai-ux-card-polish :is(.product-grid-item .wd-entities-title, .product-grid-item .product-title, .products .product .woocommerce-loop-product__title, li.product .woocommerce-loop-product__title) {
        min-height: 34px;
        -webkit-line-clamp: 2;
    }

    body.sai-mobile-ux-polish.sai-ux-card-polish :is(.wd-product-sku, .wd-product-brands-links, .product-variations, .wd-product-stock, .wd-swatches-grid, .wd-variation-swatches, .variations_form .variations, .wd-product-sizes) :is(a, span, div) {
        border-radius: 999px;
    }

    body.sai-mobile-ux-polish.sai-ux-card-polish :is(.wd-product-sizes, .wd-swatches-grid, .wd-variation-swatches) :is(a, span, div:not(:empty)) {
        background: rgba(8, 63, 39, 0.06);
        border: 1px solid rgba(8, 63, 39, 0.10);
        color: var(--sai-ux-green);
        font-size: 10px;
        font-weight: 800;
        line-height: 1;
        padding: 4px 7px;
    }

    body.sai-mobile-ux-polish.sai-ux-card-polish :is(.woocommerce-pagination, .wd-loop-footer, .pagination, nav.woocommerce-pagination) {
        margin: 18px auto 10px !important;
        text-align: center;
    }

    body.sai-mobile-ux-polish.sai-ux-card-polish :is(.woocommerce-pagination a, .woocommerce-pagination span, .page-numbers) {
        border-radius: 999px !important;
        min-height: 34px;
        min-width: 34px;
    }

    body.sai-mobile-ux-polish.sai-ux-card-polish :is(.scrollToTop, .wd-scroll-top, .back-to-top) {
        bottom: calc(var(--sai-ux-bottom-offset) + 72px) !important;
        right: 12px !important;
    }
}

@media (max-width: 768px) {
    body.sai-mobile-ux-polish.sai-ux-product-polish.sai-ux-single-product :is(.single-breadcrumbs-wrapper, .wd-single-breadcrumbs, .woocommerce-breadcrumb) {
        background: rgba(255, 255, 255, 0.80);
        border: 1px solid rgba(8, 63, 39, 0.08);
        border-radius: 999px;
        padding: 5px 9px !important;
    }

    body.sai-mobile-ux-polish.sai-ux-product-polish.sai-ux-single-product :is(.summary, .summary-inner, .entry-summary) {
        background:
            linear-gradient(#fff, #fff) padding-box,
            linear-gradient(135deg, rgba(8, 63, 39, 0.18), rgba(201, 154, 50, 0.22)) border-box;
        border: 1px solid transparent;
    }

    body.sai-mobile-ux-polish.sai-ux-product-polish.sai-ux-single-product :is(.single_add_to_cart_button, .buy-now-btn, .wd-buy-now-btn, .wd-buy-now-button, .single_buy_now_button) {
        letter-spacing: 0 !important;
        text-transform: none !important;
    }

    .sai-ux-product-trust-strip {
        background: linear-gradient(135deg, #fffdf7, #f4f9ef);
        border-color: rgba(201, 154, 50, 0.20);
        box-shadow: 0 9px 20px rgba(20, 47, 30, 0.08);
    }

    .sai-ux-sticky-product-cta {
        background:
            linear-gradient(#fff, #fff) padding-box,
            linear-gradient(135deg, rgba(8, 63, 39, 0.28), rgba(201, 154, 50, 0.32)) border-box;
        border: 1px solid transparent;
        box-shadow: 0 -14px 34px rgba(0, 0, 0, 0.16);
    }
}

@media (max-width: 768px) {
    body.sai-mobile-ux-polish.sai-ux-footer-polish :is(.footer-widget, footer .widget, .wd-footer .widget) {
        background:
            linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,250,240,0.96)) padding-box,
            linear-gradient(135deg, rgba(8, 63, 39, 0.18), rgba(201, 154, 50, 0.18)) border-box;
        border: 1px solid transparent;
        box-shadow: 0 12px 28px rgba(20, 47, 30, 0.10);
    }

    body.sai-mobile-ux-polish.sai-ux-footer-polish :is(footer a, .footer-container a, .wd-footer a, .site-footer a) {
        display: inline-flex;
        line-height: 1.35;
        padding: 1px 0;
    }

    body.sai-mobile-ux-polish.sai-ux-footer-polish :is(footer p, footer li, .footer-container p, .footer-container li, .wd-footer p, .wd-footer li) {
        color: rgba(18, 23, 19, 0.82);
        font-size: 13px;
    }
}

body.sai-mobile-ux-polish.sai-ux-yogimate-accent .sai-ux-yogimate-card {
    background:
        linear-gradient(#fff, #fffaf0) padding-box,
        linear-gradient(135deg, rgba(18, 17, 14, 0.42), rgba(201, 154, 50, 0.30)) border-box !important;
    border-color: transparent !important;
}

/* V2.2: mobile top-strip fix and focused single-product correction. */
@media (max-width: 768px) {
    body.sai-mobile-ux-polish.sai-ux-hide-broken-announcement-bar :is(.sai-ux-broken-mobile-strip, .topbar-wrapp:empty, .topbar-content:empty, .whb-top-bar:empty, .header-banner:empty, .announcement-bar:empty, .promo-bar:empty, .site-top-bar:empty, .top-bar:empty, .topbar:empty, .wd-top-bar:empty, .whb-top-row:empty, .header-top:empty, .woodmart-top-bar:empty, .free-shipping-bar:empty) {
        display: none !important;
        height: 0 !important;
        line-height: 0 !important;
        margin: 0 !important;
        max-height: 0 !important;
        min-height: 0 !important;
        opacity: 0 !important;
        overflow: hidden !important;
        padding: 0 !important;
        pointer-events: none !important;
        visibility: hidden !important;
    }

    body.sai-mobile-ux-polish.sai-ux-hide-broken-announcement-bar :is(.whb-main-header, .site-header, header.main-header, .wd-header-main, .whb-general-header, .mobile-header) {
        margin-top: 0 !important;
        top: 0 !important;
    }

    body.sai-mobile-ux-polish.sai-ux-hide-broken-announcement-bar .sai-ux-mobile-announcement-bar {
        display: none !important;
    }
}

@media (max-width: 768px) {
    body.sai-mobile-ux-polish.sai-ux-single-product.sai-ux-hide-mobile-product-breadcrumbs :is(.single-breadcrumbs-wrapper, .wd-single-breadcrumbs, .woocommerce-breadcrumb, .yoast-breadcrumb, .breadcrumbs, .breadcrumb) {
        display: none !important;
        height: 0 !important;
        margin: 0 !important;
        max-height: 0 !important;
        overflow: hidden !important;
        padding: 0 !important;
        visibility: hidden !important;
    }

    body.sai-mobile-ux-polish.sai-ux-single-product.sai-ux-clamp-mobile-product-titles :is(.product_title, .entry-summary .entry-title, .summary .product_title, h1.product_title) {
        display: -webkit-box !important;
        font-size: 17px !important;
        font-weight: 850 !important;
        letter-spacing: 0 !important;
        line-height: 1.24 !important;
        margin: 0 0 7px !important;
        max-height: 42px !important;
        overflow: hidden !important;
        position: relative;
        text-wrap: balance;
        -webkit-box-orient: vertical !important;
        -webkit-line-clamp: 2 !important;
    }

    body.sai-mobile-ux-polish.sai-ux-product-polish.sai-ux-single-product :is(.main-page-wrapper, .site-content, .content-area) {
        background: linear-gradient(180deg, rgba(243, 248, 239, 0.56), #fff 210px) !important;
    }

    body.sai-mobile-ux-polish.sai-ux-product-polish.sai-ux-single-product :is(.single-product-page, .product-image-summary, div.product) {
        gap: 6px !important;
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    body.sai-mobile-ux-polish.sai-ux-product-polish.sai-ux-single-product :is(.woocommerce-product-gallery, .product-images) {
        background: linear-gradient(180deg, #fff, #fffaf0) !important;
        border: 1px solid rgba(8, 63, 39, 0.12) !important;
        border-radius: 15px !important;
        box-shadow: 0 10px 24px rgba(20, 47, 30, 0.11) !important;
        margin: 0 0 7px !important;
        overflow: hidden !important;
    }

    body.sai-mobile-ux-polish.sai-ux-product-polish.sai-ux-single-product :is(.woocommerce-product-gallery__image, .product-image-thumbnail, .thumbnails, .woocommerce-product-gallery .flex-control-thumbs) {
        margin-top: 4px !important;
    }

    body.sai-mobile-ux-polish.sai-ux-product-polish.sai-ux-single-product :is(.woocommerce-product-gallery .flex-control-thumbs li, .product-image-thumbnail) {
        max-width: 54px !important;
    }

    body.sai-mobile-ux-polish.sai-ux-product-polish.sai-ux-single-product :is(.summary, .summary-inner, .entry-summary) {
        border-radius: 15px !important;
        margin-top: 0 !important;
        overflow: visible !important;
        padding: 11px 12px !important;
    }

    body.sai-mobile-ux-polish.sai-ux-product-polish.sai-ux-single-product :is(.summary .price, .entry-summary .price) {
        font-size: 20px !important;
        line-height: 1.1 !important;
        margin: 3px 0 7px !important;
    }

    body.sai-mobile-ux-polish.sai-ux-product-polish.sai-ux-single-product :is(.product_meta, .wd-product-brands, .wd-product-brands-links, .posted_in, .sku_wrapper) {
        color: rgba(38, 53, 45, 0.64) !important;
        font-size: 11px !important;
        line-height: 1.35 !important;
    }

    body.sai-mobile-ux-polish.sai-ux-product-polish.sai-ux-single-product :is(.variations, .variations tr, .variations td, .variations th, .quantity, .woocommerce-variation-price, .woocommerce-variation-add-to-cart) {
        margin-bottom: 5px !important;
        margin-top: 5px !important;
    }

    .sai-ux-product-trust-strip {
        align-items: center;
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        justify-content: flex-start;
        margin: 8px 0 6px;
        padding: 9px;
    }

    .sai-ux-product-trust-strip span {
        background: rgba(8, 63, 39, 0.06);
        border-radius: 999px;
        font-size: 10.5px;
        padding: 6px 8px 6px 18px;
    }

    .sai-ux-product-trust-strip span::before {
        left: 8px;
        top: 10px;
    }

    .sai-ux-sticky-product-cta {
        bottom: var(--sai-ux-bottom-offset) !important;
        padding-bottom: calc(9px + env(safe-area-inset-bottom, 0px)) !important;
    }
}

@media (max-width: 768px) {
    body.sai-mobile-ux-polish.sai-ux-card-polish :is(.product-grid-item .wd-entities-title, .product-grid-item .product-title, .products .product .woocommerce-loop-product__title, li.product .woocommerce-loop-product__title) {
        display: -webkit-box !important;
        min-height: 33px !important;
        overflow: hidden !important;
        -webkit-box-orient: vertical !important;
        -webkit-line-clamp: 2 !important;
    }

    body.sai-mobile-ux-polish.sai-ux-card-polish :is(.product-grid-item, .products .product, li.product) {
        min-width: 0;
    }

    body.sai-mobile-ux-polish.sai-ux-card-polish :is(.product-grid-item .price, .products .product .price, li.product .price) {
        min-height: 20px;
    }

body.sai-mobile-ux-polish.sai-ux-card-polish :is(.product-grid-item .button, .products .product .button, li.product .button) {
        align-items: center;
        display: inline-flex !important;
        justify-content: center;
    }
}

/* V2.2: stronger breadcrumb removal and content visibility during loading. */
body.sai-mobile-ux-polish.sai-ux-force-content-visible-during-load :is(.website-wrapper, .main-page-wrapper, .site-content, .content-area, .wd-content-layout, .content-layout-wrapper, .woocommerce, .products, .product-grid-item, .single-product-content, .product-image-summary, .product-images, .summary, .footer-container) {
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: none !important;
    visibility: visible !important;
}

body.sai-mobile-ux-polish.sai-ux-content-visible-forced :is(.website-wrapper, .main-page-wrapper, .site-content, .content-area, .wd-content-layout, .content-layout-wrapper, .woocommerce, .products, .product-grid-item, .single-product-content, .product-image-summary, .product-images, .summary, .footer-container) {
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: none !important;
    visibility: visible !important;
}

body.sai-mobile-ux-polish.sai-ux-force-content-visible-during-load:is(.loading, .page-loading, .site-loading, .preloader-active, .woodmart-loading, .wd-loading, .wd-ajax-loading, .xts-loading) {
    opacity: 1 !important;
    visibility: visible !important;
}

@media (max-width: 768px) {
    body.sai-mobile-ux-polish.sai-ux-single-product.sai-ux-hide-mobile-product-breadcrumbs :is(.woocommerce-breadcrumb, .breadcrumbs, .breadcrumb, .wd-breadcrumbs, .wd-shop-breadcrumbs, .woodmart-breadcrumbs, .single-breadcrumbs-wrapper, .wd-single-breadcrumbs, .wd-breadcrumbs-wrapper, .product-breadcrumbs, .shop-loop-head .woocommerce-breadcrumb, .title-wrapper .woocommerce-breadcrumb, .page-title .woocommerce-breadcrumb, .wd-page-title .woocommerce-breadcrumb, .sai-ux-product-title-breadcrumb) {
        display: none !important;
        height: 0 !important;
        line-height: 0 !important;
        margin: 0 !important;
        max-height: 0 !important;
        min-height: 0 !important;
        opacity: 0 !important;
        overflow: hidden !important;
        padding: 0 !important;
        pointer-events: none !important;
        visibility: hidden !important;
    }

    body.sai-mobile-ux-polish.sai-ux-product-polish.sai-ux-single-product :is(.wd-page-title, .page-title, .title-wrapper) {
        margin-bottom: 0 !important;
        min-height: 0 !important;
        padding-bottom: 0 !important;
        padding-top: 0 !important;
    }

    body.sai-mobile-ux-polish.sai-ux-product-polish.sai-ux-single-product :is(.main-page-wrapper, .site-content, .content-area, .single-product-page, .product-image-summary, div.product) {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    body.sai-mobile-ux-polish.sai-ux-product-polish.sai-ux-single-product :is(.woocommerce-product-gallery, .product-images) {
        margin-top: 4px !important;
    }

    body.sai-mobile-ux-polish.sai-ux-single-product.sai-ux-clamp-mobile-product-titles :is(.summary .product_title, .entry-summary .product_title, h1.product_title, .product_title) {
        clear: both !important;
        display: -webkit-box !important;
        font-size: 16.5px !important;
        line-height: 1.24 !important;
        margin: 0 0 6px !important;
        max-height: 41px !important;
        min-height: 0 !important;
        overflow: hidden !important;
        position: relative !important;
        z-index: 1 !important;
        -webkit-box-orient: vertical !important;
        -webkit-line-clamp: 2 !important;
    }

    body.sai-mobile-ux-polish.sai-ux-product-polish.sai-ux-single-product :is(.summary, .summary-inner, .entry-summary) {
        display: block !important;
        position: relative !important;
        z-index: 2 !important;
    }

    body.sai-mobile-ux-polish.sai-ux-product-polish.sai-ux-single-product :is(.summary .price, .entry-summary .price, form.cart, .variations_form, .woocommerce-variation-add-to-cart) {
        position: relative !important;
        z-index: 2 !important;
    }

    body.sai-mobile-ux-polish.sai-ux-card-polish :is(.product-grid-item .product-element-top, .product-grid-item .product-image-link, .products .product .product-image-link, li.product .product-thumbnail) {
        aspect-ratio: 1 / 0.72 !important;
    }

body.sai-mobile-ux-polish.sai-ux-card-polish :is(.product-grid-item .wd-entities-title, .product-grid-item .product-title, .products .product .woocommerce-loop-product__title, li.product .woocommerce-loop-product__title) {
        line-height: 1.28 !important;
        max-height: 33px !important;
    }
}

/* V2.2 hotfix: this plugin must not create card-level redirects.
 * WooCommerce/WoodMart product-card anchors and Select Options href values
 * remain exactly as output by WooCommerce/WoodMart.
 */
body.sai-mobile-ux-polish.sai-ux-disable-product-card-click-override.sai-ux-no-product-card-click-override :is(.product-grid-item, .products .product, li.product) {
    cursor: auto;
}

body.sai-mobile-ux-polish.sai-ux-disable-product-card-click-override.sai-ux-no-product-card-click-override :is(.product-grid-item a, .products .product a, li.product a, .add_to_cart_button, .product_type_variable, .product_type_simple) {
    cursor: pointer;
}

/* V2.2: targeted final mobile polish. Product links and Select Options href values are untouched. */
@media (max-width: 768px) {
    body.sai-mobile-ux-polish.sai-ux-hide-broken-announcement-bar :is(.sai-ux-broken-mobile-strip, .topbar-wrapp:empty, .topbar-content:empty, .whb-top-bar:empty, .whb-top-row:empty, .whb-header-top:empty, .whb-header-bottom:empty, .wd-header-text:empty, .header-banner:empty, .woodmart-header-links:empty, .announcement-bar:empty, .promo-bar:empty, .site-top-bar:empty) {
        display: none !important;
        height: 0 !important;
        line-height: 0 !important;
        margin: 0 !important;
        max-height: 0 !important;
        min-height: 0 !important;
        opacity: 0 !important;
        overflow: hidden !important;
        padding: 0 !important;
        pointer-events: none !important;
        visibility: hidden !important;
    }

    body.sai-mobile-ux-polish.sai-ux-hide-broken-announcement-bar :is(.whb-main-header, .site-header, header.main-header, .wd-header-main, .whb-general-header, .mobile-header, .wd-logo, .site-logo, .whb-logo, .wd-header-search, .wd-header-cart, .mobile-nav-icon) {
        opacity: 1 !important;
        pointer-events: auto !important;
        visibility: visible !important;
    }

    body.sai-mobile-ux-polish.sai-ux-card-polish.sai-ux-search-page :is(.wd-page-title, .page-title, .page-title-default, .title-wrapper, .archive-header, .woocommerce-products-header) {
        background-image: none !important;
        margin-bottom: 6px !important;
        margin-top: 0 !important;
        min-height: 0 !important;
        padding-bottom: 7px !important;
        padding-top: 7px !important;
    }

    body.sai-mobile-ux-polish.sai-ux-card-polish.sai-ux-search-page :is(.wd-page-title .container, .page-title .container, .title-wrapper .container, .woocommerce-products-header) {
        min-height: 0 !important;
        padding-bottom: 0 !important;
        padding-top: 0 !important;
    }

    body.sai-mobile-ux-polish.sai-ux-card-polish.sai-ux-search-page :is(.wd-page-title h1, .page-title h1, .entry-title, .archive-title, .woocommerce-products-header__title) {
        font-size: 16px !important;
        line-height: 1.18 !important;
        margin: 0 !important;
    }

    body.sai-mobile-ux-polish.sai-ux-card-polish.sai-ux-search-page.sai-ux-search-enhanced :is(.sai-ux-old-search-title, .wd-page-title.sai-ux-old-search-title, .page-title.sai-ux-old-search-title, .entry-header.sai-ux-old-search-title, .archive-title.sai-ux-old-search-title) {
        display: none !important;
    }

    body.sai-mobile-ux-polish.sai-ux-card-polish.sai-ux-search-page .sai-ux-search-banner {
        border-radius: 13px !important;
        box-shadow: 0 8px 20px rgba(8, 63, 39, 0.12) !important;
        margin: 6px 9px 8px !important;
        padding: 10px 12px !important;
    }

    body.sai-mobile-ux-polish.sai-ux-card-polish.sai-ux-search-page .sai-ux-search-banner h1 {
        font-size: 16.5px !important;
        line-height: 1.16 !important;
        margin: 2px 0 6px !important;
    }

    body.sai-mobile-ux-polish.sai-ux-card-polish.sai-ux-search-page .sai-ux-search-banner__eyebrow {
        font-size: 9px !important;
        letter-spacing: 0.06em !important;
    }

    body.sai-mobile-ux-polish.sai-ux-card-polish.sai-ux-search-page .sai-ux-search-banner__pill,
    body.sai-mobile-ux-polish.sai-ux-card-polish.sai-ux-search-page :is(.woocommerce-result-count, .wd-shop-result-count) {
        font-size: 11px !important;
        line-height: 1.25 !important;
    }

    body.sai-mobile-ux-polish.sai-ux-card-polish.sai-ux-search-page :is(.shop-loop-head, .wd-shop-tools, .woocommerce-result-count, .woocommerce-ordering) {
        margin-bottom: 7px !important;
        margin-top: 6px !important;
    }

    body.sai-mobile-ux-polish.sai-ux-single-product.sai-ux-hide-mobile-product-breadcrumbs :is(.single-breadcrumbs-wrapper, .wd-single-breadcrumbs, .woocommerce-breadcrumb, .yoast-breadcrumb, .breadcrumbs, .breadcrumb, .wd-breadcrumbs, .wd-shop-breadcrumbs, .woodmart-breadcrumbs, .product-breadcrumbs, .wd-breadcrumbs-wrapper) {
        display: none !important;
        height: 0 !important;
        line-height: 0 !important;
        margin: 0 !important;
        max-height: 0 !important;
        min-height: 0 !important;
        opacity: 0 !important;
        overflow: hidden !important;
        padding: 0 !important;
        pointer-events: none !important;
        visibility: hidden !important;
    }

    body.sai-mobile-ux-polish.sai-ux-product-polish.sai-ux-single-product :is(.wd-page-title, .page-title, .title-wrapper) {
        background-image: none !important;
        margin: 0 !important;
        min-height: 0 !important;
        padding: 0 !important;
    }

    body.sai-mobile-ux-polish.sai-ux-single-product.sai-ux-clamp-mobile-product-titles :is(.summary .product_title, .entry-summary .product_title, h1.product_title, .product_title) {
        clear: both !important;
        display: -webkit-box !important;
        font-size: 16px !important;
        font-weight: 850 !important;
        letter-spacing: 0 !important;
        line-height: 1.22 !important;
        margin: 0 0 6px !important;
        max-height: 39px !important;
        min-height: 0 !important;
        overflow: hidden !important;
        text-wrap: balance;
        -webkit-box-orient: vertical !important;
        -webkit-line-clamp: 2 !important;
    }

    body.sai-mobile-ux-polish.sai-ux-product-polish.sai-ux-single-product :is(.single-product-page, .product-image-summary, div.product) {
        margin-top: 0 !important;
        padding-top: 0 !important;
        row-gap: 6px !important;
    }

    body.sai-mobile-ux-polish.sai-ux-product-polish.sai-ux-single-product :is(.woocommerce-product-gallery, .product-images) {
        margin-bottom: 6px !important;
    }

    body.sai-mobile-ux-polish.sai-ux-product-polish.sai-ux-single-product :is(.summary, .summary-inner, .entry-summary) {
        margin-top: 0 !important;
        padding-top: 10px !important;
    }
}

/* V2.2 perceived-loading polish: cream first paint, early real-header visibility, and a tiny top progress accent.
 * This intentionally avoids full-page overlays and never changes product-card URLs.
 */
html.sai-ux-v21-cream-ready,
html.sai-ux-v21-cream-ready body,
body.sai-mobile-ux-polish.sai-ux-perceived-loading-polish {
    background: #fffaf0 !important;
}

body.sai-mobile-ux-polish.sai-ux-perceived-loading-polish :is(.website-wrapper, .main-page-wrapper, .site-content, .content-area) {
    background-color: #fffaf0;
}

body.sai-mobile-ux-polish.sai-ux-perceived-loading-polish :is(.whb-header, .whb-main-header, .site-header, header.main-header, .mobile-header, .wd-logo, .site-logo, .whb-logo, .wd-header-search, .wd-header-cart, .mobile-nav-icon) {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
}

html.sai-ux-v21-progress-active::before {
    animation: saiUxV21TopProgress 920ms ease-in-out infinite;
    background: linear-gradient(90deg, var(--sai-ux-green), var(--sai-ux-gold), var(--sai-ux-green-2));
    border-radius: 0 999px 999px 0;
    box-shadow: 0 2px 9px rgba(8, 63, 39, 0.18);
    content: "";
    height: 3px;
    left: 0;
    opacity: 0.92;
    pointer-events: none;
    position: fixed;
    top: 0;
    width: 42%;
    z-index: 2147483646;
}

html.sai-ux-v21-content-ready::before {
    opacity: 0;
    transition: opacity 180ms ease;
}

@keyframes saiUxV21TopProgress {
    0% {
        transform: translateX(-45%) scaleX(0.55);
    }

    55% {
        transform: translateX(125%) scaleX(1.08);
    }

    100% {
        transform: translateX(255%) scaleX(0.7);
    }
}

@media (prefers-reduced-motion: reduce) {
    html.sai-ux-v21-progress-active::before {
        animation: none;
        opacity: 0.55;
        width: 100%;
    }
}

body.sai-mobile-ux-polish.sai-ux-home-page.sai-ux-perceived-loading-polish :is(#sb_instagram, .sb_instagram, .sbi, .sai-ux-instagram-nonblocking) {
    content-visibility: auto;
    contain-intrinsic-size: 620px;
}

@media (max-width: 768px) {
    body.sai-mobile-ux-polish.sai-ux-perceived-loading-polish {
        background: linear-gradient(180deg, #fffaf0 0, #ffffff 560px) !important;
    }

    body.sai-mobile-ux-polish.sai-ux-perceived-loading-polish :is(.whb-header, .whb-main-header, .site-header, header.main-header, .mobile-header) {
        background-color: rgba(255, 255, 255, 0.98) !important;
    }

    body.sai-mobile-ux-polish.sai-ux-home-page.sai-ux-perceived-loading-polish :is(#sb_instagram, .sb_instagram, .sbi, .sai-ux-instagram-nonblocking) {
        contain-intrinsic-size: 520px;
    }
}

/* V2.2: earlier anti-blank layer, stronger mobile top-bar collapse, and first hero visibility.
 * Product cards and WooCommerce links are intentionally untouched.
 */
html.sai-ux-v21-cream-ready,
html.sai-ux-v21-cream-ready body {
    background-color: #fffaf0 !important;
}

body.sai-mobile-ux-polish.sai-ux-perceived-loading-polish :is(.website-wrapper, .main-page-wrapper, .site-content, .content-area, .wd-content-layout, .content-layout-wrapper) {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
}

body.sai-mobile-ux-polish.sai-ux-home-page.sai-ux-perceived-loading-polish :is(.sai-v6-22-layout, .sai-v6-22-hero, .sai-v6-22-hero-slider, .sai-v6-22-hero-slider__track, .sai-v6-22-hero-slide.is-active, .sai-v6-22-hero-slide:first-child, .sai-ux-first-hero-ready) {
    min-height: 0 !important;
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
}

body.sai-mobile-ux-polish.sai-ux-home-page.sai-ux-perceived-loading-polish :is(.sai-v6-22-hero-slide.is-active img, .sai-v6-22-hero-slide:first-child img, .sai-ux-first-hero-ready img) {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
}

@media (max-width: 768px) {
    body.sai-mobile-ux-polish.sai-ux-hide-broken-announcement-bar :is(.topbar-wrapp, .topbar-content, .whb-top-bar, .whb-top-row, .whb-header-top, .header-banner, .announcement-bar, .promo-bar, .site-top-bar, .top-bar, .topbar, .wd-top-bar, .woodmart-top-bar, .free-shipping-bar, .sai-ux-broken-mobile-strip) {
        display: none !important;
        height: 0 !important;
        line-height: 0 !important;
        margin: 0 !important;
        max-height: 0 !important;
        min-height: 0 !important;
        opacity: 0 !important;
        overflow: hidden !important;
        padding: 0 !important;
        pointer-events: none !important;
        visibility: hidden !important;
    }

    body.sai-mobile-ux-polish.sai-ux-hide-broken-announcement-bar :is(.whb-main-header, .site-header, header.main-header, .wd-header-main, .whb-general-header, .mobile-header, .wd-logo, .site-logo, .whb-logo, .wd-header-search, .wd-header-cart, .mobile-nav-icon) {
        display: revert;
        height: auto;
        max-height: none;
        opacity: 1 !important;
        pointer-events: auto !important;
        transform: none !important;
        visibility: visible !important;
    }

body.sai-mobile-ux-polish.sai-ux-home-page.sai-ux-perceived-loading-polish :is(.sai-v6-22-hero, .sai-v6-22-hero-slider) {
        background: #fffaf0 !important;
    }
}

/* Mobile search suggestion polish. CSS-only: does not rewrite suggestion or product URLs. */
@media (max-width: 768px) {
    body.sai-mobile-ux-polish.sai-ux-header-polish :is(.autocomplete-suggestions, .wd-search-results, .wd-dropdown-results, .wd-dropdown-search-cat, .search-results-wrapper, .wd-search-dropdown, .searchform .suggestions-wrapper) {
        background: #fffdf7 !important;
        border: 1px solid rgba(8, 63, 39, 0.14) !important;
        border-radius: 16px !important;
        box-shadow: 0 18px 44px rgba(18, 23, 19, 0.18) !important;
        left: 10px !important;
        margin: 0 !important;
        max-height: min(72vh, 620px) !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        padding: 8px !important;
        right: 10px !important;
        width: auto !important;
        z-index: 2147483000 !important;
    }

    body.sai-mobile-ux-polish.sai-ux-header-polish :is(.autocomplete-suggestion, .suggestion, .wd-search-result, .search-results-wrapper .product, .wd-dropdown-results .product, .wd-search-results .product) {
        align-items: center !important;
        border-bottom: 1px solid rgba(8, 63, 39, 0.08) !important;
        display: grid !important;
        gap: 8px !important;
        grid-template-columns: 50px minmax(0, 1fr) auto !important;
        min-height: 58px !important;
        padding: 7px 4px !important;
    }

    body.sai-mobile-ux-polish.sai-ux-header-polish :is(.autocomplete-suggestion:nth-of-type(n+9), .suggestion:nth-of-type(n+9), .wd-search-result:nth-of-type(n+9), .wd-dropdown-results .product:nth-of-type(n+9), .wd-search-results .product:nth-of-type(n+9)) {
        display: none !important;
    }

    body.sai-mobile-ux-polish.sai-ux-header-polish :is(.autocomplete-suggestion img, .suggestion img, .wd-search-result img, .wd-dropdown-results .product img, .wd-search-results .product img) {
        background: #fff !important;
        border: 1px solid rgba(8, 63, 39, 0.08) !important;
        border-radius: 10px !important;
        height: 48px !important;
        max-height: 48px !important;
        max-width: 48px !important;
        object-fit: contain !important;
        padding: 3px !important;
        width: 48px !important;
    }

    body.sai-mobile-ux-polish.sai-ux-header-polish :is(.autocomplete-suggestion .suggestion-title, .suggestion .suggestion-title, .wd-search-result .wd-entities-title, .wd-dropdown-results .product-title, .wd-search-results .product-title, .wd-dropdown-results .wd-entities-title, .wd-search-results .wd-entities-title) {
        color: #121713 !important;
        display: -webkit-box !important;
        font-size: 12.5px !important;
        font-weight: 820 !important;
        line-height: 1.22 !important;
        max-height: 2.44em !important;
        overflow: hidden !important;
        -webkit-box-orient: vertical !important;
        -webkit-line-clamp: 2 !important;
    }

    body.sai-mobile-ux-polish.sai-ux-header-polish :is(.autocomplete-suggestion .price, .suggestion .price, .wd-search-result .price, .wd-dropdown-results .price, .wd-search-results .price) {
        color: #0b5d35 !important;
        font-size: 12px !important;
        font-weight: 900 !important;
        line-height: 1.15 !important;
        margin-top: 2px !important;
    }

    body.sai-mobile-ux-polish.sai-ux-header-polish :is(.view-all-results, .wd-search-show-all, .wd-all-results, .search-results-wrapper .view-all, .autocomplete-suggestions .view-all) {
        background: #0b5d35 !important;
        border-radius: 999px !important;
        color: #fff !important;
        display: flex !important;
        font-size: 12px !important;
        font-weight: 900 !important;
        justify-content: center !important;
        margin: 8px 2px 2px !important;
        min-height: 36px !important;
        padding: 10px 12px !important;
        text-align: center !important;
    }

    body.sai-mobile-ux-polish.sai-ux-header-polish :is(.autocomplete-no-suggestion, .wd-search-not-found, .wd-search-results .not-found) {
        color: #4a5b50 !important;
        font-size: 12px !important;
        padding: 12px !important;
        text-align: center !important;
    }
}

/* SAI_HERBS_PREMIUM_MOBILE_UX_POLISH_V2_3_HISTORY
 * V2.3 final mobile visual polish only.
 * No product data, URLs, cart, checkout, coupon, payment, or WooCommerce business logic is changed.
 */
@media (max-width: 767px) {
    body.sai-mobile-ux-polish :is(.mobile-nav-icon, .wd-header-mobile-nav, .wd-tools-element.mobile-nav-icon, .whb-mobile-left .wd-tools-element) :is(.wd-tools-icon, a, button) {
        align-items: center !important;
        background: #075b37 !important;
        border: 1px solid rgba(255, 255, 255, 0.34) !important;
        border-radius: 999px !important;
        box-shadow: 0 9px 22px rgba(7, 91, 55, 0.22) !important;
        color: #fff !important;
        display: inline-flex !important;
        height: 38px !important;
        justify-content: center !important;
        min-height: 38px !important;
        min-width: 38px !important;
        padding: 0 !important;
        position: relative !important;
        width: 38px !important;
    }

    body.sai-mobile-ux-polish :is(.mobile-nav-icon, .wd-header-mobile-nav, .wd-tools-element.mobile-nav-icon, .whb-mobile-left .wd-tools-element) :is(.wd-tools-icon, a, button)::before {
        background: #fff !important;
        border-radius: 999px !important;
        box-shadow: 0 -6px 0 #fff, 0 6px 0 #fff !important;
        content: "" !important;
        display: block !important;
        font-size: 0 !important;
        height: 2px !important;
        line-height: 0 !important;
        position: absolute !important;
        transform: none !important;
        width: 17px !important;
    }

    body.sai-mobile-ux-polish :is(.mobile-nav-icon, .wd-header-mobile-nav, .wd-tools-element.mobile-nav-icon, .whb-mobile-left .wd-tools-element) :is(.wd-tools-icon, a, button)::after,
    body.sai-mobile-ux-polish :is(.mobile-nav-icon, .wd-header-mobile-nav, .wd-tools-element.mobile-nav-icon) :is(.wd-tools-icon, a, button) > span:empty {
        content: none !important;
        display: none !important;
    }

    body.sai-mobile-ux-polish.sai-ux-card-polish :is(.product-grid-item, .products .product, li.product) :is(.button, .add_to_cart_button, .product_type_variable, .product_type_simple, .product_type_grouped, .wd-add-btn a) {
        align-items: center !important;
        background: linear-gradient(135deg, #075b37, #0f7546) !important;
        border: 1px solid rgba(7, 91, 55, 0.92) !important;
        border-radius: 13px !important;
        box-shadow: 0 10px 20px rgba(7, 91, 55, 0.18) !important;
        color: #fff !important;
        display: inline-flex !important;
        font-size: 12.5px !important;
        font-weight: 900 !important;
        justify-content: center !important;
        line-height: 1.15 !important;
        min-height: 42px !important;
        padding: 11px 14px !important;
        text-align: center !important;
        text-decoration: none !important;
        text-transform: none !important;
        width: 100% !important;
    }

    body.sai-mobile-ux-polish.sai-ux-card-polish :is(.product-grid-item, .products .product, li.product) :is(.button, .add_to_cart_button, .product_type_variable, .product_type_simple, .product_type_grouped, .wd-add-btn a):hover,
    body.sai-mobile-ux-polish.sai-ux-card-polish :is(.product-grid-item, .products .product, li.product) :is(.button, .add_to_cart_button, .product_type_variable, .product_type_simple, .product_type_grouped, .wd-add-btn a):focus {
        background: linear-gradient(135deg, #064b2f, #0b663c) !important;
        color: #fff !important;
    }

    body.sai-mobile-ux-polish :is(.product-grid-item, .products .product, li.product, .single-product-page, .related.products) :is(.onsale, .product-label.onsale, .product-label.discount, .wd-product-labels .product-label, .product-labels .product-label, .labels-rounded .product-label) {
        display: none !important;
        height: 0 !important;
        margin: 0 !important;
        max-height: 0 !important;
        min-height: 0 !important;
        opacity: 0 !important;
        overflow: hidden !important;
        padding: 0 !important;
        pointer-events: none !important;
        visibility: hidden !important;
        width: 0 !important;
    }

    body.sai-mobile-ux-polish :is(.product-grid-item, .products .product, li.product) :is(.wd-buttons, .wd-product-actions, .product-actions) :is(.wd-action-btn, .wd-wishlist-btn, .wd-compare-btn, .wd-quick-view-btn) {
        background: rgba(255, 255, 255, 0.96) !important;
        border: 1px solid rgba(8, 63, 39, 0.13) !important;
        border-radius: 999px !important;
        box-shadow: 0 8px 18px rgba(18, 23, 19, 0.1) !important;
        min-height: 34px !important;
        min-width: 34px !important;
    }

    body.sai-mobile-ux-polish :is(.product-grid-item, .products .product, li.product) :is(.wd-wishlist-btn, .wd-compare-btn, .wd-quick-view-btn) > a {
        align-items: center !important;
        color: #075b37 !important;
        display: inline-flex !important;
        font-family: Arial, sans-serif !important;
        font-size: 0 !important;
        height: 34px !important;
        justify-content: center !important;
        line-height: 1 !important;
        text-decoration: none !important;
        width: 34px !important;
    }

    body.sai-mobile-ux-polish :is(.product-grid-item, .products .product, li.product) .wd-wishlist-btn > a::before {
        color: #075b37 !important;
        content: "\2661" !important;
        display: block !important;
        font-family: Arial, sans-serif !important;
        font-size: 18px !important;
        font-weight: 900 !important;
        line-height: 1 !important;
    }

    body.sai-mobile-ux-polish :is(.product-grid-item, .products .product, li.product) .wd-compare-btn > a::before {
        color: #075b37 !important;
        content: "\21C4" !important;
        display: block !important;
        font-family: Arial, sans-serif !important;
        font-size: 16px !important;
        font-weight: 900 !important;
        line-height: 1 !important;
    }

    body.sai-mobile-ux-polish :is(.product-grid-item, .products .product, li.product) .wd-quick-view-btn > a::before {
        color: #075b37 !important;
        content: "\2315" !important;
        display: block !important;
        font-family: Arial, sans-serif !important;
        font-size: 17px !important;
        font-weight: 900 !important;
        line-height: 1 !important;
    }

    body.sai-mobile-ux-polish :is(.product-grid-item, .products .product, li.product) :is(.wd-action-btn, .wd-buttons a, .product-actions a):empty {
        display: none !important;
    }

    body.sai-mobile-ux-polish :is(.whb-header .wd-tools-icon:empty, .whb-header .wd-tools-text:empty, .whb-header .wd-tools-count:empty, .wd-header-mobile-nav .wd-tools-text:empty) {
        display: none !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 0 !important;
    }

    body.sai-mobile-ux-polish :is(.footer-container, .wd-footer, footer, .site-footer) {
        padding-bottom: 18px !important;
    }

    body.sai-mobile-ux-polish :is(.footer-container .container, .wd-footer .container, footer .container, .footer-sidebar, .footer-column, .widget-area) {
        margin-bottom: 0 !important;
        padding-bottom: 8px !important;
        padding-top: 8px !important;
    }

    body.sai-mobile-ux-polish :is(.footer-container .widget, .wd-footer .widget, footer .widget) {
        margin-bottom: 12px !important;
    }

    body.sai-mobile-ux-polish :is(.footer-container p, .wd-footer p, footer p, .footer-container li, .wd-footer li, footer li) {
        font-size: 12.5px !important;
        line-height: 1.45 !important;
        margin-bottom: 6px !important;
    }

    body.sai-mobile-ux-polish :is(.footer-container img, .wd-footer img, footer img) {
        max-height: 54px !important;
        object-fit: contain !important;
    }

    body.woocommerce-checkout.sai-mobile-ux-polish :is(.sai-v94-checkout-page, .sai-v94-checkout-shell, form.checkout) {
        margin-top: 0 !important;
        padding-top: 4px !important;
    }

    body.woocommerce-checkout.sai-mobile-ux-polish :is(.sai-v8-checkout-header, .sai-v11-checkout-hero) {
        margin-top: 6px !important;
        padding-bottom: 14px !important;
        padding-top: 16px !important;
    }

    body.woocommerce-cart.sai-mobile-ux-polish :is(.sai-v8-cart-shell, .sai-v8-cart-grid) {
        margin-top: 8px !important;
    }
}

/* V2.3: final mobile-only checkout coupon, archive-control, scroll button, and spacing polish.
 * Visual CSS only. WooCommerce forms, totals, links, payment methods, and coupon logic are untouched.
 */
@media (max-width: 767px) {
    body.woocommerce-checkout.sai-mobile-ux-polish :is(.woocommerce-form-coupon-toggle, .woocommerce-form-coupon-toggle .woocommerce-info) {
        align-items: flex-start !important;
        background: #fffdf7 !important;
        border: 1px solid rgba(8, 63, 39, 0.13) !important;
        border-radius: 16px !important;
        box-shadow: 0 10px 24px rgba(18, 23, 19, 0.08) !important;
        color: #21372b !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 4px !important;
        line-height: 1.35 !important;
        margin: 8px 0 10px !important;
        min-height: 0 !important;
        overflow: visible !important;
        padding: 12px 14px !important;
        text-align: left !important;
        white-space: normal !important;
    }

    body.woocommerce-checkout.sai-mobile-ux-polish .woocommerce-form-coupon-toggle .woocommerce-info::before,
    body.woocommerce-checkout.sai-mobile-ux-polish .woocommerce-form-coupon-toggle .woocommerce-info::after {
        content: none !important;
        display: none !important;
    }

    body.woocommerce-checkout.sai-mobile-ux-polish .woocommerce-form-coupon-toggle .showcoupon {
        align-items: center !important;
        align-self: flex-start !important;
        background: rgba(7, 91, 55, 0.08) !important;
        border: 1px solid rgba(7, 91, 55, 0.14) !important;
        border-radius: 999px !important;
        color: #075b37 !important;
        display: inline-flex !important;
        font-size: 12.5px !important;
        font-weight: 900 !important;
        line-height: 1.2 !important;
        margin: 2px 0 0 !important;
        padding: 7px 11px !important;
        text-decoration: none !important;
        white-space: normal !important;
    }

    body.woocommerce-checkout.sai-mobile-ux-polish :is(.checkout_coupon, form.checkout_coupon) {
        background: #fff !important;
        border: 1px solid rgba(8, 63, 39, 0.12) !important;
        border-radius: 16px !important;
        box-shadow: 0 10px 24px rgba(18, 23, 19, 0.08) !important;
        margin: 8px 0 12px !important;
        padding: 12px !important;
    }

    body.woocommerce-checkout.sai-mobile-ux-polish :is(.checkout_coupon, form.checkout_coupon) .form-row {
        float: none !important;
        margin: 0 0 8px !important;
        width: 100% !important;
    }

    body.woocommerce-checkout.sai-mobile-ux-polish :is(.checkout_coupon, form.checkout_coupon) :is(input.input-text, button, .button) {
        border-radius: 12px !important;
        min-height: 42px !important;
        width: 100% !important;
    }

    body.sai-mobile-ux-polish :is(.sai-ux-search-page, .sai-ux-product-archive) :is(.wd-shop-tools, .shop-loop-head, .woocommerce-notices-wrapper, .wd-products-per-page, .wd-products-shop-view, .wd-show-sidebar-btn, .filters-area-button) :is(a, button, span, div):empty,
    body.sai-mobile-ux-polish.sai-ux-search-page :is(.wd-shop-tools, .shop-loop-head) > :is(a, button, span, div):empty,
    body.sai-mobile-ux-polish.sai-ux-product-archive :is(.wd-shop-tools, .shop-loop-head) > :is(a, button, span, div):empty {
        display: none !important;
        height: 0 !important;
        margin: 0 !important;
        max-height: 0 !important;
        min-height: 0 !important;
        opacity: 0 !important;
        overflow: hidden !important;
        padding: 0 !important;
        pointer-events: none !important;
        visibility: hidden !important;
        width: 0 !important;
    }

    body.sai-mobile-ux-polish.sai-ux-search-page :is(.wd-shop-tools, .shop-loop-head) > :is(.wd-products-per-page, .wd-products-shop-view, .wd-show-sidebar-btn, .filters-area-button):not(:has(select)):not(:has(input)):not(:has(a:not(:empty))):not(:has(button:not(:empty))):not(:has(span:not(:empty))),
    body.sai-mobile-ux-polish.sai-ux-product-archive :is(.wd-shop-tools, .shop-loop-head) > :is(.wd-products-per-page, .wd-products-shop-view, .wd-show-sidebar-btn, .filters-area-button):not(:has(select)):not(:has(input)):not(:has(a:not(:empty))):not(:has(button:not(:empty))):not(:has(span:not(:empty))) {
        display: none !important;
        height: 0 !important;
        margin: 0 !important;
        max-height: 0 !important;
        min-height: 0 !important;
        opacity: 0 !important;
        overflow: hidden !important;
        padding: 0 !important;
        pointer-events: none !important;
        visibility: hidden !important;
        width: 0 !important;
    }

    body.sai-mobile-ux-polish :is(.scrollToTop, .wd-scroll-top, .woodmart-scroll-top, .scroll-top-button) {
        bottom: calc(96px + env(safe-area-inset-bottom, 0px)) !important;
        height: 42px !important;
        opacity: 0.96 !important;
        right: 13px !important;
        width: 42px !important;
        z-index: 9990 !important;
    }

    body.woocommerce-cart.sai-mobile-ux-polish :is(.scrollToTop, .wd-scroll-top, .woodmart-scroll-top, .scroll-top-button),
    body.woocommerce-checkout.sai-mobile-ux-polish :is(.scrollToTop, .wd-scroll-top, .woodmart-scroll-top, .scroll-top-button) {
        bottom: calc(112px + env(safe-area-inset-bottom, 0px)) !important;
    }

    body.woocommerce-checkout.sai-mobile-ux-polish :is(.sai-v94-checkout-page, .sai-v94-checkout-shell) {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    body.woocommerce-checkout.sai-mobile-ux-polish :is(.sai-v8-checkout-header, .sai-v11-checkout-hero) {
        margin-bottom: 10px !important;
        margin-top: 4px !important;
        padding: 14px 14px 12px !important;
    }

    body.woocommerce-checkout.sai-mobile-ux-polish :is(#customer_details, #order_review, #payment) {
        margin-top: 10px !important;
    }

    body.woocommerce-cart.sai-mobile-ux-polish :is(.sai-v8-cart-shell) {
        padding-top: 6px !important;
    }

    body.woocommerce-cart.sai-mobile-ux-polish :is(.sai-v8-cart-item, .sai-v8-coupon-card, .sai-v8-cart-summary__inner) {
        margin-bottom: 12px !important;
    }
}

/* V2.4 focused mobile visual fix base.
 * CSS-only: no coupon/session/cart/checkout/payment/product/link logic is changed.
 */
@media (max-width: 767px) {
    body.woocommerce-checkout.sai-mobile-ux-polish .woocommerce-form-coupon-toggle {
        clear: both !important;
        display: block !important;
        float: none !important;
        height: auto !important;
        line-height: normal !important;
        margin: 8px 0 12px !important;
        max-height: none !important;
        min-height: 0 !important;
        overflow: visible !important;
        position: relative !important;
        transform: none !important;
        white-space: normal !important;
        width: 100% !important;
    }

    body.woocommerce-checkout.sai-mobile-ux-polish .woocommerce-form-coupon-toggle .woocommerce-info {
        background: #fffdf7 !important;
        border: 1px solid rgba(8, 63, 39, 0.14) !important;
        border-radius: 15px !important;
        box-shadow: 0 10px 24px rgba(18, 23, 19, 0.08) !important;
        box-sizing: border-box !important;
        clear: both !important;
        color: #26352d !important;
        display: block !important;
        float: none !important;
        font-size: 13.5px !important;
        font-weight: 800 !important;
        height: auto !important;
        letter-spacing: 0 !important;
        line-height: 1.35 !important;
        margin: 0 !important;
        max-height: none !important;
        min-height: 0 !important;
        overflow: visible !important;
        padding: 12px 14px !important;
        position: static !important;
        text-align: left !important;
        transform: none !important;
        white-space: normal !important;
        width: 100% !important;
    }

    body.woocommerce-checkout.sai-mobile-ux-polish .woocommerce-form-coupon-toggle .woocommerce-info::before,
    body.woocommerce-checkout.sai-mobile-ux-polish .woocommerce-form-coupon-toggle .woocommerce-info::after {
        content: none !important;
        display: none !important;
    }

    body.woocommerce-checkout.sai-mobile-ux-polish .woocommerce-form-coupon-toggle .showcoupon {
        align-items: center !important;
        background: rgba(7, 91, 55, 0.08) !important;
        border: 1px solid rgba(7, 91, 55, 0.16) !important;
        border-radius: 999px !important;
        clear: both !important;
        color: #075b37 !important;
        display: inline-flex !important;
        float: none !important;
        font-size: 12.5px !important;
        font-weight: 900 !important;
        line-height: 1.25 !important;
        margin: 7px 0 0 !important;
        max-width: 100% !important;
        min-height: 32px !important;
        padding: 7px 11px !important;
        position: static !important;
        text-decoration: none !important;
        transform: none !important;
        white-space: normal !important;
        width: fit-content !important;
    }

    body.woocommerce-checkout.sai-mobile-ux-polish :is(form.checkout_coupon, .checkout_coupon) {
        clear: both !important;
        float: none !important;
        margin: 8px 0 12px !important;
        max-width: 100% !important;
        position: static !important;
        transform: none !important;
        width: 100% !important;
    }

    body.woocommerce-checkout.sai-mobile-ux-polish :is(form.checkout_coupon, .checkout_coupon) :is(.form-row, p) {
        clear: both !important;
        float: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
    }

    body.sai-mobile-ux-polish.sai-ux-search-page :is(.wd-products-shop-view, .wd-view-switcher),
    body.sai-mobile-ux-polish.sai-ux-product-archive :is(.wd-products-shop-view, .wd-view-switcher) {
        display: none !important;
        height: 0 !important;
        margin: 0 !important;
        max-height: 0 !important;
        min-height: 0 !important;
        opacity: 0 !important;
        overflow: hidden !important;
        padding: 0 !important;
        pointer-events: none !important;
        visibility: hidden !important;
        width: 0 !important;
    }

    body.sai-mobile-ux-polish.sai-ux-search-page :is(.wd-shop-tools, .shop-loop-head, .wd-products-tools, .products-footer, .woocommerce-pagination) :is(a, button, span):empty:not(.page-numbers):not(.current):not(.next):not(.prev),
    body.sai-mobile-ux-polish.sai-ux-product-archive :is(.wd-shop-tools, .shop-loop-head, .wd-products-tools, .products-footer, .woocommerce-pagination) :is(a, button, span):empty:not(.page-numbers):not(.current):not(.next):not(.prev) {
        display: none !important;
        height: 0 !important;
        margin: 0 !important;
        max-height: 0 !important;
        min-height: 0 !important;
        opacity: 0 !important;
        overflow: hidden !important;
        padding: 0 !important;
        pointer-events: none !important;
        visibility: hidden !important;
        width: 0 !important;
    }

    body.sai-mobile-ux-polish.sai-ux-search-page :is(.wd-shop-tools, .shop-loop-head, .wd-products-tools) > :is(a, button, span, div):empty,
    body.sai-mobile-ux-polish.sai-ux-product-archive :is(.wd-shop-tools, .shop-loop-head, .wd-products-tools) > :is(a, button, span, div):empty {
        display: none !important;
        height: 0 !important;
        margin: 0 !important;
        max-height: 0 !important;
        min-height: 0 !important;
        opacity: 0 !important;
        overflow: hidden !important;
        padding: 0 !important;
        pointer-events: none !important;
        visibility: hidden !important;
        width: 0 !important;
    }

    body.sai-mobile-ux-polish :is(.scrollToTop, .wd-scroll-top, .woodmart-scroll-top, .scroll-top-button) {
        bottom: calc(118px + env(safe-area-inset-bottom, 0px)) !important;
        right: 12px !important;
    }
}

/* V2.5 final mobile-only visual cleanup base.
 * CSS-only: no coupon/session/cart/checkout/payment/product/link logic is changed.
 */
@media (max-width: 767px) {
    body.woocommerce-checkout.sai-mobile-ux-polish .woocommerce-form-coupon-toggle,
    body.woocommerce-checkout.sai-mobile-ux-polish .woocommerce-form-coupon-toggle .woocommerce-info {
        align-items: stretch !important;
        box-sizing: border-box !important;
        clear: both !important;
        display: block !important;
        float: none !important;
        height: auto !important;
        max-height: none !important;
        min-height: 0 !important;
        overflow: visible !important;
        position: static !important;
        text-align: left !important;
        transform: none !important;
        white-space: normal !important;
        width: 100% !important;
    }

    body.woocommerce-checkout.sai-mobile-ux-polish .woocommerce-form-coupon-toggle .woocommerce-info {
        background: #fffdf7 !important;
        border: 1px solid rgba(7, 91, 55, 0.16) !important;
        border-radius: 15px !important;
        box-shadow: 0 10px 22px rgba(18, 23, 19, 0.08) !important;
        color: transparent !important;
        font-size: 0 !important;
        line-height: 0 !important;
        margin: 0 0 12px !important;
        padding: 12px 14px !important;
    }

    body.woocommerce-checkout.sai-mobile-ux-polish .woocommerce-form-coupon-toggle .woocommerce-info::before {
        color: #183327 !important;
        content: "Have a coupon?" !important;
        display: block !important;
        font-size: 13.5px !important;
        font-weight: 900 !important;
        letter-spacing: 0 !important;
        line-height: 1.25 !important;
        margin: 0 0 7px !important;
        opacity: 1 !important;
        position: static !important;
        text-align: left !important;
        visibility: visible !important;
    }

    body.woocommerce-checkout.sai-mobile-ux-polish .woocommerce-form-coupon-toggle .woocommerce-info::after {
        content: none !important;
        display: none !important;
    }

    body.woocommerce-checkout.sai-mobile-ux-polish .woocommerce-form-coupon-toggle .showcoupon {
        align-items: center !important;
        background: rgba(7, 91, 55, 0.08) !important;
        border: 1px solid rgba(7, 91, 55, 0.16) !important;
        border-radius: 12px !important;
        box-sizing: border-box !important;
        clear: both !important;
        color: #075b37 !important;
        display: flex !important;
        float: none !important;
        font-size: 13px !important;
        font-weight: 900 !important;
        justify-content: center !important;
        line-height: 1.25 !important;
        margin: 0 !important;
        max-width: 100% !important;
        min-height: 36px !important;
        opacity: 1 !important;
        overflow: visible !important;
        padding: 9px 12px !important;
        position: static !important;
        text-align: center !important;
        text-decoration: none !important;
        transform: none !important;
        visibility: visible !important;
        white-space: normal !important;
        width: 100% !important;
    }

    body.woocommerce-checkout.sai-mobile-ux-polish .woocommerce-form-coupon-toggle .showcoupon::before,
    body.woocommerce-checkout.sai-mobile-ux-polish .woocommerce-form-coupon-toggle .showcoupon::after {
        content: none !important;
        display: none !important;
    }

    body.woocommerce-checkout.sai-mobile-ux-polish :is(form.checkout_coupon, .checkout_coupon) {
        background: #fffdf7 !important;
        border: 1px solid rgba(7, 91, 55, 0.14) !important;
        border-radius: 15px !important;
        box-shadow: 0 10px 22px rgba(18, 23, 19, 0.07) !important;
        box-sizing: border-box !important;
        clear: both !important;
        float: none !important;
        margin: 8px 0 12px !important;
        max-width: 100% !important;
        overflow: visible !important;
        padding: 12px !important;
        position: static !important;
        transform: none !important;
        width: 100% !important;
    }

    body.woocommerce-checkout.sai-mobile-ux-polish :is(form.checkout_coupon, .checkout_coupon) :is(input, button, .button) {
        min-height: 42px !important;
        width: 100% !important;
    }

    body.sai-mobile-ux-polish.sai-ux-search-page .shop-loop-head .wd-shop-tools .wd-products-per-page a.shop-view:empty[aria-label^="Grid view"],
    body.sai-mobile-ux-polish.sai-ux-product-archive .shop-loop-head .wd-shop-tools .wd-products-per-page a.shop-view:empty[aria-label^="Grid view"],
    body.sai-mobile-ux-polish.sai-ux-search-page .shop-loop-head .wd-shop-tools .wd-products-per-page a.shop-view:empty[class*="per-row"],
    body.sai-mobile-ux-polish.sai-ux-product-archive .shop-loop-head .wd-shop-tools .wd-products-per-page a.shop-view:empty[class*="per-row"] {
        display: none !important;
        height: 0 !important;
        margin: 0 !important;
        max-height: 0 !important;
        min-height: 0 !important;
        opacity: 0 !important;
        overflow: hidden !important;
        padding: 0 !important;
        pointer-events: none !important;
        visibility: hidden !important;
        width: 0 !important;
    }

    body.sai-mobile-ux-polish.sai-ux-search-page .shop-loop-head .wd-shop-tools .wd-products-per-page:has(a.shop-view:empty[aria-label^="Grid view"]):not(:has(select)):not(:has(a:not(.shop-view))),
    body.sai-mobile-ux-polish.sai-ux-product-archive .shop-loop-head .wd-shop-tools .wd-products-per-page:has(a.shop-view:empty[aria-label^="Grid view"]):not(:has(select)):not(:has(a:not(.shop-view))) {
        display: none !important;
        height: 0 !important;
        margin: 0 !important;
        max-height: 0 !important;
        min-height: 0 !important;
        opacity: 0 !important;
        overflow: hidden !important;
        padding: 0 !important;
        pointer-events: none !important;
        visibility: hidden !important;
        width: 0 !important;
    }

    body.sai-mobile-ux-polish.sai-ux-search-page .wd-sticky-loader.wd-content-loader,
    body.sai-mobile-ux-polish.sai-ux-product-archive .wd-sticky-loader.wd-content-loader {
        display: none !important;
        height: 0 !important;
        margin: 0 !important;
        max-height: 0 !important;
        min-height: 0 !important;
        opacity: 0 !important;
        overflow: hidden !important;
        padding: 0 !important;
        pointer-events: none !important;
        visibility: hidden !important;
        width: 0 !important;
    }
}

/* V2.5.1 tiny empty-pill cleanup base.
 * Live culprit: .shop-loop-head .wd-shop-tools .wd-products-shop-view.products-view-grid_list
 * contains empty a.shop-view icon links on mobile. Real sorting, pagination, and per-page links are preserved.
 */
@media (max-width: 767px) {
    body.sai-mobile-ux-polish.sai-ux-search-page .shop-loop-head .wd-shop-tools .wd-products-shop-view.products-view-grid_list,
    body.sai-mobile-ux-polish.sai-ux-product-archive .shop-loop-head .wd-shop-tools .wd-products-shop-view.products-view-grid_list,
    body.sai-mobile-ux-polish.sai-ux-search-page .shop-loop-head .wd-shop-tools .wd-products-shop-view,
    body.sai-mobile-ux-polish.sai-ux-product-archive .shop-loop-head .wd-shop-tools .wd-products-shop-view {
        border: 0 !important;
        box-shadow: none !important;
        display: none !important;
        height: 0 !important;
        margin: 0 !important;
        max-height: 0 !important;
        max-width: 0 !important;
        min-height: 0 !important;
        min-width: 0 !important;
        opacity: 0 !important;
        overflow: hidden !important;
        padding: 0 !important;
        pointer-events: none !important;
        position: absolute !important;
        transform: none !important;
        visibility: hidden !important;
        width: 0 !important;
    }

    body.sai-mobile-ux-polish.sai-ux-search-page .shop-loop-head .wd-shop-tools .wd-products-shop-view.products-view-grid_list a.shop-view,
    body.sai-mobile-ux-polish.sai-ux-product-archive .shop-loop-head .wd-shop-tools .wd-products-shop-view.products-view-grid_list a.shop-view,
    body.sai-mobile-ux-polish.sai-ux-search-page .shop-loop-head .wd-shop-tools a.shop-view:empty,
    body.sai-mobile-ux-polish.sai-ux-product-archive .shop-loop-head .wd-shop-tools a.shop-view:empty {
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        display: none !important;
        height: 0 !important;
        margin: 0 !important;
        max-height: 0 !important;
        max-width: 0 !important;
        min-height: 0 !important;
        min-width: 0 !important;
        opacity: 0 !important;
        overflow: hidden !important;
        padding: 0 !important;
        pointer-events: none !important;
        visibility: hidden !important;
        width: 0 !important;
    }

    body.sai-mobile-ux-polish.sai-ux-search-page .shop-loop-head .wd-shop-tools a.shop-view:empty::before,
    body.sai-mobile-ux-polish.sai-ux-search-page .shop-loop-head .wd-shop-tools a.shop-view:empty::after,
    body.sai-mobile-ux-polish.sai-ux-product-archive .shop-loop-head .wd-shop-tools a.shop-view:empty::before,
    body.sai-mobile-ux-polish.sai-ux-product-archive .shop-loop-head .wd-shop-tools a.shop-view:empty::after {
        content: none !important;
        display: none !important;
    }
}

/* V2.5.2 stronger mobile-only WoodMart archive/search view-switcher cleanup base.
 * Scope is limited to shop/search/archive toolbar controls; real sorting, pagination,
 * product cards, product links, prices, pack chips, and Select Options remain untouched.
 */
@media (max-width: 767px) {
    body.sai-mobile-ux-polish.sai-ux-search-page .shop-loop-head .wd-shop-tools .wd-products-shop-view,
    body.sai-mobile-ux-polish.sai-ux-product-archive .shop-loop-head .wd-shop-tools .wd-products-shop-view,
    body.sai-mobile-ux-polish.sai-ux-search-page .shop-loop-head .wd-shop-tools .wd-products-shop-view.products-view-grid_list,
    body.sai-mobile-ux-polish.sai-ux-product-archive .shop-loop-head .wd-shop-tools .wd-products-shop-view.products-view-grid_list,
    body.sai-mobile-ux-polish.sai-ux-search-page .wd-shop-tools .wd-products-shop-view,
    body.sai-mobile-ux-polish.sai-ux-product-archive .wd-shop-tools .wd-products-shop-view,
    body.sai-mobile-ux-polish.sai-ux-search-page .wd-shop-tools .wd-view-switcher,
    body.sai-mobile-ux-polish.sai-ux-product-archive .wd-shop-tools .wd-view-switcher,
    body.sai-mobile-ux-polish.sai-ux-search-page .shop-loop-head .wd-view-switcher,
    body.sai-mobile-ux-polish.sai-ux-product-archive .shop-loop-head .wd-view-switcher {
        background: transparent !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        clip: rect(0 0 0 0) !important;
        display: none !important;
        height: 0 !important;
        line-height: 0 !important;
        margin: 0 !important;
        max-height: 0 !important;
        max-width: 0 !important;
        min-height: 0 !important;
        min-width: 0 !important;
        opacity: 0 !important;
        outline: 0 !important;
        overflow: hidden !important;
        padding: 0 !important;
        pointer-events: none !important;
        position: absolute !important;
        transform: none !important;
        visibility: hidden !important;
        white-space: nowrap !important;
        width: 0 !important;
        z-index: -1 !important;
    }

    body.sai-mobile-ux-polish.sai-ux-search-page .shop-loop-head a.shop-view:empty,
    body.sai-mobile-ux-polish.sai-ux-product-archive .shop-loop-head a.shop-view:empty,
    body.sai-mobile-ux-polish.sai-ux-search-page .shop-loop-head .wd-shop-tools a.shop-view:empty,
    body.sai-mobile-ux-polish.sai-ux-product-archive .shop-loop-head .wd-shop-tools a.shop-view:empty,
    body.sai-mobile-ux-polish.sai-ux-search-page .wd-shop-tools .wd-products-shop-view a.shop-view,
    body.sai-mobile-ux-polish.sai-ux-product-archive .wd-shop-tools .wd-products-shop-view a.shop-view {
        background: transparent !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        clip: rect(0 0 0 0) !important;
        display: none !important;
        height: 0 !important;
        line-height: 0 !important;
        margin: 0 !important;
        max-height: 0 !important;
        max-width: 0 !important;
        min-height: 0 !important;
        min-width: 0 !important;
        opacity: 0 !important;
        outline: 0 !important;
        overflow: hidden !important;
        padding: 0 !important;
        pointer-events: none !important;
        position: absolute !important;
        transform: none !important;
        visibility: hidden !important;
        width: 0 !important;
        z-index: -1 !important;
    }

    body.sai-mobile-ux-polish.sai-ux-search-page .shop-loop-head a.shop-view:empty::before,
    body.sai-mobile-ux-polish.sai-ux-search-page .shop-loop-head a.shop-view:empty::after,
    body.sai-mobile-ux-polish.sai-ux-product-archive .shop-loop-head a.shop-view:empty::before,
    body.sai-mobile-ux-polish.sai-ux-product-archive .shop-loop-head a.shop-view:empty::after,
    body.sai-mobile-ux-polish.sai-ux-search-page .wd-shop-tools .wd-products-shop-view a.shop-view::before,
    body.sai-mobile-ux-polish.sai-ux-search-page .wd-shop-tools .wd-products-shop-view a.shop-view::after,
    body.sai-mobile-ux-polish.sai-ux-product-archive .wd-shop-tools .wd-products-shop-view a.shop-view::before,
    body.sai-mobile-ux-polish.sai-ux-product-archive .wd-shop-tools .wd-products-shop-view a.shop-view::after {
        content: none !important;
        display: none !important;
    }
}

/* V2.5.3 mobile-only cleanup base for WoodMart archive/search
 * view-switcher pill. Real sorting, pagination, product cards,
 * product links, prices, pack chips, and Select Options remain untouched.
 */
@media (max-width: 767px) {
    body.woocommerce-shop .shop-loop-head .wd-shop-tools .wd-products-shop-view,
    body.archive.woocommerce .shop-loop-head .wd-shop-tools .wd-products-shop-view,
    body.search .shop-loop-head .wd-shop-tools .wd-products-shop-view,
    body.search-results .shop-loop-head .wd-shop-tools .wd-products-shop-view,
    body.post-type-archive-product .shop-loop-head .wd-shop-tools .wd-products-shop-view,
    body.tax-product_cat .shop-loop-head .wd-shop-tools .wd-products-shop-view,
    body.tax-product_tag .shop-loop-head .wd-shop-tools .wd-products-shop-view,
    body.woocommerce-shop .shop-loop-head .wd-shop-tools .wd-view-switcher,
    body.archive.woocommerce .shop-loop-head .wd-shop-tools .wd-view-switcher,
    body.search .shop-loop-head .wd-shop-tools .wd-view-switcher,
    body.search-results .shop-loop-head .wd-shop-tools .wd-view-switcher,
    body .shop-loop-head .wd-shop-tools a.shop-view:empty,
    body .shop-loop-head .wd-shop-tools .shop-view:empty {
        background: transparent !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        clip: rect(0 0 0 0) !important;
        display: none !important;
        height: 0 !important;
        line-height: 0 !important;
        margin: 0 !important;
        max-height: 0 !important;
        max-width: 0 !important;
        min-height: 0 !important;
        min-width: 0 !important;
        opacity: 0 !important;
        outline: 0 !important;
        overflow: hidden !important;
        padding: 0 !important;
        pointer-events: none !important;
        position: absolute !important;
        transform: none !important;
        visibility: hidden !important;
        width: 0 !important;
        z-index: -1 !important;
    }

    body.woocommerce-shop .shop-loop-head .wd-shop-tools .wd-products-shop-view *,
    body.archive.woocommerce .shop-loop-head .wd-shop-tools .wd-products-shop-view *,
    body.search .shop-loop-head .wd-shop-tools .wd-products-shop-view *,
    body.search-results .shop-loop-head .wd-shop-tools .wd-products-shop-view *,
    body.post-type-archive-product .shop-loop-head .wd-shop-tools .wd-products-shop-view *,
    body.tax-product_cat .shop-loop-head .wd-shop-tools .wd-products-shop-view *,
    body.tax-product_tag .shop-loop-head .wd-shop-tools .wd-products-shop-view *,
    body .shop-loop-head .wd-shop-tools a.shop-view:empty::before,
    body .shop-loop-head .wd-shop-tools a.shop-view:empty::after,
    body .shop-loop-head .wd-shop-tools .shop-view:empty::before,
    body .shop-loop-head .wd-shop-tools .shop-view:empty::after {
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        content: none !important;
        display: none !important;
        height: 0 !important;
        margin: 0 !important;
        max-height: 0 !important;
        max-width: 0 !important;
        min-height: 0 !important;
        min-width: 0 !important;
        opacity: 0 !important;
        overflow: hidden !important;
        padding: 0 !important;
        pointer-events: none !important;
        visibility: hidden !important;
        width: 0 !important;
    }
}

/* SAI_HERBS_PREMIUM_MOBILE_UX_POLISH_V2_6_1_LOADED
 * SAI_HERBS_MOBILE_EMPTY_PILL_FIX_V2_6_1
 * Rendered mobile diagnosis: the remaining white rounded pill is the real
 * sort dropdown at form.woocommerce-ordering.wd-ordering-mb-icon > select.orderby.
 * It is preserved and widened so it is no longer an empty-looking pill.
 */
@media (max-width: 767px) {
    body.woocommerce-shop .shop-loop-head .wd-shop-tools form.woocommerce-ordering.wd-ordering-mb-icon,
    body.archive.woocommerce .shop-loop-head .wd-shop-tools form.woocommerce-ordering.wd-ordering-mb-icon,
    body.search .shop-loop-head .wd-shop-tools form.woocommerce-ordering.wd-ordering-mb-icon,
    body.search-results .shop-loop-head .wd-shop-tools form.woocommerce-ordering.wd-ordering-mb-icon,
    body.post-type-archive-product .shop-loop-head .wd-shop-tools form.woocommerce-ordering.wd-ordering-mb-icon,
    body.tax-product_cat .shop-loop-head .wd-shop-tools form.woocommerce-ordering.wd-ordering-mb-icon,
    body.tax-product_tag .shop-loop-head .wd-shop-tools form.woocommerce-ordering.wd-ordering-mb-icon {
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        display: block !important;
        height: auto !important;
        margin: 8px 0 10px !important;
        max-height: none !important;
        max-width: 100% !important;
        min-height: 0 !important;
        min-width: 0 !important;
        opacity: 1 !important;
        overflow: visible !important;
        padding: 0 !important;
        pointer-events: auto !important;
        position: static !important;
        visibility: visible !important;
        width: 100% !important;
    }

    body.woocommerce-shop .shop-loop-head .wd-shop-tools form.woocommerce-ordering.wd-ordering-mb-icon select.orderby,
    body.archive.woocommerce .shop-loop-head .wd-shop-tools form.woocommerce-ordering.wd-ordering-mb-icon select.orderby,
    body.search .shop-loop-head .wd-shop-tools form.woocommerce-ordering.wd-ordering-mb-icon select.orderby,
    body.search-results .shop-loop-head .wd-shop-tools form.woocommerce-ordering.wd-ordering-mb-icon select.orderby,
    body.post-type-archive-product .shop-loop-head .wd-shop-tools form.woocommerce-ordering.wd-ordering-mb-icon select.orderby,
    body.tax-product_cat .shop-loop-head .wd-shop-tools form.woocommerce-ordering.wd-ordering-mb-icon select.orderby,
    body.tax-product_tag .shop-loop-head .wd-shop-tools form.woocommerce-ordering.wd-ordering-mb-icon select.orderby {
        -webkit-appearance: menulist !important;
        appearance: auto !important;
        background-color: #fffdf7 !important;
        border: 1px solid rgba(7, 91, 55, 0.18) !important;
        border-radius: 12px !important;
        box-shadow: 0 8px 18px rgba(17, 54, 39, 0.06) !important;
        box-sizing: border-box !important;
        color: #0b3324 !important;
        display: block !important;
        font-size: 13px !important;
        font-weight: 800 !important;
        height: 40px !important;
        line-height: 40px !important;
        margin: 0 !important;
        max-height: none !important;
        max-width: 100% !important;
        min-height: 40px !important;
        min-width: 0 !important;
        opacity: 1 !important;
        overflow: visible !important;
        padding: 0 34px 0 52px !important;
        pointer-events: auto !important;
        position: static !important;
        text-indent: 0 !important;
        visibility: visible !important;
        white-space: normal !important;
        width: 100% !important;
    }

    body.woocommerce-shop .shop-loop-head .wd-shop-tools form.woocommerce-ordering.wd-ordering-mb-icon::before,
    body.archive.woocommerce .shop-loop-head .wd-shop-tools form.woocommerce-ordering.wd-ordering-mb-icon::before,
    body.search .shop-loop-head .wd-shop-tools form.woocommerce-ordering.wd-ordering-mb-icon::before,
    body.search-results .shop-loop-head .wd-shop-tools form.woocommerce-ordering.wd-ordering-mb-icon::before,
    body.post-type-archive-product .shop-loop-head .wd-shop-tools form.woocommerce-ordering.wd-ordering-mb-icon::before,
    body.tax-product_cat .shop-loop-head .wd-shop-tools form.woocommerce-ordering.wd-ordering-mb-icon::before,
    body.tax-product_tag .shop-loop-head .wd-shop-tools form.woocommerce-ordering.wd-ordering-mb-icon::before {
        align-items: center !important;
        color: #075b37 !important;
        content: "Sort" !important;
        display: inline-flex !important;
        font-size: 11px !important;
        font-weight: 900 !important;
        height: 40px !important;
        left: 13px !important;
        letter-spacing: 0 !important;
        opacity: 1 !important;
        pointer-events: none !important;
        position: absolute !important;
        text-transform: none !important;
        top: 0 !important;
        visibility: visible !important;
        z-index: 2 !important;
    }

    body.woocommerce-shop .shop-loop-head .wd-shop-tools form.woocommerce-ordering.wd-ordering-mb-icon::after,
    body.archive.woocommerce .shop-loop-head .wd-shop-tools form.woocommerce-ordering.wd-ordering-mb-icon::after,
    body.search .shop-loop-head .wd-shop-tools form.woocommerce-ordering.wd-ordering-mb-icon::after,
    body.search-results .shop-loop-head .wd-shop-tools form.woocommerce-ordering.wd-ordering-mb-icon::after,
    body.post-type-archive-product .shop-loop-head .wd-shop-tools form.woocommerce-ordering.wd-ordering-mb-icon::after,
    body.tax-product_cat .shop-loop-head .wd-shop-tools form.woocommerce-ordering.wd-ordering-mb-icon::after,
    body.tax-product_tag .shop-loop-head .wd-shop-tools form.woocommerce-ordering.wd-ordering-mb-icon::after {
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        content: none !important;
        display: none !important;
    }
}

