.woocommerce ul.products li.product {
    position: relative;
    overflow: hidden;
}

.woocommerce ul.products li.product .cph-hover-content {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10;
    text-align: center;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: #fff;
}

.woocommerce ul.products li.product:hover .cph-hover-content {
    display: flex;
}

.woocommerce ul.products li.product:hover img {
    opacity: 0;
}

.cph-hover-content button {
    display: block;
    margin: 10px auto;
    padding: 10px 20px;
    color: #fff;
    border: none;
    background: #444;
    text-align: center;
    cursor: pointer;
    width: 80%;
}

.cph-hover-content button:hover {
    background: #ff5722 !important;
}

.cph-hover-content button a {
    text-decoration: none;
    color: white;
}
