/* Product card favorite — shared across all store themes */

.product-card-favorite-form {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    margin: 0;
    padding: 0;
    border: 0;
}

.product-image > .product-card-favorite {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
}

.product-card-favorite {
    position: relative;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 50%;
    background: #fff;
    border: 1px solid rgba(26, 15, 10, 0.1);
    color: var(--text-dark, #1a0f0a);
    text-decoration: none;
    box-shadow: var(--shadow-xs, 0 1px 3px rgba(10, 10, 10, 0.08));
    cursor: pointer;
    font: inherit;
    transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.product-card-favorite svg {
    width: 18px;
    height: 18px;
}

.product-card-favorite:hover,
.product-card-favorite:focus-visible {
    color: var(--caramel, #c68b59);
    border-color: color-mix(in srgb, var(--caramel, #c68b59) 40%, var(--border-subtle, rgba(26, 15, 10, 0.12)));
    transform: scale(1.05);
    outline: none;
}

.product-card-favorite--active,
.product-card-favorite--active:hover,
.product-card-favorite--active:focus-visible {
    color: #dc2626;
    border-color: color-mix(in srgb, #dc2626 35%, var(--border-subtle, rgba(26, 15, 10, 0.12)));
    background: #fff5f5;
}

.product-card-favorite--active svg path {
    fill: currentColor;
}

.product-card-favorite.is-busy {
    pointer-events: none;
    opacity: 0.65;
}

.product-image .product-card-favorite-form,
.product-image > .product-card-favorite,
.product-image .product-badges {
    pointer-events: auto;
}

@media (max-width: 768px) {
    .product-card-favorite-form,
    .product-image > .product-card-favorite {
        top: 6px;
        right: 6px;
    }

    .product-card-favorite {
        width: 32px;
        height: 32px;
    }

    .product-card-favorite svg {
        width: 16px;
        height: 16px;
    }
}
