/* Wrap the image link specifically so hover is isolated to image only */
.woocommerce ul.products li.product a:first-of-type {
    position: relative;
    display: block;
    overflow: hidden;
}

/* Ensure images inside are consistently handled */
.woocommerce ul.products li.product a img {
    transition: transform 0.4s ease;
    display: block;
    width: 100%;
    height: auto;
}

/* Image zoom on hover of the image link */
.woocommerce ul.products li.product a:first-of-type:hover img {
    transform: scale(1.05);
}

/* Overlay Style - Restricted to hovering specifically over the image link anchor */
.woo-hover-desc-overlay-70d49987 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.45); /* Lighter overlay color */
    backdrop-filter: blur(3px); /* Subtle blurred glass effect */
    -webkit-backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 10;
    pointer-events: none; /* Make overlay click-through to allow product click */
}

/* 
 * CRITICAL FIX: Ensure the hover trigger is strictly isolated to hovering 
 * directly over the image anchor (a:first-of-type) and not when hovering 
 * on prices, titles, or add-to-cart buttons below.
 */
.woocommerce ul.products li.product .woo-hover-desc-overlay-70d49987 {
    opacity: 0;
    visibility: hidden;
}

.woocommerce ul.products li.product a:first-of-type:hover .woo-hover-desc-overlay-70d49987 {
    opacity: 1;
    visibility: visible;
}

/* Overlay Inner Content Style */
.woo-hover-desc-content-70d49987 {
    text-align: center;
    color: #ffffff;
    max-width: 95%;
    transform: translateY(10px);
    transition: transform 0.3s ease;
}

.woocommerce ul.products li.product a:first-of-type:hover .woo-hover-desc-content-70d49987 {
    transform: translateY(0);
}

/* Overlay Text Description */
.woo-hover-desc-text-70d49987 {
    font-size: 0.85rem;
    line-height: 1.5;
    color: #ffffff !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
    margin: 0 !important;
    font-family: inherit;
    font-weight: 500;
}
