/* ACE PDP V5.77 FLIP ENTRY SAFE START
   Mantém o visual V5.72/V5.73.
   Corrige apenas a entrada:
   - :hover sozinho não joga a imagem direto para 180deg.
   - JS externo adiciona .ace-pdp-v577-active depois de preparar o estado 0deg.
*/

html body.catalog-product-view .ace-pdp-related-h11-exact.ace-category-home-card-scope .ace-h11-product-img img,
html body.catalog-product-view .ace-pdp-related-h11-exact.ace-category-home-card-scope .ace-h11-product-card:hover .ace-h11-product-img img,
html body.catalog-product-view .ace-pdp-related-h11-exact.ace-category-home-card-scope .ace-h11-product-card.is-flipping .ace-h11-product-img img,
html body.catalog-product-view .ace-pdp-related-h11-exact.ace-category-home-card-scope .ace-h11-product-card.ace-pdp-v577-active .ace-h11-product-img img {
    transform-origin: center center !important;
    transform-style: preserve-3d !important;
    backface-visibility: visible !important;
    -webkit-backface-visibility: visible !important;
    transition: transform 1850ms cubic-bezier(.16,.84,.22,1) !important;
    will-change: transform !important;
}

/* Estado normal e hover antes do JS ativar: sempre 0deg */
html body.catalog-product-view .ace-pdp-related-h11-exact.ace-category-home-card-scope .ace-h11-product-card:not(.ace-pdp-v577-active) .ace-h11-product-img img,
html body.catalog-product-view .ace-pdp-related-h11-exact.ace-category-home-card-scope .ace-h11-product-card:hover:not(.ace-pdp-v577-active) .ace-h11-product-img img,
html body.catalog-product-view .ace-pdp-related-h11-exact.ace-category-home-card-scope .ace-h11-product-card.is-flipping:not(.ace-pdp-v577-active) .ace-h11-product-img img {
    transform: rotateY(0deg) scale(1) !important;
}

/* Estado ativo controlado pelo JS: 180deg com transição */
html body.catalog-product-view .ace-pdp-related-h11-exact.ace-category-home-card-scope .ace-h11-product-card.ace-pdp-v577-active .ace-h11-product-img img,
html body.catalog-product-view .ace-pdp-related-h11-exact.ace-category-home-card-scope .ace-h11-product-card:hover.ace-pdp-v577-active .ace-h11-product-img img,
html body.catalog-product-view .ace-pdp-related-h11-exact.ace-category-home-card-scope .ace-h11-product-card.is-flipping.ace-pdp-v577-active .ace-h11-product-img img {
    transform: rotateY(180deg) scale(1.055) !important;
}

/* Card sobe igual V5.72/V5.73 */
html body.catalog-product-view .ace-pdp-related-h11-exact.ace-category-home-card-scope .ace-h11-product-card:hover,
html body.catalog-product-view .ace-pdp-related-h11-exact.ace-category-home-card-scope .ace-h11-product-card.ace-pdp-v577-active {
    transform: translateY(-6px) !important;
}

/* ACE PDP V5.77 FLIP ENTRY SAFE END */
