/******* Do not edit this file *******
Simple Custom CSS and JS - by Silkypress.com
Saved: Oct 29 2026 | 16:46:04 */
/* ==========================================
   MB PRODUCT CARD — RESTORED HOVER EFFECT
   ========================================== */


/* ==========================================
   MAIN CONTAINER
   ========================================== */

.mb-product-card {

    /* OVERLAY CONTROLS */
    --mb-overlay-color: #6b6b6b;
    --mb-overlay-opacity: 0.85;

    /* IMAGE ZOOM */
    --mb-image-zoom: 1.06;

    /* CONTENT ANIMATION */
    --mb-content-offset: 20px;
    --mb-content-speed: 0.45s;

    position: relative;

    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;

    align-items: center;
    justify-items: center;

    padding: 0 !important;
    gap: 0 !important;

    overflow: hidden;
    isolation: isolate;
}


/* ==========================================
   IMAGE — DETERMINES CARD HEIGHT
   ========================================== */

.mb-product-card > .elementor-widget-image {

    grid-area: 1 / 1;

    position: relative;

    width: 100%;
    height: auto;

    margin: 0 !important;

    z-index: 0;
    overflow: hidden;
}

.mb-product-card > .elementor-widget-image .elementor-widget-container {
    width: 100%;
    height: 100%;
}

.mb-product-card > .elementor-widget-image img {

    display: block;

    width: 100%;
    height: auto;

    object-fit: cover;

    transition:
        transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}


/* ==========================================
   IMAGE ZOOM
   ========================================== */

.mb-product-card:hover > .elementor-widget-image img,
.mb-product-card:focus-within > .elementor-widget-image img {
    transform: scale(var(--mb-image-zoom));
}


/* ==========================================
   GREY MULTIPLY OVERLAY
   ========================================== */

.mb-product-card::before {

    content: "";

    position: absolute;
    inset: 0;

    background: var(--mb-overlay-color);

    mix-blend-mode: multiply;

    opacity: 0;

    transition: opacity 0.4s ease;

    z-index: 1;
    pointer-events: none;
}


/* SHOW OVERLAY */

.mb-product-card:hover::before,
.mb-product-card:focus-within::before {
    opacity: var(--mb-overlay-opacity);
}


/* ==========================================
   CONTENT — HEADING + BUTTON
   Class: mb-product-content
   ========================================== */

.mb-product-card > .mb-product-content {

    position: absolute !important;

    top: 50%;
    left: 50%;

    width: max-content;
    max-width: 90%;

    margin: 0 !important;

    z-index: 2;

    /* INITIAL STATE */
    opacity: 0;

    transform: translate(
        -50%,
        calc(-50% + var(--mb-content-offset))
    );

    transition:
        opacity var(--mb-content-speed) ease,
        transform var(--mb-content-speed)
        cubic-bezier(0.22, 1, 0.36, 1);

    pointer-events: none;
}


/* ==========================================
   REVEAL CONTENT
   ========================================== */

.mb-product-card:hover > .mb-product-content,
.mb-product-card:focus-within > .mb-product-content {

    opacity: 1;

    transform: translate(-50%, -50%);

    pointer-events: auto;
}


/* ==========================================
   CONTENT ALIGNMENT
   ========================================== */

.mb-product-content {

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    text-align: center;
}


/* ==========================================
   MOBILE — ALWAYS SHOW CONTENT
   ========================================== */

@media (hover: none) {

    .mb-product-card::before {
        opacity: 0.65;
    }

    .mb-product-card > .mb-product-content {
        opacity: 1;
        transform: translate(-50%, -50%);
        pointer-events: auto;
    }

    .mb-product-card > .elementor-widget-image img {
        transform: none !important;
    }
}


/* ==========================================
   REDUCED MOTION
   ========================================== */

@media (prefers-reduced-motion: reduce) {

    .mb-product-card *,
    .mb-product-card::before {
        transition: none !important;
    }

}

/* ==========================================
   MB PRODUCT TITLE — DEFAULT STATE
   CSS Class: mb-product-title
   ========================================== */

.mb-product-card > .mb-product-title {

    /* POSITION CONTROLS */
    --mb-title-bottom: .75rem;
    --mb-title-left: .75rem;

    /* EXIT ANIMATION */
    --mb-title-exit-distance: 20px;
    --mb-title-speed: 0.45s;

    position: absolute !important;

    top: auto !important;
    right: auto !important;
    bottom: var(--mb-title-bottom);
    left: var(--mb-title-left);

    width: auto;
    max-width: calc(100% - 3rem);

    margin: 0 !important;
    padding: 0 !important;

    /* APPEARANCE */
    background: transparent;
    opacity: 1;
    z-index: 3;

    text-align: left;

    /* INITIAL POSITION */
    transform: translate(0, 0);

    /* ANIMATION */
    transition:
        opacity var(--mb-title-speed) ease,
        transform var(--mb-title-speed)
        cubic-bezier(0.22, 1, 0.36, 1);
}


/* ==========================================
   TITLE COLOUR
   ========================================== */

.mb-product-card > .mb-product-title .elementor-heading-title {
    color: #0D4058;
}


/* ==========================================
   TITLE — DIAGONAL EXIT ON HOVER
   ========================================== */

.mb-product-card:hover > .mb-product-title,
.mb-product-card:focus-within > .mb-product-title {

    opacity: 0;

    transform: translate(
        calc(-1 * var(--mb-title-exit-distance)),
        var(--mb-title-exit-distance)
    );

    pointer-events: none;
}


/* ==========================================
   MOBILE — KEEP TITLE VISIBLE
   ========================================== */

@media (hover: none) {

    .mb-product-card > .mb-product-title {
        opacity: 1;
        transform: none;
        pointer-events: auto;
    }

    /* HIDE HOVER CONTENT ON MOBILE */
    .mb-product-card > .mb-product-content {
        opacity: 0;
        pointer-events: none;
    }

    /* REMOVE OVERLAY ON MOBILE */
    .mb-product-card::before {
        opacity: 0;
    }
}


/* ==========================================
   REDUCED MOTION
   ========================================== */

@media (prefers-reduced-motion: reduce) {

    .mb-product-card > .mb-product-title {
        transition: none !important;
    }
}