/* Category Hover Styling for WooCommerce loop items - Suffix: 40933cb6 */

/* Target the container wrapping the image link to contain our absolute overlay */
.woocommerce ul.products li.product .woocommerce-loop-product__link,
.product-thumbnail-wrapper,
.elementor-loop-item {
    position: relative;
    display: block;
    overflow: hidden;
}

/* Hover Category Container overlay styling */
.hs-hover-category-container-40933cb6 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    /* Confine the overlay height strictly to the image size area */
    height: auto;
    bottom: 0;
    background: rgba(0, 0, 0, 0.25); /* Much subtler semi-transparent overlay */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 10;
    pointer-events: none; /* Let clicks pass to the product link */
}

/* We trigger the hover state exclusively when hovering the main product link wrapper holding the image */
.woocommerce ul.products li.product .woocommerce-loop-product__link:hover .hs-hover-category-container-40933cb6,
.elementor-loop-item:hover .hs-hover-category-container-40933cb6 {
    opacity: 1;
    visibility: visible;
}

/* Inner typography - subtler & smaller */
.hs-hover-category-inner-40933cb6 {
    text-align: center;
    padding: 10px;
    transform: translateY(6px);
    transition: transform 0.3s ease;
}

.woocommerce ul.products li.product .woocommerce-loop-product__link:hover .hs-hover-category-inner-40933cb6,
.elementor-loop-item:hover .hs-hover-category-inner-40933cb6 {
    transform: translateY(0);
}

/* Style the categories list - subtle labels */
.hs-hover-category-inner-40933cb6 a {
    color: #ffffff !important;
    font-size: 11px; /* Smaller, cleaner text size */
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    text-decoration: none;
    background: rgba(0, 0, 0, 0.65); /* Elegant semi-transparent dark background */
    padding: 4px 10px;
    border-radius: 4px;
    display: inline-block;
    margin: 3px;
    transition: background 0.2s ease, color 0.2s ease;
    pointer-events: auto; /* Allow clicks on category if desired */
}

.hs-hover-category-inner-40933cb6 a:hover {
    background: #ffffff !important;
    color: #000000 !important;
}
