/* --- ULTRA-FLUID INFINITE SCROLL & PREMIUM ANIMATIONS --- */

.app-products-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 16px;
    transition: none;
    /* Disabled for native performance */
}

/* Native-optimized: Simplified animations - DISABLED ALL ENTRY EFFECTS */
.anim-fade-in {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
}

.app-loader-spinner {
    grid-column: span 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    gap: 12px;
}

.spinner-tiny {
    width: 28px;
    height: 28px;
    border: 3px solid rgba(99, 102, 241, 0.1);
    border-top: 3px solid #6366f1;
    border-radius: 50% !important;
    animation: spinPro 0.8s linear infinite;
}

/* --- PREMIUM CIRCULAR LOADER (v2026) --- */
.premium-loader {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(99, 102, 241, 0.1);
    border-top: 3px solid #6366f1;
    border-radius: 50% !important;
    animation: premium-spin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    position: relative;
}

.premium-loader::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-bottom: 3px solid rgba(168, 85, 247, 0.4);
    animation: premium-spin-reverse 2s linear infinite;
}

@keyframes premium-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes premium-spin-reverse {
    0% { transform: rotate(360deg); }
    100% { transform: rotate(0deg); }
}

/* Ensure all loaders are circular */
.checker-loader, .spinner-mini, .loading-spinner, .spinner, .spinner-tiny, .payment-spinner {
    border-radius: 50% !important;
}

.app-loader-spinner::after {
    content: 'Cargando más productos...';
    font-size: 11px;
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@keyframes spinPro {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.app-product-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: none;
    /* Disabled for native performance */
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

/* Simplified hover for web only */
@media (hover: hover) {
    .app-product-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
}

/* Active state for touch devices */
.app-product-card:active {
    transform: scale(0.97);
    transition: transform 0.1s ease;
}

.app-screen-content {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* --- PAYMENT STATUS ANIMATIONS v9.8.3 --- */
.wi-bounce-in {
    animation: wi-bounce-in 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.wi-shake {
    animation: wi-shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

.spin {
    animation: spinPro 1s linear infinite;
}

@keyframes wi-bounce-in {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.1); opacity: 1; }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); }
}

@keyframes wi-shake {
    10%, 90% { transform: translate3d(-1px, 0, 0); }
    20%, 80% { transform: translate3d(2px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
    40%, 60% { transform: translate3d(4px, 0, 0); }
}

@keyframes spinPro {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}