
.ap-toque {
    transition: transform var(--t-rapido) var(--ease-saida);
}

.ap-toque:active,
.products:active,
.mk-card:active,
.cart-button-mobile button:active,
.cart-button-desktop button:active,
.bottom-nav__item:active {
    transform: scale(0.97);
}

.product__cta:not(:disabled):not([aria-disabled="true"]):active,
.product__stepper-btn:not(:disabled):active,
.basket__step:active {
    transform: scale(0.92);
}

.ap-pulsa {
    animation: ap-pulsa 420ms var(--ease-saida);
}

.cart-button-mobile button,
.cart-button-desktop button,
.summary-total {
    --ap-pulso: 1.04;
}

@keyframes ap-pulsa {
    0% { transform: scale(1); }
    35% { transform: scale(var(--ap-pulso, 1.3), calc(2 - var(--ap-pulso, 1.3))); }
    65% { transform: scale(calc(2 - var(--ap-pulso, 1.3)), var(--ap-pulso, 1.3)); }
    100% { transform: scale(1); }
}

.ap-treme {
    animation: ap-treme 360ms var(--ease-suave);
}

@keyframes ap-treme {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-8px); }
    40% { transform: translateX(7px); }
    60% { transform: translateX(-5px); }
    80% { transform: translateX(3px); }
}

.product__group.ap-treme .product__tag--required {
    background: var(--error);
}

.ap-ocupado {
    pointer-events: none;
    animation: ap-ocupado 900ms var(--ease-suave) infinite alternate;
}

@keyframes ap-ocupado {
    from { opacity: 0.85; }
    to { opacity: 0.45; }
}

.ap-troca-icone {
    animation: ap-troca-icone var(--t-media) var(--ease-saida);
}

@keyframes ap-troca-icone {
    from { opacity: 0; filter: blur(4px); transform: scale(0.5); }
    to { opacity: 1; filter: blur(0); transform: scale(1); }
}

.product__cta[aria-disabled="true"] {
    background: var(--bg-page);
    border: 1px solid var(--border-input);
    color: var(--text-secondary);
    cursor: not-allowed;
}

.product__cta.product__cta--loading {
    position: relative;
}

.product__cta--loading > * {
    opacity: 0;
}

.product__cta--loading::after {
    content: "";
    position: absolute;
    top: calc(50% - 10px);
    left: calc(50% - 10px);
    width: 20px;
    height: 20px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: ap-gira var(--t-marca-giro) linear infinite;
}

@keyframes ap-gira {
    to { transform: rotate(360deg); }
}

.ap-voo {
    position: fixed;
    z-index: 100001; /* acima das folhas (99999) e do toast */
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 50%;
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    .ap-toque,
    .ap-toque:active,
    .products:active,
    .mk-card:active,
    .cart-button-mobile button:active,
    .cart-button-desktop button:active,
    .bottom-nav__item:active,
    .product__cta:not(:disabled):not([aria-disabled="true"]):active,
    .product__stepper-btn:not(:disabled):active,
    .basket__step:active {
        transform: none;
        transition: none;
    }

    .ap-pulsa,
    .ap-treme,
    .ap-troca-icone {
        animation: none;
    }

    .ap-ocupado {
        animation: none;
        opacity: 0.55;
    }
}
