/**
 * Product Links Fix
 * Ensures product links in category pages are clickable on all devices
 */

/* Ensure all product links are clickable */
.woocommerce-LoopProduct-link,
.woocommerce-loop-product__link,
.cwp-product-item {
    position: relative !important;
    z-index: 10 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    display: block !important;
}

/* Make sure product list items don't block clicks */
ul.products li.product {
    pointer-events: auto !important;
    cursor: pointer !important;
}

/* Ensure product container elements don't block clicks */
.cwp-product-image,
.cwp-product-title,
.cwp-product-price,
.cwp-product-meta {
    position: relative !important;
    pointer-events: none !important;
}

/* Fix for mobile devices */
@media (max-width: 1024px) {
    .woocommerce-LoopProduct-link,
    .woocommerce-loop-product__link,
    .cwp-product-item {
        touch-action: manipulation !important;
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1) !important;
    }

    /* Ensure clickable elements on touch devices */
    .product.type-product {
        touch-action: manipulation !important;
        -webkit-user-select: none !important;
        user-select: none !important;
    }
}

/* Fix for iOS Safari */
@supports (-webkit-touch-callout: none) {
    .woocommerce-LoopProduct-link,
    .woocommerce-loop-product__link,
    .cwp-product-item {
        cursor: pointer !important;
        -webkit-touch-callout: default !important;
    }
}

/* Remove any pointer-events: none from parent containers */
.columns-5,
.products,
.products-container,
.woocommerce-products-section {
    pointer-events: auto !important;
}

/* Make sure nothing overlays the links */
.woocommerce-loop-product__link:before,
.woocommerce-loop-product__link:after {
    content: none !important;
    pointer-events: none !important;
}

/* Ensure images inside links don't block clicks */
.woocommerce-loop-product__link img {
    pointer-events: none !important;
}
