/**
 * ========================================
 * TRANSICIONES SUAVES Y ANTI-PARPADEO
 * ========================================
 * Versión conservadora que no interfiere con Woodmart
 */

/* Fade in del contenido principal - MÁS SUTIL */
.site-content,
.main-page-wrapper {
    animation: bdv-content-fade-in 0.25s ease-out;
}

@keyframes bdv-content-fade-in {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Transiciones suaves SOLO al hover (no afectar layout) */
.products .product {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover en productos - MÁS SUTIL */
.products .product:hover {
    transform: translateY(-3px);
}

/* Transiciones para imágenes de productos */
.product-image-link img,
.product-image-wrapper img {
    transition: transform 0.4s ease;
}

/* Transiciones sutiles para botones */
.button,
.btn {
    transition: opacity 0.2s ease;
}

/* Smooth scroll (accesibilidad) */
html {
    scroll-behavior: smooth;
}

/* Desactivar animaciones para usuarios que lo prefieran */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Loader de página - barra superior */
.bdv-page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgb(251, 107, 5) 50%, 
        transparent 100%);
    background-size: 200% 100%;
    animation: bdv-loading 1.5s ease-in-out infinite;
    z-index: 999999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.bdv-page-loader.active {
    opacity: 1;
}

@keyframes bdv-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

