/* 🔒 NUCLEAR UNDERLINE REMOVAL BLOCK */
.wcbg-grid-wrapper ul.products li.product .woocommerce-loop-product__title a,
.wcbg-grid-wrapper ul.products li.product h2.woocommerce-loop-product__title a,
.wcbg-grid-wrapper ul.products li.product h2 a,
.wcbg-grid-wrapper ul.products li.product a.woocommerce-loop-product__link {
    text-decoration: none !important;
    text-decoration-line: none !important;
    text-decoration-color: transparent !important;
    border-bottom: none !important;
    box-shadow: none !important;
    background-image: none !important;
    -webkit-text-decoration: none !important;
    text-underline-offset: 0 !important;
    -webkit-text-underline-offset: 0 !important;
    /* Reset theme specific pseudo-elements */
    --border-width: 0 !important;
}

/* Remove pseudo-element underlines (::after / ::before) */
.wcbg-grid-wrapper ul.products li.product .woocommerce-loop-product__title a::after,
.wcbg-grid-wrapper ul.products li.product .woocommerce-loop-product__title a::before,
.wcbg-grid-wrapper ul.products li.product h2 a::after,
.wcbg-grid-wrapper ul.products li.product h2 a::before {
    content: "" !important;
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    border: none !important;
    background: none !important;
    box-shadow: none !important;
    background-image: none !important;
}

/* Hover state override */
.wcbg-grid-wrapper ul.products li.product .woocommerce-loop-product__title a:hover,
.wcbg-grid-wrapper ul.products li.product h2 a:hover {
    text-decoration: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
}

/* Base Grid Reset */
.wcbg-grid-wrapper ul.products {
    display: grid !important;
    gap: 24px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 40px !important;
}
.wcbg-grid-wrapper ul.products li.product {
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    max-width: none !important;
}

/* 🔒 COLUMN FALLBACKS */
.wcbg-grid-wrapper.wcbg-cols-3 ul.products { grid-template-columns: repeat(3, 1fr) !important; }
.wcbg-grid-wrapper.wcbg-cols-4 ul.products { grid-template-columns: repeat(4, 1fr) !important; }
.wcbg-grid-wrapper.wcbg-cols-5 ul.products { grid-template-columns: repeat(5, 1fr) !important; }
.wcbg-grid-wrapper.wcbg-cols-6 ul.products { grid-template-columns: repeat(6, 1fr) !important; }

/* Pagination Styling */
.wcbg-pagination ul { display: flex; flex-wrap: wrap; justify-content: center; list-style: none; padding: 0; margin: 30px 0; gap: 8px; }
.wcbg-pagination li { margin: 0; }
.wcbg-pagination a, .wcbg-pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; padding: 8px 14px; border: 1px solid #e0e0e0; border-radius: 6px; text-decoration: none; color: #333; font-size: 14px; transition: all 0.2s ease; }
.wcbg-pagination .current { background: #2271b1; color: #fff; border-color: #2271b1; }
.wcbg-pagination a:hover { background: #f5f5f5; border-color: #ccc; }
.wcbg-notice { background: #fff3cd; border: 1px solid #ffecb5; color: #856404; padding: 12px; border-radius: 6px; margin-bottom: 20px; }