/* =============================================================================
   PECB Misc Site-Wide CSS
   Cart hiding, register button shortcode, product link disable
   ============================================================================= */

/* ===== Hide Cart Elements ===== */

.woocommerce-mini-cart,
.mini-cart,
.cart-icon,
.cart-contents,
.widget_shopping_cart,
.woocommerce-cart-form,
.cart-collaterals,
a[href*="/cart/"],
.menu-item a[href*="/cart"],
.header-cart,
.site-header-cart,
.wc-block-mini-cart,
.wp-block-woocommerce-mini-cart {
    display: none !important;
}

.added_to_cart.wc-forward {
    display: none !important;
}

/* ===== Register Button Shortcode ===== */

.pecb-register-button {
    display: inline-block;
    background-color: #a11e29 !important;
    color: #ffffff !important;
    padding: 12px 30px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    border-radius: 4px !important;
    transition: background-color 0.3s ease, transform 0.2s ease !important;
    text-align: center;
    border: none !important;
    cursor: pointer;
}

.pecb-register-button:hover {
    background-color: #8a1922 !important;
    color: #ffffff !important;
    transform: translateY(-2px);
}

.pecb-register-button:active {
    transform: translateY(0);
}

/* ===== Disable Product Links ===== */

.woocommerce ul.products li.product a.woocommerce-LoopProduct-link,
.woocommerce-loop-product__link,
a[href*="/product/"] {
    cursor: default;
    pointer-events: none;
}

.woocommerce ul.products li.product a.add_to_cart_button,
.woocommerce ul.products li.product a.button,
.woocommerce ul.products li.product .add_to_cart_button,
.pecb-register-button,
a.add_to_cart_button {
    cursor: pointer;
    pointer-events: auto;
}

.entry-content a[href*="/product/"],
.widget a[href*="/product/"] {
    pointer-events: none;
    cursor: default;
}

.wordpress .woocommerce-message {
    display: none !important;
}
