
        /* Archive/Shop page Out of Stock Label */
        .out-of-stock-label {
            position: absolute;
            top: 10px;
            right: 10px;
            background: rgba(255, 0, 0, 0.8);
            color: white;
            padding: 5px 10px;
            border-radius: 3px;
            z-index: 2;
        }

        /* Single Product page Out of Stock Label */
        .single-product-stock-label {
            display: inline-block;
            background: rgba(255, 0, 0, 0.8);
            color: white;
            padding: 5px 10px;
            border-radius: 3px;
            margin-bottom: 15px;
        }

        /* Make sure product images are position relative */
        .woocommerce ul.products li.product a img,
        .woocommerce-page ul.products li.product a img,
        .woocommerce div.product div.images {
            position: relative;
        }

        /* Additional styling for single product page */
        .woocommerce div.product.outofstock div.images {
            position: relative;
        }
        
        .woocommerce div.product.outofstock div.images:before {
            content: "Out of stock";
            position: absolute;
            top: 10px;
            right: 10px;
            background: rgba(255, 0, 0, 0.8);
            color: white;
            padding: 5px 10px;
            border-radius: 3px;
            z-index: 2;
        }

        /* Hide promotion text for out of stock products */
        .outofstock .add-more-prod {
            display: none !important;
        }

        /* Style for out of stock button */
        .outofstock .buttonWrapper .add-to-cart a.atc {
            background-color: #cccccc !important;
            cursor: not-allowed !important;
            pointer-events: none !important;
            opacity: 0.7 !important;
            text-decoration: none !important;
        }

        /* Additional layer of click prevention */
        .outofstock .buttonWrapper .add-to-cart {
            pointer-events: none !important;
        }

        /* Ensure the link can't be clicked */
        .outofstock .buttonWrapper .add-to-cart a.atc[href="#"] {
            pointer-events: none !important;
            cursor: default !important;
        }
    