.ffy-fav-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    padding: 4px 8px;
    transition: transform 0.2s;
    position: relative;
    z-index: 5;
}
.ffy-fav-btn:hover {
    transform: scale(1.2);
}
.ffy-fav-btn.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Loop (catalog) */
li.product .ffy-fav-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

/* Single product */
.product .summary .ffy-fav-btn {
    font-size: 22px;
    margin-left: 8px;
    vertical-align: middle;
}

/* ========== My Account Favorites Page ========== */
.ffy-favorites-page h2 {
    margin-bottom: 20px;
}
.ffy-favorites-empty {
    text-align: center;
    padding: 40px 20px;
    background: #f9f9f9;
    border-radius: 8px;
}
.ffy-favorites-empty p {
    font-size: 16px;
    margin-bottom: 16px;
}
.ffy-favorites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}
.ffy-favorite-item {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.2s;
}
.ffy-favorite-item:hover {
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}
.ffy-favorite-item.removing {
    opacity: 0.4;
    pointer-events: none;
}
.ffy-favorite-image img {
    width: 100%;
    height: auto;
    display: block;
}
.ffy-favorite-info {
    padding: 12px;
}
.ffy-favorite-name {
    font-weight: 600;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    display: block;
    margin-bottom: 6px;
}
.ffy-favorite-name:hover {
    color: #e74c3c;
}
.ffy-favorite-price {
    font-size: 15px;
    font-weight: 700;
    color: #27ae60;
    margin-bottom: 6px;
}
.ffy-stock {
    font-size: 12px;
    display: block;
    margin-bottom: 10px;
}
.ffy-stock.out-of-stock {
    color: #e74c3c;
}
.ffy-favorite-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.ffy-favorite-actions .button {
    font-size: 12px;
    padding: 6px 12px;
    flex: 1;
    text-align: center;
}
.ffy-remove-favorite {
    background: #f5f5f5 !important;
    color: #666 !important;
    border: 1px solid #ddd !important;
}
.ffy-remove-favorite:hover {
    background: #fee !important;
    color: #e74c3c !important;
}

@media (max-width: 600px) {
    .ffy-favorites-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .ffy-favorite-info {
        padding: 8px;
    }
    .ffy-favorite-actions {
        flex-direction: column;
    }
}
