/* Animaciones personalizadas para las páginas */

/* Layout para secciones de contenido imagen-texto */
.content-section {
    display: flex;
    align-items: center;
    margin-bottom: 4rem;
    gap: 2rem;
}

.content-section.reverse {
    flex-direction: row-reverse;
}

.content-image {
    flex: 1;
    max-width: 50%;
}

.content-text {
    flex: 1;
    max-width: 50%;
    padding: 0 1rem;
}

.content-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    transition: transform 0.3s ease;
}

/* Animaciones de entrada para imágenes */
.animate-image {
    opacity: 0;
    transform: translateX(-50px);
    animation: slideInLeft 0.8s ease-out forwards;
}

.animate-image.reverse {
    transform: translateX(50px);
    animation: slideInRight 0.8s ease-out forwards;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Efecto hover para las imágenes */
.content-image img:hover {
    transform: scale(1.05);
}

/* Responsive design */
@media (max-width: 768px) {
    .content-section,
    .content-section.reverse {
        flex-direction: column;
        text-align: center;
    }
    
    .content-image,
    .content-text {
        max-width: 100%;
        margin-bottom: 1rem;
    }
    
    .animate-image,
    .animate-image.reverse {
        transform: translateY(30px);
        animation: slideInUp 0.8s ease-out forwards;
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animación de retraso para múltiples elementos */
.content-section:nth-child(2) .animate-image {
    animation-delay: 0.2s;
}

.content-section:nth-child(3) .animate-image {
    animation-delay: 0.4s;
}

.content-section:nth-child(4) .animate-image {
    animation-delay: 0.6s;
}

.content-section:nth-child(5) .animate-image {
    animation-delay: 0.8s;
}

.content-section:nth-child(6) .animate-image {
    animation-delay: 1s;
}

/* Hover swap de imágenes en tarjetas de producto */
.product-card .image-stack {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}
.product-card .image-stack .stack-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translateX(0);
    opacity: 1;
    transition: transform .5s ease, opacity .5s ease;
}
.product-card .image-stack .img-secondary {
    transform: translateX(100%);
    opacity: 0;
}
.product-card .image-stack.has-secondary:hover .img-primary {
    transform: translateX(-100%);
    opacity: 0;
}
.product-card .image-stack.has-secondary:hover .img-secondary {
    transform: translateX(0);
    opacity: 1;
}
.new-arrival .single-new-arrival .popular-caption h3 a { text-decoration: none !important; }
.new-arrival .single-new-arrival:hover .popular-caption h3 a { text-decoration: none !important; }
.product-card .badge-new {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #7d716c;
    color: #fff;
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 16px;
    z-index: 2;
}