




/* Contenedor principal del producto - mantiene el diseño existente */
.woocommerce ul.products li.product, 
.woocommerce-page ul.products li.product {
    perspective: 1000px;
    position: relative;
}

/* Ocultar el botón original de agregar al carrito */


/* Mostrar el botón dentro del flip */
.product-image-flip-back .add_to_cart_button {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Contenedor para el efecto de flip */
.product-image-flip-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 100%; /* Relación de aspecto 1:1 para cuadrados */
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.woocommerce ul.products li.product a {
    display: block;
    position: relative;
    overflow: hidden;
}



/* Efecto al pasar el mouse
.woocommerce ul.products li.product:hover .product-image-flip-container {
    transform: rotateY(180deg);
}




/* Caras del flip (frontal y trasera) 
.product-image-flip-front, 
.product-image-flip-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    top: 0;
    left: 0;
}

/* Estilo de la parte frontal (imagen normal) 
.product-image-flip-front {
    z-index: 2;
}

/* Estilo de la parte trasera 
.product-image-flip-back {
    transform: rotateY(180deg);
    background-color: #000;
    color: #fff;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Botón de agregar al carrito en la esquina (solo este se mostrará) 
.product-image-flip-back .button {
    position: absolute !important;
    top: .1px !important;
    right: 2px !important;
    background-color: transparent !important;
    color: transparent !important;
    border: none !important;
    padding: 8px 12px !important;
    font-size: 12px !important;
    font-weight: bold !important;
    border-radius: 3px !important;
    cursor: pointer !important;
    transition: all 0.3s ease;
    z-index: 10;
}

.product-image-flip-back .button:hover {
    background-color: transparent !important;
    color: #fff !important;
}

/* Ajustes para la imagen 
.product-image-flip-front img {
    width: 100%;
    height: auto;
    display: block;
}

/* Detalles del producto en la parte trasera 
.product-details {
    text-align: center;
    color: #fff;
    padding-top: 20px;
}

.product-details h2 {
    font-size: 16px;
    margin: 0 0 10px;
    color: #fff;
}


.product-details .woocommerce-product-details__short-description {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 15px;
}



/* Estilos para la descripción del producto 
.product-description {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 15px;
    text-align: left;
    max-height: 120px;
    overflow-y: auto;
}

.product-description p {
    margin-bottom: 10px;

}






/* Ajustes para dispositivos táctiles 
@media (hover: none) {
    .woocommerce ul.products li.product:hover .product-image-flip-container {
        transform: rotateY(180deg);
    }
}

/* Scroll personalizado para la descripción 
.product-description::-webkit-scrollbar {
    width: 5px !important;
}

.product-description::-webkit-scrollbar-track {
    background: #333 !important;
}

.product-description::-webkit-scrollbar-thumb {
    background: #fff !important;
    border-radius: 5px !important;
}




.added_to_cart.wc-forward{

    color: #FFF !important;            /* Color del texto 

}


.added_to_cart.wc-forward:hover{

    color: #d4c1a5 !important;            /* Color del texto 

}


/* Cambiar colores del botón "Ver carrito" en la página del carrito 
.woocommerce a.button.wc-forward {
    background-color:  !important; /* Color de fondo 
    color: #333 !important;            /* Color del texto 
 

}


/* Efecto al pasar el mouse 
.woocommerce a.button.wc-forward:hover {
    background-color: #333 !important; /* Color de fondo al hover 
    color: #fff !important;            /* Color del texto al hover 
    border-color: #4A1506 !important;     /* Borde al hover 
}

*/
