.product-card {
    position: relative;
}

.favorites-page {
    padding-bottom: calc(var(--app-safe-bottom, 84px) + 2rem);
}

.favorite-products-grid {
    padding-bottom: calc(var(--app-safe-bottom, 84px) + 1.5rem);
}

.product-favorite-toggle {
    position: relative;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #6c757d;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    font-size: 1.3rem;
    line-height: 1;
    overflow: visible;
    transition: transform 0.15s ease, color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.product-favorite-toggle:hover,
.product-favorite-toggle:focus-visible {
    color: #e22828;
    background: rgba(226, 40, 40, 0.08);
    transform: translateY(-1px) scale(1.08);
}

.product-favorite-toggle.is-active {
    color: #e22828;
    background: transparent;
}

.product-favorite-toggle.is-active:hover,
.product-favorite-toggle.is-active:focus-visible {
    background: rgba(226, 40, 40, 0.08);
}

.product-favorite-toggle.is-loading {
    pointer-events: none;
    opacity: 0.72;
}

.product-favorite-toggle.favorite-pulse {
    animation: favoritePulse 0.35s ease;
}

.favorite-burst-heart {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    color: #e22828;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(1);
    animation: favoriteBurst 0.5s ease-out forwards;
}

.footer-favorites-link {
    color: #6c757d;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    font-weight: 600;
}

.footer-favorites-link:hover,
.footer-favorites-link:focus-visible {
    color: #e22828;
}

@media (max-width: 767.98px) {
    .app-footer-sticky > .container > p,
    .app-footer-sticky > .container > span {
        display: none !important;
    }
}

.favorite-products-empty {
    border: 1px dashed rgba(226, 40, 40, 0.35);
    border-radius: 1rem;
    padding: 3rem 1.5rem;
    background: linear-gradient(135deg, rgba(226, 40, 40, 0.06), rgba(255, 255, 255, 0.9));
}

.favorite-products-empty > .bi {
    font-size: 3rem;
    color: #e22828;
}

@keyframes favoritePulse {
    0% {
        transform: scale(1);
    }
    45% {
        transform: scale(1.18);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes favoriteBurst {
    0% {
        opacity: 0.95;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(2.7);
    }
}
