/* ═══════════════════════════════════════════════════
   JogaJunto — 3D Card Hover v8
   CSS-only: rotateY 12° + green glow + shine sweep
   + fixed text contrast on white card body
   ═══════════════════════════════════════════════════ */

/* ── Fix card body text visibility ── */
.jj-game-card-body {
    background: #FFFFFF !important;
    border-radius: 16px !important;
}
.jj-game-card-body h4,
.jj-game-card-body h3 {
    color: #0a1f0f !important;
    text-shadow: none !important;
}
.jj-game-card-body p {
    color: #3d5a46 !important;
}

/* ── Shared hover 3D for both card types ── */
.jj-game-card,
.oe_product_cart {
    overflow: visible !important;
    position: relative !important;
    transition: transform .5s cubic-bezier(.23,1,.32,1),
                box-shadow .5s ease,
                border-color .5s ease !important;
}

.jj-game-card:hover,
.oe_product_cart:hover {
    transform: perspective(600px) rotateY(-12deg) rotateX(5deg) translateY(-10px) scale(1.04) !important;
    box-shadow:
        0 35px 80px rgba(32,185,103,.50),
        0 0 0 4px rgba(32,185,103,.35),
        0 0 50px rgba(32,185,103,.20),
        0 0 100px rgba(32,185,103,.10) !important;
    border-color: #20B967 !important;
    transition: transform .35s cubic-bezier(.25,.46,.45,.94),
                box-shadow .35s ease,
                border-color .35s ease !important;
    z-index: 20 !important;
}

/* ── Image zoom ── */
.jj-game-card:hover img,
.oe_product_cart:hover .oe_product_image img {
    transform: scale(1.15) !important;
    transition: transform .4s ease !important;
}
.jj-game-card img,
.oe_product_image img {
    transition: transform .5s cubic-bezier(.23,1,.32,1) !important;
}

/* ── Title green glow ── */
.jj-game-card:hover h4,
.jj-game-card:hover h3,
.jj-game-card:hover .jj-game-card-body h4,
.oe_product_cart:hover .o_wsale_products_item_title a,
.oe_product_cart:hover a[itemprop="name"] {
    color: #20B967 !important;
    text-shadow: 0 0 12px rgba(32,185,103,.4) !important;
    transition: color .25s ease, text-shadow .25s ease !important;
}
.jj-game-card h4,
.jj-game-card h3,
.o_wsale_products_item_title a,
a[itemprop="name"] {
    transition: color .35s ease, text-shadow .35s ease !important;
}

/* ── Inner containers keep border-radius ── */
.jj-game-card img,
.jj-game-card .jj-game-card-body,
.oe_product_cart .oe_product_image,
.oe_product_cart .oe_product_image img,
.oe_product_cart .o_wsale_product_information {
    border-radius: 16px !important;
}

.jj-game-card .jj-game-card-body,
.oe_product_cart .oe_product_image,
.oe_product_cart .o_wsale_product_information {
    overflow: hidden !important;
}

/* ── SHINE SWEEP ── */
.jj-game-card::before,
.oe_product_cart::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -120%;
    width: 50%;
    height: 120%;
    background: linear-gradient(
        105deg,
        transparent 0%,
        rgba(255,255,255,.0) 35%,
        rgba(255,255,255,.12) 45%,
        rgba(255,255,255,.22) 50%,
        rgba(255,255,255,.12) 55%,
        rgba(255,255,255,.0) 65%,
        transparent 100%
    );
    transform: skewX(-15deg);
    z-index: 25;
    pointer-events: none;
    border-radius: 18px;
}
.jj-game-card:hover::before,
.oe_product_cart:hover::before {
    left: 130%;
    transition: left .6s cubic-bezier(.6,.04,.98,.335);
}
.jj-game-card:not(:hover)::before,
.oe_product_cart:not(:hover)::before {
    left: -120%;
    transition: left .2s ease-out;
}